@exodus/solana-api 2.5.14 → 2.5.16
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/solana-api",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.16",
|
|
4
4
|
"description": "Exodus internal Solana asset API wrapper",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"url-join": "4.0.0",
|
|
32
32
|
"wretch": "^1.5.2"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "9ec7084bcdfe14f1c6f11df393351885773046a6"
|
|
35
35
|
}
|
|
@@ -17,6 +17,7 @@ export class SolanaMonitor extends BaseMonitor {
|
|
|
17
17
|
this.api = api
|
|
18
18
|
this.cursors = {}
|
|
19
19
|
this.assets = {}
|
|
20
|
+
this.staking = DEFAULT_REMOTE_CONFIG.staking
|
|
20
21
|
this.includeUnparsed = includeUnparsed
|
|
21
22
|
this.addHook('before-stop', (...args) => this.beforeStop(...args))
|
|
22
23
|
}
|
|
@@ -155,7 +156,7 @@ export class SolanaMonitor extends BaseMonitor {
|
|
|
155
156
|
// send transaction
|
|
156
157
|
item.to = tx.to
|
|
157
158
|
item.feeAmount = baseAsset.currency.baseUnit(tx.fee).toDefault() // in SOL
|
|
158
|
-
item.
|
|
159
|
+
item.feeCoinName = baseAsset.name
|
|
159
160
|
item.coinAmount = item.coinAmount.negate()
|
|
160
161
|
|
|
161
162
|
if (tx.to === tx.owner) {
|
|
@@ -165,7 +166,7 @@ export class SolanaMonitor extends BaseMonitor {
|
|
|
165
166
|
} else if (tx.unparsed) {
|
|
166
167
|
if (tx.fee !== 0) {
|
|
167
168
|
item.feeAmount = baseAsset.currency.baseUnit(tx.fee).toDefault() // in SOL
|
|
168
|
-
item.
|
|
169
|
+
item.feeCoinName = baseAsset.name
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
item.data.meta = tx.data.meta
|