@agoric/orchestration 0.1.1-dev-3aa0690.0 → 0.1.1-dev-b5575d3.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 +18 -18
- package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -1
- package/src/examples/auto-stake-it.flows.d.ts.map +1 -1
- package/src/examples/stakeBld.contract.d.ts +11 -37
- package/src/examples/stakeBld.contract.d.ts.map +1 -1
- package/src/examples/stakeIca.contract.d.ts +15 -15
- package/src/examples/stakeIca.contract.d.ts.map +1 -1
- package/src/examples/staking-combinations.flows.d.ts.map +1 -1
- package/src/exos/cosmos-interchain-service.d.ts +20 -70
- package/src/exos/cosmos-interchain-service.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.d.ts +15 -15
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/ica-account-kit.d.ts +2 -2
- package/src/exos/ica-account-kit.d.ts.map +1 -1
- package/src/exos/icq-connection-kit.d.ts.map +1 -1
- package/src/exos/local-chain-facade.d.ts +22 -170
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.d.ts +11 -37
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/orchestrator.d.ts +26 -177
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/packet-tools.d.ts +21 -81
- package/src/exos/packet-tools.d.ts.map +1 -1
- package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.d.ts +35 -181
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/facade.d.ts.map +1 -1
- package/src/fixtures/query-flows.flows.d.ts.map +1 -1
- package/src/proposals/orchestration-proposal.d.ts.map +1 -1
- package/src/proposals/start-stakeAtom.d.ts +15 -15
- package/src/proposals/start-stakeAtom.d.ts.map +1 -1
- package/src/proposals/start-stakeBld.d.ts +11 -37
- package/src/proposals/start-stakeBld.d.ts.map +1 -1
- package/src/proposals/start-stakeOsmo.d.ts +15 -15
- package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
- package/src/typeGuards.d.ts.map +1 -1
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/zoe-tools.d.ts.map +1 -1
- package/src/vat-orchestration.d.ts.map +1 -1
|
@@ -5,175 +5,29 @@ export function prepareLocalChainFacade(zone: Zone, powers: LocalChainFacadePowe
|
|
|
5
5
|
stakingTokens?: Readonly<Array<{
|
|
6
6
|
denom: string;
|
|
7
7
|
}>>;
|
|
8
|
-
}>) =>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}>) => import("@endo/exo").GuardedKit<{
|
|
16
|
-
public: {
|
|
17
|
-
getChainInfo(): Vow<Readonly<{
|
|
18
|
-
chainId: string;
|
|
19
|
-
connections?: Record<string, IBCConnectionInfo>;
|
|
20
|
-
icqEnabled?: boolean;
|
|
21
|
-
stakingTokens?: Readonly<Array<{
|
|
22
|
-
denom: string;
|
|
23
|
-
}>>;
|
|
8
|
+
}>) => import("@endo/exo").Guarded<{
|
|
9
|
+
getChainInfo(): Vow<Readonly<{
|
|
10
|
+
chainId: string;
|
|
11
|
+
connections?: Record<string, IBCConnectionInfo>;
|
|
12
|
+
icqEnabled?: boolean;
|
|
13
|
+
stakingTokens?: Readonly<Array<{
|
|
14
|
+
denom: string;
|
|
24
15
|
}>>;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
}>>;
|
|
17
|
+
/** @returns {Vow<LocalOrchestrationAccountKit['holder']>} */
|
|
18
|
+
makeAccount(): Vow<LocalOrchestrationAccountKit["holder"]>;
|
|
19
|
+
/** @type {HostOf<Chain<{ chainId: 'agoriclocal' }>['query']>} */
|
|
20
|
+
query(args_0: {
|
|
21
|
+
'@type': string;
|
|
22
|
+
}[]): Vow<{
|
|
23
|
+
error?: string | undefined;
|
|
24
|
+
reply: {
|
|
29
25
|
'@type': string;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}[] extends import("@endo/pass-style").Passable ? {
|
|
36
|
-
error?: string;
|
|
37
|
-
reply: {
|
|
38
|
-
'@type': string;
|
|
39
|
-
};
|
|
40
|
-
}[] : import("@agoric/async-flow").HostInterface<{
|
|
41
|
-
error?: string;
|
|
42
|
-
reply: {
|
|
43
|
-
'@type': string;
|
|
44
|
-
};
|
|
45
|
-
}[]>>;
|
|
46
|
-
/** @type {HostOf<AgoricChainMethods['getVBankAssetInfo']>} */
|
|
47
|
-
getVBankAssetInfo(): Vow<AssetInfo[] extends import("@endo/pass-style").Passable ? AssetInfo[] : import("@agoric/async-flow").HostInterface<AssetInfo[]>>;
|
|
48
|
-
};
|
|
49
|
-
vbankAssetValuesWatcher: {
|
|
50
|
-
/**
|
|
51
|
-
* @param {AssetInfo[]} assets
|
|
52
|
-
*/
|
|
53
|
-
onFulfilled(assets: AssetInfo[]): Vow<AssetInfo[]>;
|
|
54
|
-
};
|
|
55
|
-
makeAccountWatcher: {
|
|
56
|
-
/**
|
|
57
|
-
* @param {[LocalChainAccount, ChainAddress['value']]} results
|
|
58
|
-
*/
|
|
59
|
-
onFulfilled([account, address]: [LocalChainAccount, ChainAddress["value"]]): Vow<import("@endo/exo").Guarded<{
|
|
60
|
-
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>>;
|
|
61
|
-
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>>;
|
|
62
|
-
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[]>>;
|
|
63
|
-
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>>>>;
|
|
64
|
-
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Vow<Record<unknown, unknown>>;
|
|
65
|
-
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Vow<void | import("@agoric/time").TimestampRecord>;
|
|
66
|
-
deposit(payment: globalThis.ERef<globalThis.Payment<"nat">>, optAmountShape?: globalThis.Pattern): Vow<import("@agoric/ertp/src/types.js").NatAmount | Vow<import("@agoric/ertp/src/types.js").NatAmount> extends import("@endo/pass-style").Passable ? import("@agoric/ertp/src/types.js").NatAmount | Vow<import("@agoric/ertp/src/types.js").NatAmount> : import("@agoric/async-flow").HostInterface<import("@agoric/ertp/src/types.js").NatAmount | Vow<import("@agoric/ertp/src/types.js").NatAmount>>>;
|
|
67
|
-
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): Vow<globalThis.Payment<"nat"> | Vow<globalThis.Payment<"nat">> extends import("@endo/pass-style").Passable ? globalThis.Payment<"nat"> | Vow<globalThis.Payment<"nat">> : import("@agoric/async-flow").HostInterface<globalThis.Payment<"nat"> | Vow<globalThis.Payment<"nat">>>>;
|
|
68
|
-
executeTx(messages: {
|
|
69
|
-
'@type': string;
|
|
70
|
-
}[]): Vow<{
|
|
71
|
-
'@type': string;
|
|
72
|
-
}[] extends import("@endo/pass-style").Passable ? {
|
|
73
|
-
'@type': string;
|
|
74
|
-
}[] : import("@agoric/async-flow").HostInterface<{
|
|
75
|
-
'@type': string;
|
|
76
|
-
}[]>>;
|
|
77
|
-
getAddress(): ChainAddress;
|
|
78
|
-
send(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? void : import("@agoric/async-flow").HostInterface<void>>;
|
|
79
|
-
sendAll(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): Vow<void extends import("@endo/pass-style").Passable ? void : import("@agoric/async-flow").HostInterface<void>>;
|
|
80
|
-
transfer(amount: import("../orchestration-api.js").AmountArg, destination: ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<any>;
|
|
81
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void extends import("@endo/pass-style").Passable ? void : import("@agoric/async-flow").HostInterface<void>>;
|
|
82
|
-
sendThenWaitForAck(packetSender: Remote<import("./packet-tools.js").PacketSender>, opts?: import("./packet-tools.js").PacketOptions | undefined): import("@agoric/async-flow").HostInterface<Vow<any>>;
|
|
83
|
-
matchFirstPacket(args_0?: import("@agoric/vow").EVow<globalThis.Pattern>): import("@agoric/async-flow").HostInterface<Vow<{
|
|
84
|
-
resolver: import("@agoric/vow").VowResolver<any>;
|
|
85
|
-
match: Vow<any>;
|
|
86
|
-
}>>;
|
|
87
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): Vow<import("@agoric/vats/src/bridge-target.js").TargetRegistration | Vow<import("@agoric/vats/src/bridge-target.js").TargetRegistration> extends import("@endo/pass-style").Passable ? (string & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (string & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
88
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
89
|
-
}) | (number & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (number & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
90
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
91
|
-
}) | (bigint & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (false & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (false & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
92
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
93
|
-
}) | (true & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (true & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
94
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
95
|
-
}) | (symbol & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (symbol & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
96
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
97
|
-
}) | (void & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (void & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
98
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
99
|
-
}) | (Error & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (Error & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
100
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
101
|
-
}) | (Promise<any> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (Promise<any> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
102
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
103
|
-
}) | (import("@endo/pass-style").RemotableObject<string> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyArrayI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyArrayI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
104
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
105
|
-
}) | (import("@endo/pass-style").CopyRecordI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyRecordI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
106
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
107
|
-
}) | (import("@endo/pass-style").CopyTaggedI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyTaggedI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
108
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
109
|
-
}) : import("@agoric/async-flow").HostInterface<import("@agoric/vats/src/bridge-target.js").TargetRegistration | Vow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>>>;
|
|
110
|
-
}>>;
|
|
111
|
-
};
|
|
112
|
-
makeChildNodeWatcher: {
|
|
113
|
-
/**
|
|
114
|
-
* @param {Remote<StorageNode>} childNode
|
|
115
|
-
* @param {{
|
|
116
|
-
* account: LocalChainAccount;
|
|
117
|
-
* address: ChainAddress['value'];
|
|
118
|
-
* }} ctx
|
|
119
|
-
*/
|
|
120
|
-
onFulfilled(childNode: Remote<StorageNode>, { account, address }: {
|
|
121
|
-
account: LocalChainAccount;
|
|
122
|
-
address: ChainAddress["value"];
|
|
123
|
-
}): import("@endo/exo").Guarded<{
|
|
124
|
-
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>>;
|
|
125
|
-
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>>;
|
|
126
|
-
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[]>>;
|
|
127
|
-
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>>>>;
|
|
128
|
-
delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Vow<Record<unknown, unknown>>;
|
|
129
|
-
undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Vow<void | import("@agoric/time").TimestampRecord>;
|
|
130
|
-
deposit(payment: globalThis.ERef<globalThis.Payment<"nat">>, optAmountShape?: globalThis.Pattern): Vow<import("@agoric/ertp/src/types.js").NatAmount | Vow<import("@agoric/ertp/src/types.js").NatAmount> extends import("@endo/pass-style").Passable ? import("@agoric/ertp/src/types.js").NatAmount | Vow<import("@agoric/ertp/src/types.js").NatAmount> : import("@agoric/async-flow").HostInterface<import("@agoric/ertp/src/types.js").NatAmount | Vow<import("@agoric/ertp/src/types.js").NatAmount>>>;
|
|
131
|
-
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): Vow<globalThis.Payment<"nat"> | Vow<globalThis.Payment<"nat">> extends import("@endo/pass-style").Passable ? globalThis.Payment<"nat"> | Vow<globalThis.Payment<"nat">> : import("@agoric/async-flow").HostInterface<globalThis.Payment<"nat"> | Vow<globalThis.Payment<"nat">>>>;
|
|
132
|
-
executeTx(messages: {
|
|
133
|
-
'@type': string;
|
|
134
|
-
}[]): Vow<{
|
|
135
|
-
'@type': string;
|
|
136
|
-
}[] extends import("@endo/pass-style").Passable ? {
|
|
137
|
-
'@type': string;
|
|
138
|
-
}[] : import("@agoric/async-flow").HostInterface<{
|
|
139
|
-
'@type': string;
|
|
140
|
-
}[]>>;
|
|
141
|
-
getAddress(): ChainAddress;
|
|
142
|
-
send(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg): Vow<void extends import("@endo/pass-style").Passable ? void : import("@agoric/async-flow").HostInterface<void>>;
|
|
143
|
-
sendAll(toAccount: ChainAddress, amounts: import("../orchestration-api.js").AmountArg[]): Vow<void extends import("@endo/pass-style").Passable ? void : import("@agoric/async-flow").HostInterface<void>>;
|
|
144
|
-
transfer(amount: import("../orchestration-api.js").AmountArg, destination: ChainAddress, opts?: import("../cosmos-api.js").IBCMsgTransferOptions | undefined): Vow<any>;
|
|
145
|
-
transferSteps(amount: import("../orchestration-api.js").AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void extends import("@endo/pass-style").Passable ? void : import("@agoric/async-flow").HostInterface<void>>;
|
|
146
|
-
sendThenWaitForAck(packetSender: Remote<import("./packet-tools.js").PacketSender>, opts?: import("./packet-tools.js").PacketOptions | undefined): import("@agoric/async-flow").HostInterface<Vow<any>>;
|
|
147
|
-
matchFirstPacket(args_0?: import("@agoric/vow").EVow<globalThis.Pattern>): import("@agoric/async-flow").HostInterface<Vow<{
|
|
148
|
-
resolver: import("@agoric/vow").VowResolver<any>;
|
|
149
|
-
match: Vow<any>;
|
|
150
|
-
}>>;
|
|
151
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): Vow<import("@agoric/vats/src/bridge-target.js").TargetRegistration | Vow<import("@agoric/vats/src/bridge-target.js").TargetRegistration> extends import("@endo/pass-style").Passable ? (string & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (string & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
152
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
153
|
-
}) | (number & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (number & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
154
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
155
|
-
}) | (bigint & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (false & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (false & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
156
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
157
|
-
}) | (true & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (true & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
158
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
159
|
-
}) | (symbol & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (symbol & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
160
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
161
|
-
}) | (void & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (void & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
162
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
163
|
-
}) | (Error & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (Error & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
164
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
165
|
-
}) | (Promise<any> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (Promise<any> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
166
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
167
|
-
}) | (import("@endo/pass-style").RemotableObject<string> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyArrayI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyArrayI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
168
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
169
|
-
}) | (import("@endo/pass-style").CopyRecordI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyRecordI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
170
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
171
|
-
}) | (import("@endo/pass-style").CopyTaggedI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyTaggedI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
172
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
173
|
-
}) : import("@agoric/async-flow").HostInterface<import("@agoric/vats/src/bridge-target.js").TargetRegistration | Vow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>>>;
|
|
174
|
-
}>;
|
|
175
|
-
};
|
|
176
|
-
}>>["public"];
|
|
26
|
+
};
|
|
27
|
+
}[]>;
|
|
28
|
+
/** @type {HostOf<AgoricChainMethods['getVBankAssetInfo']>} */
|
|
29
|
+
getVBankAssetInfo(): Vow<AssetInfo[]>;
|
|
30
|
+
}>;
|
|
177
31
|
/**
|
|
178
32
|
* Chain facade methods unique to the Agoric (local) chain.
|
|
179
33
|
*/
|
|
@@ -202,11 +56,9 @@ import type { IBCConnectionInfo } from '../types.js';
|
|
|
202
56
|
import type { Vow } from '@agoric/vow';
|
|
203
57
|
import type { LocalOrchestrationAccountKit } from './local-orchestration-account.js';
|
|
204
58
|
import type { AssetInfo } from '@agoric/vats/src/vat-bank.js';
|
|
205
|
-
import type { LocalChainAccount } from '@agoric/vats/src/localchain.js';
|
|
206
|
-
import type { ChainAddress } from '../types.js';
|
|
207
|
-
import type { Remote } from '@agoric/internal';
|
|
208
59
|
import type { MakeLocalOrchestrationAccountKit } from './local-orchestration-account.js';
|
|
209
60
|
import type { CosmosInterchainService } from './exo-interfaces.js';
|
|
61
|
+
import type { Remote } from '@agoric/internal';
|
|
210
62
|
import type { NameHub } from '@agoric/vats';
|
|
211
63
|
import type { TimerService } from '@agoric/time';
|
|
212
64
|
import type { LocalChain } from '@agoric/vats/src/localchain.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"AA4LO,8CAJI,IAAI,UACJ,sBAAsB
|
|
1
|
+
{"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"AA4LO,8CAJI,IAAI,UACJ,sBAAsB;;;;;;;;;;;;;;;;IApFzB,6DAA6D;mBAA/C,IAAI,4BAA4B,CAAC,QAAQ,CAAC,CAAC;IAWzD,iEAAiE;;;;;;;;;IAIjE,8DAA8D;;GA2ErE;;;;;;;;;;;uBAnKa,MAAM,OAAO,CAAC,SAAS,EAAE,CAAC;;qCAO3B;IACR,gCAAgC,EAAE,gCAAgC,CAAC;IACnE,aAAa,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC/C,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;IACjC,WAAW,EAAE,OAAO,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,YAAY,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,QAAQ,EAAE,QAAQ,CAAC;CACpB;mCAuJU,UAAU,CAAC,OAAO,uBAAuB,CAAC;+BAC1C,UAAU,CAAC,oBAAoB,CAAC;0BAvLvB,mBAAmB;uCASiE,aAAa;yBAHxF,aAAa;kDAEoC,kCAAkC;+BAJvF,8BAA8B;sDAIuB,kCAAkC;6CADzE,qBAAqB;4BALtC,kBAAkB;6BAGjB,cAAc;kCAJT,cAAc;gCAEgB,gCAAgC;8BAG7D,aAAa"}
|
|
@@ -128,17 +128,17 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
|
|
|
128
128
|
};
|
|
129
129
|
holder: {
|
|
130
130
|
/** @type {HostOf<OrchestrationAccountI['asContinuingOffer']>} */
|
|
131
|
-
asContinuingOffer(): Vow<import("
|
|
131
|
+
asContinuingOffer(): Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
132
132
|
/**
|
|
133
133
|
* @type {HostOf<OrchestrationAccountI['getBalance']>}
|
|
134
134
|
*/
|
|
135
|
-
getBalance(denom: import("@agoric/orchestration").DenomArg): Vow<DenomAmount
|
|
135
|
+
getBalance(denom: import("@agoric/orchestration").DenomArg): Vow<DenomAmount>;
|
|
136
136
|
/** @type {HostOf<OrchestrationAccountI['getBalances']>} */
|
|
137
|
-
getBalances(): Vow<DenomAmount[]
|
|
137
|
+
getBalances(): Vow<DenomAmount[]>;
|
|
138
138
|
/**
|
|
139
139
|
* @type {HostOf<OrchestrationAccountI['getPublicTopics']>}
|
|
140
140
|
*/
|
|
141
|
-
getPublicTopics(): Vow<
|
|
141
|
+
getPublicTopics(): Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
142
142
|
/**
|
|
143
143
|
* @param {string} validatorAddress
|
|
144
144
|
* @param {Amount<'nat'>} ertpAmount
|
|
@@ -156,19 +156,15 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
|
|
|
156
156
|
* transferred.
|
|
157
157
|
*/
|
|
158
158
|
/** @type {HostOf<LocalChainAccount['deposit']>} */
|
|
159
|
-
deposit(payment: globalThis.ERef<globalThis.Payment<"nat">>, optAmountShape?: globalThis.Pattern): Vow<import("@agoric/ertp/src/types.js").NatAmount | Vow<import("@agoric/ertp/src/types.js").NatAmount
|
|
159
|
+
deposit(payment: globalThis.ERef<globalThis.Payment<"nat">>, optAmountShape?: globalThis.Pattern): Vow<import("@agoric/ertp/src/types.js").NatAmount | Vow<import("@agoric/ertp/src/types.js").NatAmount>>;
|
|
160
160
|
/** @type {HostOf<LocalChainAccount['withdraw']>} */
|
|
161
|
-
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): Vow<globalThis.Payment<"nat"> | Vow<globalThis.Payment<"nat"
|
|
161
|
+
withdraw(amount: import("@agoric/ertp/src/types.js").NatAmount): Vow<globalThis.Payment<"nat"> | Vow<globalThis.Payment<"nat">>>;
|
|
162
162
|
/** @type {HostOf<LocalChainAccount['executeTx']>} */
|
|
163
163
|
executeTx(messages: {
|
|
164
164
|
'@type': string;
|
|
165
165
|
}[]): Vow<{
|
|
166
166
|
'@type': string;
|
|
167
|
-
}[]
|
|
168
|
-
'@type': string;
|
|
169
|
-
}[] : import("@agoric/async-flow").HostInterface<{
|
|
170
|
-
'@type': string;
|
|
171
|
-
}[]>>;
|
|
167
|
+
}[]>;
|
|
172
168
|
/** @type {OrchestrationAccountI['getAddress']} */
|
|
173
169
|
getAddress(): ChainAddress;
|
|
174
170
|
/**
|
|
@@ -176,13 +172,13 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
|
|
|
176
172
|
*
|
|
177
173
|
* @type {HostOf<OrchestrationAccountI['send']>}
|
|
178
174
|
*/
|
|
179
|
-
send(toAccount: ChainAddress, amounts: AmountArg): Vow<void
|
|
175
|
+
send(toAccount: ChainAddress, amounts: AmountArg): Vow<void>;
|
|
180
176
|
/**
|
|
181
177
|
* XXX consider using ERTP to send if it's vbank asset
|
|
182
178
|
*
|
|
183
179
|
* @type {HostOf<OrchestrationAccountI['sendAll']>}
|
|
184
180
|
*/
|
|
185
|
-
sendAll(toAccount: ChainAddress, amounts: AmountArg[]): Vow<void
|
|
181
|
+
sendAll(toAccount: ChainAddress, amounts: AmountArg[]): Vow<void>;
|
|
186
182
|
/**
|
|
187
183
|
* @param {AmountArg} amount an ERTP {@link Amount} or a
|
|
188
184
|
* {@link DenomAmount}
|
|
@@ -194,7 +190,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
|
|
|
194
190
|
*/
|
|
195
191
|
transfer(amount: AmountArg, destination: ChainAddress, opts?: IBCMsgTransferOptions | undefined): Vow<any>;
|
|
196
192
|
/** @type {HostOf<OrchestrationAccountI['transferSteps']>} */
|
|
197
|
-
transferSteps(amount: AmountArg, msg: import("@agoric/orchestration").TransferMsg): Vow<void
|
|
193
|
+
transferSteps(amount: AmountArg, msg: import("@agoric/orchestration").TransferMsg): Vow<void>;
|
|
198
194
|
/** @type {HostOf<PacketTools['sendThenWaitForAck']>} */
|
|
199
195
|
sendThenWaitForAck(packetSender: Remote<import("./packet-tools.js").PacketSender>, opts?: import("./packet-tools.js").PacketOptions | undefined): import("@agoric/async-flow").HostInterface<Vow<any>>;
|
|
200
196
|
/** @type {HostOf<PacketTools['matchFirstPacket']>} */
|
|
@@ -203,29 +199,7 @@ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKi
|
|
|
203
199
|
match: Vow<any>;
|
|
204
200
|
}>>;
|
|
205
201
|
/** @type {HostOf<LocalChainAccount['monitorTransfers']>} */
|
|
206
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): Vow<
|
|
207
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
208
|
-
}) | (number & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (number & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
209
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
210
|
-
}) | (bigint & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (false & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (false & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
211
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
212
|
-
}) | (true & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (true & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
213
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
214
|
-
}) | (symbol & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (symbol & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
215
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
216
|
-
}) | (void & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (void & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
217
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
218
|
-
}) | (Error & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (Error & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
219
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
220
|
-
}) | (Promise<any> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (Promise<any> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
221
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
222
|
-
}) | (import("@endo/pass-style").RemotableObject<string> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyArrayI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyArrayI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
223
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
224
|
-
}) | (import("@endo/pass-style").CopyRecordI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyRecordI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
225
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
226
|
-
}) | (import("@endo/pass-style").CopyTaggedI<import("@endo/pass-style").PassableCap, Error> & import("@agoric/vats/src/bridge-target.js").TargetRegistration) | (import("@endo/pass-style").CopyTaggedI<import("@endo/pass-style").PassableCap, Error> & import("@endo/pass-style").PassStyled<"tagged", "Vow"> & {
|
|
227
|
-
payload: import("@agoric/vow").VowPayload<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
228
|
-
}) : import("@agoric/async-flow").HostInterface<import("@agoric/vats/src/bridge-target.js").TargetRegistration | Vow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>>>;
|
|
202
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): Vow<Vow<import("@agoric/vats/src/bridge-target.js").TargetRegistration> | import("@agoric/async-flow").HostInterface<import("@agoric/vats/src/bridge-target.js").TargetRegistration>>;
|
|
229
203
|
};
|
|
230
204
|
}>;
|
|
231
205
|
export type LocalChainAccountNotification = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"local-orchestration-account.d.ts","sourceRoot":"","sources":["local-orchestration-account.js"],"names":[],"mappings":"AA8FO,0DATI,IAAI,0EAEZ;IAAgC,eAAe,EAAvC,eAAe;IACH,GAAG,EAAf,GAAG;IAC0B,YAAY,EAAzC,OAAO,YAAY,CAAC;IACH,QAAQ,EAAzB,QAAQ;IACS,QAAQ,EAAzB,QAAQ;IACmB,UAAU,EAArC,OAAO,UAAU,CAAC;CAC5B;aAsEc,iBAAiB;aACjB,YAAY;iBACZ,OAAO,WAAW,CAAC;;;QAc1B;;;WAGG;6BAFQ,SAAS,GACP,IAAI;;;QAOjB;;;WAGG;mCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;QAYxB;;;WAGG;qCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;;uBAmBJ,YAAY;oBAAU,SAAS;;;uBAa/B,YAAY;qBAAW,SAAS,EAAE;;;oBAcrC,SAAS;yBACJ,YAAY;kBACnB,qBAAqB;;;;QAcpC;;;;;;WAMG;8BALQ,CACV,SACA,UAAgB,+CAA+C,CAAC,CAC3D,CACF;;;QAcJ;;;;;;;;;;WAUG;6DATQ,CACV;YAAM,eAAe,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;SAAE,EAC7D,MAAU,CACP,iCACO;
|
|
1
|
+
{"version":3,"file":"local-orchestration-account.d.ts","sourceRoot":"","sources":["local-orchestration-account.js"],"names":[],"mappings":"AA8FO,0DATI,IAAI,0EAEZ;IAAgC,eAAe,EAAvC,eAAe;IACH,GAAG,EAAf,GAAG;IAC0B,YAAY,EAAzC,OAAO,YAAY,CAAC;IACH,QAAQ,EAAzB,QAAQ;IACS,QAAQ,EAAzB,QAAQ;IACmB,UAAU,EAArC,OAAO,UAAU,CAAC;CAC5B;aAsEc,iBAAiB;aACjB,YAAY;iBACZ,OAAO,WAAW,CAAC;;;QAc1B;;;WAGG;6BAFQ,SAAS,GACP,IAAI;;;QAOjB;;;WAGG;mCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;QAYxB;;;WAGG;qCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;;;uBAmBJ,YAAY;oBAAU,SAAS;;;uBAa/B,YAAY;qBAAW,SAAS,EAAE;;;oBAcrC,SAAS;yBACJ,YAAY;kBACnB,qBAAqB;;;;QAcpC;;;;;;WAMG;8BALQ,CACV,SACA,UAAgB,+CAA+C,CAAC,CAC3D,CACF;;;QAcJ;;;;;;;;;;WAUG;6DATQ,CACV;YAAM,eAAe,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAA;SAAE,EAC7D,MAAU,CACP,iCACO;YACN,WAAW,EAAE,YAAY,CAAC;YAC1B,IAAI,CAAC,EAAE,qBAAqB,CAAC;YAC7B,MAAM,EAAE,WAAW,CAAC;SACrB;;IAqCN;;;OAGG;;QAED;;WAEG;6BADQ,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE;;;;;IAavC;;;OAGG;;QAED;;;;WAIG;+BAHQ,MAAM,CAAC,KAAK,CAAC,SACb,WAAW,CAAC,OAAO,CAAC,GAClB,WAAW;;IAM1B;;;OAGG;;QAED;;;;;WAKG;4BAJQ,WACV,UAAc,0CAA0C,CAAC,CACtD,GACS,WAAW;;IAU1B;;;OAGG;;QAED;;;;;;;WAOG;4BANQ,SACV,WACA,UAAgB,8CAA8C,CAAC,CAC1D,CACF,GACS,WAAW,EAAE;;;QAW1B,iEAAiE;;QAsBjE;;WAEG;;QA+BH,2DAA2D;;QAY3D;;WAEG;;QAiBH;;;WAGG;mCAFQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC;QAmBxB;;;;WAIG;qCAHQ,MAAM,cACN,MAAM,CAAC,KAAK,CAAC,GACX,IAAI,IAAI,GAAG,eAAe,CAAC;QAgBxC;;;;WAIG;QACH,mDAAmD;;QAOnD,oDAAoD;;QAIpD,qDAAqD;;;;;;QAIrD,kDAAkD;;QAIlD;;;;WAIG;;QAiBH;;;;WAIG;;QAiBH;;;;;;;;WAQG;yBAPQ,SAAS,eAET,YAAY,6CAIV,IAAI,GAAG,CAAC;QAmCrB,6DAA6D;;QAO7D,wDAAwD;;QAMxD,sDAAsD;;;;;QAItD,4DAA4D;;;GAQnE;;aArmBa,MAAM;;;;;oBAKP;IACR,QAAQ,EAAE,YAAY,6BAA6B,CAAC,CAAC;IACrD,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,OAAO,EAAE,YAAY,CAAC;CACvB;+CA6lBU,UAAU,CAAC,OAAO,mCAAmC,CAAC;2CACtD,UAAU,CAAC,gCAAgC,CAAC;0BA5nBnC,cAAc;qCADU,6CAA6C;kCAI5C,cAAc;4BAFrC,kBAAkB;8BAGX,aAAa;8BAIlB,gBAAgB;gCAXK,gCAAgC;uCAAhC,gCAAgC;kCACwC,uBAAuB;+BAAvB,uBAAuB;0BAQxH,kDAAkD;yBAFzC,aAAa;qCADG,cAAc;2CAL0D,uBAAuB;+BAO7F,sBAAsB;8BAAtB,sBAAsB;uCAPgD,uBAAuB;iCAAvB,uBAAuB;gCAO7F,sBAAsB;iCANzB,6CAA6C;iCAU9D,mBAAmB"}
|
|
@@ -18,131 +18,22 @@ export function prepareOrchestrator(zone: Zone, powers: {
|
|
|
18
18
|
timerService: Remote<TimerService>;
|
|
19
19
|
vowTools: VowTools;
|
|
20
20
|
zcf: ZCF;
|
|
21
|
-
}): () =>
|
|
22
|
-
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
query(args_0: {
|
|
38
|
-
'@type': string;
|
|
39
|
-
}[]): Vow<{
|
|
40
|
-
error?: string;
|
|
41
|
-
reply: {
|
|
42
|
-
'@type': string;
|
|
43
|
-
};
|
|
44
|
-
}[] extends import("@endo/pass-style").Passable ? {
|
|
45
|
-
error?: string;
|
|
46
|
-
reply: {
|
|
47
|
-
'@type': string;
|
|
48
|
-
};
|
|
49
|
-
}[] : HostInterface<{
|
|
50
|
-
error?: string;
|
|
51
|
-
reply: {
|
|
52
|
-
'@type': string;
|
|
53
|
-
};
|
|
54
|
-
}[]>>;
|
|
55
|
-
getVBankAssetInfo(): Vow<import("@agoric/vats/src/vat-bank.js").AssetInfo[] extends import("@endo/pass-style").Passable ? import("@agoric/vats/src/vat-bank.js").AssetInfo[] : HostInterface<import("@agoric/vats/src/vat-bank.js").AssetInfo[]>>;
|
|
56
|
-
}>;
|
|
57
|
-
};
|
|
58
|
-
/**
|
|
59
|
-
* Waits for `chainInfo` for `agoric` and a remote chain and returns a
|
|
60
|
-
* RemoteChainFacade
|
|
61
|
-
*/
|
|
62
|
-
makeRemoteChainFacadeWatcher: {
|
|
63
|
-
/**
|
|
64
|
-
* Waits for `chainInfo` for `agoric` and a remote chain and returns a
|
|
65
|
-
* RemoteChainFacade
|
|
66
|
-
*
|
|
67
|
-
* @param {[ChainInfo, ChainInfo, IBCConnectionInfo]} chainsAndConnection
|
|
68
|
-
* @param {string} name
|
|
69
|
-
*/
|
|
70
|
-
onFulfilled([_agoricChainInfo, remoteChainInfo, connectionInfo]: [ChainInfo, ChainInfo, IBCConnectionInfo], name: string): import("@endo/exo").Guarded<{
|
|
71
|
-
getChainInfo(): Vow<any extends import("@endo/pass-style").Passable ? any : HostInterface<any>>;
|
|
72
|
-
makeAccount(): Vow<import("../orchestration-api.js").OrchestrationAccount<any> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & import("../orchestration-api.js").OrchestrationAccount<any> : HostInterface<import("../orchestration-api.js").OrchestrationAccount<any>>>;
|
|
73
|
-
query(msgs: {
|
|
74
|
-
data: string;
|
|
75
|
-
path: string;
|
|
76
|
-
height: string;
|
|
77
|
-
prove: boolean;
|
|
78
|
-
}[]): Vow<{
|
|
79
|
-
code: number;
|
|
80
|
-
log: string;
|
|
81
|
-
info: string;
|
|
82
|
-
index: string;
|
|
83
|
-
key: string;
|
|
84
|
-
value: string;
|
|
85
|
-
proofOps?: {
|
|
86
|
-
ops: {
|
|
87
|
-
type: string;
|
|
88
|
-
key: string;
|
|
89
|
-
data: string;
|
|
90
|
-
}[];
|
|
91
|
-
} | undefined;
|
|
92
|
-
height: string;
|
|
93
|
-
codespace: string;
|
|
94
|
-
}[] extends import("@endo/pass-style").Passable ? {
|
|
95
|
-
code: number;
|
|
96
|
-
log: string;
|
|
97
|
-
info: string;
|
|
98
|
-
index: string;
|
|
99
|
-
key: string;
|
|
100
|
-
value: string;
|
|
101
|
-
proofOps?: {
|
|
102
|
-
ops: {
|
|
103
|
-
type: string;
|
|
104
|
-
key: string;
|
|
105
|
-
data: string;
|
|
106
|
-
}[];
|
|
107
|
-
} | undefined;
|
|
108
|
-
height: string;
|
|
109
|
-
codespace: string;
|
|
110
|
-
}[] : HostInterface<{
|
|
111
|
-
code: number;
|
|
112
|
-
log: string;
|
|
113
|
-
info: string;
|
|
114
|
-
index: string;
|
|
115
|
-
key: string;
|
|
116
|
-
value: string;
|
|
117
|
-
proofOps?: {
|
|
118
|
-
ops: {
|
|
119
|
-
type: string;
|
|
120
|
-
key: string;
|
|
121
|
-
data: string;
|
|
122
|
-
}[];
|
|
123
|
-
} | undefined;
|
|
124
|
-
height: string;
|
|
125
|
-
codespace: string;
|
|
126
|
-
}[]>>;
|
|
127
|
-
}>;
|
|
128
|
-
};
|
|
129
|
-
orchestrator: {
|
|
130
|
-
/** @type {HostOf<Orchestrator['getChain']>} */
|
|
131
|
-
getChain(chainName: string): Vow<Chain<any> extends import("@endo/pass-style").Passable ? import("@endo/pass-style").Passable & Chain<any> : HostInterface<Chain<any>>>;
|
|
132
|
-
makeLocalAccount(): Vow<import("@endo/exo").Guarded<{
|
|
133
|
-
getAddress(): string;
|
|
134
|
-
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
135
|
-
deposit(payment: ERef<Payment<"nat">>, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
136
|
-
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
137
|
-
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
138
|
-
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
139
|
-
}>>;
|
|
140
|
-
/** @type {HostOf<Orchestrator['getDenomInfo']>} */
|
|
141
|
-
getDenomInfo(denom: string): HostInterface<import("../orchestration-api.js").DenomInfo<"agoric" | "celestia" | "agoriclocal" | "cosmoshub" | "dydx" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee", "agoric" | "celestia" | "agoriclocal" | "cosmoshub" | "dydx" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee">>;
|
|
142
|
-
/** @type {HostOf<Orchestrator['asAmount']>} */
|
|
143
|
-
asAmount: HostOf<Orchestrator["asAmount"]>;
|
|
144
|
-
};
|
|
145
|
-
}>>["orchestrator"];
|
|
21
|
+
}): () => import("@endo/exo").Guarded<{
|
|
22
|
+
/** @type {HostOf<Orchestrator['getChain']>} */
|
|
23
|
+
getChain(chainName: string): Vow<HostInterface<Chain<any>>>;
|
|
24
|
+
makeLocalAccount(): Vow<import("@endo/exo").Guarded<{
|
|
25
|
+
getAddress(): string;
|
|
26
|
+
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
27
|
+
deposit(payment: ERef<Payment<"nat">>, optAmountShape?: Pattern): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
28
|
+
withdraw(amount: Amount<"nat">): import("@agoric/vow").PromiseVow<Payment<"nat">>;
|
|
29
|
+
executeTx<MT extends import("@agoric/cosmic-proto").TypedJson[]>(messages: MT): PromiseVowOfTupleMappedToGenerics<{ [K in keyof MT]: import("@agoric/cosmic-proto").JsonSafe<import("@agoric/cosmic-proto").ResponseTo<MT[K]>>; }>;
|
|
30
|
+
monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): import("@agoric/vow").PromiseVow<import("@agoric/vats/src/bridge-target.js").TargetRegistration>;
|
|
31
|
+
}>>;
|
|
32
|
+
/** @type {HostOf<Orchestrator['getDenomInfo']>} */
|
|
33
|
+
getDenomInfo(denom: string): HostInterface<import("../orchestration-api.js").DenomInfo<"agoric" | "celestia" | "agoriclocal" | "cosmoshub" | "dydx" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee", "agoric" | "celestia" | "agoriclocal" | "cosmoshub" | "dydx" | "juno" | "neutron" | "noble" | "omniflixhub" | "osmosis" | "secretnetwork" | "stargaze" | "stride" | "umee">>;
|
|
34
|
+
/** @type {HostOf<Orchestrator['asAmount']>} */
|
|
35
|
+
asAmount: HostOf<Orchestrator["asAmount"]>;
|
|
36
|
+
}>;
|
|
146
37
|
/**
|
|
147
38
|
* Host side of the Orchestrator interface. (Methods return vows instead of
|
|
148
39
|
* promises as the interface within the guest function.)
|
|
@@ -161,10 +52,7 @@ import type { MakeRemoteChainFacade } from './remote-chain-facade.js';
|
|
|
161
52
|
import type { CosmosInterchainService } from './exo-interfaces.js';
|
|
162
53
|
import type { TimerService } from '@agoric/time';
|
|
163
54
|
import type { VowTools } from '@agoric/vow';
|
|
164
|
-
import type { ActualChainInfo } from './chain-hub.js';
|
|
165
|
-
import type { IBCConnectionInfo } from '../types.js';
|
|
166
55
|
import type { Vow } from '@agoric/vow';
|
|
167
|
-
import type { ChainInfo } from '../types.js';
|
|
168
56
|
import type { Orchestrator } from '../types.js';
|
|
169
57
|
import type { HostOf } from '@agoric/async-flow';
|
|
170
58
|
/**
|
|
@@ -216,22 +104,12 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, localchain, chai
|
|
|
216
104
|
query(args_0: {
|
|
217
105
|
'@type': string;
|
|
218
106
|
}[]): Vow<{
|
|
219
|
-
error?: string;
|
|
220
|
-
reply: {
|
|
221
|
-
'@type': string;
|
|
222
|
-
};
|
|
223
|
-
}[] extends import("@endo/pass-style").Passable ? {
|
|
224
|
-
error?: string;
|
|
225
|
-
reply: {
|
|
226
|
-
'@type': string;
|
|
227
|
-
};
|
|
228
|
-
}[] : HostInterface<{
|
|
229
|
-
error?: string;
|
|
107
|
+
error?: string | undefined;
|
|
230
108
|
reply: {
|
|
231
109
|
'@type': string;
|
|
232
110
|
};
|
|
233
|
-
}[]
|
|
234
|
-
getVBankAssetInfo(): Vow<import("@agoric/vats/src/vat-bank.js").AssetInfo[]
|
|
111
|
+
}[]>;
|
|
112
|
+
getVBankAssetInfo(): Vow<import("@agoric/vats/src/vat-bank.js").AssetInfo[]>;
|
|
235
113
|
}>;
|
|
236
114
|
};
|
|
237
115
|
/**
|
|
@@ -247,8 +125,8 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, localchain, chai
|
|
|
247
125
|
* @param {string} name
|
|
248
126
|
*/
|
|
249
127
|
onFulfilled([_agoricChainInfo, remoteChainInfo, connectionInfo]: [ChainInfo, ChainInfo, IBCConnectionInfo], name: string): import("@endo/exo").Guarded<{
|
|
250
|
-
getChainInfo(): Vow<any
|
|
251
|
-
makeAccount(): Vow<import("../orchestration-api.js").
|
|
128
|
+
getChainInfo(): Vow<any>;
|
|
129
|
+
makeAccount(): Vow<HostInterface<import("../orchestration-api.js").OrchestrationAccountI> | HostInterface<import("../orchestration-api.js").OrchestrationAccountI & import("../cosmos-api.js").StakingAccountActions> | HostInterface<import("../orchestration-api.js").OrchestrationAccountI & import("../cosmos-api.js").LocalAccountMethods> | HostInterface<import("../orchestration-api.js").OrchestrationAccountI & import("../cosmos-api.js").StakingAccountActions & import("../cosmos-api.js").LocalAccountMethods>>;
|
|
252
130
|
query(msgs: {
|
|
253
131
|
data: string;
|
|
254
132
|
path: string;
|
|
@@ -270,44 +148,12 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, localchain, chai
|
|
|
270
148
|
} | undefined;
|
|
271
149
|
height: string;
|
|
272
150
|
codespace: string;
|
|
273
|
-
}[]
|
|
274
|
-
code: number;
|
|
275
|
-
log: string;
|
|
276
|
-
info: string;
|
|
277
|
-
index: string;
|
|
278
|
-
key: string;
|
|
279
|
-
value: string;
|
|
280
|
-
proofOps?: {
|
|
281
|
-
ops: {
|
|
282
|
-
type: string;
|
|
283
|
-
key: string;
|
|
284
|
-
data: string;
|
|
285
|
-
}[];
|
|
286
|
-
} | undefined;
|
|
287
|
-
height: string;
|
|
288
|
-
codespace: string;
|
|
289
|
-
}[] : HostInterface<{
|
|
290
|
-
code: number;
|
|
291
|
-
log: string;
|
|
292
|
-
info: string;
|
|
293
|
-
index: string;
|
|
294
|
-
key: string;
|
|
295
|
-
value: string;
|
|
296
|
-
proofOps?: {
|
|
297
|
-
ops: {
|
|
298
|
-
type: string;
|
|
299
|
-
key: string;
|
|
300
|
-
data: string;
|
|
301
|
-
}[];
|
|
302
|
-
} | undefined;
|
|
303
|
-
height: string;
|
|
304
|
-
codespace: string;
|
|
305
|
-
}[]>>;
|
|
151
|
+
}[]>;
|
|
306
152
|
}>;
|
|
307
153
|
};
|
|
308
154
|
orchestrator: {
|
|
309
155
|
/** @type {HostOf<Orchestrator['getChain']>} */
|
|
310
|
-
getChain(chainName: string): Vow<
|
|
156
|
+
getChain(chainName: string): Vow<HostInterface<Chain<any>>>;
|
|
311
157
|
makeLocalAccount(): Vow<import("@endo/exo").Guarded<{
|
|
312
158
|
getAddress(): string;
|
|
313
159
|
getBalance(brand: Brand<"nat">): import("@agoric/vow").PromiseVow<Amount<"nat">>;
|
|
@@ -322,5 +168,8 @@ declare function prepareOrchestratorKit(zone: Zone, { chainHub, localchain, chai
|
|
|
322
168
|
asAmount: HostOf<Orchestrator["asAmount"]>;
|
|
323
169
|
};
|
|
324
170
|
}>;
|
|
171
|
+
import type { ActualChainInfo } from './chain-hub.js';
|
|
172
|
+
import type { IBCConnectionInfo } from '../types.js';
|
|
173
|
+
import type { ChainInfo } from '../types.js';
|
|
325
174
|
export {};
|
|
326
175
|
//# sourceMappingURL=orchestrator.d.ts.map
|