@exodus/ethereum-api 6.3.20 → 6.3.23
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/LICENSE.md +0 -0
- package/package.json +4 -3
- package/src/eth-like-util.js +6 -0
package/LICENSE.md
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/ethereum-api",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.23",
|
|
4
4
|
"description": "Ethereum Api",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@exodus/asset-lib": "^3.7.1",
|
|
18
18
|
"@exodus/crypto": "^1.0.0-rc.0",
|
|
19
|
-
"@exodus/ethereum-lib": "^3.3.
|
|
19
|
+
"@exodus/ethereum-lib": "^3.3.38",
|
|
20
20
|
"@exodus/ethereumjs-util": "^7.1.0-exodus.6",
|
|
21
21
|
"@exodus/fetch": "^1.3.0-beta.4",
|
|
22
22
|
"@exodus/simple-retry": "^0.0.6",
|
|
@@ -33,5 +33,6 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@exodus/models": "^8.10.4"
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"gitHead": "c4f1f8dc3c6256e839af1faf2787228c91507656"
|
|
37
38
|
}
|
package/src/eth-like-util.js
CHANGED
|
@@ -75,6 +75,12 @@ export async function transactionExists({ asset, txId }) {
|
|
|
75
75
|
return txResult && txResult.hash === txId
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
+
export async function getTransaction({ asset, txId }) {
|
|
79
|
+
const server = getServer(asset)
|
|
80
|
+
txId = normalizeTxId(txId)
|
|
81
|
+
return server.getTransactionByHash(txId)
|
|
82
|
+
}
|
|
83
|
+
|
|
78
84
|
export const getIsForwarderContract = memoizeLruCache(
|
|
79
85
|
isForwarderContract,
|
|
80
86
|
({ asset, address }) => `${asset.name}:${address}`,
|