@hyperlane-xyz/cli 25.4.0 → 25.4.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 (2) hide show
  1. package/bundle/index.js +20 -3
  2. package/package.json +13 -13
package/bundle/index.js CHANGED
@@ -612825,7 +612825,7 @@ __webpack_async_result__();
612825
612825
  /* harmony export */ __nccwpck_require__.d(__webpack_exports__, {
612826
612826
  /* harmony export */ x: () => (/* binding */ VERSION)
612827
612827
  /* harmony export */ });
612828
- const VERSION = '25.4.0';
612828
+ const VERSION = '25.4.1';
612829
612829
  //# sourceMappingURL=version.js.map
612830
612830
 
612831
612831
  /***/ }),
@@ -744528,6 +744528,14 @@ class Token {
744528
744528
  const { standard, chainName, addressOrDenom, collateralAddressOrDenom } = this;
744529
744529
  const chainMetadata = multiProvider.tryGetChainMetadata(chainName);
744530
744530
  const mailbox = chainMetadata?.mailbox;
744531
+ if (standard === _TokenStandard_js__WEBPACK_IMPORTED_MODULE_0__/* .TokenStandard */ .ph.EvmNative &&
744532
+ this.connections?.length &&
744533
+ this.connections.every((c) => !c.type || c.type === _TokenConnection_js__WEBPACK_IMPORTED_MODULE_11__/* .TokenConnectionType */ .M6.Hyperlane)) {
744534
+ (0,_hyperlane_xyz_utils__WEBPACK_IMPORTED_MODULE_1__/* .assert */ .v)(chainMetadata, `Token chain ${chainName} not found in multiProvider`);
744535
+ return new _adapters_EvmTokenAdapter_js__WEBPACK_IMPORTED_MODULE_4__/* .EvmHypNativeAdapter */ .uc(chainName, multiProvider, {
744536
+ token: addressOrDenom,
744537
+ });
744538
+ }
744531
744539
  (0,_hyperlane_xyz_utils__WEBPACK_IMPORTED_MODULE_1__/* .assert */ .v)(this.isMultiChainToken(), `Token standard ${standard} not applicable to hyp adapter`);
744532
744540
  (0,_hyperlane_xyz_utils__WEBPACK_IMPORTED_MODULE_1__/* .assert */ .v)(!this.isNft(), 'NFT adapters not yet supported');
744533
744541
  (0,_hyperlane_xyz_utils__WEBPACK_IMPORTED_MODULE_1__/* .assert */ .v)(chainMetadata, `Token chain ${chainName} not found in multiProvider`);
@@ -756366,8 +756374,17 @@ class WarpCore {
756366
756374
  }
756367
756375
  // Form transactions to estimate local gas with
756368
756376
  const recipient = (0,_hyperlane_xyz_utils__WEBPACK_IMPORTED_MODULE_5__/* .convertToProtocolAddress */ .Vj)(sender, destinationMetadata.protocol, destinationMetadata.bech32Prefix);
756377
+ // Use a small but viable amount for gas estimation. Must survive on-chain
756378
+ // decimal truncation (e.g. 18→6 decimals) to avoid reverts like
756379
+ // "HypNativeMinter: destination amount < 1". Compute minimum as
756380
+ // 10^(originDecimals - destDecimals) so destination gets exactly 1 unit.
756381
+ const destToken = originToken.getConnectionForChain(destinationMetadata.name)?.token;
756382
+ const decimalDiff = destToken
756383
+ ? Math.max(0, originToken.decimals - destToken.decimals)
756384
+ : 0;
756385
+ const gasEstimationAmount = BigInt(10) ** BigInt(decimalDiff);
756369
756386
  const txs = await this.getTransferRemoteTxs({
756370
- originTokenAmount: originToken.amount(2),
756387
+ originTokenAmount: originToken.amount(gasEstimationAmount),
756371
756388
  destination,
756372
756389
  sender,
756373
756390
  recipient,
@@ -895936,7 +895953,7 @@ module.exports = /*#__PURE__*/JSON.parse('[{"type":"function","name":"proveL2Lea
895936
895953
  /***/ 77087:
895937
895954
  /***/ ((module) => {
895938
895955
 
895939
- module.exports = {"rE":"25.4.0"};
895956
+ module.exports = {"rE":"25.4.1"};
895940
895957
 
895941
895958
  /***/ })
895942
895959
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperlane-xyz/cli",
3
- "version": "25.4.0",
3
+ "version": "25.4.1",
4
4
  "description": "A command-line utility for common Hyperlane operations",
5
5
  "keywords": [
6
6
  "CLI",
@@ -78,19 +78,19 @@
78
78
  "zod": "^3.21.2",
79
79
  "zod-validation-error": "^3.3.0",
80
80
  "zx": "^8.1.4",
81
- "@hyperlane-xyz/aleo-sdk": "25.4.0",
82
- "@hyperlane-xyz/cosmos-sdk": "25.4.0",
83
- "@hyperlane-xyz/deploy-sdk": "1.4.0",
81
+ "@hyperlane-xyz/cosmos-sdk": "25.4.1",
82
+ "@hyperlane-xyz/aleo-sdk": "25.4.1",
83
+ "@hyperlane-xyz/deploy-sdk": "1.4.1",
84
+ "@hyperlane-xyz/http-registry-server": "25.4.1",
84
85
  "@hyperlane-xyz/core": "11.0.1",
85
- "@hyperlane-xyz/http-registry-server": "25.4.0",
86
- "@hyperlane-xyz/provider-sdk": "1.4.0",
87
- "@hyperlane-xyz/rebalancer": "3.2.0",
88
- "@hyperlane-xyz/radix-sdk": "25.4.0",
89
- "@hyperlane-xyz/relayer": "1.1.4",
90
- "@hyperlane-xyz/sdk": "25.4.0",
91
- "@hyperlane-xyz/tsconfig": "^25.4.0",
92
- "@hyperlane-xyz/utils": "25.4.0",
93
- "@hyperlane-xyz/tron-sdk": "21.1.3"
86
+ "@hyperlane-xyz/provider-sdk": "1.4.1",
87
+ "@hyperlane-xyz/radix-sdk": "25.4.1",
88
+ "@hyperlane-xyz/rebalancer": "3.2.1",
89
+ "@hyperlane-xyz/sdk": "25.4.1",
90
+ "@hyperlane-xyz/relayer": "1.1.5",
91
+ "@hyperlane-xyz/tron-sdk": "21.1.4",
92
+ "@hyperlane-xyz/tsconfig": "^25.4.1",
93
+ "@hyperlane-xyz/utils": "25.4.1"
94
94
  },
95
95
  "engines": {
96
96
  "node": ">=16"