@exodus/solana-plugin 1.14.3 → 1.15.1

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,23 @@
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.15.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.15.0...@exodus/solana-plugin@1.15.1) (2024-10-23)
7
+
8
+ **Note:** Version bump only for package @exodus/solana-plugin
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.15.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.14.3...@exodus/solana-plugin@1.15.0) (2024-09-11)
15
+
16
+
17
+ ### Features
18
+
19
+ * switch solana to ESM ([#3412](https://github.com/ExodusMovement/assets/issues/3412)) ([c1d30ce](https://github.com/ExodusMovement/assets/commit/c1d30ce752c9d2aa0667f98a8b90a55396fec286))
20
+
21
+
22
+
6
23
  ## [1.14.3](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.14.2...@exodus/solana-plugin@1.14.3) (2024-08-26)
7
24
 
8
25
  **Note:** Version bump only for package @exodus/solana-plugin
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "@exodus/solana-plugin",
3
- "version": "1.14.3",
3
+ "version": "1.15.1",
4
4
  "description": "Exodus internal Solana asset plugin",
5
+ "type": "module",
5
6
  "main": "src/index.js",
6
7
  "files": [
7
8
  "src",
@@ -15,17 +16,17 @@
15
16
  "access": "restricted"
16
17
  },
17
18
  "scripts": {
18
- "test": "run -T exodus-test --jest --esbuild",
19
- "lint": "run -T eslint .",
19
+ "test": "run -T exodus-test --jest",
20
+ "lint": "run -T eslintc .",
20
21
  "lint:fix": "yarn lint --fix"
21
22
  },
22
23
  "dependencies": {
23
24
  "@exodus/assets": "^11.0.0",
24
25
  "@exodus/bip44-constants": "^195.0.0",
25
- "@exodus/solana-api": "^3.10.1",
26
- "@exodus/solana-lib": "^3.5.1",
27
- "@exodus/solana-meta": "^1.0.7",
28
- "@exodus/web3-solana-utils": "^2.2.3",
26
+ "@exodus/solana-api": "^3.11.0",
27
+ "@exodus/solana-lib": "^3.6.0",
28
+ "@exodus/solana-meta": "^2.0.0",
29
+ "@exodus/web3-solana-utils": "^2.2.5",
29
30
  "minimalistic-assert": "^1.0.1",
30
31
  "ms": "^2.1.3"
31
32
  },
@@ -39,5 +40,5 @@
39
40
  "type": "git",
40
41
  "url": "git+https://github.com/ExodusMovement/assets.git"
41
42
  },
42
- "gitHead": "31e84436880a97a8cc17043ccd319e376578d7f4"
43
+ "gitHead": "6e24fd14809228179aa018e351df40d61c22ae3b"
43
44
  }
@@ -1,5 +1,5 @@
1
1
  import { connectAssetsList } from '@exodus/assets'
2
- import bip44Constants from '@exodus/bip44-constants/by-ticker'
2
+ import bip44Constants from '@exodus/bip44-constants/by-ticker.js'
3
3
  import {
4
4
  createAccountState,
5
5
  createAndBroadcastTXFactory,
@@ -7,7 +7,6 @@ import {
7
7
  getUnstakingFee,
8
8
  isSolanaRewardsActivityTx,
9
9
  SolanaAutoWithdrawMonitor,
10
- SolanaFeeMonitor,
11
10
  SolanaMonitor,
12
11
  } from '@exodus/solana-api'
13
12
  import {
@@ -25,8 +24,8 @@ import {
25
24
  } from '@exodus/solana-lib'
26
25
  import ms from 'ms'
27
26
 
28
- import { createGetBalanceForAddress } from './get-balance-for-address'
29
- import { createWeb3API } from './web3'
27
+ import { createGetBalanceForAddress } from './get-balance-for-address.js'
28
+ import { createWeb3API } from './web3/index.js'
30
29
 
31
30
  const DEFAULT_ACCOUNT_RESERVE = 0.01
32
31
  const DEFAULT_LOW_BALANCE = 0.01
@@ -133,7 +132,6 @@ export const createSolanaAssetFactory =
133
132
  addressHasHistory: (...args) => serverApi.getAccountInfo(...args).then((acc) => !!acc),
134
133
  broadcastTx: (...args) => serverApi.broadcastTransaction(...args),
135
134
  createAccountState: () => SolanaAccountState,
136
- createFeeMonitor: (args) => new SolanaFeeMonitor({ ...args, api: serverApi }),
137
135
  createHistoryMonitor: (args) =>
138
136
  new SolanaMonitor({
139
137
  assetClientInterface,
package/src/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import serverApi from '@exodus/solana-api'
2
2
  import assetList from '@exodus/solana-meta'
3
3
 
4
- import { createSolanaAssetFactory } from './create-asset'
4
+ import { createSolanaAssetFactory } from './create-asset.js'
5
5
 
6
- export * from './create-asset' // for solanatestnet and solanadevnet
6
+ export * from './create-asset.js' // for solanatestnet and solanadevnet
7
7
 
8
8
  const createAsset = createSolanaAssetFactory({ assetList, serverApi })
9
9
 
package/src/web3/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createSimulateTransactions } from './createSimulateTransactions'
1
+ import { createSimulateTransactions } from './createSimulateTransactions.js'
2
2
 
3
3
  export const createWeb3API = (deps) => {
4
4
  return {