@exodus/solana-plugin 1.12.4 → 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 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
+ ## [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
+
6
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)
7
17
 
8
18
  **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.4",
3
+ "version": "1.12.5",
4
4
  "description": "Exodus internal Solana asset plugin",
5
5
  "main": "src/index.js",
6
6
  "files": [
@@ -15,7 +15,7 @@
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
  },
@@ -39,5 +39,5 @@
39
39
  "type": "git",
40
40
  "url": "git+https://github.com/ExodusMovement/assets.git"
41
41
  },
42
- "gitHead": "8a78b9595437fd8fecc5b08916a98584eabde577"
42
+ "gitHead": "d943c0ffbfaf1e55ed596365e87324b783dc2479"
43
43
  }
@@ -1,32 +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
- import {
18
- isSolanaRewardsActivityTx,
19
- getBalancesFactory,
20
- getUnstakingFee,
21
- SolanaMonitor,
22
- SolanaFeeMonitor,
23
- SolanaAutoWithdrawMonitor,
24
- createAccountState,
25
- createAndBroadcastTXFactory,
26
- } from '@exodus/solana-api'
28
+
27
29
  import { createGetBalanceForAddress } from './get-balance-for-address'
28
30
  import { createWeb3API } from './web3'
29
- import { MeSolanaMonitor } from '@exodus/solana-api/src/tx-log/me-solana-monitor'
30
31
 
31
32
  const DEFAULT_ACCOUNT_RESERVE = 0.01
32
33
  const DEFAULT_LOW_BALANCE = 0.01
@@ -125,7 +126,7 @@ export const createSolanaAssetFactory =
125
126
  }
126
127
 
127
128
  const assetStakingApi = {
128
- isStaking: ({ accountState }) => accountState.mem.isDelegating,
129
+ isStaking: ({ accountState }) => accountState.stakingInfo.isDelegating,
129
130
  }
130
131
 
131
132
  const SolanaAccountState = createAccountState({ assetList })
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import assetList from '@exodus/solana-meta'
2
1
  import serverApi from '@exodus/solana-api'
2
+ import assetList from '@exodus/solana-meta'
3
3
 
4
4
  import { createSolanaAssetFactory } from './create-asset'
5
5
 
@@ -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 }) => {