@agoric/orchestration 0.2.0-upgrade-20-dev-ef71cfd.0 → 0.2.0-upgrade-19-devnet-dev-5428c4d.0

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 (125) hide show
  1. package/package.json +27 -29
  2. package/src/chain-capabilities.d.ts +12 -7
  3. package/src/chain-capabilities.d.ts.map +1 -1
  4. package/src/chain-capabilities.js +21 -46
  5. package/src/chain-info.d.ts +97 -839
  6. package/src/chain-info.d.ts.map +1 -1
  7. package/src/chain-info.js +12 -38
  8. package/src/cosmos-api.d.ts +13 -41
  9. package/src/cosmos-api.d.ts.map +1 -1
  10. package/src/cosmos-api.ts +16 -52
  11. package/src/ethereum-api.d.ts +5 -6
  12. package/src/ethereum-api.d.ts.map +1 -1
  13. package/src/ethereum-api.ts +5 -7
  14. package/src/examples/auto-stake-it-tap-kit.d.ts +4 -4
  15. package/src/examples/auto-stake-it-tap-kit.d.ts.map +1 -1
  16. package/src/examples/auto-stake-it-tap-kit.js +8 -8
  17. package/src/examples/auto-stake-it.contract.d.ts +23 -5
  18. package/src/examples/auto-stake-it.contract.d.ts.map +1 -1
  19. package/src/examples/auto-stake-it.contract.js +0 -1
  20. package/src/examples/basic-flows.contract.d.ts +13 -5
  21. package/src/examples/basic-flows.contract.d.ts.map +1 -1
  22. package/src/examples/basic-flows.contract.js +0 -1
  23. package/src/examples/send-anywhere.contract.d.ts +27 -7
  24. package/src/examples/send-anywhere.contract.d.ts.map +1 -1
  25. package/src/examples/send-anywhere.contract.js +12 -40
  26. package/src/examples/send-anywhere.flows.d.ts +3 -563
  27. package/src/examples/send-anywhere.flows.d.ts.map +1 -1
  28. package/src/examples/send-anywhere.flows.js +31 -112
  29. package/src/examples/stake-bld.contract.d.ts +7 -8
  30. package/src/examples/stake-bld.contract.d.ts.map +1 -1
  31. package/src/examples/stake-bld.contract.js +1 -3
  32. package/src/examples/stake-ica.contract.d.ts +13 -82
  33. package/src/examples/stake-ica.contract.d.ts.map +1 -1
  34. package/src/examples/stake-ica.contract.js +0 -1
  35. package/src/examples/staking-combinations.contract.d.ts +11 -3
  36. package/src/examples/staking-combinations.contract.d.ts.map +1 -1
  37. package/src/examples/staking-combinations.contract.js +4 -5
  38. package/src/examples/staking-combinations.flows.d.ts +2 -2
  39. package/src/examples/staking-combinations.flows.d.ts.map +1 -1
  40. package/src/examples/staking-combinations.flows.js +4 -4
  41. package/src/examples/swap.contract.d.ts +13 -4
  42. package/src/examples/swap.contract.d.ts.map +1 -1
  43. package/src/examples/swap.contract.js +2 -2
  44. package/src/examples/unbond.contract.d.ts +2 -2
  45. package/src/exos/README.md +0 -1
  46. package/src/exos/chain-hub-admin.d.ts +9 -9
  47. package/src/exos/chain-hub-admin.d.ts.map +1 -1
  48. package/src/exos/chain-hub-admin.js +17 -17
  49. package/src/exos/chain-hub.d.ts +17 -69
  50. package/src/exos/chain-hub.d.ts.map +1 -1
  51. package/src/exos/chain-hub.js +55 -289
  52. package/src/exos/cosmos-orchestration-account.d.ts +17 -86
  53. package/src/exos/cosmos-orchestration-account.d.ts.map +1 -1
  54. package/src/exos/cosmos-orchestration-account.js +26 -111
  55. package/src/exos/ibc-packet.d.ts +0 -1
  56. package/src/exos/ibc-packet.d.ts.map +1 -1
  57. package/src/exos/ibc-packet.js +1 -8
  58. package/src/exos/ica-account-kit.d.ts +4 -8
  59. package/src/exos/ica-account-kit.d.ts.map +1 -1
  60. package/src/exos/ica-account-kit.js +5 -8
  61. package/src/exos/local-chain-facade.d.ts +23 -3
  62. package/src/exos/local-chain-facade.d.ts.map +1 -1
  63. package/src/exos/local-chain-facade.js +3 -3
  64. package/src/exos/local-orchestration-account.d.ts +12 -16
  65. package/src/exos/local-orchestration-account.d.ts.map +1 -1
  66. package/src/exos/local-orchestration-account.js +8 -13
  67. package/src/exos/orchestrator.d.ts +15 -5
  68. package/src/exos/orchestrator.d.ts.map +1 -1
  69. package/src/exos/orchestrator.js +10 -9
  70. package/src/exos/packet-tools.d.ts +1 -1
  71. package/src/exos/packet-tools.d.ts.map +1 -1
  72. package/src/exos/packet-tools.js +12 -17
  73. package/src/exos/portfolio-holder-kit.d.ts +0 -1
  74. package/src/exos/portfolio-holder-kit.d.ts.map +1 -1
  75. package/src/exos/portfolio-holder-kit.js +0 -1
  76. package/src/exos/remote-chain-facade.d.ts +15 -5
  77. package/src/exos/remote-chain-facade.d.ts.map +1 -1
  78. package/src/exos/remote-chain-facade.js +13 -23
  79. package/src/facade.js +1 -1
  80. package/src/fetched-chain-info.d.ts +86 -676
  81. package/src/fetched-chain-info.js +41 -553
  82. package/src/fixtures/query-flows.contract.d.ts +4 -5
  83. package/src/fixtures/query-flows.contract.d.ts.map +1 -1
  84. package/src/fixtures/query-flows.contract.js +0 -1
  85. package/src/orchestration-api.d.ts +16 -73
  86. package/src/orchestration-api.d.ts.map +1 -1
  87. package/src/orchestration-api.ts +19 -89
  88. package/src/proposals/start-send-anywhere.js +0 -4
  89. package/src/typeGuards.d.ts +4 -20
  90. package/src/typeGuards.d.ts.map +1 -1
  91. package/src/typeGuards.js +13 -52
  92. package/src/types.d.ts +1 -1
  93. package/src/types.d.ts.map +1 -1
  94. package/src/types.ts +1 -2
  95. package/src/utils/address.d.ts +3 -13
  96. package/src/utils/address.d.ts.map +1 -1
  97. package/src/utils/address.js +5 -97
  98. package/src/utils/chain-hub-helper.d.ts +2 -2
  99. package/src/utils/chain-hub-helper.d.ts.map +1 -1
  100. package/src/utils/chain-hub-helper.js +5 -9
  101. package/src/utils/cosmos.d.ts +1 -1
  102. package/src/utils/cosmos.d.ts.map +1 -1
  103. package/src/utils/cosmos.js +2 -2
  104. package/src/utils/orchestrationAccount.js +5 -6
  105. package/src/utils/registry.d.ts +12 -2
  106. package/src/utils/registry.d.ts.map +1 -1
  107. package/src/utils/registry.js +2 -4
  108. package/src/utils/start-helper.d.ts +6 -20
  109. package/src/utils/start-helper.d.ts.map +1 -1
  110. package/src/utils/start-helper.js +2 -13
  111. package/src/utils/zoe-tools.d.ts +2 -2
  112. package/src/utils/zoe-tools.d.ts.map +1 -1
  113. package/src/utils/zoe-tools.js +2 -5
  114. package/tools/ibc-mocks.d.ts +5 -6
  115. package/tools/ibc-mocks.d.ts.map +1 -1
  116. package/tools/ibc-mocks.ts +4 -10
  117. package/tools/make-test-address.d.ts +1 -2
  118. package/tools/make-test-address.d.ts.map +1 -1
  119. package/tools/make-test-address.js +2 -6
  120. package/src/cctp-chain-info.d.ts +0 -65
  121. package/src/cctp-chain-info.d.ts.map +0 -1
  122. package/src/cctp-chain-info.js +0 -52
  123. package/src/utils/chain-info.d.ts +0 -5
  124. package/src/utils/chain-info.d.ts.map +0 -1
  125. package/src/utils/chain-info.js +0 -11
@@ -1,15 +1,11 @@
1
1
  // eslint-disable-next-line import/no-extraneous-dependencies
2
2
  import { bech32 } from 'bech32';
3
3
 
4
- /**
5
- * @import {Bech32Address} from '../src/cosmos-api.ts';
6
- */
7
-
8
4
  /**
9
5
  * @param {number} index
10
6
  * @param {string} prefix
11
7
  * @param {number} byteLength
12
- * @returns {Bech32Address} a mock bech32 address for tests
8
+ * @returns {string} a mock bech32 address for tests
13
9
  */
14
10
  export const makeTestAddress = (
15
11
  index = 0,
@@ -21,5 +17,5 @@ export const makeTestAddress = (
21
17
  // if index provided, put it in the first byte
22
18
  if (index !== 0) bytes[0] = Number(index);
23
19
  const words = bech32.toWords(bytes);
24
- return /** @type {Bech32Address} */ (bech32.encode(prefix, words));
20
+ return bech32.encode(prefix, words);
25
21
  };
@@ -1,65 +0,0 @@
1
- declare namespace _default {
2
- namespace ethereum {
3
- let namespace: "eip155";
4
- let reference: "1";
5
- let cctpDestinationDomain: 0;
6
- }
7
- namespace avalanche {
8
- let namespace_1: "eip155";
9
- export { namespace_1 as namespace };
10
- let reference_1: "43114";
11
- export { reference_1 as reference };
12
- let cctpDestinationDomain_1: 1;
13
- export { cctpDestinationDomain_1 as cctpDestinationDomain };
14
- }
15
- namespace optimism {
16
- let namespace_2: "eip155";
17
- export { namespace_2 as namespace };
18
- let reference_2: "10";
19
- export { reference_2 as reference };
20
- let cctpDestinationDomain_2: 2;
21
- export { cctpDestinationDomain_2 as cctpDestinationDomain };
22
- }
23
- namespace arbitrum {
24
- let namespace_3: "eip155";
25
- export { namespace_3 as namespace };
26
- let reference_3: "42161";
27
- export { reference_3 as reference };
28
- let cctpDestinationDomain_3: 3;
29
- export { cctpDestinationDomain_3 as cctpDestinationDomain };
30
- }
31
- namespace noble {
32
- let namespace_4: "cosmos";
33
- export { namespace_4 as namespace };
34
- let reference_4: "noble-1";
35
- export { reference_4 as reference };
36
- let cctpDestinationDomain_4: 4;
37
- export { cctpDestinationDomain_4 as cctpDestinationDomain };
38
- }
39
- namespace solana {
40
- let namespace_5: "solana";
41
- export { namespace_5 as namespace };
42
- let reference_5: "5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
43
- export { reference_5 as reference };
44
- let cctpDestinationDomain_5: 5;
45
- export { cctpDestinationDomain_5 as cctpDestinationDomain };
46
- }
47
- namespace base {
48
- let namespace_6: "eip155";
49
- export { namespace_6 as namespace };
50
- let reference_6: "8453";
51
- export { reference_6 as reference };
52
- let cctpDestinationDomain_6: 6;
53
- export { cctpDestinationDomain_6 as cctpDestinationDomain };
54
- }
55
- namespace polygon {
56
- let namespace_7: "eip155";
57
- export { namespace_7 as namespace };
58
- let reference_7: "137";
59
- export { reference_7 as reference };
60
- let cctpDestinationDomain_7: 7;
61
- export { cctpDestinationDomain_7 as cctpDestinationDomain };
62
- }
63
- }
64
- export default _default;
65
- //# sourceMappingURL=cctp-chain-info.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"cctp-chain-info.d.ts","sourceRoot":"","sources":["cctp-chain-info.js"],"names":[],"mappings":""}
@@ -1,52 +0,0 @@
1
- /**
2
- * sourced from https://developers.circle.com/stablecoins/supported-domains and
3
- * https://chainlist.org/ on 19 March 2025
4
- *
5
- * @satisfies {Record<string, import('./orchestration-api').BaseChainInfo>}
6
- */
7
- export default /** @type {const} } */ ({
8
- ethereum: {
9
- namespace: 'eip155',
10
- reference: '1',
11
- cctpDestinationDomain: 0,
12
- },
13
- // Avalanche C-Chain
14
- avalanche: {
15
- namespace: 'eip155',
16
- reference: '43114',
17
- cctpDestinationDomain: 1,
18
- },
19
- // OP Mainnet
20
- optimism: {
21
- namespace: 'eip155',
22
- reference: '10',
23
- cctpDestinationDomain: 2,
24
- },
25
- // Arbitrum One
26
- arbitrum: {
27
- namespace: 'eip155',
28
- reference: '42161',
29
- cctpDestinationDomain: 3,
30
- },
31
- noble: {
32
- namespace: 'cosmos',
33
- reference: 'noble-1',
34
- cctpDestinationDomain: 4,
35
- },
36
- solana: {
37
- namespace: 'solana',
38
- reference: '5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp',
39
- cctpDestinationDomain: 5,
40
- },
41
- base: {
42
- namespace: 'eip155',
43
- reference: '8453',
44
- cctpDestinationDomain: 6,
45
- },
46
- // Polygon PoS
47
- polygon: {
48
- namespace: 'eip155',
49
- reference: '137',
50
- cctpDestinationDomain: 7,
51
- },
52
- });
@@ -1,5 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,11 +0,0 @@
1
- /**
2
- * @import {CaipChainId, ChainHub, ChainInfo, CosmosChainInfo, Denom, DenomDetail, Caip10Record} from '../types.js';
3
- */
4
-
5
- /**
6
- * @param {ChainInfo | Caip10Record} info
7
- * @returns {CaipChainId}
8
- */
9
- export const caipIdFromInfo = info => {
10
- return `${info.namespace}:${info.reference}`;
11
- };