@agoric/orchestration 0.3.0-u23.0 → 0.3.0-u23.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/index.d.ts +9 -0
  2. package/package.json +15 -15
  3. package/src/axelar-types.d.ts +53 -0
  4. package/src/axelar-types.d.ts.map +1 -0
  5. package/src/cctp-chain-info.d.ts +65 -0
  6. package/src/cctp-chain-info.d.ts.map +1 -0
  7. package/src/chain-capabilities.d.ts +12 -0
  8. package/src/chain-capabilities.d.ts.map +1 -0
  9. package/src/chain-info.d.ts +10267 -0
  10. package/src/chain-info.d.ts.map +1 -0
  11. package/src/cosmos-api.d.ts +437 -0
  12. package/src/cosmos-api.d.ts.map +1 -0
  13. package/src/ethereum-api.d.ts +9 -0
  14. package/src/ethereum-api.d.ts.map +1 -0
  15. package/src/examples/auto-stake-it-tap-kit.d.ts +50 -0
  16. package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -0
  17. package/src/examples/auto-stake-it.contract.d.ts +34 -0
  18. package/src/examples/auto-stake-it.contract.d.ts.map +1 -0
  19. package/src/examples/auto-stake-it.flows.d.ts +24 -0
  20. package/src/examples/auto-stake-it.flows.d.ts.map +1 -0
  21. package/src/examples/axelar-gmp-account-kit.d.ts +80 -0
  22. package/src/examples/axelar-gmp-account-kit.d.ts.map +1 -0
  23. package/src/examples/axelar-gmp.contract.d.ts +52 -0
  24. package/src/examples/axelar-gmp.contract.d.ts.map +1 -0
  25. package/src/examples/axelar-gmp.flows.d.ts +21 -0
  26. package/src/examples/axelar-gmp.flows.d.ts.map +1 -0
  27. package/src/examples/basic-flows.contract.d.ts +32 -0
  28. package/src/examples/basic-flows.contract.d.ts.map +1 -0
  29. package/src/examples/basic-flows.flows.d.ts +20 -0
  30. package/src/examples/basic-flows.flows.d.ts.map +1 -0
  31. package/src/examples/send-anywhere.contract.d.ts +60 -0
  32. package/src/examples/send-anywhere.contract.d.ts.map +1 -0
  33. package/src/examples/send-anywhere.flows.d.ts +576 -0
  34. package/src/examples/send-anywhere.flows.d.ts.map +1 -0
  35. package/src/examples/shared.flows.d.ts +4 -0
  36. package/src/examples/shared.flows.d.ts.map +1 -0
  37. package/src/examples/stake-bld.contract.d.ts +237 -0
  38. package/src/examples/stake-bld.contract.d.ts.map +1 -0
  39. package/src/examples/stake-ica.contract.d.ts +573 -0
  40. package/src/examples/stake-ica.contract.d.ts.map +1 -0
  41. package/src/examples/staking-combinations.contract.d.ts +19 -0
  42. package/src/examples/staking-combinations.contract.d.ts.map +1 -0
  43. package/src/examples/staking-combinations.flows.d.ts +32 -0
  44. package/src/examples/staking-combinations.flows.d.ts.map +1 -0
  45. package/src/examples/swap-anything.contract.d.ts +55 -0
  46. package/src/examples/swap-anything.contract.d.ts.map +1 -0
  47. package/src/examples/swap-anything.flows.d.ts +32 -0
  48. package/src/examples/swap-anything.flows.d.ts.map +1 -0
  49. package/src/examples/swap.contract.d.ts +56 -0
  50. package/src/examples/swap.contract.d.ts.map +1 -0
  51. package/src/examples/swap.flows.d.ts +12 -0
  52. package/src/examples/swap.flows.d.ts.map +1 -0
  53. package/src/examples/unbond.contract.d.ts +21 -0
  54. package/src/examples/unbond.contract.d.ts.map +1 -0
  55. package/src/examples/unbond.flows.d.ts +6 -0
  56. package/src/examples/unbond.flows.d.ts.map +1 -0
  57. package/src/exos/chain-hub-admin.d.ts +27 -0
  58. package/src/exos/chain-hub-admin.d.ts.map +1 -0
  59. package/src/exos/chain-hub.d.ts +225 -0
  60. package/src/exos/chain-hub.d.ts.map +1 -0
  61. package/src/exos/combine-invitation-makers.d.ts +7 -0
  62. package/src/exos/combine-invitation-makers.d.ts.map +1 -0
  63. package/src/exos/cosmos-interchain-service.d.ts +49 -0
  64. package/src/exos/cosmos-interchain-service.d.ts.map +1 -0
  65. package/src/exos/cosmos-orchestration-account.d.ts +950 -0
  66. package/src/exos/cosmos-orchestration-account.d.ts.map +1 -0
  67. package/src/exos/exo-interfaces.d.ts +27 -0
  68. package/src/exos/exo-interfaces.d.ts.map +1 -0
  69. package/src/exos/ibc-packet.d.ts +101 -0
  70. package/src/exos/ibc-packet.d.ts.map +1 -0
  71. package/src/exos/ica-account-kit.d.ts +98 -0
  72. package/src/exos/ica-account-kit.d.ts.map +1 -0
  73. package/src/exos/icq-connection-kit.d.ts +67 -0
  74. package/src/exos/icq-connection-kit.d.ts.map +1 -0
  75. package/src/exos/local-chain-facade.d.ts +1587 -0
  76. package/src/exos/local-chain-facade.d.ts.map +1 -0
  77. package/src/exos/local-orchestration-account.d.ts +405 -0
  78. package/src/exos/local-orchestration-account.d.ts.map +1 -0
  79. package/src/exos/orchestrator.d.ts +35857 -0
  80. package/src/exos/orchestrator.d.ts.map +1 -0
  81. package/src/exos/packet-tools.d.ts +63 -0
  82. package/src/exos/packet-tools.d.ts.map +1 -0
  83. package/src/exos/portfolio-holder-kit.d.ts +154 -0
  84. package/src/exos/portfolio-holder-kit.d.ts.map +1 -0
  85. package/src/exos/remote-chain-facade.d.ts +1549 -0
  86. package/src/exos/remote-chain-facade.d.ts.map +1 -0
  87. package/src/facade.d.ts +33 -0
  88. package/src/facade.d.ts.map +1 -0
  89. package/src/fetched-chain-info.d.ts +10275 -0
  90. package/src/fetched-chain-info.d.ts.map +1 -0
  91. package/src/fixtures/query-flows.contract.d.ts +33 -0
  92. package/src/fixtures/query-flows.contract.d.ts.map +1 -0
  93. package/src/fixtures/query-flows.flows.d.ts +20 -0
  94. package/src/fixtures/query-flows.flows.d.ts.map +1 -0
  95. package/src/orchestration-api.d.ts +315 -0
  96. package/src/orchestration-api.d.ts.map +1 -0
  97. package/src/typeGuards.d.ts +163 -0
  98. package/src/typeGuards.d.ts.map +1 -0
  99. package/src/types.d.ts +25 -0
  100. package/src/types.d.ts.map +1 -0
  101. package/src/utils/abitype.d.ts +6 -0
  102. package/src/utils/abitype.d.ts.map +1 -0
  103. package/src/utils/address.d.ts +44 -0
  104. package/src/utils/address.d.ts.map +1 -0
  105. package/src/utils/agd-lib.d.ts +58 -0
  106. package/src/utils/agd-lib.d.ts.map +1 -0
  107. package/src/utils/amounts.d.ts +11 -0
  108. package/src/utils/amounts.d.ts.map +1 -0
  109. package/src/utils/asset.d.ts +6 -0
  110. package/src/utils/asset.d.ts.map +1 -0
  111. package/src/utils/axelar-static-config.d.ts +34 -0
  112. package/src/utils/axelar-static-config.d.ts.map +1 -0
  113. package/src/utils/chain-hub-helper.d.ts +14 -0
  114. package/src/utils/chain-hub-helper.d.ts.map +1 -0
  115. package/src/utils/chain-info.d.ts +5 -0
  116. package/src/utils/chain-info.d.ts.map +1 -0
  117. package/src/utils/codecs.d.ts +145 -0
  118. package/src/utils/codecs.d.ts.map +1 -0
  119. package/src/utils/cosmos.d.ts +61 -0
  120. package/src/utils/cosmos.d.ts.map +1 -0
  121. package/src/utils/denomHash.d.ts +7 -0
  122. package/src/utils/denomHash.d.ts.map +1 -0
  123. package/src/utils/exo-helpers.d.ts +156 -0
  124. package/src/utils/exo-helpers.d.ts.map +1 -0
  125. package/src/utils/gmp.d.ts +30 -0
  126. package/src/utils/gmp.d.ts.map +1 -0
  127. package/src/utils/orc.d.ts +17 -0
  128. package/src/utils/orc.d.ts.map +1 -0
  129. package/src/utils/orchestrationAccount.d.ts +91 -0
  130. package/src/utils/orchestrationAccount.d.ts.map +1 -0
  131. package/src/utils/packet.d.ts +57 -0
  132. package/src/utils/packet.d.ts.map +1 -0
  133. package/src/utils/permit2/signatureTransfer.d.ts +221 -0
  134. package/src/utils/permit2/signatureTransfer.d.ts.map +1 -0
  135. package/src/utils/permit2/signatureTransferHelpers.d.ts +334 -0
  136. package/src/utils/permit2/signatureTransferHelpers.d.ts.map +1 -0
  137. package/src/utils/permit2.d.ts +11 -0
  138. package/src/utils/permit2.d.ts.map +1 -0
  139. package/src/utils/progress.d.ts +41 -0
  140. package/src/utils/progress.d.ts.map +1 -0
  141. package/src/utils/registry.d.ts +6 -0
  142. package/src/utils/registry.d.ts.map +1 -0
  143. package/src/utils/start-helper.d.ts +129 -0
  144. package/src/utils/start-helper.d.ts.map +1 -0
  145. package/src/utils/time.d.ts +38 -0
  146. package/src/utils/time.d.ts.map +1 -0
  147. package/src/utils/viem-utils/hashTypedData.d.ts +21 -0
  148. package/src/utils/viem-utils/hashTypedData.d.ts.map +1 -0
  149. package/src/utils/viem-utils/types.d.ts +6 -0
  150. package/src/utils/viem-utils/types.d.ts.map +1 -0
  151. package/src/utils/viem.d.ts +11 -0
  152. package/src/utils/viem.d.ts.map +1 -0
  153. package/src/utils/zcf-tools.d.ts +19 -0
  154. package/src/utils/zcf-tools.d.ts.map +1 -0
  155. package/src/utils/zoe-tools.d.ts +19 -0
  156. package/src/utils/zoe-tools.d.ts.map +1 -0
  157. package/src/vat-orchestration.d.ts +21 -0
  158. package/src/vat-orchestration.d.ts.map +1 -0
  159. package/tools/contract-tests.d.ts +1832 -0
  160. package/tools/contract-tests.d.ts.map +1 -0
  161. package/tools/ibc-mock-fixtures.d.ts +49 -0
  162. package/tools/ibc-mock-fixtures.d.ts.map +1 -0
  163. package/tools/ibc-mocks.d.ts +168 -0
  164. package/tools/ibc-mocks.d.ts.map +1 -0
  165. package/tools/make-test-address.d.ts +3 -0
  166. package/tools/make-test-address.d.ts.map +1 -0
  167. package/tools/network-fakes.d.ts +143 -0
  168. package/tools/network-fakes.d.ts.map +1 -0
  169. package/tools/protobuf-decoder.d.ts +19 -0
  170. package/tools/protobuf-decoder.d.ts.map +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-chain-facade.d.ts","sourceRoot":"","sources":["local-chain-facade.js"],"names":[],"mappings":"AAgMO,8CAJI,IAAI,UACJ,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMhC;;;;;;;;;;;uBAtKa,MAAM,OAAO,CAAC,SAAS,EAAE,CAAC;;qCAO3B;IACR,gCAAgC,EAAE,gCAAgC,CAAC;IACnE,aAAa,EAAE,OAAO,uBAAuB,CAAC,CAAC;IAC/C,WAAW,EAAE,OAAO,WAAW,CAAC,GAAG,SAAS,CAAC;IAC7C,WAAW,EAAE,OAAO,OAAO,CAAC,CAAC;IAC7B,KAAK,EAAE,OAAO,YAAY,CAAC,CAAC;IAC5B,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,QAAQ,EAAE,QAAQ,CAAC;CACpB;mCA0JU,UAAU,CAAC,OAAO,uBAAuB,CAAC;+BAC1C,UAAU,CAAC,oBAAoB,CAAC;0BA3LvB,mBAAmB;qCAS6F,aAAa;yBAHpH,aAAa;0CAG0F,aAAa;wCAAb,aAAa;+BALxH,8BAA8B;sDAIuB,kCAAkC;6CADzE,qBAAqB;4BALtC,kBAAkB;iCAQb,0CAA0C;6BAL9C,cAAc;kCAJT,cAAc;gCAEgB,gCAAgC;8BAG7D,aAAa"}
@@ -0,0 +1,405 @@
1
+ export function prepareLocalOrchestrationAccountKit(zone: Zone, { makeRecorderKit, makeProgressTracker, zcf, timerService, vowTools, chainHub, localchain, zoeTools, }: {
2
+ makeRecorderKit: MakeRecorderKit;
3
+ zcf: ZCF;
4
+ timerService: Remote<TimerService>;
5
+ vowTools: VowTools;
6
+ chainHub: ChainHub;
7
+ localchain: Remote<LocalChain>;
8
+ zoeTools: ZoeTools;
9
+ makeProgressTracker: MakeProgressTracker;
10
+ }): (args_0: {
11
+ account: LocalChainAccount;
12
+ address: CosmosChainAddress;
13
+ storageNode?: Remote<StorageNode> | undefined;
14
+ }) => import("@endo/exo").GuardedKit<{
15
+ helper: {
16
+ /**
17
+ * @param {AmountArg} amount
18
+ * @returns {Coin}
19
+ */
20
+ amountToCoin(amount: AmountArg): Coin;
21
+ pickVowProp<R extends readonly Record<PropertyKey, any>, K extends PropertyKey>(inputV: import("@agoric/vow").EVow<R>, prop: K): Vow<R[K]>;
22
+ pickVowIndex<T extends readonly unknown[], I extends number>(inputV: import("@agoric/vow").EVow<T>, index: I): Vow<T[I]>;
23
+ overrideVow<T = undefined>(inputV: Vow<unknown>, newValue?: T): Vow<T>;
24
+ voidVow(inputV: Vow<unknown>): Vow<void>;
25
+ };
26
+ invitationMakers: {
27
+ /**
28
+ * @param {string} validatorAddress
29
+ * @param {Amount<'nat'>} ertpAmount
30
+ */
31
+ Delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<import("@agoric/zoe").Invitation<Vow<Record<PropertyKey, unknown>>, undefined>>;
32
+ Deposit(): Promise<import("@agoric/zoe").Invitation<Vow<void>, undefined>>;
33
+ /**
34
+ * @param {string} validatorAddress
35
+ * @param {Amount<'nat'>} ertpAmount
36
+ */
37
+ Undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Promise<import("@agoric/zoe").Invitation<Vow<TimestampRecord>, undefined>>;
38
+ CloseAccount(): never;
39
+ Send(): Promise<import("@agoric/zoe").Invitation<Vow<void>, {
40
+ toAccount: AccountIdArg;
41
+ amount: AmountArg;
42
+ }>>;
43
+ SendAll(): Promise<import("@agoric/zoe").Invitation<Vow<void>, {
44
+ toAccount: CosmosChainAddress;
45
+ amounts: AmountArg[];
46
+ }>>;
47
+ Transfer(): Promise<import("@agoric/zoe").Invitation<Vow<void>, {
48
+ amount: AmountArg;
49
+ destination: AccountIdArg;
50
+ opts?: IBCMsgTransferOptions;
51
+ }>>;
52
+ Withdraw(): Promise<import("@agoric/zoe").Invitation<Vow<void>, undefined>>;
53
+ };
54
+ undelegateWatcher: {
55
+ /**
56
+ * @param {[
57
+ * JsonSafe<
58
+ * TypedJson<'/cosmos.staking.v1beta1.MsgUndelegateResponse'>
59
+ * >,
60
+ * ]} response
61
+ */
62
+ onFulfilled(response: [JsonSafe<TypedJson<"/cosmos.staking.v1beta1.MsgUndelegateResponse">>]): Vow<undefined>;
63
+ };
64
+ transferConnectionWatcher: {
65
+ /**
66
+ * @param {readonly [CosmosChainInfo, CosmosChainInfo, bigint]} all
67
+ * @param {Record<string, any>} ctx
68
+ */
69
+ onFulfilled([srcChainInfo, nextChainInfo, timeout]: readonly [CosmosChainInfo, CosmosChainInfo, bigint], ctx: Record<string, any>): Vow<string>;
70
+ };
71
+ transferWatcher: {
72
+ /**
73
+ * @param {readonly [
74
+ * ChainInfo,
75
+ * ChainInfo,
76
+ * Pick<IBCConnectionInfo, 'transferChannel'>,
77
+ * bigint,
78
+ * ]} details
79
+ * @param {{
80
+ * opts?: Omit<IBCMsgTransferOptions, 'forwardOpts'>;
81
+ * route: TransferRoute;
82
+ * }} ctx
83
+ */
84
+ onFulfilled([srcChainInfo, dstChainInfo, { transferChannel }, timeoutTimestamp]: readonly [ChainInfo, ChainInfo, Pick<IBCConnectionInfo, "transferChannel">, bigint], { opts, route }: {
85
+ opts?: Omit<IBCMsgTransferOptions, "forwardOpts">;
86
+ route: TransferRoute;
87
+ }): Vow<string>;
88
+ };
89
+ extractFirstResultWatcher: {
90
+ /**
91
+ * Takes an array of results (from `executeTx`) and returns the first
92
+ * result element.
93
+ *
94
+ * @param {Record<PropertyKey, unknown>[]} results
95
+ * @returns {Record<PropertyKey, unknown>}
96
+ */
97
+ onFulfilled(results: Record<PropertyKey, unknown>[]): Record<PropertyKey, unknown>;
98
+ };
99
+ returnVoidWatcher: {
100
+ onFulfilled(): undefined;
101
+ };
102
+ /**
103
+ * handles a request for balance from a bank purse and returns the balance
104
+ * as a Chain Amount
105
+ */
106
+ getBalanceWatcher: {
107
+ /**
108
+ * @param {Amount<'nat'>} natAmount
109
+ * @param {DenomAmount['denom']} denom
110
+ * @returns {DenomAmount}
111
+ */
112
+ onFulfilled(natAmount: Amount<"nat">, denom: DenomAmount["denom"]): DenomAmount;
113
+ };
114
+ /** exits or fails a seat depending the outcome */
115
+ seatExiterHandler: {
116
+ /**
117
+ * @param {undefined} _
118
+ * @param {ZCFSeat} seat
119
+ */
120
+ onFulfilled(_: undefined, seat: ZCFSeat): void;
121
+ /**
122
+ * @param {Error} reason
123
+ * @param {ZCFSeat} seat
124
+ */
125
+ onRejected(reason: Error, seat: ZCFSeat): never;
126
+ };
127
+ /**
128
+ * handles a QueryBalanceRequest from localchain.query and returns the
129
+ * balance as a DenomAmount
130
+ */
131
+ queryBalanceWatcher: {
132
+ /**
133
+ * @param {ResponseTo<
134
+ * TypedJson<'/cosmos.bank.v1beta1.QueryBalanceRequest'>
135
+ * >} result
136
+ * @returns {DenomAmount}
137
+ */
138
+ onFulfilled(result: ResponseTo<TypedJson<"/cosmos.bank.v1beta1.QueryBalanceRequest">>): DenomAmount;
139
+ };
140
+ /**
141
+ * handles a QueryAllBalancesRequest from localchain.query and returns the
142
+ * balances as a DenomAmounts
143
+ */
144
+ queryBalancesWatcher: {
145
+ /**
146
+ * @param {JsonSafe<
147
+ * ResponseTo<
148
+ * TypedJson<'/cosmos.bank.v1beta1.QueryAllBalancesRequest'>
149
+ * >
150
+ * >} result
151
+ * @returns {DenomAmount[]}
152
+ */
153
+ onFulfilled(result: JsonSafe<ResponseTo<TypedJson<"/cosmos.bank.v1beta1.QueryAllBalancesRequest">>>): DenomAmount[];
154
+ };
155
+ parseInboundTransferWatcher: {
156
+ /**
157
+ * @param {{ error?: string; reply: TypedJson<string> }[]
158
+ * | TypedJson<string>} result
159
+ * @param {Awaited<
160
+ * ReturnType<LocalAccountMethods['parseInboundTransfer']>
161
+ * >} naiveResult
162
+ */
163
+ onFulfilled(result: {
164
+ error?: string;
165
+ reply: TypedJson<string>;
166
+ }[] | TypedJson<string>, naiveResult: Awaited<ReturnType<LocalAccountMethods["parseInboundTransfer"]>>): {
167
+ amount: DenomAmount;
168
+ fromAccount: string;
169
+ toAccount: string;
170
+ extra: Record<string, any>;
171
+ };
172
+ /**
173
+ * @param {unknown} reason
174
+ * @param {Awaited<
175
+ * ReturnType<LocalAccountMethods['parseInboundTransfer']>
176
+ * >} naiveResult
177
+ */
178
+ onRejected(reason: unknown, naiveResult: Awaited<ReturnType<LocalAccountMethods["parseInboundTransfer"]>>): {
179
+ amount: DenomAmount;
180
+ fromAccount: string;
181
+ toAccount: string;
182
+ extra: Record<string, any>;
183
+ };
184
+ };
185
+ holder: {
186
+ makeProgressTracker(): import("@agoric/orchestration").ProgressTracker;
187
+ asContinuingOffer(): Vow<{
188
+ invitationMakers: {
189
+ [x: string]: (...args: any[]) => Vow<import("@endo/pass-style").RemotableObject & {
190
+ getAllegedBrand: () => import("@agoric/ertp").Brand<"set">;
191
+ } & {
192
+ readonly "Symbol(tag)": {
193
+ "Set-like value type": import("@agoric/zoe").InvitationDetails;
194
+ };
195
+ }>;
196
+ };
197
+ publicSubscribers: {
198
+ [x: string]: {
199
+ description?: string | undefined;
200
+ subscriber: {
201
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
202
+ value: any;
203
+ updateCount?: bigint | undefined | undefined;
204
+ }>;
205
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
206
+ head: {
207
+ done: true;
208
+ value: any;
209
+ } | {
210
+ done?: false | undefined;
211
+ value: any;
212
+ };
213
+ publishCount: bigint;
214
+ tail: {
215
+ "Symbol(passStyle)": "tagged";
216
+ [Symbol.toStringTag]: "Vow";
217
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
218
+ };
219
+ }>;
220
+ } | {};
221
+ storagePath: string;
222
+ };
223
+ };
224
+ }>;
225
+ getBalance(denom: import("@agoric/orchestration").DenomArg, opts?: import("@agoric/orchestration").QuerierOptions | undefined): Vow<{
226
+ denom: Denom;
227
+ value: bigint;
228
+ }>;
229
+ getBalances(opts?: import("@agoric/orchestration").QuerierOptions | undefined): Vow<{
230
+ denom: Denom;
231
+ value: bigint;
232
+ }[]>;
233
+ getPublicTopics(): Vow<{
234
+ [x: string]: {
235
+ description?: string | undefined;
236
+ subscriber: {
237
+ getUpdateSince: (updateCount?: number | bigint | undefined) => Vow<{
238
+ value: {};
239
+ updateCount?: bigint | undefined | undefined;
240
+ }>;
241
+ subscribeAfter: (publishCount?: bigint | undefined) => Vow<{
242
+ head: {
243
+ done: true;
244
+ value: any;
245
+ } | {
246
+ done?: false | undefined;
247
+ value: {};
248
+ };
249
+ publishCount: bigint;
250
+ tail: {
251
+ "Symbol(passStyle)": "tagged";
252
+ [Symbol.toStringTag]: "Vow";
253
+ payload: import("@agoric/vow").VowPayload</*elided*/ any>;
254
+ };
255
+ }>;
256
+ } | {};
257
+ storagePath: string;
258
+ };
259
+ }>;
260
+ /**
261
+ * @param {string} validatorAddress
262
+ * @param {Amount<'nat'>} ertpAmount
263
+ */
264
+ delegate(validatorAddress: string, ertpAmount: Amount<"nat">): Vow<Record<PropertyKey, unknown>>;
265
+ /**
266
+ * @param {string} validatorAddress
267
+ * @param {Amount<'nat'>} ertpAmount
268
+ * @returns {Vow<void | TimestampRecord>}
269
+ */
270
+ undelegate(validatorAddress: string, ertpAmount: Amount<"nat">): Vow<void | TimestampRecord>;
271
+ deposit(payment: import("@agoric/ertp").Payment<"nat">): Vow<{
272
+ brand: {
273
+ "Symbol(passStyle)": "remotable";
274
+ [Symbol.toStringTag]: string;
275
+ isMyIssuer: (allegedIssuer: import("@agoric/vow").ERef<import("@agoric/ertp").Issuer<"nat", import("@endo/patterns").Key>>) => Promise<boolean>;
276
+ getAllegedName: () => string;
277
+ getDisplayInfo: () => import("@agoric/ertp").DisplayInfo<"nat">;
278
+ getAmountShape: () => import("@endo/patterns").Pattern;
279
+ };
280
+ value: bigint;
281
+ }>;
282
+ withdraw(amount: import("@agoric/ertp").NatAmount): Vow<import("@agoric/ertp").Payment<"nat">>;
283
+ executeTx(messages: {
284
+ '@type': string;
285
+ }[]): Vow<{
286
+ '@type': string;
287
+ }[]>;
288
+ getAddress(): CosmosChainAddress;
289
+ send(toAccount: AccountIdArg, amount: AmountArg, opts?: import("@agoric/orchestration").ActionOptions | undefined): Vow<{}>;
290
+ sendAll(toAccount: CosmosChainAddress, amounts: AmountArg[], opts?: import("@agoric/orchestration").ActionOptions | undefined): Vow<{}>;
291
+ transfer(destination: AccountIdArg, amount: AmountArg, opts?: IBCMsgTransferOptions | undefined): Vow<{}>;
292
+ parseInboundTransfer(packet: Record<string, any>): Vow<{
293
+ amount: {
294
+ denom: Denom;
295
+ value: bigint;
296
+ };
297
+ fromAccount: string;
298
+ toAccount: string;
299
+ extra: {
300
+ [x: string]: any;
301
+ };
302
+ }>;
303
+ transferSteps(amount: AmountArg, msg: import("@agoric/orchestration").TransferMsg): Vow<{}>;
304
+ sendThenWaitForAck(packetSender: Remote<import("./packet-tools.js").PacketSender>, opts?: import("./packet-tools.js").PacketOptions | undefined): Vow<string>;
305
+ matchFirstPacket(args_0?: import("@agoric/vow").EVow<import("@endo/patterns").Pattern>): Vow<{
306
+ resolver: {
307
+ resolve: (value?: any) => void;
308
+ reject: (reason?: any) => void;
309
+ };
310
+ match: {
311
+ "Symbol(passStyle)": "tagged";
312
+ [Symbol.toStringTag]: "Vow";
313
+ payload: import("@agoric/vow").VowPayload<any>;
314
+ };
315
+ }>;
316
+ monitorTransfers(tap: import("@agoric/vats/src/bridge-target.js").TargetApp): Vow<{
317
+ /**
318
+ * performs unregistration (and sends the
319
+ * corresponding "BRIDGE_TARGET_UNREGISTER" message to the targetHost).
320
+ */
321
+ revoke: () => Vow<void>;
322
+ /**
323
+ * replaces the app associated with the target (but with no corresponding
324
+ * message).
325
+ */
326
+ updateTargetApp: (targetApp: import("@agoric/vow").ERef<import("@agoric/vats/src/bridge-target.js").TargetApp>) => Vow<void>;
327
+ }>;
328
+ };
329
+ pickDataWatcher: {
330
+ onFulfilled<V extends {}, K extends keyof V>(value: V, key: K): V[K];
331
+ };
332
+ overrideVowWatcher: {
333
+ onFulfilled<V>(_value: unknown, newValue: V): V;
334
+ };
335
+ /** @deprecated replaced by transferWatcher */
336
+ transferWithMetaWatcher: {
337
+ /**
338
+ * @param {readonly [
339
+ * ChainInfo,
340
+ * ChainInfo,
341
+ * Pick<IBCConnectionInfo, 'transferChannel'>,
342
+ * bigint,
343
+ * ]} details
344
+ * @param {{
345
+ * opts?: Omit<IBCMsgTransferOptions, 'forwardOpts'>;
346
+ * route: TransferRoute;
347
+ * }} ctx
348
+ */
349
+ onFulfilled(details: readonly [ChainInfo, ChainInfo, Pick<IBCConnectionInfo, "transferChannel">, bigint], ctx: {
350
+ opts?: Omit<IBCMsgTransferOptions, "forwardOpts">;
351
+ route: TransferRoute;
352
+ }): {
353
+ result: Vow<string>;
354
+ meta: {};
355
+ };
356
+ };
357
+ }>;
358
+ export type LocalChainAccountNotification = {
359
+ address: string;
360
+ };
361
+ /**
362
+ * Internal to the LocalOrchestrationAccount exo
363
+ */
364
+ export type State = {
365
+ topicKit: RecorderKit<LocalChainAccountNotification> | undefined;
366
+ packetTools: PacketTools;
367
+ account: LocalChainAccount;
368
+ address: CosmosChainAddress;
369
+ };
370
+ export type MakeLocalOrchestrationAccountKit = ReturnType<typeof prepareLocalOrchestrationAccountKit>;
371
+ export type LocalOrchestrationAccountKit = ReturnType<MakeLocalOrchestrationAccountKit>;
372
+ import type { Zone } from '@agoric/zone';
373
+ import type { MakeRecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
374
+ import type { ZCF } from '@agoric/zoe';
375
+ import type { TimerService } from '@agoric/time';
376
+ import type { Remote } from '@agoric/internal';
377
+ import type { VowTools } from '@agoric/vow';
378
+ import type { ChainHub } from './chain-hub.js';
379
+ import type { LocalChain } from '@agoric/vats/src/localchain.js';
380
+ import type { ZoeTools } from '../utils/zoe-tools.js';
381
+ import type { MakeProgressTracker } from '../utils/progress.js';
382
+ import type { LocalChainAccount } from '@agoric/vats/src/localchain.js';
383
+ import type { CosmosChainAddress } from '@agoric/orchestration';
384
+ import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
385
+ import type { AmountArg } from '@agoric/orchestration';
386
+ import type { Coin } from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
387
+ import type { Vow } from '@agoric/vow';
388
+ import type { Amount } from '@agoric/ertp';
389
+ import type { TimestampRecord } from '@agoric/time';
390
+ import type { AccountIdArg } from '@agoric/orchestration';
391
+ import type { IBCMsgTransferOptions } from '@agoric/orchestration';
392
+ import type { TypedJson } from '@agoric/cosmic-proto';
393
+ import type { JsonSafe } from '@agoric/cosmic-proto';
394
+ import type { CosmosChainInfo } from '@agoric/orchestration';
395
+ import type { ChainInfo } from '@agoric/orchestration';
396
+ import type { IBCConnectionInfo } from '@agoric/network/ibc';
397
+ import type { TransferRoute } from '@agoric/orchestration';
398
+ import type { DenomAmount } from '@agoric/orchestration';
399
+ import type { ZCFSeat } from '@agoric/zoe';
400
+ import type { ResponseTo } from '@agoric/cosmic-proto';
401
+ import type { LocalAccountMethods } from '@agoric/orchestration';
402
+ import type { Denom } from '@agoric/orchestration';
403
+ import type { RecorderKit } from '@agoric/zoe/src/contractSupport/recorder.js';
404
+ import type { PacketTools } from './packet-tools.js';
405
+ //# sourceMappingURL=local-orchestration-account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"local-orchestration-account.d.ts","sourceRoot":"","sources":["local-orchestration-account.js"],"names":[],"mappings":"AAwLO,0DAXI,IAAI,0GAEZ;IAAgC,eAAe,EAAvC,eAAe;IACH,GAAG,EAAf,GAAG;IAC0B,YAAY,EAAzC,OAAO,YAA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