@exodus/solana-plugin 1.11.0 → 1.12.0
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,15 @@
|
|
|
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.0](https://github.com/ExodusMovement/assets/compare/@exodus/solana-plugin@1.11.0...@exodus/solana-plugin@1.12.0) (2024-06-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **solana-plugin:** supply `assetClientInterface` to web3 simulation ([#2567](https://github.com/ExodusMovement/assets/issues/2567)) ([984d429](https://github.com/ExodusMovement/assets/commit/984d429e0479afe7d11eb4d780718e04e7c29794))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [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
16
|
|
|
8
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/solana-plugin",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
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": "29edcfbe1dccc1dae0d797aba45490d912f36de3"
|
|
43
43
|
}
|
package/src/create-asset.js
CHANGED
|
@@ -190,8 +190,9 @@ export const createSolanaAssetFactory =
|
|
|
190
190
|
validateAssetId: isValidAddress,
|
|
191
191
|
web3: createWeb3API({
|
|
192
192
|
asset: base,
|
|
193
|
-
|
|
193
|
+
assetClientInterface,
|
|
194
194
|
fillTransactionWithEmptySignatureSlot,
|
|
195
|
+
prepareForSigning,
|
|
195
196
|
}),
|
|
196
197
|
}
|
|
197
198
|
|
|
@@ -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) {
|