@pyxisjs/chains 0.2.5 → 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,6 @@ import {
2887
2887
  PyxisUtils,
2888
2888
  getLayerZeroEndpointId,
2889
2889
  getEstimatedBridgeTime,
2890
- getLayerZeroGasLimit,
2891
2890
  BridgeMethod
2892
2891
  } from "@pyxisjs/core";
2893
2892
  import { Options } from "@layerzerolabs/lz-v2-utilities";
@@ -8552,9 +8551,7 @@ var AptosChainAdapter = class extends BaseChainAdapter {
8552
8551
  "quote_bridge",
8553
8552
  lzTellerAddress
8554
8553
  );
8555
- const gasLimit = getLayerZeroGasLimit(this.chain.id, destinationChain);
8556
- const options = Options.newOptions().addExecutorLzReceiveOption(gasLimit);
8557
- const extraOptions = options.toBytes();
8554
+ const extraOptions = Options.newOptions().toBytes();
8558
8555
  const payInZro = false;
8559
8556
  const dstEid = getLayerZeroEndpointId(destinationChain);
8560
8557
  const recipientBytes = this.addressToBytes(recipient);
@@ -9045,7 +9042,7 @@ import {
9045
9042
  getChainConfig as getChainConfig3,
9046
9043
  getEstimatedBridgeTime as getEstimatedBridgeTime2,
9047
9044
  getLayerZeroEndpointId as getLayerZeroEndpointId2,
9048
- getLayerZeroGasLimit as getLayerZeroGasLimit2
9045
+ getLayerZeroGasLimit
9049
9046
  } from "@pyxisjs/core";
9050
9047
  import {
9051
9048
  createPublicClient,
@@ -9309,7 +9306,7 @@ var EthereumChainAdapter = class extends BaseChainAdapter3 {
9309
9306
  const bridgeData = {
9310
9307
  chainSelector: dstEid,
9311
9308
  destinationChainReceiver: recipient,
9312
- messageGas: getLayerZeroGasLimit2(this.chain.id, destinationChain),
9309
+ messageGas: getLayerZeroGasLimit(this.chain.id, destinationChain),
9313
9310
  bridgeFeeToken: ethAddress,
9314
9311
  data: "0x"
9315
9312
  // Empty extra data
@@ -9326,7 +9323,7 @@ var EthereumChainAdapter = class extends BaseChainAdapter3 {
9326
9323
  method: BridgeMethod2.LayerZero,
9327
9324
  estimatedTime: getEstimatedBridgeTime2(this.chain.id, destinationChain),
9328
9325
  extraOptions: Options2.newOptions().addExecutorLzReceiveOption(
9329
- getLayerZeroGasLimit2(this.chain.id, destinationChain)
9326
+ getLayerZeroGasLimit(this.chain.id, destinationChain)
9330
9327
  ).toBytes(),
9331
9328
  zroFee: "0"
9332
9329
  };
@@ -9350,7 +9347,7 @@ var EthereumChainAdapter = class extends BaseChainAdapter3 {
9350
9347
  const extraOptionsHex = "0x" + Buffer.from(args.extraOptions).toString("hex");
9351
9348
  const bridgeData = {
9352
9349
  chainSelector: dstEid,
9353
- messageGas: args.fee,
9350
+ messageGas: getLayerZeroGasLimit(this.chain.id, args.destinationChain),
9354
9351
  destinationChainReceiver: args.recipient,
9355
9352
  bridgeFeeToken: ethAddress,
9356
9353
  data: extraOptionsHex