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

9063 chain lookup #9459

Merged
merged 4 commits into from
Jun 6, 2024
Merged

9063 chain lookup #9459

merged 4 commits into from
Jun 6, 2024

Conversation

turadg
Copy link
Member

@turadg turadg commented Jun 5, 2024

refs: #9063

Description

Progress on #9063, looking up primary chain info by chainID. Modeled after https://github.com/Agoric/agoric-sdk/tree/dc-unk-chain-misc

Doesn't yet handle IBC connection info (hostConnectionId, controllerConnectionId). I propose this is worth landing without that but invite reviewers to weigh in with requests.

Security Considerations

Scaling Considerations

Documentation Considerations

Testing Considerations

Upgrade Considerations

@turadg turadg requested review from dckc and 0xpatrickdev June 5, 2024 23:05
Copy link

cloudflare-workers-and-pages bot commented Jun 5, 2024

Deploying agoric-sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 9fdd77f
Status:🚫  Build failed.

View logs

Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

This has some rough edges, but I support landing it.

I propose this is worth landing without IBC connection info

concur.

@@ -1,5 +1,10 @@
/**
* @file Mocked Chain Info object until #8879
* @file Mocked Chain Info object
Copy link
Member

Choose a reason for hiding this comment

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

can we move this out of src/ yet?

Copy link
Member Author

Choose a reason for hiding this comment

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

I gave it a try but will save it for a next PR because it affects the a3p test too.

Comment on lines 164 to 165
// TODO zone is a lot of power to hand down. If it's only used for
// `prepareCosmosOrchestrationAccount` we can do that in the parent scope
Copy link
Member

Choose a reason for hiding this comment

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

IIUC, making an async flow needs a durable zone.
I expect it can be a sub-zone and need not be the whole thing.

Copy link
Member Author

@turadg turadg Jun 5, 2024

Choose a reason for hiding this comment

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

ah yes. I'll remove this comment.

agoricNames: bootstrap.agoricNames,
localchain: bootstrap.localchain,
orchestrationService: bootstrap.orchestration,
storageNode: bootstrap.storage.rootNode,
Copy link
Member

Choose a reason for hiding this comment

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

have we been passing the whole storage root to the contract? that seems weird.

(not a request for change)

agoricNames,
localchain,
orchestrationService: orchestration,
storageNode: storage.rootNode,
Copy link
Member

Choose a reason for hiding this comment

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

hm. passing the whole storage root to a contract shouldn't be common

I'm not sure what to suggest

Copy link
Member Author

Choose a reason for hiding this comment

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

I expect it'll change when we test writes to vstorage

@turadg turadg added the automerge:rebase Automatically rebase updates, then merge label Jun 5, 2024
@mergify mergify bot merged commit f6d77a3 into master Jun 6, 2024
70 of 71 checks passed
@mergify mergify bot deleted the 9063-chain-lookup branch June 6, 2024 00:20
mergify bot added a commit that referenced this pull request Jun 6, 2024
refs: #9063

## Description

More progress on #9063

Following up on #9459

Next I think I'll set up a tool to grab the chain-registry info for the
chains in the checklist and bring them into agoricNames

In parallel, @dckc is populating agoricNames with the chain _connection_
info which can be appended to even after the chain (graph node) is
defined.


### Security Considerations

no changes

### Scaling Considerations

no changes

### Documentation Considerations

no need

### Testing Considerations

CI, including A3P proposal update

### Upgrade Considerations

no yet deployed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants