@xchainjs/xchain-avax 2.0.6 → 2.0.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/lib/index.esm.js +1 -1
- package/lib/index.js +17 -13
- package/package.json +6 -6
package/lib/index.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { ClientKeystore as ClientKeystore$1, KeystoreSigner, ClientLedger as Cli
|
|
|
3
3
|
import { EtherscanProviderV2, RoutescanProvider } from '@xchainjs/xchain-evm-providers';
|
|
4
4
|
import { AssetType } from '@xchainjs/xchain-util';
|
|
5
5
|
import { JsonRpcProvider } from 'ethers';
|
|
6
|
-
import
|
|
6
|
+
import BigNumber from 'bignumber.js';
|
|
7
7
|
|
|
8
8
|
// Import necessary modules and classes from external packages and files
|
|
9
9
|
// Define constants related to Avalanche
|
package/lib/index.js
CHANGED
|
@@ -7,7 +7,11 @@ var xchainEvm = require('@xchainjs/xchain-evm');
|
|
|
7
7
|
var xchainEvmProviders = require('@xchainjs/xchain-evm-providers');
|
|
8
8
|
var xchainUtil = require('@xchainjs/xchain-util');
|
|
9
9
|
var ethers = require('ethers');
|
|
10
|
-
var
|
|
10
|
+
var BigNumber = require('bignumber.js');
|
|
11
|
+
|
|
12
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
+
|
|
14
|
+
var BigNumber__default = /*#__PURE__*/_interopDefault(BigNumber);
|
|
11
15
|
|
|
12
16
|
// Import necessary modules and classes from external packages and files
|
|
13
17
|
// Define constants related to Avalanche
|
|
@@ -70,22 +74,22 @@ const ethRootDerivationPaths = {
|
|
|
70
74
|
// Define default parameters for the Avalanche client
|
|
71
75
|
const defaults = {
|
|
72
76
|
[xchainClient.Network.Mainnet]: {
|
|
73
|
-
approveGasLimit: new
|
|
74
|
-
transferGasAssetGasLimit: new
|
|
75
|
-
transferTokenGasLimit: new
|
|
76
|
-
gasPrice: new
|
|
77
|
+
approveGasLimit: new BigNumber__default.default(200000),
|
|
78
|
+
transferGasAssetGasLimit: new BigNumber__default.default(23000),
|
|
79
|
+
transferTokenGasLimit: new BigNumber__default.default(100000),
|
|
80
|
+
gasPrice: new BigNumber__default.default(30 * Math.pow(10, 9)),
|
|
77
81
|
},
|
|
78
82
|
[xchainClient.Network.Testnet]: {
|
|
79
|
-
approveGasLimit: new
|
|
80
|
-
transferGasAssetGasLimit: new
|
|
81
|
-
transferTokenGasLimit: new
|
|
82
|
-
gasPrice: new
|
|
83
|
+
approveGasLimit: new BigNumber__default.default(200000),
|
|
84
|
+
transferGasAssetGasLimit: new BigNumber__default.default(23000),
|
|
85
|
+
transferTokenGasLimit: new BigNumber__default.default(100000),
|
|
86
|
+
gasPrice: new BigNumber__default.default(30 * Math.pow(10, 9)),
|
|
83
87
|
},
|
|
84
88
|
[xchainClient.Network.Stagenet]: {
|
|
85
|
-
approveGasLimit: new
|
|
86
|
-
transferGasAssetGasLimit: new
|
|
87
|
-
transferTokenGasLimit: new
|
|
88
|
-
gasPrice: new
|
|
89
|
+
approveGasLimit: new BigNumber__default.default(200000),
|
|
90
|
+
transferGasAssetGasLimit: new BigNumber__default.default(23000),
|
|
91
|
+
transferTokenGasLimit: new BigNumber__default.default(100000),
|
|
92
|
+
gasPrice: new BigNumber__default.default(30 * Math.pow(10, 9)),
|
|
89
93
|
},
|
|
90
94
|
};
|
|
91
95
|
// Define the default parameters for the Avalanche client
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-avax",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Avax EVM client for XChainJS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"XChain",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"build": "yarn clean && rollup -c --bundleConfigAsCjs",
|
|
29
29
|
"build:release": "yarn exec rm -rf release && yarn pack && yarn exec \"mkdir release && tar zxvf package.tgz --directory release && rm package.tgz\"",
|
|
30
30
|
"test": "jest --passWithNoTests",
|
|
31
|
-
"e2e": "jest --config jest.config.e2e.
|
|
31
|
+
"e2e": "jest --config jest.config.e2e.mjs",
|
|
32
32
|
"lint": "eslint \"{src,__tests__, __mocks__}/**/*.ts\" --fix --max-warnings 0"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@ledgerhq/hw-transport": "^6.31.6",
|
|
40
|
-
"@xchainjs/xchain-client": "2.0.
|
|
41
|
-
"@xchainjs/xchain-evm": "2.0.
|
|
42
|
-
"@xchainjs/xchain-evm-providers": "2.0.
|
|
43
|
-
"@xchainjs/xchain-util": "2.0.
|
|
40
|
+
"@xchainjs/xchain-client": "2.0.4",
|
|
41
|
+
"@xchainjs/xchain-evm": "2.0.7",
|
|
42
|
+
"@xchainjs/xchain-evm-providers": "2.0.6",
|
|
43
|
+
"@xchainjs/xchain-util": "2.0.3",
|
|
44
44
|
"bignumber.js": "^9.0.0",
|
|
45
45
|
"ethers": "^6.14.3"
|
|
46
46
|
},
|