@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,58 @@
1
+ export function makeAgd({ execFileSync, log }: {
2
+ execFileSync: ExecSync;
3
+ log?: typeof console.log;
4
+ }): Readonly<{
5
+ readOnly: () => Readonly<{
6
+ status: () => Promise<any>;
7
+ /**
8
+ * @param {[kind: 'gov', domain: string, ...rest: any]
9
+ * | [kind: 'tx', txhash: string]
10
+ * | [mod: 'vstorage', kind: 'data' | 'children', path: string]
11
+ * | [mod: 'ibc', ...rest: string[]]} qArgs
12
+ */
13
+ query: (qArgs: [kind: "gov", domain: string, ...rest: any] | [kind: "tx", txhash: string] | [mod: "vstorage", kind: "data" | "children", path: string] | [mod: "ibc", ...rest: string[]]) => Promise<any>;
14
+ }>;
15
+ nameHub: () => Readonly<{
16
+ /**
17
+ * NOTE: synchronous I/O
18
+ *
19
+ * @param {string[]} path
20
+ */
21
+ lookup: (...path: string[]) => string;
22
+ }>;
23
+ keys: {
24
+ /**
25
+ * @param {string} name
26
+ * @param {string} mnemonic
27
+ */
28
+ add: (name: string, mnemonic: string) => string;
29
+ showAddress: (...path: string[]) => string;
30
+ /** @param {string} name */
31
+ delete: (name: string) => string;
32
+ };
33
+ /**
34
+ * @param {Record<string, unknown>} opts
35
+ */
36
+ withOpts: (opts: Record<string, unknown>) => Readonly</*elided*/ any>;
37
+ lookup: (...path: string[]) => string;
38
+ status: () => Promise<any>;
39
+ query: (qArgs: [kind: "gov", domain: string, ...rest: any] | [kind: "tx", txhash: string] | [mod: "vstorage", kind: "data" | "children", path: string] | [mod: "ibc", ...rest: string[]]) => Promise<any>;
40
+ /**
41
+ * TODO: gas
42
+ *
43
+ * @param {string[]} txArgs
44
+ * @param {{ chainId: string; from: string; yes?: boolean }} opts
45
+ */
46
+ tx: (txArgs: string[], { chainId, from, yes }: {
47
+ chainId: string;
48
+ from: string;
49
+ yes?: boolean;
50
+ }) => Promise<any>;
51
+ }>;
52
+ export type ExecSync = (file: string, args: string[], opts: {
53
+ encoding: "utf-8";
54
+ } & {
55
+ [k: string]: unknown;
56
+ }) => string;
57
+ export type Agd = ReturnType<typeof makeAgd>;
58
+ //# sourceMappingURL=agd-lib.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agd-lib.d.ts","sourceRoot":"","sources":["agd-lib.js"],"names":[],"mappings":"AAkBO,+CAFI;IAAE,YAAY,EAAE,QAAQ,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,OAAO,CAAC,GAAG,CAAA;CAAE;;;QAmCzD;;;;;WAKG;uBAJQ,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,CAAC,GAC/C,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,GAC5B,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,GAC1D,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC;;;QAiBtC;;;;WAIG;0BADQ,MAAM,EAAE;;;QAuDjB;;;WAGG;oBAFQ,MAAM,YACN,MAAM;+BAzDR,MAAM,EAAE;QAmEjB,2BAA2B;uBAAf,MAAM;;IAKpB;;OAEG;qBADQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;sBAzEvB,MAAM,EAAE;;mBAvBR,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,CAAC,GAC/C,CAAC,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,GAC5B,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,EAAE,IAAI,EAAE,MAAM,CAAC,GAC1D,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,CAAC;IAoCtC;;;;;OAKG;iBAFQ,MAAM,EAAE,0BACR;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,OAAO,CAAA;KAAE;GA4DhE;8BAlJU,MAAM,QACN,MAAM,EAAE,QACR;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,KAC9C,MAAM;kBAiJL,UAAU,CAAC,OAAO,OAAO,CAAC"}
@@ -0,0 +1,11 @@
1
+ export function coerceDenom(chainHub: ChainHub, denomArg: DenomArg): Denom;
2
+ export function coerceDenomAmount(chainHub: ChainHub, amount: DenomAmount | Amount<"nat">): DenomAmount;
3
+ export function coerceCoin(chainHub: ChainHub, amount: AmountArg): Coin;
4
+ import type { ChainHub } from "../types.js";
5
+ import type { DenomArg } from "../orchestration-api.js";
6
+ import type { Denom } from "../orchestration-api.js";
7
+ import type { DenomAmount } from "../orchestration-api.js";
8
+ import type { Amount } from '@agoric/ertp';
9
+ import type { AmountArg } from "../orchestration-api.js";
10
+ import type { Coin } from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js';
11
+ //# sourceMappingURL=amounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"amounts.d.ts","sourceRoot":"","sources":["amounts.js"],"names":[],"mappings":"AAgBO,sCANI,QAAQ,YACR,QAAQ,GACN,KAAK,CAajB;AASM,4CANI,QAAQ,UACR,WAAW,GAAG,OAAO,KAAK,CAAC,GACzB,WAAW,CAavB;AASM,qCANI,QAAQ,UACR,SAAS,GACP,IAAI,CAWhB;8BAxD0B,aAAa;8BACkB,yBAAyB;2BAAzB,yBAAyB;iCAAzB,yBAAyB;4BAE1D,cAAc;+BAFmB,yBAAyB;0BAC5D,kDAAkD"}
@@ -0,0 +1,6 @@
1
+ export function assetOn(baseDenom: Denom, baseName: string, brand?: Brand<"nat">, chainName?: string, infoOf?: Record<string, CosmosChainInfo>): [string, DenomDetail];
2
+ import type { Denom } from '../types.js';
3
+ import type { Brand } from '@agoric/ertp';
4
+ import type { CosmosChainInfo } from '../types.js';
5
+ import type { DenomDetail } from '../types.js';
6
+ //# sourceMappingURL=asset.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset.d.ts","sourceRoot":"","sources":["asset.js"],"names":[],"mappings":"AAkBO,mCAPI,KAAK,YACL,MAAM,UACN,MAAM,KAAK,CAAC,cACZ,MAAM,WACN,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,GAC7B,CAAC,MAAM,EAAE,WAAW,CAAC,CAiBjC;2BA9B+D,aAAa;2BACrD,cAAc;qCAD0B,aAAa;iCAAb,aAAa"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @import {Brand} from '@agoric/ertp';
3
+ * @import {Denom} from '@agoric/orchestration';
4
+ */
5
+ /**
6
+ * @typedef {object} DenomDetail
7
+ * @property {string} baseName - name of issuing chain; e.g. cosmoshub
8
+ * @property {Denom} baseDenom - e.g. uatom
9
+ * @property {string} chainName - name of holding chain; e.g. agoric
10
+ * @property {Brand<'nat'>} [brand] - vbank brand, if registered
11
+ * @see {ChainHub} `registerAsset` method
12
+ */
13
+ export const assetInfo: string;
14
+ export type DenomDetail = {
15
+ /**
16
+ * - name of issuing chain; e.g. cosmoshub
17
+ */
18
+ baseName: string;
19
+ /**
20
+ * - e.g. uatom
21
+ */
22
+ baseDenom: Denom;
23
+ /**
24
+ * - name of holding chain; e.g. agoric
25
+ */
26
+ chainName: string;
27
+ /**
28
+ * - vbank brand, if registered
29
+ */
30
+ brand?: Brand<"nat"> | undefined;
31
+ };
32
+ import type { Denom } from '@agoric/orchestration';
33
+ import type { Brand } from '@agoric/ertp';
34
+ //# sourceMappingURL=axelar-static-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axelar-static-config.d.ts","sourceRoot":"","sources":["axelar-static-config.js"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;;;GAOG;AAEH,+BA0BG;;;;;cAjCW,MAAM;;;;eACN,KAAK;;;;eACL,MAAM;;;;;;2BAPI,uBAAuB;2BADvB,cAAc"}
@@ -0,0 +1,14 @@
1
+ export function registerChainsAndAssets(chainHub: ChainHub, brands: Record<string, Brand<"nat">>, chainInfo: Record<string, ChainInfo> | undefined, assetInfo: [Denom, DenomDetail & {
2
+ brandKey?: string;
3
+ }][] | undefined, { log }?: {
4
+ log?: {
5
+ (...data: any[]): void;
6
+ (message?: any, ...optionalParams: any[]): void;
7
+ } | undefined;
8
+ }): void;
9
+ import type { ChainHub } from '../types.js';
10
+ import type { Brand } from '@agoric/ertp';
11
+ import type { ChainInfo } from '../types.js';
12
+ import type { Denom } from '../types.js';
13
+ import type { DenomDetail } from '../types.js';
14
+ //# sourceMappingURL=chain-hub-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain-hub-helper.d.ts","sourceRoot":"","sources":["chain-hub-helper.js"],"names":[],"mappings":"AAmBO,kDAPI,QAAQ,UACR,MAAM,CAAC,MAAM,EAAE,MAAM,KAAK,CAAC,CAAC,aAC5B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,SAAS,aACrC,CAAC,KAAK,EAAE,WAAW,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,EAAE,GAAG,SAAS,YAElE;IAA8B,GAAG;;;;CAAC,QAkDpC;8BAlEyD,aAAa;2BAC/C,cAAc;+BADoB,aAAa;2BAAb,aAAa;iCAAb,aAAa"}
@@ -0,0 +1,5 @@
1
+ export function caipIdFromInfo(info: ChainInfo | Caip10Record): CaipChainId;
2
+ import type { ChainInfo } from '../types.js';
3
+ import type { Caip10Record } from '../types.js';
4
+ import type { CaipChainId } from '../types.js';
5
+ //# sourceMappingURL=chain-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain-info.d.ts","sourceRoot":"","sources":["chain-info.js"],"names":[],"mappings":"AAQO,qCAHI,SAAS,GAAG,YAAY,GACtB,WAAW,CAIvB;+BATqG,aAAa;kCAAb,aAAa;iCAAb,aAAa"}
@@ -0,0 +1,145 @@
1
+ /**
2
+ * @import {TypeFromUrl} from '@agoric/cosmic-proto';
3
+ */
4
+ export const MsgDepositForBurn: import("@agoric/cosmic-proto").Proto3CodecHelper<"/circle.cctp.v1.MsgDepositForBurn">;
5
+ export const MsgDepositForBurnResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/circle.cctp.v1.MsgDepositForBurnResponse">;
6
+ export const MsgDepositForBurnWithCaller: import("@agoric/cosmic-proto").Proto3CodecHelper<"/circle.cctp.v1.MsgDepositForBurnWithCaller">;
7
+ export const MsgDepositForBurnWithCallerResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/circle.cctp.v1.MsgDepositForBurnWithCallerResponse">;
8
+ export const MsgSend: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.bank.v1beta1.MsgSend">;
9
+ export const MsgSendResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.bank.v1beta1.MsgSendResponse">;
10
+ export const MsgWithdrawDelegatorReward: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward">;
11
+ export const MsgWithdrawDelegatorRewardResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse">;
12
+ export const QueryAllBalancesRequest: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.bank.v1beta1.QueryAllBalancesRequest">;
13
+ export const QueryAllBalancesResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.bank.v1beta1.QueryAllBalancesResponse">;
14
+ export const QueryBalanceRequest: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.bank.v1beta1.QueryBalanceRequest">;
15
+ export const QueryBalanceResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.bank.v1beta1.QueryBalanceResponse">;
16
+ export const QueryDelegationRewardsRequest: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest">;
17
+ export const QueryDelegationRewardsResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse">;
18
+ export const QueryDelegationTotalRewardsRequest: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest">;
19
+ export const QueryDelegationTotalRewardsResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse">;
20
+ export const QueryDelegationRequest: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryDelegationRequest">;
21
+ export const QueryDelegationResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryDelegationResponse">;
22
+ export const QueryDelegatorDelegationsRequest: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest">;
23
+ export const QueryDelegatorDelegationsResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse">;
24
+ export const QueryDelegatorUnbondingDelegationsRequest: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest">;
25
+ export const QueryDelegatorUnbondingDelegationsResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse">;
26
+ export const QueryRedelegationsRequest: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryRedelegationsRequest">;
27
+ export const QueryRedelegationsResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryRedelegationsResponse">;
28
+ export const QueryUnbondingDelegationRequest: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest">;
29
+ export const QueryUnbondingDelegationResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse">;
30
+ export const MsgBeginRedelegate: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.MsgBeginRedelegate">;
31
+ export const MsgBeginRedelegateResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.MsgBeginRedelegateResponse">;
32
+ export const MsgDelegate: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.MsgDelegate">;
33
+ export const MsgDelegateResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.MsgDelegateResponse">;
34
+ export const MsgUndelegate: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.MsgUndelegate">;
35
+ export const MsgUndelegateResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.MsgUndelegateResponse">;
36
+ export const MsgTransfer: import("@agoric/cosmic-proto").Proto3CodecHelper<"/ibc.applications.transfer.v1.MsgTransfer">;
37
+ export const MsgTransferResponse: import("@agoric/cosmic-proto").Proto3CodecHelper<"/ibc.applications.transfer.v1.MsgTransferResponse">;
38
+ export const Any: Readonly<{
39
+ /**
40
+ * `Any.toJSON` has a template parameter matching the passed-through typeUrl
41
+ * property. This is different than other codecs which produce a fixed shape.
42
+ * @template {string} [TU=string]
43
+ * @param {{ typeUrl: TU } & Omit<AnyType, 'typeUrl'>} msg
44
+ */
45
+ toJSON: <TU extends string = string>(msg: {
46
+ typeUrl: TU;
47
+ } & Omit<AnyType, "typeUrl">) => {
48
+ typeUrl: TU;
49
+ } & Omit<{
50
+ value: string;
51
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
52
+ typeUrl: string;
53
+ }, "typeUrl">;
54
+ typedJson(message: {
55
+ value?: Uint8Array<ArrayBufferLike> | undefined;
56
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
57
+ typeUrl?: string | undefined;
58
+ }): AnyType & {
59
+ '@type': "/google.protobuf.Any";
60
+ };
61
+ fromTyped(object: import("@agoric/cosmic-proto").TypedJson): import("@agoric/cosmic-proto").MessageBody<"/google.protobuf.Any">;
62
+ fromTyped(object: import("@agoric/cosmic-proto").TypedAmino): import("@agoric/cosmic-proto").MessageBody<"/google.protobuf.Any">;
63
+ fromTyped(object: import("@agoric/cosmic-proto").EncodeObject): import("@agoric/cosmic-proto").MessageBody<"/google.protobuf.Any">;
64
+ fromTyped(object: {}): import("@agoric/cosmic-proto").MessageBody<"/google.protobuf.Any">;
65
+ fromTyped(object: unknown): import("@agoric/cosmic-proto").MessageBody<"/google.protobuf.Any">;
66
+ typeUrl: "/google.protobuf.Any";
67
+ encode(message: {
68
+ value?: Uint8Array<ArrayBufferLike> | undefined;
69
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
70
+ typeUrl?: string | undefined;
71
+ }, writer?: import("@agoric/cosmic-proto/codegen/binary.js").BinaryWriter): import("@agoric/cosmic-proto/codegen/binary.js").BinaryWriter;
72
+ decode(input: import("@agoric/cosmic-proto/codegen/binary.js").BinaryReader | Uint8Array, length?: number): import("@agoric/cosmic-proto").MessageBody<"/google.protobuf.Any">;
73
+ fromJSON(object: any): import("@agoric/cosmic-proto").MessageBody<"/google.protobuf.Any">;
74
+ fromPartial(object: {
75
+ value?: Uint8Array<ArrayBufferLike> | undefined;
76
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
77
+ typeUrl?: string | undefined;
78
+ }): import("@agoric/cosmic-proto").MessageBody<"/google.protobuf.Any">;
79
+ fromProtoMsg(message: import("@agoric/cosmic-proto").ProtoMsg<"/google.protobuf.Any">): import("@agoric/cosmic-proto").MessageBody<"/google.protobuf.Any">;
80
+ toProto(message: {
81
+ value?: Uint8Array<ArrayBufferLike> | undefined;
82
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
83
+ typeUrl?: string | undefined;
84
+ }): Uint8Array;
85
+ toProtoMsg(message: {
86
+ value?: Uint8Array<ArrayBufferLike> | undefined;
87
+ $typeUrl?: "/google.protobuf.Any" | string | undefined;
88
+ typeUrl?: string | undefined;
89
+ }): import("@agoric/cosmic-proto").ProtoMsg<"/google.protobuf.Any">;
90
+ }>;
91
+ export const responseCodecForTypeUrl: {
92
+ readonly "/circle.cctp.v1.MsgDepositForBurn": import("@agoric/cosmic-proto").Proto3CodecHelper<"/circle.cctp.v1.MsgDepositForBurnResponse">;
93
+ readonly "/circle.cctp.v1.MsgDepositForBurnWithCaller": import("@agoric/cosmic-proto").Proto3CodecHelper<"/circle.cctp.v1.MsgDepositForBurnWithCallerResponse">;
94
+ readonly "/cosmos.staking.v1beta1.MsgUndelegate": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.MsgUndelegateResponse">;
95
+ readonly "/cosmos.staking.v1beta1.MsgBeginRedelegate": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.MsgBeginRedelegateResponse">;
96
+ readonly "/cosmos.staking.v1beta1.MsgDelegate": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.MsgDelegateResponse">;
97
+ readonly "/cosmos.distribution.v1beta1.MsgWithdrawDelegatorReward": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.distribution.v1beta1.MsgWithdrawDelegatorRewardResponse">;
98
+ readonly "/cosmos.bank.v1beta1.MsgSend": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.bank.v1beta1.MsgSendResponse">;
99
+ readonly "/ibc.applications.transfer.v1.MsgTransfer": import("@agoric/cosmic-proto").Proto3CodecHelper<"/ibc.applications.transfer.v1.MsgTransferResponse">;
100
+ readonly "/cosmos.bank.v1beta1.QueryBalanceRequest": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.bank.v1beta1.QueryBalanceResponse">;
101
+ readonly "/cosmos.bank.v1beta1.QueryAllBalancesRequest": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.bank.v1beta1.QueryAllBalancesResponse">;
102
+ readonly "/cosmos.staking.v1beta1.QueryDelegationRequest": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryDelegationResponse">;
103
+ readonly "/cosmos.staking.v1beta1.QueryDelegatorDelegationsRequest": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryDelegatorDelegationsResponse">;
104
+ readonly "/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsRequest": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryDelegatorUnbondingDelegationsResponse">;
105
+ readonly "/cosmos.staking.v1beta1.QueryRedelegationsRequest": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryRedelegationsResponse">;
106
+ readonly "/cosmos.staking.v1beta1.QueryUnbondingDelegationRequest": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.staking.v1beta1.QueryUnbondingDelegationResponse">;
107
+ readonly "/cosmos.distribution.v1beta1.QueryDelegationRewardsRequest": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.distribution.v1beta1.QueryDelegationRewardsResponse">;
108
+ readonly "/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsRequest": import("@agoric/cosmic-proto").Proto3CodecHelper<"/cosmos.distribution.v1beta1.QueryDelegationTotalRewardsResponse">;
109
+ };
110
+ import { MsgDepositForBurn as MsgDepositForBurnType } from '@agoric/cosmic-proto/circle/cctp/v1/tx.js';
111
+ import { MsgDepositForBurnResponse as MsgDepositForBurnResponseType } from '@agoric/cosmic-proto/circle/cctp/v1/tx.js';
112
+ import { MsgDepositForBurnWithCaller as MsgDepositForBurnWithCallerType } from '@agoric/cosmic-proto/circle/cctp/v1/tx.js';
113
+ import { MsgDepositForBurnWithCallerResponse as MsgDepositForBurnWithCallerResponseType } from '@agoric/cosmic-proto/circle/cctp/v1/tx.js';
114
+ import { MsgSend as MsgSendType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/tx.js';
115
+ import { MsgSendResponse as MsgSendResponseType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/tx.js';
116
+ import { MsgWithdrawDelegatorReward as MsgWithdrawDelegatorRewardType } from '@agoric/cosmic-proto/cosmos/distribution/v1beta1/tx.js';
117
+ import { QueryAllBalancesRequest as QueryAllBalancesRequestType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/query.js';
118
+ import { QueryAllBalancesResponse as QueryAllBalancesResponseType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/query.js';
119
+ import { QueryBalanceRequest as QueryBalanceRequestType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/query.js';
120
+ import { QueryBalanceResponse as QueryBalanceResponseType } from '@agoric/cosmic-proto/cosmos/bank/v1beta1/query.js';
121
+ import { QueryDelegationRewardsRequest as QueryDelegationRewardsRequestType } from '@agoric/cosmic-proto/cosmos/distribution/v1beta1/query.js';
122
+ import { QueryDelegationRewardsResponse as QueryDelegationRewardsResponseType } from '@agoric/cosmic-proto/cosmos/distribution/v1beta1/query.js';
123
+ import { QueryDelegationTotalRewardsRequest as QueryDelegationTotalRewardsRequestType } from '@agoric/cosmic-proto/cosmos/distribution/v1beta1/query.js';
124
+ import { QueryDelegationTotalRewardsResponse as QueryDelegationTotalRewardsResponseType } from '@agoric/cosmic-proto/cosmos/distribution/v1beta1/query.js';
125
+ import { QueryDelegationRequest as QueryDelegationRequestType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
126
+ import { QueryDelegationResponse as QueryDelegationResponseType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
127
+ import { QueryDelegatorDelegationsRequest as QueryDelegatorDelegationsRequestType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
128
+ import { QueryDelegatorDelegationsResponse as QueryDelegatorDelegationsResponseType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
129
+ import { QueryDelegatorUnbondingDelegationsRequest as QueryDelegatorUnbondingDelegationsRequestType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
130
+ import { QueryDelegatorUnbondingDelegationsResponse as QueryDelegatorUnbondingDelegationsResponseType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
131
+ import { QueryRedelegationsRequest as QueryRedelegationsRequestType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
132
+ import { QueryRedelegationsResponse as QueryRedelegationsResponseType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
133
+ import { QueryUnbondingDelegationRequest as QueryUnbondingDelegationRequestType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
134
+ import { QueryUnbondingDelegationResponse as QueryUnbondingDelegationResponseType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/query.js';
135
+ import { MsgBeginRedelegate as MsgBeginRedelegateType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js';
136
+ import { MsgBeginRedelegateResponse as MsgBeginRedelegateResponseType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js';
137
+ import { MsgDelegate as MsgDelegateType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js';
138
+ import { MsgDelegateResponse as MsgDelegateResponseType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js';
139
+ import { MsgUndelegate as MsgUndelegateType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js';
140
+ import { MsgUndelegateResponse as MsgUndelegateResponseType } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/tx.js';
141
+ import { MsgTransfer as MsgTransferType } from '@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js';
142
+ import { MsgTransferResponse as MsgTransferResponseType } from '@agoric/cosmic-proto/ibc/applications/transfer/v1/tx.js';
143
+ import { Any as AnyType } from '@agoric/cosmic-proto/google/protobuf/any.js';
144
+ export { MsgDepositForBurnType, MsgDepositForBurnResponseType, MsgDepositForBurnWithCallerType, MsgDepositForBurnWithCallerResponseType, MsgSendType, MsgSendResponseType, MsgWithdrawDelegatorRewardType, QueryAllBalancesRequestType, QueryAllBalancesResponseType, QueryBalanceRequestType, QueryBalanceResponseType, QueryDelegationRewardsRequestType, QueryDelegationRewardsResponseType, QueryDelegationTotalRewardsRequestType, QueryDelegationTotalRewardsResponseType, QueryDelegationRequestType, QueryDelegationResponseType, QueryDelegatorDelegationsRequestType, QueryDelegatorDelegationsResponseType, QueryDelegatorUnbondingDelegationsRequestType, QueryDelegatorUnbondingDelegationsResponseType, QueryRedelegationsRequestType, QueryRedelegationsResponseType, QueryUnbondingDelegationRequestType, QueryUnbondingDelegationResponseType, MsgBeginRedelegateType, MsgBeginRedelegateResponseType, MsgDelegateType, MsgDelegateResponseType, MsgUndelegateType, MsgUndelegateResponseType, MsgTransferType, MsgTransferResponseType, AnyType };
145
+ //# sourceMappingURL=codecs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codecs.d.ts","sourceRoot":"","sources":["codecs.js"],"names":[],"mappings":"AAqDA;;GAEG;AAEH,sHAAoE;AACpE,sIAEE;AAEF,0IAEE;AACF,0JAEE;AAKF,uGAAgD;AAChD,uHAAgE;AAEhE,qJAEE;AAEF,qKAEE;AACF,uIAAgF;AAChF,yIAEE;AAEF,+HAAwE;AACxE,iIAA0E;AAE1E,2JAEE;AAKF,6JAEE;AACF,qKAEE;AACF,uKAEE;AAKF,wIAA8E;AAC9E,0IAAgF;AAEhF,4JAEE;AACF,8JAEE;AAKF,8KAEE;AACF,gLAEE;AAKF,8IAEE;AACF,gJAEE;AAEF,0JAEE;AACF,4JAEE;AAKF,gIAAsE;AACtE,gJAEE;AAEF,kHAAwD;AACxD,kIAAwE;AAExE,sHAA4D;AAC5D,sIAA4E;AAE5E,wHAAwD;AACxD,wIAAwE;AAiBxE;IAZE;;;;;OAKG;aAFoB,EAAE,SAAZ,MAAQ,gBACV;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,GAAG,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,KAIjC;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,GAAG,IAAI;;;;OAAY,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAO/D;AAGH;;;;;;;;;;;;;;;;;;EAoBG;2DAvMI,2CAA2C;2EAA3C,2CAA2C;+EAA3C,2CAA2C;+FAA3C,2CAA2C;uCAU3C,gDAAgD;uDAAhD,gDAAgD;6EAUhD,wDAAwD;uEAdxD,mDAAmD;yEAAnD,mDAAmD;+DAAnD,mDAAmD;iEAAnD,mDAAmD;mFAUnD,2DAA2D;qFAA3D,2DAA2D;6FAA3D,2DAA2D;+FAA3D,2DAA2D;qEAgB3D,sDAAsD;uEAAtD,sDAAsD;yFAAtD,sDAAsD;2FAAtD,sDAAsD;2GAAtD,sDAAsD;6GAAtD,sDAAsD;2EAAtD,sDAAsD;6EAAtD,sDAAsD;uFAAtD,sDAAsD;yFAAtD,sDAAsD;6DAQtD,mDAAmD;6EAAnD,mDAAmD;+CAAnD,mDAAmD;+DAAnD,mDAAmD;mDAAnD,mDAAmD;mEAAnD,mDAAmD;+CAKnD,yDAAyD;+DAAzD,yDAAyD;+BAJjC,6CAA6C"}
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @import {Bech32Address, CosmosDelegationResponse, CosmosValidatorAddress, DenomAmount} from '../types.js';
3
+ * @import {Coin} from '@agoric/cosmic-proto/cosmos/base/v1beta1/coin.js'
4
+ * @import {DelegationResponse} from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
5
+ * @import {Proto3CodecHelper, MessageBody} from '@agoric/cosmic-proto';
6
+ */
7
+ /** maximum clock skew, in seconds, for unbonding time reported from other chain */
8
+ export const maxClockSkew: bigint;
9
+ export function tryDecodeResponses<TUS extends string[]>(ackStr: string, codecs: { [K in keyof TUS]: Pick<Proto3CodecHelper<TUS[K]>, "fromProtoMsg" | "typeUrl">; }): { [T in keyof TUS]: MessageBody<TUS[T]>; };
10
+ export function tryDecodeResponse<TU extends string>(ackStr: string, codec: Pick<Proto3CodecHelper<TU>, "fromProtoMsg" | "typeUrl">): MessageBody<TU>;
11
+ /**
12
+ * Transform a cosmos-sdk {@link Coin} object into a {@link DenomAmount}
13
+ *
14
+ * @type {(c: { denom: string; amount: string }) => DenomAmount}
15
+ * @see {@link toTruncatedDenomAmount} for DecCoin
16
+ */
17
+ export const toDenomAmount: (c: {
18
+ denom: string;
19
+ amount: string;
20
+ }) => DenomAmount;
21
+ /**
22
+ * Transform a cosmos-sdk {@link DecCoin} object into a {@link DenomAmount}, by
23
+ * truncating the fractional portion.
24
+ *
25
+ * @type {(c: { denom: string; amount: string }) => DenomAmount}
26
+ */
27
+ export const toTruncatedDenomAmount: (c: {
28
+ denom: string;
29
+ amount: string;
30
+ }) => DenomAmount;
31
+ /**
32
+ * Transform a cosmos-sdk `{validatorAddress}` object into an Orchestration
33
+ * {@link CosmosValidatorAddress}
34
+ *
35
+ * @type {(
36
+ * r: { validatorAddress: string },
37
+ * chainId: string,
38
+ * ) => CosmosValidatorAddress}
39
+ */
40
+ export const toCosmosValidatorAddress: (r: {
41
+ validatorAddress: string;
42
+ }, chainId: string) => CosmosValidatorAddress;
43
+ /**
44
+ * Transform a cosmos-sdk {@link DelegationResponse} object into an Orchestration
45
+ * {@link CosmosDelegationResponse}
46
+ *
47
+ * @type {(
48
+ * chainInfo: { chainId: string },
49
+ * r: DelegationResponse,
50
+ * ) => CosmosDelegationResponse}
51
+ */
52
+ export const toCosmosDelegationResponse: (chainInfo: {
53
+ chainId: string;
54
+ }, r: DelegationResponse) => CosmosDelegationResponse;
55
+ import type { Proto3CodecHelper } from '@agoric/cosmic-proto';
56
+ import type { MessageBody } from '@agoric/cosmic-proto';
57
+ import type { DenomAmount } from '../types.js';
58
+ import type { CosmosValidatorAddress } from '../types.js';
59
+ import type { DelegationResponse } from '@agoric/cosmic-proto/cosmos/staking/v1beta1/staking.js';
60
+ import type { CosmosDelegationResponse } from '../types.js';
61
+ //# sourceMappingURL=cosmos.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cosmos.d.ts","sourceRoot":"","sources":["cosmos.js"],"names":[],"mappings":"AAOA;;;;;GAKG;AAEH,mFAAmF;AACnF,kCAAsC;AAY/B,mCATiB,GAAG,SAAb,MAAM,EAAG,UACZ,MAAM,UACN,GACL,CAAC,IAAI,MAAM,GAAG,GAAG,IAAI,CAC1B,kBAAwB,GAAG,CAAC,CAAC,CAAC,CAAC,EAC/B,cAAoB,GAAG,SAAS,CAC3B,GACF,MAUqB,CAAC,uCAIzB;AAQM,kCAJe,EAAE,SAAX,MAAQ,UACV,MAAM,SACN,IAAI,CAAC,kBAAkB,EAAE,CAAC,EAAE,cAAc,GAAG,SAAS,CAAC,mBAGH;AAE/D;;;;;GAKG;AACH,4BAHU,CAAC,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,KAAK,WAAW,CAGiB;AAEhF;;;;;GAKG;AACH,qCAFU,CAAC,CAAC,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,KAAK,WAAW,CAK5D;AAEH;;;;;;;;GAQG;AACH,uCALU,CACL,CAAC,EAAE;IAAE,gBAAgB,EAAE,MAAM,CAAA;CAAE,EAC/B,OAAO,EAAE,MAAM,KACZ,sBAAsB,CAM3B;AAEH;;;;;;;;GAQG;AACH,yCALU,CACL,SAAS,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EAC9B,CAAC,EAAE,kBAAkB,KAClB,wBAAwB,CAU7B;uCA1F8C,sBAAsB;iCAAtB,sBAAsB;iCAHwB,aAAa;4CAAb,aAAa;wCAEvE,wDAAwD;8CAFE,aAAa"}
@@ -0,0 +1,7 @@
1
+ export function denomHash({ portId, channelId, path, denom, }: {
2
+ portId?: string | undefined;
3
+ channelId?: string | undefined;
4
+ path?: string | undefined;
5
+ denom: string;
6
+ }): string;
7
+ //# sourceMappingURL=denomHash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"denomHash.d.ts","sourceRoot":"","sources":["denomHash.js"],"names":[],"mappings":"AAaO,+DALJ;IAAsB,MAAM;IACN,SAAS;IACT,IAAI;IACL,KAAK,EAAlB,MAAM;CAChB,UASA"}
@@ -0,0 +1,156 @@
1
+ export function makeVowExoHelpers({ watch }: Pick<VowTools, "watch">): {
2
+ /**
3
+ * These are functions that operate on vows, intended to be added to an
4
+ * internal `helper` facet of an exoClassKit.
5
+ */
6
+ helper: {
7
+ /**
8
+ * Return a vow that fulfills with the property at `prop` of the
9
+ * fulfilment of `inputV`. If `inputV` rejects, the returned vow rejects
10
+ * with the same reason.
11
+ *
12
+ * @template {readonly Record<PropertyKey, any>} R
13
+ * @template {PropertyKey} K
14
+ * @param {EVow<R>} inputV
15
+ * @param {K} prop
16
+ * @returns {Vow<R[K]>}
17
+ */
18
+ pickVowProp<R extends readonly Record<PropertyKey, any>, K extends PropertyKey>(inputV: EVow<R>, prop: K): Vow<R[K]>;
19
+ /**
20
+ * Return a vow that fulfills with the element at `index` of the
21
+ * fulfilment of `inputV`. If `inputV` rejects, the returned vow rejects
22
+ * with the same reason.
23
+ *
24
+ * @template {readonly unknown[]} T
25
+ * @template {number} I
26
+ * @param {EVow<T>} inputV
27
+ * @param {I} index
28
+ * @returns {Vow<T[I]>}
29
+ */
30
+ pickVowIndex<T extends readonly unknown[], I extends number>(inputV: EVow<T>, index: I): Vow<T[I]>;
31
+ /**
32
+ * Return a vow that fulfills with `newValue` after `inputV` fulfills. If
33
+ * `inputV` rejects, the returned vow rejects with the same reason.
34
+ *
35
+ * @template [T=undefined]
36
+ * @param {Vow<unknown>} inputV
37
+ * @param {T} [newValue]
38
+ * @returns {Vow<T>}
39
+ */
40
+ overrideVow<T = undefined>(inputV: Vow<unknown>, newValue?: T): Vow<T>;
41
+ /**
42
+ * Return a vow typed as `Vow<void>` that fulfills with `undefined` after
43
+ * `inputV` fulfills. If `inputV` rejects, the returned vow rejects with
44
+ * the same reason.
45
+ *
46
+ * @param {Vow<unknown>} inputV
47
+ * @returns {Vow<void>}
48
+ */
49
+ voidVow(inputV: Vow<unknown>): Vow<void>;
50
+ };
51
+ /** These are shapes of the function provided by `helper`. */
52
+ helperShapes: {
53
+ pickVowIndex: MethodGuard;
54
+ pickVowProp: MethodGuard;
55
+ voidVow: MethodGuard;
56
+ overrideVow: MethodGuard;
57
+ };
58
+ /**
59
+ * These are the watcher facets used by the functions provided by `helper`.
60
+ */
61
+ watchers: {
62
+ pickDataWatcher: {
63
+ /**
64
+ * Return `value[key]`.
65
+ *
66
+ * @template {{}} V
67
+ * @template {keyof V} K
68
+ * @param {V} value
69
+ * @param {K} key
70
+ * @returns {V[K]}
71
+ */
72
+ onFulfilled<V extends {}, K extends keyof V>(value: V, key: K): V[K];
73
+ };
74
+ overrideVowWatcher: {
75
+ /**
76
+ * Always return `newValue`.
77
+ *
78
+ * @template V
79
+ * @param {unknown} _value
80
+ * @param {V} newValue
81
+ * @returns {V}
82
+ */
83
+ onFulfilled<V>(_value: unknown, newValue: V): V;
84
+ };
85
+ };
86
+ /**
87
+ * These are the shapes of watcher facets used by the functions provided by
88
+ * `helper`.
89
+ */
90
+ watcherShapes: {
91
+ pickDataWatcher: InterfaceGuard<{
92
+ onFulfilled: MethodGuard;
93
+ }>;
94
+ overrideVowWatcher: InterfaceGuard<{
95
+ onFulfilled: MethodGuard;
96
+ }>;
97
+ };
98
+ /**
99
+ * Given a tuple of facet names and a tuple of method names, return a record
100
+ * mapping each facet name to a facet tombstone whose methods always throw.
101
+ *
102
+ * This is useful for retiring watchers while preserving their facets so
103
+ * that older exoClassKits can be upgraded without errors caused by missing
104
+ * facet definitions.
105
+ *
106
+ * @template {readonly string[]} F
107
+ * @template {readonly string[]} M
108
+ * @param {F} facets
109
+ * @param {M} methods
110
+ * @returns {{ [S in F[number]]: { [T in M[number]]: () => never } }}
111
+ */
112
+ makeTombstonedFacets: <F extends readonly string[], M extends readonly string[]>(facets: F, methods: M) => { [S in F[number]]: { [T in M[number]]: () => never; }; };
113
+ /**
114
+ * Given a tuple of facet names and a tuple of method names, return a record
115
+ * mapping each name to a lax interface guard for a facet tombstone.
116
+ *
117
+ * @template {readonly string[]} F
118
+ * @template {readonly string[]} M
119
+ * @param {F} facets
120
+ * @param {M} methods
121
+ * @returns {{
122
+ * [S in F[number]]: InterfaceGuard<{ [T in M[number]]: MethodGuard }>;
123
+ * }}
124
+ */
125
+ makeTombstonedFacetShapes: <F extends readonly string[], M extends readonly string[]>(facets: F, methods: M) => { [S in F[number]]: InterfaceGuard<{ [T in M[number]]: MethodGuard; }>; };
126
+ /**
127
+ * Given a tuple of watcher names, return a record mapping each watcher name
128
+ * to a watcher facet tombstone whose methods always throw.
129
+ *
130
+ * This is useful for retiring watchers while preserving their facets so
131
+ * that older exoClassKits can be upgraded without errors caused by missing
132
+ * facet definitions.
133
+ *
134
+ * @template {readonly string[]} W
135
+ * @param {W} watchers
136
+ */
137
+ makeTombstonedWatchers: <W extends readonly string[]>(watchers: W) => { [S in W[number]]: {
138
+ onFulfilled: () => never;
139
+ }; };
140
+ /**
141
+ * Given a tuple of watcher names, return a record mapping each name to a
142
+ * lax interface guard for a watcher facet tombstone.
143
+ *
144
+ * @template {readonly string[]} W
145
+ * @param {W} watchers
146
+ */
147
+ makeTombstonedWatcherShapes: <W extends readonly string[]>(watchers: W) => { [S in W[number]]: InterfaceGuard<{
148
+ onFulfilled: MethodGuard;
149
+ }>; };
150
+ };
151
+ import type { VowTools } from '@agoric/vow';
152
+ import type { EVow } from '@agoric/vow';
153
+ import type { Vow } from '@agoric/vow';
154
+ import type { MethodGuard } from '@endo/patterns';
155
+ import type { InterfaceGuard } from '@endo/patterns';
156
+ //# sourceMappingURL=exo-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exo-helpers.d.ts","sourceRoot":"","sources":["exo-helpers.js"],"names":[],"mappings":"AAmBO,6CAFI,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC;IAI9B;;;OAGG;;QAED;;;;;;;;;;WAUG;oBAL8C,CAAC,SAArC,SAAU,MAAM,CAAC,WAAW,EAAE,GAAG,CAAE,EACrB,CAAC,SAAd,WAAY,UACf,KAAK,CAAC,CAAC,QACP,CAAC,GACC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAKtB;;;;;;;;;;WAUG;qBAL+B,CAAC,SAAtB,SAAU,OAAO,EAAG,EACX,CAAC,SAAV,MAAQ,UACV,KAAK,CAAC,CAAC,SACP,CAAC,GACC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QAKtB;;;;;;;;WAQG;oBAJW,CAAC,sBACJ,IAAI,OAAO,CAAC,aACZ,CAAC,GACC,IAAI,CAAC,CAAC;QAKnB;;;;;;;WAOG;wBAFQ,IAAI,OAAO,CAAC,GACV,IAAI,IAAI,CAAC;;IAMxB,6DAA6D;;;;;;;IAY7D;;OAEG;;;YAGC;;;;;;;;eAQG;wBALe,CAAC,SAAN,EAAI,EACM,CAAC,SAAX,MAAO,CAAE,SACX,CAAC,OACD,CAAC,GACC,CAAC,CAAC,CAAC,CAAC;;;YAOjB;;;;;;;eAOG;wBAJU,CAAC,UACH,OAAO,YACP,CAAC,GACC,CAAC;;;IAOlB;;;OAGG;;;;;;;;;IAYH;;;;;;;;;;;;;OAaG;2BAL8B,CAAC,SAArB,SAAU,MAAM,EAAG,EACC,CAAC,SAArB,SAAU,MAAM,EAAG,UACrB,CAAC,WACD,CAAC,KACC,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,MAAM,KAAK,GAAE,GAAE;IAsBpE;;;;;;;;;;;OAWG;gCAP8B,CAAC,SAArB,SAAU,MAAM,EAAG,EACC,CAAC,SAArB,SAAU,MAAM,EAAG,UACrB,CAAC,WACD,CAAC,KACC,GACP,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,eAAe,GAAG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,WAAW,GAAE,CAAC,GACpE;IA4BJ;;;;;;;;;;OAUG;6BAF8B,CAAC,SAArB,SAAU,MAAM,EAAG,YACrB,CAAC,QArEI,CAAC;2BAA0C,KAAK;;IA4EhE;;;;;;OAMG;kCAF8B,CAAC,SAArB,SAAU,MAAM,EAAG,YACrB,CAAC,QAlDN,CAAC;;;EA4DV;8BA5OqC,aAAa;0BAAb,aAAa;yBAAb,aAAa;iCACL,gBAAgB;oCAAhB,gBAAgB"}
@@ -0,0 +1,30 @@
1
+ export namespace GMPMessageType {
2
+ let MESSAGE_ONLY: number;
3
+ let MESSAGE_WITH_TOKEN: number;
4
+ let TOKEN_ONLY: number;
5
+ }
6
+ /**
7
+ * @type {{
8
+ * AXELAR_GMP: Bech32Address;
9
+ * AXELAR_GAS: Bech32Address;
10
+ * OSMOSIS_RECEIVER: Bech32Address;
11
+ * }}
12
+ */
13
+ export const gmpAddresses: {
14
+ AXELAR_GMP: Bech32Address;
15
+ AXELAR_GAS: Bech32Address;
16
+ OSMOSIS_RECEIVER: Bech32Address;
17
+ };
18
+ export function constructContractCall({ target, functionSignature, args, abi, }: ContractCall): AbiEncodedContractCall;
19
+ export function buildGMPPayload(contractCalls: ContractCall[], id?: string): number[];
20
+ export function buildNoncePayload(nonce: bigint): number[];
21
+ export function buildGasPayload(gasAmount: bigint): number[];
22
+ export namespace EVM_CHAINS {
23
+ let Avalanche: string;
24
+ let Base: string;
25
+ let Ethereum: string;
26
+ }
27
+ import type { Bech32Address } from '@agoric/orchestration';
28
+ import type { ContractCall } from '../axelar-types.js';
29
+ import type { AbiEncodedContractCall } from '../axelar-types.js';
30
+ //# sourceMappingURL=gmp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gmp.d.ts","sourceRoot":"","sources":["gmp.js"],"names":[],"mappings":";;;;;AAoBA;;;;;;GAMG;AACH,2BANU;IACL,UAAU,EAAE,aAAa,CAAC;IAC1B,UAAU,EAAE,aAAa,CAAC;IAC1B,gBAAgB,EAAE,aAAa,CAAC;CACjC,CAOF;AAQK,iFAHI,YAAY,GACV,sBAAsB,CA0BlC;AASM,+CAJI,YAAY,EAAE,OACd,MAAM,GACJ,MAAM,EAAE,CAkCpB;AAMM,yCAHI,MAAM,GACJ,MAAM,EAAE,CAMpB;AAMM,2CAHI,MAAM,GACJ,MAAM,EAAE,CASpB;;;;;;mCArH+B,uBAAuB;kCADA,oBAAoB;4CAApB,oBAAoB"}
@@ -0,0 +1,17 @@
1
+ export namespace orcUtils {
2
+ function makeTransferMsg(_args: Omit<TransferMsg, "memo">): TransferMsg;
3
+ /**
4
+ * SwapExact or SwapMaxSlippage, with optional AfterAction
5
+ *
6
+ * @param {(SwapExact | SwapMaxSlippage) &
7
+ * (AfterAction | Record<string, never>)} _args
8
+ *
9
+ * @returns {TransferMsg}
10
+ */
11
+ function makeOsmosisSwap(_args: (SwapExact | SwapMaxSlippage) & (AfterAction | Record<string, never>)): TransferMsg;
12
+ }
13
+ import type { TransferMsg } from '../types.js';
14
+ import type { SwapExact } from '../types.js';
15
+ import type { SwapMaxSlippage } from '../types.js';
16
+ import type { AfterAction } from '../types.js';
17
+ //# sourceMappingURL=orc.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orc.d.ts","sourceRoot":"","sources":["orc.js"],"names":[],"mappings":";IASmB,gCAHN,IAAI,CAAC,WAAW,EAAE,MAAM,CAAC,GACvB,WAAW,CAWvB;IACD;;;;;;;OAOG;IACH,gCALW,CAAC,SAAS,GAAG,eAAe,CAAC,GACvC,CAAK,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,GAE7B,WAAW,CAWvB;;iCApCqE,aAAa;+BAAb,aAAa;qCAAb,aAAa;iCAAb,aAAa"}