@agoric/orchestration 0.2.0 → 0.2.1-upgrade-23-dev-bd79330.0.bd79330

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.
Files changed (234) hide show
  1. package/index.js +0 -4
  2. package/package.json +27 -27
  3. package/src/axelar-types.d.ts +2 -0
  4. package/src/axelar-types.d.ts.map +1 -1
  5. package/src/axelar-types.js +2 -0
  6. package/src/cctp-chain-info.js +4 -1
  7. package/src/chain-info.d.ts +21 -6
  8. package/src/chain-info.d.ts.map +1 -1
  9. package/src/chain-info.js +9 -8
  10. package/src/cosmos-api.d.ts +102 -29
  11. package/src/cosmos-api.d.ts.map +1 -1
  12. package/src/cosmos-api.js +585 -0
  13. package/src/{ethereum-api.ts → ethereum-api.js} +1 -1
  14. package/src/examples/auto-stake-it-tap-kit.d.ts +4 -3
  15. package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -1
  16. package/src/examples/auto-stake-it-tap-kit.js +3 -4
  17. package/src/examples/auto-stake-it.contract.d.ts +6 -4
  18. package/src/examples/auto-stake-it.contract.d.ts.map +1 -1
  19. package/src/examples/auto-stake-it.contract.js +3 -1
  20. package/src/examples/auto-stake-it.flows.d.ts +2 -1
  21. package/src/examples/auto-stake-it.flows.d.ts.map +1 -1
  22. package/src/examples/auto-stake-it.flows.js +1 -0
  23. package/src/examples/axelar-gmp-account-kit.d.ts +6 -4
  24. package/src/examples/axelar-gmp-account-kit.d.ts.map +1 -1
  25. package/src/examples/axelar-gmp-account-kit.js +4 -2
  26. package/src/examples/axelar-gmp.contract.d.ts +8 -8
  27. package/src/examples/axelar-gmp.contract.d.ts.map +1 -1
  28. package/src/examples/axelar-gmp.contract.js +2 -2
  29. package/src/examples/axelar-gmp.flows.d.ts +1 -1
  30. package/src/examples/basic-flows.contract.d.ts +7 -5
  31. package/src/examples/basic-flows.contract.d.ts.map +1 -1
  32. package/src/examples/basic-flows.contract.js +3 -1
  33. package/src/examples/basic-flows.flows.d.ts +2 -1
  34. package/src/examples/basic-flows.flows.d.ts.map +1 -1
  35. package/src/examples/basic-flows.flows.js +1 -0
  36. package/src/examples/send-anywhere.contract.d.ts +12 -6
  37. package/src/examples/send-anywhere.contract.d.ts.map +1 -1
  38. package/src/examples/send-anywhere.contract.js +4 -1
  39. package/src/examples/send-anywhere.flows.d.ts +3 -2
  40. package/src/examples/send-anywhere.flows.d.ts.map +1 -1
  41. package/src/examples/send-anywhere.flows.js +3 -6
  42. package/src/examples/stake-bld.contract.d.ts +206 -25
  43. package/src/examples/stake-bld.contract.d.ts.map +1 -1
  44. package/src/examples/stake-bld.contract.js +19 -4
  45. package/src/examples/stake-ica.contract.d.ts +434 -71
  46. package/src/examples/stake-ica.contract.d.ts.map +1 -1
  47. package/src/examples/stake-ica.contract.js +28 -6
  48. package/src/examples/staking-combinations.contract.d.ts +4 -2
  49. package/src/examples/staking-combinations.contract.d.ts.map +1 -1
  50. package/src/examples/staking-combinations.contract.js +5 -3
  51. package/src/examples/staking-combinations.flows.d.ts +3 -2
  52. package/src/examples/staking-combinations.flows.d.ts.map +1 -1
  53. package/src/examples/staking-combinations.flows.js +7 -6
  54. package/src/examples/swap-anything.contract.d.ts +14 -7
  55. package/src/examples/swap-anything.contract.d.ts.map +1 -1
  56. package/src/examples/swap-anything.contract.js +12 -8
  57. package/src/examples/swap.contract.d.ts +18 -6
  58. package/src/examples/swap.contract.d.ts.map +1 -1
  59. package/src/examples/swap.contract.js +9 -3
  60. package/src/examples/swap.flows.d.ts +2 -0
  61. package/src/examples/swap.flows.d.ts.map +1 -1
  62. package/src/examples/swap.flows.js +2 -0
  63. package/src/examples/unbond.contract.d.ts +7 -4
  64. package/src/examples/unbond.contract.d.ts.map +1 -1
  65. package/src/examples/unbond.contract.js +6 -3
  66. package/src/exos/chain-hub-admin.d.ts +1 -19
  67. package/src/exos/chain-hub-admin.d.ts.map +1 -1
  68. package/src/exos/chain-hub-admin.js +1 -1
  69. package/src/exos/chain-hub.d.ts +4 -2
  70. package/src/exos/chain-hub.d.ts.map +1 -1
  71. package/src/exos/chain-hub.js +2 -1
  72. package/src/exos/combine-invitation-makers.d.ts +2 -1
  73. package/src/exos/combine-invitation-makers.d.ts.map +1 -1
  74. package/src/exos/combine-invitation-makers.js +2 -1
  75. package/src/exos/cosmos-orchestration-account.d.ts +615 -98
  76. package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
  77. package/src/exos/cosmos-orchestration-account.js +695 -306
  78. package/src/exos/exo-interfaces.js +35 -0
  79. package/src/exos/ibc-packet.d.ts +11 -9
  80. package/src/exos/ibc-packet.d.ts.map +1 -1
  81. package/src/exos/ibc-packet.js +33 -8
  82. package/src/exos/ica-account-kit.d.ts +4 -9
  83. package/src/exos/ica-account-kit.d.ts.map +1 -1
  84. package/src/exos/ica-account-kit.js +10 -7
  85. package/src/exos/icq-connection-kit.d.ts +1 -1
  86. package/src/exos/local-chain-facade.d.ts +1542 -5
  87. package/src/exos/local-chain-facade.d.ts.map +1 -1
  88. package/src/exos/local-chain-facade.js +4 -2
  89. package/src/exos/local-orchestration-account.d.ts +201 -56
  90. package/src/exos/local-orchestration-account.d.ts.map +1 -1
  91. package/src/exos/local-orchestration-account.js +260 -51
  92. package/src/exos/orchestrator.d.ts +35813 -73
  93. package/src/exos/orchestrator.d.ts.map +1 -1
  94. package/src/exos/orchestrator.js +7 -10
  95. package/src/exos/packet-tools.d.ts +19 -8
  96. package/src/exos/packet-tools.d.ts.map +1 -1
  97. package/src/exos/packet-tools.js +92 -9
  98. package/src/exos/portfolio-holder-kit.d.ts +90 -2
  99. package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
  100. package/src/exos/remote-chain-facade.d.ts +1499 -1
  101. package/src/exos/remote-chain-facade.d.ts.map +1 -1
  102. package/src/exos/remote-chain-facade.js +8 -3
  103. package/src/facade.d.ts +1 -0
  104. package/src/facade.d.ts.map +1 -1
  105. package/src/facade.js +4 -6
  106. package/src/fixtures/query-flows.contract.d.ts +8 -6
  107. package/src/fixtures/query-flows.contract.d.ts.map +1 -1
  108. package/src/fixtures/query-flows.contract.js +3 -1
  109. package/src/fixtures/query-flows.flows.d.ts +1 -0
  110. package/src/fixtures/query-flows.flows.d.ts.map +1 -1
  111. package/src/fixtures/query-flows.flows.js +1 -0
  112. package/src/orchestration-api.d.ts +46 -16
  113. package/src/orchestration-api.d.ts.map +1 -1
  114. package/src/orchestration-api.js +410 -0
  115. package/src/proposals/init-chain-info.js +10 -2
  116. package/src/proposals/orchestration-proposal.js +3 -0
  117. package/src/proposals/revise-chain-info.js +4 -1
  118. package/src/proposals/start-auto-stake-it.js +1 -0
  119. package/src/proposals/start-axelar-gmp.js +2 -2
  120. package/src/proposals/start-basic-flows.js +5 -0
  121. package/src/proposals/start-send-anywhere.js +4 -2
  122. package/src/proposals/start-stakeAtom.js +5 -4
  123. package/src/proposals/start-stakeBld.js +8 -6
  124. package/src/proposals/start-stakeOsmo.js +5 -4
  125. package/src/proposals/start-swap-anything.js +4 -2
  126. package/src/stubs/{viem-abi.d.ts → viem-typedData.js} +10 -4
  127. package/src/typeGuards.d.ts +38 -5
  128. package/src/typeGuards.d.ts.map +1 -1
  129. package/src/typeGuards.js +92 -22
  130. package/src/types.d.ts +1 -0
  131. package/src/types.d.ts.map +1 -1
  132. package/src/types.js +27 -0
  133. package/src/utils/abitype.d.ts +6 -0
  134. package/src/utils/abitype.d.ts.map +1 -0
  135. package/src/utils/abitype.js +13 -0
  136. package/src/utils/address.d.ts +3 -1
  137. package/src/utils/address.d.ts.map +1 -1
  138. package/src/utils/address.js +24 -2
  139. package/src/utils/agd-lib.d.ts +1 -51
  140. package/src/utils/agd-lib.d.ts.map +1 -1
  141. package/src/utils/agd-lib.js +1 -1
  142. package/src/utils/amounts.d.ts +1 -0
  143. package/src/utils/amounts.d.ts.map +1 -1
  144. package/src/utils/amounts.js +1 -0
  145. package/src/utils/asset.d.ts +1 -0
  146. package/src/utils/asset.d.ts.map +1 -1
  147. package/src/utils/asset.js +1 -0
  148. package/src/utils/chain-hub-helper.d.ts +1 -0
  149. package/src/utils/chain-hub-helper.d.ts.map +1 -1
  150. package/src/utils/chain-hub-helper.js +1 -0
  151. package/src/utils/codecs.d.ts +145 -0
  152. package/src/utils/codecs.d.ts.map +1 -0
  153. package/src/utils/codecs.js +206 -0
  154. package/src/utils/cosmos.d.ts +5 -4
  155. package/src/utils/cosmos.d.ts.map +1 -1
  156. package/src/utils/cosmos.js +29 -9
  157. package/src/utils/exo-helpers.d.ts +156 -0
  158. package/src/utils/exo-helpers.d.ts.map +1 -0
  159. package/src/utils/exo-helpers.js +241 -0
  160. package/src/utils/gmp.d.ts +2 -2
  161. package/src/utils/gmp.d.ts.map +1 -1
  162. package/src/utils/gmp.js +31 -15
  163. package/src/utils/orchestrationAccount.d.ts +79 -0
  164. package/src/utils/orchestrationAccount.d.ts.map +1 -1
  165. package/src/utils/orchestrationAccount.js +210 -6
  166. package/src/utils/packet.d.ts.map +1 -1
  167. package/src/utils/packet.js +5 -0
  168. package/src/utils/permit2/signatureTransfer.d.ts +221 -0
  169. package/src/utils/permit2/signatureTransfer.d.ts.map +1 -0
  170. package/src/utils/permit2/signatureTransfer.js +265 -0
  171. package/src/utils/permit2/signatureTransferHelpers.d.ts +334 -0
  172. package/src/utils/permit2/signatureTransferHelpers.d.ts.map +1 -0
  173. package/src/utils/permit2/signatureTransferHelpers.js +270 -0
  174. package/src/utils/permit2.d.ts +11 -0
  175. package/src/utils/permit2.d.ts.map +1 -0
  176. package/src/utils/permit2.js +11 -0
  177. package/src/utils/progress.d.ts +41 -0
  178. package/src/utils/progress.d.ts.map +1 -0
  179. package/src/utils/progress.js +180 -0
  180. package/src/utils/start-helper.d.ts +28 -10
  181. package/src/utils/start-helper.d.ts.map +1 -1
  182. package/src/utils/start-helper.js +30 -7
  183. package/src/utils/time.d.ts +2 -2
  184. package/src/utils/time.d.ts.map +1 -1
  185. package/src/utils/time.js +1 -1
  186. package/src/utils/viem-utils/hashTypedData.d.ts +21 -0
  187. package/src/utils/viem-utils/hashTypedData.d.ts.map +1 -0
  188. package/src/utils/viem-utils/hashTypedData.js +61 -0
  189. package/src/utils/viem-utils/types.d.ts +6 -0
  190. package/src/utils/viem-utils/types.d.ts.map +1 -0
  191. package/src/utils/viem-utils/types.js +18 -0
  192. package/src/utils/viem.d.ts +11 -0
  193. package/src/utils/viem.d.ts.map +1 -0
  194. package/src/utils/viem.js +11 -0
  195. package/src/utils/zcf-tools.d.ts +15 -1
  196. package/src/utils/zcf-tools.d.ts.map +1 -1
  197. package/src/utils/zcf-tools.js +19 -3
  198. package/src/utils/zoe-tools.d.ts +5 -2
  199. package/src/utils/zoe-tools.d.ts.map +1 -1
  200. package/src/utils/zoe-tools.js +8 -2
  201. package/src/vat-orchestration.d.ts +5 -3
  202. package/src/vat-orchestration.d.ts.map +1 -1
  203. package/src/vat-orchestration.js +4 -3
  204. package/src/vendor/viem/{_esm-YOAV66U4.js → _esm-OKAICHVC.js} +2 -2
  205. package/src/vendor/viem/{ccip-AAQDZF3N.js → ccip-34BSSMV5.js} +1 -2
  206. package/src/vendor/viem/{chunk-4EF4K2MH.js → chunk-GCI53Z2G.js} +35 -1
  207. package/src/vendor/viem/chunk-ZKSIP2AM.js +326 -0
  208. package/src/vendor/viem/viem-abi.js +2 -2
  209. package/src/vendor/viem/viem-typedData.d.ts +19 -0
  210. package/src/vendor/viem/viem-typedData.js +59 -0
  211. package/tools/contract-tests.d.ts +34 -19
  212. package/tools/contract-tests.d.ts.map +1 -1
  213. package/tools/contract-tests.ts +15 -3
  214. package/tools/ibc-mock-fixtures.d.ts +49 -0
  215. package/tools/ibc-mock-fixtures.d.ts.map +1 -0
  216. package/tools/ibc-mock-fixtures.ts +161 -0
  217. package/tools/ibc-mocks.d.ts +2 -3
  218. package/tools/ibc-mocks.d.ts.map +1 -1
  219. package/tools/ibc-mocks.ts +2 -1
  220. package/tools/make-test-address.d.ts +1 -1
  221. package/tools/make-test-address.d.ts.map +1 -1
  222. package/tools/make-test-address.js +1 -2
  223. package/tools/network-fakes.d.ts +142 -0
  224. package/tools/network-fakes.d.ts.map +1 -0
  225. package/tools/network-fakes.ts +388 -0
  226. package/tsup.config.ts +3 -1
  227. package/src/cosmos-api.ts +0 -469
  228. package/src/exos/exo-interfaces.ts +0 -35
  229. package/src/orchestration-api.ts +0 -365
  230. package/src/stubs/viem-abi.d.ts.map +0 -1
  231. package/src/types.ts +0 -26
  232. package/src/vendor/viem/chunk-XN4LUOIH.js +0 -253
  233. package/src/vendor/viem/secp256k1-WHBDSQB2.js +0 -1914
  234. /package/src/stubs/{viem-abi.ts → viem-abi.js} +0 -0
@@ -3,6 +3,8 @@ export const IcaAccountHolderI: import("@endo/patterns").InterfaceGuard<{
3
3
  deactivate: import("@endo/patterns").MethodGuard;
4
4
  reactivate: import("@endo/patterns").MethodGuard;
5
5
  executeEncodedTx: import("@endo/patterns").MethodGuard;
6
+ executeTxProto3: import("@endo/patterns").MethodGuard;
7
+ executeTxProto3Undecoded: import("@endo/patterns").MethodGuard;
6
8
  getDelegation: import("@endo/patterns").MethodGuard;
7
9
  getDelegations: import("@endo/patterns").MethodGuard;
8
10
  getUnbondingDelegation: import("@endo/patterns").MethodGuard;
@@ -24,6 +26,7 @@ export const IcaAccountHolderI: import("@endo/patterns").InterfaceGuard<{
24
26
  transferSteps: import("@endo/patterns").MethodGuard;
25
27
  asContinuingOffer: import("@endo/patterns").MethodGuard;
26
28
  getPublicTopics: import("@endo/patterns").MethodGuard;
29
+ makeProgressTracker: import("@endo/patterns").MethodGuard;
27
30
  depositForBurn: import("@endo/patterns").MethodGuard;
28
31
  }>;
29
32
  export const CosmosOrchestrationInvitationMakersI: import("@endo/patterns").InterfaceGuard<{
@@ -38,8 +41,9 @@ export const CosmosOrchestrationInvitationMakersI: import("@endo/patterns").Inte
38
41
  SendAll: import("@endo/patterns").MethodGuard;
39
42
  Transfer: import("@endo/patterns").MethodGuard;
40
43
  }>;
41
- export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, makeRecorderKit, timerService, vowTools: { watch, asVow, when, allVows }, zcf, }: {
44
+ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, makeProgressTracker, makeRecorderKit, timerService, vowTools, zcf, }: {
42
45
  chainHub: ChainHub;
46
+ makeProgressTracker: MakeProgressTracker;
43
47
  makeRecorderKit: MakeRecorderKit;
44
48
  timerService: Remote<TimerService>;
45
49
  vowTools: VowTools;
@@ -50,10 +54,10 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
50
54
  remoteAddress: RemoteIbcAddress;
51
55
  }, io: {
52
56
  account: IcaAccount;
53
- storageNode?: Remote<globalThis.StorageNode> | undefined;
57
+ storageNode?: Remote<StorageNode> | undefined;
54
58
  icqConnection?: import("@endo/exo").Guarded<{
55
59
  getLocalAddress(): `/ibc-port/${string}`;
56
- getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
60
+ getRemoteAddress(): `/${string}ibc-port/${string}/unordered/${string}` | `/${string}ibc-port/${string}/ordered/${string}`;
57
61
  query(msgs: JsonSafe<import("@agoric/cosmic-proto/tendermint/abci/types.js").RequestQuery>[]): Vow<JsonSafe<ResponseQuery>[]>;
58
62
  }> | undefined;
59
63
  timer: Remote<TimerService>;
@@ -67,6 +71,29 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
67
71
  * @returns {Coin}
68
72
  */
69
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;
70
97
  };
71
98
  balanceQueryWatcher: {
72
99
  /**
@@ -100,12 +127,6 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
100
127
  */
101
128
  onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation[];
102
129
  };
103
- redelegationQueryWatcher: {
104
- /**
105
- * @param {JsonSafe<ResponseQuery>[]} results
106
- */
107
- onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").RedelegationResponse[];
108
- };
109
130
  redelegationsQueryWatcher: {
110
131
  /**
111
132
  * @param {JsonSafe<ResponseQuery>[]} results
@@ -131,29 +152,48 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
131
152
  */
132
153
  onFulfilled([result]: JsonSafe<ResponseQuery>[]): import("../orchestration-api.js").DenomAmount[];
133
154
  };
134
- undelegateWatcher: {
155
+ decodedUndelegateWatcher: {
135
156
  /**
136
- * @param {string} result
157
+ * @param {readonly MsgUndelegateResponseType[]} responses
137
158
  */
138
- onFulfilled(result: string): Vow<import("@agoric/time").TimestampRecord>;
159
+ onFulfilled(responses: readonly MsgUndelegateResponseType[]): Vow<import("@agoric/time").TimestampRecord>;
139
160
  };
140
161
  /**
141
- * takes an array of results (from `executeEncodedTx`) and returns void
142
- * since we are not interested in the result
162
+ * takes any arguments and returns void since we are not interested in the
163
+ * result
143
164
  */
144
165
  returnVoidWatcher: {
145
- /** @param {string | Record<string, unknown>} result */
146
- onFulfilled(result: string | Record<string, unknown>): undefined;
166
+ /**
167
+ * @param {unknown[]} args
168
+ * @returns {void}
169
+ */
170
+ onFulfilled(...args: unknown[]): void;
147
171
  };
148
- withdrawRewardWatcher: {
149
- /** @param {string} result */
150
- onFulfilled(result: string): import("../orchestration-api.js").DenomAmount[];
172
+ decodedWithdrawRewardWatcher: {
173
+ /** @param {{ amount: Coin[] }} response */
174
+ onFulfilled(response: {
175
+ amount: Coin[];
176
+ }): import("../orchestration-api.js").DenomAmount[];
151
177
  };
152
- transferWatcher: {
178
+ /**
179
+ * Decode responses based on the typeUrls of the original requests.
180
+ */
181
+ decodeResponsesWatcher: {
153
182
  /**
154
- * @param {[
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 [
155
195
  * { transferChannel: IBCConnectionInfo['transferChannel'] },
156
- * bigint,
196
+ * bigint | undefined,
157
197
  * ]} results
158
198
  * @param {{
159
199
  * destination: CosmosChainAddress;
@@ -161,28 +201,45 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
161
201
  * token: Coin;
162
202
  * }} ctx
163
203
  */
164
- onFulfilled([{ transferChannel }, timeoutTimestamp]: [{
204
+ onFulfilled([{ transferChannel }, timeoutTimestamp]: readonly [{
165
205
  transferChannel: IBCConnectionInfo["transferChannel"];
166
- }, bigint], { opts, token, destination }: {
206
+ }, bigint | undefined], { opts, token, destination }: {
167
207
  destination: CosmosChainAddress;
168
208
  opts?: IBCMsgTransferOptions;
169
209
  token: Coin;
170
- }): Vow<undefined>;
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;
171
225
  };
172
226
  invitationMakers: {
173
227
  /**
174
228
  * @param {CosmosValidatorAddress} validator
175
229
  * @param {AmountArg} amount
176
230
  */
177
- Delegate(validator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<void>, undefined>>;
231
+ Delegate(validator: CosmosValidatorAddress, amount: AmountArg): Promise<import("@agoric/zoe").Invitation<Vow<{}>, undefined>>;
178
232
  /**
179
233
  * @param {CosmosValidatorAddress} srcValidator
180
234
  * @param {CosmosValidatorAddress} dstValidator
181
235
  * @param {AmountArg} amount
182
236
  */
183
- Redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Promise<Invitation<Vow<void>, undefined>>;
237
+ Redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Promise<import("@agoric/zoe").Invitation<Vow<{}>, undefined>>;
184
238
  /** @param {CosmosValidatorAddress} validator */
185
- WithdrawReward(validator: CosmosValidatorAddress): Promise<Invitation<Vow<import("../orchestration-api.js").DenomAmount[]>, undefined>>;
239
+ WithdrawReward(validator: CosmosValidatorAddress): Promise<import("@agoric/zoe").Invitation<Vow<{
240
+ denom: import("../orchestration-api.js").Denom;
241
+ value: bigint;
242
+ }[]>, undefined>>;
186
243
  /**
187
244
  * @param {{
188
245
  * amount: AmountArg;
@@ -192,16 +249,18 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
192
249
  Undelegate(delegations: {
193
250
  amount: AmountArg;
194
251
  validator: CosmosValidatorAddress;
195
- }[]): Promise<Invitation<Vow<void>, undefined>>;
196
- DeactivateAccount(): Promise<Invitation<Vow<void>, undefined>>;
197
- ReactivateAccount(): Promise<Invitation<Vow<void>, undefined>>;
198
- Send(): Promise<Invitation<Vow<void>, {
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>, {
199
256
  toAccount: AccountIdArg;
200
257
  amount: AmountArg;
258
+ opts?: CosmosActionOptions;
201
259
  }>>;
202
- SendAll(): Promise<Invitation<Vow<void>, {
260
+ SendAll(): Promise<import("@agoric/zoe").Invitation<Vow<void>, {
203
261
  toAccount: CosmosChainAddress;
204
262
  amounts: AmountArg[];
263
+ opts?: CosmosActionOptions;
205
264
  }>>;
206
265
  /**
207
266
  * Starting a transfer revokes the account holder. The associated
@@ -209,35 +268,227 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
209
268
  * transferred.
210
269
  */
211
270
  TransferAccount(): never;
212
- Transfer(): Promise<Invitation<Vow<void>, {
271
+ Transfer(): Promise<import("@agoric/zoe").Invitation<Vow<any>, {
213
272
  amount: AmountArg;
214
273
  destination: AccountIdArg;
215
274
  opts?: IBCMsgTransferOptions;
216
275
  }>>;
217
276
  };
218
277
  holder: {
219
- asContinuingOffer(): Vow<import("@agoric/async-flow").HostInterface<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>>;
220
- getPublicTopics(): Vow<import("@agoric/async-flow").HostInterface<Record<string, import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>>>>;
221
- getAddress(): import("@agoric/async-flow").HostInterface<CosmosChainAddress>;
222
- delegate(validator: CosmosValidatorAddress, amount: AmountArg): Vow<void>;
223
- redelegate(srcValidator: CosmosValidatorAddress, dstValidator: CosmosValidatorAddress, amount: AmountArg): Vow<void>;
224
- withdrawReward(validator: CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[]>;
225
- getBalance(denom: import("../orchestration-api.js").DenomArg): Vow<import("../orchestration-api.js").DenomAmount>;
226
- getBalances(): Vow<import("../orchestration-api.js").DenomAmount[]>;
227
- send(toAccount: AccountIdArg, amount: AmountArg): Vow<void>;
228
- sendAll(toAccount: CosmosChainAddress, amounts: AmountArg[]): Vow<void>;
229
- transfer(destination: AccountIdArg, amount: AmountArg, opts?: IBCMsgTransferOptions | undefined): Vow<void>;
230
- transferSteps(amount: AmountArg, msg: import("../orchestration-api.js").TransferMsg): Vow<void>;
231
- withdrawRewards(): Vow<import("../orchestration-api.js").DenomAmount[]>;
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
+ }[]>;
232
371
  undelegate(delegations: {
233
372
  amount: AmountArg;
234
373
  delegator?: CosmosChainAddress;
235
374
  validator: CosmosValidatorAddress;
236
- }[]): Vow<void>;
375
+ }[], opts?: CosmosActionOptions | undefined): Vow<{}>;
237
376
  deactivate(): Vow<void>;
238
377
  reactivate(): Vow<void>;
239
- getDelegation(validator: CosmosValidatorAddress): Vow<import("@agoric/async-flow").HostInterface<CosmosDelegationResponse>>;
240
- getDelegations(): Vow<{
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<{
241
492
  delegator: {
242
493
  chainId: string;
243
494
  value: import("../cosmos-api.js").Bech32Address;
@@ -250,65 +501,98 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
250
501
  toString: () => string;
251
502
  charAt: (pos: number) => string;
252
503
  charCodeAt: (index: number) => number;
253
- concat: (...args: string[]) => string;
254
- indexOf: (searchString: string, position?: number | undefined) => number;
255
- lastIndexOf: (searchString: string, position?: number | undefined) => number;
256
- localeCompare: (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions | undefined) => number;
257
- match: ((matcher: {
258
- [Symbol.match](string: string): RegExpMatchArray | null;
259
- }) => null) | ((matcher: {
260
- [Symbol.match](string: string): RegExpMatchArray | null;
261
- }) => import("@agoric/async-flow").HostInterface<RegExpMatchArray>);
262
- replace: (searchValue: {
263
- [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
264
- }, replacer: (substring: string, ...args: any[]) => string) => string;
265
- search: (searcher: {
266
- [Symbol.search](string: string): number;
267
- }) => number;
268
- slice: (start?: number | undefined, end?: number | undefined) => string;
269
- split: (splitter: {
270
- [Symbol.split](string: string, limit?: number): string[];
271
- }, limit?: number | undefined) => string[];
272
- substring: (start: number, end?: number | undefined) => string;
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;
273
542
  toLowerCase: () => string;
274
- toLocaleLowerCase: (locales?: Intl.LocalesArgument) => string;
543
+ toLocaleLowerCase: {
544
+ (locales?: string | string[]): string;
545
+ (locales?: Intl.LocalesArgument): string;
546
+ };
275
547
  toUpperCase: () => string;
276
- toLocaleUpperCase: (locales?: Intl.LocalesArgument) => string;
548
+ toLocaleUpperCase: {
549
+ (locales?: string | string[]): string;
550
+ (locales?: Intl.LocalesArgument): string;
551
+ };
277
552
  trim: () => string;
278
553
  readonly length: number;
279
- substr: (from: number, length?: number | undefined) => string;
554
+ substr: (from: number, length?: number) => string;
280
555
  valueOf: () => string;
281
- codePointAt: ((pos: number) => undefined) | ((pos: number) => number);
282
- includes: ((searchString: string, position?: number | undefined) => false) | ((searchString: string, position?: number | undefined) => true);
283
- endsWith: ((searchString: string, endPosition?: number | undefined) => false) | ((searchString: string, endPosition?: number | undefined) => true);
284
- normalize: (form?: string | undefined) => 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
+ };
285
563
  repeat: (count: number) => string;
286
- startsWith: ((searchString: string, position?: number | undefined) => false) | ((searchString: string, position?: number | undefined) => true);
564
+ startsWith: (searchString: string, position?: number) => boolean;
287
565
  anchor: (name: string) => string;
288
566
  big: () => string;
289
567
  blink: () => string;
290
568
  bold: () => string;
291
569
  fixed: () => string;
292
570
  fontcolor: (color: string) => string;
293
- fontsize: (size: string) => string;
571
+ fontsize: {
572
+ (size: number): string;
573
+ (size: string): string;
574
+ };
294
575
  italics: () => string;
295
576
  link: (url: string) => string;
296
577
  small: () => string;
297
578
  strike: () => string;
298
579
  sub: () => string;
299
580
  sup: () => string;
300
- padStart: (maxLength: number, fillString?: string | undefined) => string;
301
- padEnd: (maxLength: number, fillString?: string | undefined) => string;
581
+ padStart: (maxLength: number, fillString?: string) => string;
582
+ padEnd: (maxLength: number, fillString?: string) => string;
302
583
  trimEnd: () => string;
303
584
  trimStart: () => string;
304
585
  trimLeft: () => string;
305
586
  trimRight: () => string;
306
- matchAll: (regexp: RegExp) => import("@agoric/async-flow").HostInterface<RegExpStringIterator<RegExpExecArray>>;
307
- replaceAll: (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string) => string;
308
- at: ((index: number) => undefined) | ((index: number) => string);
309
- isWellFormed: (() => false) | (() => true);
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;
310
594
  toWellFormed: () => string;
311
- [Symbol.iterator]: () => import("@agoric/async-flow").HostInterface<StringIterator<string>>;
595
+ [Symbol.iterator]: () => StringIterator<string>;
312
596
  };
313
597
  encoding: "bech32";
314
598
  };
@@ -317,8 +601,22 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
317
601
  value: bigint;
318
602
  };
319
603
  }[]>;
320
- getUnbondingDelegation(validator: CosmosValidatorAddress): Vow<import("@agoric/async-flow").HostInterface<import("@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js").UnbondingDelegation>>;
321
- getUnbondingDelegations(): Vow<{
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<{
322
620
  delegatorAddress: string;
323
621
  validatorAddress: string;
324
622
  entries: {
@@ -333,7 +631,7 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
333
631
  unbondingOnHoldRefCount: bigint;
334
632
  }[];
335
633
  }[]>;
336
- getRedelegations(): Vow<{
634
+ getRedelegations(opts?: import("../cosmos-api.js").CosmosQuerierOptions | undefined): Vow<{
337
635
  redelegation: {
338
636
  delegatorAddress: string;
339
637
  validatorSrcAddress: string;
@@ -365,20 +663,228 @@ export function prepareCosmosOrchestrationAccountKit(zone: Zone, { chainHub, mak
365
663
  balance: string;
366
664
  }[];
367
665
  }[]>;
368
- getReward(validator: CosmosValidatorAddress): Vow<import("../orchestration-api.js").DenomAmount[]>;
369
- getRewards(): Vow<import("@agoric/async-flow").HostInterface<CosmosRewardsResponse>>;
370
- executeEncodedTx(msgs: {
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 {
371
785
  $typeUrl?: "/google.protobuf.Any" | string | undefined;
372
786
  typeUrl: string;
373
787
  value: string;
374
- }[], opts?: (Partial<Omit<import("@agoric/cosmic-proto/cosmos/tx/v1beta1/tx.js").TxBody, "messages">> & {
375
- sendOpts?: import("@agoric/network").SendOptions;
376
- }) | undefined): Vow<string>;
377
- depositForBurn(mintRecipient: `${string}:${string}:${string}`, amount: AmountArg, caller?: `${string}:${string}:${string}` | undefined): Vow<void>;
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[];
378
883
  };
379
884
  }>;
380
- export function prepareCosmosOrchestrationAccount(zone: Zone, { chainHub, makeRecorderKit, timerService, vowTools, zcf }: {
885
+ export function prepareCosmosOrchestrationAccount(zone: Zone, { chainHub, makeProgressTracker, makeRecorderKit, timerService, vowTools, zcf, }: {
381
886
  chainHub: ChainHub;
887
+ makeProgressTracker: MakeProgressTracker;
382
888
  makeRecorderKit: MakeRecorderKit;
383
889
  timerService: Remote<TimerService>;
384
890
  vowTools: VowTools;
@@ -407,6 +913,7 @@ export type CosmosOrchestrationAccountKit = ReturnType<ReturnType<typeof prepare
407
913
  export type CosmosOrchestrationAccount = CosmosOrchestrationAccountKit["holder"];
408
914
  import type { Zone } from '@agoric/zone';
409
915
  import type { ChainHub } from '../types.js';
916
+ import type { MakeProgressTracker } from '../types.js';
410
917
  import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
411
918
  import type { TimerService } from '@agoric/time';
412
919
  import type { Remote } from '@agoric/internal';
@@ -416,18 +923,28 @@ import type { CosmosChainAddress } from '../types.js';
416
923
  import type { LocalIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
417
924
  import type { RemoteIbcAddress } from '@agoric/vats/tools/ibc-utils.js';
418
925
  import type { IcaAccount } from '../types.js';
926
+ import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
419
927
  import type { JsonSafe } from '@agoric/cosmic-proto';
420
928
  import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
421
929
  import type { Vow } from '@agoric/vow';
422
930
  import type { AmountArg } from '../types.js';
423
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';
424
935
  import type { CosmosDelegationResponse } from '../types.js';
425
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';
426
941
  import type { IBCConnectionInfo } from '../types.js';
427
942
  import type { IBCMsgTransferOptions } from '../types.js';
428
943
  import type { CosmosValidatorAddress } from '../types.js';
429
- import type { Invitation } from '@agoric/zoe';
430
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';
431
948
  import type { ICQConnection } from '../types.js';
432
949
  import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
433
950
  //# sourceMappingURL=cosmos-orchestration-account.d.ts.map