@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,80 @@
1
+ export function prepareEvmAccountKit(zone: Zone, { zcf, vowTools, log, zoeTools }: {
2
+ zcf: ZCF;
3
+ vowTools: VowTools;
4
+ log: (msg: string) => Vow<void>;
5
+ zoeTools: ZoeTools;
6
+ }): (initialState: EvmTapState) => import("@endo/exo").GuardedKit<{
7
+ tap: {
8
+ /**
9
+ * This function handles incoming packets from the cross-chain
10
+ * communication.
11
+ *
12
+ * NOTE: The implementation here is no longer relevant, as the Factory
13
+ * contract has been updated. Previously, this function was used to
14
+ * receive a response back from the Factory contract deployed on the EVM
15
+ * chain. However, the Factory contract now no longer sends a response
16
+ * to Agoric. Instead, we now fetch that response off-chain and notify
17
+ * the Agoric contract through off-chain mechanisms.
18
+ *
19
+ * @param {VTransferIBCEvent} event
20
+ */
21
+ receiveUpcall(event: VTransferIBCEvent): void;
22
+ };
23
+ holder: {
24
+ getNonce(): bigint;
25
+ getLocalAddress(): `${string}1${string}`;
26
+ getRemoteAddress(): Promise<string | undefined>;
27
+ getLatestMessage(): Promise<string>;
28
+ /**
29
+ * Sends tokens from the local account to a specified Cosmos chain
30
+ * address.
31
+ *
32
+ * @param {CosmosChainAddress} toAccount
33
+ * @param {AmountArg} amount
34
+ * @returns {Promise<string>} A success message upon completion.
35
+ */
36
+ send(toAccount: CosmosChainAddress, amount: AmountArg): Promise<string>;
37
+ /**
38
+ * @param {ZCFSeat} seat
39
+ * @param {{
40
+ * destinationAddress: string;
41
+ * type: GMPMessageType;
42
+ * destinationEVMChain: SupportedEVMChains;
43
+ * gasAmount: number;
44
+ * contractInvocationData: ContractCall[];
45
+ * }} offerArgs
46
+ */
47
+ sendGmp(seat: ZCFSeat, offerArgs: {
48
+ destinationAddress: string;
49
+ type: GMPMessageType;
50
+ destinationEVMChain: SupportedEVMChains;
51
+ gasAmount: number;
52
+ contractInvocationData: ContractCall[];
53
+ }): Promise<string>;
54
+ /**
55
+ * @param {ZCFSeat} seat
56
+ * @param {any} give
57
+ */
58
+ fundLCA(seat: ZCFSeat, give: any): Vow<void>;
59
+ };
60
+ invitationMakers: {
61
+ makeEVMTransactionInvitation(method: any, args: any): Promise<import("@agoric/zoe").Invitation<string | void, undefined>>;
62
+ };
63
+ }>;
64
+ export type ContractCall = ContractCall;
65
+ export type MakeEvmAccountKit = ReturnType<typeof prepareEvmAccountKit>;
66
+ export type EvmAccountKit = ReturnType<MakeEvmAccountKit>;
67
+ import type { Zone } from '@agoric/zone';
68
+ import type { ZCF } from '@agoric/zoe';
69
+ import type { VowTools } from '@agoric/vow';
70
+ import type { Vow } from '@agoric/vow';
71
+ import type { ZoeTools } from '../utils/zoe-tools.js';
72
+ import type { EvmTapState } from '../axelar-types.js';
73
+ import type { VTransferIBCEvent } from '@agoric/vats';
74
+ import type { CosmosChainAddress } from '@agoric/orchestration';
75
+ import type { AmountArg } from '@agoric/orchestration';
76
+ import type { ZCFSeat } from '@agoric/zoe';
77
+ import type { GMPMessageType } from '../axelar-types.js';
78
+ import type { SupportedEVMChains } from '../axelar-types.js';
79
+ import type { ContractCall } from '../axelar-types.js';
80
+ //# sourceMappingURL=axelar-gmp-account-kit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axelar-gmp-account-kit.d.ts","sourceRoot":"","sources":["axelar-gmp-account-kit.js"],"names":[],"mappings":"AAoEO,2CARI,IAAI,oCACJ;IACN,GAAG,EAAE,GAAG,CAAC;IACT,QAAQ,EAAE,QAAQ,CAAC;IACnB,GAAG,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,IAAI,CAAC,CAAC;IAChC,QAAQ,EAAE,QAAQ,CAAC;CACpB;;QAwCI;;;;;;;;;;;;WAYG;6BADQ,iBAAiB;;;;;;;QA8E5B;;;;;;;WAOG;wBAHQ,kBAAkB,UAClB,SAAS,GACP,OAAO,CAAC,MAAM,CAAC;QAO5B;;;;;;;;;WASG;sBARQ,OAAO,aACP;YACN,kBAAkB,EAAE,MAAM,CAAC;YAC3B,IAAI,EAAE,cAAc,CAAC;YACrB,mBAAmB,EAAE,kBAAkB,CAAC;YACxC,SAAS,EAAE,MAAM,CAAC;YAClB,sBAAsB,EAAE,YAAY,EAAE,CAAC;SACxC;QA4FJ;;;WAGG;sBAFQ,OAAO,QACP,GAAG;;;;;GAoErB;2BA5Wa,YAAY;gCA8WZ,UAAU,CAAC,OAAO,oBAAoB,CAAC;4BACvC,UAAU,CAAC,iBAAiB,CAAC;0BA1XpB,cAAc;yBAKN,aAAa;8BANZ,aAAa;yBAAb,aAAa;8BAIlB,uBAAuB;iCACqC,oBAAoB;uCANvE,cAAc;wCASb,uBAAuB;+BAChC,uBAAuB;6BAHpB,aAAa;oCACY,oBAAoB;wCAFW,oBAAoB;kCAApB,oBAAoB"}
@@ -0,0 +1,52 @@
1
+ export function contract(zcf: ZCF, privateArgs: OrchestrationPowers & {
2
+ marshaller: Remote<Marshaller>;
3
+ chainInfo?: Record<string, CosmosChainInfo>;
4
+ assetInfo?: [Denom, DenomDetail & {
5
+ brandKey?: string;
6
+ }][];
7
+ storageNode: Remote<StorageNode>;
8
+ }, zone: Zone, { chainHub, orchestrateAll, vowTools, zoeTools }: OrchestrationTools): Promise<{
9
+ publicFacet: import("@endo/exo").Guarded<{
10
+ createAndMonitorLCA(): Promise<import("@agoric/zoe").Invitation<Vow<{
11
+ invitationMakers: import("@endo/exo").Guarded<{
12
+ makeEVMTransactionInvitation(method: any, args: any): Promise<import("@agoric/zoe").Invitation<string | void, undefined>>;
13
+ }>;
14
+ }>, undefined>>;
15
+ }>;
16
+ creatorFacet: import("@endo/exo").Guarded<{
17
+ registerChain(chainName: string, chainInfo: import("@agoric/orchestration").ChainInfo, ibcConnectionInfo?: import("@agoric/orchestration").IBCConnectionInfo): Promise<void>;
18
+ registerAsset(denom: Denom, detail: DenomDetail): Promise<void>;
19
+ }>;
20
+ }>;
21
+ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: OrchestrationPowers & {
22
+ marshaller: Remote<Marshaller>;
23
+ chainInfo?: Record<string, CosmosChainInfo>;
24
+ assetInfo?: [Denom, DenomDetail & {
25
+ brandKey?: string;
26
+ }][];
27
+ storageNode: Remote<StorageNode>;
28
+ }, baggage: import("@agoric/vat-data").Baggage) => Promise<{
29
+ publicFacet: import("@endo/exo").Guarded<{
30
+ createAndMonitorLCA(): Promise<import("@agoric/zoe").Invitation<Vow<{
31
+ invitationMakers: import("@endo/exo").Guarded<{
32
+ makeEVMTransactionInvitation(method: any, args: any): Promise<import("@agoric/zoe").Invitation<string | void, undefined>>;
33
+ }>;
34
+ }>, undefined>>;
35
+ }>;
36
+ creatorFacet: import("@endo/exo").Guarded<{
37
+ registerChain(chainName: string, chainInfo: import("@agoric/orchestration").ChainInfo, ibcConnectionInfo?: import("@agoric/orchestration").IBCConnectionInfo): Promise<void>;
38
+ registerAsset(denom: Denom, detail: DenomDetail): Promise<void>;
39
+ }>;
40
+ }>;
41
+ import type { ZCF } from '@agoric/zoe';
42
+ import type { OrchestrationPowers } from '../utils/start-helper.js';
43
+ import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
44
+ import type { Remote } from '@agoric/vow';
45
+ import type { CosmosChainInfo } from '@agoric/orchestration';
46
+ import type { Denom } from '@agoric/orchestration';
47
+ import type { DenomDetail } from '@agoric/orchestration';
48
+ import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
49
+ import type { Zone } from '@agoric/zone';
50
+ import type { OrchestrationTools } from '../utils/start-helper.js';
51
+ import type { Vow } from '@agoric/vow';
52
+ //# sourceMappingURL=axelar-gmp.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axelar-gmp.contract.d.ts","sourceRoot":"","sources":["axelar-gmp.contract.js"],"names":[],"mappings":"AAiCO,8BAVI,GAAG,eACH,mBAAmB,GAAG;IAC5B,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC5C,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IAC3D,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;CAClC,QACO,IAAI,oDACJ,kBAAkB;;;;;;;;;;;;GA8D5B;AAGD;gBAvEiB,OAAO,UAAU,CAAC;gBAClB,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;gBAC/B,CAAC,KAAK,EAAE,WAAW,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE;iBAC7C,OAAO,WAAW,CAAC;;;;;;;;;;;;;GAoEY;yBAjFlB,aAAa;yCAHc,0BAA0B;gCAE1C,0CAA0C;4BAJtD,aAAa;qCAGW,uBAAuB;2BAAvB,uBAAuB;iCAAvB,uBAAuB;iCACnC,0CAA0C;0BAH7D,cAAc;wCACqB,0BAA0B;yBAFtD,aAAa"}
@@ -0,0 +1,21 @@
1
+ export function createAndMonitorLCA(orch: Orchestrator, { makeEvmAccountKit, chainHub, log, localTransfer, withdrawToSeat }: {
2
+ makeEvmAccountKit: MakeEvmAccountKit;
3
+ chainHub: GuestInterface<ChainHub>;
4
+ log: GuestOf<(msg: string) => Vow<void>>;
5
+ localTransfer: GuestOf<(srcSeat: ZCFSeat, localAccount: LocalAccountMethods, amounts: AmountKeywordRecord) => Vow<void>>;
6
+ withdrawToSeat: GuestOf<(localAccount: LocalAccountMethods, destSeat: ZCFSeat, amounts: AmountKeywordRecord) => Vow<void>>;
7
+ }, seat: ZCFSeat): Promise<{
8
+ invitationMakers: import("@endo/exo").Guarded<{
9
+ makeEVMTransactionInvitation(method: any, args: any): Promise<import("@agoric/zoe").Invitation<string | void, undefined>>;
10
+ }>;
11
+ }>;
12
+ import type { Orchestrator } from '@agoric/orchestration';
13
+ import type { MakeEvmAccountKit } from './axelar-gmp-account-kit.js';
14
+ import type { ChainHub } from '@agoric/orchestration/src/exos/chain-hub.js';
15
+ import type { GuestInterface } from '@agoric/async-flow';
16
+ import type { Vow } from '@agoric/vow';
17
+ import type { GuestOf } from '@agoric/async-flow';
18
+ import type { ZCFSeat } from '@agoric/zoe';
19
+ import type { LocalAccountMethods } from '@agoric/orchestration';
20
+ import type { AmountKeywordRecord } from '@agoric/zoe';
21
+ //# sourceMappingURL=axelar-gmp.flows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axelar-gmp.flows.d.ts","sourceRoot":"","sources":["axelar-gmp.flows.js"],"names":[],"mappings":"AAsDO,0CAtBI,YAAY,uEACZ;IACN,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,QAAQ,EAAE,eAAe,QAAQ,CAAC,CAAC;IACnC,GAAG,EAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC;IACzC,aAAa,EAAE,QACnB,CACQ,OAAO,EAAE,OAAO,EAChB,YAAY,EAAE,mBAAmB,EACjC,OAAO,EAAE,mBAAmB,KACzB,IAAI,IAAI,CAAC,CACf,CAAC;IACF,cAAc,EAAE,QACpB,CACQ,YAAY,EAAE,mBAAmB,EACjC,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,mBAAmB,KACzB,IAAI,IAAI,CAAC,CACf,CAAC;CACH,QACO,OAAO;;;;GA2GjB;kCA5IiD,uBAAuB;uCACrC,6BAA6B;8BACtC,6CAA6C;oCAH9B,oBAAoB;yBAIxC,aAAa;6BAJO,oBAAoB;6BAKf,aAAa;yCACtB,uBAAuB;yCADd,aAAa"}
@@ -0,0 +1,32 @@
1
+ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: OrchestrationPowers & {
2
+ marshaller: Remote<Marshaller>;
3
+ chainInfo?: Record<string, CosmosChainInfo>;
4
+ assetInfo?: [Denom, DenomDetail & {
5
+ brandKey?: string;
6
+ }][];
7
+ }, baggage: import("@agoric/vat-data").Baggage) => Promise<{
8
+ publicFacet: import("@endo/exo").Guarded<{
9
+ makeOrchAccountInvitation(): Promise<import("@agoric/zoe").Invitation<import("@agoric/vow").Vow<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>, {
10
+ chainName: string;
11
+ }>>;
12
+ makePortfolioAccountInvitation(): Promise<import("@agoric/zoe").Invitation<import("@agoric/vow").Vow<import("@agoric/vow").Vow<{
13
+ publicSubscribers: {
14
+ [k: string]: import("@agoric/zoe/src/contractSupport/topics.js").ResolvedPublicTopic<unknown>;
15
+ };
16
+ invitationMakers: import("@endo/exo").Guarded<{
17
+ Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs?: IA): Promise<import("@agoric/zoe").Invitation<unknown, IA>>;
18
+ }>;
19
+ }>>, {
20
+ chainNames: string[];
21
+ }>>;
22
+ }>;
23
+ }>;
24
+ export type BasicFlowsSF = typeof start;
25
+ import type { ZCF } from '@agoric/zoe';
26
+ import type { OrchestrationPowers } from '../utils/start-helper.js';
27
+ import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
28
+ import type { Remote } from '@agoric/internal';
29
+ import type { CosmosChainInfo } from '@agoric/orchestration';
30
+ import type { Denom } from '@agoric/orchestration';
31
+ import type { DenomDetail } from '@agoric/orchestration';
32
+ //# sourceMappingURL=basic-flows.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-flows.contract.d.ts","sourceRoot":"","sources":["basic-flows.contract.js"],"names":[],"mappings":"AA2EA;gBApDiB,OAAO,UAAU,CAAC;gBAClB,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;gBAC/B,CAAC,KAAK,EAAE,WAAW,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE;;;;;;;;;;;;;;;;;GAkDgB;2BAGjE,OAAO,KAAK;yBA/DJ,aAAa;yCACuB,0BAA0B;gCACvD,0CAA0C;4BAL9C,kBAAkB;qCAEW,uBAAuB;2BAAvB,uBAAuB;iCAAvB,uBAAuB"}
@@ -0,0 +1,20 @@
1
+ export function makeOrchAccount(orch: Orchestrator, _ctx: any, seat: ZCFSeat, { chainName }: {
2
+ chainName: string;
3
+ }): Promise<import("../utils/zoe-tools.js").ResolvedContinuingOfferResult>;
4
+ export function makePortfolioAccount(orch: Orchestrator, { makePortfolioHolder }: {
5
+ makePortfolioHolder: MakePortfolioHolder;
6
+ }, seat: ZCFSeat, { chainNames }: {
7
+ chainNames: string[];
8
+ }): Promise<import("@agoric/vow").Vow<{
9
+ publicSubscribers: {
10
+ [k: string]: ResolvedPublicTopic<unknown>;
11
+ };
12
+ invitationMakers: import("@endo/exo").Guarded<{
13
+ Proxying<IA extends unknown[]>(chainName: string, action: string, invitationArgs?: IA): Promise<import("@agoric/zoe").Invitation<unknown, IA>>;
14
+ }>;
15
+ }>>;
16
+ import type { Orchestrator } from '@agoric/orchestration';
17
+ import type { ZCFSeat } from '@agoric/zoe';
18
+ import type { MakePortfolioHolder } from '../exos/portfolio-holder-kit.js';
19
+ import type { ResolvedPublicTopic } from '@agoric/zoe/src/contractSupport/topics.js';
20
+ //# sourceMappingURL=basic-flows.flows.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"basic-flows.flows.d.ts","sourceRoot":"","sources":["basic-flows.flows.js"],"names":[],"mappings":"AA2BO,sCALI,YAAY,QACZ,GAAG,QACH,OAAO,iBACP;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,0EAS/B;AAgBM,2CANI,YAAY,2BAEpB;IAAiC,mBAAmB,EAA5C,mBAAmB;CAC3B,QAAQ,OAAO,kBACP;IAAE,UAAU,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;;;IAmClC;kCAxEuE,uBAAuB;6BAGrE,aAAa;yCADD,iCAAiC;yCADjC,2CAA2C"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @import {Remote, Vow} from '@agoric/vow';
3
+ * @import {Zone} from '@agoric/zone';
4
+ * @import {OrchestrationPowers, OrchestrationTools} from '../utils/start-helper.js';
5
+ * @import {CosmosChainInfo, Denom, DenomDetail} from '@agoric/orchestration';
6
+ * @import {ZCF} from '@agoric/zoe';
7
+ * @import {Marshaller} from '@agoric/internal/src/lib-chainStorage.js';
8
+ * @import {StorageNode} from '@agoric/internal/src/lib-chainStorage.js';
9
+ */
10
+ export const SingleNatAmountRecord: import("@endo/patterns").Matcher;
11
+ export function contract(zcf: ZCF, privateArgs: OrchestrationPowers & {
12
+ assetInfo?: [Denom, DenomDetail & {
13
+ brandKey?: string;
14
+ }][];
15
+ chainInfo?: Record<string, CosmosChainInfo>;
16
+ marshaller: Remote<Marshaller>;
17
+ storageNode: Remote<StorageNode>;
18
+ }, zone: Zone, { chainHub, orchestrate, vowTools, zoeTools }: OrchestrationTools): Promise<{
19
+ publicFacet: import("@endo/exo").Guarded<{
20
+ makeSendInvitation(): Promise<import("@agoric/zoe").Invitation<Vow<undefined>, {
21
+ chainName: string;
22
+ destAddr: string;
23
+ }>>;
24
+ }>;
25
+ creatorFacet: import("@endo/exo").Guarded<{
26
+ registerChain(chainName: string, chainInfo: import("@agoric/orchestration").ChainInfo, ibcConnectionInfo?: import("@agoric/orchestration").IBCConnectionInfo): Promise<void>;
27
+ registerAsset(denom: Denom, detail: DenomDetail): Promise<void>;
28
+ }>;
29
+ }>;
30
+ export const start: (zcf: ZCF<Record<string, unknown>>, privateArgs: OrchestrationPowers & {
31
+ assetInfo?: [Denom, DenomDetail & {
32
+ brandKey?: string;
33
+ }][];
34
+ chainInfo?: Record<string, CosmosChainInfo>;
35
+ marshaller: Remote<Marshaller>;
36
+ storageNode: Remote<StorageNode>;
37
+ }, baggage: import("@agoric/vat-data").Baggage) => Promise<{
38
+ publicFacet: import("@endo/exo").Guarded<{
39
+ makeSendInvitation(): Promise<import("@agoric/zoe").Invitation<Vow<undefined>, {
40
+ chainName: string;
41
+ destAddr: string;
42
+ }>>;
43
+ }>;
44
+ creatorFacet: import("@endo/exo").Guarded<{
45
+ registerChain(chainName: string, chainInfo: import("@agoric/orchestration").ChainInfo, ibcConnectionInfo?: import("@agoric/orchestration").IBCConnectionInfo): Promise<void>;
46
+ registerAsset(denom: Denom, detail: DenomDetail): Promise<void>;
47
+ }>;
48
+ }>;
49
+ import type { ZCF } from '@agoric/zoe';
50
+ import type { OrchestrationPowers } from '../utils/start-helper.js';
51
+ import type { Denom } from '@agoric/orchestration';
52
+ import type { DenomDetail } from '@agoric/orchestration';
53
+ import type { CosmosChainInfo } from '@agoric/orchestration';
54
+ import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
55
+ import type { Remote } from '@agoric/vow';
56
+ import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
57
+ import type { Zone } from '@agoric/zone';
58
+ import type { OrchestrationTools } from '../utils/start-helper.js';
59
+ import type { Vow } from '@agoric/vow';
60
+ //# sourceMappingURL=send-anywhere.contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"send-anywhere.contract.d.ts","sourceRoot":"","sources":["send-anywhere.contract.js"],"names":[],"mappings":"AAaA;;;;;;;;GAQG;AAEH,qEAKE;AAoBK,8BAVI,GAAG,eACH,mBAAmB,GAAG;IAC5B,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC;IAC5C,UAAU,EAAE,OAAO,UAAU,CAAC,CAAC;IAC/B,WAAW,EAAE,OAAO,WAAW,CAAC,CAAC;CAClC,QACO,IAAI,iDACJ,kBAAkB;;;;;;;;;;;GAoF5B;AAGD;gBA7FiB,CAAC,KAAK,EAAE,WAAW,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE;gBAC9C,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC;gBAC/B,OAAO,UAAU,CAAC;iBACjB,OAAO,WAAW,CAAC;;;;;;;;;;;;GA0F0C;yBAnHzD,aAAa;yCAFuB,0BAA0B;2BAC9B,uBAAuB;iCAAvB,uBAAuB;qCAAvB,uBAAuB;gCAEhD,0CAA0C;4BALzC,aAAa;iCAMb,0CAA0C;0BALjD,cAAc;wCACqB,0BAA0B;yBAFtD,aAAa"}