@agoric/orchestration 0.1.1-dev-eef7b69.0.eef7b69 → 0.1.1-dev-6fe0466.0.6fe0466

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.
@@ -1,6 +1,1558 @@
1
1
  export function prepareRemoteChainFacade(zone: Zone, powers: RemoteChainFacadePowers): (remoteChainInfo: ChainInfo, connectionInfo?: IBCConnectionInfo | undefined) => import("@endo/exo").Guarded<{
2
2
  getChainInfo(): Vow<any>;
3
- makeAccount(): Vow<import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & object> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").LocalAccountMethods> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & object & import("../cosmos-api.ts").NobleMethods> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & import("../cosmos-api.ts").StakingAccountActions & import("../cosmos-api.ts").StakingAccountQueries & import("../cosmos-api.ts").NobleMethods> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & object> | import("@agoric/async-flow").HostInterface<import("../orchestration-api.ts").OrchestrationAccountCommon & import("../cosmos-api.ts").IcaAccountMethods & import("../cosmos-api.ts").StakingAccountActions & import("../cosmos-api.ts").StakingAccountQueries>>;
3
+ makeAccount(): Vow<{
4
+ getAddress: () => {
5
+ chainId: string;
6
+ value: import("../cosmos-api.ts").Bech32Address;
7
+ encoding: "bech32";
8
+ };
9
+ getBalances: () => Vow<{
10
+ denom: import("../orchestration-api.ts").Denom;
11
+ value: bigint;
12
+ }[]>;
13
+ getBalance: (denom: import("../orchestration-api.ts").DenomArg) => Vow<{
14
+ denom: import("../orchestration-api.ts").Denom;
15
+ value: bigint;
16
+ }>;
17
+ send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
18
+ sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[]) => Vow<void>;
19
+ transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<any>;
20
+ transferWithMeta: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{
21
+ result: {
22
+ "Symbol(passStyle)": "tagged";
23
+ [Symbol.toStringTag]: "Vow";
24
+ payload: import("@agoric/vow").VowPayload<any>;
25
+ };
26
+ meta: {
27
+ [x: string]: any;
28
+ };
29
+ }>;
30
+ transferSteps: (amount: import("../orchestration-api.ts").AmountArg, msg: import("../orchestration-api.ts").TransferMsg) => Vow<void>;
31
+ asContinuingOffer: () => Vow<{
32
+ invitationMakers: {
33
+ [x: string]: (...args: any[]) => Vow<import("@endo/pass-style").RemotableObject & {
34
+ getAllegedBrand: () => globalThis.Brand<"set">;
35
+ } & {
36
+ readonly "Symbol(tag)": {
37
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
38
+ };
39
+ }>;
40
+ };
41
+ publicSubscribers: {
42
+ [x: string]: {
43
+ description?: string | undefined;
44
+ subscriber: {
45
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
46
+ value: any;
47
+ updateCount?: bigint | undefined | undefined;
48
+ }>;
49
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
50
+ head: {
51
+ done: true;
52
+ value: any;
53
+ } | {
54
+ done?: false | undefined;
55
+ value: any;
56
+ };
57
+ publishCount: bigint;
58
+ tail: {
59
+ "Symbol(passStyle)": "tagged";
60
+ [Symbol.toStringTag]: "Vow";
61
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
62
+ };
63
+ }>;
64
+ } | {};
65
+ storagePath: string;
66
+ };
67
+ };
68
+ }>;
69
+ getPublicTopics: () => Vow<{
70
+ [x: string]: {
71
+ description?: string | undefined;
72
+ subscriber: {
73
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
74
+ value: {};
75
+ updateCount?: bigint | undefined | undefined;
76
+ }>;
77
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
78
+ head: {
79
+ done: true;
80
+ value: any;
81
+ } | {
82
+ done?: false | undefined;
83
+ value: {};
84
+ };
85
+ publishCount: bigint;
86
+ tail: {
87
+ "Symbol(passStyle)": "tagged";
88
+ [Symbol.toStringTag]: "Vow";
89
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
90
+ };
91
+ }>;
92
+ } | {};
93
+ storagePath: string;
94
+ };
95
+ }>;
96
+ } | {
97
+ getAddress: () => {
98
+ chainId: string;
99
+ value: import("../cosmos-api.ts").Bech32Address;
100
+ encoding: "bech32";
101
+ };
102
+ getBalances: () => Vow<{
103
+ denom: import("../orchestration-api.ts").Denom;
104
+ value: bigint;
105
+ }[]>;
106
+ getBalance: (denom: import("../orchestration-api.ts").DenomArg) => Vow<{
107
+ denom: import("../orchestration-api.ts").Denom;
108
+ value: bigint;
109
+ }>;
110
+ send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
111
+ sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[]) => Vow<void>;
112
+ transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<any>;
113
+ transferWithMeta: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{
114
+ result: {
115
+ "Symbol(passStyle)": "tagged";
116
+ [Symbol.toStringTag]: "Vow";
117
+ payload: import("@agoric/vow").VowPayload<any>;
118
+ };
119
+ meta: {
120
+ [x: string]: any;
121
+ };
122
+ }>;
123
+ transferSteps: (amount: import("../orchestration-api.ts").AmountArg, msg: import("../orchestration-api.ts").TransferMsg) => Vow<void>;
124
+ asContinuingOffer: () => Vow<{
125
+ invitationMakers: {
126
+ [x: string]: (...args: any[]) => Vow<import("@endo/pass-style").RemotableObject & {
127
+ getAllegedBrand: () => globalThis.Brand<"set">;
128
+ } & {
129
+ readonly "Symbol(tag)": {
130
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
131
+ };
132
+ }>;
133
+ };
134
+ publicSubscribers: {
135
+ [x: string]: {
136
+ description?: string | undefined;
137
+ subscriber: {
138
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
139
+ value: any;
140
+ updateCount?: bigint | undefined | undefined;
141
+ }>;
142
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
143
+ head: {
144
+ done: true;
145
+ value: any;
146
+ } | {
147
+ done?: false | undefined;
148
+ value: any;
149
+ };
150
+ publishCount: bigint;
151
+ tail: {
152
+ "Symbol(passStyle)": "tagged";
153
+ [Symbol.toStringTag]: "Vow";
154
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
155
+ };
156
+ }>;
157
+ } | {};
158
+ storagePath: string;
159
+ };
160
+ };
161
+ }>;
162
+ getPublicTopics: () => Vow<{
163
+ [x: string]: {
164
+ description?: string | undefined;
165
+ subscriber: {
166
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
167
+ value: {};
168
+ updateCount?: bigint | undefined | undefined;
169
+ }>;
170
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
171
+ head: {
172
+ done: true;
173
+ value: any;
174
+ } | {
175
+ done?: false | undefined;
176
+ value: {};
177
+ };
178
+ publishCount: bigint;
179
+ tail: {
180
+ "Symbol(passStyle)": "tagged";
181
+ [Symbol.toStringTag]: "Vow";
182
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
183
+ };
184
+ }>;
185
+ } | {};
186
+ storagePath: string;
187
+ };
188
+ }>;
189
+ deposit: (payment: globalThis.Payment<"nat">) => Vow<{
190
+ brand: {
191
+ "Symbol(passStyle)": "remotable";
192
+ [Symbol.toStringTag]: string;
193
+ isMyIssuer: (allegedIssuer: globalThis.ERef<globalThis.Issuer<"nat">>) => Promise<boolean>;
194
+ getAllegedName: () => string;
195
+ getDisplayInfo: () => globalThis.DisplayInfo<"nat">;
196
+ getAmountShape: () => import("@endo/patterns").Pattern;
197
+ };
198
+ value: bigint;
199
+ }>;
200
+ withdraw: (amount: import("@agoric/ertp").NatAmount) => Vow<globalThis.Payment<"nat">>;
201
+ monitorTransfers: (tap: import("@agoric/vats/src/bridge-target.js").TargetApp) => Vow<{
202
+ /**
203
+ * performs unregistration (and sends the
204
+ * corresponding "BRIDGE_TARGET_UNREGISTER" message to the targetHost).
205
+ */
206
+ revoke: () => Vow<void>;
207
+ /**
208
+ * replaces the app associated with the target (but with no corresponding
209
+ * message).
210
+ */
211
+ updateTargetApp: (targetApp: globalThis.ERef<import("@agoric/vats/src/bridge-target.js").TargetApp>) => Vow<void>;
212
+ }>;
213
+ parseInboundTransfer: (packet: Record<string, any>) => Vow<{
214
+ amount: {
215
+ denom: import("../orchestration-api.ts").Denom;
216
+ value: bigint;
217
+ };
218
+ fromAccount: string;
219
+ toAccount: string;
220
+ extra: {
221
+ [x: string]: any;
222
+ };
223
+ }>;
224
+ delegate: (validator: import("../cosmos-api.ts").CosmosValidatorAddress, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
225
+ redelegate: (srcValidator: import("../cosmos-api.ts").CosmosValidatorAddress, dstValidator: import("../cosmos-api.ts").CosmosValidatorAddress, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
226
+ undelegate: (delegations: {
227
+ amount: import("../orchestration-api.ts").AmountArg;
228
+ delegator?: CosmosChainAddress;
229
+ validator: import("../cosmos-api.ts").CosmosValidatorAddress;
230
+ }[]) => Vow<void>;
231
+ withdrawRewards: () => Vow<{
232
+ denom: import("../orchestration-api.ts").Denom;
233
+ value: bigint;
234
+ }[]>;
235
+ withdrawReward: (validator: import("../cosmos-api.ts").CosmosValidatorAddress) => Vow<{
236
+ denom: import("../orchestration-api.ts").Denom;
237
+ value: bigint;
238
+ }[]>;
239
+ } | {
240
+ getAddress: () => {
241
+ chainId: string;
242
+ value: import("../cosmos-api.ts").Bech32Address;
243
+ encoding: "bech32";
244
+ };
245
+ getBalances: () => Vow<{
246
+ denom: import("../orchestration-api.ts").Denom;
247
+ value: bigint;
248
+ }[]>;
249
+ getBalance: (denom: import("../orchestration-api.ts").DenomArg) => Vow<{
250
+ denom: import("../orchestration-api.ts").Denom;
251
+ value: bigint;
252
+ }>;
253
+ send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
254
+ sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[]) => Vow<void>;
255
+ transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<any>;
256
+ transferWithMeta: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{
257
+ result: {
258
+ "Symbol(passStyle)": "tagged";
259
+ [Symbol.toStringTag]: "Vow";
260
+ payload: import("@agoric/vow").VowPayload<any>;
261
+ };
262
+ meta: {
263
+ [x: string]: any;
264
+ };
265
+ }>;
266
+ transferSteps: (amount: import("../orchestration-api.ts").AmountArg, msg: import("../orchestration-api.ts").TransferMsg) => Vow<void>;
267
+ asContinuingOffer: () => Vow<{
268
+ invitationMakers: {
269
+ [x: string]: (...args: any[]) => Vow<import("@endo/pass-style").RemotableObject & {
270
+ getAllegedBrand: () => globalThis.Brand<"set">;
271
+ } & {
272
+ readonly "Symbol(tag)": {
273
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
274
+ };
275
+ }>;
276
+ };
277
+ publicSubscribers: {
278
+ [x: string]: {
279
+ description?: string | undefined;
280
+ subscriber: {
281
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
282
+ value: any;
283
+ updateCount?: bigint | undefined | undefined;
284
+ }>;
285
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
286
+ head: {
287
+ done: true;
288
+ value: any;
289
+ } | {
290
+ done?: false | undefined;
291
+ value: any;
292
+ };
293
+ publishCount: bigint;
294
+ tail: {
295
+ "Symbol(passStyle)": "tagged";
296
+ [Symbol.toStringTag]: "Vow";
297
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
298
+ };
299
+ }>;
300
+ } | {};
301
+ storagePath: string;
302
+ };
303
+ };
304
+ }>;
305
+ getPublicTopics: () => Vow<{
306
+ [x: string]: {
307
+ description?: string | undefined;
308
+ subscriber: {
309
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
310
+ value: {};
311
+ updateCount?: bigint | undefined | undefined;
312
+ }>;
313
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
314
+ head: {
315
+ done: true;
316
+ value: any;
317
+ } | {
318
+ done?: false | undefined;
319
+ value: {};
320
+ };
321
+ publishCount: bigint;
322
+ tail: {
323
+ "Symbol(passStyle)": "tagged";
324
+ [Symbol.toStringTag]: "Vow";
325
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
326
+ };
327
+ }>;
328
+ } | {};
329
+ storagePath: string;
330
+ };
331
+ }>;
332
+ executeEncodedTx: (msgs: {
333
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
334
+ typeUrl: string;
335
+ value: string;
336
+ }[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & {
337
+ sendOpts?: import("@agoric/network").SendOptions;
338
+ }) | undefined) => Vow<string>;
339
+ executeEncodedTxWithMeta: (msgs: {
340
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
341
+ typeUrl: string;
342
+ value: string;
343
+ }[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & {
344
+ sendOpts?: import("@agoric/network").SendOptions;
345
+ }) | undefined) => Vow<{
346
+ result: {
347
+ "Symbol(passStyle)": "tagged";
348
+ [Symbol.toStringTag]: "Vow";
349
+ payload: import("@agoric/vow").VowPayload<string>;
350
+ };
351
+ meta: {
352
+ [x: string]: any;
353
+ };
354
+ }>;
355
+ deactivate: () => Vow<void>;
356
+ reactivate: () => Vow<void>;
357
+ depositForBurn: (mintRecipient: `${string}:${string}:${string}`, amount: import("../orchestration-api.ts").AmountArg, caller?: `${string}:${string}:${string}` | undefined) => Vow<void>;
358
+ } | {
359
+ getAddress: () => {
360
+ chainId: string;
361
+ value: import("../cosmos-api.ts").Bech32Address;
362
+ encoding: "bech32";
363
+ };
364
+ getBalances: () => Vow<{
365
+ denom: import("../orchestration-api.ts").Denom;
366
+ value: bigint;
367
+ }[]>;
368
+ getBalance: (denom: import("../orchestration-api.ts").DenomArg) => Vow<{
369
+ denom: import("../orchestration-api.ts").Denom;
370
+ value: bigint;
371
+ }>;
372
+ send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
373
+ sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[]) => Vow<void>;
374
+ transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<any>;
375
+ transferWithMeta: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{
376
+ result: {
377
+ "Symbol(passStyle)": "tagged";
378
+ [Symbol.toStringTag]: "Vow";
379
+ payload: import("@agoric/vow").VowPayload<any>;
380
+ };
381
+ meta: {
382
+ [x: string]: any;
383
+ };
384
+ }>;
385
+ transferSteps: (amount: import("../orchestration-api.ts").AmountArg, msg: import("../orchestration-api.ts").TransferMsg) => Vow<void>;
386
+ asContinuingOffer: () => Vow<{
387
+ invitationMakers: {
388
+ [x: string]: (...args: any[]) => Vow<import("@endo/pass-style").RemotableObject & {
389
+ getAllegedBrand: () => globalThis.Brand<"set">;
390
+ } & {
391
+ readonly "Symbol(tag)": {
392
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
393
+ };
394
+ }>;
395
+ };
396
+ publicSubscribers: {
397
+ [x: string]: {
398
+ description?: string | undefined;
399
+ subscriber: {
400
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
401
+ value: any;
402
+ updateCount?: bigint | undefined | undefined;
403
+ }>;
404
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
405
+ head: {
406
+ done: true;
407
+ value: any;
408
+ } | {
409
+ done?: false | undefined;
410
+ value: any;
411
+ };
412
+ publishCount: bigint;
413
+ tail: {
414
+ "Symbol(passStyle)": "tagged";
415
+ [Symbol.toStringTag]: "Vow";
416
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
417
+ };
418
+ }>;
419
+ } | {};
420
+ storagePath: string;
421
+ };
422
+ };
423
+ }>;
424
+ getPublicTopics: () => Vow<{
425
+ [x: string]: {
426
+ description?: string | undefined;
427
+ subscriber: {
428
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
429
+ value: {};
430
+ updateCount?: bigint | undefined | undefined;
431
+ }>;
432
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
433
+ head: {
434
+ done: true;
435
+ value: any;
436
+ } | {
437
+ done?: false | undefined;
438
+ value: {};
439
+ };
440
+ publishCount: bigint;
441
+ tail: {
442
+ "Symbol(passStyle)": "tagged";
443
+ [Symbol.toStringTag]: "Vow";
444
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
445
+ };
446
+ }>;
447
+ } | {};
448
+ storagePath: string;
449
+ };
450
+ }>;
451
+ executeEncodedTx: (msgs: {
452
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
453
+ typeUrl: string;
454
+ value: string;
455
+ }[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & {
456
+ sendOpts?: import("@agoric/network").SendOptions;
457
+ }) | undefined) => Vow<string>;
458
+ executeEncodedTxWithMeta: (msgs: {
459
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
460
+ typeUrl: string;
461
+ value: string;
462
+ }[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & {
463
+ sendOpts?: import("@agoric/network").SendOptions;
464
+ }) | undefined) => Vow<{
465
+ result: {
466
+ "Symbol(passStyle)": "tagged";
467
+ [Symbol.toStringTag]: "Vow";
468
+ payload: import("@agoric/vow").VowPayload<string>;
469
+ };
470
+ meta: {
471
+ [x: string]: any;
472
+ };
473
+ }>;
474
+ deactivate: () => Vow<void>;
475
+ reactivate: () => Vow<void>;
476
+ delegate: (validator: import("../cosmos-api.ts").CosmosValidatorAddress, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
477
+ redelegate: (srcValidator: import("../cosmos-api.ts").CosmosValidatorAddress, dstValidator: import("../cosmos-api.ts").CosmosValidatorAddress, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
478
+ undelegate: (delegations: {
479
+ amount: import("../orchestration-api.ts").AmountArg;
480
+ delegator?: CosmosChainAddress;
481
+ validator: import("../cosmos-api.ts").CosmosValidatorAddress;
482
+ }[]) => Vow<void>;
483
+ withdrawRewards: () => Vow<{
484
+ denom: import("../orchestration-api.ts").Denom;
485
+ value: bigint;
486
+ }[]>;
487
+ withdrawReward: (validator: import("../cosmos-api.ts").CosmosValidatorAddress) => Vow<{
488
+ denom: import("../orchestration-api.ts").Denom;
489
+ value: bigint;
490
+ }[]>;
491
+ getDelegations: () => Vow<{
492
+ delegator: {
493
+ chainId: string;
494
+ value: import("../cosmos-api.ts").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.ts").Denom;
601
+ value: bigint;
602
+ };
603
+ }[]>;
604
+ getDelegation: (validator: import("../cosmos-api.ts").CosmosValidatorAddress) => Vow<{
605
+ delegator: {
606
+ chainId: string;
607
+ value: import("../cosmos-api.ts").Bech32Address;
608
+ encoding: "bech32";
609
+ };
610
+ validator: {
611
+ chainId: string;
612
+ value: {
613
+ readonly [x: number]: string;
614
+ toString: () => string;
615
+ charAt: (pos: number) => string;
616
+ charCodeAt: (index: number) => number;
617
+ concat: (...strings: string[]) => string;
618
+ indexOf: (searchString: string, position?: number) => number;
619
+ lastIndexOf: (searchString: string, position?: number) => number;
620
+ localeCompare: {
621
+ (that: string): number;
622
+ (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
623
+ (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
624
+ };
625
+ match: {
626
+ (regexp: string | RegExp): RegExpMatchArray | null;
627
+ (matcher: {
628
+ [Symbol.match](string: string): RegExpMatchArray | null;
629
+ }): RegExpMatchArray | null;
630
+ };
631
+ replace: {
632
+ (searchValue: string | RegExp, replaceValue: string): string;
633
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
634
+ (searchValue: {
635
+ [Symbol.replace](string: string, replaceValue: string): string;
636
+ }, replaceValue: string): string;
637
+ (searchValue: {
638
+ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
639
+ }, replacer: (substring: string, ...args: any[]) => string): string;
640
+ };
641
+ search: {
642
+ (regexp: string | RegExp): number;
643
+ (searcher: {
644
+ [Symbol.search](string: string): number;
645
+ }): number;
646
+ };
647
+ slice: (start?: number, end?: number) => string;
648
+ split: {
649
+ (separator: string | RegExp, limit?: number): string[];
650
+ (splitter: {
651
+ [Symbol.split](string: string, limit?: number): string[];
652
+ }, limit?: number): string[];
653
+ };
654
+ substring: (start: number, end?: number) => string;
655
+ toLowerCase: () => string;
656
+ toLocaleLowerCase: {
657
+ (locales?: string | string[]): string;
658
+ (locales?: Intl.LocalesArgument): string;
659
+ };
660
+ toUpperCase: () => string;
661
+ toLocaleUpperCase: {
662
+ (locales?: string | string[]): string;
663
+ (locales?: Intl.LocalesArgument): string;
664
+ };
665
+ trim: () => string;
666
+ readonly length: number;
667
+ substr: (from: number, length?: number) => string;
668
+ valueOf: () => string;
669
+ codePointAt: (pos: number) => number | undefined;
670
+ includes: (searchString: string, position?: number) => boolean;
671
+ endsWith: (searchString: string, endPosition?: number) => boolean;
672
+ normalize: {
673
+ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
674
+ (form?: string): string;
675
+ };
676
+ repeat: (count: number) => string;
677
+ startsWith: (searchString: string, position?: number) => boolean;
678
+ anchor: (name: string) => string;
679
+ big: () => string;
680
+ blink: () => string;
681
+ bold: () => string;
682
+ fixed: () => string;
683
+ fontcolor: (color: string) => string;
684
+ fontsize: {
685
+ (size: number): string;
686
+ (size: string): string;
687
+ };
688
+ italics: () => string;
689
+ link: (url: string) => string;
690
+ small: () => string;
691
+ strike: () => string;
692
+ sub: () => string;
693
+ sup: () => string;
694
+ padStart: (maxLength: number, fillString?: string) => string;
695
+ padEnd: (maxLength: number, fillString?: string) => string;
696
+ trimEnd: () => string;
697
+ trimStart: () => string;
698
+ trimLeft: () => string;
699
+ trimRight: () => string;
700
+ matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
701
+ replaceAll: {
702
+ (searchValue: string | RegExp, replaceValue: string): string;
703
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
704
+ };
705
+ at: (index: number) => string | undefined;
706
+ isWellFormed: () => boolean;
707
+ toWellFormed: () => string;
708
+ [Symbol.iterator]: () => StringIterator<string>;
709
+ };
710
+ encoding: "bech32";
711
+ };
712
+ amount: {
713
+ denom: import("../orchestration-api.ts").Denom;
714
+ value: bigint;
715
+ };
716
+ }>;
717
+ getUnbondingDelegations: () => Vow<{
718
+ delegatorAddress: string;
719
+ validatorAddress: string;
720
+ entries: {
721
+ creationHeight: bigint;
722
+ completionTime: {
723
+ seconds: bigint;
724
+ nanos: number;
725
+ };
726
+ initialBalance: string;
727
+ balance: string;
728
+ unbondingId: bigint;
729
+ unbondingOnHoldRefCount: bigint;
730
+ }[];
731
+ }[]>;
732
+ getUnbondingDelegation: (validator: import("../cosmos-api.ts").CosmosValidatorAddress) => Vow<{
733
+ delegatorAddress: string;
734
+ validatorAddress: string;
735
+ entries: {
736
+ creationHeight: bigint;
737
+ completionTime: {
738
+ seconds: bigint;
739
+ nanos: number;
740
+ };
741
+ initialBalance: string;
742
+ balance: string;
743
+ unbondingId: bigint;
744
+ unbondingOnHoldRefCount: bigint;
745
+ }[];
746
+ }>;
747
+ getRedelegations: () => Vow<{
748
+ redelegation: {
749
+ delegatorAddress: string;
750
+ validatorSrcAddress: string;
751
+ validatorDstAddress: string;
752
+ entries: {
753
+ creationHeight: bigint;
754
+ completionTime: {
755
+ seconds: bigint;
756
+ nanos: number;
757
+ };
758
+ initialBalance: string;
759
+ sharesDst: string;
760
+ unbondingId: bigint;
761
+ unbondingOnHoldRefCount: bigint;
762
+ }[];
763
+ };
764
+ entries: {
765
+ redelegationEntry: {
766
+ creationHeight: bigint;
767
+ completionTime: {
768
+ seconds: bigint;
769
+ nanos: number;
770
+ };
771
+ initialBalance: string;
772
+ sharesDst: string;
773
+ unbondingId: bigint;
774
+ unbondingOnHoldRefCount: bigint;
775
+ };
776
+ balance: string;
777
+ }[];
778
+ }[]>;
779
+ getRewards: () => Vow<{
780
+ rewards: {
781
+ validator: {
782
+ chainId: string;
783
+ value: {
784
+ readonly [x: number]: string;
785
+ toString: () => string;
786
+ charAt: (pos: number) => string;
787
+ charCodeAt: (index: number) => number;
788
+ concat: (...strings: string[]) => string;
789
+ indexOf: (searchString: string, position?: number) => number;
790
+ lastIndexOf: (searchString: string, position?: number) => number;
791
+ localeCompare: {
792
+ (that: string): number;
793
+ (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
794
+ (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
795
+ };
796
+ match: {
797
+ (regexp: string | RegExp): RegExpMatchArray | null;
798
+ (matcher: {
799
+ [Symbol.match](string: string): RegExpMatchArray | null;
800
+ }): RegExpMatchArray | null;
801
+ };
802
+ replace: {
803
+ (searchValue: string | RegExp, replaceValue: string): string;
804
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
805
+ (searchValue: {
806
+ [Symbol.replace](string: string, replaceValue: string): string;
807
+ }, replaceValue: string): string;
808
+ (searchValue: {
809
+ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
810
+ }, replacer: (substring: string, ...args: any[]) => string): string;
811
+ };
812
+ search: {
813
+ (regexp: string | RegExp): number;
814
+ (searcher: {
815
+ [Symbol.search](string: string): number;
816
+ }): number;
817
+ };
818
+ slice: (start?: number, end?: number) => string;
819
+ split: {
820
+ (separator: string | RegExp, limit?: number): string[];
821
+ (splitter: {
822
+ [Symbol.split](string: string, limit?: number): string[];
823
+ }, limit?: number): string[];
824
+ };
825
+ substring: (start: number, end?: number) => string;
826
+ toLowerCase: () => string;
827
+ toLocaleLowerCase: {
828
+ (locales?: string | string[]): string;
829
+ (locales?: Intl.LocalesArgument): string;
830
+ };
831
+ toUpperCase: () => string;
832
+ toLocaleUpperCase: {
833
+ (locales?: string | string[]): string;
834
+ (locales?: Intl.LocalesArgument): string;
835
+ };
836
+ trim: () => string;
837
+ readonly length: number;
838
+ substr: (from: number, length?: number) => string;
839
+ valueOf: () => string;
840
+ codePointAt: (pos: number) => number | undefined;
841
+ includes: (searchString: string, position?: number) => boolean;
842
+ endsWith: (searchString: string, endPosition?: number) => boolean;
843
+ normalize: {
844
+ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
845
+ (form?: string): string;
846
+ };
847
+ repeat: (count: number) => string;
848
+ startsWith: (searchString: string, position?: number) => boolean;
849
+ anchor: (name: string) => string;
850
+ big: () => string;
851
+ blink: () => string;
852
+ bold: () => string;
853
+ fixed: () => string;
854
+ fontcolor: (color: string) => string;
855
+ fontsize: {
856
+ (size: number): string;
857
+ (size: string): string;
858
+ };
859
+ italics: () => string;
860
+ link: (url: string) => string;
861
+ small: () => string;
862
+ strike: () => string;
863
+ sub: () => string;
864
+ sup: () => string;
865
+ padStart: (maxLength: number, fillString?: string) => string;
866
+ padEnd: (maxLength: number, fillString?: string) => string;
867
+ trimEnd: () => string;
868
+ trimStart: () => string;
869
+ trimLeft: () => string;
870
+ trimRight: () => string;
871
+ matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
872
+ replaceAll: {
873
+ (searchValue: string | RegExp, replaceValue: string): string;
874
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
875
+ };
876
+ at: (index: number) => string | undefined;
877
+ isWellFormed: () => boolean;
878
+ toWellFormed: () => string;
879
+ [Symbol.iterator]: () => StringIterator<string>;
880
+ };
881
+ encoding: "bech32";
882
+ };
883
+ reward: {
884
+ denom: import("../orchestration-api.ts").Denom;
885
+ value: bigint;
886
+ }[];
887
+ }[];
888
+ total: {
889
+ denom: import("../orchestration-api.ts").Denom;
890
+ value: bigint;
891
+ }[];
892
+ }>;
893
+ getReward: (validator: import("../cosmos-api.ts").CosmosValidatorAddress) => Vow<{
894
+ denom: import("../orchestration-api.ts").Denom;
895
+ value: bigint;
896
+ }[]>;
897
+ depositForBurn: (mintRecipient: `${string}:${string}:${string}`, amount: import("../orchestration-api.ts").AmountArg, caller?: `${string}:${string}:${string}` | undefined) => Vow<void>;
898
+ } | {
899
+ getAddress: () => {
900
+ chainId: string;
901
+ value: import("../cosmos-api.ts").Bech32Address;
902
+ encoding: "bech32";
903
+ };
904
+ getBalances: () => Vow<{
905
+ denom: import("../orchestration-api.ts").Denom;
906
+ value: bigint;
907
+ }[]>;
908
+ getBalance: (denom: import("../orchestration-api.ts").DenomArg) => Vow<{
909
+ denom: import("../orchestration-api.ts").Denom;
910
+ value: bigint;
911
+ }>;
912
+ send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
913
+ sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[]) => Vow<void>;
914
+ transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<any>;
915
+ transferWithMeta: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{
916
+ result: {
917
+ "Symbol(passStyle)": "tagged";
918
+ [Symbol.toStringTag]: "Vow";
919
+ payload: import("@agoric/vow").VowPayload<any>;
920
+ };
921
+ meta: {
922
+ [x: string]: any;
923
+ };
924
+ }>;
925
+ transferSteps: (amount: import("../orchestration-api.ts").AmountArg, msg: import("../orchestration-api.ts").TransferMsg) => Vow<void>;
926
+ asContinuingOffer: () => Vow<{
927
+ invitationMakers: {
928
+ [x: string]: (...args: any[]) => Vow<import("@endo/pass-style").RemotableObject & {
929
+ getAllegedBrand: () => globalThis.Brand<"set">;
930
+ } & {
931
+ readonly "Symbol(tag)": {
932
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
933
+ };
934
+ }>;
935
+ };
936
+ publicSubscribers: {
937
+ [x: string]: {
938
+ description?: string | undefined;
939
+ subscriber: {
940
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
941
+ value: any;
942
+ updateCount?: bigint | undefined | undefined;
943
+ }>;
944
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
945
+ head: {
946
+ done: true;
947
+ value: any;
948
+ } | {
949
+ done?: false | undefined;
950
+ value: any;
951
+ };
952
+ publishCount: bigint;
953
+ tail: {
954
+ "Symbol(passStyle)": "tagged";
955
+ [Symbol.toStringTag]: "Vow";
956
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
957
+ };
958
+ }>;
959
+ } | {};
960
+ storagePath: string;
961
+ };
962
+ };
963
+ }>;
964
+ getPublicTopics: () => Vow<{
965
+ [x: string]: {
966
+ description?: string | undefined;
967
+ subscriber: {
968
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
969
+ value: {};
970
+ updateCount?: bigint | undefined | undefined;
971
+ }>;
972
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
973
+ head: {
974
+ done: true;
975
+ value: any;
976
+ } | {
977
+ done?: false | undefined;
978
+ value: {};
979
+ };
980
+ publishCount: bigint;
981
+ tail: {
982
+ "Symbol(passStyle)": "tagged";
983
+ [Symbol.toStringTag]: "Vow";
984
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
985
+ };
986
+ }>;
987
+ } | {};
988
+ storagePath: string;
989
+ };
990
+ }>;
991
+ executeEncodedTx: (msgs: {
992
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
993
+ typeUrl: string;
994
+ value: string;
995
+ }[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & {
996
+ sendOpts?: import("@agoric/network").SendOptions;
997
+ }) | undefined) => Vow<string>;
998
+ executeEncodedTxWithMeta: (msgs: {
999
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
1000
+ typeUrl: string;
1001
+ value: string;
1002
+ }[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & {
1003
+ sendOpts?: import("@agoric/network").SendOptions;
1004
+ }) | undefined) => Vow<{
1005
+ result: {
1006
+ "Symbol(passStyle)": "tagged";
1007
+ [Symbol.toStringTag]: "Vow";
1008
+ payload: import("@agoric/vow").VowPayload<string>;
1009
+ };
1010
+ meta: {
1011
+ [x: string]: any;
1012
+ };
1013
+ }>;
1014
+ deactivate: () => Vow<void>;
1015
+ reactivate: () => Vow<void>;
1016
+ } | {
1017
+ getAddress: () => {
1018
+ chainId: string;
1019
+ value: import("../cosmos-api.ts").Bech32Address;
1020
+ encoding: "bech32";
1021
+ };
1022
+ getBalances: () => Vow<{
1023
+ denom: import("../orchestration-api.ts").Denom;
1024
+ value: bigint;
1025
+ }[]>;
1026
+ getBalance: (denom: import("../orchestration-api.ts").DenomArg) => Vow<{
1027
+ denom: import("../orchestration-api.ts").Denom;
1028
+ value: bigint;
1029
+ }>;
1030
+ send: (toAccount: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
1031
+ sendAll: (toAccount: CosmosChainAddress, amounts: import("../orchestration-api.ts").AmountArg[]) => Vow<void>;
1032
+ transfer: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<any>;
1033
+ transferWithMeta: (destination: import("../orchestration-api.ts").AccountIdArg, amount: import("../orchestration-api.ts").AmountArg, opts?: import("../cosmos-api.ts").IBCMsgTransferOptions | undefined) => Vow<{
1034
+ result: {
1035
+ "Symbol(passStyle)": "tagged";
1036
+ [Symbol.toStringTag]: "Vow";
1037
+ payload: import("@agoric/vow").VowPayload<any>;
1038
+ };
1039
+ meta: {
1040
+ [x: string]: any;
1041
+ };
1042
+ }>;
1043
+ transferSteps: (amount: import("../orchestration-api.ts").AmountArg, msg: import("../orchestration-api.ts").TransferMsg) => Vow<void>;
1044
+ asContinuingOffer: () => Vow<{
1045
+ invitationMakers: {
1046
+ [x: string]: (...args: any[]) => Vow<import("@endo/pass-style").RemotableObject & {
1047
+ getAllegedBrand: () => globalThis.Brand<"set">;
1048
+ } & {
1049
+ readonly "Symbol(tag)": {
1050
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
1051
+ };
1052
+ }>;
1053
+ };
1054
+ publicSubscribers: {
1055
+ [x: string]: {
1056
+ description?: string | undefined;
1057
+ subscriber: {
1058
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
1059
+ value: any;
1060
+ updateCount?: bigint | undefined | undefined;
1061
+ }>;
1062
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
1063
+ head: {
1064
+ done: true;
1065
+ value: any;
1066
+ } | {
1067
+ done?: false | undefined;
1068
+ value: any;
1069
+ };
1070
+ publishCount: bigint;
1071
+ tail: {
1072
+ "Symbol(passStyle)": "tagged";
1073
+ [Symbol.toStringTag]: "Vow";
1074
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
1075
+ };
1076
+ }>;
1077
+ } | {};
1078
+ storagePath: string;
1079
+ };
1080
+ };
1081
+ }>;
1082
+ getPublicTopics: () => Vow<{
1083
+ [x: string]: {
1084
+ description?: string | undefined;
1085
+ subscriber: {
1086
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
1087
+ value: {};
1088
+ updateCount?: bigint | undefined | undefined;
1089
+ }>;
1090
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
1091
+ head: {
1092
+ done: true;
1093
+ value: any;
1094
+ } | {
1095
+ done?: false | undefined;
1096
+ value: {};
1097
+ };
1098
+ publishCount: bigint;
1099
+ tail: {
1100
+ "Symbol(passStyle)": "tagged";
1101
+ [Symbol.toStringTag]: "Vow";
1102
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
1103
+ };
1104
+ }>;
1105
+ } | {};
1106
+ storagePath: string;
1107
+ };
1108
+ }>;
1109
+ executeEncodedTx: (msgs: {
1110
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
1111
+ typeUrl: string;
1112
+ value: string;
1113
+ }[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & {
1114
+ sendOpts?: import("@agoric/network").SendOptions;
1115
+ }) | undefined) => Vow<string>;
1116
+ executeEncodedTxWithMeta: (msgs: {
1117
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
1118
+ typeUrl: string;
1119
+ value: string;
1120
+ }[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & {
1121
+ sendOpts?: import("@agoric/network").SendOptions;
1122
+ }) | undefined) => Vow<{
1123
+ result: {
1124
+ "Symbol(passStyle)": "tagged";
1125
+ [Symbol.toStringTag]: "Vow";
1126
+ payload: import("@agoric/vow").VowPayload<string>;
1127
+ };
1128
+ meta: {
1129
+ [x: string]: any;
1130
+ };
1131
+ }>;
1132
+ deactivate: () => Vow<void>;
1133
+ reactivate: () => Vow<void>;
1134
+ delegate: (validator: import("../cosmos-api.ts").CosmosValidatorAddress, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
1135
+ redelegate: (srcValidator: import("../cosmos-api.ts").CosmosValidatorAddress, dstValidator: import("../cosmos-api.ts").CosmosValidatorAddress, amount: import("../orchestration-api.ts").AmountArg) => Vow<void>;
1136
+ undelegate: (delegations: {
1137
+ amount: import("../orchestration-api.ts").AmountArg;
1138
+ delegator?: CosmosChainAddress;
1139
+ validator: import("../cosmos-api.ts").CosmosValidatorAddress;
1140
+ }[]) => Vow<void>;
1141
+ withdrawRewards: () => Vow<{
1142
+ denom: import("../orchestration-api.ts").Denom;
1143
+ value: bigint;
1144
+ }[]>;
1145
+ withdrawReward: (validator: import("../cosmos-api.ts").CosmosValidatorAddress) => Vow<{
1146
+ denom: import("../orchestration-api.ts").Denom;
1147
+ value: bigint;
1148
+ }[]>;
1149
+ getDelegations: () => Vow<{
1150
+ delegator: {
1151
+ chainId: string;
1152
+ value: import("../cosmos-api.ts").Bech32Address;
1153
+ encoding: "bech32";
1154
+ };
1155
+ validator: {
1156
+ chainId: string;
1157
+ value: {
1158
+ readonly [x: number]: string;
1159
+ toString: () => string;
1160
+ charAt: (pos: number) => string;
1161
+ charCodeAt: (index: number) => number;
1162
+ concat: (...strings: string[]) => string;
1163
+ indexOf: (searchString: string, position?: number) => number;
1164
+ lastIndexOf: (searchString: string, position?: number) => number;
1165
+ localeCompare: {
1166
+ (that: string): number;
1167
+ (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
1168
+ (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
1169
+ };
1170
+ match: {
1171
+ (regexp: string | RegExp): RegExpMatchArray | null;
1172
+ (matcher: {
1173
+ [Symbol.match](string: string): RegExpMatchArray | null;
1174
+ }): RegExpMatchArray | null;
1175
+ };
1176
+ replace: {
1177
+ (searchValue: string | RegExp, replaceValue: string): string;
1178
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
1179
+ (searchValue: {
1180
+ [Symbol.replace](string: string, replaceValue: string): string;
1181
+ }, replaceValue: string): string;
1182
+ (searchValue: {
1183
+ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
1184
+ }, replacer: (substring: string, ...args: any[]) => string): string;
1185
+ };
1186
+ search: {
1187
+ (regexp: string | RegExp): number;
1188
+ (searcher: {
1189
+ [Symbol.search](string: string): number;
1190
+ }): number;
1191
+ };
1192
+ slice: (start?: number, end?: number) => string;
1193
+ split: {
1194
+ (separator: string | RegExp, limit?: number): string[];
1195
+ (splitter: {
1196
+ [Symbol.split](string: string, limit?: number): string[];
1197
+ }, limit?: number): string[];
1198
+ };
1199
+ substring: (start: number, end?: number) => string;
1200
+ toLowerCase: () => string;
1201
+ toLocaleLowerCase: {
1202
+ (locales?: string | string[]): string;
1203
+ (locales?: Intl.LocalesArgument): string;
1204
+ };
1205
+ toUpperCase: () => string;
1206
+ toLocaleUpperCase: {
1207
+ (locales?: string | string[]): string;
1208
+ (locales?: Intl.LocalesArgument): string;
1209
+ };
1210
+ trim: () => string;
1211
+ readonly length: number;
1212
+ substr: (from: number, length?: number) => string;
1213
+ valueOf: () => string;
1214
+ codePointAt: (pos: number) => number | undefined;
1215
+ includes: (searchString: string, position?: number) => boolean;
1216
+ endsWith: (searchString: string, endPosition?: number) => boolean;
1217
+ normalize: {
1218
+ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
1219
+ (form?: string): string;
1220
+ };
1221
+ repeat: (count: number) => string;
1222
+ startsWith: (searchString: string, position?: number) => boolean;
1223
+ anchor: (name: string) => string;
1224
+ big: () => string;
1225
+ blink: () => string;
1226
+ bold: () => string;
1227
+ fixed: () => string;
1228
+ fontcolor: (color: string) => string;
1229
+ fontsize: {
1230
+ (size: number): string;
1231
+ (size: string): string;
1232
+ };
1233
+ italics: () => string;
1234
+ link: (url: string) => string;
1235
+ small: () => string;
1236
+ strike: () => string;
1237
+ sub: () => string;
1238
+ sup: () => string;
1239
+ padStart: (maxLength: number, fillString?: string) => string;
1240
+ padEnd: (maxLength: number, fillString?: string) => string;
1241
+ trimEnd: () => string;
1242
+ trimStart: () => string;
1243
+ trimLeft: () => string;
1244
+ trimRight: () => string;
1245
+ matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
1246
+ replaceAll: {
1247
+ (searchValue: string | RegExp, replaceValue: string): string;
1248
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
1249
+ };
1250
+ at: (index: number) => string | undefined;
1251
+ isWellFormed: () => boolean;
1252
+ toWellFormed: () => string;
1253
+ [Symbol.iterator]: () => StringIterator<string>;
1254
+ };
1255
+ encoding: "bech32";
1256
+ };
1257
+ amount: {
1258
+ denom: import("../orchestration-api.ts").Denom;
1259
+ value: bigint;
1260
+ };
1261
+ }[]>;
1262
+ getDelegation: (validator: import("../cosmos-api.ts").CosmosValidatorAddress) => Vow<{
1263
+ delegator: {
1264
+ chainId: string;
1265
+ value: import("../cosmos-api.ts").Bech32Address;
1266
+ encoding: "bech32";
1267
+ };
1268
+ validator: {
1269
+ chainId: string;
1270
+ value: {
1271
+ readonly [x: number]: string;
1272
+ toString: () => string;
1273
+ charAt: (pos: number) => string;
1274
+ charCodeAt: (index: number) => number;
1275
+ concat: (...strings: string[]) => string;
1276
+ indexOf: (searchString: string, position?: number) => number;
1277
+ lastIndexOf: (searchString: string, position?: number) => number;
1278
+ localeCompare: {
1279
+ (that: string): number;
1280
+ (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
1281
+ (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
1282
+ };
1283
+ match: {
1284
+ (regexp: string | RegExp): RegExpMatchArray | null;
1285
+ (matcher: {
1286
+ [Symbol.match](string: string): RegExpMatchArray | null;
1287
+ }): RegExpMatchArray | null;
1288
+ };
1289
+ replace: {
1290
+ (searchValue: string | RegExp, replaceValue: string): string;
1291
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
1292
+ (searchValue: {
1293
+ [Symbol.replace](string: string, replaceValue: string): string;
1294
+ }, replaceValue: string): string;
1295
+ (searchValue: {
1296
+ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
1297
+ }, replacer: (substring: string, ...args: any[]) => string): string;
1298
+ };
1299
+ search: {
1300
+ (regexp: string | RegExp): number;
1301
+ (searcher: {
1302
+ [Symbol.search](string: string): number;
1303
+ }): number;
1304
+ };
1305
+ slice: (start?: number, end?: number) => string;
1306
+ split: {
1307
+ (separator: string | RegExp, limit?: number): string[];
1308
+ (splitter: {
1309
+ [Symbol.split](string: string, limit?: number): string[];
1310
+ }, limit?: number): string[];
1311
+ };
1312
+ substring: (start: number, end?: number) => string;
1313
+ toLowerCase: () => string;
1314
+ toLocaleLowerCase: {
1315
+ (locales?: string | string[]): string;
1316
+ (locales?: Intl.LocalesArgument): string;
1317
+ };
1318
+ toUpperCase: () => string;
1319
+ toLocaleUpperCase: {
1320
+ (locales?: string | string[]): string;
1321
+ (locales?: Intl.LocalesArgument): string;
1322
+ };
1323
+ trim: () => string;
1324
+ readonly length: number;
1325
+ substr: (from: number, length?: number) => string;
1326
+ valueOf: () => string;
1327
+ codePointAt: (pos: number) => number | undefined;
1328
+ includes: (searchString: string, position?: number) => boolean;
1329
+ endsWith: (searchString: string, endPosition?: number) => boolean;
1330
+ normalize: {
1331
+ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
1332
+ (form?: string): string;
1333
+ };
1334
+ repeat: (count: number) => string;
1335
+ startsWith: (searchString: string, position?: number) => boolean;
1336
+ anchor: (name: string) => string;
1337
+ big: () => string;
1338
+ blink: () => string;
1339
+ bold: () => string;
1340
+ fixed: () => string;
1341
+ fontcolor: (color: string) => string;
1342
+ fontsize: {
1343
+ (size: number): string;
1344
+ (size: string): string;
1345
+ };
1346
+ italics: () => string;
1347
+ link: (url: string) => string;
1348
+ small: () => string;
1349
+ strike: () => string;
1350
+ sub: () => string;
1351
+ sup: () => string;
1352
+ padStart: (maxLength: number, fillString?: string) => string;
1353
+ padEnd: (maxLength: number, fillString?: string) => string;
1354
+ trimEnd: () => string;
1355
+ trimStart: () => string;
1356
+ trimLeft: () => string;
1357
+ trimRight: () => string;
1358
+ matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
1359
+ replaceAll: {
1360
+ (searchValue: string | RegExp, replaceValue: string): string;
1361
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
1362
+ };
1363
+ at: (index: number) => string | undefined;
1364
+ isWellFormed: () => boolean;
1365
+ toWellFormed: () => string;
1366
+ [Symbol.iterator]: () => StringIterator<string>;
1367
+ };
1368
+ encoding: "bech32";
1369
+ };
1370
+ amount: {
1371
+ denom: import("../orchestration-api.ts").Denom;
1372
+ value: bigint;
1373
+ };
1374
+ }>;
1375
+ getUnbondingDelegations: () => Vow<{
1376
+ delegatorAddress: string;
1377
+ validatorAddress: string;
1378
+ entries: {
1379
+ creationHeight: bigint;
1380
+ completionTime: {
1381
+ seconds: bigint;
1382
+ nanos: number;
1383
+ };
1384
+ initialBalance: string;
1385
+ balance: string;
1386
+ unbondingId: bigint;
1387
+ unbondingOnHoldRefCount: bigint;
1388
+ }[];
1389
+ }[]>;
1390
+ getUnbondingDelegation: (validator: import("../cosmos-api.ts").CosmosValidatorAddress) => Vow<{
1391
+ delegatorAddress: string;
1392
+ validatorAddress: string;
1393
+ entries: {
1394
+ creationHeight: bigint;
1395
+ completionTime: {
1396
+ seconds: bigint;
1397
+ nanos: number;
1398
+ };
1399
+ initialBalance: string;
1400
+ balance: string;
1401
+ unbondingId: bigint;
1402
+ unbondingOnHoldRefCount: bigint;
1403
+ }[];
1404
+ }>;
1405
+ getRedelegations: () => Vow<{
1406
+ redelegation: {
1407
+ delegatorAddress: string;
1408
+ validatorSrcAddress: string;
1409
+ validatorDstAddress: string;
1410
+ entries: {
1411
+ creationHeight: bigint;
1412
+ completionTime: {
1413
+ seconds: bigint;
1414
+ nanos: number;
1415
+ };
1416
+ initialBalance: string;
1417
+ sharesDst: string;
1418
+ unbondingId: bigint;
1419
+ unbondingOnHoldRefCount: bigint;
1420
+ }[];
1421
+ };
1422
+ entries: {
1423
+ redelegationEntry: {
1424
+ creationHeight: bigint;
1425
+ completionTime: {
1426
+ seconds: bigint;
1427
+ nanos: number;
1428
+ };
1429
+ initialBalance: string;
1430
+ sharesDst: string;
1431
+ unbondingId: bigint;
1432
+ unbondingOnHoldRefCount: bigint;
1433
+ };
1434
+ balance: string;
1435
+ }[];
1436
+ }[]>;
1437
+ getRewards: () => Vow<{
1438
+ rewards: {
1439
+ validator: {
1440
+ chainId: string;
1441
+ value: {
1442
+ readonly [x: number]: string;
1443
+ toString: () => string;
1444
+ charAt: (pos: number) => string;
1445
+ charCodeAt: (index: number) => number;
1446
+ concat: (...strings: string[]) => string;
1447
+ indexOf: (searchString: string, position?: number) => number;
1448
+ lastIndexOf: (searchString: string, position?: number) => number;
1449
+ localeCompare: {
1450
+ (that: string): number;
1451
+ (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
1452
+ (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
1453
+ };
1454
+ match: {
1455
+ (regexp: string | RegExp): RegExpMatchArray | null;
1456
+ (matcher: {
1457
+ [Symbol.match](string: string): RegExpMatchArray | null;
1458
+ }): RegExpMatchArray | null;
1459
+ };
1460
+ replace: {
1461
+ (searchValue: string | RegExp, replaceValue: string): string;
1462
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
1463
+ (searchValue: {
1464
+ [Symbol.replace](string: string, replaceValue: string): string;
1465
+ }, replaceValue: string): string;
1466
+ (searchValue: {
1467
+ [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
1468
+ }, replacer: (substring: string, ...args: any[]) => string): string;
1469
+ };
1470
+ search: {
1471
+ (regexp: string | RegExp): number;
1472
+ (searcher: {
1473
+ [Symbol.search](string: string): number;
1474
+ }): number;
1475
+ };
1476
+ slice: (start?: number, end?: number) => string;
1477
+ split: {
1478
+ (separator: string | RegExp, limit?: number): string[];
1479
+ (splitter: {
1480
+ [Symbol.split](string: string, limit?: number): string[];
1481
+ }, limit?: number): string[];
1482
+ };
1483
+ substring: (start: number, end?: number) => string;
1484
+ toLowerCase: () => string;
1485
+ toLocaleLowerCase: {
1486
+ (locales?: string | string[]): string;
1487
+ (locales?: Intl.LocalesArgument): string;
1488
+ };
1489
+ toUpperCase: () => string;
1490
+ toLocaleUpperCase: {
1491
+ (locales?: string | string[]): string;
1492
+ (locales?: Intl.LocalesArgument): string;
1493
+ };
1494
+ trim: () => string;
1495
+ readonly length: number;
1496
+ substr: (from: number, length?: number) => string;
1497
+ valueOf: () => string;
1498
+ codePointAt: (pos: number) => number | undefined;
1499
+ includes: (searchString: string, position?: number) => boolean;
1500
+ endsWith: (searchString: string, endPosition?: number) => boolean;
1501
+ normalize: {
1502
+ (form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
1503
+ (form?: string): string;
1504
+ };
1505
+ repeat: (count: number) => string;
1506
+ startsWith: (searchString: string, position?: number) => boolean;
1507
+ anchor: (name: string) => string;
1508
+ big: () => string;
1509
+ blink: () => string;
1510
+ bold: () => string;
1511
+ fixed: () => string;
1512
+ fontcolor: (color: string) => string;
1513
+ fontsize: {
1514
+ (size: number): string;
1515
+ (size: string): string;
1516
+ };
1517
+ italics: () => string;
1518
+ link: (url: string) => string;
1519
+ small: () => string;
1520
+ strike: () => string;
1521
+ sub: () => string;
1522
+ sup: () => string;
1523
+ padStart: (maxLength: number, fillString?: string) => string;
1524
+ padEnd: (maxLength: number, fillString?: string) => string;
1525
+ trimEnd: () => string;
1526
+ trimStart: () => string;
1527
+ trimLeft: () => string;
1528
+ trimRight: () => string;
1529
+ matchAll: (regexp: RegExp) => RegExpStringIterator<RegExpExecArray>;
1530
+ replaceAll: {
1531
+ (searchValue: string | RegExp, replaceValue: string): string;
1532
+ (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
1533
+ };
1534
+ at: (index: number) => string | undefined;
1535
+ isWellFormed: () => boolean;
1536
+ toWellFormed: () => string;
1537
+ [Symbol.iterator]: () => StringIterator<string>;
1538
+ };
1539
+ encoding: "bech32";
1540
+ };
1541
+ reward: {
1542
+ denom: import("../orchestration-api.ts").Denom;
1543
+ value: bigint;
1544
+ }[];
1545
+ }[];
1546
+ total: {
1547
+ denom: import("../orchestration-api.ts").Denom;
1548
+ value: bigint;
1549
+ }[];
1550
+ }>;
1551
+ getReward: (validator: import("../cosmos-api.ts").CosmosValidatorAddress) => Vow<{
1552
+ denom: import("../orchestration-api.ts").Denom;
1553
+ value: bigint;
1554
+ }[]>;
1555
+ }>;
4
1556
  query(msgs: {
5
1557
  data: string;
6
1558
  path: string;
@@ -42,6 +1594,7 @@ import type { Zone } from '@agoric/base-zone';
42
1594
  import type { ChainInfo } from '../types.js';
43
1595
  import type { IBCConnectionInfo } from '../types.js';
44
1596
  import type { Vow } from '@agoric/vow';
1597
+ import type { CosmosChainAddress } from '../types.js';
45
1598
  import type { prepareCosmosOrchestrationAccount } from './cosmos-orchestration-account.js';
46
1599
  import type { CosmosInterchainService } from './exo-interfaces.js';
47
1600
  import type { Remote } from '@agoric/internal';