@exodus/ethereum-api 2.7.2 → 2.7.3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
4
4
|
"description": "Ethereum Api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"author": "Exodus Movement, Inc.",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"access": "restricted"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@exodus/ethereum-lib": "^2.
|
|
13
|
+
"@exodus/ethereum-lib": "^2.12.1",
|
|
14
14
|
"@exodus/ethereumjs-util": "^7.1.0-exodus.6",
|
|
15
15
|
"@exodus/simple-retry": "^0.0.6",
|
|
16
16
|
"fetchival": "0.3.3",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"url-join": "4.0.0",
|
|
21
21
|
"ws": "6.1.0"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "c83e89a956335bdf9a323a868027e22918a7d251"
|
|
24
24
|
}
|
|
@@ -120,6 +120,10 @@ export function create(defaultURL) {
|
|
|
120
120
|
return requestWithRetry('proxy', { method: 'eth_getCode', address, tag })
|
|
121
121
|
},
|
|
122
122
|
|
|
123
|
+
async getStorageAt({ address, slot, tag = 'latest' }) {
|
|
124
|
+
return requestWithRetry('proxy', { method: 'eth_getStorageAt', address, slot, tag })
|
|
125
|
+
},
|
|
126
|
+
|
|
123
127
|
async isContract(address) {
|
|
124
128
|
const code = await requestWithRetry('proxy', { method: 'eth_getCode', address })
|
|
125
129
|
return code.length > 2
|
|
@@ -4,7 +4,7 @@ const EXODUS_ETH_SERVER_URL = 'https://geth.a.exodus.io/wallet/v1/'
|
|
|
4
4
|
const EXODUS_ETC_SERVER_URL = 'https://getc.a.exodus.io/wallet/v1/'
|
|
5
5
|
const EXODUS_BSC_SERVER_URL = 'https://bsc.a.exodus.io/wallet/v1/'
|
|
6
6
|
const EXODUS_POLYGON_SERVER_URL = 'https://polygon.a.exodus.io/wallet/v1/'
|
|
7
|
-
const
|
|
7
|
+
const EXODUS_AVAXC_SERVER_URL = 'https://avax-c.a.exodus.io/wallet/v1/'
|
|
8
8
|
|
|
9
9
|
// allow self-signed certs
|
|
10
10
|
// process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'
|
|
@@ -12,7 +12,7 @@ export const eth = create(EXODUS_ETH_SERVER_URL)
|
|
|
12
12
|
export const etc = create(EXODUS_ETC_SERVER_URL)
|
|
13
13
|
export const bsc = create(EXODUS_BSC_SERVER_URL)
|
|
14
14
|
export const polygon = create(EXODUS_POLYGON_SERVER_URL)
|
|
15
|
-
export const avaxc = create(
|
|
15
|
+
export const avaxc = create(EXODUS_AVAXC_SERVER_URL)
|
|
16
16
|
|
|
17
17
|
// exported for in-library use only.
|
|
18
18
|
export const serverMap = {
|