@agoric/orchestration 0.3.0-u23.0 → 0.3.0-u23.1
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 +9 -0
- package/package.json +15 -15
- package/src/axelar-types.d.ts +53 -0
- package/src/axelar-types.d.ts.map +1 -0
- package/src/cctp-chain-info.d.ts +65 -0
- package/src/cctp-chain-info.d.ts.map +1 -0
- package/src/chain-capabilities.d.ts +12 -0
- package/src/chain-capabilities.d.ts.map +1 -0
- package/src/chain-info.d.ts +10267 -0
- package/src/chain-info.d.ts.map +1 -0
- package/src/cosmos-api.d.ts +437 -0
- package/src/cosmos-api.d.ts.map +1 -0
- package/src/ethereum-api.d.ts +9 -0
- package/src/ethereum-api.d.ts.map +1 -0
- package/src/examples/auto-stake-it-tap-kit.d.ts +50 -0
- package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -0
- package/src/examples/auto-stake-it.contract.d.ts +34 -0
- package/src/examples/auto-stake-it.contract.d.ts.map +1 -0
- package/src/examples/auto-stake-it.flows.d.ts +24 -0
- package/src/examples/auto-stake-it.flows.d.ts.map +1 -0
- package/src/examples/axelar-gmp-account-kit.d.ts +80 -0
- package/src/examples/axelar-gmp-account-kit.d.ts.map +1 -0
- package/src/examples/axelar-gmp.contract.d.ts +52 -0
- package/src/examples/axelar-gmp.contract.d.ts.map +1 -0
- package/src/examples/axelar-gmp.flows.d.ts +21 -0
- package/src/examples/axelar-gmp.flows.d.ts.map +1 -0
- package/src/examples/basic-flows.contract.d.ts +32 -0
- package/src/examples/basic-flows.contract.d.ts.map +1 -0
- package/src/examples/basic-flows.flows.d.ts +20 -0
- package/src/examples/basic-flows.flows.d.ts.map +1 -0
- package/src/examples/send-anywhere.contract.d.ts +60 -0
- package/src/examples/send-anywhere.contract.d.ts.map +1 -0
- package/src/examples/send-anywhere.flows.d.ts +576 -0
- package/src/examples/send-anywhere.flows.d.ts.map +1 -0
- package/src/examples/shared.flows.d.ts +4 -0
- package/src/examples/shared.flows.d.ts.map +1 -0
- package/src/examples/stake-bld.contract.d.ts +237 -0
- package/src/examples/stake-bld.contract.d.ts.map +1 -0
- package/src/examples/stake-ica.contract.d.ts +573 -0
- package/src/examples/stake-ica.contract.d.ts.map +1 -0
- package/src/examples/staking-combinations.contract.d.ts +19 -0
- package/src/examples/staking-combinations.contract.d.ts.map +1 -0
- package/src/examples/staking-combinations.flows.d.ts +32 -0
- package/src/examples/staking-combinations.flows.d.ts.map +1 -0
- package/src/examples/swap-anything.contract.d.ts +55 -0
- package/src/examples/swap-anything.contract.d.ts.map +1 -0
- package/src/examples/swap-anything.flows.d.ts +32 -0
- package/src/examples/swap-anything.flows.d.ts.map +1 -0
- package/src/examples/swap.contract.d.ts +56 -0
- package/src/examples/swap.contract.d.ts.map +1 -0
- package/src/examples/swap.flows.d.ts +12 -0
- package/src/examples/swap.flows.d.ts.map +1 -0
- package/src/examples/unbond.contract.d.ts +21 -0
- package/src/examples/unbond.contract.d.ts.map +1 -0
- package/src/examples/unbond.flows.d.ts +6 -0
- package/src/examples/unbond.flows.d.ts.map +1 -0
- package/src/exos/chain-hub-admin.d.ts +27 -0
- package/src/exos/chain-hub-admin.d.ts.map +1 -0
- package/src/exos/chain-hub.d.ts +225 -0
- package/src/exos/chain-hub.d.ts.map +1 -0
- package/src/exos/combine-invitation-makers.d.ts +7 -0
- package/src/exos/combine-invitation-makers.d.ts.map +1 -0
- package/src/exos/cosmos-interchain-service.d.ts +49 -0
- package/src/exos/cosmos-interchain-service.d.ts.map +1 -0
- package/src/exos/cosmos-orchestration-account.d.ts +950 -0
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -0
- package/src/exos/exo-interfaces.d.ts +27 -0
- package/src/exos/exo-interfaces.d.ts.map +1 -0
- package/src/exos/ibc-packet.d.ts +101 -0
- package/src/exos/ibc-packet.d.ts.map +1 -0
- package/src/exos/ica-account-kit.d.ts +98 -0
- package/src/exos/ica-account-kit.d.ts.map +1 -0
- package/src/exos/icq-connection-kit.d.ts +67 -0
- package/src/exos/icq-connection-kit.d.ts.map +1 -0
- package/src/exos/local-chain-facade.d.ts +1587 -0
- package/src/exos/local-chain-facade.d.ts.map +1 -0
- package/src/exos/local-orchestration-account.d.ts +405 -0
- package/src/exos/local-orchestration-account.d.ts.map +1 -0
- package/src/exos/orchestrator.d.ts +35857 -0
- package/src/exos/orchestrator.d.ts.map +1 -0
- package/src/exos/packet-tools.d.ts +63 -0
- package/src/exos/packet-tools.d.ts.map +1 -0
- package/src/exos/portfolio-holder-kit.d.ts +154 -0
- package/src/exos/portfolio-holder-kit.d.ts.map +1 -0
- package/src/exos/remote-chain-facade.d.ts +1549 -0
- package/src/exos/remote-chain-facade.d.ts.map +1 -0
- package/src/facade.d.ts +33 -0
- package/src/facade.d.ts.map +1 -0
- package/src/fetched-chain-info.d.ts +10275 -0
- package/src/fetched-chain-info.d.ts.map +1 -0
- package/src/fixtures/query-flows.contract.d.ts +33 -0
- package/src/fixtures/query-flows.contract.d.ts.map +1 -0
- package/src/fixtures/query-flows.flows.d.ts +20 -0
- package/src/fixtures/query-flows.flows.d.ts.map +1 -0
- package/src/orchestration-api.d.ts +315 -0
- package/src/orchestration-api.d.ts.map +1 -0
- package/src/typeGuards.d.ts +163 -0
- package/src/typeGuards.d.ts.map +1 -0
- package/src/types.d.ts +25 -0
- package/src/types.d.ts.map +1 -0
- package/src/utils/abitype.d.ts +6 -0
- package/src/utils/abitype.d.ts.map +1 -0
- package/src/utils/address.d.ts +44 -0
- package/src/utils/address.d.ts.map +1 -0
- package/src/utils/agd-lib.d.ts +58 -0
- package/src/utils/agd-lib.d.ts.map +1 -0
- package/src/utils/amounts.d.ts +11 -0
- package/src/utils/amounts.d.ts.map +1 -0
- package/src/utils/asset.d.ts +6 -0
- package/src/utils/asset.d.ts.map +1 -0
- package/src/utils/axelar-static-config.d.ts +34 -0
- package/src/utils/axelar-static-config.d.ts.map +1 -0
- package/src/utils/chain-hub-helper.d.ts +14 -0
- package/src/utils/chain-hub-helper.d.ts.map +1 -0
- package/src/utils/chain-info.d.ts +5 -0
- package/src/utils/chain-info.d.ts.map +1 -0
- package/src/utils/codecs.d.ts +145 -0
- package/src/utils/codecs.d.ts.map +1 -0
- package/src/utils/cosmos.d.ts +61 -0
- package/src/utils/cosmos.d.ts.map +1 -0
- package/src/utils/denomHash.d.ts +7 -0
- package/src/utils/denomHash.d.ts.map +1 -0
- package/src/utils/exo-helpers.d.ts +156 -0
- package/src/utils/exo-helpers.d.ts.map +1 -0
- package/src/utils/gmp.d.ts +30 -0
- package/src/utils/gmp.d.ts.map +1 -0
- package/src/utils/orc.d.ts +17 -0
- package/src/utils/orc.d.ts.map +1 -0
- package/src/utils/orchestrationAccount.d.ts +91 -0
- package/src/utils/orchestrationAccount.d.ts.map +1 -0
- package/src/utils/packet.d.ts +57 -0
- package/src/utils/packet.d.ts.map +1 -0
- package/src/utils/permit2/signatureTransfer.d.ts +221 -0
- package/src/utils/permit2/signatureTransfer.d.ts.map +1 -0
- package/src/utils/permit2/signatureTransferHelpers.d.ts +334 -0
- package/src/utils/permit2/signatureTransferHelpers.d.ts.map +1 -0
- package/src/utils/permit2.d.ts +11 -0
- package/src/utils/permit2.d.ts.map +1 -0
- package/src/utils/progress.d.ts +41 -0
- package/src/utils/progress.d.ts.map +1 -0
- package/src/utils/registry.d.ts +6 -0
- package/src/utils/registry.d.ts.map +1 -0
- package/src/utils/start-helper.d.ts +129 -0
- package/src/utils/start-helper.d.ts.map +1 -0
- package/src/utils/time.d.ts +38 -0
- package/src/utils/time.d.ts.map +1 -0
- package/src/utils/viem-utils/hashTypedData.d.ts +21 -0
- package/src/utils/viem-utils/hashTypedData.d.ts.map +1 -0
- package/src/utils/viem-utils/types.d.ts +6 -0
- package/src/utils/viem-utils/types.d.ts.map +1 -0
- package/src/utils/viem.d.ts +11 -0
- package/src/utils/viem.d.ts.map +1 -0
- package/src/utils/zcf-tools.d.ts +19 -0
- package/src/utils/zcf-tools.d.ts.map +1 -0
- package/src/utils/zoe-tools.d.ts +19 -0
- package/src/utils/zoe-tools.d.ts.map +1 -0
- package/src/vat-orchestration.d.ts +21 -0
- package/src/vat-orchestration.d.ts.map +1 -0
- package/tools/contract-tests.d.ts +1832 -0
- package/tools/contract-tests.d.ts.map +1 -0
- package/tools/ibc-mock-fixtures.d.ts +49 -0
- package/tools/ibc-mock-fixtures.d.ts.map +1 -0
- package/tools/ibc-mocks.d.ts +168 -0
- package/tools/ibc-mocks.d.ts.map +1 -0
- package/tools/make-test-address.d.ts +3 -0
- package/tools/make-test-address.d.ts.map +1 -0
- package/tools/network-fakes.d.ts +143 -0
- package/tools/network-fakes.d.ts.map +1 -0
- package/tools/protobuf-decoder.d.ts +19 -0
- package/tools/protobuf-decoder.d.ts.map +1 -0
|
@@ -0,0 +1,950 @@
|
|
|
1
|
+
/** @see {OrchestrationAccountCommon} */
|
|
2
|
+
export const IcaAccountHolderI: import("@endo/patterns").InterfaceGuard<{
|
|
3
|
+
deactivate: import("@endo/patterns").MethodGuard;
|
|
4
|
+
reactivate: import("@endo/patterns").MethodGuard;
|
|
5
|
+
executeEncodedTx: import("@endo/patterns").MethodGuard;
|
|
6
|
+
executeTxProto3: import("@endo/patterns").MethodGuard;
|
|
7
|
+
executeTxProto3Undecoded: import("@endo/patterns").MethodGuard;
|
|
8
|
+
getDelegation: import("@endo/patterns").MethodGuard;
|
|
9
|
+
getDelegations: import("@endo/patterns").MethodGuard;
|
|
10
|
+
getUnbondingDelegation: import("@endo/patterns").MethodGuard;
|
|
11
|
+
getUnbondingDelegations: import("@endo/patterns").MethodGuard;
|
|
12
|
+
getRedelegations: import("@endo/patterns").MethodGuard;
|
|
13
|
+
getReward: import("@endo/patterns").MethodGuard;
|
|
14
|
+
getRewards: import("@endo/patterns").MethodGuard;
|
|
15
|
+
delegate: import("@endo/patterns").MethodGuard;
|
|
16
|
+
redelegate: import("@endo/patterns").MethodGuard;
|
|
17
|
+
undelegate: import("@endo/patterns").MethodGuard;
|
|
18
|
+
withdrawReward: import("@endo/patterns").MethodGuard;
|
|
19
|
+
withdrawRewards: import("@endo/patterns").MethodGuard;
|
|
20
|
+
getAddress: import("@endo/patterns").MethodGuard;
|
|
21
|
+
getBalance: import("@endo/patterns").MethodGuard;
|
|
22
|
+
getBalances: import("@endo/patterns").MethodGuard;
|
|
23
|
+
send: import("@endo/patterns").MethodGuard;
|
|
24
|
+
sendAll: import("@endo/patterns").MethodGuard;
|
|
25
|
+
transfer: import("@endo/patterns").MethodGuard;
|
|
26
|
+
transferSteps: import("@endo/patterns").MethodGuard;
|
|
27
|
+
asContinuingOffer: import("@endo/patterns").MethodGuard;
|
|
28
|
+
getPublicTopics: import("@endo/patterns").MethodGuard;
|
|
29
|
+
makeProgressTracker: import("@endo/patterns").MethodGuard;
|
|
30
|
+
depositForBurn: import("@endo/patterns").MethodGuard;
|
|
31
|
+
}>;
|
|
32
|
+
export const CosmosOrchestrationInvitationMakersI: import("@endo/patterns").InterfaceGuard<{
|
|
33
|
+
Delegate: import("@endo/patterns").MethodGuard;
|
|
34
|
+
Redelegate: import("@endo/patterns").MethodGuard;
|
|
35
|
+
WithdrawReward: import("@endo/patterns").MethodGuard;
|
|
36
|
+
Undelegate: import("@endo/patterns").MethodGuard;
|
|
37
|
+
DeactivateAccount: import("@endo/patterns").MethodGuard;
|
|
38
|
+
ReactivateAccount: import("@endo/patterns").MethodGuard;
|
|
39
|
+
TransferAccount: import("@endo/patterns").MethodGuard;
|
|
40
|
+
Send: import("@endo/patterns").MethodGuard;
|
|
41
|
+
SendAll: import("@endo/patterns").MethodGuard;
|
|
42
|
+
Transfer: import("@endo/patterns").MethodGuard;
|
|
43
|
+
}>;
|
|
44
|
+
export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, makeProgressTracker, makeRecorderKit, timerService, vowTools, zcf, }: {
|
|
45
|
+
chainHub: ChainHub;
|
|
46
|
+
makeProgressTracker: MakeProgressTracker;
|
|
47
|
+
makeRecorderKit: MakeRecorderKit;
|
|
48
|
+
timerService: Remote<TimerService>;
|
|
49
|
+
vowTools: VowTools;
|
|
50
|
+
zcf: ZCF;
|
|
51
|
+
}): (args_0: {
|
|
52
|
+
chainAddress: CosmosChainAddress;
|
|
53
|
+
localAddress: LocalIbcAddress;
|
|
54
|
+
remoteAddress: RemoteIbcAddress;
|
|
55
|
+
}, io: {
|
|
56
|
+
account: IcaAccount;
|
|
57
|
+
storageNode?: Remote<StorageNode> | undefined;
|
|
58
|
+
icqConnection?: import("@endo/exo").Guarded<{
|
|
59
|
+
getLocalAddress(): `/ibc-port/${string}`;
|
|
60
|
+
getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
|
|
61
|
+
query(msgs: JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Vow<JsonSafe<ResponseQuery>[]>;
|
|
62
|
+
}> | undefined;
|
|
63
|
+
timer: Remote<TimerService>;
|
|
64
|
+
}) => import("@endo/exo").GuardedKit<{
|
|
65
|
+
helper: {
|
|
66
|
+
/** @throws if this holder no longer owns the account */
|
|
67
|
+
owned(): IcaAccount;
|
|
68
|
+
getUpdater(): import("@agoric/zoe/src/contractSupport/recorder.js").Recorder<CosmosOrchestrationAccountNotification>;
|
|
69
|
+
/**
|
|
70
|
+
* @param {AmountArg} amount
|
|
71
|
+
* @returns {Coin}
|
|
72
|
+
*/
|
|
73
|
+
amountToCoin(amount: AmountArg): Coin;
|
|
74
|
+
pickVowProp<R extends readonly Record<PropertyKey, any>, K extends PropertyKey>(inputV: import("@agoric/vow").EVow<R>, prop: K): Vow<R[K]>;
|
|
75
|
+
pickVowIndex<T extends readonly unknown[], I extends number>(inputV: import("@agoric/vow").EVow<T>, index: I): Vow<T[I]>;
|
|
76
|
+
overrideVow<T = undefined>(inputV: Vow<unknown>, newValue?: T): Vow<T>;
|
|
77
|
+
voidVow(inputV: Vow<unknown>): Vow<void>;
|
|
78
|
+
};
|
|
79
|
+
updateTxProgressWatcher: {
|
|
80
|
+
/**
|
|
81
|
+
* @param {readonly [
|
|
82
|
+
* srcChainInfo: ChainInfo<'cosmos'>,
|
|
83
|
+
* la: LocalIbcAddress,
|
|
84
|
+
* ra: RemoteIbcAddress,
|
|
85
|
+
* ]} param0
|
|
86
|
+
* @param {{
|
|
87
|
+
* progressTracker: ProgressTracker;
|
|
88
|
+
* trafficSlice: SliceDescriptor;
|
|
89
|
+
* protocol: 'ibc';
|
|
90
|
+
* }} opts
|
|
91
|
+
*/
|
|
92
|
+
onFulfilled([srcChainInfo, la, ra]: readonly [srcChainInfo: ChainInfo<"cosmos">, la: LocalIbcAddress, ra: RemoteIbcAddress], { progressTracker, trafficSlice, protocol }: {
|
|
93
|
+
progressTracker: ProgressTracker;
|
|
94
|
+
trafficSlice: SliceDescriptor;
|
|
95
|
+
protocol: "ibc";
|
|
96
|
+
}): void;
|
|
97
|
+
};
|
|
98
|
+
balanceQueryWatcher: {
|
|
99
|
+
/**
|
|
100
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
101
|
+
*/
|
|
102
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.js").DenomAmount;
|
|
103
|
+
};
|
|
104
|
+
delegationQueryWatcher: {
|
|
105
|
+
/**
|
|
106
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
107
|
+
* @returns {CosmosDelegationResponse}
|
|
108
|
+
*/
|
|
109
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): CosmosDelegationResponse;
|
|
110
|
+
};
|
|
111
|
+
delegationsQueryWatcher: {
|
|
112
|
+
/**
|
|
113
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
114
|
+
* @returns {CosmosDelegationResponse[]}
|
|
115
|
+
*/
|
|
116
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): CosmosDelegationResponse[];
|
|
117
|
+
};
|
|
118
|
+
unbondingDelegationQueryWatcher: {
|
|
119
|
+
/**
|
|
120
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
121
|
+
*/
|
|
122
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation;
|
|
123
|
+
};
|
|
124
|
+
unbondingDelegationsQueryWatcher: {
|
|
125
|
+
/**
|
|
126
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
127
|
+
*/
|
|
128
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation[];
|
|
129
|
+
};
|
|
130
|
+
redelegationsQueryWatcher: {
|
|
131
|
+
/**
|
|
132
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
133
|
+
*/
|
|
134
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").RedelegationResponse[];
|
|
135
|
+
};
|
|
136
|
+
rewardQueryWatcher: {
|
|
137
|
+
/**
|
|
138
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
139
|
+
*/
|
|
140
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.js").DenomAmount[];
|
|
141
|
+
};
|
|
142
|
+
rewardsQueryWatcher: {
|
|
143
|
+
/**
|
|
144
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
145
|
+
* @returns {CosmosRewardsResponse}
|
|
146
|
+
*/
|
|
147
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): CosmosRewardsResponse;
|
|
148
|
+
};
|
|
149
|
+
allBalancesQueryWatcher: {
|
|
150
|
+
/**
|
|
151
|
+
* @param {JsonSafe<ResponseQuery>[]} results
|
|
152
|
+
*/
|
|
153
|
+
onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.js").DenomAmount[];
|
|
154
|
+
};
|
|
155
|
+
decodedUndelegateWatcher: {
|
|
156
|
+
/**
|
|
157
|
+
* @param {readonly MsgUndelegateResponseType[]} responses
|
|
158
|
+
*/
|
|
159
|
+
onFulfilled(responses: readonly MsgUndelegateResponseType[]): Vow<import("@agoric/time").TimestampRecord>;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* takes any arguments and returns void since we are not interested in the
|
|
163
|
+
* result
|
|
164
|
+
*/
|
|
165
|
+
returnVoidWatcher: {
|
|
166
|
+
/**
|
|
167
|
+
* @param {unknown[]} args
|
|
168
|
+
* @returns {void}
|
|
169
|
+
*/
|
|
170
|
+
onFulfilled(...args: unknown[]): void;
|
|
171
|
+
};
|
|
172
|
+
decodedWithdrawRewardWatcher: {
|
|
173
|
+
/** @param {{ amount: Coin[] }} response */
|
|
174
|
+
onFulfilled(response: {
|
|
175
|
+
amount: Coin[];
|
|
176
|
+
}): import("../orchestration-api.js").DenomAmount[];
|
|
177
|
+
};
|
|
178
|
+
/**
|
|
179
|
+
* Decode responses based on the typeUrls of the original requests.
|
|
180
|
+
*/
|
|
181
|
+
decodeResponsesWatcher: {
|
|
182
|
+
/**
|
|
183
|
+
* @template {readonly (keyof TypeFromUrl | unknown)[]} [TUS=(keyof TypeFromUrl)[]]
|
|
184
|
+
* @param {string} resultStr
|
|
185
|
+
* @param {TUS} typeUrls
|
|
186
|
+
* @returns {{
|
|
187
|
+
* [P in keyof TUS]: MessageBody<ResponseTypeUrl<TUS[P]>>;
|
|
188
|
+
* }}
|
|
189
|
+
*/
|
|
190
|
+
onFulfilled<TUS extends readonly (keyof TypeFromUrl | unknown)[] = (keyof TypeFromUrl)[]>(resultStr: string, typeUrls: TUS): { [P in keyof TUS]: MessageBody<ResponseTypeUrl<TUS[P]>>; };
|
|
191
|
+
};
|
|
192
|
+
beginTransferWatcher: {
|
|
193
|
+
/**
|
|
194
|
+
* @param {readonly [
|
|
195
|
+
* { transferChannel: IBCConnectionInfo['transferChannel'] },
|
|
196
|
+
* bigint | undefined,
|
|
197
|
+
* ]} results
|
|
198
|
+
* @param {{
|
|
199
|
+
* destination: CosmosChainAddress;
|
|
200
|
+
* opts?: IBCMsgTransferOptions;
|
|
201
|
+
* token: Coin;
|
|
202
|
+
* }} ctx
|
|
203
|
+
*/
|
|
204
|
+
onFulfilled([{ transferChannel }, timeoutTimestamp]: readonly [{
|
|
205
|
+
transferChannel: IBCConnectionInfo["transferChannel"];
|
|
206
|
+
}, bigint | undefined], { opts, token, destination }: {
|
|
207
|
+
destination: CosmosChainAddress;
|
|
208
|
+
opts?: IBCMsgTransferOptions;
|
|
209
|
+
token: Coin;
|
|
210
|
+
}): Vow<string>;
|
|
211
|
+
};
|
|
212
|
+
fillSequenceWatcher: {
|
|
213
|
+
/**
|
|
214
|
+
* @param {[{ sequence: bigint }]} transferResponse
|
|
215
|
+
* @param {object} opts
|
|
216
|
+
* @param {ProgressTracker} opts.progressTracker
|
|
217
|
+
* @param {SliceDescriptor} opts.trafficSlice
|
|
218
|
+
*/
|
|
219
|
+
onFulfilled([{ sequence }]: [{
|
|
220
|
+
sequence: bigint;
|
|
221
|
+
}], { progressTracker, trafficSlice }: {
|
|
222
|
+
progressTracker: ProgressTracker;
|
|
223
|
+
trafficSlice: SliceDescriptor;
|
|
224
|
+
}): void;
|
|
225
|
+
};
|
|
226
|
+
invitationMakers: {
|
|
227
|
+
/**
|
|
228
|
+
* @param {CosmosValidatorAddress} validator
|
|
229
|
+
* @param {AmountArg} amount
|
|
230
|
+
*/
|
|
231
|
+
Delegate(validator: CosmosValidatorAddress, amount: AmountArg): Promise<import("@agoric/zoe").Invitation<Vow<{}>, undefined>>;
|
|
232
|
+
/**
|
|
233
|
+
* @param {CosmosValidatorAddress} srcValidator
|
|
234
|
+
* @param {CosmosValidatorAddress} dstValidator
|
|
235
|
+
* @param {AmountArg} amount
|
|
236
|
+
*/
|
|
237
|
+
Redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Promise<import("@agoric/zoe").Invitation<Vow<{}>, undefined>>;
|
|
238
|
+
/** @param {CosmosValidatorAddress} validator */
|
|
239
|
+
WithdrawReward(validator: CosmosValidatorAddress): Promise<import("@agoric/zoe").Invitation<Vow<{
|
|
240
|
+
denom: import("../orchestration-api.js").Denom;
|
|
241
|
+
value: bigint;
|
|
242
|
+
}[]>, undefined>>;
|
|
243
|
+
/**
|
|
244
|
+
* @param {{
|
|
245
|
+
* amount: AmountArg;
|
|
246
|
+
* validator: CosmosValidatorAddress;
|
|
247
|
+
* }[]} delegations
|
|
248
|
+
*/
|
|
249
|
+
Undelegate(delegations: {
|
|
250
|
+
amount: AmountArg;
|
|
251
|
+
validator: CosmosValidatorAddress;
|
|
252
|
+
}[]): Promise<import("@agoric/zoe").Invitation<Vow<{}>, undefined>>;
|
|
253
|
+
DeactivateAccount(): Promise<import("@agoric/zoe").Invitation<Vow<void>, undefined>>;
|
|
254
|
+
ReactivateAccount(): Promise<import("@agoric/zoe").Invitation<Vow<void>, undefined>>;
|
|
255
|
+
Send(): Promise<import("@agoric/zoe").Invitation<Vow<void>, {
|
|
256
|
+
toAccount: AccountIdArg;
|
|
257
|
+
amount: AmountArg;
|
|
258
|
+
opts?: CosmosActionOptions;
|
|
259
|
+
}>>;
|
|
260
|
+
SendAll(): Promise<import("@agoric/zoe").Invitation<Vow<void>, {
|
|
261
|
+
toAccount: CosmosChainAddress;
|
|
262
|
+
amounts: AmountArg[];
|
|
263
|
+
opts?: CosmosActionOptions;
|
|
264
|
+
}>>;
|
|
265
|
+
/**
|
|
266
|
+
* Starting a transfer revokes the account holder. The associated
|
|
267
|
+
* updater will get a special notification that the account is being
|
|
268
|
+
* transferred.
|
|
269
|
+
*/
|
|
270
|
+
TransferAccount(): never;
|
|
271
|
+
Transfer(): Promise<import("@agoric/zoe").Invitation<Vow<any>, {
|
|
272
|
+
amount: AmountArg;
|
|
273
|
+
destination: AccountIdArg;
|
|
274
|
+
opts?: IBCMsgTransferOptions;
|
|
275
|
+
}>>;
|
|
276
|
+
};
|
|
277
|
+
holder: {
|
|
278
|
+
makeProgressTracker(): ProgressTracker;
|
|
279
|
+
asContinuingOffer(): Vow<{
|
|
280
|
+
invitationMakers: {
|
|
281
|
+
[x: string]: (...args: any[]) => Vow<import("@endo/pass-style").RemotableObject & {
|
|
282
|
+
getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
|
|
283
|
+
} & {
|
|
284
|
+
readonly "Symbol(tag)": {
|
|
285
|
+
"Set-like value type": import("@agoric/zoe").InvitationDetails;
|
|
286
|
+
};
|
|
287
|
+
}>;
|
|
288
|
+
};
|
|
289
|
+
publicSubscribers: {
|
|
290
|
+
[x: string]: {
|
|
291
|
+
description?: string | undefined;
|
|
292
|
+
subscriber: {
|
|
293
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
|
|
294
|
+
value: any;
|
|
295
|
+
updateCount?: bigint | undefined | undefined;
|
|
296
|
+
}>;
|
|
297
|
+
subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
|
|
298
|
+
head: {
|
|
299
|
+
done: true;
|
|
300
|
+
value: any;
|
|
301
|
+
} | {
|
|
302
|
+
done?: false | undefined;
|
|
303
|
+
value: any;
|
|
304
|
+
};
|
|
305
|
+
publishCount: bigint;
|
|
306
|
+
tail: {
|
|
307
|
+
"Symbol(passStyle)": "tagged";
|
|
308
|
+
[Symbol.toStringTag]: "Vow";
|
|
309
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
310
|
+
};
|
|
311
|
+
}>;
|
|
312
|
+
} | {};
|
|
313
|
+
storagePath: string;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
}>;
|
|
317
|
+
getPublicTopics(): Vow<{
|
|
318
|
+
[x: string]: {
|
|
319
|
+
description?: string | undefined;
|
|
320
|
+
subscriber: {
|
|
321
|
+
getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
|
|
322
|
+
value: {};
|
|
323
|
+
updateCount?: bigint | undefined | undefined;
|
|
324
|
+
}>;
|
|
325
|
+
subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
|
|
326
|
+
head: {
|
|
327
|
+
done: true;
|
|
328
|
+
value: any;
|
|
329
|
+
} | {
|
|
330
|
+
done?: false | undefined;
|
|
331
|
+
value: {};
|
|
332
|
+
};
|
|
333
|
+
publishCount: bigint;
|
|
334
|
+
tail: {
|
|
335
|
+
"Symbol(passStyle)": "tagged";
|
|
336
|
+
[Symbol.toStringTag]: "Vow";
|
|
337
|
+
payload: import("@agoric/vow").VowPayload</*elided*/ any>;
|
|
338
|
+
};
|
|
339
|
+
}>;
|
|
340
|
+
} | {};
|
|
341
|
+
storagePath: string;
|
|
342
|
+
};
|
|
343
|
+
}>;
|
|
344
|
+
getAddress(): {
|
|
345
|
+
chainId: string;
|
|
346
|
+
value: import("../cosmos-api.js").Bech32Address;
|
|
347
|
+
encoding: "bech32";
|
|
348
|
+
};
|
|
349
|
+
delegate(validator: CosmosValidatorAddress, amount: AmountArg, opts?: CosmosActionOptions | undefined): Vow<{}>;
|
|
350
|
+
redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg, opts?: CosmosActionOptions | undefined): Vow<{}>;
|
|
351
|
+
withdrawReward(validator: CosmosValidatorAddress, opts?: CosmosActionOptions | undefined): Vow<{
|
|
352
|
+
denom: import("../orchestration-api.js").Denom;
|
|
353
|
+
value: bigint;
|
|
354
|
+
}[]>;
|
|
355
|
+
getBalance(denom: import("../orchestration-api.js").DenomArg, opts?: import("../orchestration-api.js").QuerierOptions | undefined): Vow<{
|
|
356
|
+
denom: import("../orchestration-api.js").Denom;
|
|
357
|
+
value: bigint;
|
|
358
|
+
}>;
|
|
359
|
+
getBalances(opts?: import("../orchestration-api.js").QuerierOptions | undefined): Vow<{
|
|
360
|
+
denom: import("../orchestration-api.js").Denom;
|
|
361
|
+
value: bigint;
|
|
362
|
+
}[]>;
|
|
363
|
+
send(toAccount: AccountIdArg, amount: AmountArg, opts?: import("../orchestration-api.js").ActionOptions | undefined): Vow<{}>;
|
|
364
|
+
sendAll(toAccount: CosmosChainAddress, amounts: AmountArg[], opts?: import("../orchestration-api.js").ActionOptions | undefined): Vow<{}>;
|
|
365
|
+
transfer(destination: AccountIdArg, amount: AmountArg, opts?: IBCMsgTransferOptions | undefined): Vow<{}>;
|
|
366
|
+
transferSteps(amount: AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<{}>;
|
|
367
|
+
withdrawRewards(opts?: CosmosActionOptions | undefined): Vow<{
|
|
368
|
+
denom: import("../orchestration-api.js").Denom;
|
|
369
|
+
value: bigint;
|
|
370
|
+
}[]>;
|
|
371
|
+
undelegate(delegations: {
|
|
372
|
+
amount: AmountArg;
|
|
373
|
+
delegator?: CosmosChainAddress;
|
|
374
|
+
validator: CosmosValidatorAddress;
|
|
375
|
+
}[], opts?: CosmosActionOptions | undefined): Vow<{}>;
|
|
376
|
+
deactivate(): Vow<void>;
|
|
377
|
+
reactivate(): Vow<void>;
|
|
378
|
+
getDelegation(validator: CosmosValidatorAddress, opts?: import("../cosmos-api.js").CosmosQuerierOptions | undefined): Vow<{
|
|
379
|
+
delegator: {
|
|
380
|
+
chainId: string;
|
|
381
|
+
value: import("../cosmos-api.js").Bech32Address;
|
|
382
|
+
encoding: "bech32";
|
|
383
|
+
};
|
|
384
|
+
validator: {
|
|
385
|
+
chainId: string;
|
|
386
|
+
value: {
|
|
387
|
+
readonly [x: number]: string;
|
|
388
|
+
toString: () => string;
|
|
389
|
+
charAt: (pos: number) => string;
|
|
390
|
+
charCodeAt: (index: number) => number;
|
|
391
|
+
concat: (...strings: string[]) => string;
|
|
392
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
393
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
394
|
+
localeCompare: {
|
|
395
|
+
(that: string): number;
|
|
396
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
397
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
398
|
+
};
|
|
399
|
+
match: {
|
|
400
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
401
|
+
(matcher: {
|
|
402
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
403
|
+
}): RegExpMatchArray | null;
|
|
404
|
+
};
|
|
405
|
+
replace: {
|
|
406
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
407
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
408
|
+
(searchValue: {
|
|
409
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
410
|
+
}, replaceValue: string): string;
|
|
411
|
+
(searchValue: {
|
|
412
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
413
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
414
|
+
};
|
|
415
|
+
search: {
|
|
416
|
+
(regexp: string | RegExp): number;
|
|
417
|
+
(searcher: {
|
|
418
|
+
[Symbol.search](string: string): number;
|
|
419
|
+
}): number;
|
|
420
|
+
};
|
|
421
|
+
slice: (start?: number, end?: number) => string;
|
|
422
|
+
split: {
|
|
423
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
424
|
+
(splitter: {
|
|
425
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
426
|
+
}, limit?: number): string[];
|
|
427
|
+
};
|
|
428
|
+
substring: (start: number, end?: number) => string;
|
|
429
|
+
toLowerCase: () => string;
|
|
430
|
+
toLocaleLowerCase: {
|
|
431
|
+
(locales?: string | string[]): string;
|
|
432
|
+
(locales?: Intl.LocalesArgument): string;
|
|
433
|
+
};
|
|
434
|
+
toUpperCase: () => string;
|
|
435
|
+
toLocaleUpperCase: {
|
|
436
|
+
(locales?: string | string[]): string;
|
|
437
|
+
(locales?: Intl.LocalesArgument): string;
|
|
438
|
+
};
|
|
439
|
+
trim: () => string;
|
|
440
|
+
readonly length: number;
|
|
441
|
+
substr: (from: number, length?: number) => string;
|
|
442
|
+
valueOf: () => string;
|
|
443
|
+
codePointAt: (pos: number) => number | undefined;
|
|
444
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
445
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
446
|
+
normalize: {
|
|
447
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
448
|
+
(form?: string): string;
|
|
449
|
+
};
|
|
450
|
+
repeat: (count: number) => string;
|
|
451
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
452
|
+
anchor: (name: string) => string;
|
|
453
|
+
big: () => string;
|
|
454
|
+
blink: () => string;
|
|
455
|
+
bold: () => string;
|
|
456
|
+
fixed: () => string;
|
|
457
|
+
fontcolor: (color: string) => string;
|
|
458
|
+
fontsize: {
|
|
459
|
+
(size: number): string;
|
|
460
|
+
(size: string): string;
|
|
461
|
+
};
|
|
462
|
+
italics: () => string;
|
|
463
|
+
link: (url: string) => string;
|
|
464
|
+
small: () => string;
|
|
465
|
+
strike: () => string;
|
|
466
|
+
sub: () => string;
|
|
467
|
+
sup: () => string;
|
|
468
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
469
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
470
|
+
trimEnd: () => string;
|
|
471
|
+
trimStart: () => string;
|
|
472
|
+
trimLeft: () => string;
|
|
473
|
+
trimRight: () => string;
|
|
474
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
475
|
+
replaceAll: {
|
|
476
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
477
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
478
|
+
};
|
|
479
|
+
at: (index: number) => string | undefined;
|
|
480
|
+
isWellFormed: () => boolean;
|
|
481
|
+
toWellFormed: () => string;
|
|
482
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
483
|
+
};
|
|
484
|
+
encoding: "bech32";
|
|
485
|
+
};
|
|
486
|
+
amount: {
|
|
487
|
+
denom: import("../orchestration-api.js").Denom;
|
|
488
|
+
value: bigint;
|
|
489
|
+
};
|
|
490
|
+
}>;
|
|
491
|
+
getDelegations(opts?: import("../cosmos-api.js").CosmosQuerierOptions | undefined): Vow<{
|
|
492
|
+
delegator: {
|
|
493
|
+
chainId: string;
|
|
494
|
+
value: import("../cosmos-api.js").Bech32Address;
|
|
495
|
+
encoding: "bech32";
|
|
496
|
+
};
|
|
497
|
+
validator: {
|
|
498
|
+
chainId: string;
|
|
499
|
+
value: {
|
|
500
|
+
readonly [x: number]: string;
|
|
501
|
+
toString: () => string;
|
|
502
|
+
charAt: (pos: number) => string;
|
|
503
|
+
charCodeAt: (index: number) => number;
|
|
504
|
+
concat: (...strings: string[]) => string;
|
|
505
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
506
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
507
|
+
localeCompare: {
|
|
508
|
+
(that: string): number;
|
|
509
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
510
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
511
|
+
};
|
|
512
|
+
match: {
|
|
513
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
514
|
+
(matcher: {
|
|
515
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
516
|
+
}): RegExpMatchArray | null;
|
|
517
|
+
};
|
|
518
|
+
replace: {
|
|
519
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
520
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
521
|
+
(searchValue: {
|
|
522
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
523
|
+
}, replaceValue: string): string;
|
|
524
|
+
(searchValue: {
|
|
525
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
526
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
527
|
+
};
|
|
528
|
+
search: {
|
|
529
|
+
(regexp: string | RegExp): number;
|
|
530
|
+
(searcher: {
|
|
531
|
+
[Symbol.search](string: string): number;
|
|
532
|
+
}): number;
|
|
533
|
+
};
|
|
534
|
+
slice: (start?: number, end?: number) => string;
|
|
535
|
+
split: {
|
|
536
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
537
|
+
(splitter: {
|
|
538
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
539
|
+
}, limit?: number): string[];
|
|
540
|
+
};
|
|
541
|
+
substring: (start: number, end?: number) => string;
|
|
542
|
+
toLowerCase: () => string;
|
|
543
|
+
toLocaleLowerCase: {
|
|
544
|
+
(locales?: string | string[]): string;
|
|
545
|
+
(locales?: Intl.LocalesArgument): string;
|
|
546
|
+
};
|
|
547
|
+
toUpperCase: () => string;
|
|
548
|
+
toLocaleUpperCase: {
|
|
549
|
+
(locales?: string | string[]): string;
|
|
550
|
+
(locales?: Intl.LocalesArgument): string;
|
|
551
|
+
};
|
|
552
|
+
trim: () => string;
|
|
553
|
+
readonly length: number;
|
|
554
|
+
substr: (from: number, length?: number) => string;
|
|
555
|
+
valueOf: () => string;
|
|
556
|
+
codePointAt: (pos: number) => number | undefined;
|
|
557
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
558
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
559
|
+
normalize: {
|
|
560
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
561
|
+
(form?: string): string;
|
|
562
|
+
};
|
|
563
|
+
repeat: (count: number) => string;
|
|
564
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
565
|
+
anchor: (name: string) => string;
|
|
566
|
+
big: () => string;
|
|
567
|
+
blink: () => string;
|
|
568
|
+
bold: () => string;
|
|
569
|
+
fixed: () => string;
|
|
570
|
+
fontcolor: (color: string) => string;
|
|
571
|
+
fontsize: {
|
|
572
|
+
(size: number): string;
|
|
573
|
+
(size: string): string;
|
|
574
|
+
};
|
|
575
|
+
italics: () => string;
|
|
576
|
+
link: (url: string) => string;
|
|
577
|
+
small: () => string;
|
|
578
|
+
strike: () => string;
|
|
579
|
+
sub: () => string;
|
|
580
|
+
sup: () => string;
|
|
581
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
582
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
583
|
+
trimEnd: () => string;
|
|
584
|
+
trimStart: () => string;
|
|
585
|
+
trimLeft: () => string;
|
|
586
|
+
trimRight: () => string;
|
|
587
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
588
|
+
replaceAll: {
|
|
589
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
590
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
591
|
+
};
|
|
592
|
+
at: (index: number) => string | undefined;
|
|
593
|
+
isWellFormed: () => boolean;
|
|
594
|
+
toWellFormed: () => string;
|
|
595
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
596
|
+
};
|
|
597
|
+
encoding: "bech32";
|
|
598
|
+
};
|
|
599
|
+
amount: {
|
|
600
|
+
denom: import("../orchestration-api.js").Denom;
|
|
601
|
+
value: bigint;
|
|
602
|
+
};
|
|
603
|
+
}[]>;
|
|
604
|
+
getUnbondingDelegation(validator: CosmosValidatorAddress, opts?: import("../cosmos-api.js").CosmosQuerierOptions | undefined): Vow<{
|
|
605
|
+
delegatorAddress: string;
|
|
606
|
+
validatorAddress: string;
|
|
607
|
+
entries: {
|
|
608
|
+
creationHeight: bigint;
|
|
609
|
+
completionTime: {
|
|
610
|
+
seconds: bigint;
|
|
611
|
+
nanos: number;
|
|
612
|
+
};
|
|
613
|
+
initialBalance: string;
|
|
614
|
+
balance: string;
|
|
615
|
+
unbondingId: bigint;
|
|
616
|
+
unbondingOnHoldRefCount: bigint;
|
|
617
|
+
}[];
|
|
618
|
+
}>;
|
|
619
|
+
getUnbondingDelegations(opts?: import("../cosmos-api.js").CosmosQuerierOptions | undefined): Vow<{
|
|
620
|
+
delegatorAddress: string;
|
|
621
|
+
validatorAddress: string;
|
|
622
|
+
entries: {
|
|
623
|
+
creationHeight: bigint;
|
|
624
|
+
completionTime: {
|
|
625
|
+
seconds: bigint;
|
|
626
|
+
nanos: number;
|
|
627
|
+
};
|
|
628
|
+
initialBalance: string;
|
|
629
|
+
balance: string;
|
|
630
|
+
unbondingId: bigint;
|
|
631
|
+
unbondingOnHoldRefCount: bigint;
|
|
632
|
+
}[];
|
|
633
|
+
}[]>;
|
|
634
|
+
getRedelegations(opts?: import("../cosmos-api.js").CosmosQuerierOptions | undefined): Vow<{
|
|
635
|
+
redelegation: {
|
|
636
|
+
delegatorAddress: string;
|
|
637
|
+
validatorSrcAddress: string;
|
|
638
|
+
validatorDstAddress: string;
|
|
639
|
+
entries: {
|
|
640
|
+
creationHeight: bigint;
|
|
641
|
+
completionTime: {
|
|
642
|
+
seconds: bigint;
|
|
643
|
+
nanos: number;
|
|
644
|
+
};
|
|
645
|
+
initialBalance: string;
|
|
646
|
+
sharesDst: string;
|
|
647
|
+
unbondingId: bigint;
|
|
648
|
+
unbondingOnHoldRefCount: bigint;
|
|
649
|
+
}[];
|
|
650
|
+
};
|
|
651
|
+
entries: {
|
|
652
|
+
redelegationEntry: {
|
|
653
|
+
creationHeight: bigint;
|
|
654
|
+
completionTime: {
|
|
655
|
+
seconds: bigint;
|
|
656
|
+
nanos: number;
|
|
657
|
+
};
|
|
658
|
+
initialBalance: string;
|
|
659
|
+
sharesDst: string;
|
|
660
|
+
unbondingId: bigint;
|
|
661
|
+
unbondingOnHoldRefCount: bigint;
|
|
662
|
+
};
|
|
663
|
+
balance: string;
|
|
664
|
+
}[];
|
|
665
|
+
}[]>;
|
|
666
|
+
getReward(validator: CosmosValidatorAddress, opts?: import("../cosmos-api.js").CosmosQuerierOptions | undefined): Vow<{
|
|
667
|
+
denom: import("../orchestration-api.js").Denom;
|
|
668
|
+
value: bigint;
|
|
669
|
+
}[]>;
|
|
670
|
+
getRewards(opts?: import("../cosmos-api.js").CosmosQuerierOptions | undefined): Vow<{
|
|
671
|
+
rewards: {
|
|
672
|
+
validator: {
|
|
673
|
+
chainId: string;
|
|
674
|
+
value: {
|
|
675
|
+
readonly [x: number]: string;
|
|
676
|
+
toString: () => string;
|
|
677
|
+
charAt: (pos: number) => string;
|
|
678
|
+
charCodeAt: (index: number) => number;
|
|
679
|
+
concat: (...strings: string[]) => string;
|
|
680
|
+
indexOf: (searchString: string, position?: number) => number;
|
|
681
|
+
lastIndexOf: (searchString: string, position?: number) => number;
|
|
682
|
+
localeCompare: {
|
|
683
|
+
(that: string): number;
|
|
684
|
+
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
|
685
|
+
(that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
|
|
686
|
+
};
|
|
687
|
+
match: {
|
|
688
|
+
(regexp: string | RegExp): RegExpMatchArray | null;
|
|
689
|
+
(matcher: {
|
|
690
|
+
[Symbol.match](string: string): RegExpMatchArray | null;
|
|
691
|
+
}): RegExpMatchArray | null;
|
|
692
|
+
};
|
|
693
|
+
replace: {
|
|
694
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
695
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
696
|
+
(searchValue: {
|
|
697
|
+
[Symbol.replace](string: string, replaceValue: string): string;
|
|
698
|
+
}, replaceValue: string): string;
|
|
699
|
+
(searchValue: {
|
|
700
|
+
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
|
701
|
+
}, replacer: (substring: string, ...args: any[]) => string): string;
|
|
702
|
+
};
|
|
703
|
+
search: {
|
|
704
|
+
(regexp: string | RegExp): number;
|
|
705
|
+
(searcher: {
|
|
706
|
+
[Symbol.search](string: string): number;
|
|
707
|
+
}): number;
|
|
708
|
+
};
|
|
709
|
+
slice: (start?: number, end?: number) => string;
|
|
710
|
+
split: {
|
|
711
|
+
(separator: string | RegExp, limit?: number): string[];
|
|
712
|
+
(splitter: {
|
|
713
|
+
[Symbol.split](string: string, limit?: number): string[];
|
|
714
|
+
}, limit?: number): string[];
|
|
715
|
+
};
|
|
716
|
+
substring: (start: number, end?: number) => string;
|
|
717
|
+
toLowerCase: () => string;
|
|
718
|
+
toLocaleLowerCase: {
|
|
719
|
+
(locales?: string | string[]): string;
|
|
720
|
+
(locales?: Intl.LocalesArgument): string;
|
|
721
|
+
};
|
|
722
|
+
toUpperCase: () => string;
|
|
723
|
+
toLocaleUpperCase: {
|
|
724
|
+
(locales?: string | string[]): string;
|
|
725
|
+
(locales?: Intl.LocalesArgument): string;
|
|
726
|
+
};
|
|
727
|
+
trim: () => string;
|
|
728
|
+
readonly length: number;
|
|
729
|
+
substr: (from: number, length?: number) => string;
|
|
730
|
+
valueOf: () => string;
|
|
731
|
+
codePointAt: (pos: number) => number | undefined;
|
|
732
|
+
includes: (searchString: string, position?: number) => boolean;
|
|
733
|
+
endsWith: (searchString: string, endPosition?: number) => boolean;
|
|
734
|
+
normalize: {
|
|
735
|
+
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
|
736
|
+
(form?: string): string;
|
|
737
|
+
};
|
|
738
|
+
repeat: (count: number) => string;
|
|
739
|
+
startsWith: (searchString: string, position?: number) => boolean;
|
|
740
|
+
anchor: (name: string) => string;
|
|
741
|
+
big: () => string;
|
|
742
|
+
blink: () => string;
|
|
743
|
+
bold: () => string;
|
|
744
|
+
fixed: () => string;
|
|
745
|
+
fontcolor: (color: string) => string;
|
|
746
|
+
fontsize: {
|
|
747
|
+
(size: number): string;
|
|
748
|
+
(size: string): string;
|
|
749
|
+
};
|
|
750
|
+
italics: () => string;
|
|
751
|
+
link: (url: string) => string;
|
|
752
|
+
small: () => string;
|
|
753
|
+
strike: () => string;
|
|
754
|
+
sub: () => string;
|
|
755
|
+
sup: () => string;
|
|
756
|
+
padStart: (maxLength: number, fillString?: string) => string;
|
|
757
|
+
padEnd: (maxLength: number, fillString?: string) => string;
|
|
758
|
+
trimEnd: () => string;
|
|
759
|
+
trimStart: () => string;
|
|
760
|
+
trimLeft: () => string;
|
|
761
|
+
trimRight: () => string;
|
|
762
|
+
matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
|
|
763
|
+
replaceAll: {
|
|
764
|
+
(searchValue: string | RegExp, replaceValue: string): string;
|
|
765
|
+
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
|
766
|
+
};
|
|
767
|
+
at: (index: number) => string | undefined;
|
|
768
|
+
isWellFormed: () => boolean;
|
|
769
|
+
toWellFormed: () => string;
|
|
770
|
+
[Symbol.iterator]: () => StringIterator<string>;
|
|
771
|
+
};
|
|
772
|
+
encoding: "bech32";
|
|
773
|
+
};
|
|
774
|
+
reward: {
|
|
775
|
+
denom: import("../orchestration-api.js").Denom;
|
|
776
|
+
value: bigint;
|
|
777
|
+
}[];
|
|
778
|
+
}[];
|
|
779
|
+
total: {
|
|
780
|
+
denom: import("../orchestration-api.js").Denom;
|
|
781
|
+
value: bigint;
|
|
782
|
+
}[];
|
|
783
|
+
}>;
|
|
784
|
+
executeEncodedTx(msgs: readonly {
|
|
785
|
+
$typeUrl?: "/google.protobuf.Any" | string | undefined;
|
|
786
|
+
typeUrl: string;
|
|
787
|
+
value: string;
|
|
788
|
+
}[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & Omit<CosmosActionOptions, "txOpts">) | undefined): Vow<string>;
|
|
789
|
+
executeTxProto3Undecoded(msgs: readonly {
|
|
790
|
+
$typeUrl?: "/google.protobuf.Any" | string | undefined;
|
|
791
|
+
typeUrl: string;
|
|
792
|
+
value: string;
|
|
793
|
+
}[], opts?: CosmosActionOptions | undefined): Vow<string>;
|
|
794
|
+
/**
|
|
795
|
+
* @template {readonly (keyof TypeFromUrl | unknown)[]} TUS
|
|
796
|
+
* @param {{
|
|
797
|
+
* readonly [K in keyof TUS]: AnyJson<TUS[K]>;
|
|
798
|
+
* }} msgs
|
|
799
|
+
* @param {CosmosActionOptions} [opts]
|
|
800
|
+
* @returns {Vow<{
|
|
801
|
+
* [K in keyof TUS]: MessageBody<ResponseTypeUrl<TUS[K]>>;
|
|
802
|
+
* }>}
|
|
803
|
+
*/
|
|
804
|
+
executeTxProto3<TUS extends readonly (keyof TypeFromUrl | unknown)[]>(msgs: { readonly [K in keyof TUS]: AnyJson<TUS[K]>; }, opts?: CosmosActionOptions): Vow<{ [K in keyof TUS]: MessageBody<ResponseTypeUrl<TUS[K]>>; }>;
|
|
805
|
+
depositForBurn(mintRecipient: `${string}:${string}:${string}`, amount: AmountArg, caller?: `${string}:${string}:${string}` | undefined, opts?: CosmosActionOptions | undefined): Vow<{}>;
|
|
806
|
+
};
|
|
807
|
+
pickDataWatcher: {
|
|
808
|
+
onFulfilled<V extends {}, K extends keyof V>(value: V, key: K): V[K];
|
|
809
|
+
};
|
|
810
|
+
overrideVowWatcher: {
|
|
811
|
+
onFulfilled<V>(_value: unknown, newValue: V): V;
|
|
812
|
+
};
|
|
813
|
+
transferWatcher: {
|
|
814
|
+
onFulfilled: () => never;
|
|
815
|
+
};
|
|
816
|
+
redelegationQueryWatcher: {
|
|
817
|
+
onFulfilled: () => never;
|
|
818
|
+
};
|
|
819
|
+
/** @deprecated only used by obsolete *WithMeta methods */
|
|
820
|
+
attachTxMetaWatcher: {
|
|
821
|
+
/**
|
|
822
|
+
* TODO(#1994): Subsume with IcaAccount.executeEncodedTxWithMeta().
|
|
823
|
+
*
|
|
824
|
+
* @param {readonly [
|
|
825
|
+
* agoric: ChainInfo<'cosmos'>,
|
|
826
|
+
* la: LocalIbcAddress,
|
|
827
|
+
* counterparty: CaipChainId,
|
|
828
|
+
* ra: RemoteIbcAddress,
|
|
829
|
+
* ]} _param0
|
|
830
|
+
* @param {{ result: Vow<any>; meta: Record<string, any> }} param1
|
|
831
|
+
* @param {string} _protocol
|
|
832
|
+
*/
|
|
833
|
+
onFulfilled(_param0: readonly [agoric: ChainInfo<"cosmos">, la: LocalIbcAddress, counterparty: CaipChainId, ra: RemoteIbcAddress], { result, meta }: {
|
|
834
|
+
result: Vow<any>;
|
|
835
|
+
meta: Record<string, any>;
|
|
836
|
+
}, _protocol: string): {
|
|
837
|
+
result: Vow<any>;
|
|
838
|
+
meta: Record<string, any>;
|
|
839
|
+
};
|
|
840
|
+
};
|
|
841
|
+
/** @deprecated only used by obsolete *WithMeta methods */
|
|
842
|
+
parseTransferWatcher: {
|
|
843
|
+
onFulfilled(): {
|
|
844
|
+
result: Vow<null>;
|
|
845
|
+
meta: {};
|
|
846
|
+
};
|
|
847
|
+
};
|
|
848
|
+
/** @deprecated only used by obsolete *WithMeta methods */
|
|
849
|
+
transferWithMetaWatcher: {
|
|
850
|
+
/**
|
|
851
|
+
* @param {readonly [
|
|
852
|
+
* { transferChannel: IBCConnectionInfo['transferChannel'] },
|
|
853
|
+
* bigint | undefined,
|
|
854
|
+
* ]} results
|
|
855
|
+
* @param {{
|
|
856
|
+
* destination: CosmosChainAddress;
|
|
857
|
+
* opts?: IBCMsgTransferOptions;
|
|
858
|
+
* token: Coin;
|
|
859
|
+
* }} ctx
|
|
860
|
+
*/
|
|
861
|
+
onFulfilled(results: readonly [{
|
|
862
|
+
transferChannel: IBCConnectionInfo["transferChannel"];
|
|
863
|
+
}, bigint | undefined], ctx: {
|
|
864
|
+
destination: CosmosChainAddress;
|
|
865
|
+
opts?: IBCMsgTransferOptions;
|
|
866
|
+
token: Coin;
|
|
867
|
+
}): {
|
|
868
|
+
result: Vow<string>;
|
|
869
|
+
meta: {};
|
|
870
|
+
};
|
|
871
|
+
};
|
|
872
|
+
/** @deprecated only used before executeTxProto3 */
|
|
873
|
+
undelegateWatcher: {
|
|
874
|
+
/**
|
|
875
|
+
* @param {string} txResult
|
|
876
|
+
*/
|
|
877
|
+
onFulfilled(txResult: string): Vow<import("@agoric/time").TimestampRecord>;
|
|
878
|
+
};
|
|
879
|
+
/** @deprecated only used before executeTxProto3 */
|
|
880
|
+
withdrawRewardWatcher: {
|
|
881
|
+
/** @param {string} result */
|
|
882
|
+
onFulfilled(result: string): import("../orchestration-api.js").DenomAmount[];
|
|
883
|
+
};
|
|
884
|
+
}>;
|
|
885
|
+
export function prepareCosmosOrchestrationAccount(zone: Zone, { chainHub, makeProgressTracker, makeRecorderKit, timerService, vowTools, zcf, }: {
|
|
886
|
+
chainHub: ChainHub;
|
|
887
|
+
makeProgressTracker: MakeProgressTracker;
|
|
888
|
+
makeRecorderKit: MakeRecorderKit;
|
|
889
|
+
timerService: Remote<TimerService>;
|
|
890
|
+
vowTools: VowTools;
|
|
891
|
+
zcf: ZCF;
|
|
892
|
+
}): (...args: Parameters<ReturnType<typeof prepareCosmosOrchestrationAccountKit>>) => CosmosOrchestrationAccountKit["holder"];
|
|
893
|
+
export type CosmosOrchestrationAccountNotification = {
|
|
894
|
+
chainAddress: CosmosChainAddress;
|
|
895
|
+
};
|
|
896
|
+
/**
|
|
897
|
+
* Internal to the IcaAccountHolder exo
|
|
898
|
+
*/
|
|
899
|
+
export type State = {
|
|
900
|
+
account: IcaAccount;
|
|
901
|
+
chainAddress: CosmosChainAddress;
|
|
902
|
+
icqConnection: ICQConnection | undefined;
|
|
903
|
+
localAddress: LocalIbcAddress;
|
|
904
|
+
remoteAddress: RemoteIbcAddress;
|
|
905
|
+
timer: Remote<TimerService>;
|
|
906
|
+
topicKit: RecorderKit<CosmosOrchestrationAccountNotification> | undefined;
|
|
907
|
+
};
|
|
908
|
+
export type CosmosOrchestrationAccountStorageState = {
|
|
909
|
+
localAddress: LocalIbcAddress;
|
|
910
|
+
remoteAddress: RemoteIbcAddress;
|
|
911
|
+
};
|
|
912
|
+
export type CosmosOrchestrationAccountKit = ReturnType<ReturnType<typeof prepareCosmosOrchestrationAccountKit>>;
|
|
913
|
+
export type CosmosOrchestrationAccount = CosmosOrchestrationAccountKit["holder"];
|
|
914
|
+
import type { Zone } from '@agoric/zone';
|
|
915
|
+
import type { ChainHub } from '../types.js';
|
|
916
|
+
import type { MakeProgressTracker } from '../types.js';
|
|
917
|
+
import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
918
|
+
import type { TimerService } from '@agoric/time';
|
|
919
|
+
import type { Remote } from '@agoric/internal';
|
|
920
|
+
import type { VowTools } from '@agoric/vow';
|
|
921
|
+
import type { ZCF } from '@agoric/zoe';
|
|
922
|
+
import type { CosmosChainAddress } from '../types.js';
|
|
923
|
+
import type { LocalIbcAddress } from '@agoric/network/ibc';
|
|
924
|
+
import type { RemoteIbcAddress } from '@agoric/network/ibc';
|
|
925
|
+
import type { IcaAccount } from '../types.js';
|
|
926
|
+
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
927
|
+
import type { JsonSafe } from '@agoric/cosmic-proto';
|
|
928
|
+
import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
929
|
+
import type { Vow } from '@agoric/vow';
|
|
930
|
+
import type { AmountArg } from '../types.js';
|
|
931
|
+
import type { Coin } from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
|
|
932
|
+
import type { ChainInfo } from '../types.js';
|
|
933
|
+
import type { ProgressTracker } from '../types.js';
|
|
934
|
+
import type { SliceDescriptor } from '../utils/orchestrationAccount.js';
|
|
935
|
+
import type { CosmosDelegationResponse } from '../types.js';
|
|
936
|
+
import type { CosmosRewardsResponse } from '../types.js';
|
|
937
|
+
import type { MsgUndelegateResponseType } from '../utils/codecs.js';
|
|
938
|
+
import type { TypeFromUrl } from '@agoric/cosmic-proto';
|
|
939
|
+
import type { ResponseTypeUrl } from '@agoric/cosmic-proto';
|
|
940
|
+
import type { MessageBody } from '@agoric/cosmic-proto';
|
|
941
|
+
import type { IBCConnectionInfo } from '@agoric/network/ibc';
|
|
942
|
+
import type { IBCMsgTransferOptions } from '../types.js';
|
|
943
|
+
import type { CosmosValidatorAddress } from '../types.js';
|
|
944
|
+
import type { AccountIdArg } from '../types.js';
|
|
945
|
+
import type { CosmosActionOptions } from '../types.js';
|
|
946
|
+
import type { AnyJson } from '@agoric/cosmic-proto';
|
|
947
|
+
import type { CaipChainId } from '../types.js';
|
|
948
|
+
import type { ICQConnection } from '../types.js';
|
|
949
|
+
import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
|
|
950
|
+
//# sourceMappingURL=cosmos-orchestration-account.d.ts.map
|