@hyperlane-xyz/cli 3.10.0 → 3.10.1-beta0

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 (109) hide show
  1. package/dist/cli.js +4 -0
  2. package/dist/cli.js.map +1 -1
  3. package/dist/src/commands/deploy.d.ts +6 -0
  4. package/dist/src/commands/deploy.d.ts.map +1 -1
  5. package/dist/src/commands/deploy.js +66 -54
  6. package/dist/src/commands/deploy.js.map +1 -1
  7. package/dist/src/commands/hook.d.ts +7 -0
  8. package/dist/src/commands/hook.d.ts.map +1 -0
  9. package/dist/src/commands/hook.js +42 -0
  10. package/dist/src/commands/hook.js.map +1 -0
  11. package/dist/src/commands/ism.d.ts +7 -0
  12. package/dist/src/commands/ism.d.ts.map +1 -0
  13. package/dist/src/commands/ism.js +44 -0
  14. package/dist/src/commands/ism.js.map +1 -0
  15. package/dist/src/commands/options.d.ts +37 -2
  16. package/dist/src/commands/options.d.ts.map +1 -1
  17. package/dist/src/commands/options.js +45 -2
  18. package/dist/src/commands/options.js.map +1 -1
  19. package/dist/src/commands/send.d.ts +8 -1
  20. package/dist/src/commands/send.d.ts.map +1 -1
  21. package/dist/src/commands/send.js +14 -4
  22. package/dist/src/commands/send.js.map +1 -1
  23. package/dist/src/commands/status.d.ts.map +1 -1
  24. package/dist/src/commands/status.js +8 -7
  25. package/dist/src/commands/status.js.map +1 -1
  26. package/dist/src/config/artifacts.d.ts +6 -1
  27. package/dist/src/config/artifacts.d.ts.map +1 -1
  28. package/dist/src/config/artifacts.js +7 -1
  29. package/dist/src/config/artifacts.js.map +1 -1
  30. package/dist/src/config/ism.d.ts +18 -0
  31. package/dist/src/config/ism.d.ts.map +1 -1
  32. package/dist/src/config/ism.js +22 -7
  33. package/dist/src/config/ism.js.map +1 -1
  34. package/dist/src/config/warp.d.ts +30 -180
  35. package/dist/src/config/warp.d.ts.map +1 -1
  36. package/dist/src/config/warp.js +19 -56
  37. package/dist/src/config/warp.js.map +1 -1
  38. package/dist/src/context.d.ts +22 -5
  39. package/dist/src/context.d.ts.map +1 -1
  40. package/dist/src/context.js +57 -18
  41. package/dist/src/context.js.map +1 -1
  42. package/dist/src/deploy/core.d.ts +6 -2
  43. package/dist/src/deploy/core.d.ts.map +1 -1
  44. package/dist/src/deploy/core.js +37 -16
  45. package/dist/src/deploy/core.js.map +1 -1
  46. package/dist/src/deploy/dry-run.d.ts +20 -0
  47. package/dist/src/deploy/dry-run.d.ts.map +1 -0
  48. package/dist/src/deploy/dry-run.js +45 -0
  49. package/dist/src/deploy/dry-run.js.map +1 -0
  50. package/dist/src/deploy/utils.d.ts +6 -1
  51. package/dist/src/deploy/utils.d.ts.map +1 -1
  52. package/dist/src/deploy/utils.js +40 -6
  53. package/dist/src/deploy/utils.js.map +1 -1
  54. package/dist/src/deploy/warp.d.ts +3 -2
  55. package/dist/src/deploy/warp.d.ts.map +1 -1
  56. package/dist/src/deploy/warp.js +94 -89
  57. package/dist/src/deploy/warp.js.map +1 -1
  58. package/dist/src/hook/read.d.ts +14 -0
  59. package/dist/src/hook/read.d.ts.map +1 -0
  60. package/dist/src/hook/read.js +29 -0
  61. package/dist/src/hook/read.js.map +1 -0
  62. package/dist/src/ism/read.d.ts +14 -0
  63. package/dist/src/ism/read.d.ts.map +1 -0
  64. package/dist/src/ism/read.js +29 -0
  65. package/dist/src/ism/read.js.map +1 -0
  66. package/dist/src/logger.d.ts +1 -0
  67. package/dist/src/logger.d.ts.map +1 -1
  68. package/dist/src/logger.js +1 -0
  69. package/dist/src/logger.js.map +1 -1
  70. package/dist/src/send/message.d.ts +3 -2
  71. package/dist/src/send/message.d.ts.map +1 -1
  72. package/dist/src/send/message.js +8 -2
  73. package/dist/src/send/message.js.map +1 -1
  74. package/dist/src/send/transfer.d.ts +3 -2
  75. package/dist/src/send/transfer.d.ts.map +1 -1
  76. package/dist/src/send/transfer.js +9 -3
  77. package/dist/src/send/transfer.js.map +1 -1
  78. package/dist/src/status/message.d.ts +4 -1
  79. package/dist/src/status/message.d.ts.map +1 -1
  80. package/dist/src/status/message.js +14 -3
  81. package/dist/src/status/message.js.map +1 -1
  82. package/dist/src/tests/deployTestErc20.js +4 -4
  83. package/dist/src/tests/deployTestErc20.js.map +1 -1
  84. package/dist/src/utils/env.d.ts +2 -0
  85. package/dist/src/utils/env.d.ts.map +1 -1
  86. package/dist/src/utils/env.js +2 -0
  87. package/dist/src/utils/env.js.map +1 -1
  88. package/dist/src/utils/files.d.ts +12 -4
  89. package/dist/src/utils/files.d.ts.map +1 -1
  90. package/dist/src/utils/files.js +35 -11
  91. package/dist/src/utils/files.js.map +1 -1
  92. package/dist/src/utils/fork.d.ts +37 -0
  93. package/dist/src/utils/fork.d.ts.map +1 -0
  94. package/dist/src/utils/fork.js +91 -0
  95. package/dist/src/utils/fork.js.map +1 -0
  96. package/dist/src/utils/keys.d.ts +16 -2
  97. package/dist/src/utils/keys.d.ts.map +1 -1
  98. package/dist/src/utils/keys.js +67 -6
  99. package/dist/src/utils/keys.js.map +1 -1
  100. package/dist/src/version.d.ts +1 -1
  101. package/dist/src/version.d.ts.map +1 -1
  102. package/dist/src/version.js +1 -1
  103. package/dist/src/version.js.map +1 -1
  104. package/examples/dry-run/anvil-chains.yaml +17 -0
  105. package/examples/dry-run/ism.yaml +8 -0
  106. package/examples/dry-run/warp-route-deployment.yaml +4 -0
  107. package/examples/fork/warp-route-deployment.yaml +17 -9
  108. package/examples/warp-route-deployment.yaml +17 -10
  109. package/package.json +9 -7
@@ -10,17 +10,25 @@
10
10
  # fastCollateral
11
11
  # fastSynthetic
12
12
  ---
13
- base:
14
- chainName: anvil
13
+ anvil:
15
14
  type: native
16
- # address: 0x123... # Required for collateral types
15
+ # token: "0x123" # Collateral/vault address. Required for collateral types
16
+ # owner: "0x123" # Optional owner address for synthetic token
17
+ # mailbox: "0x123" # mailbox address route
18
+ # interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
17
19
  # isNft: true # If the token is an NFT (ERC721), set to true
18
- # owner: 0x123 # Optional owner address for synthetic token
19
- # mailbox: 0x123 # Optional mailbox address route
20
- # interchainGasPaymaster: 0x123 # Optional interchainGasPaymaster address
21
- synthetics:
22
- - chainName: ethereum
23
- # You can optionally set the token metadata, otherwise the base token's will be used
20
+ # You can optionally set the token metadata
21
+ # name: "MyCollateralToken"
22
+ # symbol: "MCT"
23
+ # totalSupply: 10000000
24
+
25
+ ethereum:
26
+ type: synthetic
27
+ # token: "0x123" # Collateral/vault address. Required for collateral types
28
+ # owner: "0x123" # Optional owner address for synthetic token
29
+ # mailbox: "0x123" # mailbox address route
30
+ # interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
31
+ # You can optionally set the token metadata
24
32
  # name: "MySyntheticToken"
25
33
  # symbol: "MST"
26
34
  # totalSupply: 10000000
@@ -4,24 +4,31 @@
4
4
  # Token Types:
5
5
  # native
6
6
  # collateral
7
- # collateralVault
8
7
  # synthetic
9
8
  # collateralUri
10
9
  # syntheticUri
11
10
  # fastCollateral
12
11
  # fastSynthetic
13
12
  ---
14
- base:
15
- chainName: anvil1
13
+ anvil1:
16
14
  type: native
17
- # address: 0x123... # Required for collateral types. For collateralVault types, specifies the ERC4626 vault to deposit collateral into
15
+ # token: "0x123" # Collateral/vault address. Required for collateral types
16
+ # owner: "0x123" # Optional owner address for synthetic token
17
+ # mailbox: "0x123" # mailbox address route
18
+ # interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
18
19
  # isNft: true # If the token is an NFT (ERC721), set to true
19
- # owner: 0x123 # Optional owner address for synthetic token
20
- # mailbox: 0x123 # Optional mailbox address route
21
- # interchainGasPaymaster: 0x123 # Optional interchainGasPaymaster address
22
- synthetics:
23
- - chainName: anvil2
24
- # You can optionally set the token metadata, otherwise the base token's will be used
20
+ # You can optionally set the token metadata
21
+ # name: "MyCollateralToken"
22
+ # symbol: "MCT"
23
+ # totalSupply: 10000000
24
+
25
+ anvil2:
26
+ type: synthetic
27
+ # token: "0x123" # Collateral/vault address. Required for collateral types
28
+ # owner: "0x123" # Optional owner address for synthetic token
29
+ # mailbox: "0x123" # mailbox address route
30
+ # interchainGasPaymaster: "0x123" # Optional interchainGasPaymaster address
31
+ # You can optionally set the token metadata
25
32
  # name: "MySyntheticToken"
26
33
  # symbol: "MST"
27
34
  # totalSupply: 10000000
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperlane-xyz/cli",
3
- "version": "3.10.0",
3
+ "version": "3.10.1-beta0",
4
4
  "description": "A command-line utility for common Hyperlane operations",
5
5
  "dependencies": {
6
6
  "@hyperlane-xyz/sdk": "3.10.0",
@@ -20,11 +20,11 @@
20
20
  "@types/mocha": "^10.0.1",
21
21
  "@types/node": "^18.14.5",
22
22
  "@types/yargs": "^17.0.24",
23
- "@typescript-eslint/eslint-plugin": "^5.62.0",
24
- "@typescript-eslint/parser": "^5.62.0",
23
+ "@typescript-eslint/eslint-plugin": "^7.4.0",
24
+ "@typescript-eslint/parser": "^7.4.0",
25
25
  "chai": "^4.3.6",
26
- "eslint": "^8.43.0",
27
- "eslint-config-prettier": "^8.8.0",
26
+ "eslint": "^8.57.0",
27
+ "eslint-config-prettier": "^9.1.0",
28
28
  "mocha": "^10.2.0",
29
29
  "prettier": "^2.8.8",
30
30
  "typescript": "^5.1.6"
@@ -48,6 +48,9 @@
48
48
  "main": "./dist/index.js",
49
49
  "types": "./dist/index.d.ts",
50
50
  "type": "module",
51
+ "engines": {
52
+ "node": ">=16"
53
+ },
51
54
  "bin": {
52
55
  "hyperlane": "./dist/cli.js"
53
56
  },
@@ -63,6 +66,5 @@
63
66
  "Permissionless",
64
67
  "Deployment",
65
68
  "Typescript"
66
- ],
67
- "packageManager": "yarn@4.0.1"
69
+ ]
68
70
  }