@agoric/orchestration 0.1.1-dev-2f5ba60.0.2f5ba60 → 0.1.1-dev-b4286a6.0.b4286a6
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/auto-stake-it.contract.d.ts +3 -3
- package/src/examples/axelar-gmp.contract.d.ts +1 -1
- package/src/examples/basic-flows.contract.d.ts +1 -1
- package/src/examples/send-anywhere.contract.d.ts +1 -1
- package/src/examples/stake-bld.contract.d.ts +10 -10
- package/src/examples/stake-ica.contract.d.ts +5 -5
- package/src/examples/staking-combinations.contract.d.ts +3 -3
- package/src/examples/swap-anything.contract.d.ts +1 -1
- package/src/examples/swap.contract.d.ts +1 -1
- package/src/examples/unbond.contract.d.ts +1 -1
- package/src/exos/cosmos-orchestration-account.d.ts +13 -13
- package/src/exos/local-orchestration-account.d.ts +1 -1
- package/src/exos/orchestrator.d.ts +4 -4
- package/src/exos/remote-chain-facade.d.ts +1 -1
- package/src/fixtures/query-flows.contract.d.ts +1 -1
- package/src/utils/start-helper.d.ts +28 -28
- package/src/vat-orchestration.d.ts +6 -5
- package/src/vat-orchestration.d.ts.map +1 -1
- package/src/vat-orchestration.js +1 -0
- package/tools/contract-tests.d.ts +7 -7
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-b4286a6.0.b4286a6",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
39
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
40
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
41
|
-
"@agoric/internal": "0.3.3-dev-
|
|
42
|
-
"@agoric/network": "0.1.1-dev-
|
|
43
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
44
|
-
"@agoric/store": "0.9.3-dev-
|
|
45
|
-
"@agoric/time": "0.3.3-dev-
|
|
46
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
47
|
-
"@agoric/vats": "0.15.2-dev-
|
|
48
|
-
"@agoric/vow": "0.1.1-dev-
|
|
49
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
50
|
-
"@agoric/zone": "0.2.3-dev-
|
|
38
|
+
"@agoric/async-flow": "0.1.1-dev-b4286a6.0.b4286a6",
|
|
39
|
+
"@agoric/cosmic-proto": "0.4.1-dev-b4286a6.0.b4286a6",
|
|
40
|
+
"@agoric/ertp": "0.16.3-dev-b4286a6.0.b4286a6",
|
|
41
|
+
"@agoric/internal": "0.3.3-dev-b4286a6.0.b4286a6",
|
|
42
|
+
"@agoric/network": "0.1.1-dev-b4286a6.0.b4286a6",
|
|
43
|
+
"@agoric/notifier": "0.6.3-dev-b4286a6.0.b4286a6",
|
|
44
|
+
"@agoric/store": "0.9.3-dev-b4286a6.0.b4286a6",
|
|
45
|
+
"@agoric/time": "0.3.3-dev-b4286a6.0.b4286a6",
|
|
46
|
+
"@agoric/vat-data": "0.5.3-dev-b4286a6.0.b4286a6",
|
|
47
|
+
"@agoric/vats": "0.15.2-dev-b4286a6.0.b4286a6",
|
|
48
|
+
"@agoric/vow": "0.1.1-dev-b4286a6.0.b4286a6",
|
|
49
|
+
"@agoric/zoe": "0.26.3-dev-b4286a6.0.b4286a6",
|
|
50
|
+
"@agoric/zone": "0.2.3-dev-b4286a6.0.b4286a6",
|
|
51
51
|
"@cosmjs/encoding": "^0.36.0",
|
|
52
52
|
"@endo/base64": "^1.0.12",
|
|
53
53
|
"@endo/errors": "^1.2.13",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"bs58": "^6.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
62
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-b4286a6.0.b4286a6",
|
|
63
63
|
"@chain-registry/client": "^1.53.194",
|
|
64
64
|
"@cosmjs/amino": "^0.36.0",
|
|
65
65
|
"@cosmjs/proto-signing": "^0.36.0",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"typeCoverage": {
|
|
106
106
|
"atLeast": 97.46
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "b4286a66bf43d6be6880e04c213153dc06275ee8"
|
|
109
109
|
}
|
|
@@ -4,7 +4,7 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
|
|
|
4
4
|
assetInfo?: [Denom, DenomDetail & {
|
|
5
5
|
brandKey?: string;
|
|
6
6
|
}][];
|
|
7
|
-
}, baggage: Baggage) => Promise<{
|
|
7
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
8
8
|
publicFacet: import("@endo/exo").Guarded<{
|
|
9
9
|
makeAccountsInvitation(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<import("@agoric/vow").Vow<{
|
|
10
10
|
publicSubscribers: {
|
|
@@ -15,11 +15,11 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
|
|
|
15
15
|
}>;
|
|
16
16
|
}>>, {
|
|
17
17
|
chainName: string;
|
|
18
|
-
validator: import("../cosmos-api.
|
|
18
|
+
validator: import("../cosmos-api.ts").CosmosValidatorAddress;
|
|
19
19
|
}>>;
|
|
20
20
|
}>;
|
|
21
21
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
22
|
-
registerChain(chainName: string, chainInfo: import("../orchestration-api.
|
|
22
|
+
registerChain(chainName: string, chainInfo: import("../orchestration-api.ts").ChainInfo, ibcConnectionInfo?: import("../cosmos-api.ts").IBCConnectionInfo): Promise<void>;
|
|
23
23
|
registerAsset(denom: Denom, detail: DenomDetail): Promise<void>;
|
|
24
24
|
}>;
|
|
25
25
|
}>;
|
|
@@ -25,7 +25,7 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
|
|
|
25
25
|
brandKey?: string;
|
|
26
26
|
}][];
|
|
27
27
|
storageNode: Remote<StorageNode>;
|
|
28
|
-
}, baggage: Baggage) => Promise<{
|
|
28
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
29
29
|
publicFacet: import("@endo/exo").Guarded<{
|
|
30
30
|
createAndMonitorLCA(): Promise<globalThis.Invitation<Vow<{
|
|
31
31
|
invitationMakers: import("@endo/exo").Guarded<{
|
|
@@ -4,7 +4,7 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
|
|
|
4
4
|
assetInfo?: [Denom, DenomDetail & {
|
|
5
5
|
brandKey?: string;
|
|
6
6
|
}][];
|
|
7
|
-
}, baggage: Baggage) => Promise<{
|
|
7
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
8
8
|
publicFacet: import("@endo/exo").Guarded<{
|
|
9
9
|
makeOrchAccountInvitation(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>, {
|
|
10
10
|
chainName: string;
|
|
@@ -31,7 +31,7 @@ export const start: (zcf: globalThis.ZCF<Record<string, unknown>>, privateArgs:
|
|
|
31
31
|
chainInfo?: Record<string, CosmosChainInfo>;
|
|
32
32
|
marshaller: Remote<Marshaller>;
|
|
33
33
|
storageNode: Remote<StorageNode>;
|
|
34
|
-
}, baggage: Baggage) => Promise<{
|
|
34
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
35
35
|
publicFacet: import("@endo/exo").Guarded<{
|
|
36
36
|
makeSendInvitation(): Promise<globalThis.Invitation<Vow<undefined>, {
|
|
37
37
|
chainName: string;
|
|
@@ -12,8 +12,8 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
12
12
|
makeStakeBldInvitation(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>, undefined>>;
|
|
13
13
|
makeAccount(): Promise<import("@endo/exo").Guarded<{
|
|
14
14
|
asContinuingOffer(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
15
|
-
getBalance(denom: import("../orchestration-api.
|
|
16
|
-
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.
|
|
15
|
+
getBalance(denom: import("../orchestration-api.ts").DenomArg): import("@agoric/vow").Vow<import("../orchestration-api.ts").DenomAmount>;
|
|
16
|
+
getBalances(): import("@agoric/vow").Vow<import("../orchestration-api.ts").DenomAmount[]>;
|
|
17
17
|
getPublicTopics(): import("@agoric/vow").Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
18
18
|
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<Record<unknown, unknown>>;
|
|
19
19
|
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): import("@agoric/vow").Vow<void | import("@agoric/time").TimestampRecord>;
|
|
@@ -24,27 +24,27 @@ export function start(zcf: ZCF, privateArgs: {
|
|
|
24
24
|
}[]): import("@agoric/vow").Vow<{
|
|
25
25
|
'@type': string;
|
|
26
26
|
}[]>;
|
|
27
|
-
getAddress(): import("../orchestration-api.
|
|
28
|
-
send(toAccount: import("../orchestration-api.
|
|
29
|
-
sendAll(toAccount: import("../orchestration-api.
|
|
30
|
-
transferWithMeta(destination: import("../orchestration-api.
|
|
27
|
+
getAddress(): import("../orchestration-api.ts").CosmosChainAddress;
|
|
28
|
+
send(toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg): import("@agoric/vow").Vow<void>;
|
|
29
|
+
sendAll(toAccount: import("../orchestration-api.ts").CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[]): import("@agoric/vow").Vow<void>;
|
|
30
|
+
transferWithMeta(destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<{
|
|
31
31
|
result: import("@agoric/vow").Vow<any> | Promise<any>;
|
|
32
32
|
meta: Record<string, any>;
|
|
33
33
|
}>;
|
|
34
|
-
transfer(destination: import("../orchestration-api.
|
|
34
|
+
transfer(destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined): import("@agoric/vow").Vow<any>;
|
|
35
35
|
parseInboundTransfer(packet: Record<string, any>): import("@agoric/vow").Vow<{
|
|
36
|
-
amount: import("../orchestration-api.
|
|
36
|
+
amount: import("../orchestration-api.ts").DenomAmount;
|
|
37
37
|
fromAccount: string;
|
|
38
38
|
toAccount: string;
|
|
39
39
|
extra: Record<string, any>;
|
|
40
40
|
}>;
|
|
41
|
-
transferSteps(amount: import("../orchestration-api.
|
|
41
|
+
transferSteps(amount: import("../orchestration-api.ts").AmountArg, msg: import("../orchestration-api.ts").TransferMsg): import("@agoric/vow").Vow<void>;
|
|
42
42
|
sendThenWaitForAck(packetSender?: any, opts?: {} | undefined): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<any>>;
|
|
43
43
|
sendThenWaitForAckWithMeta(packetSender: Remote<import("../exos/packet-tools.js").PacketSender>, opts?: import("../exos/packet-tools.js").PacketOptions | undefined): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<{
|
|
44
44
|
result: import("@agoric/vow").Vow<any>;
|
|
45
45
|
meta: Record<string, unknown>;
|
|
46
46
|
}>>;
|
|
47
|
-
matchFirstPacket(args_0?: import("@agoric/vow").EVow<Pattern>): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<{
|
|
47
|
+
matchFirstPacket(args_0?: import("@agoric/vow").EVow<import("@endo/patterns").Pattern>): import("@agoric/async-flow").HostInterface<import("@agoric/vow").Vow<{
|
|
48
48
|
resolver: import("@agoric/vow").VowResolver<any>;
|
|
49
49
|
match: import("@agoric/vow").Vow<any>;
|
|
50
50
|
}>>;
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
/** @type {ContractMeta<typeof start>} */
|
|
11
11
|
export const meta: ContractMeta<typeof start>;
|
|
12
12
|
export const privateArgsShape: {
|
|
13
|
-
agoricNames: Pattern;
|
|
14
|
-
cosmosInterchainService: Pattern;
|
|
15
|
-
storageNode: Pattern;
|
|
16
|
-
marshaller: Pattern;
|
|
17
|
-
timer: Pattern;
|
|
13
|
+
agoricNames: import("@endo/patterns").Pattern;
|
|
14
|
+
cosmosInterchainService: import("@endo/patterns").Pattern;
|
|
15
|
+
storageNode: import("@endo/patterns").Pattern;
|
|
16
|
+
marshaller: import("@endo/patterns").Pattern;
|
|
17
|
+
timer: import("@endo/patterns").Pattern;
|
|
18
18
|
} | undefined;
|
|
19
19
|
export function start(zcf: ZCF<StakeIcaTerms>, privateArgs: {
|
|
20
20
|
agoricNames: Remote<NameHub>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: OrchestrationPowers & {
|
|
2
2
|
marshaller: Remote<Marshaller>;
|
|
3
|
-
}, baggage: Baggage) => Promise<{
|
|
3
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
4
4
|
publicFacet: import("@endo/exo").Guarded<{
|
|
5
5
|
makeAccount(): Promise<Invitation<import("@agoric/vow").Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>, {
|
|
6
6
|
chainName: string;
|
|
7
7
|
}>>;
|
|
8
8
|
}>;
|
|
9
9
|
creatorFacet: import("@endo/exo").Guarded<{
|
|
10
|
-
registerChain(chainName: string, chainInfo: import("../orchestration-api.
|
|
11
|
-
registerAsset(denom: import("../orchestration-api.
|
|
10
|
+
registerChain(chainName: string, chainInfo: import("../orchestration-api.ts").ChainInfo, ibcConnectionInfo?: import("../cosmos-api.ts").IBCConnectionInfo): Promise<void>;
|
|
11
|
+
registerAsset(denom: import("../orchestration-api.ts").Denom, detail: import("../types.js").DenomDetail): Promise<void>;
|
|
12
12
|
}>;
|
|
13
13
|
}>;
|
|
14
14
|
import type { ZCF } from '@agoric/zoe';
|
|
@@ -29,7 +29,7 @@ export const start: (zcf: globalThis.ZCF<Record<string, unknown>>, privateArgs:
|
|
|
29
29
|
chainInfo?: Record<string, CosmosChainInfo>;
|
|
30
30
|
marshaller: Remote<Marshaller>;
|
|
31
31
|
storageNode: Remote<StorageNode>;
|
|
32
|
-
}, baggage: Baggage) => Promise<{
|
|
32
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
33
33
|
publicFacet: import("@endo/exo").Guarded<{
|
|
34
34
|
makeSwapInvitation(): Promise<globalThis.Invitation<Vow<string>, import("./swap-anything.flows.js").SwapInfo>>;
|
|
35
35
|
}>;
|
|
@@ -25,7 +25,7 @@ export const start: (zcf: globalThis.ZCF<Record<string, unknown>>, privateArgs:
|
|
|
25
25
|
assetInfo: [Denom, DenomDetail & {
|
|
26
26
|
brandKey?: string;
|
|
27
27
|
}][];
|
|
28
|
-
}, baggage: Baggage) => Promise<{
|
|
28
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
29
29
|
publicFacet: import("@endo/exo").Guarded<{
|
|
30
30
|
makeSwapAndStakeInvitation(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<void>, {
|
|
31
31
|
staked: Amount<"nat">;
|
|
@@ -5,7 +5,7 @@ export const start: (zcf: globalThis.ZCF<Record<string, unknown>>, privateArgs:
|
|
|
5
5
|
storageNode: Remote<StorageNode>;
|
|
6
6
|
marshaller: Remote<Marshaller>;
|
|
7
7
|
timerService: Remote<TimerService>;
|
|
8
|
-
}, baggage: Baggage) => Promise<{
|
|
8
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
9
9
|
publicFacet: import("@endo/exo").Guarded<{
|
|
10
10
|
makeUnbondAndTransferInvitation(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<void>, undefined>>;
|
|
11
11
|
}>;
|
|
@@ -100,7 +100,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
100
100
|
/**
|
|
101
101
|
* @param {JsonSafe<ResponseQuery>[]} results
|
|
102
102
|
*/
|
|
103
|
-
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.
|
|
103
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.ts").DenomAmount;
|
|
104
104
|
};
|
|
105
105
|
delegationQueryWatcher: {
|
|
106
106
|
/**
|
|
@@ -144,7 +144,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
144
144
|
/**
|
|
145
145
|
* @param {JsonSafe<ResponseQuery>[]} results
|
|
146
146
|
*/
|
|
147
|
-
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.
|
|
147
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.ts").DenomAmount[];
|
|
148
148
|
};
|
|
149
149
|
rewardsQueryWatcher: {
|
|
150
150
|
/**
|
|
@@ -157,7 +157,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
157
157
|
/**
|
|
158
158
|
* @param {JsonSafe<ResponseQuery>[]} results
|
|
159
159
|
*/
|
|
160
|
-
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.
|
|
160
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.ts").DenomAmount[];
|
|
161
161
|
};
|
|
162
162
|
undelegateWatcher: {
|
|
163
163
|
/**
|
|
@@ -175,7 +175,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
175
175
|
};
|
|
176
176
|
withdrawRewardWatcher: {
|
|
177
177
|
/** @param {string} result */
|
|
178
|
-
onFulfilled(result: string): import("../orchestration-api.
|
|
178
|
+
onFulfilled(result: string): import("../orchestration-api.ts").DenomAmount[];
|
|
179
179
|
};
|
|
180
180
|
transferWatcher: {
|
|
181
181
|
onFulfilled(...args: any[]): never;
|
|
@@ -222,7 +222,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
222
222
|
*/
|
|
223
223
|
Redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<void>, undefined>>;
|
|
224
224
|
/** @param {CosmosValidatorAddress} validator */
|
|
225
|
-
WithdrawReward(validator: CosmosValidatorAddress): Promise<Invitation<Vow<import("../orchestration-api.
|
|
225
|
+
WithdrawReward(validator: CosmosValidatorAddress): Promise<Invitation<Vow<import("../orchestration-api.ts").DenomAmount[]>, undefined>>;
|
|
226
226
|
/**
|
|
227
227
|
* @param {{
|
|
228
228
|
* amount: AmountArg;
|
|
@@ -261,9 +261,9 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
261
261
|
getAddress(): import("@agoric/async-flow").HostInterface<CosmosChainAddress>;
|
|
262
262
|
delegate(validator: CosmosValidatorAddress, amount: AmountArg): Vow<void>;
|
|
263
263
|
redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Vow<void>;
|
|
264
|
-
withdrawReward(validator: CosmosValidatorAddress): Vow<import("../orchestration-api.
|
|
265
|
-
getBalance(denom: import("../orchestration-api.
|
|
266
|
-
getBalances(): Vow<import("../orchestration-api.
|
|
264
|
+
withdrawReward(validator: CosmosValidatorAddress): Vow<import("../orchestration-api.ts").DenomAmount[]>;
|
|
265
|
+
getBalance(denom: import("../orchestration-api.ts").DenomArg): Vow<import("../orchestration-api.ts").DenomAmount>;
|
|
266
|
+
getBalances(): Vow<import("../orchestration-api.ts").DenomAmount[]>;
|
|
267
267
|
send(toAccount: AccountIdArg, amount: AmountArg): Vow<void>;
|
|
268
268
|
sendAll(toAccount: CosmosChainAddress, amounts: AmountArg[]): Vow<void>;
|
|
269
269
|
transfer(destination: AccountIdArg, amount: AmountArg, opts?: IBCMsgTransferOptions | undefined): Vow<any>;
|
|
@@ -271,8 +271,8 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
271
271
|
result: Vow<any> | Promise<any>;
|
|
272
272
|
meta: Record<string, any>;
|
|
273
273
|
}>;
|
|
274
|
-
transferSteps(amount: AmountArg, msg: import("../orchestration-api.
|
|
275
|
-
withdrawRewards(): Vow<import("../orchestration-api.
|
|
274
|
+
transferSteps(amount: AmountArg, msg: import("../orchestration-api.ts").TransferMsg): Vow<void>;
|
|
275
|
+
withdrawRewards(): Vow<import("../orchestration-api.ts").DenomAmount[]>;
|
|
276
276
|
undelegate(delegations: {
|
|
277
277
|
amount: AmountArg;
|
|
278
278
|
delegator?: CosmosChainAddress;
|
|
@@ -284,7 +284,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
284
284
|
getDelegations(): Vow<{
|
|
285
285
|
delegator: {
|
|
286
286
|
chainId: string;
|
|
287
|
-
value: import("../cosmos-api.
|
|
287
|
+
value: import("../cosmos-api.ts").Bech32Address;
|
|
288
288
|
encoding: "bech32";
|
|
289
289
|
};
|
|
290
290
|
validator: {
|
|
@@ -357,7 +357,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
357
357
|
encoding: "bech32";
|
|
358
358
|
};
|
|
359
359
|
amount: {
|
|
360
|
-
denom: import("../orchestration-api.
|
|
360
|
+
denom: import("../orchestration-api.ts").Denom;
|
|
361
361
|
value: bigint;
|
|
362
362
|
};
|
|
363
363
|
}[]>;
|
|
@@ -409,7 +409,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
409
409
|
balance: string;
|
|
410
410
|
}[];
|
|
411
411
|
}[]>;
|
|
412
|
-
getReward(validator: CosmosValidatorAddress): Vow<import("../orchestration-api.
|
|
412
|
+
getReward(validator: CosmosValidatorAddress): Vow<import("../orchestration-api.ts").DenomAmount[]>;
|
|
413
413
|
getRewards(): Vow<import("@agoric/async-flow").HostInterface<CosmosRewardsResponse>>;
|
|
414
414
|
executeEncodedTx(msgs: {
|
|
415
415
|
$typeUrl?: "/google.protobuf.Any" | string | undefined;
|
|
@@ -231,7 +231,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
|
|
|
231
231
|
result: Vow<any>;
|
|
232
232
|
meta: Record<string, unknown>;
|
|
233
233
|
}>>;
|
|
234
|
-
matchFirstPacket(args_0?: import("@agoric/vow").EVow<Pattern>): import("@agoric/async-flow").HostInterface<Vow<{
|
|
234
|
+
matchFirstPacket(args_0?: import("@agoric/vow").EVow<import("@endo/patterns").Pattern>): import("@agoric/async-flow").HostInterface<Vow<{
|
|
235
235
|
resolver: import("@agoric/vow").VowResolver<any>;
|
|
236
236
|
match: Vow<any>;
|
|
237
237
|
}>>;
|
|
@@ -11,7 +11,7 @@ export function prepareOrchestrator(zone: Zone, powers: {
|
|
|
11
11
|
vowTools: VowTools;
|
|
12
12
|
}): () => import("@endo/exo").Guarded<{
|
|
13
13
|
getChain(chainName: string): Vow<HostInterface<Chain<any> & object>>;
|
|
14
|
-
getDenomInfo(denom: string, srcChainName: "solana" | "agoric" | "celestia" | "cosmoshub" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee" | "dydx" | "archway" | "axelar" | "evmos" | "haqq" | "kava" | "kujira" | "migaloo" | "nolus" | "persistence" | "pryzm" | "sei" | "shido" | "titan" | "beezee" | "carbon" | "coreum" | "crescent" | "doravota" | "dymension" | "empowerchain" | "injective" | "lava" | "nibiru" | "planq" | "provenance" | "quicksilver" | "sifchain" | "terra2" | "ethereum" | "avalanche" | "optimism" | "arbitrum" | "base" | "polygon"): HostInterface<import("../orchestration-api.
|
|
14
|
+
getDenomInfo(denom: string, srcChainName: "solana" | "agoric" | "celestia" | "cosmoshub" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee" | "dydx" | "archway" | "axelar" | "evmos" | "haqq" | "kava" | "kujira" | "migaloo" | "nolus" | "persistence" | "pryzm" | "sei" | "shido" | "titan" | "beezee" | "carbon" | "coreum" | "crescent" | "doravota" | "dymension" | "empowerchain" | "injective" | "lava" | "nibiru" | "planq" | "provenance" | "quicksilver" | "sifchain" | "terra2" | "ethereum" | "avalanche" | "optimism" | "arbitrum" | "base" | "polygon"): HostInterface<import("../orchestration-api.ts").DenomInfo<"solana" | "agoric" | "celestia" | "cosmoshub" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee" | "dydx" | "archway" | "axelar" | "evmos" | "haqq" | "kava" | "kujira" | "migaloo" | "nolus" | "persistence" | "pryzm" | "sei" | "shido" | "titan" | "beezee" | "carbon" | "coreum" | "crescent" | "doravota" | "dymension" | "empowerchain" | "injective" | "lava" | "nibiru" | "planq" | "provenance" | "quicksilver" | "sifchain" | "terra2" | "ethereum" | "avalanche" | "optimism" | "arbitrum" | "base" | "polygon", "solana" | "agoric" | "celestia" | "cosmoshub" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee" | "dydx" | "archway" | "axelar" | "evmos" | "haqq" | "kava" | "kujira" | "migaloo" | "nolus" | "persistence" | "pryzm" | "sei" | "shido" | "titan" | "beezee" | "carbon" | "coreum" | "crescent" | "doravota" | "dymension" | "empowerchain" | "injective" | "lava" | "nibiru" | "planq" | "provenance" | "quicksilver" | "sifchain" | "terra2" | "ethereum" | "avalanche" | "optimism" | "arbitrum" | "base" | "polygon">>;
|
|
15
15
|
/** @type {HostOf<Orchestrator['asAmount']>} */
|
|
16
16
|
asAmount: HostOf<Orchestrator["asAmount"]>;
|
|
17
17
|
}>;
|
|
@@ -51,7 +51,7 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, makeLocalChainFa
|
|
|
51
51
|
* @param {ActualChainInfo<'agoric'>} agoricChainInfo
|
|
52
52
|
*/
|
|
53
53
|
onFulfilled(agoricChainInfo: ActualChainInfo<"agoric">): import("@endo/exo").Guarded<{
|
|
54
|
-
getChainInfo(): Vow<import("../cosmos-api.
|
|
54
|
+
getChainInfo(): Vow<import("../cosmos-api.ts").CosmosChainInfo>;
|
|
55
55
|
makeAccount(): Vow<import("./local-orchestration-account.js").LocalOrchestrationAccountKit["holder"]>;
|
|
56
56
|
query(args_0: {
|
|
57
57
|
'@type': string;
|
|
@@ -78,7 +78,7 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, makeLocalChainFa
|
|
|
78
78
|
*/
|
|
79
79
|
onFulfilled([_agoricChainInfo, remoteChainInfo, connectionInfo]: [ChainInfo, ChainInfo, IBCConnectionInfo], name: string): import("@endo/exo").Guarded<{
|
|
80
80
|
getChainInfo(): Vow<any>;
|
|
81
|
-
makeAccount(): Vow<HostInterface<import("../orchestration-api.
|
|
81
|
+
makeAccount(): Vow<HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & object> | HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").LocalAccountMethods> | HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & object & import("../cosmos-api.ts").NobleMethods> | HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & import("../cosmos-api.ts").StakingAccountActions & import("../cosmos-api.ts").StakingAccountQueries & import("../cosmos-api.ts").NobleMethods> | HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & object> | HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & import("../cosmos-api.ts").StakingAccountActions & import("../cosmos-api.ts").StakingAccountQueries>>;
|
|
82
82
|
query(msgs: {
|
|
83
83
|
data: string;
|
|
84
84
|
path: string;
|
|
@@ -105,7 +105,7 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, makeLocalChainFa
|
|
|
105
105
|
};
|
|
106
106
|
orchestrator: {
|
|
107
107
|
getChain(chainName: string): Vow<HostInterface<Chain<any> & object>>;
|
|
108
|
-
getDenomInfo(denom: string, srcChainName: "solana" | "agoric" | "celestia" | "cosmoshub" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee" | "dydx" | "archway" | "axelar" | "evmos" | "haqq" | "kava" | "kujira" | "migaloo" | "nolus" | "persistence" | "pryzm" | "sei" | "shido" | "titan" | "beezee" | "carbon" | "coreum" | "crescent" | "doravota" | "dymension" | "empowerchain" | "injective" | "lava" | "nibiru" | "planq" | "provenance" | "quicksilver" | "sifchain" | "terra2" | "ethereum" | "avalanche" | "optimism" | "arbitrum" | "base" | "polygon"): HostInterface<import("../orchestration-api.
|
|
108
|
+
getDenomInfo(denom: string, srcChainName: "solana" | "agoric" | "celestia" | "cosmoshub" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee" | "dydx" | "archway" | "axelar" | "evmos" | "haqq" | "kava" | "kujira" | "migaloo" | "nolus" | "persistence" | "pryzm" | "sei" | "shido" | "titan" | "beezee" | "carbon" | "coreum" | "crescent" | "doravota" | "dymension" | "empowerchain" | "injective" | "lava" | "nibiru" | "planq" | "provenance" | "quicksilver" | "sifchain" | "terra2" | "ethereum" | "avalanche" | "optimism" | "arbitrum" | "base" | "polygon"): HostInterface<import("../orchestration-api.ts").DenomInfo<"solana" | "agoric" | "celestia" | "cosmoshub" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee" | "dydx" | "archway" | "axelar" | "evmos" | "haqq" | "kava" | "kujira" | "migaloo" | "nolus" | "persistence" | "pryzm" | "sei" | "shido" | "titan" | "beezee" | "carbon" | "coreum" | "crescent" | "doravota" | "dymension" | "empowerchain" | "injective" | "lava" | "nibiru" | "planq" | "provenance" | "quicksilver" | "sifchain" | "terra2" | "ethereum" | "avalanche" | "optimism" | "arbitrum" | "base" | "polygon", "solana" | "agoric" | "celestia" | "cosmoshub" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee" | "dydx" | "archway" | "axelar" | "evmos" | "haqq" | "kava" | "kujira" | "migaloo" | "nolus" | "persistence" | "pryzm" | "sei" | "shido" | "titan" | "beezee" | "carbon" | "coreum" | "crescent" | "doravota" | "dymension" | "empowerchain" | "injective" | "lava" | "nibiru" | "planq" | "provenance" | "quicksilver" | "sifchain" | "terra2" | "ethereum" | "avalanche" | "optimism" | "arbitrum" | "base" | "polygon">>;
|
|
109
109
|
/** @type {HostOf<Orchestrator['asAmount']>} */
|
|
110
110
|
asAmount: HostOf<Orchestrator["asAmount"]>;
|
|
111
111
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export function prepareRemoteChainFacade(zone: Zone, powers: RemoteChainFacadePowers): (remoteChainInfo: ChainInfo, connectionInfo?: IBCConnectionInfo | undefined) => import("@endo/exo").Guarded<{
|
|
2
2
|
getChainInfo(): Vow<any>;
|
|
3
|
-
makeAccount(): Vow<import("@agoric/async-flow").HostInterface<import("../orchestration-api.
|
|
3
|
+
makeAccount(): Vow<import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & object> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").LocalAccountMethods> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & object & import("../cosmos-api.ts").NobleMethods> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & import("../cosmos-api.ts").StakingAccountActions & import("../cosmos-api.ts").StakingAccountQueries & import("../cosmos-api.ts").NobleMethods> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & object> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & import("../cosmos-api.ts").StakingAccountActions & import("../cosmos-api.ts").StakingAccountQueries>>;
|
|
4
4
|
query(msgs: {
|
|
5
5
|
data: string;
|
|
6
6
|
path: string;
|
|
@@ -4,7 +4,7 @@ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: Orchestrati
|
|
|
4
4
|
assetInfo?: [Denom, DenomDetail & {
|
|
5
5
|
brandKey?: string;
|
|
6
6
|
}][];
|
|
7
|
-
}, baggage: Baggage) => Promise<{
|
|
7
|
+
}, baggage: import("@agoric/vat-data").Baggage) => Promise<{
|
|
8
8
|
publicFacet: import("@endo/exo").Guarded<{
|
|
9
9
|
makeSendICQQueryInvitation(): Promise<globalThis.Invitation<import("@agoric/vow").Vow<string>, {
|
|
10
10
|
chainName: string;
|
|
@@ -2,43 +2,43 @@ export function provideOrchestration(zcf: ZCF, baggage: Baggage, remotePowers: O
|
|
|
2
2
|
chainInfoValueShape?: WithOrchestrationOpts["chainInfoValueShape"];
|
|
3
3
|
}): {
|
|
4
4
|
makeOrchestrateKit: (zone: Zone) => {
|
|
5
|
-
orchestrate: <HC, GF extends import("../orchestration-api.
|
|
5
|
+
orchestrate: <HC, GF extends import("../orchestration-api.ts").OrchestrationFlow<import("@agoric/async-flow").GuestInterface<HC>>>(durableName: string, hostCtx: HC, guestFn: GF) => HostForGuest<GF>;
|
|
6
6
|
orchestrateAll: <HC extends Record<string, any>, GFM extends {
|
|
7
|
-
[durableName: string]: import("../orchestration-api.
|
|
7
|
+
[durableName: string]: import("../orchestration-api.ts").OrchestrationFlow<import("@agoric/async-flow").GuestInterface<HC>>;
|
|
8
8
|
}>(guestFns: GFM, hostCtx: HC) => { [N in keyof GFM]: HostForGuest<GFM[N]>; };
|
|
9
9
|
};
|
|
10
10
|
baggage: Baggage;
|
|
11
11
|
cachingMarshaller: {
|
|
12
|
-
serialize: (val?: Passable) => globalThis.ERef<import("@endo/marshal").CapData<unknown>>;
|
|
12
|
+
serialize: (val?: import("@endo/pass-style").Passable) => globalThis.ERef<import("@endo/marshal").CapData<unknown>>;
|
|
13
13
|
unserialize: (data: import("@endo/marshal").CapData<unknown>) => any;
|
|
14
|
-
toCapData: (val?: Passable) => globalThis.ERef<import("@endo/marshal").CapData<unknown>>;
|
|
14
|
+
toCapData: (val?: import("@endo/pass-style").Passable) => globalThis.ERef<import("@endo/marshal").CapData<unknown>>;
|
|
15
15
|
fromCapData: (data: import("@endo/marshal").CapData<unknown>) => any;
|
|
16
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
17
|
-
serialize: (val?: Passable) => globalThis.ERef<import("@endo/marshal").CapData<unknown>>;
|
|
16
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
17
|
+
serialize: (val?: import("@endo/pass-style").Passable) => globalThis.ERef<import("@endo/marshal").CapData<unknown>>;
|
|
18
18
|
unserialize: (data: import("@endo/marshal").CapData<unknown>) => any;
|
|
19
|
-
toCapData: (val?: Passable) => globalThis.ERef<import("@endo/marshal").CapData<unknown>>;
|
|
19
|
+
toCapData: (val?: import("@endo/pass-style").Passable) => globalThis.ERef<import("@endo/marshal").CapData<unknown>>;
|
|
20
20
|
fromCapData: (data: import("@endo/marshal").CapData<unknown>) => any;
|
|
21
21
|
}>;
|
|
22
22
|
chainHub: import("@endo/exo").Guarded<{
|
|
23
|
-
registerChain(name: string, chainInfo: import("../orchestration-api.
|
|
24
|
-
updateChain(chainName: string, chainInfo: import("../orchestration-api.
|
|
23
|
+
registerChain(name: string, chainInfo: import("../orchestration-api.ts").ChainInfo): void;
|
|
24
|
+
updateChain(chainName: string, chainInfo: import("../orchestration-api.ts").ChainInfo): void;
|
|
25
25
|
getChainInfo<K extends string>(chainName: K): import("@agoric/vow").Vow<ActualChainInfo<K>>;
|
|
26
|
-
getChainInfoByChainId(chainId: import("../orchestration-api.
|
|
27
|
-
registerConnection(primaryChainId: string, counterpartyChainId: string, connectionInfo: import("../cosmos-api.
|
|
28
|
-
updateConnection(primaryChainId: string, counterpartyChainId: string, connectionInfo: import("../cosmos-api.
|
|
26
|
+
getChainInfoByChainId(chainId: import("../orchestration-api.ts").CaipChainId): import("../orchestration-api.ts").ChainInfo;
|
|
27
|
+
registerConnection(primaryChainId: string, counterpartyChainId: string, connectionInfo: import("../cosmos-api.ts").IBCConnectionInfo): void;
|
|
28
|
+
updateConnection(primaryChainId: string, counterpartyChainId: string, connectionInfo: import("../cosmos-api.ts").IBCConnectionInfo): void;
|
|
29
29
|
getConnectionInfo(primary: string | {
|
|
30
30
|
chainId: string;
|
|
31
31
|
}, counter: string | {
|
|
32
32
|
chainId: string;
|
|
33
|
-
}): import("@agoric/vow").Vow<import("../cosmos-api.
|
|
34
|
-
getChainsAndConnection<C1 extends string, C2 extends string>(primaryName: C1, counterName: C2): import("@agoric/vow").Vow<[ActualChainInfo<C1>, ActualChainInfo<C2>, import("../cosmos-api.
|
|
35
|
-
registerAsset(denom: import("../orchestration-api.
|
|
36
|
-
updateAsset(denom: import("../orchestration-api.
|
|
37
|
-
getAsset(denom: import("../orchestration-api.
|
|
38
|
-
getDenom(brand: Brand): import("../orchestration-api.
|
|
39
|
-
resolveAccountId(partialId: import("../orchestration-api.
|
|
40
|
-
coerceCosmosAddress(partialId: import("../orchestration-api.
|
|
41
|
-
makeTransferRoute(destination: import("../orchestration-api.
|
|
33
|
+
}): import("@agoric/vow").Vow<import("../cosmos-api.ts").IBCConnectionInfo>;
|
|
34
|
+
getChainsAndConnection<C1 extends string, C2 extends string>(primaryName: C1, counterName: C2): import("@agoric/vow").Vow<[ActualChainInfo<C1>, ActualChainInfo<C2>, import("../cosmos-api.ts").IBCConnectionInfo]>;
|
|
35
|
+
registerAsset(denom: import("../orchestration-api.ts").Denom, detail: DenomDetail): void;
|
|
36
|
+
updateAsset(denom: import("../orchestration-api.ts").Denom, detail: DenomDetail): void;
|
|
37
|
+
getAsset(denom: import("../orchestration-api.ts").Denom, srcChainName: string): DenomDetail | undefined;
|
|
38
|
+
getDenom(brand: Brand): import("../orchestration-api.ts").Denom | undefined;
|
|
39
|
+
resolveAccountId(partialId: import("../orchestration-api.ts").AccountId | import("../cosmos-api.ts").Bech32Address): import("../orchestration-api.ts").AccountId;
|
|
40
|
+
coerceCosmosAddress(partialId: import("../orchestration-api.ts").AccountIdArg | import("../cosmos-api.ts").Bech32Address): import("../orchestration-api.ts").CosmosChainAddress;
|
|
41
|
+
makeTransferRoute(destination: import("../orchestration-api.ts").AccountIdArg | import("../cosmos-api.ts").Bech32Address, denomAmount: import("../orchestration-api.ts").DenomAmount, srcChainName: string, forwardOpts?: import("../cosmos-api.ts").IBCMsgTransferOptions["forwardOpts"]): import("../cosmos-api.ts").TransferRoute;
|
|
42
42
|
isEmpty(): boolean;
|
|
43
43
|
}>;
|
|
44
44
|
vowTools: import("@agoric/vow").VowTools;
|
|
@@ -51,7 +51,7 @@ export function provideOrchestration(zcf: ZCF, baggage: Baggage, remotePowers: O
|
|
|
51
51
|
restart(eager?: boolean): void;
|
|
52
52
|
wake(): void;
|
|
53
53
|
getOutcome(): import("@agoric/vow").Vow<any>;
|
|
54
|
-
dump(): ([op: "doFulfill", vow: import("@agoric/vow").Vow<Passable>, fulfillment: Passable] | [op: "doReject", vow: import("@agoric/vow").Vow<Passable>, reason: Passable] | [op: "doReturn", callIndex: number, result: Passable] | [op: "doThrow", callIndex: number, problem: Passable] | [op: "checkCall", target: Passable, optVerb: PropertyKey | undefined, args: Passable[], callIndex: number] | [op: "checkSendOnly", target: Passable, optVerb: PropertyKey | undefined, args: Passable[], callIndex: number] | [op: "checkSend", target: Passable, optVerb: PropertyKey | undefined, args: Passable[], callIndex: number])[];
|
|
54
|
+
dump(): ([op: "doFulfill", vow: import("@agoric/vow").Vow<import("@endo/pass-style").Passable>, fulfillment: import("@endo/pass-style").Passable] | [op: "doReject", vow: import("@agoric/vow").Vow<import("@endo/pass-style").Passable>, reason: import("@endo/pass-style").Passable] | [op: "doReturn", callIndex: number, result: import("@endo/pass-style").Passable] | [op: "doThrow", callIndex: number, problem: import("@endo/pass-style").Passable] | [op: "checkCall", target: import("@endo/pass-style").Passable, optVerb: PropertyKey | undefined, args: import("@endo/pass-style").Passable[], callIndex: number] | [op: "checkSendOnly", target: import("@endo/pass-style").Passable, optVerb: PropertyKey | undefined, args: import("@endo/pass-style").Passable[], callIndex: number] | [op: "checkSend", target: import("@endo/pass-style").Passable, optVerb: PropertyKey | undefined, args: import("@endo/pass-style").Passable[], callIndex: number])[];
|
|
55
55
|
getOptFatalProblem(): any;
|
|
56
56
|
};
|
|
57
57
|
admin: {
|
|
@@ -68,22 +68,22 @@ export function provideOrchestration(zcf: ZCF, baggage: Baggage, remotePowers: O
|
|
|
68
68
|
startEager?: boolean;
|
|
69
69
|
}) => import("@agoric/async-flow").HostOf<F>;
|
|
70
70
|
adminAsyncFlow: import("@endo/exo").Guarded<{
|
|
71
|
-
getFailures(): import("@endo/patterns").CopyMap<any, Passable>;
|
|
71
|
+
getFailures(): import("@endo/patterns").CopyMap<any, import("@endo/pass-style").Passable>;
|
|
72
72
|
wakeAll(): void;
|
|
73
73
|
getFlowForOutcomeVow(outcomeVow: any): any;
|
|
74
74
|
}>;
|
|
75
75
|
allWokenP: Promise<void>;
|
|
76
76
|
prepareEndowment: (zone: Zone, tag: string, e: unknown) => any;
|
|
77
77
|
};
|
|
78
|
-
zcfTools: import("@agoric/async-flow").HostInterface<import("../types.
|
|
78
|
+
zcfTools: import("@agoric/async-flow").HostInterface<import("../types.ts").ZcfTools>;
|
|
79
79
|
zoeTools: {
|
|
80
|
-
localTransfer: (srcSeat: globalThis.ZCFSeat, localAccount: import("../cosmos-api.
|
|
81
|
-
withdrawToSeat: (localAccount: import("../cosmos-api.
|
|
80
|
+
localTransfer: (srcSeat: globalThis.ZCFSeat, localAccount: import("../cosmos-api.ts").LocalAccountMethods, amounts: globalThis.AmountKeywordRecord) => import("@agoric/vow").Vow<void>;
|
|
81
|
+
withdrawToSeat: (localAccount: import("../cosmos-api.ts").LocalAccountMethods, destSeat: globalThis.ZCFSeat, amounts: globalThis.AmountKeywordRecord) => import("@agoric/vow").Vow<void>;
|
|
82
82
|
};
|
|
83
83
|
zone: Zone;
|
|
84
|
-
orchestrate: <HC, GF extends import("../orchestration-api.
|
|
84
|
+
orchestrate: <HC, GF extends import("../orchestration-api.ts").OrchestrationFlow<import("@agoric/async-flow").GuestInterface<HC>>>(durableName: string, hostCtx: HC, guestFn: GF) => HostForGuest<GF>;
|
|
85
85
|
orchestrateAll: <HC extends Record<string, any>, GFM extends {
|
|
86
|
-
[durableName: string]: import("../orchestration-api.
|
|
86
|
+
[durableName: string]: import("../orchestration-api.ts").OrchestrationFlow<import("@agoric/async-flow").GuestInterface<HC>>;
|
|
87
87
|
}>(guestFns: GFM, hostCtx: HC) => { [N in keyof GFM]: HostForGuest<GFM[N]>; };
|
|
88
88
|
};
|
|
89
89
|
export function withOrchestration<CT extends Record<string, unknown>, PA extends OrchestrationPowers & {
|
|
@@ -3,17 +3,18 @@ export function buildRootObject(vatPowers: VatPowers & {
|
|
|
3
3
|
}, vatParameters: never, baggage: Baggage): {
|
|
4
4
|
/** @param {Partial<CosmosOrchestrationPowers>} [initialPowers] */
|
|
5
5
|
makeCosmosInterchainService(initialPowers?: Partial<CosmosOrchestrationPowers>): import("@endo/exo").Guarded<{
|
|
6
|
-
makeAccount(chainId: string, hostConnectionId: import("@agoric/vats").IBCConnectionID, controllerConnectionId: import("@agoric/vats").IBCConnectionID, opts?: import("./utils/address.js").ICAChannelAddressOpts): import("@agoric/vow").Vow<import("./cosmos-api.
|
|
7
|
-
provideICQConnection(controllerConnectionId: import("@agoric/vats").IBCConnectionID, version?: string): import("@agoric/vow").Vow<import("./types.
|
|
6
|
+
makeAccount(chainId: string, hostConnectionId: import("@agoric/vats").IBCConnectionID, controllerConnectionId: import("@agoric/vats").IBCConnectionID, opts?: import("./utils/address.js").ICAChannelAddressOpts): import("@agoric/vow").Vow<import("./cosmos-api.ts").IcaAccount>;
|
|
7
|
+
provideICQConnection(controllerConnectionId: import("@agoric/vats").IBCConnectionID, version?: string): import("@agoric/vow").Vow<import("./types.ts").ICQConnection> | import("./types.ts").ICQConnection;
|
|
8
8
|
}>;
|
|
9
|
-
} & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
9
|
+
} & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
|
|
10
10
|
/** @param {Partial<CosmosOrchestrationPowers>} [initialPowers] */
|
|
11
11
|
makeCosmosInterchainService(initialPowers?: Partial<CosmosOrchestrationPowers>): import("@endo/exo").Guarded<{
|
|
12
|
-
makeAccount(chainId: string, hostConnectionId: import("@agoric/vats").IBCConnectionID, controllerConnectionId: import("@agoric/vats").IBCConnectionID, opts?: import("./utils/address.js").ICAChannelAddressOpts): import("@agoric/vow").Vow<import("./cosmos-api.
|
|
13
|
-
provideICQConnection(controllerConnectionId: import("@agoric/vats").IBCConnectionID, version?: string): import("@agoric/vow").Vow<import("./types.
|
|
12
|
+
makeAccount(chainId: string, hostConnectionId: import("@agoric/vats").IBCConnectionID, controllerConnectionId: import("@agoric/vats").IBCConnectionID, opts?: import("./utils/address.js").ICAChannelAddressOpts): import("@agoric/vow").Vow<import("./cosmos-api.ts").IcaAccount>;
|
|
13
|
+
provideICQConnection(controllerConnectionId: import("@agoric/vats").IBCConnectionID, version?: string): import("@agoric/vow").Vow<import("./types.ts").ICQConnection> | import("./types.ts").ICQConnection;
|
|
14
14
|
}>;
|
|
15
15
|
}>;
|
|
16
16
|
export type OrchestrationVat = ReturnType<typeof buildRootObject>;
|
|
17
|
+
import type { VatPowers } from '@agoric/swingset-vat';
|
|
17
18
|
import type { Baggage } from '@agoric/vat-data';
|
|
18
19
|
import type { CosmosOrchestrationPowers } from './exos/cosmos-interchain-service.js';
|
|
19
20
|
//# sourceMappingURL=vat-orchestration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vat-orchestration.d.ts","sourceRoot":"","sources":["vat-orchestration.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vat-orchestration.d.ts","sourceRoot":"","sources":["vat-orchestration.js"],"names":[],"mappings":"AAoBO,2CANI,SAAS,GAAG;IAClB,CAAC,EAAE,MAAM,CAAC;CACX,iBACO,KAAK,WACL,OAAO;IAWd,kEAAkE;gDAAtD,OAAO,CAAC,yBAAyB,CAAC;;;;;IAA9C,kEAAkE;gDAAtD,OAAO,CAAC,yBAAyB,CAAC;;;;GAKjD;+BAEa,UAAU,CAAC,OAAO,eAAe,CAAC;+BA5BpB,sBAAsB;6BAFxB,kBAAkB;+CACA,qCAAqC"}
|
package/src/vat-orchestration.js
CHANGED
|
@@ -6,6 +6,7 @@ import { prepareCosmosInterchainService } from './exos/cosmos-interchain-service
|
|
|
6
6
|
/**
|
|
7
7
|
* @import {Baggage} from '@agoric/vat-data';
|
|
8
8
|
* @import {CosmosOrchestrationPowers} from './exos/cosmos-interchain-service.js';
|
|
9
|
+
* @import {VatPowers} from '@agoric/swingset-vat';
|
|
9
10
|
*/
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -19,7 +19,7 @@ export declare const setupOrchestrationTest: ({ log, chains, }: {
|
|
|
19
19
|
agoricNamesAdmin: import("@agoric/vats").NameAdmin;
|
|
20
20
|
bankManager: import("@endo/exo").Guarded<{
|
|
21
21
|
getAssetSubscription(): IterableEachTopic<AssetDescriptor>;
|
|
22
|
-
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<import("
|
|
22
|
+
getRewardDistributorDepositFacet(denom: string, feeKit: AssetIssuerKit): ERef<import("@endo/far").EOnly<import("@agoric/ertp").DepositFacet>>;
|
|
23
23
|
getModuleAccountAddress(moduleName: string): Promise<string | null>;
|
|
24
24
|
addAsset(denom: string, issuerName: string, proposedName: string, kit: AssetIssuerKit & {
|
|
25
25
|
payment?: ERef<Payment<"nat">>;
|
|
@@ -27,10 +27,10 @@ export declare const setupOrchestrationTest: ({ log, chains, }: {
|
|
|
27
27
|
getBankForAddress(address: string): Promise<Bank>;
|
|
28
28
|
}>;
|
|
29
29
|
board: import("@endo/exo").Guarded<{
|
|
30
|
-
getId(value: RemotableObject): string;
|
|
31
|
-
getValue(id: BoardId): RemotableObject;
|
|
30
|
+
getId(value: import("@endo/pass-style").RemotableObject): string;
|
|
31
|
+
getValue(id: BoardId): import("@endo/pass-style").RemotableObject;
|
|
32
32
|
lookup(...path: string[]): Promise<any>;
|
|
33
|
-
has(val: RemotableObject): boolean;
|
|
33
|
+
has(val: import("@endo/pass-style").RemotableObject): boolean;
|
|
34
34
|
ids(): string[];
|
|
35
35
|
getPublishingMarshaller(): import("@endo/exo").Guarded<{
|
|
36
36
|
toCapData(val: any): import("@endo/marshal").CapData<string>;
|
|
@@ -84,7 +84,7 @@ export declare const setupOrchestrationTest: ({ log, chains, }: {
|
|
|
84
84
|
toStorage: ((message: import("@agoric/internal/src/lib-chainStorage.js").StorageMessage) => string | number | true | any[] | {
|
|
85
85
|
storeName: string;
|
|
86
86
|
storeSubkey: string;
|
|
87
|
-
} | null) & RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (message: import("@agoric/internal/src/lib-chainStorage.js").StorageMessage) => string | number | true | any[] | {
|
|
87
|
+
} | null) & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, (message: import("@agoric/internal/src/lib-chainStorage.js").StorageMessage) => string | number | true | any[] | {
|
|
88
88
|
storeName: string;
|
|
89
89
|
storeSubkey: string;
|
|
90
90
|
} | null>;
|
|
@@ -1793,7 +1793,7 @@ export declare const setupOrchestrationTest: ({ log, chains, }: {
|
|
|
1793
1793
|
timerService: import("@agoric/zoe/tools/manualTimer.js").ZoeManualTimer;
|
|
1794
1794
|
};
|
|
1795
1795
|
utils: {
|
|
1796
|
-
contractZone: import("@agoric/
|
|
1796
|
+
contractZone: import("@agoric/zone").Zone;
|
|
1797
1797
|
pourPayment: (amount: Amount<"nat">) => Promise<Payment<"nat">>;
|
|
1798
1798
|
inspectLocalBridge: () => BridgeObject[];
|
|
1799
1799
|
inspectDibcBridge: () => Promise<{
|
|
@@ -1805,7 +1805,7 @@ export declare const setupOrchestrationTest: ({ log, chains, }: {
|
|
|
1805
1805
|
message: MsgTransfer;
|
|
1806
1806
|
sequence: bigint;
|
|
1807
1807
|
};
|
|
1808
|
-
rootZone: import("@agoric/
|
|
1808
|
+
rootZone: import("@agoric/zone").Zone;
|
|
1809
1809
|
transmitVTransferEvent: (event: VTransferIBCEvent["event"], query: number | {
|
|
1810
1810
|
message: MsgTransfer;
|
|
1811
1811
|
sequence: bigint;
|