diff --git a/packages/builders/test/orchestration-imports.test.js b/packages/builders/test/orchestration-imports.test.js new file mode 100644 index 000000000000..170baab24ad6 --- /dev/null +++ b/packages/builders/test/orchestration-imports.test.js @@ -0,0 +1,6 @@ +import { test } from '@agoric/zoe/tools/prepare-test-env-ava.js'; +import * as orch from '@agoric/orchestration'; + +test('@agoric/orchestration exports', t => { + t.snapshot(orch); +}); diff --git a/packages/builders/test/snapshots/orchestration-imports.test.js.md b/packages/builders/test/snapshots/orchestration-imports.test.js.md new file mode 100644 index 000000000000..b5c7b79b235c --- /dev/null +++ b/packages/builders/test/snapshots/orchestration-imports.test.js.md @@ -0,0 +1,532 @@ +# Snapshot report for `test/orchestration-imports.test.js` + +The actual snapshot is saved in `orchestration-imports.test.js.snap`. + +Generated by [AVA](https://avajs.dev). + +## @agoric/orchestration exports + +> Snapshot 1 + + @Module { + AmountArgShape: Object @match:or { + payload: [ + { + brand: Object @match:remotable { + payload: { + label: 'Brand', + }, + }, + value: Object @match:nat { + payload: [], + }, + }, + { + denom: Object @match:string { + payload: [], + }, + value: Object @match:bigint { + payload: [], + }, + }, + ], + }, + AnyNatAmountShape: { + brand: Object @match:remotable { + payload: { + label: 'Brand', + }, + }, + value: Object @match:nat { + payload: [], + }, + }, + AnyNatAmountsRecord: Object @match:and { + payload: [ + Object @match:recordOf { + payload: [ + Object @match:string { + payload: [], + }, + { + brand: Object @match:remotable { + payload: { + label: 'Brand', + }, + }, + value: Object @match:nat { + payload: [], + }, + }, + ], + }, + Object @match:not { + payload: {}, + }, + ], + }, + ChainAddressShape: { + chainId: Object @match:string { + payload: [], + }, + encoding: Object @match:string { + payload: [], + }, + value: Object @match:string { + payload: [], + }, + }, + ChainInfoShape: Object @match:splitRecord { + payload: [ + { + chainId: Object @match:string { + payload: [], + }, + }, + ], + }, + CosmosAssetInfoShape: Object @match:splitRecord { + payload: [ + { + base: Object @match:string { + payload: [], + }, + denom_units: Object @match:arrayOf { + payload: [ + Object @match:splitRecord { + payload: [ + { + denom: Object @match:string { + payload: [], + }, + exponent: Object @match:kind { + payload: 'number', + }, + }, + ], + }, + ], + }, + display: Object @match:string { + payload: [], + }, + name: Object @match:string { + payload: [], + }, + symbol: Object @match:string { + payload: [], + }, + }, + ], + }, + CosmosChainInfoShape: Object @match:splitRecord { + payload: [ + { + chainId: Object @match:string { + payload: [], + }, + }, + { + connections: Object @match:recordOf { + payload: [ + Object @match:any { + payload: undefined, + }, + Object @match:any { + payload: undefined, + }, + ], + }, + icqEnabled: Object @match:kind { + payload: 'boolean', + }, + stakingTokens: Object @match:arrayOf { + payload: [ + { + denom: Object @match:string { + payload: [], + }, + }, + ], + }, + }, + ], + }, + DelegationShape: Object @match:splitRecord { + payload: [ + { + amount: Object @match:or { + payload: [ + { + brand: Object @match:remotable { + payload: { + label: 'Brand', + }, + }, + value: Object @match:nat { + payload: [], + }, + }, + { + denom: Object @match:string { + payload: [], + }, + value: Object @match:bigint { + payload: [], + }, + }, + ], + }, + validator: { + chainId: Object @match:string { + payload: [], + }, + encoding: Object @match:string { + payload: [], + }, + value: Object @match:string { + payload: [], + }, + }, + }, + { + delegator: { + chainId: Object @match:string { + payload: [], + }, + encoding: Object @match:string { + payload: [], + }, + value: Object @match:string { + payload: [], + }, + }, + }, + ], + }, + DenomAmountShape: { + denom: Object @match:string { + payload: [], + }, + value: Object @match:bigint { + payload: [], + }, + }, + DenomInfoShape: { + base: Object @match:remotable { + payload: { + label: 'Chain', + }, + }, + baseDenom: Object @match:string { + payload: [], + }, + brand: Object @match:or { + payload: [ + Object @match:remotable { + payload: { + label: 'Brand', + }, + }, + Object @match:kind { + payload: 'undefined', + }, + ], + }, + chain: Object @match:remotable { + payload: { + label: 'Chain', + }, + }, + }, + DenomShape: Object @match:string { + payload: [], + }, + IBCChannelIDShape: Object @match:string { + payload: [], + }, + IBCChannelInfoShape: Object @match:splitRecord { + payload: [ + { + channelId: Object @match:string { + payload: [], + }, + counterPartyChannelId: Object @match:string { + payload: [], + }, + counterPartyPortId: Object @match:string { + payload: [], + }, + ordering: Object @match:scalar { + payload: undefined, + }, + portId: Object @match:string { + payload: [], + }, + state: Object @match:scalar { + payload: undefined, + }, + version: Object @match:string { + payload: [], + }, + }, + ], + }, + IBCConnectionIDShape: Object @match:string { + payload: [], + }, + IBCConnectionInfoShape: Object @match:splitRecord { + payload: [ + { + client_id: Object @match:string { + payload: [], + }, + counterparty: { + client_id: Object @match:string { + payload: [], + }, + connection_id: Object @match:string { + payload: [], + }, + }, + id: Object @match:string { + payload: [], + }, + state: Object @match:scalar { + payload: undefined, + }, + transferChannel: Object @match:splitRecord { + payload: [ + { + channelId: Object @match:string { + payload: [], + }, + counterPartyChannelId: Object @match:string { + payload: [], + }, + counterPartyPortId: Object @match:string { + payload: [], + }, + ordering: Object @match:scalar { + payload: undefined, + }, + portId: Object @match:string { + payload: [], + }, + state: Object @match:scalar { + payload: undefined, + }, + version: Object @match:string { + payload: [], + }, + }, + ], + }, + }, + ], + }, + IBCTransferOptionsShape: Object @match:splitRecord { + payload: [ + {}, + { + memo: Object @match:string { + payload: [], + }, + timeoutHeight: { + revisionHeight: Object @match:bigint { + payload: [], + }, + revisionNumber: Object @match:bigint { + payload: [], + }, + }, + timeoutTimestamp: Object @match:bigint { + payload: [], + }, + }, + ], + }, + ICQMsgShape: Object @match:splitRecord { + payload: [ + { + data: Object @match:string { + payload: [], + }, + path: Object @match:string { + payload: [], + }, + }, + { + height: Object @match:string { + payload: [], + }, + prove: Object @match:kind { + payload: 'boolean', + }, + }, + ], + }, + LocalChainAccountShape: Object @match:remotable { + payload: { + label: 'LocalChainAccount', + }, + }, + OutboundConnectionHandlerI: Object @guard:interfaceGuard { + payload: { + defaultGuards: undefined, + interfaceName: 'OutboundConnectionHandler', + methodGuards: { + onClose: Object @guard:methodGuard { + payload: { + argGuards: [ + Object @match:any { + payload: undefined, + }, + Object @match:any { + payload: undefined, + }, + Object @match:any { + payload: undefined, + }, + ], + callKind: 'async', + optionalArgGuards: undefined, + restArgGuard: undefined, + returnGuard: Object @match:any { + payload: undefined, + }, + }, + }, + onOpen: Object @guard:methodGuard { + payload: { + argGuards: [ + Object @match:any { + payload: undefined, + }, + Object @match:string { + payload: [], + }, + Object @match:string { + payload: [], + }, + Object @match:any { + payload: undefined, + }, + ], + callKind: 'async', + optionalArgGuards: undefined, + restArgGuard: undefined, + returnGuard: Object @match:any { + payload: undefined, + }, + }, + }, + }, + }, + }, + Proto3Shape: { + typeUrl: Object @match:string { + payload: [], + }, + value: Object @match:string { + payload: [], + }, + }, + TimestampProtoShape: { + nanos: Object @match:kind { + payload: 'number', + }, + seconds: Object @match:string { + payload: [], + }, + }, + TxBodyOptsShape: Object @match:splitRecord { + payload: [ + {}, + { + extensionOptions: Object @match:arrayOf { + payload: [ + Object @match:any { + payload: undefined, + }, + ], + }, + memo: Object @match:string { + payload: [], + }, + nonCriticalExtensionOptions: Object @match:arrayOf { + payload: [ + Object @match:any { + payload: undefined, + }, + ], + }, + timeoutHeight: Object @match:bigint { + payload: [], + }, + }, + ], + }, + TypedJsonShape: Object @match:splitRecord { + payload: [ + { + '@type': Object @match:string { + payload: [], + }, + }, + ], + }, + chainFacadeMethods: { + getChainInfo: Object @guard:methodGuard { + payload: { + argGuards: [], + callKind: 'sync', + optionalArgGuards: undefined, + restArgGuard: undefined, + returnGuard: Object @match:tagged { + payload: [ + 'Vow', + Object @match:splitRecord { + payload: [ + { + vowV0: Object @match:remotable { + payload: { + label: 'VowV0', + }, + }, + }, + ], + }, + ], + }, + }, + }, + makeAccount: Object @guard:methodGuard { + payload: { + argGuards: [], + callKind: 'sync', + optionalArgGuards: undefined, + restArgGuard: undefined, + returnGuard: Object @match:tagged { + payload: [ + 'Vow', + Object @match:splitRecord { + payload: [ + { + vowV0: Object @match:remotable { + payload: { + label: 'VowV0', + }, + }, + }, + ], + }, + ], + }, + }, + }, + }, + prepareChainHubAdmin: Function prepareChainHubAdmin {}, + prepareCosmosInterchainService: Function prepareCosmosInterchainService {}, + withOrchestration: Function withOrchestration {}, + } diff --git a/packages/builders/test/snapshots/orchestration-imports.test.js.snap b/packages/builders/test/snapshots/orchestration-imports.test.js.snap new file mode 100644 index 000000000000..e5d97ebf415f Binary files /dev/null and b/packages/builders/test/snapshots/orchestration-imports.test.js.snap differ