@agoric/orchestration 0.2.0-upgrade-17-dev-a1453b2.0 → 0.2.0-upgrade-18-dev-bf39b10.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/index.d.ts +1 -1
- package/index.js +2 -1
- package/package.json +29 -28
- package/src/chain-info.d.ts +31 -387
- package/src/chain-info.d.ts.map +1 -1
- package/src/chain-info.js +10 -64
- package/src/cosmos-api.d.ts +21 -10
- package/src/cosmos-api.d.ts.map +1 -1
- package/src/cosmos-api.ts +33 -14
- package/src/examples/README.md +3 -4
- package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -1
- package/src/examples/auto-stake-it-tap-kit.js +4 -7
- package/src/examples/auto-stake-it.contract.d.ts +1 -1
- package/src/examples/auto-stake-it.flows.d.ts +1 -1
- package/src/examples/auto-stake-it.flows.d.ts.map +1 -1
- package/src/examples/basic-flows.contract.d.ts +1 -1
- package/src/examples/basic-flows.flows.d.ts +1 -1
- package/src/examples/send-anywhere.contract.d.ts +20 -2
- package/src/examples/send-anywhere.contract.d.ts.map +1 -1
- package/src/examples/send-anywhere.contract.js +34 -18
- package/src/examples/send-anywhere.flows.d.ts +7 -7
- package/src/examples/send-anywhere.flows.d.ts.map +1 -1
- package/src/examples/send-anywhere.flows.js +40 -20
- package/src/examples/shared.flows.d.ts +4 -0
- package/src/examples/shared.flows.d.ts.map +1 -0
- package/src/examples/shared.flows.js +21 -0
- package/src/examples/stake-bld.contract.d.ts +49 -0
- package/src/examples/stake-bld.contract.d.ts.map +1 -0
- package/src/examples/{stakeBld.contract.js → stake-bld.contract.js} +10 -1
- package/src/examples/stake-ica.contract.d.ts +126 -0
- package/src/examples/stake-ica.contract.d.ts.map +1 -0
- package/src/examples/{stakeIca.contract.js → stake-ica.contract.js} +6 -2
- package/src/examples/staking-combinations.contract.d.ts +1 -1
- package/src/examples/staking-combinations.contract.d.ts.map +1 -1
- package/src/examples/staking-combinations.contract.js +16 -13
- package/src/examples/staking-combinations.flows.d.ts +6 -9
- package/src/examples/staking-combinations.flows.d.ts.map +1 -1
- package/src/examples/staking-combinations.flows.js +19 -16
- package/src/examples/swap.contract.d.ts.map +1 -1
- package/src/examples/swap.contract.js +0 -1
- package/src/examples/unbond.contract.d.ts +1 -1
- package/src/examples/unbond.contract.d.ts.map +1 -1
- package/src/examples/unbond.contract.js +10 -5
- package/src/examples/unbond.flows.d.ts +4 -3
- package/src/examples/unbond.flows.d.ts.map +1 -1
- package/src/examples/unbond.flows.js +23 -31
- package/src/exos/chain-hub.d.ts +12 -4
- package/src/exos/chain-hub.d.ts.map +1 -1
- package/src/exos/chain-hub.js +28 -19
- package/src/exos/combine-invitation-makers.d.ts +1 -0
- package/src/exos/combine-invitation-makers.d.ts.map +1 -1
- package/src/exos/combine-invitation-makers.js +6 -0
- 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 +152 -47
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.js +355 -13
- package/src/exos/exo-interfaces.d.ts +3 -3
- package/src/exos/exo-interfaces.d.ts.map +1 -1
- package/src/exos/exo-interfaces.ts +3 -3
- 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 +17 -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 +41 -48
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +94 -13
- package/src/exos/orchestrator.d.ts +44 -136
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/orchestrator.js +42 -44
- 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 +4 -4
- package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
- package/src/exos/portfolio-holder-kit.js +65 -10
- package/src/exos/remote-chain-facade.d.ts +35 -128
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/facade.d.ts.map +1 -1
- package/src/facade.js +7 -0
- package/src/fetched-chain-info.d.ts +30 -340
- package/src/fetched-chain-info.js +18 -329
- package/src/fixtures/query-flows.flows.d.ts.map +1 -1
- package/src/orchestration-api.d.ts +4 -8
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +3 -8
- package/src/proposals/init-chain-info.js +3 -3
- package/src/proposals/orchestration-proposal.d.ts.map +1 -1
- package/src/proposals/start-stakeAtom.d.ts +78 -16
- package/src/proposals/start-stakeAtom.d.ts.map +1 -1
- package/src/proposals/start-stakeAtom.js +9 -4
- package/src/proposals/start-stakeBld.d.ts +13 -39
- package/src/proposals/start-stakeBld.d.ts.map +1 -1
- package/src/proposals/start-stakeBld.js +2 -2
- package/src/proposals/start-stakeOsmo.d.ts +77 -15
- package/src/proposals/start-stakeOsmo.d.ts.map +1 -1
- package/src/proposals/start-stakeOsmo.js +9 -4
- package/src/typeGuards.d.ts +5 -1
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +21 -9
- package/src/types-index.d.ts +1 -0
- package/src/types-index.js +1 -0
- package/src/types.d.ts +14 -4
- package/src/types.d.ts.map +1 -1
- package/src/types.ts +15 -4
- package/src/utils/cosmos.d.ts +40 -1
- package/src/utils/cosmos.d.ts.map +1 -1
- package/src/utils/cosmos.js +48 -1
- package/src/utils/orchestrationAccount.js +1 -1
- package/src/utils/registry.d.ts.map +1 -1
- package/src/utils/registry.js +0 -3
- package/src/utils/start-helper.d.ts +4 -10
- package/src/utils/start-helper.d.ts.map +1 -1
- package/src/utils/start-helper.js +18 -15
- package/src/utils/zcf-tools.d.ts +5 -0
- package/src/utils/zcf-tools.d.ts.map +1 -0
- package/src/utils/zcf-tools.js +35 -0
- package/src/utils/zoe-tools.d.ts +5 -8
- package/src/utils/zoe-tools.d.ts.map +1 -1
- package/src/utils/zoe-tools.js +136 -33
- package/src/vat-orchestration.d.ts.map +1 -1
- package/src/examples/stakeBld.contract.d.ts +0 -75
- package/src/examples/stakeBld.contract.d.ts.map +0 -1
- package/src/examples/stakeIca.contract.d.ts +0 -64
- package/src/examples/stakeIca.contract.d.ts.map +0 -1
|
@@ -1,35 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {object} ComosOrchestrationAccountNotification
|
|
3
|
-
* @property {ChainAddress} chainAddress
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @private
|
|
7
|
-
* @typedef {{
|
|
8
|
-
* topicKit: RecorderKit<ComosOrchestrationAccountNotification>;
|
|
9
|
-
* account: IcaAccount;
|
|
10
|
-
* chainAddress: ChainAddress;
|
|
11
|
-
* localAddress: LocalIbcAddress;
|
|
12
|
-
* remoteAddress: RemoteIbcAddress;
|
|
13
|
-
* icqConnection: ICQConnection | undefined;
|
|
14
|
-
* timer: Remote<TimerService>;
|
|
15
|
-
* }} State
|
|
16
|
-
* Internal to the IcaAccountHolder exo
|
|
17
|
-
*/
|
|
18
|
-
/**
|
|
19
|
-
* @typedef {{
|
|
20
|
-
* localAddress: LocalIbcAddress;
|
|
21
|
-
* remoteAddress: RemoteIbcAddress;
|
|
22
|
-
* }} CosmosOrchestrationAccountStorageState
|
|
23
|
-
*/
|
|
24
1
|
/** @see {OrchestrationAccountI} */
|
|
25
2
|
export const IcaAccountHolderI: import("@endo/patterns").InterfaceGuard<{
|
|
3
|
+
deactivate: import("@endo/patterns").MethodGuard;
|
|
4
|
+
reactivate: import("@endo/patterns").MethodGuard;
|
|
5
|
+
getDelegation: import("@endo/patterns").MethodGuard;
|
|
6
|
+
getDelegations: import("@endo/patterns").MethodGuard;
|
|
7
|
+
getUnbondingDelegation: import("@endo/patterns").MethodGuard;
|
|
8
|
+
getUnbondingDelegations: import("@endo/patterns").MethodGuard;
|
|
9
|
+
getRedelegations: import("@endo/patterns").MethodGuard;
|
|
10
|
+
getReward: import("@endo/patterns").MethodGuard;
|
|
11
|
+
getRewards: import("@endo/patterns").MethodGuard;
|
|
26
12
|
delegate: import("@endo/patterns").MethodGuard;
|
|
27
13
|
redelegate: import("@endo/patterns").MethodGuard;
|
|
14
|
+
undelegate: import("@endo/patterns").MethodGuard;
|
|
28
15
|
withdrawReward: import("@endo/patterns").MethodGuard;
|
|
29
16
|
withdrawRewards: import("@endo/patterns").MethodGuard;
|
|
30
|
-
undelegate: import("@endo/patterns").MethodGuard;
|
|
31
|
-
deactivate: import("@endo/patterns").MethodGuard;
|
|
32
|
-
reactivate: import("@endo/patterns").MethodGuard;
|
|
33
17
|
getAddress: import("@endo/patterns").MethodGuard;
|
|
34
18
|
getBalance: import("@endo/patterns").MethodGuard;
|
|
35
19
|
getBalances: import("@endo/patterns").MethodGuard;
|
|
@@ -82,13 +66,64 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
82
66
|
/**
|
|
83
67
|
* @param {JsonSafe<ResponseQuery>[]} results
|
|
84
68
|
*/
|
|
85
|
-
onFulfilled([result]: JsonSafe<ResponseQuery>[]): DenomAmount;
|
|
69
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.js").DenomAmount;
|
|
70
|
+
};
|
|
71
|
+
delegationQueryWatcher: {
|
|
72
|
+
/**
|
|
73
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
74
|
+
* @returns {CosmosDelegationResponse}
|
|
75
|
+
*/
|
|
76
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): CosmosDelegationResponse;
|
|
77
|
+
};
|
|
78
|
+
delegationsQueryWatcher: {
|
|
79
|
+
/**
|
|
80
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
81
|
+
* @returns {CosmosDelegationResponse[]}
|
|
82
|
+
*/
|
|
83
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): CosmosDelegationResponse[];
|
|
84
|
+
};
|
|
85
|
+
unbondingDelegationQueryWatcher: {
|
|
86
|
+
/**
|
|
87
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
88
|
+
*/
|
|
89
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation;
|
|
90
|
+
};
|
|
91
|
+
unbondingDelegationsQueryWatcher: {
|
|
92
|
+
/**
|
|
93
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
94
|
+
*/
|
|
95
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation[];
|
|
96
|
+
};
|
|
97
|
+
redelegationQueryWatcher: {
|
|
98
|
+
/**
|
|
99
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
100
|
+
*/
|
|
101
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").RedelegationResponse[];
|
|
102
|
+
};
|
|
103
|
+
redelegationsQueryWatcher: {
|
|
104
|
+
/**
|
|
105
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
106
|
+
*/
|
|
107
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").RedelegationResponse[];
|
|
108
|
+
};
|
|
109
|
+
rewardQueryWatcher: {
|
|
110
|
+
/**
|
|
111
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
112
|
+
*/
|
|
113
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.js").DenomAmount[];
|
|
114
|
+
};
|
|
115
|
+
rewardsQueryWatcher: {
|
|
116
|
+
/**
|
|
117
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
118
|
+
* @returns {CosmosRewardsResponse}
|
|
119
|
+
*/
|
|
120
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): CosmosRewardsResponse;
|
|
86
121
|
};
|
|
87
122
|
allBalancesQueryWatcher: {
|
|
88
123
|
/**
|
|
89
124
|
* @param {JsonSafe<ResponseQuery>[]} results
|
|
90
125
|
*/
|
|
91
|
-
onFulfilled([result]: JsonSafe<ResponseQuery>[]): DenomAmount[];
|
|
126
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.js").DenomAmount[];
|
|
92
127
|
};
|
|
93
128
|
undelegateWatcher: {
|
|
94
129
|
/**
|
|
@@ -106,7 +141,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
106
141
|
};
|
|
107
142
|
withdrawRewardWatcher: {
|
|
108
143
|
/** @param {string} result */
|
|
109
|
-
onFulfilled(result: string): DenomAmount[];
|
|
144
|
+
onFulfilled(result: string): import("../orchestration-api.js").DenomAmount[];
|
|
110
145
|
};
|
|
111
146
|
transferWatcher: {
|
|
112
147
|
/**
|
|
@@ -141,7 +176,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
141
176
|
*/
|
|
142
177
|
Redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<void>, undefined>>;
|
|
143
178
|
/** @param {CosmosValidatorAddress} validator */
|
|
144
|
-
WithdrawReward(validator: CosmosValidatorAddress): Promise<Invitation<Vow<DenomAmount[]>, undefined>>;
|
|
179
|
+
WithdrawReward(validator: CosmosValidatorAddress): Promise<Invitation<Vow<import("../orchestration-api.js").DenomAmount[]>, undefined>>;
|
|
145
180
|
/**
|
|
146
181
|
* @param {{
|
|
147
182
|
* amount: AmountArg;
|
|
@@ -171,45 +206,114 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
|
|
|
171
206
|
Transfer(): Promise<Invitation<Vow<void>, {
|
|
172
207
|
amount: AmountArg;
|
|
173
208
|
destination: ChainAddress;
|
|
174
|
-
opts
|
|
209
|
+
opts?: IBCMsgTransferOptions;
|
|
175
210
|
}>>;
|
|
176
211
|
};
|
|
177
212
|
holder: {
|
|
178
213
|
/** @type {HostOf<OrchestrationAccountI['asContinuingOffer']>} */
|
|
179
|
-
asContinuingOffer(): Vow<import("
|
|
214
|
+
asContinuingOffer(): Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
|
|
180
215
|
/** @type {HostOf<OrchestrationAccountI['getPublicTopics']>} */
|
|
181
|
-
getPublicTopics(): Vow<
|
|
216
|
+
getPublicTopics(): Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
|
|
182
217
|
/** @type {HostOf<OrchestrationAccountI['getAddress']>} */
|
|
183
218
|
getAddress(): import("@agoric/async-flow").HostInterface<ChainAddress>;
|
|
184
219
|
/** @type {HostOf<StakingAccountActions['delegate']>} */
|
|
185
|
-
delegate(validator: CosmosValidatorAddress, amount: AmountArg): Vow<void
|
|
220
|
+
delegate(validator: CosmosValidatorAddress, amount: AmountArg): Vow<void>;
|
|
186
221
|
/** @type {HostOf<StakingAccountActions['redelegate']>} */
|
|
187
|
-
redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Vow<void
|
|
222
|
+
redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Vow<void>;
|
|
188
223
|
/** @type {HostOf<StakingAccountActions['withdrawReward']>} */
|
|
189
|
-
withdrawReward(validator: CosmosValidatorAddress): Vow<
|
|
224
|
+
withdrawReward(validator: CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
190
225
|
/** @type {HostOf<OrchestrationAccountI['getBalance']>} */
|
|
191
|
-
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<
|
|
226
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount>;
|
|
192
227
|
/** @type {HostOf<OrchestrationAccountI['getBalances']>} */
|
|
193
|
-
getBalances(): Vow<
|
|
228
|
+
getBalances(): Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
194
229
|
/** @type {HostOf<OrchestrationAccountI['send']>} */
|
|
195
|
-
send(toAccount: ChainAddress, amounts: AmountArg): Vow<void
|
|
230
|
+
send(toAccount: ChainAddress, amounts: AmountArg): Vow<void>;
|
|
196
231
|
/** @type {HostOf<OrchestrationAccountI['sendAll']>} */
|
|
197
|
-
sendAll(toAccount: ChainAddress, amounts: AmountArg[]): Vow<void
|
|
232
|
+
sendAll(toAccount: ChainAddress, amounts: AmountArg[]): Vow<void>;
|
|
198
233
|
/** @type {HostOf<OrchestrationAccountI['transfer']>} */
|
|
199
|
-
transfer(
|
|
234
|
+
transfer(destination: ChainAddress, amount: AmountArg, opts?: IBCMsgTransferOptions | undefined): Vow<void>;
|
|
200
235
|
/** @type {HostOf<OrchestrationAccountI['transferSteps']>} */
|
|
201
|
-
transferSteps(amount: AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void
|
|
236
|
+
transferSteps(amount: AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void>;
|
|
202
237
|
/** @type {HostOf<StakingAccountActions['withdrawRewards']>} */
|
|
203
|
-
withdrawRewards(): Vow<
|
|
238
|
+
withdrawRewards(): Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
204
239
|
/** @type {HostOf<StakingAccountActions['undelegate']>} */
|
|
205
240
|
undelegate(delegations: {
|
|
206
241
|
amount: AmountArg;
|
|
242
|
+
delegator?: ChainAddress;
|
|
207
243
|
validator: CosmosValidatorAddress;
|
|
208
|
-
}[]): Vow<void
|
|
244
|
+
}[]): Vow<void>;
|
|
209
245
|
/** @type {HostOf<IcaAccount['deactivate']>} */
|
|
210
|
-
deactivate(): Vow<void
|
|
246
|
+
deactivate(): Vow<void>;
|
|
211
247
|
/** @type {HostOf<IcaAccount['reactivate']>} */
|
|
212
|
-
reactivate(): Vow<void
|
|
248
|
+
reactivate(): Vow<void>;
|
|
249
|
+
/** @type {HostOf<StakingAccountQueries['getDelegation']>} */
|
|
250
|
+
getDelegation(validator: CosmosValidatorAddress): Vow<import("@agoric/async-flow").HostInterface<CosmosDelegationResponse>>;
|
|
251
|
+
/** @type {HostOf<StakingAccountQueries['getDelegations']>} */
|
|
252
|
+
getDelegations(): Vow<{
|
|
253
|
+
delegator: {
|
|
254
|
+
chainId: string;
|
|
255
|
+
value: string;
|
|
256
|
+
encoding: "bech32" | "ethereum";
|
|
257
|
+
};
|
|
258
|
+
validator: {
|
|
259
|
+
chainId: string;
|
|
260
|
+
value: `${string}valoper${string}`;
|
|
261
|
+
encoding: "bech32";
|
|
262
|
+
};
|
|
263
|
+
amount: {
|
|
264
|
+
denom: import("../orchestration-api.js").Denom;
|
|
265
|
+
value: bigint;
|
|
266
|
+
};
|
|
267
|
+
}[]>;
|
|
268
|
+
/** @type {HostOf<StakingAccountQueries['getUnbondingDelegation']>} */
|
|
269
|
+
getUnbondingDelegation(validator: CosmosValidatorAddress): Vow<import("@agoric/async-flow").HostInterface<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation>>;
|
|
270
|
+
/** @type {HostOf<StakingAccountQueries['getUnbondingDelegations']>} */
|
|
271
|
+
getUnbondingDelegations(): Vow<{
|
|
272
|
+
delegatorAddress: string;
|
|
273
|
+
validatorAddress: string;
|
|
274
|
+
entries: {
|
|
275
|
+
creationHeight: bigint;
|
|
276
|
+
completionTime: {
|
|
277
|
+
seconds: bigint;
|
|
278
|
+
nanos: number;
|
|
279
|
+
};
|
|
280
|
+
initialBalance: string;
|
|
281
|
+
balance: string;
|
|
282
|
+
}[];
|
|
283
|
+
}[]>;
|
|
284
|
+
/** @type {HostOf<StakingAccountQueries['getRedelegations']>} */
|
|
285
|
+
getRedelegations(): Vow<{
|
|
286
|
+
redelegation: {
|
|
287
|
+
delegatorAddress: string;
|
|
288
|
+
validatorSrcAddress: string;
|
|
289
|
+
validatorDstAddress: string;
|
|
290
|
+
entries: {
|
|
291
|
+
creationHeight: bigint;
|
|
292
|
+
completionTime: {
|
|
293
|
+
seconds: bigint;
|
|
294
|
+
nanos: number;
|
|
295
|
+
};
|
|
296
|
+
initialBalance: string;
|
|
297
|
+
sharesDst: string;
|
|
298
|
+
}[];
|
|
299
|
+
};
|
|
300
|
+
entries: {
|
|
301
|
+
redelegationEntry: {
|
|
302
|
+
creationHeight: bigint;
|
|
303
|
+
completionTime: {
|
|
304
|
+
seconds: bigint;
|
|
305
|
+
nanos: number;
|
|
306
|
+
};
|
|
307
|
+
initialBalance: string;
|
|
308
|
+
sharesDst: string;
|
|
309
|
+
};
|
|
310
|
+
balance: string;
|
|
311
|
+
}[];
|
|
312
|
+
}[]>;
|
|
313
|
+
/** @type {HostOf<StakingAccountQueries['getReward']>} */
|
|
314
|
+
getReward(validator: CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[]>;
|
|
315
|
+
/** @type {HostOf<StakingAccountQueries['getRewards']>} */
|
|
316
|
+
getRewards(): Vow<import("@agoric/async-flow").HostInterface<CosmosRewardsResponse>>;
|
|
213
317
|
};
|
|
214
318
|
}>;
|
|
215
319
|
export function prepareCosmosOrchestrationAccount(zone: Zone, { chainHub, makeRecorderKit, timerService, vowTools, zcf }: {
|
|
@@ -255,7 +359,8 @@ import type { AmountArg } from '../types.js';
|
|
|
255
359
|
import type { Coin } from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
|
|
256
360
|
import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
257
361
|
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
258
|
-
import type {
|
|
362
|
+
import type { CosmosDelegationResponse } from '../types.js';
|
|
363
|
+
import type { CosmosRewardsResponse } from '../types.js';
|
|
259
364
|
import type { Vow } from '@agoric/vow';
|
|
260
365
|
import type { IBCConnectionInfo } from '../types.js';
|
|
261
366
|
import type { IBCMsgTransferOptions } from '../types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos-orchestration-account.d.ts","sourceRoot":"","sources":["cosmos-orchestration-account.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cosmos-orchestration-account.d.ts","sourceRoot":"","sources":["cosmos-orchestration-account.js"],"names":[],"mappings":"AA0IA,mCAAmC;AACnC;;;;;;;;;;;;;;;;;;;;;;;;GAMG;AAOH;;;;;;;;;;;GAkBE;AAYK,2DARI,IAAI,gGAEZ;IAAyB,QAAQ,EAAzB,QAAQ;IACgB,eAAe,EAAvC,eAAe;IACc,YAAY,EAAzC,OAAO,YAAY,CAAC;IACH,QAAQ,EAAzB,QAAQ;IACI,GAAG,EAAf,GAAG;CACb;kBAsGc,YAAY;kBACZ,eAAe;mBACf,gBAAgB;;aAEhB,UAAU;iBACV,OAAO,WAAW,CAAC;mBACnB,aAAa,GAAG,SAAS;WACzB,OAAO,YAAY,CAAC;;;QA+B3B,wDAAwD;;;QAWxD;;;WAGG;6BAFQ,SAAS,GACP,IAAI;;;QAOjB;;WAEG;8BADQ,SAAS,aAAa,CAAC,EAAE;;;QAYpC;;;WAGG;8BAFQ,SAAS,aAAa,CAAC,EAAE,GACvB,wBAAwB;;;QAgBrC;;;WAGG;8BAFQ,SAAS,aAAa,CAAC,EAAE,GACvB,wBAAwB,EAAE;;;QAiBvC;;WAEG;8BADQ,SAAS,aAAa,CAAC,EAAE;;;QAYpC;;WAEG;8BADQ,SAAS,aAAa,CAAC,EAAE;;;QAcpC;;WAEG;8BADQ,SAAS,aAAa,CAAC,EAAE;;;QAapC;;WAEG;8BADQ,SAAS,aAAa,CAAC,EAAE;;;QAapC;;WAEG;8BADQ,SAAS,aAAa,CAAC,EAAE;;;QAYpC;;;WAGG;8BAFQ,SAAS,aAAa,CAAC,EAAE,GACvB,qB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