-
Notifications
You must be signed in to change notification settings - Fork 208
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
test of revising chain info #9552
Conversation
Deploying agoric-sdk with Cloudflare Pages
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather not suggest that we know how to handle changes to chainId.
const agoricAfter = await EV(agoricNames).lookup('chain', 'agoric'); | ||
t.like(agoricAfter, { chainId: 'agoric-4' }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have requirements to handle changing a chainId change for a well-established chain? That's the sort of "earthquake" event that I think the market doesn't really contemplate. It would mean something like abandoning all the tokens that have ever gone over IBC to or from agoric-3. I'd rather not have a test that suggests that we handle this sort of thing. I'd much rather stick to "append only" changes to chain info (for a somewhat hand-wavy notion of append).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we have a need to revise chain_id for Starship because it will have different ids for the names.
Since Starship is an E2E test, I'm fine relying on that actual test for whether the chain ids update as needed and taking this out of the test here that could be read as a product spec. I'll remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. Yes, I look forward to supporting a chainId other than agoric-3 in the starship context. I'd expect it to go into agoricNames once as agoric-4
in the first place, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good stuff
699f2b1
to
2f625b9
Compare
refs: #8896
Description
Extracted from #9534 to focus that PR on multichain and lighten the review. Also it had merge conflicts with master that this resolves.
Security Considerations
nothing new
Scaling Considerations
no
Documentation Considerations
none
Testing Considerations
new coverage
Upgrade Considerations
none