@pyxisjs/chains 0.2.5 → 0.2.7

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.js CHANGED
@@ -8565,9 +8565,7 @@ var AptosChainAdapter = class extends import_core2.BaseChainAdapter {
8565
8565
  "quote_bridge",
8566
8566
  lzTellerAddress
8567
8567
  );
8568
- const gasLimit = (0, import_core2.getLayerZeroGasLimit)(this.chain.id, destinationChain);
8569
- const options = import_lz_v2_utilities.Options.newOptions().addExecutorLzReceiveOption(gasLimit);
8570
- const extraOptions = options.toBytes();
8568
+ const extraOptions = import_lz_v2_utilities.Options.newOptions().toBytes();
8571
8569
  const payInZro = false;
8572
8570
  const dstEid = (0, import_core2.getLayerZeroEndpointId)(destinationChain);
8573
8571
  const recipientBytes = this.addressToBytes(recipient);
@@ -8701,7 +8699,7 @@ var AptosChainAdapter = class extends import_core2.BaseChainAdapter {
8701
8699
  "atomicQueue",
8702
8700
  "get_minimum_request_age"
8703
8701
  );
8704
- const result = await this.viewContract({
8702
+ const [result] = await this.viewContract({
8705
8703
  address: this.getContractAddress("atomicQueue"),
8706
8704
  function: functionSignature,
8707
8705
  arguments: [args.vault],
@@ -8720,7 +8718,7 @@ var AptosChainAdapter = class extends import_core2.BaseChainAdapter {
8720
8718
  "atomicQueue",
8721
8719
  "get_user_atomic_requests"
8722
8720
  );
8723
- const withdrawalRequests = await this.viewContract({
8721
+ const [withdrawalRequests] = await this.viewContract({
8724
8722
  address: this.getContractAddress("atomicQueue"),
8725
8723
  function: getUserRequestsFn,
8726
8724
  arguments: [vault, userAddress, requestFlag, matchAll],
@@ -8731,8 +8729,8 @@ var AptosChainAdapter = class extends import_core2.BaseChainAdapter {
8731
8729
  "get_request_updated_at"
8732
8730
  );
8733
8731
  const updatedAtResults = await Promise.allSettled(
8734
- withdrawalRequests.map(
8735
- (request) => this.viewContract({
8732
+ withdrawalRequests.map(async (request) => {
8733
+ const [updatedAtResult] = await this.viewContract({
8736
8734
  address: this.getContractAddress("atomicQueue"),
8737
8735
  function: getUpdatedAtFn,
8738
8736
  arguments: [
@@ -8742,8 +8740,9 @@ var AptosChainAdapter = class extends import_core2.BaseChainAdapter {
8742
8740
  request.want_token.inner
8743
8741
  ],
8744
8742
  abi: this.getContractABI("atomicQueue")
8745
- })
8746
- )
8743
+ });
8744
+ return updatedAtResult;
8745
+ })
8747
8746
  );
8748
8747
  return withdrawalRequests.map(
8749
8748
  (request, index) => {
@@ -9344,7 +9343,7 @@ var EthereumChainAdapter = class extends import_core4.BaseChainAdapter {
9344
9343
  const extraOptionsHex = "0x" + Buffer.from(args.extraOptions).toString("hex");
9345
9344
  const bridgeData = {
9346
9345
  chainSelector: dstEid,
9347
- messageGas: args.fee,
9346
+ messageGas: (0, import_core4.getLayerZeroGasLimit)(this.chain.id, args.destinationChain),
9348
9347
  destinationChainReceiver: args.recipient,
9349
9348
  bridgeFeeToken: import_viem.ethAddress,
9350
9349
  data: extraOptionsHex