@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":"cosmos-orchestration-account.d.ts","sourceRoot":"","sources":["cosmos-orchestration-account.js"],"names":[],"mappings":"AAsPA,wCAAwC;AACxC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMG;AAOH;;;;;;;;;;;GAoBE;AAaK,2DATI,IAAI,oFAEZ;IAAyB,QAAQ,EAAzB,QAAQ;IACoB,mBAAmB,EAA/C,mBAAmB;IACK,eAAe,EAAvC,eAAe;IACc,YAAY,EAAzC,OAAO,YAAY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;6BAWlC,sBAAsB;iCAXD,aAAa;mCAAb,aAAa;iCAEd,6CAA6C"}
@@ -0,0 +1,27 @@
1
+ import type { IBCConnectionID } from '@agoric/network/ibc';
2
+ import type { Vow } from '@agoric/vow';
3
+ import type { IcaAccount } from '../cosmos-api.js';
4
+ import type { ICAChannelAddressOpts } from '../utils/address.js';
5
+ import type { ICQConnection } from './icq-connection-kit.js';
6
+ /**
7
+ * Authority to make a Cosmos interchain account or an interchain query connection.
8
+ */
9
+ export interface CosmosInterchainService {
10
+ /**
11
+ * @param {string} chainId
12
+ * @param {IBCConnectionID} hostConnectionId the counterparty
13
+ * connection_id
14
+ * @param {IBCConnectionID} controllerConnectionId self connection_id
15
+ * @param {ICAChannelAddressOpts} [opts] optional to configure the
16
+ * channel address, such as version and ordering
17
+ * @returns {Vow<IcaAccount>}
18
+ */
19
+ makeAccount(chainId: string, hostConnectionId: IBCConnectionID, controllerConnectionId: IBCConnectionID, opts?: ICAChannelAddressOpts | undefined): Vow<IcaAccount>;
20
+ /**
21
+ * @param {IBCConnectionID} controllerConnectionId
22
+ * @param {string} [version]
23
+ * @returns {Vow<ICQConnection> | ICQConnection}
24
+ */
25
+ provideICQConnection(controllerConnectionId: IBCConnectionID, version?: string | undefined): Vow<ICQConnection> | ICQConnection;
26
+ }
27
+ //# sourceMappingURL=exo-interfaces.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exo-interfaces.d.ts","sourceRoot":"","sources":["exo-interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;;;;;;;OAQG;IACH,WAAW,CACT,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,eAAe,EACjC,sBAAsB,EAAE,eAAe,EACvC,IAAI,CAAC,EAAE,qBAAqB,GAAG,SAAS,GACvC,GAAG,CAAC,UAAU,CAAC,CAAC;IACnB;;;;OAIG;IACH,oBAAoB,CAClB,sBAAsB,EAAE,eAAe,EACvC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,GAC3B,GAAG,CAAC,aAAa,CAAC,GAAG,aAAa,CAAC;CACvC"}
@@ -0,0 +1,101 @@
1
+ export const ICS20_TRANSFER_SUCCESS_BYTES: "\u0001";
2
+ export const ICS20_TRANSFER_SUCCESS_RESULT: string;
3
+ export function createSequencePattern(sequence: any): Pattern;
4
+ export function prepareIBCTransferSender(zone: Zone, { watch, makeIBCReplyKit }: VowTools & {
5
+ makeIBCReplyKit: MakeIBCReplyKit;
6
+ }): (...args: Parameters<(txExecutor: {
7
+ executeTx: LocalChainAccount["executeTx"];
8
+ }, transferMsg: import("@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js").MsgTransfer & {
9
+ '@type': "/ibc.applications.transfer.v1.MsgTransfer";
10
+ }) => import("@endo/exo").GuardedKit<{
11
+ public: {
12
+ /**
13
+ * @param {Vow<
14
+ * IBCEvent<'acknowledgementPacket'> | IBCEvent<'timeoutPacket'>
15
+ * >} match
16
+ * @param {PacketOptions} opts
17
+ */
18
+ sendPacket(match: Vow<IBCEvent<"acknowledgementPacket"> | IBCEvent<"timeoutPacket">>, opts: PacketOptions): Vow<{
19
+ resultV: Vow<string>;
20
+ eventPattern: import("@endo/patterns").Matcher;
21
+ }>;
22
+ };
23
+ responseWatcher: {
24
+ /**
25
+ * Wait for successfully sending the transfer packet.
26
+ *
27
+ * @param {[
28
+ * JsonSafe<
29
+ * ResponseTo<
30
+ * TypedJson<'/ibc.applications.transfer.v1.MsgTransfer'>
31
+ * >
32
+ * >,
33
+ * ]} response
34
+ * @param {{
35
+ * opts: PacketOptions;
36
+ * match: Vow<
37
+ * IBCEvent<'acknowledgementPacket'> | IBCEvent<'timeoutPacket'>
38
+ * >;
39
+ * }} ctx
40
+ */
41
+ onFulfilled([{ sequence }]: [JsonSafe<ResponseTo<TypedJson<"/ibc.applications.transfer.v1.MsgTransfer">>>], ctx: {
42
+ opts: PacketOptions;
43
+ match: Vow<IBCEvent<"acknowledgementPacket"> | IBCEvent<"timeoutPacket">>;
44
+ }): {
45
+ resultV: Vow<string>;
46
+ eventPattern: import("@endo/patterns").Matcher;
47
+ };
48
+ };
49
+ verifyTransferSuccess: {
50
+ onFulfilled(ackData: any): string;
51
+ };
52
+ }>>) => import("@endo/exo").Guarded<{
53
+ /**
54
+ * @param {Vow<
55
+ * IBCEvent<'acknowledgementPacket'> | IBCEvent<'timeoutPacket'>
56
+ * >} match
57
+ * @param {PacketOptions} opts
58
+ */
59
+ sendPacket(match: Vow<IBCEvent<"acknowledgementPacket"> | IBCEvent<"timeoutPacket">>, opts: PacketOptions): Vow<{
60
+ resultV: Vow<string>;
61
+ eventPattern: import("@endo/patterns").Matcher;
62
+ }>;
63
+ }>;
64
+ export function prepareIBCReplyKit(zone: Zone, vowTools: VowTools): <E extends IBCEvent<"acknowledgementPacket"> | IBCEvent<"timeoutPacket"> = IBCEvent<"acknowledgementPacket"> | IBCEvent<"timeoutPacket">>(replyPacketPattern: Pattern, matchV: Vow<E>, opts: PacketOptions) => {
65
+ eventPattern: import("@endo/patterns").Matcher;
66
+ resultV: Vow<string>;
67
+ };
68
+ export function prepareIBCTools(zone: Zone, vowTools: VowTools): {
69
+ makeIBCTransferSender: (txExecutor: {
70
+ executeTx: LocalChainAccount["executeTx"];
71
+ }, transferMsg: import("@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js").MsgTransfer & {
72
+ '@type': "/ibc.applications.transfer.v1.MsgTransfer";
73
+ }) => import("@endo/exo").Guarded<{
74
+ /**
75
+ * @param {Vow<
76
+ * IBCEvent<'acknowledgementPacket'> | IBCEvent<'timeoutPacket'>
77
+ * >} match
78
+ * @param {PacketOptions} opts
79
+ */
80
+ sendPacket(match: Vow<IBCEvent<"acknowledgementPacket"> | IBCEvent<"timeoutPacket">>, opts: PacketOptions): Vow<{
81
+ resultV: Vow<string>;
82
+ eventPattern: import("@endo/patterns").Matcher;
83
+ }>;
84
+ }>;
85
+ makeIBCReplyKit: <E extends IBCEvent<"acknowledgementPacket"> | IBCEvent<"timeoutPacket"> = IBCEvent<"acknowledgementPacket"> | IBCEvent<"timeoutPacket">>(replyPacketPattern: Pattern, matchV: Vow<E>, opts: PacketOptions) => {
86
+ eventPattern: import("@endo/patterns").Matcher;
87
+ resultV: Vow<string>;
88
+ };
89
+ };
90
+ export type MakeIBCReplyKit = ReturnType<typeof prepareIBCReplyKit>;
91
+ import type { Pattern } from '@endo/patterns';
92
+ import type { Zone } from '@agoric/base-zone';
93
+ import type { VowTools } from '@agoric/vow';
94
+ import type { IBCEvent } from '@agoric/vats';
95
+ import type { Vow } from '@agoric/vow';
96
+ import type { PacketOptions } from './packet-tools.js';
97
+ import type { LocalChainAccount } from '@agoric/vats/src/localchain.js';
98
+ import type { TypedJson } from '@agoric/cosmic-proto';
99
+ import type { ResponseTo } from '@agoric/cosmic-proto';
100
+ import type { JsonSafe } from '@agoric/cosmic-proto';
101
+ //# sourceMappingURL=ibc-packet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ibc-packet.d.ts","sourceRoot":"","sources":["ibc-packet.js"],"names":[],"mappings":"AAUA,2CAA4C,QAAM,CAAC;AACnD,mDAAgF;AAwBzE,gDAHI,GAAG,GACD,OAAO,CAgCnB;AAOM,+CAHI,IAAI,8BACJ,QAAQ,GAAG;IAAE,eAAe,EAAE,eAAe,CAAA;CAAE,IA6IhD,GAAG,MAFA,UAAU;eAzHH,iBAAiB,CAAC,WAAW,CAAC;;;;;QAU1C;;;;;WAKG;0BAJQ,IACV,SAAa,uBAAuB,CAAC,GAAG,SAAS,eAAe,CAAC,CAC9D,QACO,aAAa;;;;;;QAYxB;;;;;;;;;;;;;;;;WAgBG;oCAbQ,CACV,SACA,WACA,UAAkB,2CAA2C,CAAC,CACvD,CACF,CACF,OACO;YACN,IAAI,EAAE,aAAa,CAAC;YACpB,KAAK,EAAE,IACX,SAAe,uBAAuB,CAAC,GAAG,SAAS,eAAe,CAAC,CAC9D,CAAC;SACH;;;;;;;;GAkFK;IAjHT;;;;;OAKG;sBAJQ,IACV,SAAa,uBAAuB,CAAC,GAAG,SAAS,eAAe,CAAC,CAC9D,QACO,aAAa;;;;GA8G/B;AAaM,yCAHI,IAAI,YACJ,QAAQ,IAqC6D,CAAC,SAAjE,SAAS,uBAAuB,CAAC,GAAG,SAAS,eAAe,CAAE,sFACjE,OAAO,UACP,IAAI,CAAC,CAAC,QACN,aAAa;;;EAmBzB;AAQM,sCAHI,IAAI,YACJ,QAAQ;;mBAxMC,iBAAiB,CAAC,WAAW,CAAC;;;;QAU1C;;;;;WAKG;0BAJQ,IACV,SAAa,uBAAuB,CAAC,GAAG,SAAS,eAAe,CAAC,CAC9D,QACO,aAAa;;;;;sBA8JgD,CAAC,SAAjE,SAAS,uBAAuB,CAAC,GAAG,SAAS,eAAe,CAAE,sFACjE,OAAO,UACP,IAAI,CAAC,CAAC,QACN,aAAa;;;;EAkCzB;8BAba,UAAU,CAAC,OAAO,kBAAkB,CAAC;6BA5QpB,gBAAgB;0BAOxB,mBAAmB;8BAJV,aAAa;8BACP,cAAc;yBADpB,aAAa;mCAGb,mBAAmB;uCADf,gCAAgC;+BAJlB,sBAAsB;gCAAtB,sBAAsB;8BAAtB,sBAAsB"}
@@ -0,0 +1,98 @@
1
+ export const IcaAccountI: import("@endo/patterns").InterfaceGuard<{
2
+ getAddress: import("@endo/patterns").MethodGuard;
3
+ getLocalAddress: import("@endo/patterns").MethodGuard;
4
+ getRemoteAddress: import("@endo/patterns").MethodGuard;
5
+ getPort: import("@endo/patterns").MethodGuard;
6
+ executeTx: import("@endo/patterns").MethodGuard;
7
+ executeEncodedTx: import("@endo/patterns").MethodGuard;
8
+ deactivate: import("@endo/patterns").MethodGuard;
9
+ reactivate: import("@endo/patterns").MethodGuard;
10
+ }>;
11
+ export function prepareIcaAccountKit(zone: Zone, { watch, asVow }: VowTools): (chainId: string, port: Port, requestedRemoteAddress: string) => import("@endo/exo").GuardedKit<{
12
+ parseTxPacketWatcher: {
13
+ /** @param {string} ack */
14
+ onFulfilled(ack: string): string;
15
+ };
16
+ account: {
17
+ /** @returns {CosmosChainAddress} */
18
+ getAddress(): CosmosChainAddress;
19
+ getLocalAddress(): `/ibc-port/${string}`;
20
+ getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
21
+ getPort(): Port;
22
+ executeTx(): Vow<never>;
23
+ /**
24
+ * Submit a transaction on behalf of the remote account for execution on
25
+ * the remote chain.
26
+ *
27
+ * Set `relativeTimeoutNs` to provide a timeout for the IBC packet.
28
+ *
29
+ * `TxBody` fields like `timeoutHeight` and `memo` can be set, but these
30
+ * typically do not affect IBC app protocols like PFM, ICA.
31
+ *
32
+ * @param {AnyJson[]} msgs
33
+ * @param {CosmosActionOptions['txOpts'] & CosmosActionOptions} [opts]
34
+ * @returns {Vow<string>} - base64 encoded bytes string. Can be decoded
35
+ * using the corresponding `Msg*Response` object.
36
+ * @throws {Error} if packet fails to send or an error is returned
37
+ */
38
+ executeEncodedTx(msgs: AnyJson[], opts?: CosmosActionOptions["txOpts"] & CosmosActionOptions): Vow<string>;
39
+ deactivate(): Vow<void>;
40
+ reactivate(): Vow<void>;
41
+ };
42
+ connectionHandler: {
43
+ /**
44
+ * @param {Remote<Connection>} connection
45
+ * @param {LocalIbcAddress} localAddr
46
+ * @param {RemoteIbcAddress} remoteAddr
47
+ */
48
+ onOpen(connection: Remote<Connection>, localAddr: LocalIbcAddress, remoteAddr: RemoteIbcAddress): Promise<void>;
49
+ /**
50
+ * This handler fires any time the connection (channel) closes. This
51
+ * could be due to external factors (e.g. a packet timeout), or a holder
52
+ * initiated action (`.deactivate()`).
53
+ *
54
+ * Here, if a connection is opened again, we clear the connection and
55
+ * addresses from state as they will change - a new channel will be
56
+ * established if the connection is reopened.
57
+ *
58
+ * If the holder did not initiate the closure, a new connection is
59
+ * established using the original requested remote address. This will
60
+ * result in a new channelID but the ChainAddress will be preserved.
61
+ *
62
+ * @param {Remote<Connection>} _connection
63
+ * @param {unknown} reason
64
+ * @see {@link https://docs.cosmos.network/v0.45/ibc/overview.html#:~:text=In%20ORDERED%20channels%2C%20a%20timeout%20of%20a%20single%20packet%20in%20the%20channel%20closes%20the%20channel.}
65
+ */
66
+ onClose(_connection: Remote<Connection>, reason: unknown): Promise<void>;
67
+ };
68
+ }>;
69
+ /**
70
+ * Internal to the IcaAccountKit exo
71
+ */
72
+ export type State = {
73
+ chainId: string;
74
+ port: Port;
75
+ connection: Remote<Connection> | undefined;
76
+ localAddress: LocalIbcAddress | undefined;
77
+ requestedRemoteAddress: string;
78
+ remoteAddress: RemoteIbcAddress | undefined;
79
+ chainAddress: (CosmosChainAddress | {
80
+ value: typeof UNPARSABLE_CHAIN_ADDRESS;
81
+ }) | undefined;
82
+ isInitiatingClose: boolean;
83
+ };
84
+ export type IcaAccountKit = ReturnType<ReturnType<typeof prepareIcaAccountKit>>;
85
+ import type { Zone } from '@agoric/base-zone';
86
+ import type { VowTools } from '@agoric/vow';
87
+ import type { Port } from '@agoric/network';
88
+ import type { CosmosChainAddress } from '../types.js';
89
+ import type { Vow } from '@agoric/vow';
90
+ import type { AnyJson } from '@agoric/cosmic-proto';
91
+ import type { CosmosActionOptions } from '../types.js';
92
+ import type { Connection } from '@agoric/network';
93
+ import type { Remote } from '@agoric/vow';
94
+ import type { LocalIbcAddress } from '@agoric/network/ibc';
95
+ import type { RemoteIbcAddress } from '@agoric/network/ibc';
96
+ declare const UNPARSABLE_CHAIN_ADDRESS: "UNPARSABLE_CHAIN_ADDRESS";
97
+ export {};
98
+ //# sourceMappingURL=ica-account-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ica-account-kit.d.ts","sourceRoot":"","sources":["ica-account-kit.js"],"names":[],"mappings":"AA8BA;;;;;;;;;GAWG;AA4BI,2CAJI,IAAI,oBACJ,QAAQ;;QAiCX,0BAA0B;yBAAd,MAAM;;;QAMlB,oCAAoC;sBAAtB,kBAAkB;;;;;QA0BhC;;;;;;;;;;;;;;WAcG;+BALQ,OAAO,EAAE,SACT,mBAAmB,CAAC,QAAQ,CAAC,GAAG,mBAAmB,GACjD,IAAI,MAAM,CAAC;;;;;QAgDxB;;;;WAIG;2BAHQ,OAAO,UAAU,CAAC,aAClB,eAAe,cACf,gBAAgB;QAiB3B;;;;;;;;;;;;;;;;WAgBG;6BAHQ,OAAO,UAAU,CAAC,UAClB,OAAO;;GAkBvB;;;;oBApMU;IACR,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,eAAe,GAAG,SAAS,CAAC;IAC1C,sBAAsB,EAAE,MAAM,CAAC;IAC/B,aAAa,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC5C,YAAY,EACR,CAAC,kBAAkB,GAAG;QAAE,KAAK,EAAE,OAAO,wBAAwB,CAAA;KAAE,CAAC,GACjE,SAAS,CAAC;IACd,iBAAiB,EAAE,OAAO,CAAC;CAC5B;4BA2LU,UAAU,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;0BAnO1C,mBAAmB;8BAEU,aAAa;0BADV,iBAAiB;wCAKF,aAAa;yBAJ/B,aAAa;6BACvC,sBAAsB;yCAGsB,aAAa;gCAL5B,iBAAiB;4BACpB,aAAa;qCAGb,qBAAqB;sCAArB,qBAAqB;AAMzE,wCAAiC,0BAA0B,CAAC"}
@@ -0,0 +1,67 @@
1
+ export const ICQConnectionI: import("@endo/patterns").InterfaceGuard<{
2
+ getLocalAddress: import("@endo/patterns").MethodGuard;
3
+ getRemoteAddress: import("@endo/patterns").MethodGuard;
4
+ query: import("@endo/patterns").MethodGuard;
5
+ }>;
6
+ export function prepareICQConnectionKit(zone: Zone, { watch, asVow }: VowTools): (port: Port) => import("@endo/exo").GuardedKit<{
7
+ connection: {
8
+ getLocalAddress(): `/ibc-port/${string}`;
9
+ getRemoteAddress(): `/${string}ibc-port/${string}/ordered/${string}` | `/${string}ibc-port/${string}/unordered/${string}`;
10
+ /**
11
+ * Vow rejects if packet fails to send or an error is returned
12
+ *
13
+ * @param {JsonSafe<RequestQuery>[]} msgs
14
+ * @returns {Vow<JsonSafe<ResponseQuery>[]>}
15
+ */
16
+ query(msgs: JsonSafe<RequestQuery>[]): Vow<JsonSafe<ResponseQuery>[]>;
17
+ };
18
+ parseQueryPacketWatcher: {
19
+ /** @param {string} ack packet acknowledgement string */
20
+ onFulfilled(ack: string): {
21
+ code: number;
22
+ log: string;
23
+ info: string;
24
+ index: string;
25
+ key: string;
26
+ value: string;
27
+ proofOps?: {
28
+ ops: {
29
+ type: string;
30
+ key: string;
31
+ data: string;
32
+ }[];
33
+ } | undefined;
34
+ height: string;
35
+ codespace: string;
36
+ }[];
37
+ };
38
+ connectionHandler: {
39
+ /**
40
+ * @param {Remote<Connection>} connection
41
+ * @param {LocalIbcAddress} localAddr
42
+ * @param {RemoteIbcAddress} remoteAddr
43
+ */
44
+ onOpen(connection: Remote<Connection>, localAddr: LocalIbcAddress, remoteAddr: RemoteIbcAddress): Promise<void>;
45
+ onClose(_connection: any, reason: any): Promise<void>;
46
+ };
47
+ }>;
48
+ export type ICQConnectionKitState = {
49
+ port: Port;
50
+ connection: Remote<Connection> | undefined;
51
+ localAddress: LocalIbcAddress | undefined;
52
+ remoteAddress: RemoteIbcAddress | undefined;
53
+ };
54
+ export type ICQConnectionKit = ReturnType<ReturnType<typeof prepareICQConnectionKit>>;
55
+ export type ICQConnection = ICQConnectionKit["connection"];
56
+ import type { Zone } from '@agoric/base-zone';
57
+ import type { VowTools } from '@agoric/vow';
58
+ import type { Port } from '@agoric/network';
59
+ import type { RequestQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
60
+ import type { JsonSafe } from '@agoric/cosmic-proto';
61
+ import type { ResponseQuery } from '@agoric/cosmic-proto/tendermint/abci/types.js';
62
+ import type { Vow } from '@agoric/vow';
63
+ import type { Connection } from '@agoric/network';
64
+ import type { Remote } from '@agoric/vow';
65
+ import type { LocalIbcAddress } from '@agoric/network/ibc';
66
+ import type { RemoteIbcAddress } from '@agoric/network/ibc';
67
+ //# sourceMappingURL=icq-connection-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icq-connection-kit.d.ts","sourceRoot":"","sources":["icq-connection-kit.js"],"names":[],"mappings":"AAoBA;;;;GAIG;AA8BI,8CAJI,IAAI,oBACJ,QAAQ;;;;QAqCX;;;;;WAKG;oBAFQ,SAAS,YAAY,CAAC,EAAE,GACtB,IAAI,SAAS,aAAa,CAAC,EAAE,CAAC;;;QAc3C,wDAAwD;yBAA5C,MAAM;;;;;;;;;;;;;;;;;;;QAMlB;;;;WAIG;2BAHQ,OAAO,UAAU,CAAC,aAClB,eAAe,cACf,gBAAgB;;;GAahC;oCArGU;IACR,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,EAAE,OAAO,UAAU,CAAC,GAAG,SAAS,CAAC;IAC3C,YAAY,EAAE,eAAe,GAAG,SAAS,CAAC;IAC1C,aAAa,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC7C;+BAkGU,UAAU,CAAC,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;4BACtD,gBAAgB,CAAC,YAAY,CAAC;0BAzHrB,mBAAmB;8BAEF,aAAa;0BADlB,iBAAiB;kCAGN,+CAA+C;8BADlE,sBAAsB;mCACH,+CAA+C;yBAFrD,aAAa;gCADlB,iBAAiB;4BACZ,aAAa;qCAGD,qBAAqB;sCAArB,qBAAqB"}