@exodus/solana-plugin 1.12.3 → 1.12.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/CHANGELOG.md +18 -0
- package/package.json +4 -4
- package/src/create-asset.js +18 -14
- package/src/index.js +1 -1
- package/src/web3/createSimulateTransactions.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,24 @@
|
|
|
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
|
+
## [1.12.5](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.12.4...@exodus/solana-plugin@1.12.5) (2024-08-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* SOL lint ([#2953](https://github.com/ExodusMovement/assets/issues/2953)) ([3f1b3b8](https://github.com/ExodusMovement/assets/commit/3f1b3b8c9a1544ca7d41ac883c06e465d6928b32))
|
|
12
|
+
* update SOL staking api ([#3121](https://github.com/ExodusMovement/assets/issues/3121)) ([af609fc](https://github.com/ExodusMovement/assets/commit/af609fcec899da4c1a569e973cb1acca89450be6))
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## [1.12.4](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.12.3...@exodus/solana-plugin@1.12.4) (2024-06-27)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @exodus/solana-plugin
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [1.12.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.12.2...@exodus/solana-plugin@1.12.3) (2024-06-24)
|
|
7
25
|
|
|
8
26
|
**Note:** Version bump only for package @exodus/solana-plugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.5",
|
|
4
4
|
"description": "Exodus internal Solana asset plugin",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
"access": "restricted"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
|
-
"test": "run -T jest",
|
|
18
|
+
"test": "run -T exodus-test --jest --esbuild",
|
|
19
19
|
"lint": "run -T eslint .",
|
|
20
20
|
"lint:fix": "yarn lint --fix"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@exodus/assets": "^9.0.1",
|
|
24
24
|
"@exodus/bip44-constants": "^195.0.0",
|
|
25
|
-
"@exodus/solana-api": "^3.8.
|
|
25
|
+
"@exodus/solana-api": "^3.8.3",
|
|
26
26
|
"@exodus/solana-lib": "^3.5.0",
|
|
27
27
|
"@exodus/solana-meta": "^1.0.7",
|
|
28
28
|
"@exodus/web3-solana-utils": "^2.0.0",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"type": "git",
|
|
40
40
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "d943c0ffbfaf1e55ed596365e87324b783dc2479"
|
|
43
43
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
import { connectAssetsList } from '@exodus/assets'
|
|
2
2
|
import bip44Constants from '@exodus/bip44-constants/by-ticker'
|
|
3
3
|
import {
|
|
4
|
+
createAccountState,
|
|
5
|
+
createAndBroadcastTXFactory,
|
|
6
|
+
getBalancesFactory,
|
|
7
|
+
getUnstakingFee,
|
|
8
|
+
isSolanaRewardsActivityTx,
|
|
9
|
+
SolanaAutoWithdrawMonitor,
|
|
10
|
+
SolanaFeeMonitor,
|
|
11
|
+
SolanaMonitor,
|
|
12
|
+
} from '@exodus/solana-api'
|
|
13
|
+
import { MeSolanaMonitor } from '@exodus/solana-api/src/tx-log/me-solana-monitor'
|
|
14
|
+
import {
|
|
15
|
+
createFeeData,
|
|
4
16
|
createGetKeyIdentifier,
|
|
5
17
|
getAddressFromPublicKey,
|
|
6
18
|
getEncodedSecretKey,
|
|
7
19
|
isValidAddress,
|
|
8
20
|
prepareForSigning,
|
|
9
|
-
signUnsignedTx,
|
|
10
|
-
signUnsignedTxWithSigner,
|
|
11
21
|
signHardware,
|
|
12
22
|
signMessageNew,
|
|
13
|
-
createFeeData,
|
|
14
23
|
signMessageWithSigner,
|
|
24
|
+
signUnsignedTx,
|
|
25
|
+
signUnsignedTxWithSigner,
|
|
15
26
|
} from '@exodus/solana-lib'
|
|
16
27
|
import ms from 'ms'
|
|
17
|
-
|
|
18
|
-
isSolanaRewardsActivityTx,
|
|
19
|
-
getBalancesFactory,
|
|
20
|
-
getUnstakingFee,
|
|
21
|
-
SolanaMonitor,
|
|
22
|
-
SolanaFeeMonitor,
|
|
23
|
-
createAccountState,
|
|
24
|
-
createAndBroadcastTXFactory,
|
|
25
|
-
} from '@exodus/solana-api'
|
|
28
|
+
|
|
26
29
|
import { createGetBalanceForAddress } from './get-balance-for-address'
|
|
27
30
|
import { createWeb3API } from './web3'
|
|
28
|
-
import { MeSolanaMonitor } from '@exodus/solana-api/src/tx-log/me-solana-monitor'
|
|
29
31
|
|
|
30
32
|
const DEFAULT_ACCOUNT_RESERVE = 0.01
|
|
31
33
|
const DEFAULT_LOW_BALANCE = 0.01
|
|
@@ -124,7 +126,7 @@ export const createSolanaAssetFactory =
|
|
|
124
126
|
}
|
|
125
127
|
|
|
126
128
|
const assetStakingApi = {
|
|
127
|
-
isStaking: ({ accountState }) => accountState.
|
|
129
|
+
isStaking: ({ accountState }) => accountState.stakingInfo.isDelegating,
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
const SolanaAccountState = createAccountState({ assetList })
|
|
@@ -205,6 +207,8 @@ export const createSolanaAssetFactory =
|
|
|
205
207
|
accountReserve,
|
|
206
208
|
lowBalance,
|
|
207
209
|
MIN_STAKING_AMOUNT,
|
|
210
|
+
createAutoWithdrawMonitor: (args) =>
|
|
211
|
+
new SolanaAutoWithdrawMonitor({ ...args, assetClientInterface }),
|
|
208
212
|
}
|
|
209
213
|
|
|
210
214
|
return overrideCallback({ asset: fullAsset })
|
package/src/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import assert from 'minimalistic-assert'
|
|
2
1
|
import {
|
|
3
2
|
createSimulateTransactions as createSimulateSolanaTransactions,
|
|
4
3
|
deserializeTransactionBytes,
|
|
5
4
|
} from '@exodus/web3-solana-utils'
|
|
5
|
+
import assert from 'minimalistic-assert'
|
|
6
6
|
|
|
7
7
|
// This function accepts either a list of transactions created by a wallet (unsignedTxs) or a web3 transaction (transactionBuffers).
|
|
8
8
|
export const createSimulateTransactions = ({ asset, assetClientInterface, prepareForSigning }) => {
|