@agoric/orchestration 0.1.1-dev-dc89345.0.dc89345 → 0.1.1-dev-8b1e285.0.8b1e285
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +16 -16
- package/src/cosmos-api.d.ts +100 -45
- package/src/cosmos-api.d.ts.map +1 -1
- package/src/cosmos-api.ts +137 -41
- package/src/examples/auto-stake-it-tap-kit.d.ts +2 -2
- package/src/examples/stake-bld.contract.d.ts +8 -28
- package/src/examples/stake-bld.contract.d.ts.map +1 -1
- package/src/examples/stake-ica.contract.d.ts +27 -39
- package/src/examples/stake-ica.contract.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.d.ts +167 -123
- package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
- package/src/exos/cosmos-orchestration-account.js +478 -474
- package/src/exos/ibc-packet.d.ts +4 -16
- package/src/exos/ibc-packet.d.ts.map +1 -1
- package/src/exos/ibc-packet.js +1 -17
- package/src/exos/ica-account-kit.d.ts +3 -8
- package/src/exos/ica-account-kit.d.ts.map +1 -1
- package/src/exos/ica-account-kit.js +10 -7
- package/src/exos/local-chain-facade.d.ts +1464 -4
- package/src/exos/local-chain-facade.d.ts.map +1 -1
- package/src/exos/local-chain-facade.js +3 -2
- package/src/exos/local-orchestration-account.d.ts +52 -63
- package/src/exos/local-orchestration-account.d.ts.map +1 -1
- package/src/exos/local-orchestration-account.js +74 -95
- package/src/exos/orchestrator.d.ts +1578 -3040
- package/src/exos/orchestrator.d.ts.map +1 -1
- package/src/exos/orchestrator.js +7 -10
- package/src/exos/packet-tools.d.ts +3 -9
- package/src/exos/packet-tools.d.ts.map +1 -1
- package/src/exos/packet-tools.js +85 -59
- package/src/exos/portfolio-holder-kit.d.ts +6 -16
- package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
- package/src/exos/remote-chain-facade.d.ts +104 -196
- package/src/exos/remote-chain-facade.d.ts.map +1 -1
- package/src/orchestration-api.d.ts +32 -27
- package/src/orchestration-api.d.ts.map +1 -1
- package/src/orchestration-api.ts +44 -29
- package/src/typeGuards.d.ts +36 -5
- package/src/typeGuards.d.ts.map +1 -1
- package/src/typeGuards.js +86 -22
- package/src/utils/codecs.d.ts +108 -0
- package/src/utils/codecs.d.ts.map +1 -0
- package/src/utils/codecs.js +205 -0
- package/src/utils/cosmos.d.ts +2 -2
- package/src/utils/cosmos.d.ts.map +1 -1
- package/src/utils/cosmos.js +9 -2
- package/src/utils/exo-helpers.d.ts +156 -0
- package/src/utils/exo-helpers.d.ts.map +1 -0
- package/src/utils/exo-helpers.js +241 -0
- package/src/utils/orchestrationAccount.d.ts +0 -16
- package/src/utils/orchestrationAccount.d.ts.map +1 -1
- package/src/utils/orchestrationAccount.js +6 -26
- package/src/utils/start-helper.d.ts +1 -1
- package/src/utils/zcf-tools.d.ts +11 -1
- package/src/utils/zcf-tools.d.ts.map +1 -1
- package/src/utils/zcf-tools.js +18 -3
- package/tools/contract-tests.d.ts +4 -4
- package/tools/contract-tests.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agoric/orchestration",
|
|
3
|
-
"version": "0.1.1-dev-
|
|
3
|
+
"version": "0.1.1-dev-8b1e285.0.8b1e285",
|
|
4
4
|
"description": "Chain abstraction for Agoric's orchestration clients",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@agoric/async-flow": "0.1.1-dev-
|
|
39
|
-
"@agoric/cosmic-proto": "0.4.1-dev-
|
|
40
|
-
"@agoric/ertp": "0.16.3-dev-
|
|
41
|
-
"@agoric/internal": "0.3.3-dev-
|
|
42
|
-
"@agoric/network": "0.1.1-dev-
|
|
43
|
-
"@agoric/notifier": "0.6.3-dev-
|
|
44
|
-
"@agoric/store": "0.9.3-dev-
|
|
45
|
-
"@agoric/time": "0.3.3-dev-
|
|
46
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
47
|
-
"@agoric/vats": "0.15.2-dev-
|
|
48
|
-
"@agoric/vow": "0.1.1-dev-
|
|
49
|
-
"@agoric/zoe": "0.26.3-dev-
|
|
50
|
-
"@agoric/zone": "0.2.3-dev-
|
|
38
|
+
"@agoric/async-flow": "0.1.1-dev-8b1e285.0.8b1e285",
|
|
39
|
+
"@agoric/cosmic-proto": "0.4.1-dev-8b1e285.0.8b1e285",
|
|
40
|
+
"@agoric/ertp": "0.16.3-dev-8b1e285.0.8b1e285",
|
|
41
|
+
"@agoric/internal": "0.3.3-dev-8b1e285.0.8b1e285",
|
|
42
|
+
"@agoric/network": "0.1.1-dev-8b1e285.0.8b1e285",
|
|
43
|
+
"@agoric/notifier": "0.6.3-dev-8b1e285.0.8b1e285",
|
|
44
|
+
"@agoric/store": "0.9.3-dev-8b1e285.0.8b1e285",
|
|
45
|
+
"@agoric/time": "0.3.3-dev-8b1e285.0.8b1e285",
|
|
46
|
+
"@agoric/vat-data": "0.5.3-dev-8b1e285.0.8b1e285",
|
|
47
|
+
"@agoric/vats": "0.15.2-dev-8b1e285.0.8b1e285",
|
|
48
|
+
"@agoric/vow": "0.1.1-dev-8b1e285.0.8b1e285",
|
|
49
|
+
"@agoric/zoe": "0.26.3-dev-8b1e285.0.8b1e285",
|
|
50
|
+
"@agoric/zone": "0.2.3-dev-8b1e285.0.8b1e285",
|
|
51
51
|
"@cosmjs/encoding": "^0.36.0",
|
|
52
52
|
"@endo/base64": "^1.0.12",
|
|
53
53
|
"@endo/errors": "^1.2.13",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"bs58": "^6.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
62
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-8b1e285.0.8b1e285",
|
|
63
63
|
"@chain-registry/client": "^1.53.194",
|
|
64
64
|
"@cosmjs/amino": "^0.36.0",
|
|
65
65
|
"@cosmjs/proto-signing": "^0.36.0",
|
|
@@ -105,5 +105,5 @@
|
|
|
105
105
|
"typeCoverage": {
|
|
106
106
|
"atLeast": 97.46
|
|
107
107
|
},
|
|
108
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "8b1e285a3a0a593e6aff6754452914bc56491e89"
|
|
109
109
|
}
|
package/src/cosmos-api.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyJson, JsonSafe, TypedJson } from '@agoric/cosmic-proto';
|
|
1
|
+
import type { AnyJson, JsonSafe, MessageBody, ResponseTypeUrl, TypedJson, TypeFromUrl } from '@agoric/cosmic-proto';
|
|
2
2
|
import type { Coin } from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
|
|
3
3
|
import type { RedelegationResponse, UnbondingDelegation } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
|
|
4
4
|
import type { TxBody } from '@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js';
|
|
@@ -7,17 +7,43 @@ import type { State as IBCChannelState, Order } from '@agoric/cosmic-proto/ibc/c
|
|
|
7
7
|
import type { State as IBCConnectionState } from '@agoric/cosmic-proto/ibc/core/connection/v1/connection.js';
|
|
8
8
|
import type { RequestQuery, ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
|
|
9
9
|
import type { Amount, Payment } from '@agoric/ertp/src/types.js';
|
|
10
|
-
import type { Port
|
|
11
|
-
import type { IBCChannelID, IBCConnectionID, IBCPortID,
|
|
10
|
+
import type { Port } from '@agoric/network';
|
|
11
|
+
import type { IBCChannelID, IBCConnectionID, IBCPortID, NetworkBinding, NetworkEndpoint } from '@agoric/vats';
|
|
12
12
|
import type { TargetApp, TargetRegistration } from '@agoric/vats/src/bridge-target.js';
|
|
13
13
|
import type { LocalIbcAddress, RemoteIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
|
|
14
|
-
import { PFM_RECEIVER } from './exos/chain-hub.js';
|
|
15
|
-
import type { AccountId, AmountArg, BaseChainInfo, CosmosChainAddress, Denom, DenomAmount } from './types.js';
|
|
16
|
-
|
|
14
|
+
import type { PFM_RECEIVER } from './exos/chain-hub.js';
|
|
15
|
+
import type { AccountId, AmountArg, BaseChainInfo, CosmosChainAddress, Denom, DenomAmount, PacketOptions } from './types.js';
|
|
16
|
+
/**
|
|
17
|
+
* Record of Network API traffic for a specific data packet sent between two
|
|
18
|
+
* chains.
|
|
19
|
+
*/
|
|
20
|
+
export type TrafficEntry<
|
|
21
|
+
/** Source Protocol (like 'ibc') */
|
|
22
|
+
SP extends keyof NetworkBinding = keyof NetworkBinding,
|
|
23
|
+
/** Destination Protocol */
|
|
24
|
+
DP extends keyof NetworkBinding = SP> = {
|
|
25
|
+
/** Semantic operation name for debugging, e.g. 'IBC transfer' */
|
|
17
26
|
op: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
/** Indicates whether the traffic entry is not yet finalized. */
|
|
28
|
+
incomplete?: boolean;
|
|
29
|
+
/** Network API endpoint info for source chain */
|
|
30
|
+
src: NetworkEndpoint<SP>;
|
|
31
|
+
/** Network API endpoint info for destination chain */
|
|
32
|
+
dst: NetworkEndpoint<DP>;
|
|
33
|
+
/** Sequence number to match sent packet to received acknowledgement */
|
|
34
|
+
seq: {
|
|
35
|
+
status: 'pending' | 'unknown';
|
|
36
|
+
} | number | bigint | string;
|
|
37
|
+
};
|
|
38
|
+
export type CosmosActionOptions = PacketOptions & {
|
|
39
|
+
txOpts?: Partial<Omit<TxBody, 'messages'>>;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* The type of the `executeEncodedTx` options parameter on the underlying ICA.
|
|
43
|
+
*/
|
|
44
|
+
export type LegacyExecuteEncodedTxOptions = CosmosActionOptions['txOpts'] & Omit<CosmosActionOptions, 'txOpts'>;
|
|
45
|
+
export type CosmosQuerierOptions = PacketOptions & {
|
|
46
|
+
queryOpts?: Partial<Omit<RequestQuery, 'path' | 'data'>>;
|
|
21
47
|
};
|
|
22
48
|
/**
|
|
23
49
|
* @example
|
|
@@ -130,32 +156,32 @@ export interface StakingAccountQueries {
|
|
|
130
156
|
/**
|
|
131
157
|
* @returns all active delegations from the account to any validator (or [] if none)
|
|
132
158
|
*/
|
|
133
|
-
getDelegations: () => Promise<CosmosDelegationResponse[]>;
|
|
159
|
+
getDelegations: (opts?: CosmosQuerierOptions) => Promise<CosmosDelegationResponse[]>;
|
|
134
160
|
/**
|
|
135
161
|
* @returns the active delegation from the account to a specific validator. Return an
|
|
136
162
|
* empty Delegation if there is no delegation.
|
|
137
163
|
*/
|
|
138
|
-
getDelegation: (validator: CosmosValidatorAddress) => Promise<CosmosDelegationResponse>;
|
|
164
|
+
getDelegation: (validator: CosmosValidatorAddress, opts?: CosmosQuerierOptions) => Promise<CosmosDelegationResponse>;
|
|
139
165
|
/**
|
|
140
166
|
* @returns the unbonding delegations from the account to any validator (or [] if none)
|
|
141
167
|
*/
|
|
142
|
-
getUnbondingDelegations: () => Promise<UnbondingDelegation[]>;
|
|
168
|
+
getUnbondingDelegations: (opts?: CosmosQuerierOptions) => Promise<UnbondingDelegation[]>;
|
|
143
169
|
/**
|
|
144
170
|
* @returns the unbonding delegations from the account to a specific validator (or [] if none)
|
|
145
171
|
*/
|
|
146
|
-
getUnbondingDelegation: (validator: CosmosValidatorAddress) => Promise<UnbondingDelegation>;
|
|
147
|
-
getRedelegations: () => Promise<RedelegationResponse[]>;
|
|
172
|
+
getUnbondingDelegation: (validator: CosmosValidatorAddress, opts?: CosmosQuerierOptions) => Promise<UnbondingDelegation>;
|
|
173
|
+
getRedelegations: (opts?: CosmosQuerierOptions) => Promise<RedelegationResponse[]>;
|
|
148
174
|
/**
|
|
149
175
|
* Get the pending rewards for the account.
|
|
150
176
|
* @returns the amounts of the account's rewards pending from all validators
|
|
151
177
|
*/
|
|
152
|
-
getRewards: () => Promise<CosmosRewardsResponse>;
|
|
178
|
+
getRewards: (opts?: CosmosQuerierOptions) => Promise<CosmosRewardsResponse>;
|
|
153
179
|
/**
|
|
154
180
|
* Get the rewards pending with a specific validator.
|
|
155
181
|
* @param validator - the validator address to query for
|
|
156
182
|
* @returns the amount of the account's rewards pending from a specific validator
|
|
157
183
|
*/
|
|
158
|
-
getReward: (validator: CosmosValidatorAddress) => Promise<DenomAmount[]>;
|
|
184
|
+
getReward: (validator: CosmosValidatorAddress, opts?: CosmosQuerierOptions) => Promise<DenomAmount[]>;
|
|
159
185
|
}
|
|
160
186
|
/**
|
|
161
187
|
* Transactions for doing staking operations on an individual account.
|
|
@@ -168,66 +194,57 @@ export interface StakingAccountActions {
|
|
|
168
194
|
* Delegate an amount to a validator. The promise settles when the delegation is complete.
|
|
169
195
|
* @param validator - the validator to delegate to
|
|
170
196
|
* @param amount - the amount to delegate
|
|
171
|
-
* @
|
|
197
|
+
* @param [opts] - transaction submission options
|
|
198
|
+
* @returns unknown
|
|
172
199
|
*/
|
|
173
|
-
delegate: (validator: CosmosValidatorAddress, amount: AmountArg) => Promise<
|
|
200
|
+
delegate: (validator: CosmosValidatorAddress, amount: AmountArg, opts?: CosmosActionOptions) => Promise<unknown>;
|
|
174
201
|
/**
|
|
175
202
|
* Redelegate from one delegator to another.
|
|
176
203
|
* Settles when the redelegation is established, not 21 days later.
|
|
177
204
|
* @param srcValidator - the current validator for the delegation.
|
|
178
205
|
* @param dstValidator - the validator that will receive the delegation.
|
|
179
206
|
* @param amount - how much to redelegate.
|
|
207
|
+
* @param [opts] - transaction submission options
|
|
180
208
|
* @returns
|
|
181
209
|
*/
|
|
182
|
-
redelegate: (srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg) => Promise<
|
|
210
|
+
redelegate: (srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg, opts?: CosmosActionOptions) => Promise<unknown>;
|
|
183
211
|
/**
|
|
184
212
|
* Undelegate multiple delegations (concurrently). To delegate independently, pass an array with one item.
|
|
185
213
|
* Resolves when the undelegation is complete and the tokens are no longer bonded. Note it may take weeks.
|
|
186
214
|
* The unbonding time is padded by 10 minutes to account for clock skew.
|
|
187
215
|
* @param delegations - the delegation to undelegate
|
|
216
|
+
* @param [opts] - transaction submission options
|
|
188
217
|
*/
|
|
189
218
|
undelegate: (delegations: {
|
|
190
219
|
amount: AmountArg;
|
|
191
220
|
delegator?: CosmosChainAddress;
|
|
192
221
|
validator: CosmosValidatorAddress;
|
|
193
|
-
}[]) => Promise<
|
|
222
|
+
}[], opts?: CosmosActionOptions) => Promise<unknown>;
|
|
194
223
|
/**
|
|
195
224
|
* Withdraw rewards from all validators. The promise settles when the rewards are withdrawn.
|
|
225
|
+
* @param [opts] - transaction submission options
|
|
196
226
|
* @returns The total amounts of rewards withdrawn
|
|
197
227
|
*/
|
|
198
|
-
withdrawRewards: () => Promise<DenomAmount[]>;
|
|
228
|
+
withdrawRewards: (opts?: CosmosActionOptions) => Promise<DenomAmount[]>;
|
|
199
229
|
/**
|
|
200
230
|
* Withdraw rewards from a specific validator. The promise settles when the rewards are withdrawn.
|
|
201
231
|
* @param validator - the validator to withdraw rewards from
|
|
232
|
+
* @param [opts] - transaction submission options
|
|
202
233
|
* @returns
|
|
203
234
|
*/
|
|
204
|
-
withdrawReward: (validator: CosmosValidatorAddress) => Promise<DenomAmount[]>;
|
|
235
|
+
withdrawReward: (validator: CosmosValidatorAddress, opts?: CosmosActionOptions) => Promise<DenomAmount[]>;
|
|
205
236
|
}
|
|
206
237
|
/**
|
|
207
238
|
* Low level methods from IcaAccount that we pass through to CosmosOrchestrationAccount
|
|
208
239
|
*/
|
|
209
|
-
export interface
|
|
210
|
-
/**
|
|
211
|
-
* Submit a transaction on behalf of the remote account for execution on the remote chain.
|
|
212
|
-
* @param msgs - records for the transaction
|
|
213
|
-
* @param [opts] - optional parameters for the Tx. use `opts.sendOpts.relativeTimeoutNs` to specify a timeout for the ICA tx packet
|
|
214
|
-
* @returns acknowledgement string
|
|
215
|
-
*/
|
|
216
|
-
executeEncodedTx: (msgs: AnyJson[], opts?: Partial<Omit<TxBody, 'messages'>> & {
|
|
217
|
-
sendOpts?: SendOptions;
|
|
218
|
-
}) => Promise<string>;
|
|
240
|
+
export interface IcaAccountBaseMethods {
|
|
219
241
|
/**
|
|
220
242
|
* Submit a transaction on behalf of the remote account for execution on the remote chain.
|
|
221
243
|
* @param msgs - records for the transaction
|
|
222
244
|
* @param [opts] - optional parameters for the Tx. use `opts.sendOpts.relativeTimeoutNs` to specify a timeout for the ICA tx packet
|
|
223
|
-
* @returns
|
|
245
|
+
* @returns base64 protobuf responses for tryDecodeMessages
|
|
224
246
|
*/
|
|
225
|
-
|
|
226
|
-
sendOpts?: SendOptions;
|
|
227
|
-
}) => Promise<{
|
|
228
|
-
result: Promise<string>;
|
|
229
|
-
meta: Record<string, any>;
|
|
230
|
-
}>;
|
|
247
|
+
executeEncodedTx: (msgs: readonly AnyJson[], opts?: LegacyExecuteEncodedTxOptions) => Promise<string>;
|
|
231
248
|
/**
|
|
232
249
|
* Deactivates the ICA account by closing the ICA channel. The `Port` is
|
|
233
250
|
* persisted so holders can always call `.reactivate()` to re-establish a new
|
|
@@ -240,7 +257,7 @@ export interface IcaAccountMethods {
|
|
|
240
257
|
* Reactivates the ICA account by re-establishing a new channel with the
|
|
241
258
|
* original Port and requested address.
|
|
242
259
|
* If a channel is closed for an unexpected reason, such as a packet timeout,
|
|
243
|
-
* an automatic attempt to
|
|
260
|
+
* an automatic attempt to reopen will be made and the holder should not need
|
|
244
261
|
* to call `.reactivate()`.
|
|
245
262
|
* @throws {Error} if connection is currently active
|
|
246
263
|
*/
|
|
@@ -249,7 +266,7 @@ export interface IcaAccountMethods {
|
|
|
249
266
|
/**
|
|
250
267
|
* Low level object that supports queries and operations for an account on a remote chain.
|
|
251
268
|
*/
|
|
252
|
-
export interface IcaAccount extends
|
|
269
|
+
export interface IcaAccount extends IcaAccountBaseMethods {
|
|
253
270
|
/**
|
|
254
271
|
* @returns the address of the account on the remote chain
|
|
255
272
|
*/
|
|
@@ -257,7 +274,7 @@ export interface IcaAccount extends IcaAccountMethods {
|
|
|
257
274
|
/**
|
|
258
275
|
* Submit a transaction on behalf of the remote account for execution on the remote chain.
|
|
259
276
|
* @param msgs - records for the transaction
|
|
260
|
-
* @returns acknowledgement
|
|
277
|
+
* @returns acknowledgement
|
|
261
278
|
*/
|
|
262
279
|
executeTx: (msgs: TypedJson[]) => Promise<string>;
|
|
263
280
|
/** @returns the address of the remote channel */
|
|
@@ -267,9 +284,47 @@ export interface IcaAccount extends IcaAccountMethods {
|
|
|
267
284
|
/** @returns the port the ICA channel is bound to */
|
|
268
285
|
getPort: () => Port;
|
|
269
286
|
}
|
|
287
|
+
/**
|
|
288
|
+
* ICA-related account methods exposed on the Cosmos Orchestration Account
|
|
289
|
+
* holder facet.
|
|
290
|
+
*/
|
|
291
|
+
export interface IcaAccountMethods extends IcaAccountBaseMethods {
|
|
292
|
+
/**
|
|
293
|
+
* Submit a transaction on behalf of the remote account for execution on
|
|
294
|
+
* the remote chain, and decode the response.
|
|
295
|
+
*
|
|
296
|
+
* Set `relativeTimeoutNs` to provide a timeout for the IBC packet.
|
|
297
|
+
*
|
|
298
|
+
* `TxBody` fields like `timeoutHeight` and `memo` can be set, but these
|
|
299
|
+
* typically do not affect IBC app protocols like PFM, ICA.
|
|
300
|
+
*
|
|
301
|
+
* @param msgs - records for the transaction
|
|
302
|
+
* @param [opts] - optional parameters for the Tx. use `opts.sendOpts.relativeTimeoutNs` to specify a timeout for the ICA tx packet
|
|
303
|
+
* @returns decoded responses or Any if unknown
|
|
304
|
+
*/
|
|
305
|
+
executeTxProto3: <TUS extends readonly (keyof TypeFromUrl | unknown)[]>(msgs: Readonly<{
|
|
306
|
+
[K in keyof TUS]: AnyJson<TUS[K]>;
|
|
307
|
+
}>, opts?: CosmosActionOptions) => Promise<{
|
|
308
|
+
[K in keyof TUS]: MessageBody<ResponseTypeUrl<TUS[K]>>;
|
|
309
|
+
}>;
|
|
310
|
+
/**
|
|
311
|
+
* Submit a transaction on behalf of the remote account for execution on
|
|
312
|
+
* the remote chain, but do not decode the response.
|
|
313
|
+
*
|
|
314
|
+
* Set `relativeTimeoutNs` to provide a timeout for the IBC packet.
|
|
315
|
+
*
|
|
316
|
+
* `TxBody` fields like `timeoutHeight` and `memo` can be set, but these
|
|
317
|
+
* typically do not affect IBC app protocols like PFM, ICA.
|
|
318
|
+
*
|
|
319
|
+
* @param msgs - records for the transaction
|
|
320
|
+
* @param [opts] - optional parameters for the Tx. use `opts.sendOpts.relativeTimeoutNs` to specify a timeout for the ICA tx packet
|
|
321
|
+
* @returns base64 protobuf responses for tryDecodeMessages
|
|
322
|
+
*/
|
|
323
|
+
executeTxProto3Undecoded: (msgs: readonly AnyJson[], opts?: CosmosActionOptions) => Promise<string>;
|
|
324
|
+
}
|
|
270
325
|
/** Methods on chains that support Liquid Staking */
|
|
271
326
|
export interface LiquidStakingMethods {
|
|
272
|
-
liquidStake: (amount: AmountArg) => Promise<
|
|
327
|
+
liquidStake: (amount: AmountArg, opts?: CosmosActionOptions) => Promise<unknown>;
|
|
273
328
|
}
|
|
274
329
|
/**
|
|
275
330
|
* Noble is the gateway to transferring USDC among Cosmos chains. We can
|
|
@@ -279,7 +334,7 @@ export interface NobleMethods {
|
|
|
279
334
|
/** burn USDC on Noble and mint on a destination chain via CCTP */
|
|
280
335
|
depositForBurn: (mintRecipient: AccountId, amount: AmountArg,
|
|
281
336
|
/** if specified, only this account can call MsgReceive on the destination chain */
|
|
282
|
-
caller?: AccountId) => Promise<
|
|
337
|
+
caller?: AccountId, opts?: CosmosActionOptions) => Promise<unknown>;
|
|
283
338
|
}
|
|
284
339
|
/** Methods supported only on Agoric chain accounts */
|
|
285
340
|
export interface LocalAccountMethods extends StakingAccountActions {
|
|
@@ -332,7 +387,7 @@ export type IBCMsgTransferOptions = {
|
|
|
332
387
|
timeout?: ForwardInfo['forward']['timeout'];
|
|
333
388
|
retries?: ForwardInfo['forward']['retries'];
|
|
334
389
|
};
|
|
335
|
-
};
|
|
390
|
+
} & CosmosActionOptions;
|
|
336
391
|
/**
|
|
337
392
|
* Cosmos-specific methods to extend `OrchestrationAccountI`, parameterized
|
|
338
393
|
* by `CosmosChainInfo`.
|
package/src/cosmos-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cosmos-api.d.ts","sourceRoot":"","sources":["cosmos-api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"cosmos-api.d.ts","sourceRoot":"","sources":["cosmos-api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,OAAO,EACP,QAAQ,EACR,WAAW,EACX,eAAe,EACf,SAAS,EACT,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kDAAkD,CAAC;AAC7E,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,wDAAwD,CAAC;AAChE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,8CAA8C,CAAC;AAC3E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAC;AAE3F,OAAO,KAAK,EACV,KAAK,IAAI,eAAe,EACxB,KAAK,EACN,MAAM,qDAAqD,CAAC;AAC7D,OAAO,KAAK,EAAE,KAAK,IAAI,kBAAkB,EAAE,MAAM,2DAA2D,CAAC;AAC7G,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACd,MAAM,+CAA+C,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,SAAS,EACT,cAAc,EACd,eAAe,EAE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