@agoric/orchestration 0.1.1-dev-03f13e7.0 → 0.1.1-dev-6d97bc4.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/cosmos-api.d.ts +3 -1
- package/src/cosmos-api.d.ts.map +1 -1
- package/src/cosmos-api.ts +9 -1
- package/src/examples/basic-flows.contract.d.ts +8 -0
- package/src/examples/basic-flows.contract.d.ts.map +1 -1
- package/src/examples/basic-flows.contract.js +15 -0
- package/src/examples/basic-flows.flows.d.ts +11 -0
- package/src/examples/basic-flows.flows.d.ts.map +1 -1
- package/src/examples/basic-flows.flows.js +56 -2
- package/src/exos/icq-connection-kit.d.ts +6 -5
- package/src/exos/icq-connection-kit.d.ts.map +1 -1
- package/src/exos/icq-connection-kit.js +14 -19
- package/src/exos/local-chain-facade.d.ts +1 -0
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-chain-facade.js +5 -0
- package/src/exos/orchestrator.d.ts +4 -0
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.d.ts +67 -51
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.js +106 -43
- package/src/orchestration-api.d.ts +4 -1
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +3 -0
- package/src/typeGuards.d.ts +3 -0
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +6 -0
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-6d97bc4.0+6d97bc4",
|
|
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-6d97bc4.0+6d97bc4",
|
|
37
|
+
"@agoric/cosmic-proto": "0.4.1-dev-6d97bc4.0+6d97bc4",
|
|
38
|
+
"@agoric/ertp": "0.16.3-dev-6d97bc4.0+6d97bc4",
|
|
39
|
+
"@agoric/internal": "0.3.3-dev-6d97bc4.0+6d97bc4",
|
|
40
|
+
"@agoric/network": "0.1.1-dev-6d97bc4.0+6d97bc4",
|
|
41
|
+
"@agoric/notifier": "0.6.3-dev-6d97bc4.0+6d97bc4",
|
|
42
|
+
"@agoric/store": "0.9.3-dev-6d97bc4.0+6d97bc4",
|
|
43
|
+
"@agoric/time": "0.3.3-dev-6d97bc4.0+6d97bc4",
|
|
44
|
+
"@agoric/vat-data": "0.5.3-dev-6d97bc4.0+6d97bc4",
|
|
45
|
+
"@agoric/vats": "0.15.2-dev-6d97bc4.0+6d97bc4",
|
|
46
|
+
"@agoric/vow": "0.1.1-dev-6d97bc4.0+6d97bc4",
|
|
47
|
+
"@agoric/zoe": "0.26.3-dev-6d97bc4.0+6d97bc4",
|
|
48
|
+
"@agoric/zone": "0.2.3-dev-6d97bc4.0+6d97bc4",
|
|
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-6d97bc4.0+6d97bc4",
|
|
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": "6d97bc432b27a140805d9cdadb3b357f168ff018"
|
|
98
98
|
}
|
package/src/cosmos-api.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import type { AnyJson, TypedJson } from '@agoric/cosmic-proto';
|
|
1
|
+
import type { AnyJson, TypedJson, JsonSafe } from '@agoric/cosmic-proto';
|
|
2
2
|
import type { Delegation, Redelegation, UnbondingDelegation } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
|
|
3
3
|
import type { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
4
4
|
import type { MsgTransfer } from '@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js';
|
|
5
5
|
import type { State as IBCChannelState, Order } from '@agoric/cosmic-proto/ibc/core/channel/v1/channel.js';
|
|
6
6
|
import type { State as IBCConnectionState } from '@agoric/cosmic-proto/ibc/core/connection/v1/connection.js';
|
|
7
|
+
import type { RequestQuery, ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
7
8
|
import type { Brand, Purse, Payment, Amount } from '@agoric/ertp/src/types.js';
|
|
8
9
|
import type { Port } from '@agoric/network';
|
|
9
10
|
import type { IBCChannelID, IBCConnectionID } from '@agoric/vats';
|
|
@@ -208,4 +209,5 @@ export type CosmosChainAccountMethods<CCI extends CosmosChainInfo> = (CCI extend
|
|
|
208
209
|
} ? IcaAccount : {}) & CCI extends {
|
|
209
210
|
stakingTokens: {};
|
|
210
211
|
} ? StakingAccountActions : {};
|
|
212
|
+
export type ICQQueryFunction = (msgs: JsonSafe<RequestQuery>[]) => Promise<JsonSafe<ResponseQuery>[]>;
|
|
211
213
|
//# sourceMappingURL=cosmos-api.d.ts.map
|
package/src/cosmos-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos-api.d.ts","sourceRoot":"","sources":["cosmos-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"cosmos-api.d.ts","sourceRoot":"","sources":["cosmos-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACzE,OAAO,KAAK,EACV,UAAU,EACV,YAAY,EACZ,mBAAmB,EACpB,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAC3F,OAAO,KAAK,EACV,KAAK,IAAI,eAAe,EACxB,KAAK,EACN,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAC7G,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACd,MAAM,+CAA+C,CAAC;AACvD,OAAO,KAAK,EAA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,GACV,EAAE,CAAC,GACL,GAAG,SAAS;IACZ,aAAa,EAAE,EAAE,CAAC;CACnB,GACG,qBAAqB,GACrB,EAAE,CAAC;AAET,MAAM,MAAM,gBAAgB,GAAG,CAC7B,IAAI,EAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,KAC3B,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC"}
|
package/src/cosmos-api.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyJson, TypedJson } from '@agoric/cosmic-proto';
|
|
1
|
+
import type { AnyJson, TypedJson, JsonSafe } from '@agoric/cosmic-proto';
|
|
2
2
|
import type {
|
|
3
3
|
Delegation,
|
|
4
4
|
Redelegation,
|
|
@@ -11,6 +11,10 @@ import type {
|
|
|
11
11
|
Order,
|
|
12
12
|
} from '@agoric/cosmic-proto/ibc/core/channel/v1/channel.js';
|
|
13
13
|
import type { State as IBCConnectionState } from '@agoric/cosmic-proto/ibc/core/connection/v1/connection.js';
|
|
14
|
+
import type {
|
|
15
|
+
RequestQuery,
|
|
16
|
+
ResponseQuery,
|
|
17
|
+
} from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
14
18
|
import type { Brand, Purse, Payment, Amount } from '@agoric/ertp/src/types.js';
|
|
15
19
|
import type { Port } from '@agoric/network';
|
|
16
20
|
import type { IBCChannelID, IBCConnectionID } from '@agoric/vats';
|
|
@@ -265,3 +269,7 @@ export type CosmosChainAccountMethods<CCI extends CosmosChainInfo> =
|
|
|
265
269
|
}
|
|
266
270
|
? StakingAccountActions
|
|
267
271
|
: {};
|
|
272
|
+
|
|
273
|
+
export type ICQQueryFunction = (
|
|
274
|
+
msgs: JsonSafe<RequestQuery>[],
|
|
275
|
+
) => Promise<JsonSafe<ResponseQuery>[]>;
|
|
@@ -15,6 +15,14 @@ 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<import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>, {
|
|
19
|
+
chainName: string;
|
|
20
|
+
msgs: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[];
|
|
21
|
+
}>>;
|
|
22
|
+
makeAccountAndSendBalanceQueryInvitation(): Promise<Invitation<import("@agoric/vow").Vow<import("../orchestration-api.js").DenomAmount>, {
|
|
23
|
+
chainName: string;
|
|
24
|
+
denom: import("../orchestration-api.js").DenomArg;
|
|
25
|
+
}>>;
|
|
18
26
|
}>;
|
|
19
27
|
}>;
|
|
20
28
|
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":"AA6EA;gBA1DiB,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;GA0DsB;2BAGnC,OAAO,KAAK;yCApEY,0BAA0B"}
|
|
@@ -40,6 +40,9 @@ const contract = async (
|
|
|
40
40
|
M.interface('Basic Flows PF', {
|
|
41
41
|
makeOrchAccountInvitation: M.callWhen().returns(InvitationShape),
|
|
42
42
|
makePortfolioAccountInvitation: M.callWhen().returns(InvitationShape),
|
|
43
|
+
makeSendICQQueryInvitation: M.callWhen().returns(InvitationShape),
|
|
44
|
+
makeAccountAndSendBalanceQueryInvitation:
|
|
45
|
+
M.callWhen().returns(InvitationShape),
|
|
43
46
|
}),
|
|
44
47
|
{
|
|
45
48
|
makeOrchAccountInvitation() {
|
|
@@ -54,6 +57,18 @@ const contract = async (
|
|
|
54
57
|
'Make an Orchestration Account',
|
|
55
58
|
);
|
|
56
59
|
},
|
|
60
|
+
makeSendICQQueryInvitation() {
|
|
61
|
+
return zcf.makeInvitation(
|
|
62
|
+
orchFns.sendQuery,
|
|
63
|
+
'Submit a query to a remote chain',
|
|
64
|
+
);
|
|
65
|
+
},
|
|
66
|
+
makeAccountAndSendBalanceQueryInvitation() {
|
|
67
|
+
return zcf.makeInvitation(
|
|
68
|
+
orchFns.makeAccountAndSendBalanceQuery,
|
|
69
|
+
'Make an account and submit a balance query',
|
|
70
|
+
);
|
|
71
|
+
},
|
|
57
72
|
},
|
|
58
73
|
);
|
|
59
74
|
|
|
@@ -13,7 +13,18 @@ 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 sendQuery(orch: Orchestrator, _ctx: any, seat: ZCFSeat, { chainName, msgs }: {
|
|
17
|
+
chainName: string;
|
|
18
|
+
msgs: JsonSafe<RequestQuery>[];
|
|
19
|
+
}): Promise<JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").ResponseQuery>[]>;
|
|
20
|
+
export function makeAccountAndSendBalanceQuery(orch: Orchestrator, _ctx: any, seat: ZCFSeat, { chainName, denom }: {
|
|
21
|
+
chainName: string;
|
|
22
|
+
denom: DenomArg;
|
|
23
|
+
}): Promise<import("@agoric/orchestration").DenomAmount>;
|
|
16
24
|
import type { Orchestrator } from '@agoric/orchestration';
|
|
17
25
|
import type { MakePortfolioHolder } from '../exos/portfolio-holder-kit.js';
|
|
18
26
|
import type { ResolvedPublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
|
|
27
|
+
import type { RequestQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
28
|
+
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
29
|
+
import type { DenomArg } from '@agoric/orchestration';
|
|
19
30
|
//# 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":"AA2BO,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,gCALI,YAAY,QACZ,GAAG,QACH,OAAO,uBACP;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,YAAY,CAAC,EAAE,CAAA;CAAE,8FAU/D;AAeM,qDALI,YAAY,QACZ,GAAG,QACH,OAAO,wBACP;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,wDAgBhD;kCA7HiF,uBAAuB;yCAKnE,iCAAiC;yCAJjC,2CAA2C;kCAElD,+CAA+C;8BADnD,sBAAsB;8BAFiC,uBAAuB"}
|
|
@@ -2,12 +2,14 @@
|
|
|
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 { Fail } from '@endo/errors';
|
|
5
6
|
import { M, mustMatch } from '@endo/patterns';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
|
-
* @import {
|
|
9
|
-
* @import {OrchestrationAccount, OrchestrationFlow, Orchestrator} from '@agoric/orchestration';
|
|
9
|
+
* @import {DenomArg, OrchestrationAccount, OrchestrationFlow, Orchestrator} from '@agoric/orchestration';
|
|
10
10
|
* @import {ResolvedPublicTopic} from '@agoric/zoe/src/contractSupport/topics.js';
|
|
11
|
+
* @import {JsonSafe} from '@agoric/cosmic-proto';
|
|
12
|
+
* @import {RequestQuery} from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
11
13
|
* @import {OrchestrationPowers} from '../utils/start-helper.js';
|
|
12
14
|
* @import {MakePortfolioHolder} from '../exos/portfolio-holder-kit.js';
|
|
13
15
|
* @import {OrchestrationTools} from '../utils/start-helper.js';
|
|
@@ -79,3 +81,55 @@ export const makePortfolioAccount = async (
|
|
|
79
81
|
return portfolioHolder.asContinuingOffer();
|
|
80
82
|
};
|
|
81
83
|
harden(makePortfolioAccount);
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Send a query and get the response back in an offer result. This invitation is
|
|
87
|
+
* for testing only. In a real scenario it's better to use an RPC or API client
|
|
88
|
+
* and vstorage to retrieve data for a frontend. Queries should only be
|
|
89
|
+
* leveraged if contract logic requires it.
|
|
90
|
+
*
|
|
91
|
+
* @satisfies {OrchestrationFlow}
|
|
92
|
+
* @param {Orchestrator} orch
|
|
93
|
+
* @param {any} _ctx
|
|
94
|
+
* @param {ZCFSeat} seat
|
|
95
|
+
* @param {{ chainName: string; msgs: JsonSafe<RequestQuery>[] }} offerArgs
|
|
96
|
+
*/
|
|
97
|
+
export const sendQuery = async (orch, _ctx, seat, { chainName, msgs }) => {
|
|
98
|
+
seat.exit(); // no funds exchanged
|
|
99
|
+
mustMatch(chainName, M.string());
|
|
100
|
+
if (chainName === 'agoric') throw Fail`ICQ not supported on local chain`;
|
|
101
|
+
const remoteChain = await orch.getChain(chainName);
|
|
102
|
+
const queryResponse = await remoteChain.query(msgs);
|
|
103
|
+
console.debug('sendQuery response:', queryResponse);
|
|
104
|
+
return queryResponse;
|
|
105
|
+
};
|
|
106
|
+
harden(sendQuery);
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Create an account and send a query and get the response back in an offer
|
|
110
|
+
* result. Like `sendQuery`, this invitation is for testing only. In a real
|
|
111
|
+
* scenario it doesn't make much sense to send a query immediately after the
|
|
112
|
+
* account is created - it won't have any funds.
|
|
113
|
+
*
|
|
114
|
+
* @satisfies {OrchestrationFlow}
|
|
115
|
+
* @param {Orchestrator} orch
|
|
116
|
+
* @param {any} _ctx
|
|
117
|
+
* @param {ZCFSeat} seat
|
|
118
|
+
* @param {{ chainName: string; denom: DenomArg }} offerArgs
|
|
119
|
+
*/
|
|
120
|
+
export const makeAccountAndSendBalanceQuery = async (
|
|
121
|
+
orch,
|
|
122
|
+
_ctx,
|
|
123
|
+
seat,
|
|
124
|
+
{ chainName, denom },
|
|
125
|
+
) => {
|
|
126
|
+
seat.exit(); // no funds exchanged
|
|
127
|
+
mustMatch(chainName, M.string());
|
|
128
|
+
if (chainName === 'agoric') throw Fail`ICQ not supported on local chain`;
|
|
129
|
+
const remoteChain = await orch.getChain(chainName);
|
|
130
|
+
const orchAccount = await remoteChain.makeAccount();
|
|
131
|
+
const queryResponse = await orchAccount.getBalance(denom);
|
|
132
|
+
console.debug('getBalance response:', queryResponse);
|
|
133
|
+
return queryResponse;
|
|
134
|
+
};
|
|
135
|
+
harden(makeAccountAndSendBalanceQuery);
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export const ICQMsgShape: import("@endo/patterns").Matcher;
|
|
2
1
|
export const ICQConnectionI: import("@endo/patterns").InterfaceGuard<{
|
|
3
2
|
getLocalAddress: import("@endo/patterns").MethodGuard;
|
|
4
3
|
getRemoteAddress: import("@endo/patterns").MethodGuard;
|
|
5
4
|
query: import("@endo/patterns").MethodGuard;
|
|
6
5
|
}>;
|
|
7
|
-
export function prepareICQConnectionKit(zone: Zone, { watch,
|
|
6
|
+
export function prepareICQConnectionKit(zone: Zone, { watch, asVow }: VowTools): (port: Port) => import("@endo/exo").GuardedKit<{
|
|
8
7
|
connection: {
|
|
9
8
|
getLocalAddress(): `/ibc-port/${string}`;
|
|
10
9
|
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
11
10
|
/**
|
|
11
|
+
* Vow rejects if packet fails to send or an error is returned
|
|
12
|
+
*
|
|
12
13
|
* @param {JsonSafe<RequestQuery>[]} msgs
|
|
13
|
-
* @returns {
|
|
14
|
-
* @throws {Error} if packet fails to send or an error is returned
|
|
14
|
+
* @returns {Vow<JsonSafe<ResponseQuery>[]>}
|
|
15
15
|
*/
|
|
16
|
-
query(msgs: JsonSafe<RequestQuery>[]):
|
|
16
|
+
query(msgs: JsonSafe<RequestQuery>[]): Vow<JsonSafe<ResponseQuery>[]>;
|
|
17
17
|
};
|
|
18
18
|
parseQueryPacketWatcher: {
|
|
19
19
|
/** @param {string} ack packet acknowledgement string */
|
|
@@ -43,6 +43,7 @@ import type { Port } from '@agoric/network';
|
|
|
43
43
|
import type { RequestQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
44
44
|
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
45
45
|
import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
46
|
+
import type { Vow } from '@agoric/vow';
|
|
46
47
|
import type { Connection } from '@agoric/network';
|
|
47
48
|
import type { Remote } from '@agoric/vow';
|
|
48
49
|
import type { LocalIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icq-connection-kit.d.ts","sourceRoot":"","sources":["icq-connection-kit.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icq-connection-kit.d.ts","sourceRoot":"","sources":["icq-connection-kit.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AA2BI,8CAHI,IAAI,oBACJ,QAAQ;;;;QAoCX;;;;;WAKG;oBAFQ,SAAS,YAAY,CAAC,EAAE,GACtB,IAAI,SAAS,aAAa,CAAC,EAAE,CAAC;;;QAc3C,wDAAwD;yBAA5C,MAAM;;;QAMlB;;;;WAIG;2BAHQ,OAAO,UAAU,CAAC,aAClB,eAAe,cACf,gBAAgB;;;GAahC;oCAlGU;IACZ,IAAQ,EAAE,IAAI,CAAC;IACf,UAAc,EAAE,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IAC/C,YAAgB,EAAE,eAAe,GAAG,SAAS,CAAC;IAC9C,aAAiB,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC7C;+BA+FU,UAAU,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;4BACtD,gBAAgB,CAAC,YAAY,CAAC;0BAtHrB,mBAAmB;8BAEF,aAAa;0BADlB,iBAAiB;kCAGN,+CAA+C;8BADlE,sBAAsB;mCACH,+CAA+C;yBAFrD,aAAa;gCADlB,iBAAiB;4BACZ,aAAa;qCAGD,iCAAiC;sCAAjC,iCAAiC"}
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
import { Fail } from '@endo/errors';
|
|
3
3
|
import { E } from '@endo/far';
|
|
4
4
|
import { M } from '@endo/patterns';
|
|
5
|
+
import { VowShape } from '@agoric/vow';
|
|
5
6
|
import { NonNullish, makeTracer } from '@agoric/internal';
|
|
6
7
|
import { makeQueryPacket, parseQueryPacket } from '../utils/packet.js';
|
|
7
|
-
import { OutboundConnectionHandlerI } from '../typeGuards.js';
|
|
8
|
+
import { ICQMsgShape, OutboundConnectionHandlerI } from '../typeGuards.js';
|
|
8
9
|
|
|
9
10
|
/**
|
|
10
11
|
* @import {Zone} from '@agoric/base-zone';
|
|
11
12
|
* @import {Connection, Port} from '@agoric/network';
|
|
12
|
-
* @import {Remote, VowTools} from '@agoric/vow';
|
|
13
|
+
* @import {Remote, Vow, VowTools} from '@agoric/vow';
|
|
13
14
|
* @import {JsonSafe} from '@agoric/cosmic-proto';
|
|
14
15
|
* @import {RequestQuery, ResponseQuery} from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
15
16
|
* @import {LocalIbcAddress, RemoteIbcAddress} from '@agoric/vats/tools/ibc-utils.js';
|
|
@@ -17,15 +18,10 @@ import { OutboundConnectionHandlerI } from '../typeGuards.js';
|
|
|
17
18
|
|
|
18
19
|
const trace = makeTracer('Orchestration:ICQConnection');
|
|
19
20
|
|
|
20
|
-
export const ICQMsgShape = M.splitRecord(
|
|
21
|
-
{ path: M.string(), data: M.string() },
|
|
22
|
-
{ height: M.string(), prove: M.boolean() },
|
|
23
|
-
);
|
|
24
|
-
|
|
25
21
|
export const ICQConnectionI = M.interface('ICQConnection', {
|
|
26
22
|
getLocalAddress: M.call().returns(M.string()),
|
|
27
23
|
getRemoteAddress: M.call().returns(M.string()),
|
|
28
|
-
query: M.call(M.arrayOf(ICQMsgShape)).returns(
|
|
24
|
+
query: M.call(M.arrayOf(ICQMsgShape)).returns(VowShape),
|
|
29
25
|
});
|
|
30
26
|
|
|
31
27
|
/**
|
|
@@ -53,7 +49,7 @@ export const ICQConnectionI = M.interface('ICQConnection', {
|
|
|
53
49
|
* @param {Zone} zone
|
|
54
50
|
* @param {VowTools} vowTools
|
|
55
51
|
*/
|
|
56
|
-
export const prepareICQConnectionKit = (zone, { watch,
|
|
52
|
+
export const prepareICQConnectionKit = (zone, { watch, asVow }) =>
|
|
57
53
|
zone.exoClassKit(
|
|
58
54
|
'ICQConnectionKit',
|
|
59
55
|
{
|
|
@@ -88,21 +84,20 @@ export const prepareICQConnectionKit = (zone, { watch, when }) =>
|
|
|
88
84
|
);
|
|
89
85
|
},
|
|
90
86
|
/**
|
|
87
|
+
* Vow rejects if packet fails to send or an error is returned
|
|
88
|
+
*
|
|
91
89
|
* @param {JsonSafe<RequestQuery>[]} msgs
|
|
92
|
-
* @returns {
|
|
93
|
-
* @throws {Error} if packet fails to send or an error is returned
|
|
90
|
+
* @returns {Vow<JsonSafe<ResponseQuery>[]>}
|
|
94
91
|
*/
|
|
95
92
|
query(msgs) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
return when(
|
|
101
|
-
watch(
|
|
93
|
+
return asVow(() => {
|
|
94
|
+
const { connection } = this.state;
|
|
95
|
+
if (!connection) throw Fail`connection not available`;
|
|
96
|
+
return watch(
|
|
102
97
|
E(connection).send(makeQueryPacket(msgs)),
|
|
103
98
|
this.facets.parseQueryPacketWatcher,
|
|
104
|
-
)
|
|
105
|
-
);
|
|
99
|
+
);
|
|
100
|
+
});
|
|
106
101
|
},
|
|
107
102
|
},
|
|
108
103
|
parseQueryPacketWatcher: {
|
|
@@ -24,6 +24,7 @@ export function prepareLocalChainFacade(zone: Zone, powers: LocalChainFacadePowe
|
|
|
24
24
|
}>>;
|
|
25
25
|
/** @returns {Vow<LocalOrchestrationAccountKit['holder']>} */
|
|
26
26
|
makeAccount(): Vow<LocalOrchestrationAccountKit["holder"]>;
|
|
27
|
+
query(): Vow<never>;
|
|
27
28
|
/** @type {HostOf<AgoricChainMethods['getVBankAssetInfo']>} */
|
|
28
29
|
getVBankAssetInfo(): Vow<AssetInfo[] extends import("@endo/pass-style").Passable ? AssetInfo[] : import("@agoric/async-flow").HostInterface<AssetInfo[]>>;
|
|
29
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"
|
|
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;;QAezD,8DAA8D;;;;QAe9D;;WAEG;4BADQ,SAAS,EAAE;;;QAWtB;;WAEG;wCADQ,CAAC,iBAAiB,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAWrD;;;;;;WAMG;+BALQ,OAAO,WAAW,CAAC,wBACnB;YACV,OAAW,EAAE,iBAAiB,CAAC;YAC/B,OAAW,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;SAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA4BX;;;;;;;;uBA/Ja,MAAM,OAAO,CAAC,SAAS,EAAE,CAAC;;qCAO3B;IACZ,gCAAoC,EAAE,gCAAgC,CAAC;IACvE,aAAiB,EAAE,OAAO,uBAAuB,CAAC,CAAC;IACnD,WAAe,EAAE,OAAO,WAAW,CAAC,CAAC;IACrC,WAAe,EAAE,OAAO,OAAO,CAAC,CAAC;IACjC,KAAS,EAAE,OAAO,YAAY,CAAC,CAAC;IAChC,UAAc,EAAE,OAAO,UAAU,CAAC,CAAC;IACnC,QAAY,EAAE,QAAQ,CAAC;CACpB;mCAmJU,UAAU,CAAC,OAAO,uBAAuB,CAAC;+BAC1C,UAAU,CAAC,oBAAoB,CAAC;0BAjLvB,mBAAmB;uCAS0D,aAAa;yBAHjF,aAAa;kDAEoC,kCAAkC;+BAJvF,8BAA8B;uCADV,gCAAgC;kCAMoB,aAAa;4BAPxF,kBAAkB;sDAMsC,kCAAkC;6CADzE,gCAAgC;6BAFhD,cAAc;kCAJT,cAAc;gCAEG,gCAAgC;8BAGhD,aAAa"}
|
|
@@ -6,6 +6,7 @@ import { M } from '@endo/patterns';
|
|
|
6
6
|
import { pickFacet } from '@agoric/vat-data';
|
|
7
7
|
import { VowShape } from '@agoric/vow';
|
|
8
8
|
|
|
9
|
+
import { Fail } from '@endo/errors';
|
|
9
10
|
import { chainFacadeMethods } from '../typeGuards.js';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -107,6 +108,10 @@ const prepareLocalChainFacadeKit = (
|
|
|
107
108
|
this.facets.makeAccountWatcher,
|
|
108
109
|
);
|
|
109
110
|
},
|
|
111
|
+
query() {
|
|
112
|
+
// TODO https://github.com/Agoric/agoric-sdk/pull/9935
|
|
113
|
+
return asVow(() => Fail`not yet implemented`);
|
|
114
|
+
},
|
|
110
115
|
/** @type {HostOf<AgoricChainMethods['getVBankAssetInfo']>} */
|
|
111
116
|
getVBankAssetInfo() {
|
|
112
117
|
return asVow(() => {
|
|
@@ -34,6 +34,7 @@ export function prepareOrchestrator(zone: Zone, powers: {
|
|
|
34
34
|
}>>;
|
|
35
35
|
}>>;
|
|
36
36
|
makeAccount(): Vow<import("./local-orchestration-account.js").LocalOrchestrationAccountKit["holder"]>;
|
|
37
|
+
query(): Vow<never>;
|
|
37
38
|
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[]>>;
|
|
38
39
|
}>;
|
|
39
40
|
};
|
|
@@ -52,6 +53,7 @@ export function prepareOrchestrator(zone: Zone, powers: {
|
|
|
52
53
|
onFulfilled([_agoricChainInfo, remoteChainInfo, connectionInfo]: [ChainInfo, ChainInfo, IBCConnectionInfo], name: string): import("@endo/exo").Guarded<{
|
|
53
54
|
getChainInfo(): Vow<any extends import("@endo/pass-style").Passable ? any : HostInterface<any>>;
|
|
54
55
|
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>[]>;
|
|
55
57
|
}>;
|
|
56
58
|
};
|
|
57
59
|
orchestrator: {
|
|
@@ -4730,6 +4732,7 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, localchain, chai
|
|
|
4730
4732
|
}>>;
|
|
4731
4733
|
}>>;
|
|
4732
4734
|
makeAccount(): Vow<import("./local-orchestration-account.js").LocalOrchestrationAccountKit["holder"]>;
|
|
4735
|
+
query(): Vow<never>;
|
|
4733
4736
|
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[]>>;
|
|
4734
4737
|
}>;
|
|
4735
4738
|
};
|
|
@@ -4748,6 +4751,7 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, localchain, chai
|
|
|
4748
4751
|
onFulfilled([_agoricChainInfo, remoteChainInfo, connectionInfo]: [ChainInfo, ChainInfo, IBCConnectionInfo], name: string): import("@endo/exo").Guarded<{
|
|
4749
4752
|
getChainInfo(): Vow<any extends import("@endo/pass-style").Passable ? any : HostInterface<any>>;
|
|
4750
4753
|
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>[]>;
|
|
4751
4755
|
}>;
|
|
4752
4756
|
};
|
|
4753
4757
|
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;IAC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fo) => import("@endo/exo").GuardedKit<{
|
|
16
16
|
public: {
|
|
17
17
|
/** @type {HostOf<Chain['getChainInfo']>} */
|
|
18
|
-
getChainInfo(): Vow<any extends import("@endo/pass-style").Passable ? any : HostInterface<any>>;
|
|
18
|
+
getChainInfo(): Vow<any extends import("@endo/pass-style").Passable ? any : import("@agoric/async-flow").HostInterface<any>>;
|
|
19
19
|
/** @type {HostOf<Chain['makeAccount']>} */
|
|
20
|
-
makeAccount(): Vow<OrchestrationAccount<any> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & OrchestrationAccount<any> : HostInterface<OrchestrationAccount<any>>>;
|
|
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
|
+
/** @type {ICQConnection['query']} */
|
|
22
|
+
query(msgs: JsonSafe<RequestQuery>[]): Vow<JsonSafe<ResponseQuery>[]>;
|
|
21
23
|
};
|
|
22
|
-
|
|
24
|
+
makeAccountAndProvideQueryConnWatcher: {
|
|
23
25
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
* @param {IcaAccount} account
|
|
26
|
+
* @param {[IcaAccount, ICQConnection | undefined]} account
|
|
27
27
|
*/
|
|
28
|
-
onFulfilled(account: IcaAccount): Vow<import("@endo/exo").Guarded<{
|
|
29
|
-
asContinuingOffer(): Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../utils/zoe-tools.js").ResolvedContinuingOfferResult : HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
30
|
-
getPublicTopics(): Vow<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> : HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
31
|
-
getAddress(): HostInterface<ChainAddress>;
|
|
32
|
-
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
33
|
-
getBalances(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
34
|
-
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
35
|
-
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
36
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount : HostInterface<import("../orchestration-api.js").DenomAmount>>;
|
|
37
|
-
send(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
38
|
-
sendAll(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
39
|
-
transfer(amount: import("../orchestration-api.js").AmountArg, destination: ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
40
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
41
|
-
withdrawRewards(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
42
|
-
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
28
|
+
onFulfilled([account, icqConnection]: [IcaAccount, ICQConnection | undefined]): Vow<import("@endo/exo").Guarded<{
|
|
29
|
+
asContinuingOffer(): Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../utils/zoe-tools.js").ResolvedContinuingOfferResult : import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
30
|
+
getPublicTopics(): Vow<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> : import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
31
|
+
getAddress(): import("@agoric/async-flow").HostInterface<ChainAddress>;
|
|
32
|
+
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
33
|
+
getBalances(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
34
|
+
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
35
|
+
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
36
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount>>;
|
|
37
|
+
send(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
38
|
+
sendAll(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
39
|
+
transfer(amount: import("../orchestration-api.js").AmountArg, destination: ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
40
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
41
|
+
withdrawRewards(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
42
|
+
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
43
43
|
}>>;
|
|
44
44
|
};
|
|
45
|
+
makeICQConnectionQueryWatcher: {
|
|
46
|
+
/**
|
|
47
|
+
* @param {ICQConnection} icqConnection
|
|
48
|
+
* @param {JsonSafe<RequestQuery>[]} msgs
|
|
49
|
+
* @returns {Vow<JsonSafe<ResponseQuery>[]>}
|
|
50
|
+
*/
|
|
51
|
+
onFulfilled(icqConnection: ICQConnection, msgs: JsonSafe<RequestQuery>[]): Vow<JsonSafe<ResponseQuery>[]>;
|
|
52
|
+
};
|
|
45
53
|
getAddressWatcher: {
|
|
46
54
|
/**
|
|
47
55
|
* @param {ChainAddress} chainAddress
|
|
48
56
|
* @param {IcaAccount} account
|
|
49
57
|
*/
|
|
50
58
|
onFulfilled(chainAddress: ChainAddress, account: IcaAccount): Vow<import("@endo/exo").Guarded<{
|
|
51
|
-
asContinuingOffer(): Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../utils/zoe-tools.js").ResolvedContinuingOfferResult : HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
52
|
-
getPublicTopics(): Vow<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> : HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
53
|
-
getAddress(): HostInterface<ChainAddress>;
|
|
54
|
-
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
55
|
-
getBalances(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
56
|
-
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
57
|
-
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
58
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount : HostInterface<import("../orchestration-api.js").DenomAmount>>;
|
|
59
|
-
send(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
60
|
-
sendAll(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
61
|
-
transfer(amount: import("../orchestration-api.js").AmountArg, destination: ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
62
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
63
|
-
withdrawRewards(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
64
|
-
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
59
|
+
asContinuingOffer(): Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../utils/zoe-tools.js").ResolvedContinuingOfferResult : import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
60
|
+
getPublicTopics(): Vow<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> : import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
61
|
+
getAddress(): import("@agoric/async-flow").HostInterface<ChainAddress>;
|
|
62
|
+
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
63
|
+
getBalances(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
64
|
+
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
65
|
+
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
66
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount>>;
|
|
67
|
+
send(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
68
|
+
sendAll(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
69
|
+
transfer(amount: import("../orchestration-api.js").AmountArg, destination: ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
70
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
71
|
+
withdrawRewards(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
72
|
+
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
65
73
|
}>>;
|
|
66
74
|
};
|
|
67
75
|
makeChildNodeWatcher: {
|
|
@@ -76,20 +84,20 @@ export function prepareRemoteChainFacade(zone: Zone, powers: RemoteChainFacadePo
|
|
|
76
84
|
account: IcaAccount;
|
|
77
85
|
chainAddress: ChainAddress;
|
|
78
86
|
}): import("@endo/exo").Guarded<{
|
|
79
|
-
asContinuingOffer(): Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../utils/zoe-tools.js").ResolvedContinuingOfferResult : HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
80
|
-
getPublicTopics(): Vow<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> : HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
81
|
-
getAddress(): HostInterface<ChainAddress>;
|
|
82
|
-
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
83
|
-
getBalances(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
84
|
-
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
85
|
-
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
86
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount : HostInterface<import("../orchestration-api.js").DenomAmount>>;
|
|
87
|
-
send(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
88
|
-
sendAll(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
89
|
-
transfer(amount: import("../orchestration-api.js").AmountArg, destination: ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
90
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
91
|
-
withdrawRewards(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
92
|
-
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : HostInterface<void>>;
|
|
87
|
+
asContinuingOffer(): Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../utils/zoe-tools.js").ResolvedContinuingOfferResult : import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
88
|
+
getPublicTopics(): Vow<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>> : import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
89
|
+
getAddress(): import("@agoric/async-flow").HostInterface<ChainAddress>;
|
|
90
|
+
delegate(validator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
91
|
+
getBalances(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
92
|
+
redelegate(srcValidator: import("../cosmos-api.js").CosmosValidatorAddress, dstValidator: import("../cosmos-api.js").CosmosValidatorAddress, amount: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
93
|
+
withdrawReward(validator: import("../cosmos-api.js").CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
94
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount>>;
|
|
95
|
+
send(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
96
|
+
sendAll(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
97
|
+
transfer(amount: import("../orchestration-api.js").AmountArg, destination: ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
98
|
+
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
99
|
+
withdrawRewards(): Vow<import("../orchestration-api.js").DenomAmount[] extends import("@endo/pass-style").Passable ? import("../orchestration-api.js").DenomAmount[] : import("@agoric/async-flow").HostInterface<import("../orchestration-api.js").DenomAmount[]>>;
|
|
100
|
+
undelegate(delegations: Omit<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").Delegation, "delegatorAddress">[]): Vow<void extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & void : import("@agoric/async-flow").HostInterface<void>>;
|
|
93
101
|
}>;
|
|
94
102
|
};
|
|
95
103
|
}>>["public"];
|
|
@@ -100,18 +108,26 @@ export type RemoteChainFacadePowers = {
|
|
|
100
108
|
timer: Remote<TimerService>;
|
|
101
109
|
vowTools: VowTools;
|
|
102
110
|
};
|
|
111
|
+
export type RemoteChainFacadeState = {
|
|
112
|
+
remoteChainInfo: CosmosChainInfo;
|
|
113
|
+
connectionInfo: IBCConnectionInfo;
|
|
114
|
+
icqConnection: ICQConnection | undefined;
|
|
115
|
+
};
|
|
103
116
|
export type MakeRemoteChainFacade = ReturnType<typeof prepareRemoteChainFacade>;
|
|
104
117
|
export type RemoteChainFacade = ReturnType<MakeRemoteChainFacade>;
|
|
105
118
|
import type { Zone } from '@agoric/base-zone';
|
|
106
119
|
import type { IBCConnectionInfo } from '../types.js';
|
|
107
|
-
import type { HostInterface } from '@agoric/async-flow';
|
|
108
120
|
import type { Vow } from '@agoric/vow';
|
|
109
|
-
import type {
|
|
121
|
+
import type { RequestQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
122
|
+
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
123
|
+
import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
110
124
|
import type { IcaAccount } from '../types.js';
|
|
125
|
+
import type { ICQConnection } from '../types.js';
|
|
111
126
|
import type { ChainAddress } from '../types.js';
|
|
112
127
|
import type { Remote } from '@agoric/internal';
|
|
113
128
|
import type { prepareCosmosOrchestrationAccount } from './cosmos-orchestration-account.js';
|
|
114
129
|
import type { CosmosInterchainService } from './cosmos-interchain-service.js';
|
|
115
130
|
import type { TimerService } from '@agoric/time';
|
|
116
131
|
import type { VowTools } from '@agoric/vow';
|
|
132
|
+
import type { CosmosChainInfo } from '../types.js';
|
|
117
133
|
//# sourceMappingURL=remote-chain-facade.d.ts.map
|
|
@@ -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":"AA0OO,+CAHI,IAAI,UACJ,uBAAuB;;;;;;;;;;;;;;;;QA/H1B,4CAA4C;;QAK5C,2CAA2C;;QA4B3C,qCAAqC;;;;QAyBrC;;WAEG;8CADQ,CAAC,UAAU,EAAE,aAAa,GAAG,SAAS,CAAC;;;;;;;;;;;;;;;;;;QAelD;;;;WAIG;mCAHQ,aAAa,QACb,SAAS,YAAY,CAAC,EAAE,GACtB,IAAI,SAAS,aAAa,CAAC,EAAE,CAAC;;;QAU3C;;;WAGG;kCAFQ,YAAY,WACZ,UAAU;;;;;;;;;;;;;;;;;;QAWrB;;;;;;WAMG;+BALQ,OAAO,WAAW,CAAC,6BACnB;YACV,OAAW,EAAE,UAAU,CAAC;YACxB,YAAgB,EAAE,YAAY,CAAC;SAC5B;;;;;;;;;;;;;;;;;cA2BX;sCApNY;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;oCAuMU,UAAU,CAAC,OAAO,wBAAwB,CAAC;gCAC3C,UAAU,CAAC,qBAAqB,CAAC;0BAvOxB,mBAAmB;uCAQ2D,aAAa;yBAHlF,aAAa;kCAHC,+CAA+C;8BADlE,sBAAsB;mCACH,+CAA+C;gCAMQ,aAAa;mCAAb,aAAa;kCAAb,aAAa;4BAJzF,kBAAkB;uDAGS,mCAAmC;6CAD7C,gCAAgC;kCAH3C,cAAc;8BAEb,aAAa;qCAGwD,aAAa"}
|
|
@@ -4,25 +4,24 @@ import { E } from '@endo/far';
|
|
|
4
4
|
import { M } from '@endo/patterns';
|
|
5
5
|
import { pickFacet } from '@agoric/vat-data';
|
|
6
6
|
import { VowShape } from '@agoric/vow';
|
|
7
|
-
import { ChainAddressShape, ChainFacadeI } from '../typeGuards.js';
|
|
7
|
+
import { ChainAddressShape, ChainFacadeI, ICQMsgShape } from '../typeGuards.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* @import {
|
|
10
|
+
* @import {HostOf} from '@agoric/async-flow';
|
|
11
11
|
* @import {Zone} from '@agoric/base-zone';
|
|
12
|
+
* @import {JsonSafe} from '@agoric/cosmic-proto';
|
|
13
|
+
* @import {RequestQuery, ResponseQuery} from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
12
14
|
* @import {TimerService} from '@agoric/time';
|
|
13
15
|
* @import {Remote} from '@agoric/internal';
|
|
14
16
|
* @import {Vow, VowTools} from '@agoric/vow';
|
|
15
17
|
* @import {CosmosInterchainService} from './cosmos-interchain-service.js';
|
|
16
18
|
* @import {prepareCosmosOrchestrationAccount} from './cosmos-orchestration-account.js';
|
|
17
|
-
* @import {
|
|
19
|
+
* @import {CosmosChainInfo, IBCConnectionInfo, ChainAddress, IcaAccount, Chain, ICQConnection} from '../types.js';
|
|
18
20
|
*/
|
|
19
21
|
|
|
20
22
|
const { Fail } = assert;
|
|
21
23
|
const trace = makeTracer('RemoteChainFacade');
|
|
22
24
|
|
|
23
|
-
/** @type {any} */
|
|
24
|
-
const anyVal = null;
|
|
25
|
-
|
|
26
25
|
/**
|
|
27
26
|
* @typedef {{
|
|
28
27
|
* makeCosmosOrchestrationAccount: ReturnType<
|
|
@@ -35,6 +34,14 @@ const anyVal = null;
|
|
|
35
34
|
* }} RemoteChainFacadePowers
|
|
36
35
|
*/
|
|
37
36
|
|
|
37
|
+
/**
|
|
38
|
+
* @typedef {{
|
|
39
|
+
* remoteChainInfo: CosmosChainInfo;
|
|
40
|
+
* connectionInfo: IBCConnectionInfo;
|
|
41
|
+
* icqConnection: ICQConnection | undefined;
|
|
42
|
+
* }} RemoteChainFacadeState
|
|
43
|
+
*/
|
|
44
|
+
|
|
38
45
|
/**
|
|
39
46
|
* @param {Zone} zone
|
|
40
47
|
* @param {RemoteChainFacadePowers} powers
|
|
@@ -48,30 +55,38 @@ const prepareRemoteChainFacadeKit = (
|
|
|
48
55
|
// consider making an `accounts` childNode
|
|
49
56
|
storageNode,
|
|
50
57
|
timer,
|
|
51
|
-
vowTools: { asVow, watch },
|
|
58
|
+
vowTools: { allVows, asVow, watch },
|
|
52
59
|
},
|
|
53
60
|
) =>
|
|
54
61
|
zone.exoClassKit(
|
|
55
62
|
'RemoteChainFacade',
|
|
56
63
|
{
|
|
57
64
|
public: ChainFacadeI,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
.
|
|
62
|
-
|
|
65
|
+
makeICQConnectionQueryWatcher: M.interface(
|
|
66
|
+
'makeICQConnectionQueryWatcher',
|
|
67
|
+
{
|
|
68
|
+
onFulfilled: M.call(M.remotable(), M.arrayOf(ICQMsgShape)).returns(
|
|
69
|
+
VowShape,
|
|
70
|
+
),
|
|
71
|
+
},
|
|
72
|
+
),
|
|
73
|
+
makeAccountAndProvideQueryConnWatcher: M.interface(
|
|
74
|
+
'makeAccountAndProvideQueryConnWatcher',
|
|
75
|
+
{
|
|
76
|
+
onFulfilled: M.call([
|
|
77
|
+
M.remotable(),
|
|
78
|
+
M.or(M.remotable(), M.undefined()),
|
|
79
|
+
]).returns(VowShape),
|
|
80
|
+
},
|
|
81
|
+
),
|
|
63
82
|
getAddressWatcher: M.interface('getAddressWatcher', {
|
|
64
|
-
onFulfilled: M.call(M.
|
|
65
|
-
.optional(M.remotable())
|
|
66
|
-
.returns(VowShape),
|
|
83
|
+
onFulfilled: M.call(ChainAddressShape, M.remotable()).returns(VowShape),
|
|
67
84
|
}),
|
|
68
85
|
makeChildNodeWatcher: M.interface('makeChildNodeWatcher', {
|
|
69
|
-
onFulfilled: M.call(M.remotable()
|
|
70
|
-
.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
})
|
|
74
|
-
.returns(M.remotable()),
|
|
86
|
+
onFulfilled: M.call(M.remotable(), {
|
|
87
|
+
account: M.remotable(),
|
|
88
|
+
chainAddress: ChainAddressShape,
|
|
89
|
+
}).returns(M.remotable()),
|
|
75
90
|
}),
|
|
76
91
|
},
|
|
77
92
|
/**
|
|
@@ -80,7 +95,11 @@ const prepareRemoteChainFacadeKit = (
|
|
|
80
95
|
*/
|
|
81
96
|
(remoteChainInfo, connectionInfo) => {
|
|
82
97
|
trace('making a RemoteChainFacade');
|
|
83
|
-
return {
|
|
98
|
+
return /** @type {RemoteChainFacadeState} */ ({
|
|
99
|
+
remoteChainInfo,
|
|
100
|
+
connectionInfo,
|
|
101
|
+
icqConnection: undefined,
|
|
102
|
+
});
|
|
84
103
|
},
|
|
85
104
|
{
|
|
86
105
|
public: {
|
|
@@ -94,28 +113,62 @@ const prepareRemoteChainFacadeKit = (
|
|
|
94
113
|
return asVow(() => {
|
|
95
114
|
const { remoteChainInfo, connectionInfo } = this.state;
|
|
96
115
|
const stakingDenom = remoteChainInfo.stakingTokens?.[0]?.denom;
|
|
97
|
-
if (!stakingDenom)
|
|
98
|
-
|
|
99
|
-
|
|
116
|
+
if (!stakingDenom) throw Fail`chain info lacks staking denom`;
|
|
117
|
+
|
|
118
|
+
// icqConnection is ultimately retrieved from state, but let's
|
|
119
|
+
// create a connection if it doesn't exist
|
|
120
|
+
const icqConnOrUndefinedV =
|
|
121
|
+
remoteChainInfo.icqEnabled && !this.state.icqConnection
|
|
122
|
+
? E(orchestration).provideICQConnection(
|
|
123
|
+
connectionInfo.counterparty.connection_id,
|
|
124
|
+
)
|
|
125
|
+
: undefined;
|
|
126
|
+
|
|
127
|
+
const makeAccountV = E(orchestration).makeAccount(
|
|
128
|
+
remoteChainInfo.chainId,
|
|
129
|
+
connectionInfo.counterparty.connection_id,
|
|
130
|
+
connectionInfo.id,
|
|
131
|
+
);
|
|
100
132
|
|
|
101
133
|
return watch(
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
connectionInfo.counterparty.connection_id,
|
|
105
|
-
connectionInfo.id,
|
|
106
|
-
),
|
|
107
|
-
this.facets.makeAccountWatcher,
|
|
134
|
+
allVows([makeAccountV, icqConnOrUndefinedV]),
|
|
135
|
+
this.facets.makeAccountAndProvideQueryConnWatcher,
|
|
108
136
|
);
|
|
109
137
|
});
|
|
110
138
|
},
|
|
139
|
+
/** @type {ICQConnection['query']} */
|
|
140
|
+
query(msgs) {
|
|
141
|
+
return asVow(() => {
|
|
142
|
+
const {
|
|
143
|
+
remoteChainInfo: { icqEnabled, chainId },
|
|
144
|
+
connectionInfo,
|
|
145
|
+
} = this.state;
|
|
146
|
+
if (!icqEnabled) {
|
|
147
|
+
throw Fail`Queries not available for chain ${chainId}`;
|
|
148
|
+
}
|
|
149
|
+
// if none exists, make one and still send the query in the handler
|
|
150
|
+
if (!this.state.icqConnection) {
|
|
151
|
+
return watch(
|
|
152
|
+
E(orchestration).provideICQConnection(
|
|
153
|
+
connectionInfo.counterparty.connection_id,
|
|
154
|
+
),
|
|
155
|
+
this.facets.makeICQConnectionQueryWatcher,
|
|
156
|
+
msgs,
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
return watch(E(this.state.icqConnection).query(msgs));
|
|
160
|
+
});
|
|
161
|
+
},
|
|
111
162
|
},
|
|
112
|
-
|
|
163
|
+
makeAccountAndProvideQueryConnWatcher: {
|
|
113
164
|
/**
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* @param {IcaAccount} account
|
|
165
|
+
* @param {[IcaAccount, ICQConnection | undefined]} account
|
|
117
166
|
*/
|
|
118
|
-
onFulfilled(account) {
|
|
167
|
+
onFulfilled([account, icqConnection]) {
|
|
168
|
+
if (icqConnection && !this.state.icqConnection) {
|
|
169
|
+
this.state.icqConnection = icqConnection;
|
|
170
|
+
// no need to pass icqConnection in ctx; we can get it from state
|
|
171
|
+
}
|
|
119
172
|
return watch(
|
|
120
173
|
E(account).getAddress(),
|
|
121
174
|
this.facets.getAddressWatcher,
|
|
@@ -123,6 +176,19 @@ const prepareRemoteChainFacadeKit = (
|
|
|
123
176
|
);
|
|
124
177
|
},
|
|
125
178
|
},
|
|
179
|
+
makeICQConnectionQueryWatcher: {
|
|
180
|
+
/**
|
|
181
|
+
* @param {ICQConnection} icqConnection
|
|
182
|
+
* @param {JsonSafe<RequestQuery>[]} msgs
|
|
183
|
+
* @returns {Vow<JsonSafe<ResponseQuery>[]>}
|
|
184
|
+
*/
|
|
185
|
+
onFulfilled(icqConnection, msgs) {
|
|
186
|
+
if (!this.state.icqConnection) {
|
|
187
|
+
this.state.icqConnection = icqConnection;
|
|
188
|
+
}
|
|
189
|
+
return watch(E(icqConnection).query(msgs));
|
|
190
|
+
},
|
|
191
|
+
},
|
|
126
192
|
getAddressWatcher: {
|
|
127
193
|
/**
|
|
128
194
|
* @param {ChainAddress} chainAddress
|
|
@@ -145,18 +211,15 @@ const prepareRemoteChainFacadeKit = (
|
|
|
145
211
|
* }} ctx
|
|
146
212
|
*/
|
|
147
213
|
onFulfilled(childNode, { account, chainAddress }) {
|
|
148
|
-
const { remoteChainInfo } = this.state;
|
|
214
|
+
const { remoteChainInfo, icqConnection } = this.state;
|
|
149
215
|
const stakingDenom = remoteChainInfo.stakingTokens?.[0]?.denom;
|
|
150
|
-
if (!stakingDenom)
|
|
151
|
-
|
|
152
|
-
}
|
|
216
|
+
if (!stakingDenom) throw Fail`chain info lacks staking denom`;
|
|
217
|
+
|
|
153
218
|
return makeCosmosOrchestrationAccount(chainAddress, stakingDenom, {
|
|
154
219
|
account,
|
|
155
220
|
// FIXME storage path https://github.com/Agoric/agoric-sdk/issues/9066
|
|
156
221
|
storageNode: childNode,
|
|
157
|
-
|
|
158
|
-
// FIXME make Query Connection available via chain, not orchestrationAccount
|
|
159
|
-
icqConnection: anyVal,
|
|
222
|
+
icqConnection,
|
|
160
223
|
timer,
|
|
161
224
|
});
|
|
162
225
|
},
|
|
@@ -8,7 +8,7 @@ import type { Timestamp } from '@agoric/time';
|
|
|
8
8
|
import type { LocalChainAccount } 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
|
-
import type { AgoricChainMethods, ChainInfo, CosmosChainAccountMethods, CosmosChainInfo, IBCMsgTransferOptions, KnownChains, LocalAccountMethods } from './types.js';
|
|
11
|
+
import type { AgoricChainMethods, ChainInfo, CosmosChainAccountMethods, CosmosChainInfo, IBCMsgTransferOptions, KnownChains, LocalAccountMethods, ICQQueryFunction } from './types.js';
|
|
12
12
|
import type { ResolvedContinuingOfferResult } from './utils/zoe-tools.js';
|
|
13
13
|
/**
|
|
14
14
|
* A denom that designates a path to a token type on some blockchain.
|
|
@@ -60,6 +60,9 @@ export interface Chain<CI extends ChainInfo> {
|
|
|
60
60
|
* @returns an object that controls a new remote account on Chain
|
|
61
61
|
*/
|
|
62
62
|
makeAccount: () => Promise<OrchestrationAccount<CI>>;
|
|
63
|
+
query: CI extends {
|
|
64
|
+
icqEnabled: true;
|
|
65
|
+
} ? ICQQueryFunction : never;
|
|
63
66
|
}
|
|
64
67
|
/**
|
|
65
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,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,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,
|
|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AAW,GAAG;IACxB,SAAS,EAAE,YAAY,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,YAAY,CAAA;CAAE,CAAC;AAC3E,MAAM,MAAM,SAAS,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAChE,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,KAAK,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
package/src/orchestration-api.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
IBCMsgTransferOptions,
|
|
19
19
|
KnownChains,
|
|
20
20
|
LocalAccountMethods,
|
|
21
|
+
ICQQueryFunction,
|
|
21
22
|
} from './types.js';
|
|
22
23
|
import type { ResolvedContinuingOfferResult } from './utils/zoe-tools.js';
|
|
23
24
|
|
|
@@ -88,6 +89,8 @@ export interface Chain<CI extends ChainInfo> {
|
|
|
88
89
|
makeAccount: () => Promise<OrchestrationAccount<CI>>;
|
|
89
90
|
// FUTURE supply optional port object; also fetch port object
|
|
90
91
|
|
|
92
|
+
query: CI extends { icqEnabled: true } ? ICQQueryFunction : never;
|
|
93
|
+
|
|
91
94
|
// TODO provide a way to get the local denom/brand/whatever for this chain
|
|
92
95
|
}
|
|
93
96
|
|
package/src/typeGuards.d.ts
CHANGED
|
@@ -37,14 +37,17 @@ export const BrandInfoShape: import("@endo/patterns").Matcher;
|
|
|
37
37
|
/** @type {TypedPattern<DenomAmount>} */
|
|
38
38
|
export const DenomAmountShape: TypedPattern<DenomAmount>;
|
|
39
39
|
export const AmountArgShape: import("@endo/patterns").Matcher;
|
|
40
|
+
export const ICQMsgShape: import("@endo/patterns").Matcher;
|
|
40
41
|
export namespace chainFacadeMethods {
|
|
41
42
|
let getChainInfo: import("@endo/patterns").MethodGuard;
|
|
42
43
|
let makeAccount: import("@endo/patterns").MethodGuard;
|
|
44
|
+
let query: import("@endo/patterns").MethodGuard;
|
|
43
45
|
}
|
|
44
46
|
/** @see {Chain} */
|
|
45
47
|
export const ChainFacadeI: import("@endo/patterns").InterfaceGuard<{
|
|
46
48
|
getChainInfo: import("@endo/patterns").MethodGuard;
|
|
47
49
|
makeAccount: import("@endo/patterns").MethodGuard;
|
|
50
|
+
query: import("@endo/patterns").MethodGuard;
|
|
48
51
|
}>;
|
|
49
52
|
export namespace TimestampProtoShape {
|
|
50
53
|
let seconds: import("@endo/patterns").Matcher;
|
package/src/typeGuards.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAIA;;;;GAIG;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
|
|
1
|
+
{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"AAIA;;;;GAIG;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;;;;;;AAQF,mBAAmB;AACnB;;;;GAA2E;;;;;kCA7H2B,YAAY;kCADnF,kBAAkB;gCAEpB,wDAAwD;qCADiB,YAAY;qCAAZ,YAAY;+BAAZ,YAAY;iCAAZ,YAAY"}
|
package/src/typeGuards.js
CHANGED
|
@@ -117,9 +117,15 @@ export const DenomAmountShape = { denom: DenomShape, value: M.bigint() };
|
|
|
117
117
|
|
|
118
118
|
export const AmountArgShape = M.or(AmountShape, DenomAmountShape);
|
|
119
119
|
|
|
120
|
+
export const ICQMsgShape = M.splitRecord(
|
|
121
|
+
{ path: M.string(), data: M.string() },
|
|
122
|
+
{ height: M.string(), prove: M.boolean() },
|
|
123
|
+
);
|
|
124
|
+
|
|
120
125
|
export const chainFacadeMethods = harden({
|
|
121
126
|
getChainInfo: M.call().returns(VowShape),
|
|
122
127
|
makeAccount: M.call().returns(VowShape),
|
|
128
|
+
query: M.call(M.arrayOf(ICQMsgShape)).returns(VowShape),
|
|
123
129
|
});
|
|
124
130
|
|
|
125
131
|
/** @see {Chain} */
|