-
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
9063 init chainInfo #9477
Merged
Merged
9063 init chainInfo #9477
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
a8eba28
test(a3p): enable orchestration
turadg 169b8c5
chore(deps): bump a3p's yarn to 4.2.2
turadg 80ad3de
refactor: proposal doesn't need vow
turadg 89a8697
refactor: simplify test context type
turadg 5913d8f
feat: initChainInfo in orchestration setup eval
turadg 5d4b6fd
refactor: vm-config for orchestration
turadg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/submission |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# CoreEvalProposal to enable orchestration features | ||
|
||
The `submission` for this proposal is automatically generated during `yarn build` | ||
in [a3p-integration](../..) using the code in agoric-sdk through | ||
[build-all-submissions.sh](../../scripts/build-all-submissions.sh) and | ||
[build-submission.sh](../../scripts/build-submission.sh). |
50 changes: 50 additions & 0 deletions
50
a3p-integration/proposals/b:enable-orchestration/initial.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import test from 'ava'; | ||
|
||
import { agd, getVatDetails } from '@agoric/synthetic-chain'; | ||
|
||
const vats = { | ||
network: { incarnation: 0 }, | ||
ibc: { incarnation: 0 }, | ||
localchain: { incarnation: 0 }, | ||
orchestration: { incarnation: 0 }, | ||
transfer: { incarnation: 0 }, | ||
walletFactory: { incarnation: 3 }, | ||
zoe: { incarnation: 1 }, | ||
}; | ||
|
||
test(`vat details`, async t => { | ||
await null; | ||
for (const [vatName, expected] of Object.entries(vats)) { | ||
const actual = await getVatDetails(vatName); | ||
t.like(actual, expected, `${vatName} details mismatch`); | ||
} | ||
}); | ||
|
||
test('chain info', async t => { | ||
const cosmos = await agd | ||
.query( | ||
'vstorage', | ||
'data', | ||
'--output', | ||
'json', | ||
'published.agoricNames.chain.cosmos', | ||
) | ||
.then(res => JSON.parse(JSON.parse(JSON.parse(res.value).values[0]).body)); | ||
console.log('chain.cosmos', cosmos); | ||
t.like(cosmos, { chainId: 'cosmoslocal' }); | ||
|
||
const names = await agd.query( | ||
'vstorage', | ||
'children', | ||
'--output', | ||
'json', | ||
'published.agoricNames.chain', | ||
); | ||
t.deepEqual(names.children, [ | ||
'agoric', | ||
'celestia', | ||
'cosmos', | ||
'osmosis', | ||
'stride', | ||
]); | ||
}); |
23 changes: 23 additions & 0 deletions
23
a3p-integration/proposals/b:enable-orchestration/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"agoricProposal": { | ||
"type": "/agoric.swingset.CoreEvalProposal", | ||
"source": "subdir", | ||
"sdk-generate": [ | ||
"vats/init-orchestration.js" | ||
] | ||
}, | ||
"type": "module", | ||
"license": "Apache-2.0", | ||
"dependencies": { | ||
"@agoric/synthetic-chain": "^0.1.0", | ||
"ava": "^5.3.1" | ||
}, | ||
"ava": { | ||
"concurrency": 1, | ||
"serial": true, | ||
"files": [ | ||
"!submission" | ||
] | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
source /usr/src/upgrade-test-scripts/env_setup.sh | ||
|
||
yarn ava |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@0xpatrickdev you mentioned using
serial
in the starship work; apparently that's pretty normal for this sort of thing.