@agoric/orchestration 0.1.1-dev-88fe8c9.0 → 0.1.1-dev-3386e64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -16
- package/src/examples/basic-flows.contract.d.ts +6 -3
- package/src/examples/basic-flows.contract.d.ts.map +1 -1
- package/src/examples/basic-flows.contract.js +8 -1
- package/src/examples/basic-flows.flows.d.ts +9 -6
- package/src/examples/basic-flows.flows.d.ts.map +1 -1
- package/src/examples/basic-flows.flows.js +47 -14
- package/src/exos/local-chain-facade.d.ts +19 -1
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-chain-facade.js +7 -7
- package/src/exos/orchestrator.d.ts +38 -4
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.d.ts +6 -2
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.js +16 -5
- package/src/orchestration-api.d.ts +2 -2
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +9 -2
- package/src/typeGuards.d.ts +4 -7
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-3386e64.0+3386e64",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
37
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
38
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
39
|
-
"@agoric/internal": "0.3.3-dev-
|
|
40
|
-
"@agoric/network": "0.1.1-dev-
|
|
41
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
42
|
-
"@agoric/store": "0.9.3-dev-
|
|
43
|
-
"@agoric/time": "0.3.3-dev-
|
|
44
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
45
|
-
"@agoric/vats": "0.15.2-dev-
|
|
46
|
-
"@agoric/vow": "0.1.1-dev-
|
|
47
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
48
|
-
"@agoric/zone": "0.2.3-dev-
|
|
36
|
+
"@agoric/async-flow": "0.1.1-dev-3386e64.0+3386e64",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-3386e64.0+3386e64",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-3386e64.0+3386e64",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-3386e64.0+3386e64",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-3386e64.0+3386e64",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-3386e64.0+3386e64",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-3386e64.0+3386e64",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-3386e64.0+3386e64",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-3386e64.0+3386e64",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-3386e64.0+3386e64",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-3386e64.0+3386e64",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-3386e64.0+3386e64",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-3386e64.0+3386e64",
|
|
49
49
|
"@endo/base64": "^1.0.6",
|
|
50
50
|
"@endo/errors": "^1.2.4",
|
|
51
51
|
"@endo/far": "^1.1.4",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@noble/hashes": "github:paulmillr/noble-hashes#ae060daa6252f3ff2aa2f84e887de0aab491281d"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
57
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-3386e64.0+3386e64",
|
|
58
58
|
"@chain-registry/client": "^1.47.4",
|
|
59
59
|
"@cosmjs/amino": "^0.32.3",
|
|
60
60
|
"@cosmjs/proto-signing": "^0.32.3",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"typeCoverage": {
|
|
95
95
|
"atLeast": 98.1
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "3386e64ab3ab6b222b75202d77627d7403186acc"
|
|
98
98
|
}
|
|
@@ -15,14 +15,17 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
|
|
|
15
15
|
}>>, {
|
|
16
16
|
chainNames: string[];
|
|
17
17
|
}>>;
|
|
18
|
-
makeSendICQQueryInvitation(): Promise<Invitation<import("@agoric/vow").Vow<
|
|
18
|
+
makeSendICQQueryInvitation(): Promise<Invitation<import("@agoric/vow").Vow<string>, {
|
|
19
19
|
chainName: string;
|
|
20
|
-
msgs:
|
|
20
|
+
msgs: Parameters<import("../cosmos-api.js").ICQQueryFunction>[0];
|
|
21
21
|
}>>;
|
|
22
|
-
makeAccountAndSendBalanceQueryInvitation(): Promise<Invitation<import("@agoric/vow").Vow<
|
|
22
|
+
makeAccountAndSendBalanceQueryInvitation(): Promise<Invitation<import("@agoric/vow").Vow<string>, {
|
|
23
23
|
chainName: string;
|
|
24
24
|
denom: import("../orchestration-api.js").DenomArg;
|
|
25
25
|
}>>;
|
|
26
|
+
makeSendLocalQueryInvitation(): Promise<Invitation<import("@agoric/vow").Vow<string>, {
|
|
27
|
+
msgs: Parameters<import("@agoric/vats/src/localchain.js").QueryManyFn>[0];
|
|
28
|
+
}>>;
|
|
26
29
|
}>;
|
|
27
30
|
}>;
|
|
28
31
|
export type BasicFlowsSF = typeof start;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-flows.contract.d.ts","sourceRoot":"","sources":["basic-flows.contract.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"basic-flows.contract.d.ts","sourceRoot":"","sources":["basic-flows.contract.js"],"names":[],"mappings":"AAoFA;gBAjEiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiEsB;2BAGnC,OAAO,KAAK;yCA3EY,0BAA0B"}
|
|
@@ -43,6 +43,7 @@ const contract = async (
|
|
|
43
43
|
makeSendICQQueryInvitation: M.callWhen().returns(InvitationShape),
|
|
44
44
|
makeAccountAndSendBalanceQueryInvitation:
|
|
45
45
|
M.callWhen().returns(InvitationShape),
|
|
46
|
+
makeSendLocalQueryInvitation: M.callWhen().returns(InvitationShape),
|
|
46
47
|
}),
|
|
47
48
|
{
|
|
48
49
|
makeOrchAccountInvitation() {
|
|
@@ -59,7 +60,7 @@ const contract = async (
|
|
|
59
60
|
},
|
|
60
61
|
makeSendICQQueryInvitation() {
|
|
61
62
|
return zcf.makeInvitation(
|
|
62
|
-
orchFns.
|
|
63
|
+
orchFns.sendICQQuery,
|
|
63
64
|
'Submit a query to a remote chain',
|
|
64
65
|
);
|
|
65
66
|
},
|
|
@@ -69,6 +70,12 @@ const contract = async (
|
|
|
69
70
|
'Make an account and submit a balance query',
|
|
70
71
|
);
|
|
71
72
|
},
|
|
73
|
+
makeSendLocalQueryInvitation() {
|
|
74
|
+
return zcf.makeInvitation(
|
|
75
|
+
orchFns.sendLocalQuery,
|
|
76
|
+
'Submit a query to the local chain',
|
|
77
|
+
);
|
|
78
|
+
},
|
|
72
79
|
},
|
|
73
80
|
);
|
|
74
81
|
|
|
@@ -13,18 +13,21 @@ export function makePortfolioAccount(orch: Orchestrator, { makePortfolioHolder }
|
|
|
13
13
|
MakeInvitation<IA extends unknown[]>(chainName: string, action: string, invitationArgs: IA): Promise<Invitation<unknown, IA>>;
|
|
14
14
|
}>;
|
|
15
15
|
}>>;
|
|
16
|
-
export function
|
|
16
|
+
export function sendICQQuery(orch: Orchestrator, _ctx: any, seat: ZCFSeat, { chainName, msgs }: {
|
|
17
17
|
chainName: string;
|
|
18
|
-
msgs:
|
|
19
|
-
}): Promise<
|
|
18
|
+
msgs: Parameters<ICQQueryFunction>[0];
|
|
19
|
+
}): Promise<string>;
|
|
20
20
|
export function makeAccountAndSendBalanceQuery(orch: Orchestrator, _ctx: any, seat: ZCFSeat, { chainName, denom }: {
|
|
21
21
|
chainName: string;
|
|
22
22
|
denom: DenomArg;
|
|
23
|
-
}): Promise<
|
|
23
|
+
}): Promise<string>;
|
|
24
|
+
export function sendLocalQuery(orch: Orchestrator, _ctx: any, seat: ZCFSeat, { msgs }: {
|
|
25
|
+
msgs: Parameters<QueryManyFn>[0];
|
|
26
|
+
}): Promise<string>;
|
|
24
27
|
import type { Orchestrator } from '@agoric/orchestration';
|
|
25
28
|
import type { MakePortfolioHolder } from '../exos/portfolio-holder-kit.js';
|
|
26
29
|
import type { ResolvedPublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
27
|
-
import type {
|
|
28
|
-
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
30
|
+
import type { ICQQueryFunction } from '@agoric/orchestration';
|
|
29
31
|
import type { DenomArg } from '@agoric/orchestration';
|
|
32
|
+
import type { QueryManyFn } from '@agoric/vats/src/localchain.js';
|
|
30
33
|
//# sourceMappingURL=basic-flows.flows.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-flows.flows.d.ts","sourceRoot":"","sources":["basic-flows.flows.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"basic-flows.flows.d.ts","sourceRoot":"","sources":["basic-flows.flows.js"],"names":[],"mappings":"AA+BO,sCALI,YAAY,QACZ,GAAG,QACH,OAAO,iBACP;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,0EAQ/B;AAgBM,2CANI,YAAY,2BAEpB;IAAiC,mBAAmB,EAA5C,mBAAmB;CAC3B,QAAQ,OAAO,kBACP;IAAE,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;;;IAkClC;AAeM,mCALI,YAAY,QACZ,GAAG,QACH,OAAO,uBACP;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAA;CAAE,mBActE;AAeM,qDALI,YAAY,QACZ,GAAG,QACH,OAAO,wBACP;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,mBAiBhD;AAiBM,qCAPI,YAAY,QACZ,GAAG,QACH,OAAO,YACP;IACV,IAAQ,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;CAClC,mBASH;kCA3J+J,uBAAuB;yCAMjJ,iCAAiC;yCALjC,2CAA2C;sCAD+E,uBAAuB;8BAAvB,uBAAuB;iCAGzJ,gCAAgC"}
|
|
@@ -2,13 +2,17 @@
|
|
|
2
2
|
* @file Primarily a testing fixture, but also serves as an example of how to
|
|
3
3
|
* leverage basic functionality of the Orchestration API with async-flow.
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { makeTracer } from '@agoric/internal';
|
|
6
|
+
import { Fail, q } from '@endo/errors';
|
|
6
7
|
import { M, mustMatch } from '@endo/patterns';
|
|
7
8
|
|
|
9
|
+
const trace = makeTracer('BasicFlows');
|
|
10
|
+
|
|
8
11
|
/**
|
|
9
|
-
* @import {DenomArg, OrchestrationAccount, OrchestrationFlow, Orchestrator} from '@agoric/orchestration';
|
|
12
|
+
* @import {Chain, DenomArg, OrchestrationAccount, OrchestrationFlow, Orchestrator, KnownChains, OrchestrationAccountI, ICQQueryFunction, CosmosChainInfo} from '@agoric/orchestration';
|
|
10
13
|
* @import {ResolvedPublicTopic} from '@agoric/zoe/src/contractSupport/topics.js';
|
|
11
14
|
* @import {JsonSafe} from '@agoric/cosmic-proto';
|
|
15
|
+
* @import {QueryManyFn} from '@agoric/vats/src/localchain.js';
|
|
12
16
|
* @import {RequestQuery} from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
13
17
|
* @import {OrchestrationPowers} from '../utils/start-helper.js';
|
|
14
18
|
* @import {MakePortfolioHolder} from '../exos/portfolio-holder-kit.js';
|
|
@@ -83,27 +87,31 @@ export const makePortfolioAccount = async (
|
|
|
83
87
|
harden(makePortfolioAccount);
|
|
84
88
|
|
|
85
89
|
/**
|
|
86
|
-
* Send a query and get the response back in an offer result.
|
|
87
|
-
* for testing only. In a real scenario it's better to use an
|
|
88
|
-
* and vstorage to retrieve data for a frontend. Queries
|
|
89
|
-
* leveraged if contract logic requires it.
|
|
90
|
+
* Send a query to a remote chain and get the response back in an offer result.
|
|
91
|
+
* This invitation is for testing only. In a real scenario it's better to use an
|
|
92
|
+
* RPC or API client and vstorage to retrieve data for a frontend. Queries
|
|
93
|
+
* should only be leveraged if contract logic requires it.
|
|
90
94
|
*
|
|
91
95
|
* @satisfies {OrchestrationFlow}
|
|
92
96
|
* @param {Orchestrator} orch
|
|
93
97
|
* @param {any} _ctx
|
|
94
98
|
* @param {ZCFSeat} seat
|
|
95
|
-
* @param {{ chainName: string; msgs:
|
|
99
|
+
* @param {{ chainName: string; msgs: Parameters<ICQQueryFunction>[0] }} offerArgs
|
|
96
100
|
*/
|
|
97
|
-
export const
|
|
101
|
+
export const sendICQQuery = async (orch, _ctx, seat, { chainName, msgs }) => {
|
|
98
102
|
seat.exit(); // no funds exchanged
|
|
99
103
|
mustMatch(chainName, M.string());
|
|
100
104
|
if (chainName === 'agoric') throw Fail`ICQ not supported on local chain`;
|
|
101
|
-
const remoteChain =
|
|
105
|
+
const remoteChain =
|
|
106
|
+
/** @type {Chain<CosmosChainInfo & { icqEnabled: true }>} */ (
|
|
107
|
+
await orch.getChain(chainName)
|
|
108
|
+
);
|
|
102
109
|
const queryResponse = await remoteChain.query(msgs);
|
|
103
|
-
|
|
104
|
-
|
|
110
|
+
trace('SendICQQuery response:', queryResponse);
|
|
111
|
+
// `quote` to ensure offerResult (array) is visible in smart-wallet
|
|
112
|
+
return q(queryResponse).toString();
|
|
105
113
|
};
|
|
106
|
-
harden(
|
|
114
|
+
harden(sendICQQuery);
|
|
107
115
|
|
|
108
116
|
/**
|
|
109
117
|
* Create an account and send a query and get the response back in an offer
|
|
@@ -129,7 +137,32 @@ export const makeAccountAndSendBalanceQuery = async (
|
|
|
129
137
|
const remoteChain = await orch.getChain(chainName);
|
|
130
138
|
const orchAccount = await remoteChain.makeAccount();
|
|
131
139
|
const queryResponse = await orchAccount.getBalance(denom);
|
|
132
|
-
|
|
133
|
-
|
|
140
|
+
trace('ICQ Balance Query response:', queryResponse);
|
|
141
|
+
// `quote` to ensure offerResult (record) is visible in smart-wallet
|
|
142
|
+
return q(queryResponse).toString();
|
|
134
143
|
};
|
|
135
144
|
harden(makeAccountAndSendBalanceQuery);
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Send a query to the local chain and get the response back in an offer result.
|
|
148
|
+
* This invitation is for testing only. In a real scenario it's better to use an
|
|
149
|
+
* RPC or API client and vstorage to retrieve data for a frontend. Queries
|
|
150
|
+
* should only be leveraged if contract logic requires it.
|
|
151
|
+
*
|
|
152
|
+
* @satisfies {OrchestrationFlow}
|
|
153
|
+
* @param {Orchestrator} orch
|
|
154
|
+
* @param {any} _ctx
|
|
155
|
+
* @param {ZCFSeat} seat
|
|
156
|
+
* @param {{
|
|
157
|
+
* msgs: Parameters<QueryManyFn>[0];
|
|
158
|
+
* }} offerArgs
|
|
159
|
+
*/
|
|
160
|
+
export const sendLocalQuery = async (orch, _ctx, seat, { msgs }) => {
|
|
161
|
+
seat.exit(); // no funds exchanged
|
|
162
|
+
const remoteChain = await orch.getChain('agoric');
|
|
163
|
+
const queryResponse = await remoteChain.query(msgs);
|
|
164
|
+
trace('Local Query response:', queryResponse);
|
|
165
|
+
// `quote` to ensure offerResult (array) is visible in smart-wallet
|
|
166
|
+
return q(queryResponse).toString();
|
|
167
|
+
};
|
|
168
|
+
harden(sendLocalQuery);
|
|
@@ -24,7 +24,25 @@ export function prepareLocalChainFacade(zone: Zone, powers: LocalChainFacadePowe
|
|
|
24
24
|
}>>;
|
|
25
25
|
/** @returns {Vow<LocalOrchestrationAccountKit['holder']>} */
|
|
26
26
|
makeAccount(): Vow<LocalOrchestrationAccountKit["holder"]>;
|
|
27
|
-
|
|
27
|
+
/** @type {HostOf<Chain<{ chainId: 'agoriclocal' }>['query']>} */
|
|
28
|
+
query(args_0: {
|
|
29
|
+
'@type': string;
|
|
30
|
+
}[]): Vow<import("@agoric/cosmic-proto").JsonSafe<{
|
|
31
|
+
error?: string;
|
|
32
|
+
reply: {
|
|
33
|
+
'@type': string;
|
|
34
|
+
};
|
|
35
|
+
}>[] extends import("@endo/pass-style").Passable ? import("@agoric/cosmic-proto").JsonSafe<{
|
|
36
|
+
error?: string;
|
|
37
|
+
reply: {
|
|
38
|
+
'@type': string;
|
|
39
|
+
};
|
|
40
|
+
}>[] : import("@agoric/async-flow").HostInterface<import("@agoric/cosmic-proto").JsonSafe<{
|
|
41
|
+
error?: string;
|
|
42
|
+
reply: {
|
|
43
|
+
'@type': string;
|
|
44
|
+
};
|
|
45
|
+
}>[]>>;
|
|
28
46
|
/** @type {HostOf<AgoricChainMethods['getVBankAssetInfo']>} */
|
|
29
47
|
getVBankAssetInfo(): Vow<AssetInfo[] extends import("@endo/pass-style").Passable ? AssetInfo[] : import("@agoric/async-flow").HostInterface<AssetInfo[]>>;
|
|
30
48
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"AAuLO,8CAHI,IAAI,UACJ,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;QAlFzB,6DAA6D;uBAA/C,IAAI,4BAA4B,CAAC,QAAQ,CAAC,CAAC
|
|
1
|
+
{"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["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
@@ -6,21 +6,20 @@ import { M } from '@endo/patterns';
|
|
|
6
6
|
import { pickFacet } from '@agoric/vat-data';
|
|
7
7
|
import { VowShape } from '@agoric/vow';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import { chainFacadeMethods } from '../typeGuards.js';
|
|
9
|
+
import { chainFacadeMethods, TypedJsonShape } from '../typeGuards.js';
|
|
11
10
|
|
|
12
11
|
/**
|
|
13
12
|
* @import {HostOf} from '@agoric/async-flow';
|
|
14
13
|
* @import {Zone} from '@agoric/base-zone';
|
|
15
14
|
* @import {TimerService} from '@agoric/time';
|
|
16
15
|
* @import {Remote} from '@agoric/internal';
|
|
17
|
-
* @import {LocalChain, LocalChainAccount} from '@agoric/vats/src/localchain.js';
|
|
16
|
+
* @import {LocalChain, LocalChainAccount, QueryManyFn} from '@agoric/vats/src/localchain.js';
|
|
18
17
|
* @import {AssetInfo} from '@agoric/vats/src/vat-bank.js';
|
|
19
18
|
* @import {NameHub} from '@agoric/vats';
|
|
20
19
|
* @import {Vow, VowTools} from '@agoric/vow';
|
|
21
20
|
* @import {CosmosInterchainService} from './cosmos-interchain-service.js';
|
|
22
21
|
* @import {LocalOrchestrationAccountKit, MakeLocalOrchestrationAccountKit} from './local-orchestration-account.js';
|
|
23
|
-
* @import {ChainAddress, ChainInfo, CosmosChainInfo, IBCConnectionInfo, OrchestrationAccount} from '../types.js';
|
|
22
|
+
* @import {Chain, ChainAddress, ChainInfo, CosmosChainInfo, IBCConnectionInfo, OrchestrationAccount} from '../types.js';
|
|
24
23
|
*/
|
|
25
24
|
|
|
26
25
|
/**
|
|
@@ -64,6 +63,7 @@ const prepareLocalChainFacadeKit = (
|
|
|
64
63
|
{
|
|
65
64
|
public: M.interface('LocalChainFacade', {
|
|
66
65
|
...chainFacadeMethods,
|
|
66
|
+
query: M.call(M.arrayOf(TypedJsonShape)).returns(VowShape),
|
|
67
67
|
getVBankAssetInfo: M.call().optional(M.boolean()).returns(VowShape),
|
|
68
68
|
}),
|
|
69
69
|
vbankAssetValuesWatcher: M.interface('vbankAssetValuesWatcher', {
|
|
@@ -108,9 +108,9 @@ const prepareLocalChainFacadeKit = (
|
|
|
108
108
|
this.facets.makeAccountWatcher,
|
|
109
109
|
);
|
|
110
110
|
},
|
|
111
|
-
query
|
|
112
|
-
|
|
113
|
-
return
|
|
111
|
+
/** @type {HostOf<Chain<{ chainId: 'agoriclocal' }>['query']>} */
|
|
112
|
+
query(requests) {
|
|
113
|
+
return watch(E(localchain).queryMany(requests));
|
|
114
114
|
},
|
|
115
115
|
/** @type {HostOf<AgoricChainMethods['getVBankAssetInfo']>} */
|
|
116
116
|
getVBankAssetInfo() {
|
|
@@ -34,7 +34,24 @@ export function prepareOrchestrator(zone: Zone, powers: {
|
|
|
34
34
|
}>>;
|
|
35
35
|
}>>;
|
|
36
36
|
makeAccount(): Vow<import("./local-orchestration-account.js").LocalOrchestrationAccountKit["holder"]>;
|
|
37
|
-
query(
|
|
37
|
+
query(args_0: {
|
|
38
|
+
'@type': string;
|
|
39
|
+
}[]): Vow<import("@agoric/cosmic-proto").JsonSafe<{
|
|
40
|
+
error?: string;
|
|
41
|
+
reply: {
|
|
42
|
+
'@type': string;
|
|
43
|
+
};
|
|
44
|
+
}>[] extends import("@endo/pass-style").Passable ? import("@agoric/cosmic-proto").JsonSafe<{
|
|
45
|
+
error?: string;
|
|
46
|
+
reply: {
|
|
47
|
+
'@type': string;
|
|
48
|
+
};
|
|
49
|
+
}>[] : HostInterface<import("@agoric/cosmic-proto").JsonSafe<{
|
|
50
|
+
error?: string;
|
|
51
|
+
reply: {
|
|
52
|
+
'@type': string;
|
|
53
|
+
};
|
|
54
|
+
}>[]>>;
|
|
38
55
|
getVBankAssetInfo(): Vow<import("@agoric/vats/src/vat-bank.js").AssetInfo[] extends import("@endo/pass-style").Passable ? import("@agoric/vats/src/vat-bank.js").AssetInfo[] : HostInterface<import("@agoric/vats/src/vat-bank.js").AssetInfo[]>>;
|
|
39
56
|
}>;
|
|
40
57
|
};
|
|
@@ -53,7 +70,7 @@ export function prepareOrchestrator(zone: Zone, powers: {
|
|
|
53
70
|
onFulfilled([_agoricChainInfo, remoteChainInfo, connectionInfo]: [ChainInfo, ChainInfo, IBCConnectionInfo], name: string): import("@endo/exo").Guarded<{
|
|
54
71
|
getChainInfo(): Vow<any extends import("@endo/pass-style").Passable ? any : HostInterface<any>>;
|
|
55
72
|
makeAccount(): Vow<import("../orchestration-api.js").OrchestrationAccount<any> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../orchestration-api.js").OrchestrationAccount<any> : HostInterface<import("../orchestration-api.js").OrchestrationAccount<any>>>;
|
|
56
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Vow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]
|
|
73
|
+
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Vow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[] extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[] : HostInterface<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>>;
|
|
57
74
|
}>;
|
|
58
75
|
};
|
|
59
76
|
orchestrator: {
|
|
@@ -4732,7 +4749,24 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, localchain, chai
|
|
|
4732
4749
|
}>>;
|
|
4733
4750
|
}>>;
|
|
4734
4751
|
makeAccount(): Vow<import("./local-orchestration-account.js").LocalOrchestrationAccountKit["holder"]>;
|
|
4735
|
-
query(
|
|
4752
|
+
query(args_0: {
|
|
4753
|
+
'@type': string;
|
|
4754
|
+
}[]): Vow<import("@agoric/cosmic-proto").JsonSafe<{
|
|
4755
|
+
error?: string;
|
|
4756
|
+
reply: {
|
|
4757
|
+
'@type': string;
|
|
4758
|
+
};
|
|
4759
|
+
}>[] extends import("@endo/pass-style").Passable ? import("@agoric/cosmic-proto").JsonSafe<{
|
|
4760
|
+
error?: string;
|
|
4761
|
+
reply: {
|
|
4762
|
+
'@type': string;
|
|
4763
|
+
};
|
|
4764
|
+
}>[] : HostInterface<import("@agoric/cosmic-proto").JsonSafe<{
|
|
4765
|
+
error?: string;
|
|
4766
|
+
reply: {
|
|
4767
|
+
'@type': string;
|
|
4768
|
+
};
|
|
4769
|
+
}>[]>>;
|
|
4736
4770
|
getVBankAssetInfo(): Vow<import("@agoric/vats/src/vat-bank.js").AssetInfo[] extends import("@endo/pass-style").Passable ? import("@agoric/vats/src/vat-bank.js").AssetInfo[] : HostInterface<import("@agoric/vats/src/vat-bank.js").AssetInfo[]>>;
|
|
4737
4771
|
}>;
|
|
4738
4772
|
};
|
|
@@ -4751,7 +4785,7 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, localchain, chai
|
|
|
4751
4785
|
onFulfilled([_agoricChainInfo, remoteChainInfo, connectionInfo]: [ChainInfo, ChainInfo, IBCConnectionInfo], name: string): import("@endo/exo").Guarded<{
|
|
4752
4786
|
getChainInfo(): Vow<any extends import("@endo/pass-style").Passable ? any : HostInterface<any>>;
|
|
4753
4787
|
makeAccount(): Vow<import("../orchestration-api.js").OrchestrationAccount<any> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../orchestration-api.js").OrchestrationAccount<any> : HostInterface<import("../orchestration-api.js").OrchestrationAccount<any>>>;
|
|
4754
|
-
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Vow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]
|
|
4788
|
+
query(msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Vow<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[] extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[] : HostInterface<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>>;
|
|
4755
4789
|
}>;
|
|
4756
4790
|
};
|
|
4757
4791
|
orchestrator: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestrator.d.ts","sourceRoot":"","sources":["orchestrator.js"],"names":[],"mappings":"AAoCA,0BAA0B;AAC1B;;;;;GAKG;AAyII,0CAhBI,IAAI,UACJ;IACV,cAAkB,EAAE,cAAc,CAAC;IACnC,QAAY,EAAE,QAAQ,CAAC;IACvB,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,WAAe,EAAE,QAAQ,CAAC,MAAM,EAAE,yBAAoB,CAAC,CAAC;IACxD,eAAmB,EAAE,eAAe,CAAC;IACrC,oBAAwB,EAAE,oBAAoB,CAAC;IAC/C,qBAAyB,EAAE,qBAAqB,CAAC;IACjD,oBAAwB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC1D,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,YAAgB,EAAE,OAAO,YAAY,CAAC,CAAC;IACvC,QAAY,EAAE,QAAQ,CAAC;IACvB,GAAO,EAAE,GAAG,CAAC;CACV;IApFE,2DAA2D;;QAEzD;;WAEG;qCADQ,gBAAgB,QAAQ,CAAC;;;;;;;;;;;;;;IAQtC;;;OAGG;;QAED;;;;;;WAMG;0HADQ,MAAM;;;;;;;QASjB,+CAA+C;;;;;;;;;;QAoB/C,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAYnD,+CAA+C;kBAApC,OAAO,YAAY,CAAC,UAAU,CAAC,CAAC;;GAIhD"}
|
|
@@ -18,8 +18,12 @@ export function prepareRemoteChainFacade(zone: Zone, powers: RemoteChainFacadePo
|
|
|
18
18
|
getChainInfo(): Vow<any extends import("@endo/pass-style").Passable ? any : import("@agoric/async-flow").HostInterface<any>>;
|
|
19
19
|
/** @type {HostOf<Chain['makeAccount']>} */
|
|
20
20
|
makeAccount(): Vow<import("../orchestration-api.js").OrchestrationAccount<any> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../orchestration-api.js").OrchestrationAccount<any> : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").OrchestrationAccount<any>>>;
|
|
21
|
-
/**
|
|
22
|
-
|
|
21
|
+
/**
|
|
22
|
+
* @type {HostOf<
|
|
23
|
+
* Chain<CosmosChainInfo & { icqEnabled: true }>['query']
|
|
24
|
+
* >}
|
|
25
|
+
*/
|
|
26
|
+
query(msgs: JsonSafe<RequestQuery>[]): Vow<JsonSafe<ResponseQuery>[] extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & JsonSafe<ResponseQuery>[] : import("@agoric/async-flow").HostInterface<JsonSafe<ResponseQuery>[]>>;
|
|
23
27
|
};
|
|
24
28
|
makeAccountAndProvideQueryConnWatcher: {
|
|
25
29
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-chain-facade.d.ts","sourceRoot":"","sources":["remote-chain-facade.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"remote-chain-facade.d.ts","sourceRoot":"","sources":["remote-chain-facade.js"],"names":[],"mappings":"AAwQO,+CAHI,IAAI,UACJ,uBAAuB;;;;;;;;;;;;;;;;QAhJ1B,4CAA4C;;QAK5C,2CAA2C;;QA0B3C;;;;WAIG;;;;QAuBH;;WAEG;8CADQ,CAAC,UAAU,EAAE,aAAa,GAAG,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;QAmBlD;;;;WAIG;mCAHQ,aAAa,QACb,SAAS,YAAY,CAAC,EAAE,GACtB,IAAI,SAAS,aAAa,CAAC,EAAE,CAAC;;;QAU3C;;;WAGG;iEAFQ,CAAC,YAAY,EAAE,eAAe,EAAE,gBAAgB,CAAC,WACjD,UAAU;;;;;;;;;;;;;;;;;;;;QAWrB;;;;;;;;WAQG;+BAPQ,OAAO,WAAW,CAAC,0DACnB;YACV,OAAW,EAAE,UAAU,CAAC;YACxB,YAAgB,EAAE,YAAY,CAAC;YAC/B,YAAgB,EAAE,eAAe,CAAC;YAClC,aAAiB,EAAE,gBAAgB,CAAC;SACjC;;;;;;;;;;;;;;;;;;;cAsCX;sCA7OY;IACZ,8BAAkC,EAAE,UAAU,CAC9C,wCAA8C,CACzC,CAAC;IACN,aAAiB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IACnD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,KAAS,EAAE,OAAO,YAAY,CAAC,CAAC;IAChC,QAAY,EAAE,QAAQ,CAAC;CACpB;qCAIS;IACZ,eAAmB,EAAE,eAAe,CAAC;IACrC,cAAkB,EAAE,iBAAiB,CAAC;IACtC,aAAiB,EAAE,aAAa,GAAG,SAAS,CAAC;CAC1C;oCAgOU,UAAU,CAAC,OAAO,wBAAwB,CAAC;gCAC3C,UAAU,CAAC,qBAAqB,CAAC;0BAhQxB,mBAAmB;uCAS2D,aAAa;yBAJlF,aAAa;kCAHC,+CAA+C;8BADlE,sBAAsB;mCACH,+CAA+C;gCAOQ,aAAa;mCAAb,aAAa;kCAAb,aAAa;qCAH9D,iCAAiC;sCAAjC,iCAAiC;4BAF5D,kBAAkB;uDAIS,mCAAmC;6CAD7C,gCAAgC;kCAJ3C,cAAc;8BAEb,aAAa;qCAIwD,aAAa"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/** @file Remote Chain Facade exo */
|
|
2
2
|
import { makeTracer } from '@agoric/internal';
|
|
3
3
|
import { E } from '@endo/far';
|
|
4
|
+
import { Fail, q } from '@endo/errors';
|
|
4
5
|
import { M } from '@endo/patterns';
|
|
5
6
|
import { pickFacet } from '@agoric/vat-data';
|
|
6
7
|
import { VowShape } from '@agoric/vow';
|
|
7
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
ChainAddressShape,
|
|
10
|
+
chainFacadeMethods,
|
|
11
|
+
ICQMsgShape,
|
|
12
|
+
} from '../typeGuards.js';
|
|
8
13
|
|
|
9
14
|
/**
|
|
10
15
|
* @import {HostOf} from '@agoric/async-flow';
|
|
@@ -20,7 +25,6 @@ import { ChainAddressShape, ChainFacadeI, ICQMsgShape } from '../typeGuards.js';
|
|
|
20
25
|
* @import {CosmosChainInfo, IBCConnectionInfo, ChainAddress, IcaAccount, Chain, ICQConnection} from '../types.js';
|
|
21
26
|
*/
|
|
22
27
|
|
|
23
|
-
const { Fail } = assert;
|
|
24
28
|
const trace = makeTracer('RemoteChainFacade');
|
|
25
29
|
|
|
26
30
|
/**
|
|
@@ -62,7 +66,10 @@ const prepareRemoteChainFacadeKit = (
|
|
|
62
66
|
zone.exoClassKit(
|
|
63
67
|
'RemoteChainFacade',
|
|
64
68
|
{
|
|
65
|
-
public:
|
|
69
|
+
public: M.interface('RemoteChainFacade', {
|
|
70
|
+
...chainFacadeMethods,
|
|
71
|
+
query: M.call(M.arrayOf(ICQMsgShape)).returns(VowShape),
|
|
72
|
+
}),
|
|
66
73
|
makeICQConnectionQueryWatcher: M.interface(
|
|
67
74
|
'makeICQConnectionQueryWatcher',
|
|
68
75
|
{
|
|
@@ -140,7 +147,11 @@ const prepareRemoteChainFacadeKit = (
|
|
|
140
147
|
);
|
|
141
148
|
});
|
|
142
149
|
},
|
|
143
|
-
/**
|
|
150
|
+
/**
|
|
151
|
+
* @type {HostOf<
|
|
152
|
+
* Chain<CosmosChainInfo & { icqEnabled: true }>['query']
|
|
153
|
+
* >}
|
|
154
|
+
*/
|
|
144
155
|
query(msgs) {
|
|
145
156
|
return asVow(() => {
|
|
146
157
|
const {
|
|
@@ -148,7 +159,7 @@ const prepareRemoteChainFacadeKit = (
|
|
|
148
159
|
connectionInfo,
|
|
149
160
|
} = this.state;
|
|
150
161
|
if (!icqEnabled) {
|
|
151
|
-
throw Fail`Queries not available for chain ${chainId}`;
|
|
162
|
+
throw Fail`Queries not available for chain ${q(chainId)}`;
|
|
152
163
|
}
|
|
153
164
|
// if none exists, make one and still send the query in the handler
|
|
154
165
|
if (!this.state.icqConnection) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { Amount, Brand, NatAmount } from '@agoric/ertp/src/types.js';
|
|
7
7
|
import type { Timestamp } from '@agoric/time';
|
|
8
|
-
import type { LocalChainAccount } from '@agoric/vats/src/localchain.js';
|
|
8
|
+
import type { LocalChainAccount, QueryManyFn } from '@agoric/vats/src/localchain.js';
|
|
9
9
|
import type { ResolvedPublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
10
10
|
import type { Passable } from '@endo/marshal';
|
|
11
11
|
import type { AgoricChainMethods, ChainInfo, CosmosChainAccountMethods, CosmosChainInfo, IBCMsgTransferOptions, KnownChains, LocalAccountMethods, ICQQueryFunction } from './types.js';
|
|
@@ -62,7 +62,7 @@ export interface Chain<CI extends ChainInfo> {
|
|
|
62
62
|
makeAccount: () => Promise<OrchestrationAccount<CI>>;
|
|
63
63
|
query: CI extends {
|
|
64
64
|
icqEnabled: true;
|
|
65
|
-
} ? ICQQueryFunction : never;
|
|
65
|
+
} ? ICQQueryFunction : CI['chainId'] extends `agoric${string}` ? QueryManyFn : never;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* Provided in the callback to `orchestrate()`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"orchestration-api.d.ts","sourceRoot":"","sources":["orchestration-api.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"orchestration-api.d.ts","sourceRoot":"","sources":["orchestration-api.ts"],"names":[],"mappings":"AACA;;;;GAIG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,iBAAiB,EACjB,WAAW,EACZ,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AACrF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,SAAS,EACT,yBAAyB,EACzB,eAAe,EACf,qBAAqB,EACrB,WAAW,EACX,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,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,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
package/src/orchestration-api.ts
CHANGED
|
@@ -7,7 +7,10 @@
|
|
|
7
7
|
import type { Amount, Brand, NatAmount } from '@agoric/ertp/src/types.js';
|
|
8
8
|
import type { CurrentWalletRecord } from '@agoric/smart-wallet/src/smartWallet.js';
|
|
9
9
|
import type { Timestamp } from '@agoric/time';
|
|
10
|
-
import type {
|
|
10
|
+
import type {
|
|
11
|
+
LocalChainAccount,
|
|
12
|
+
QueryManyFn,
|
|
13
|
+
} from '@agoric/vats/src/localchain.js';
|
|
11
14
|
import type { ResolvedPublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
12
15
|
import type { Passable } from '@endo/marshal';
|
|
13
16
|
import type {
|
|
@@ -89,7 +92,11 @@ export interface Chain<CI extends ChainInfo> {
|
|
|
89
92
|
makeAccount: () => Promise<OrchestrationAccount<CI>>;
|
|
90
93
|
// FUTURE supply optional port object; also fetch port object
|
|
91
94
|
|
|
92
|
-
query: CI extends { icqEnabled: true }
|
|
95
|
+
query: CI extends { icqEnabled: true }
|
|
96
|
+
? ICQQueryFunction
|
|
97
|
+
: CI['chainId'] extends `agoric${string}`
|
|
98
|
+
? QueryManyFn
|
|
99
|
+
: never;
|
|
93
100
|
|
|
94
101
|
// TODO provide a way to get the local denom/brand/whatever for this chain
|
|
95
102
|
}
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* @import {ChainAddress, CosmosAssetInfo, ChainInfo, CosmosChainInfo, DenomAmount} from './types.js';
|
|
4
4
|
* @import {Delegation} from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
|
|
5
5
|
* @import {TxBody} from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
6
|
+
* @import {TypedJson} from '@agoric/cosmic-proto';
|
|
6
7
|
*/
|
|
7
8
|
/**
|
|
8
9
|
* Used for IBC Channel Connections that only send outgoing transactions. If
|
|
@@ -39,17 +40,12 @@ export const BrandInfoShape: import("@endo/patterns").Matcher;
|
|
|
39
40
|
export const DenomAmountShape: TypedPattern<DenomAmount>;
|
|
40
41
|
export const AmountArgShape: import("@endo/patterns").Matcher;
|
|
41
42
|
export const ICQMsgShape: import("@endo/patterns").Matcher;
|
|
43
|
+
/** @type {TypedPattern<TypedJson>} */
|
|
44
|
+
export const TypedJsonShape: TypedPattern<TypedJson>;
|
|
42
45
|
export namespace chainFacadeMethods {
|
|
43
46
|
let getChainInfo: import("@endo/patterns").MethodGuard;
|
|
44
47
|
let makeAccount: import("@endo/patterns").MethodGuard;
|
|
45
|
-
let query: import("@endo/patterns").MethodGuard;
|
|
46
48
|
}
|
|
47
|
-
/** @see {Chain} */
|
|
48
|
-
export const ChainFacadeI: import("@endo/patterns").InterfaceGuard<{
|
|
49
|
-
getChainInfo: import("@endo/patterns").MethodGuard;
|
|
50
|
-
makeAccount: import("@endo/patterns").MethodGuard;
|
|
51
|
-
query: import("@endo/patterns").MethodGuard;
|
|
52
|
-
}>;
|
|
53
49
|
export namespace TimestampProtoShape {
|
|
54
50
|
let seconds: import("@endo/patterns").Matcher;
|
|
55
51
|
let nanos: import("@endo/patterns").Matcher;
|
|
@@ -63,4 +59,5 @@ import type { CosmosAssetInfo } from './types.js';
|
|
|
63
59
|
import type { CosmosChainInfo } from './types.js';
|
|
64
60
|
import type { ChainInfo } from './types.js';
|
|
65
61
|
import type { DenomAmount } from './types.js';
|
|
62
|
+
import type { TypedJson } from '@agoric/cosmic-proto';
|
|
66
63
|
//# sourceMappingURL=typeGuards.d.ts.map
|
package/src/typeGuards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAIA
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAIA;;;;;;GAMG;AAEH;;;;GAIG;AACH;;;GAQE;AAEF,yCAAyC;AACzC,gCADW,aAAa,YAAY,CAAC,CAKnC;;;;;AAQF,uCAAuC;AACvC,8BADW,aAAa,UAAU,CAAC,CAIhC;AAEH,uEAUE;AAEF,iEAA4C;AAC5C,mEAQG;AACH,oEAA+C;AAC/C,sEAYG;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CASrC;AAEH,4CAA4C;AAC5C,mCADW,aAAa,eAAe,CAAC,CAWtC;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CAG/B;AACH,sEAAuE;AACvE,0DAAqC;AAErC,8DAAsC;AAEtC,wCAAwC;AACxC,+BADW,aAAa,WAAW,CAAC,CACqC;AAEzE,8DAAkE;AAElE,2DAGE;AAEF,sCAAsC;AACtC,6BADW,aAAa,SAAS,CAAC,CACmC;;;;;;;;;AAcrE,0CAA0C;AAC1C,+DAQE;kCAhJuF,YAAY;kCADtE,kBAAkB;gCAEpB,wDAAwD;qCADI,YAAY;qCAAZ,YAAY;+BAAZ,YAAY;iCAAZ,YAAY;+BAGzE,sBAAsB"}
|
package/src/typeGuards.js
CHANGED
|
@@ -7,6 +7,7 @@ import { M } from '@endo/patterns';
|
|
|
7
7
|
* @import {ChainAddress, CosmosAssetInfo, ChainInfo, CosmosChainInfo, DenomAmount} from './types.js';
|
|
8
8
|
* @import {Delegation} from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
|
|
9
9
|
* @import {TxBody} from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
10
|
+
* @import {TypedJson} from '@agoric/cosmic-proto';
|
|
10
11
|
*/
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -123,15 +124,15 @@ export const ICQMsgShape = M.splitRecord(
|
|
|
123
124
|
{ height: M.string(), prove: M.boolean() },
|
|
124
125
|
);
|
|
125
126
|
|
|
127
|
+
/** @type {TypedPattern<TypedJson>} */
|
|
128
|
+
export const TypedJsonShape = M.splitRecord({ '@type': M.string() });
|
|
129
|
+
|
|
130
|
+
/** @see {Chain} */
|
|
126
131
|
export const chainFacadeMethods = harden({
|
|
127
132
|
getChainInfo: M.call().returns(VowShape),
|
|
128
133
|
makeAccount: M.call().returns(VowShape),
|
|
129
|
-
query: M.call(M.arrayOf(ICQMsgShape)).returns(VowShape),
|
|
130
134
|
});
|
|
131
135
|
|
|
132
|
-
/** @see {Chain} */
|
|
133
|
-
export const ChainFacadeI = M.interface('ChainFacade', chainFacadeMethods);
|
|
134
|
-
|
|
135
136
|
/**
|
|
136
137
|
* for google/protobuf/timestamp.proto, not to be confused with TimestampShape
|
|
137
138
|
* from `@agoric/time`
|