@pyxisjs/chains 0.2.4 → 0.2.6

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.
package/dist/index.mjs CHANGED
@@ -2887,7 +2887,7 @@ import {
2887
2887
  PyxisUtils,
2888
2888
  getLayerZeroEndpointId,
2889
2889
  getEstimatedBridgeTime,
2890
- getLayerZeroGasLimit
2890
+ BridgeMethod
2891
2891
  } from "@pyxisjs/core";
2892
2892
  import { Options } from "@layerzerolabs/lz-v2-utilities";
2893
2893
 
@@ -8551,9 +8551,7 @@ var AptosChainAdapter = class extends BaseChainAdapter {
8551
8551
  "quote_bridge",
8552
8552
  lzTellerAddress
8553
8553
  );
8554
- const gasLimit = getLayerZeroGasLimit(this.chain.id, destinationChain);
8555
- const options = Options.newOptions().addExecutorLzReceiveOption(gasLimit);
8556
- const extraOptions = options.toBytes();
8554
+ const extraOptions = Options.newOptions().toBytes();
8557
8555
  const payInZro = false;
8558
8556
  const dstEid = getLayerZeroEndpointId(destinationChain);
8559
8557
  const recipientBytes = this.addressToBytes(recipient);
@@ -8573,7 +8571,7 @@ var AptosChainAdapter = class extends BaseChainAdapter {
8573
8571
  return {
8574
8572
  fee: nativeFee,
8575
8573
  feeTokenAddress: APTOS_COIN,
8576
- method: "LayerZero",
8574
+ method: BridgeMethod.LayerZero,
8577
8575
  estimatedTime: getEstimatedBridgeTime(this.chain.id, destinationChain),
8578
8576
  extraOptions,
8579
8577
  // Pay only with native (payInZro = false)
@@ -9038,13 +9036,13 @@ var import_dayjs2 = __toESM(require_dayjs_min());
9038
9036
  import { Options as Options2 } from "@layerzerolabs/lz-v2-utilities";
9039
9037
  import {
9040
9038
  BaseChainAdapter as BaseChainAdapter3,
9041
- BridgeMethod,
9039
+ BridgeMethod as BridgeMethod2,
9042
9040
  ChainId,
9043
9041
  PyxisUtils as PyxisUtils3,
9044
9042
  getChainConfig as getChainConfig3,
9045
9043
  getEstimatedBridgeTime as getEstimatedBridgeTime2,
9046
9044
  getLayerZeroEndpointId as getLayerZeroEndpointId2,
9047
- getLayerZeroGasLimit as getLayerZeroGasLimit2
9045
+ getLayerZeroGasLimit
9048
9046
  } from "@pyxisjs/core";
9049
9047
  import {
9050
9048
  createPublicClient,
@@ -9308,7 +9306,7 @@ var EthereumChainAdapter = class extends BaseChainAdapter3 {
9308
9306
  const bridgeData = {
9309
9307
  chainSelector: dstEid,
9310
9308
  destinationChainReceiver: recipient,
9311
- messageGas: getLayerZeroGasLimit2(this.chain.id, destinationChain),
9309
+ messageGas: getLayerZeroGasLimit(this.chain.id, destinationChain),
9312
9310
  bridgeFeeToken: ethAddress,
9313
9311
  data: "0x"
9314
9312
  // Empty extra data
@@ -9322,10 +9320,10 @@ var EthereumChainAdapter = class extends BaseChainAdapter3 {
9322
9320
  return {
9323
9321
  fee: result.toString(),
9324
9322
  feeTokenAddress: zeroAddress,
9325
- method: BridgeMethod.LayerZero,
9323
+ method: BridgeMethod2.LayerZero,
9326
9324
  estimatedTime: getEstimatedBridgeTime2(this.chain.id, destinationChain),
9327
9325
  extraOptions: Options2.newOptions().addExecutorLzReceiveOption(
9328
- getLayerZeroGasLimit2(this.chain.id, destinationChain)
9326
+ getLayerZeroGasLimit(this.chain.id, destinationChain)
9329
9327
  ).toBytes(),
9330
9328
  zroFee: "0"
9331
9329
  };
@@ -9349,7 +9347,7 @@ var EthereumChainAdapter = class extends BaseChainAdapter3 {
9349
9347
  const extraOptionsHex = "0x" + Buffer.from(args.extraOptions).toString("hex");
9350
9348
  const bridgeData = {
9351
9349
  chainSelector: dstEid,
9352
- messageGas: getLayerZeroGasLimit2(this.chain.id, args.destinationChain),
9350
+ messageGas: getLayerZeroGasLimit(this.chain.id, args.destinationChain),
9353
9351
  destinationChainReceiver: args.recipient,
9354
9352
  bridgeFeeToken: ethAddress,
9355
9353
  data: extraOptionsHex