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

chore: update rollapp registration script to follow new flow #306

Merged
merged 4 commits into from
Aug 9, 2024

Conversation

artemijspavlovs
Copy link
Contributor

Description


Closes #XXX

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.

PR review checkboxes:

I have...

  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Targeted PR against the correct branch
  • included the correct type prefix in the PR title
  • Linked to the GitHub issue with discussion and accepted design
  • Targets only one GitHub issue
  • Wrote unit and integration tests
  • Wrote relevant migration scripts if necessary
  • All CI checks have passed
  • Added relevant godoc comments
  • Updated the scripts for local run, e.g genesis_config_commands.sh if the PR changes parameters
  • Add an issue in the e2e-tests repo if necessary

SDK Checklist

  • Import/Export Genesis
  • Registered Invariants
  • Registered Events
  • Updated openapi.yaml
  • No usage of go map
  • No usage of time.Now()
  • Used fixed point arithmetic and not float arithmetic
  • Avoid panicking in Begin/End block as much as possible
  • No unexpected math Overflow
  • Used sendCoin and not SendCoins
  • Out-of-block compute is bounded
  • No serialized ID at the end of store keys
  • UInt to byte conversion should use BigEndian

Full security checklist here

----;

For Reviewer:

  • Confirmed the correct type prefix in the PR title
  • Reviewers assigned
  • Confirmed all author checklist items have been addressed

---;

After reviewer approval:

  • In case the PR targets the main branch, PR should not be squash merge in order to keep meaningful git history.
  • In case the PR targets a release branch, PR must be rebased.

@artemijspavlovs artemijspavlovs requested a review from a team July 31, 2024 10:26
@artemijspavlovs artemijspavlovs force-pushed the artemijspavlovs/new-rollapp-registration-flow branch from fdc092c to 7f95451 Compare July 31, 2024 10:53
danwt
danwt previously approved these changes Aug 1, 2024
Comment on lines 55 to 95
{
"moniker": "Sample Moniker",
"details": "Some details about the sequencer",
"p2p_seeds": [
"seed1.example.com:26656",
"seed2.example.com:26656"
],
"rpcs": [
"http://rpc1.example.com:26657",
"http://rpc2.example.com:26657"
],
"evm_rpcs": [
"http://evm-rpc1.example.com:8545",
"http://evm-rpc2.example.com:8545"
],
"rest_api_url": "http://restapi.example.com",
"explorer_url": "http://explorer.example.com",
"genesis_urls": [
"http://genesis1.example.com",
"http://genesis2.example.com"
],
"contact_details": {
"website": "http://website.example.com",
"telegram": "https://t.me/example",
"x": "https://twitter.com/example"
},
"extra_data": "RXh0cmEgZGF0YSBzYW1wbGU=", // Base64 encoded data
"snapshots": [
{
"snapshot_url": "http://snapshot1.example.com",
"height": 123456,
"checksum": "d41d8cd98f00b204e9800998ecf8427e"
},
{
"snapshot_url": "http://snapshot2.example.com",
"height": 789012,
"checksum": "e2fc714c4727ee9395f324cd2e7f331f"
}
],
"gas_price": "1000000"
}
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe it's better to store these in a file

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah, I though the same but that the user needs to run the script from a specific location and the json file needs to be at an expected location all the time... this way user can run the scripts from wherever he wants, that's why it's inline

since the sequencer metadata is optional, the dummy file will just be an empty json object, that's shorter

Copy link
Contributor

Choose a reason for hiding this comment

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

fair enough

@danwt danwt merged commit 83b008c into main Aug 9, 2024
11 of 68 checks passed
@danwt danwt deleted the artemijspavlovs/new-rollapp-registration-flow branch August 9, 2024 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants