@pyxisjs/chains 0.2.4 → 0.2.5
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2887,7 +2887,8 @@ import {
|
|
|
2887
2887
|
PyxisUtils,
|
|
2888
2888
|
getLayerZeroEndpointId,
|
|
2889
2889
|
getEstimatedBridgeTime,
|
|
2890
|
-
getLayerZeroGasLimit
|
|
2890
|
+
getLayerZeroGasLimit,
|
|
2891
|
+
BridgeMethod
|
|
2891
2892
|
} from "@pyxisjs/core";
|
|
2892
2893
|
import { Options } from "@layerzerolabs/lz-v2-utilities";
|
|
2893
2894
|
|
|
@@ -8573,7 +8574,7 @@ var AptosChainAdapter = class extends BaseChainAdapter {
|
|
|
8573
8574
|
return {
|
|
8574
8575
|
fee: nativeFee,
|
|
8575
8576
|
feeTokenAddress: APTOS_COIN,
|
|
8576
|
-
method:
|
|
8577
|
+
method: BridgeMethod.LayerZero,
|
|
8577
8578
|
estimatedTime: getEstimatedBridgeTime(this.chain.id, destinationChain),
|
|
8578
8579
|
extraOptions,
|
|
8579
8580
|
// Pay only with native (payInZro = false)
|
|
@@ -9038,7 +9039,7 @@ var import_dayjs2 = __toESM(require_dayjs_min());
|
|
|
9038
9039
|
import { Options as Options2 } from "@layerzerolabs/lz-v2-utilities";
|
|
9039
9040
|
import {
|
|
9040
9041
|
BaseChainAdapter as BaseChainAdapter3,
|
|
9041
|
-
BridgeMethod,
|
|
9042
|
+
BridgeMethod as BridgeMethod2,
|
|
9042
9043
|
ChainId,
|
|
9043
9044
|
PyxisUtils as PyxisUtils3,
|
|
9044
9045
|
getChainConfig as getChainConfig3,
|
|
@@ -9322,7 +9323,7 @@ var EthereumChainAdapter = class extends BaseChainAdapter3 {
|
|
|
9322
9323
|
return {
|
|
9323
9324
|
fee: result.toString(),
|
|
9324
9325
|
feeTokenAddress: zeroAddress,
|
|
9325
|
-
method:
|
|
9326
|
+
method: BridgeMethod2.LayerZero,
|
|
9326
9327
|
estimatedTime: getEstimatedBridgeTime2(this.chain.id, destinationChain),
|
|
9327
9328
|
extraOptions: Options2.newOptions().addExecutorLzReceiveOption(
|
|
9328
9329
|
getLayerZeroGasLimit2(this.chain.id, destinationChain)
|
|
@@ -9349,7 +9350,7 @@ var EthereumChainAdapter = class extends BaseChainAdapter3 {
|
|
|
9349
9350
|
const extraOptionsHex = "0x" + Buffer.from(args.extraOptions).toString("hex");
|
|
9350
9351
|
const bridgeData = {
|
|
9351
9352
|
chainSelector: dstEid,
|
|
9352
|
-
messageGas:
|
|
9353
|
+
messageGas: args.fee,
|
|
9353
9354
|
destinationChainReceiver: args.recipient,
|
|
9354
9355
|
bridgeFeeToken: ethAddress,
|
|
9355
9356
|
data: extraOptionsHex
|