@exodus/ethereum-api 6.3.19 → 6.3.21

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": "6.3.19",
3
+ "version": "6.3.21",
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.35",
19
+ "@exodus/ethereum-lib": "^3.3.36",
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",
@@ -34,5 +34,5 @@
34
34
  "devDependencies": {
35
35
  "@exodus/models": "^8.10.4"
36
36
  },
37
- "gitHead": "ad589509e7ae08b35f42188275c037293b6aa073"
37
+ "gitHead": "7ff682415370f0b0cc3ede06f6c795c4d12b32a4"
38
38
  }
@@ -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}`,