@exodus/solana-api 2.5.3 → 2.5.5

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/.DS_Store ADDED
Binary file
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
2
  "name": "@exodus/solana-api",
3
- "version": "2.5.3",
3
+ "version": "2.5.5",
4
4
  "description": "Exodus internal Solana asset API wrapper",
5
5
  "main": "src/index.js",
6
6
  "files": [
7
- "src/",
8
- "!src/**/__tests__"
7
+ "src/**",
8
+ "!src/__tests__",
9
+ "README.md",
10
+ "package.json"
9
11
  ],
10
12
  "author": "Exodus",
11
13
  "license": "ISC",
package/tes.txt ADDED
File without changes
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SolanaAccountState = void 0;
7
-
8
- var _solanaMeta = require("@exodus/solana-meta");
9
-
10
- var _models = require("@exodus/models");
11
-
12
- class SolanaAccountState extends _models.AccountState {
13
- // deprecated - will be removed
14
- static _postParse(data) {
15
- return { ...data,
16
- tokenBalances: {}
17
- };
18
- }
19
-
20
- }
21
-
22
- exports.SolanaAccountState = SolanaAccountState;
23
- SolanaAccountState.defaults = {
24
- cursor: '',
25
- balance: _solanaMeta.asset.currency.ZERO,
26
- tokenBalances: {},
27
- mem: {
28
- loaded: false,
29
- staking: {
30
- // remote-config data
31
- enabled: true,
32
- pool: null
33
- },
34
- isDelegating: false,
35
- locked: _solanaMeta.asset.currency.defaultUnit(0),
36
- withdrawable: _solanaMeta.asset.currency.defaultUnit(0),
37
- pending: _solanaMeta.asset.currency.defaultUnit(0),
38
- earned: _solanaMeta.asset.currency.defaultUnit(0),
39
- accounts: {} // stake accounts
40
-
41
- }
42
- };
43
- SolanaAccountState._tokens = [_solanaMeta.asset, ..._solanaMeta.tokens];