@exodus/solana-plugin 1.11.0 → 1.12.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,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.1](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.12.0...@exodus/solana-plugin@1.12.1) (2024-06-18)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* solana getFeeAsync compatibility ([#2602](https://github.com/ExodusMovement/assets/issues/2602)) ([0e4d216](https://github.com/ExodusMovement/assets/commit/0e4d216e4bbde3a3907dc4810c1a4096596afc7e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## [1.12.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.11.0...@exodus/solana-plugin@1.12.0) (2024-06-14)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **solana-plugin:** supply `assetClientInterface` to web3 simulation ([#2567](https://github.com/ExodusMovement/assets/issues/2567)) ([984d429](https://github.com/ExodusMovement/assets/commit/984d429e0479afe7d11eb4d780718e04e7c29794))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
6
24
|
## [1.11.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.10.1...@exodus/solana-plugin@1.11.0) (2024-06-13)
|
|
7
25
|
|
|
8
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Exodus internal Solana asset plugin",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"files": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@exodus/solana-api": "^3.7.0",
|
|
26
26
|
"@exodus/solana-lib": "^3.4.2",
|
|
27
27
|
"@exodus/solana-meta": "^1.0.7",
|
|
28
|
-
"@exodus/web3-solana-utils": "^
|
|
28
|
+
"@exodus/web3-solana-utils": "^2.0.0",
|
|
29
29
|
"minimalistic-assert": "^1.0.1",
|
|
30
30
|
"ms": "^2.1.3"
|
|
31
31
|
},
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"type": "git",
|
|
40
40
|
"url": "git+https://github.com/ExodusMovement/assets.git"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "96f19771840d6da40230440ffad50002d2633456"
|
|
43
43
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -166,7 +166,9 @@ export const createSolanaAssetFactory =
|
|
|
166
166
|
getBalanceForAddress: createGetBalanceForAddress({ api: serverApi, asset: base }),
|
|
167
167
|
getDefaultAddressPath: () => defaultAddressPath,
|
|
168
168
|
getFee: (args) => args?.feeData?.fee || feeData.fee,
|
|
169
|
-
getFeeAsync: async ({ feeData }) =>
|
|
169
|
+
getFeeAsync: async ({ feeData }) => {
|
|
170
|
+
return { fee: feeData.fee }
|
|
171
|
+
},
|
|
170
172
|
getFeeData: () => feeData,
|
|
171
173
|
getSupportedPurposes: () => [44],
|
|
172
174
|
getKeyIdentifier: createGetKeyIdentifier({ bip44, assetName: base.name }),
|
|
@@ -190,8 +192,9 @@ export const createSolanaAssetFactory =
|
|
|
190
192
|
validateAssetId: isValidAddress,
|
|
191
193
|
web3: createWeb3API({
|
|
192
194
|
asset: base,
|
|
193
|
-
|
|
195
|
+
assetClientInterface,
|
|
194
196
|
fillTransactionWithEmptySignatureSlot,
|
|
197
|
+
prepareForSigning,
|
|
195
198
|
}),
|
|
196
199
|
}
|
|
197
200
|
|
|
@@ -7,17 +7,19 @@ import {
|
|
|
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 = ({
|
|
9
9
|
asset,
|
|
10
|
-
|
|
10
|
+
assetClientInterface,
|
|
11
11
|
fillTransactionWithEmptySignatureSlot,
|
|
12
|
+
prepareForSigning,
|
|
12
13
|
}) => {
|
|
13
14
|
assert(asset, '"asset" should be passed.')
|
|
15
|
+
assert(assetClientInterface, '"assetClientInterface" should be passed.')
|
|
14
16
|
assert(prepareForSigning, '"prepareForSigning" should be passed.')
|
|
15
17
|
assert(
|
|
16
18
|
fillTransactionWithEmptySignatureSlot,
|
|
17
19
|
'"fillTransactionWithEmptySignatureSlot" should be passed.'
|
|
18
20
|
)
|
|
19
21
|
|
|
20
|
-
const simulateSolanaTransactions = createSimulateSolanaTransactions()
|
|
22
|
+
const simulateSolanaTransactions = createSimulateSolanaTransactions({ assetClientInterface })
|
|
21
23
|
|
|
22
24
|
return function simulateTransactions({ transactionBuffers, unsignedTxs, ...restParameters }) {
|
|
23
25
|
if (unsignedTxs) {
|