Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NayNay] New SDK RC integration #262

Merged
merged 21 commits into from
Oct 24, 2024
Merged

[NayNay] New SDK RC integration #262

merged 21 commits into from
Oct 24, 2024

Conversation

rh0delta
Copy link
Contributor

@rh0delta rh0delta commented Oct 18, 2024

Related Issue(s)

Proposed Changes

  • updated CLI with new sdk rc, and made changes to reflect the changes from core/sdk
  • updated network type defualt to four-nodes
  • added jump-start network to the initialization of entropy for both cli and tui
  • updated all tests to reflect changes

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing performed

Screenshots (if applicable)

Additional Context

Checklist

  • I have performed a self-review of my code.
  • I have added tests.
  • I have commented my code.
  • I have included a CHANGELOG.md entry.
  • I have updated documentation in github.com:entropyxyz/entropy-docs, where necessary.

- updated CLI with new sdk rc, and made changes to reflect the changes from core/sdk
- updated network type defualt to four-nodes
- added jump-start network to the initialization of entropy for both cli and tui
- updated all tests to reflect changes
@rh0delta rh0delta marked this pull request as ready for review October 21, 2024 21:59
src/common/utils-cli.ts Outdated Show resolved Hide resolved
Comment on lines 88 to 98
// Naynay entropy instance required here as @JesseAbram brought to attn that running jumpstart using the charlie seed will result in errors.
// the error found here was: RpcError: 1014: Priority is too low: (4471 vs 4471): The transaction has too low priority to replace another transaction already in the pool.
// which indicated a potential nonce issue, where the solution would be to manually wait for ~50 blocks to make any subsequent calls to the network. However,
// using naynay instance (fresh seed) jump start and the subsequent calls to the network (i.e register), the flow worked without issues.
const { entropy: naynay } = await setupTest(t, { networkType })

const accountService = new EntropyAccount(naynay, endpoint)
const transferService = new EntropyTransfer(entropy, endpoint)

// use of charlie seed is solely to transfer funds to the naynay (fresh seed) instance. these funds will be used for the jumpstart and register call
await run('transferring funds', transferService.transfer(naynay.keyring.accounts.registration.address, "1000"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the setup should be extracted (set up of a funded account).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done here #263

Copy link
Contributor

@mixmix mixmix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see 🔥 ☝️

src/cli.ts Outdated Show resolved Hide resolved
src/common/utils.ts Outdated Show resolved Hide resolved
src/tui.ts Outdated Show resolved Hide resolved
rh0delta and others added 6 commits October 23, 2024 12:13
* exract "fundAccount" from tests

* extraaact

* tidy

* Update tests/faucet.test.ts

Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com>

* Update tests/faucet.test.ts

Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com>

* fixed test

---------

Co-authored-by: Nayyir Jutha <nayyir.jutha@gmail.com>
src/common/utils-cli.ts Outdated Show resolved Hide resolved
@mixmix mixmix merged commit d8d0b33 into dev Oct 24, 2024
2 checks passed
@mixmix mixmix deleted the naynay/new-sdk-rc branch October 24, 2024 00:57
@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants