-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: vm-config for orchestration
- Loading branch information
Showing
7 changed files
with
301 additions
and
32 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
150 changes: 150 additions & 0 deletions
150
packages/boot/test/bootstrapTests/snapshots/orchestration.test.ts.md
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,150 @@ | ||
# Snapshot report for `test/bootstrapTests/orchestration.test.ts` | ||
|
||
The actual snapshot is saved in `orchestration.test.ts.snap`. | ||
|
||
Generated by [AVA](https://avajs.dev). | ||
|
||
## config | ||
|
||
> Snapshot 1 | ||
[ | ||
[ | ||
'agoric', | ||
{ | ||
chainId: 'agoriclocal', | ||
connections: { | ||
cosmoslocal: { | ||
client_id: '07-tendermint-3', | ||
counterparty: { | ||
client_id: '07-tendermint-2', | ||
connection_id: 'connection-1', | ||
prefix: { | ||
key_prefix: '', | ||
}, | ||
}, | ||
delay_period: 0n, | ||
id: 'connection-1', | ||
state: 3, | ||
transferChannel: { | ||
channelId: 'channel-1', | ||
counterPartyChannelId: 'channel-1', | ||
counterPartyPortId: 'transfer', | ||
ordering: 1, | ||
portId: 'transfer', | ||
state: 3, | ||
version: 'ics20-1', | ||
}, | ||
versions: [ | ||
{ | ||
features: [ | ||
'', | ||
'', | ||
], | ||
identifier: '', | ||
}, | ||
], | ||
}, | ||
osmosislocal: { | ||
client_id: '07-tendermint-2', | ||
counterparty: { | ||
client_id: '07-tendermint-2', | ||
connection_id: 'connection-1', | ||
prefix: { | ||
key_prefix: '', | ||
}, | ||
}, | ||
delay_period: 0n, | ||
id: 'connection-0', | ||
state: 3, | ||
transferChannel: { | ||
channelId: 'channel-0', | ||
counterPartyChannelId: 'channel-1', | ||
counterPartyPortId: 'transfer', | ||
ordering: 1, | ||
portId: 'transfer', | ||
state: 3, | ||
version: 'ics20-1', | ||
}, | ||
versions: [ | ||
{ | ||
features: [ | ||
'', | ||
'', | ||
], | ||
identifier: '', | ||
}, | ||
], | ||
}, | ||
}, | ||
ibcHooksEnabled: true, | ||
icaEnabled: true, | ||
icqEnabled: true, | ||
pfmEnabled: true, | ||
}, | ||
], | ||
[ | ||
'celestia', | ||
{ | ||
chainId: 'celestia', | ||
connections: {}, | ||
ibcHooksEnabled: true, | ||
icaEnabled: true, | ||
icqEnabled: true, | ||
pfmEnabled: true, | ||
stakingTokens: [ | ||
{ | ||
denom: 'utia', | ||
}, | ||
], | ||
}, | ||
], | ||
[ | ||
'cosmos', | ||
{ | ||
chainId: 'cosmoslocal', | ||
connections: {}, | ||
ibcHooksEnabled: true, | ||
icaEnabled: true, | ||
icqEnabled: true, | ||
pfmEnabled: true, | ||
stakingTokens: [ | ||
{ | ||
denom: 'uatom', | ||
}, | ||
], | ||
}, | ||
], | ||
[ | ||
'osmosis', | ||
{ | ||
chainId: 'osmosislocal', | ||
connections: {}, | ||
ibcHooksEnabled: true, | ||
icaEnabled: true, | ||
icqEnabled: true, | ||
pfmEnabled: true, | ||
stakingTokens: [ | ||
{ | ||
denom: 'uosmo', | ||
}, | ||
], | ||
}, | ||
], | ||
[ | ||
'stride', | ||
{ | ||
chainId: 'stride-1', | ||
connections: {}, | ||
ibcHooksEnabled: true, | ||
icaEnabled: true, | ||
icqEnabled: true, | ||
pfmEnabled: true, | ||
stakingTokens: [ | ||
{ | ||
denom: 'ustride', | ||
}, | ||
], | ||
}, | ||
], | ||
] |
Binary file added
BIN
+1.34 KB
packages/boot/test/bootstrapTests/snapshots/orchestration.test.ts.snap
Binary file not shown.
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
129 changes: 129 additions & 0 deletions
129
packages/vm-config/decentral-itest-orchestration-config.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,129 @@ | ||
{ | ||
"$comment": "This SwingSet config file (see loadSwingsetConfigFile) is designed to bring up vats to test Orchestration. Comapre with decentral-itest-vaults-config.json.", | ||
"bootstrap": "bootstrap", | ||
"defaultReapInterval": 1000, | ||
"coreProposals": [ | ||
"@agoric/builders/scripts/vats/init-core.js", | ||
"@agoric/builders/scripts/vats/init-network.js", | ||
"@agoric/builders/scripts/vats/init-localchain.js", | ||
"@agoric/builders/scripts/vats/init-transfer.js", | ||
"@agoric/builders/scripts/vats/init-orchestration.js", | ||
{ | ||
"module": "@agoric/builders/scripts/inter-protocol/init-core.js", | ||
"entrypoint": "defaultProposalBuilder", | ||
"args": [ | ||
{ | ||
"econCommitteeOptions": { | ||
"committeeSize": 3 | ||
}, | ||
"referencedUi": "bafybeidvpbtlgefi3ptuqzr2fwfyfjqfj6onmye63ij7qkrb4yjxekdh3e", | ||
"minInitialPoolLiquidity": "0" | ||
} | ||
] | ||
}, | ||
{ | ||
"module": "@agoric/builders/scripts/inter-protocol/add-collateral-core.js", | ||
"entrypoint": "defaultProposalBuilder", | ||
"args": [ | ||
{ | ||
"interestRateValue": 1000, | ||
"interchainAssetOptions": { | ||
"denom": "ibc/toyatom", | ||
"decimalPlaces": 6, | ||
"initialPrice": 12.34, | ||
"keyword": "ATOM", | ||
"oracleBrand": "ATOM", | ||
"proposedName": "ATOM" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"module": "@agoric/builders/scripts/inter-protocol/add-collateral-core.js", | ||
"entrypoint": "psmProposalBuilder", | ||
"args": [ | ||
{ | ||
"anchorOptions": { | ||
"denom": "ibc/toyusdc", | ||
"decimalPlaces": 6, | ||
"keyword": "USDC_axl", | ||
"proposedName": "USD Coin" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"$comment": "XXX orchesration works without oracles but some test setup dependency fails to resolve without this", | ||
"module": "@agoric/builders/scripts/inter-protocol/price-feed-core.js", | ||
"entrypoint": "defaultProposalBuilder", | ||
"args": [ | ||
{ | ||
"AGORIC_INSTANCE_NAME": "ATOM-USD price feed", | ||
"oracleAddresses": [ | ||
"@PRIMARY_ADDRESS@", | ||
"agoric1dy0yegdsev4xvce3dx7zrz2ad9pesf5svzud6y" | ||
], | ||
"IN_BRAND_LOOKUP": [ | ||
"agoricNames", | ||
"oracleBrand", | ||
"ATOM" | ||
], | ||
"IN_BRAND_DECIMALS": 6, | ||
"OUT_BRAND_LOOKUP": [ | ||
"agoricNames", | ||
"oracleBrand", | ||
"USD" | ||
], | ||
"OUT_BRAND_DECIMALS": 4 | ||
} | ||
] | ||
} | ||
], | ||
"vats": { | ||
"bootstrap": { | ||
"sourceSpec": "@agoric/vats/src/core/boot-chain.js", | ||
"creationOptions": { | ||
"critical": true | ||
} | ||
} | ||
}, | ||
"bundles": { | ||
"agoricNames": { | ||
"sourceSpec": "@agoric/vats/src/vat-agoricNames.js" | ||
}, | ||
"bank": { | ||
"sourceSpec": "@agoric/vats/src/vat-bank.js" | ||
}, | ||
"board": { | ||
"sourceSpec": "@agoric/vats/src/vat-board.js" | ||
}, | ||
"bridge": { | ||
"sourceSpec": "@agoric/vats/src/vat-bridge.js" | ||
}, | ||
"centralSupply": { | ||
"sourceSpec": "@agoric/vats/src/centralSupply.js" | ||
}, | ||
"mintHolder": { | ||
"sourceSpec": "@agoric/vats/src/mintHolder.js" | ||
}, | ||
"priceAuthority": { | ||
"sourceSpec": "@agoric/vats/src/vat-priceAuthority.js" | ||
}, | ||
"provisionPool": { | ||
"sourceSpec": "@agoric/inter-protocol/src/provisionPool.js" | ||
}, | ||
"provisioning": { | ||
"sourceSpec": "@agoric/vats/src/vat-provisioning.js" | ||
}, | ||
"walletFactory": { | ||
"sourceSpec": "@agoric/smart-wallet/src/walletFactory.js" | ||
}, | ||
"zcf": { | ||
"sourceSpec": "@agoric/zoe/contractFacet.js" | ||
}, | ||
"zoe": { | ||
"sourceSpec": "@agoric/vats/src/vat-zoe.js" | ||
} | ||
}, | ||
"defaultManagerType": "xs-worker" | ||
} |
Oops, something went wrong.