@exodus/solana-api 2.5.12 → 2.5.14

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.12",
3
+ "version": "2.5.14",
4
4
  "description": "Exodus internal Solana asset API wrapper",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -23,13 +23,13 @@
23
23
  "@exodus/models": "^8.10.4",
24
24
  "@exodus/nfts-core": "^0.5.0",
25
25
  "@exodus/simple-retry": "^0.0.6",
26
- "@exodus/solana-lib": "^1.6.6",
27
- "@exodus/solana-meta": "^1.0.2",
26
+ "@exodus/solana-lib": "^1.6.7",
27
+ "@exodus/solana-meta": "^1.0.3",
28
28
  "bn.js": "^4.11.0",
29
29
  "debug": "^4.1.1",
30
30
  "lodash": "^4.17.11",
31
31
  "url-join": "4.0.0",
32
32
  "wretch": "^1.5.2"
33
33
  },
34
- "gitHead": "752eba9b060c07db518f06c154d905378bcb7b3c"
34
+ "gitHead": "669fc7cc50b4e2f5d358b502172b838e1d91c072"
35
35
  }
@@ -0,0 +1,16 @@
1
+ import { FeeMonitor } from '@exodus/asset-lib'
2
+ import api from './'
3
+
4
+ export default class SolanaFeeMonitor extends FeeMonitor {
5
+ constructor({ updateFee, interval = '1m', assetName = 'solana' }) {
6
+ super({ updateFee, interval, assetName })
7
+ }
8
+
9
+ async fetchFee() {
10
+ const fee = await api.getFee()
11
+
12
+ return {
13
+ fee: `${fee} Lamports`,
14
+ }
15
+ }
16
+ }
package/src/index.js CHANGED
@@ -4,6 +4,7 @@ import assetsList from '@exodus/solana-meta'
4
4
 
5
5
  import { Api } from './api'
6
6
 
7
+ export { default as SolanaFeeMonitor } from './fee-monitor'
7
8
  export * from './api'
8
9
  export * from './tx-log'
9
10
  export * from './account-state'