@xchainjs/xchain-arbitrum 2.0.5 → 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 { Client as Client$1, KeystoreSigner } from '@xchainjs/xchain-evm';
|
|
|
3
3
|
import { EtherscanProviderV2 } 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 Arbitrum
|
package/lib/index.js
CHANGED
|
@@ -5,7 +5,11 @@ var xchainEvm = require('@xchainjs/xchain-evm');
|
|
|
5
5
|
var xchainEvmProviders = require('@xchainjs/xchain-evm-providers');
|
|
6
6
|
var xchainUtil = require('@xchainjs/xchain-util');
|
|
7
7
|
var ethers = require('ethers');
|
|
8
|
-
var
|
|
8
|
+
var BigNumber = require('bignumber.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
|
|
12
|
+
var BigNumber__default = /*#__PURE__*/_interopDefault(BigNumber);
|
|
9
13
|
|
|
10
14
|
// Import necessary modules and classes from external packages and files
|
|
11
15
|
// Define constants related to Arbitrum
|
|
@@ -60,22 +64,22 @@ const ethRootDerivationPaths = {
|
|
|
60
64
|
// Define default parameters for the Arbitrum client
|
|
61
65
|
const defaults = {
|
|
62
66
|
[xchainClient.Network.Mainnet]: {
|
|
63
|
-
approveGasLimit: new
|
|
64
|
-
transferGasAssetGasLimit: new
|
|
65
|
-
transferTokenGasLimit: new
|
|
66
|
-
gasPrice: new
|
|
67
|
+
approveGasLimit: new BigNumber__default.default(200000),
|
|
68
|
+
transferGasAssetGasLimit: new BigNumber__default.default(23000),
|
|
69
|
+
transferTokenGasLimit: new BigNumber__default.default(100000),
|
|
70
|
+
gasPrice: new BigNumber__default.default(0.2 * Math.pow(10, 9)),
|
|
67
71
|
},
|
|
68
72
|
[xchainClient.Network.Testnet]: {
|
|
69
|
-
approveGasLimit: new
|
|
70
|
-
transferGasAssetGasLimit: new
|
|
71
|
-
transferTokenGasLimit: new
|
|
72
|
-
gasPrice: new
|
|
73
|
+
approveGasLimit: new BigNumber__default.default(200000),
|
|
74
|
+
transferGasAssetGasLimit: new BigNumber__default.default(23000),
|
|
75
|
+
transferTokenGasLimit: new BigNumber__default.default(100000),
|
|
76
|
+
gasPrice: new BigNumber__default.default(0.2 * Math.pow(10, 9)),
|
|
73
77
|
},
|
|
74
78
|
[xchainClient.Network.Stagenet]: {
|
|
75
|
-
approveGasLimit: new
|
|
76
|
-
transferGasAssetGasLimit: new
|
|
77
|
-
transferTokenGasLimit: new
|
|
78
|
-
gasPrice: new
|
|
79
|
+
approveGasLimit: new BigNumber__default.default(200000),
|
|
80
|
+
transferGasAssetGasLimit: new BigNumber__default.default(23000),
|
|
81
|
+
transferTokenGasLimit: new BigNumber__default.default(100000),
|
|
82
|
+
gasPrice: new BigNumber__default.default(0.2 * Math.pow(10, 9)),
|
|
79
83
|
},
|
|
80
84
|
};
|
|
81
85
|
// Define the default parameters for the Arbitrum client
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xchainjs/xchain-arbitrum",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"description": "Arbitrum 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": {
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"directory": "release/package"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@xchainjs/xchain-client": "2.0.
|
|
40
|
-
"@xchainjs/xchain-evm": "2.0.
|
|
41
|
-
"@xchainjs/xchain-evm-providers": "2.0.
|
|
42
|
-
"@xchainjs/xchain-util": "2.0.
|
|
39
|
+
"@xchainjs/xchain-client": "2.0.4",
|
|
40
|
+
"@xchainjs/xchain-evm": "2.0.7",
|
|
41
|
+
"@xchainjs/xchain-evm-providers": "2.0.6",
|
|
42
|
+
"@xchainjs/xchain-util": "2.0.3",
|
|
43
43
|
"bignumber.js": "^9.0.0",
|
|
44
44
|
"ethers": "^6.14.3"
|
|
45
45
|
}
|