@dynamic-labs/waas-svm 5.3.2 → 5.4.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
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
## [5.4.0](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.2...v5.4.0) (2026-08-25)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* **aleo:** wire up signMessage on the WaaS Aleo connector ([#12235](https://github.com/dynamic-labs/dynamic-auth/issues/12235)) ([e56cbf5](https://github.com/dynamic-labs/dynamic-auth/commit/e56cbf5546bdcc21ce916dece43ae36dcea9b808))
|
|
8
|
+
* **waas:** thread isRawScalarImport through importPrivateKey for ed25519 chains ([#12220](https://github.com/dynamic-labs/dynamic-auth/issues/12220)) ([ced9efa](https://github.com/dynamic-labs/dynamic-auth/commit/ced9efac5fa5a4a1280383419f56fe22733722cd))
|
|
9
|
+
* **webview:** add policies message contract and controller ([#12248](https://github.com/dynamic-labs/dynamic-auth/issues/12248)) ([8557c1e](https://github.com/dynamic-labs/dynamic-auth/commit/8557c1ed3861e12f1f06b2bb610184813b577daa))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **bitcoin:** pass the wallet's address type when signing ([#12265](https://github.com/dynamic-labs/dynamic-auth/issues/12265)) ([b8a8eab](https://github.com/dynamic-labs/dynamic-auth/commit/b8a8eab7e4cc294cc307fb10ea6814e76111a274))
|
|
15
|
+
* remediate high-severity tar vulnerability and prune a dead override ([#12268](https://github.com/dynamic-labs/dynamic-auth/issues/12268)) ([6b1b343](https://github.com/dynamic-labs/dynamic-auth/commit/6b1b343e7947e8da30012446677e342ae9bfe14a))
|
|
16
|
+
* **waas-svm:** fix retry-classification and environmentId gaps in [#12240](https://github.com/dynamic-labs/dynamic-auth/issues/12240) ([#12247](https://github.com/dynamic-labs/dynamic-auth/issues/12247)) ([e79cecc](https://github.com/dynamic-labs/dynamic-auth/commit/e79ceccd424c48c3a7f45fdd6ea288c269ac0171))
|
|
17
|
+
* **wallet-connect:** reopen WalletConnect IndexedDB when the browser closes the connection ([#12262](https://github.com/dynamic-labs/dynamic-auth/issues/12262)) ([1a20dde](https://github.com/dynamic-labs/dynamic-auth/commit/1a20ddeaeec590ae3390c9e47ef3c14738379b83))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Performance Improvements
|
|
21
|
+
|
|
22
|
+
* **ethereum-gasless-core:** parallel 7702 auth signing and long-poll sponsored-tx status ([#12225](https://github.com/dynamic-labs/dynamic-auth/issues/12225)) ([53ca916](https://github.com/dynamic-labs/dynamic-auth/commit/53ca91668f8dd839c52d55a0e5d7bb5257f7f415))
|
|
23
|
+
|
|
2
24
|
### [5.3.2](https://github.com/dynamic-labs/dynamic-auth/compare/v5.3.1...v5.3.2) (2026-08-19)
|
|
3
25
|
|
|
4
26
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/waas-svm",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "A React SDK for implementing wallet web3 authentication and authorization to your website.",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,18 +19,18 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.12.0",
|
|
22
|
-
"@dynamic-labs/embedded-wallet-solana": "5.
|
|
22
|
+
"@dynamic-labs/embedded-wallet-solana": "5.4.0",
|
|
23
23
|
"@solana/web3.js": "1.98.1",
|
|
24
24
|
"eventemitter3": "5.0.1",
|
|
25
25
|
"bs58": "5.0.0",
|
|
26
|
-
"@dynamic-labs/assert-package-version": "5.
|
|
27
|
-
"@dynamic-labs/logger": "5.
|
|
28
|
-
"@dynamic-labs/rpc-providers": "5.
|
|
29
|
-
"@dynamic-labs/solana-core": "5.
|
|
30
|
-
"@dynamic-labs/types": "5.
|
|
31
|
-
"@dynamic-labs/utils": "5.
|
|
32
|
-
"@dynamic-labs/waas": "5.
|
|
33
|
-
"@dynamic-labs/wallet-connector-core": "5.
|
|
26
|
+
"@dynamic-labs/assert-package-version": "5.4.0",
|
|
27
|
+
"@dynamic-labs/logger": "5.4.0",
|
|
28
|
+
"@dynamic-labs/rpc-providers": "5.4.0",
|
|
29
|
+
"@dynamic-labs/solana-core": "5.4.0",
|
|
30
|
+
"@dynamic-labs/types": "5.4.0",
|
|
31
|
+
"@dynamic-labs/utils": "5.4.0",
|
|
32
|
+
"@dynamic-labs/waas": "5.4.0",
|
|
33
|
+
"@dynamic-labs/wallet-connector-core": "5.4.0"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {}
|
|
36
36
|
}
|
|
@@ -42,22 +42,24 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* Determines whether a sponsorship failure is worth retrying.
|
|
45
|
-
*
|
|
46
|
-
*
|
|
45
|
+
* Only a classified HTTP rejection can be proven permanent; everything
|
|
46
|
+
* else (network errors, missing auth token, malformed response) defaults
|
|
47
|
+
* to retryable. Classified rejections only retry on rate limits and
|
|
48
|
+
* server errors.
|
|
47
49
|
*/
|
|
48
50
|
isRetryableSponsorshipError(error) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
// Only a classified HTTP rejection can be proven permanent (e.g. a
|
|
52
|
+
// definitive 400/403 sponsor refusal). Everything else — network/fetch
|
|
53
|
+
// failures, a missing auth token, a malformed response body — has no
|
|
54
|
+
// evidence it won't clear on retry (e.g. a token hydration race), so it
|
|
55
|
+
// defaults to retryable rather than being guessed as permanent.
|
|
56
|
+
if (error instanceof utils.DynamicError && typeof error.code === 'string') {
|
|
53
57
|
const match = error.code.match(/^sponsorship_http_(\d+)$/);
|
|
54
|
-
if (
|
|
55
|
-
|
|
58
|
+
if (match) {
|
|
59
|
+
const status = Number(match[1]);
|
|
60
|
+
return status === 429 || status >= 500;
|
|
56
61
|
}
|
|
57
|
-
const status = Number(match[1]);
|
|
58
|
-
return status === 429 || status >= 500;
|
|
59
62
|
}
|
|
60
|
-
// Network/fetch failures are retried.
|
|
61
63
|
return true;
|
|
62
64
|
}
|
|
63
65
|
/**
|
|
@@ -85,8 +87,10 @@ class DynamicWaasSVMConnector extends waas.withDynamicWaas(solanaCore.SolanaWall
|
|
|
85
87
|
return transaction;
|
|
86
88
|
}
|
|
87
89
|
if (!this.environmentId) {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
+
// A missing environmentId can't resolve itself on retry, and silently
|
|
91
|
+
// returning the unsponsored transaction is exactly the fail-open
|
|
92
|
+
// behavior this method exists to eliminate.
|
|
93
|
+
throw new utils.DynamicError('Missing environmentId, cannot sponsor transaction', 'sponsorship_missing_environment_id');
|
|
90
94
|
}
|
|
91
95
|
for (let attempt = 1; attempt <= SPONSORSHIP_MAX_ATTEMPTS; attempt++) {
|
|
92
96
|
try {
|
|
@@ -93,16 +93,14 @@ declare const DynamicWaasSVMConnector_base: (abstract new (...args: any[]) => {
|
|
|
93
93
|
}): Promise<{
|
|
94
94
|
shareSetId: string;
|
|
95
95
|
}>;
|
|
96
|
-
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, }: {
|
|
96
|
+
importPrivateKey({ privateKey, thresholdSignatureScheme, publicAddressCheck, addressType, legacyWalletId, password, isRawScalarImport, }: {
|
|
97
97
|
privateKey: string;
|
|
98
|
-
/**
|
|
99
|
-
* Override setEnvironmentId to ensure it's set on the global logger
|
|
100
|
-
*/
|
|
101
98
|
thresholdSignatureScheme?: string | undefined;
|
|
102
99
|
publicAddressCheck?: string | undefined;
|
|
103
100
|
addressType?: string | undefined;
|
|
104
101
|
legacyWalletId?: string | undefined;
|
|
105
102
|
password?: string | undefined;
|
|
103
|
+
isRawScalarImport?: boolean | undefined;
|
|
106
104
|
}): Promise<void>;
|
|
107
105
|
migrateFromFireblocks({ deviceId, jwt, walletPassword, ncwStorage, expectedAddresses, coinTypes, password, }: {
|
|
108
106
|
deviceId: string;
|
|
@@ -246,8 +244,10 @@ export declare class DynamicWaasSVMConnector extends DynamicWaasSVMConnector_bas
|
|
|
246
244
|
setSvmGasSponsorshipEnabled(getEnabled: () => boolean): void;
|
|
247
245
|
/**
|
|
248
246
|
* Determines whether a sponsorship failure is worth retrying.
|
|
249
|
-
*
|
|
250
|
-
*
|
|
247
|
+
* Only a classified HTTP rejection can be proven permanent; everything
|
|
248
|
+
* else (network errors, missing auth token, malformed response) defaults
|
|
249
|
+
* to retryable. Classified rejections only retry on rate limits and
|
|
250
|
+
* server errors.
|
|
251
251
|
*/
|
|
252
252
|
private isRetryableSponsorshipError;
|
|
253
253
|
/**
|
|
@@ -38,22 +38,24 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Determines whether a sponsorship failure is worth retrying.
|
|
41
|
-
*
|
|
42
|
-
*
|
|
41
|
+
* Only a classified HTTP rejection can be proven permanent; everything
|
|
42
|
+
* else (network errors, missing auth token, malformed response) defaults
|
|
43
|
+
* to retryable. Classified rejections only retry on rate limits and
|
|
44
|
+
* server errors.
|
|
43
45
|
*/
|
|
44
46
|
isRetryableSponsorshipError(error) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
// Only a classified HTTP rejection can be proven permanent (e.g. a
|
|
48
|
+
// definitive 400/403 sponsor refusal). Everything else — network/fetch
|
|
49
|
+
// failures, a missing auth token, a malformed response body — has no
|
|
50
|
+
// evidence it won't clear on retry (e.g. a token hydration race), so it
|
|
51
|
+
// defaults to retryable rather than being guessed as permanent.
|
|
52
|
+
if (error instanceof DynamicError && typeof error.code === 'string') {
|
|
49
53
|
const match = error.code.match(/^sponsorship_http_(\d+)$/);
|
|
50
|
-
if (
|
|
51
|
-
|
|
54
|
+
if (match) {
|
|
55
|
+
const status = Number(match[1]);
|
|
56
|
+
return status === 429 || status >= 500;
|
|
52
57
|
}
|
|
53
|
-
const status = Number(match[1]);
|
|
54
|
-
return status === 429 || status >= 500;
|
|
55
58
|
}
|
|
56
|
-
// Network/fetch failures are retried.
|
|
57
59
|
return true;
|
|
58
60
|
}
|
|
59
61
|
/**
|
|
@@ -81,8 +83,10 @@ class DynamicWaasSVMConnector extends withDynamicWaas(SolanaWalletConnector) {
|
|
|
81
83
|
return transaction;
|
|
82
84
|
}
|
|
83
85
|
if (!this.environmentId) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
// A missing environmentId can't resolve itself on retry, and silently
|
|
87
|
+
// returning the unsponsored transaction is exactly the fail-open
|
|
88
|
+
// behavior this method exists to eliminate.
|
|
89
|
+
throw new DynamicError('Missing environmentId, cannot sponsor transaction', 'sponsorship_missing_environment_id');
|
|
86
90
|
}
|
|
87
91
|
for (let attempt = 1; attempt <= SPONSORSHIP_MAX_ATTEMPTS; attempt++) {
|
|
88
92
|
try {
|