-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs: #9063 ## Description Progress on, - #9063 To be closed when all the names in the checklist are present. ### Security Considerations none ### Scaling Considerations none ### Documentation Considerations none ### Testing Considerations Updated test setup ### Upgrade Considerations Not yet deployed
- Loading branch information
Showing
25 changed files
with
2,776 additions
and
53 deletions.
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.