@exodus/solana-api 3.9.3 → 3.9.4
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/CHANGELOG.md +10 -0
- package/package.json +2 -2
- package/src/account-state.js +2 -2
- package/src/connection.js +3 -3
- package/src/index.js +1 -1
- package/src/staking-provider-client.js +1 -1
- package/src/tx-log/me-flagr.js +1 -1
- package/src/tx-log/me-solana-monitor.js +2 -0
- package/src/tx-log/solana-auto-withdraw-monitor.js +1 -1
- package/src/tx-send.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.9.4](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.9.3...@exodus/solana-api@3.9.4) (2024-08-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* revert object.defineProperty usage ([#3056](https://github.com/ExodusMovement/assets/issues/3056)) ([493a486](https://github.com/ExodusMovement/assets/commit/493a4865ed07c816167b96a5d01ba0f154b077c8))
|
|
12
|
+
* SOL lint ([#2953](https://github.com/ExodusMovement/assets/issues/2953)) ([3f1b3b8](https://github.com/ExodusMovement/assets/commit/3f1b3b8c9a1544ca7d41ac883c06e465d6928b32))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
6
16
|
## [3.9.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-api@3.9.2...@exodus/solana-api@3.9.3) (2024-07-23)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @exodus/solana-api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-api",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.4",
|
|
4
4
|
"description": "Exodus internal Solana asset API wrapper",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@exodus/assets-testing": "^1.0.0",
|
|
48
48
|
"@solana/web3.js": "^1.91.8"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "5fcab5458c8c985876fab348a3403931940eb3c2",
|
|
51
51
|
"bugs": {
|
|
52
52
|
"url": "https://github.com/ExodusMovement/assets/issues?q=is%3Aissue+is%3Aopen+label%3Asolana-api"
|
|
53
53
|
},
|
package/src/account-state.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AccountState } from '@exodus/models'
|
|
2
1
|
import { assetsListToObject } from '@exodus/assets'
|
|
3
|
-
import { isString, reduce } from 'lodash'
|
|
4
2
|
import { isNumberUnit } from '@exodus/currency'
|
|
3
|
+
import { AccountState } from '@exodus/models'
|
|
4
|
+
import { isString, reduce } from 'lodash'
|
|
5
5
|
|
|
6
6
|
const parseBalance = (balance, asset) =>
|
|
7
7
|
!isNumberUnit(balance) && isString(balance) ? asset.currency.parse(balance) : balance
|
package/src/connection.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { WebSocket } from '@exodus/fetch'
|
|
2
|
+
import debugLogger from 'debug'
|
|
2
3
|
import delay from 'delay'
|
|
3
4
|
import lodash from 'lodash'
|
|
4
|
-
import debugLogger from 'debug'
|
|
5
|
-
import { WebSocket } from '@exodus/fetch'
|
|
6
5
|
import makeConcurrent from 'make-concurrent'
|
|
6
|
+
import ms from 'ms'
|
|
7
7
|
|
|
8
8
|
// WS subscriptions: https://docs.solana.com/developing/clients/jsonrpc-api#subscription-websocket
|
|
9
9
|
|
package/src/index.js
CHANGED
package/src/tx-log/me-flagr.js
CHANGED
|
@@ -99,6 +99,8 @@ export class MeSolanaMonitor extends SolanaMonitor {
|
|
|
99
99
|
if (tokens.get(mintAddress)) {
|
|
100
100
|
const tokenKey = token.name
|
|
101
101
|
Object.defineProperty(account.tokenBalances, tokenKey, {
|
|
102
|
+
__proto__: null,
|
|
103
|
+
enumerable: true,
|
|
102
104
|
value: token.currency.baseUnit(balance.rawBalance),
|
|
103
105
|
})
|
|
104
106
|
}
|
package/src/tx-send.js
CHANGED
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
createUnsignedTx,
|
|
3
3
|
findAssociatedTokenAddress,
|
|
4
4
|
prepareForSigning,
|
|
5
|
-
TOKEN_PROGRAM_ID,
|
|
6
5
|
TOKEN_2022_PROGRAM_ID,
|
|
6
|
+
TOKEN_PROGRAM_ID,
|
|
7
7
|
} from '@exodus/solana-lib'
|
|
8
8
|
import { transactionToBase58 } from '@exodus/solana-lib/src/tx/common'
|
|
9
9
|
import assert from 'minimalistic-assert'
|