@dynamic-labs/solana-core 4.0.0-alpha.47 → 4.0.0-alpha.49
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
|
@@ -1,4 +1,40 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.49](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.48...v4.0.0-alpha.49) (2024-12-27)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* change openFunding to openExternalFunding (#7684)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* aa blockaid simulations ([#7583](https://github.com/dynamic-labs/dynamic-auth/issues/7583)) ([6436220](https://github.com/dynamic-labs/dynamic-auth/commit/64362204d2c96291a37bf281d62531d6f2384fdf))
|
|
12
|
+
* add ethereum createConnector function ([#7607](https://github.com/dynamic-labs/dynamic-auth/issues/7607)) ([f306537](https://github.com/dynamic-labs/dynamic-auth/commit/f3065372f3c5dfc8bf26173dc722576e614af5e1))
|
|
13
|
+
* add fundWithExternalWallet method to useFunding ([#7688](https://github.com/dynamic-labs/dynamic-auth/issues/7688)) ([d48b1d2](https://github.com/dynamic-labs/dynamic-auth/commit/d48b1d2568ba928b322a4d81b6386e775ae4aa98))
|
|
14
|
+
* change openFunding to openExternalFunding ([#7684](https://github.com/dynamic-labs/dynamic-auth/issues/7684)) ([8efb9cb](https://github.com/dynamic-labs/dynamic-auth/commit/8efb9cb9ca3d7e2273c14e18f7be5892e50b8e12))
|
|
15
|
+
* connect global wallet in ethereum ([#7619](https://github.com/dynamic-labs/dynamic-auth/issues/7619)) ([fdb7f00](https://github.com/dynamic-labs/dynamic-auth/commit/fdb7f00c33f7da3ac95ae13ac674caa64b453cae))
|
|
16
|
+
* create wallet groups dynamically based on wallet options ([#7662](https://github.com/dynamic-labs/dynamic-auth/issues/7662)) ([981affc](https://github.com/dynamic-labs/dynamic-auth/commit/981affce5518f6532d960fe4e879e9cf40a66ce7))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* **ethereum:** normalize user reject error from injected wallets ([#7702](https://github.com/dynamic-labs/dynamic-auth/issues/7702)) ([ce456a8](https://github.com/dynamic-labs/dynamic-auth/commit/ce456a8592197b07857baf32bb1b38867ffb37fe))
|
|
22
|
+
* fetch nonce when authenticating a user that connected in connect-only mode ([#7689](https://github.com/dynamic-labs/dynamic-auth/issues/7689)) ([f048bb9](https://github.com/dynamic-labs/dynamic-auth/commit/f048bb96b6cb5ae603966b2813f900a082cd158f))
|
|
23
|
+
* filter out wallets for the current network when using external wallet funding ([#7694](https://github.com/dynamic-labs/dynamic-auth/issues/7694)) ([65db665](https://github.com/dynamic-labs/dynamic-auth/commit/65db6652a934561e7d07379a65d2baa8f7813d8e))
|
|
24
|
+
* remove toaccount from signmessage and signtypeddata for zerodev ([#7650](https://github.com/dynamic-labs/dynamic-auth/issues/7650)) ([626e849](https://github.com/dynamic-labs/dynamic-auth/commit/626e849a4af3af51d60b42dd2787edb05126744b))
|
|
25
|
+
* save nonce to storage ([#7698](https://github.com/dynamic-labs/dynamic-auth/issues/7698)) ([93dc65b](https://github.com/dynamic-labs/dynamic-auth/commit/93dc65b7f78040367b85420c1374f3cafbfb598b))
|
|
26
|
+
* **sdk-react-core:** add timeout when getting connected accounts ([#7697](https://github.com/dynamic-labs/dynamic-auth/issues/7697)) ([9a4bd7c](https://github.com/dynamic-labs/dynamic-auth/commit/9a4bd7c02795205ec98d8d71aba75b51b9bbee7c))
|
|
27
|
+
* update auth token from new source ([#7666](https://github.com/dynamic-labs/dynamic-auth/issues/7666)) ([61798de](https://github.com/dynamic-labs/dynamic-auth/commit/61798de26d759db9064f5f84118540346a44ab50))
|
|
28
|
+
* update extension update_url endpoint ([#7655](https://github.com/dynamic-labs/dynamic-auth/issues/7655)) ([46cff3a](https://github.com/dynamic-labs/dynamic-auth/commit/46cff3a80c9efee659a764df47f927ed5a117079))
|
|
29
|
+
* zerodev confirmation UI closes properly ([#7664](https://github.com/dynamic-labs/dynamic-auth/issues/7664)) ([a78aded](https://github.com/dynamic-labs/dynamic-auth/commit/a78adedc054d09134198d22812aa5cab7bbff548))
|
|
30
|
+
|
|
31
|
+
## [4.0.0-alpha.48](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.47...v4.0.0-alpha.48) (2024-12-17)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* Temp disable refreshing blockhash for solana transactions ([#7638](https://github.com/dynamic-labs/dynamic-auth/issues/7638)) ([fd457bf](https://github.com/dynamic-labs/dynamic-auth/commit/fd457bf0579ad35ba17fc2c7aa18a9feb49d8c7b))
|
|
37
|
+
|
|
2
38
|
## [4.0.0-alpha.47](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.46...v4.0.0-alpha.47) (2024-12-17)
|
|
3
39
|
|
|
4
40
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/solana-core",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.49",
|
|
4
4
|
"description": "Core package for utilities and types for solana",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.578",
|
|
22
22
|
"@solana/web3.js": "1.92.1",
|
|
23
23
|
"@solana/spl-token": "0.4.6"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.49",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.49",
|
|
28
|
+
"@dynamic-labs/types": "4.0.0-alpha.49",
|
|
29
|
+
"@dynamic-labs/utils": "4.0.0-alpha.49",
|
|
30
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.49",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.49",
|
|
32
32
|
"eventemitter3": "5.0.1"
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -7,7 +7,6 @@ var _tslib = require('../../../_virtual/_tslib.cjs');
|
|
|
7
7
|
var web3_js = require('@solana/web3.js');
|
|
8
8
|
var splToken = require('@solana/spl-token');
|
|
9
9
|
var utils = require('@dynamic-labs/utils');
|
|
10
|
-
var isTransactionSigned = require('../isTransactionSigned/isTransactionSigned.cjs');
|
|
11
10
|
|
|
12
11
|
const LAMPORTS_PER_SOL = 1000000000;
|
|
13
12
|
class SolanaUiTransaction {
|
|
@@ -33,17 +32,10 @@ class SolanaUiTransaction {
|
|
|
33
32
|
return;
|
|
34
33
|
transactions = tx instanceof Array ? tx : [tx];
|
|
35
34
|
}
|
|
36
|
-
const { blockhash } = yield this.connection.getLatestBlockhash();
|
|
37
35
|
const compiledMessages = yield Promise.all(transactions.map((tx) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
38
36
|
if ('version' in tx) {
|
|
39
|
-
if (!(yield isTransactionSigned.isTxAlreadySigned(tx))) {
|
|
40
|
-
tx.message.recentBlockhash = blockhash;
|
|
41
|
-
}
|
|
42
37
|
return tx.message;
|
|
43
38
|
}
|
|
44
|
-
if (!(yield isTransactionSigned.isTxAlreadySigned(tx))) {
|
|
45
|
-
tx.recentBlockhash = blockhash;
|
|
46
|
-
}
|
|
47
39
|
return tx.compileMessage();
|
|
48
40
|
})));
|
|
49
41
|
if (compiledMessages.some((msg) => !msg)) {
|
|
@@ -3,7 +3,6 @@ import { __awaiter } from '../../../_virtual/_tslib.js';
|
|
|
3
3
|
import { PublicKey, Transaction, SystemProgram } from '@solana/web3.js';
|
|
4
4
|
import { getAssociatedTokenAddress, createAssociatedTokenAccountInstruction, createTransferInstruction } from '@solana/spl-token';
|
|
5
5
|
import { formatNumberText } from '@dynamic-labs/utils';
|
|
6
|
-
import { isTxAlreadySigned } from '../isTransactionSigned/isTransactionSigned.js';
|
|
7
6
|
|
|
8
7
|
const LAMPORTS_PER_SOL = 1000000000;
|
|
9
8
|
class SolanaUiTransaction {
|
|
@@ -29,17 +28,10 @@ class SolanaUiTransaction {
|
|
|
29
28
|
return;
|
|
30
29
|
transactions = tx instanceof Array ? tx : [tx];
|
|
31
30
|
}
|
|
32
|
-
const { blockhash } = yield this.connection.getLatestBlockhash();
|
|
33
31
|
const compiledMessages = yield Promise.all(transactions.map((tx) => __awaiter(this, void 0, void 0, function* () {
|
|
34
32
|
if ('version' in tx) {
|
|
35
|
-
if (!(yield isTxAlreadySigned(tx))) {
|
|
36
|
-
tx.message.recentBlockhash = blockhash;
|
|
37
|
-
}
|
|
38
33
|
return tx.message;
|
|
39
34
|
}
|
|
40
|
-
if (!(yield isTxAlreadySigned(tx))) {
|
|
41
|
-
tx.recentBlockhash = blockhash;
|
|
42
|
-
}
|
|
43
35
|
return tx.compileMessage();
|
|
44
36
|
})));
|
|
45
37
|
if (compiledMessages.some((msg) => !msg)) {
|