@dynamic-labs/waas-evm 4.61.6 → 4.62.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 +22 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/DynamicWaasEVMConnector.cjs +10 -2
- package/src/DynamicWaasEVMConnector.d.ts +7 -1
- package/src/DynamicWaasEVMConnector.js +10 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.62.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.7...v4.62.0) (2026-02-23)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add stellar waas connector ([#10472](https://github.com/dynamic-labs/dynamic-auth/issues/10472)) ([8349afe](https://github.com/dynamic-labs/dynamic-auth/commit/8349afece59b430ef398585b372d4cd2733c0ce4))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **react-native:** ensure transaction confirmation UI is displayed ([#10488](https://github.com/dynamic-labs/dynamic-auth/issues/10488)) ([dfa2304](https://github.com/dynamic-labs/dynamic-auth/commit/dfa230435a9ce0febc5b66fcca5098cbe979f8d7))
|
|
13
|
+
|
|
14
|
+
### [4.61.7](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.6...v4.61.7) (2026-02-20)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* coinbase deeplink url ([#10468](https://github.com/dynamic-labs/dynamic-auth/issues/10468)) ([5bd249f](https://github.com/dynamic-labs/dynamic-auth/commit/5bd249ff3788a9718aee802840a73b408675a02b))
|
|
20
|
+
* **react-native:** ensure sign transaction with viem ([#10463](https://github.com/dynamic-labs/dynamic-auth/issues/10463)) ([1048694](https://github.com/dynamic-labs/dynamic-auth/commit/1048694f2a468780ce7398c5ed82a38e6d3e0d76))
|
|
21
|
+
* **react-native:** upgrade react-native-passkey to v3.3.2 ([#10453](https://github.com/dynamic-labs/dynamic-auth/issues/10453)) ([db68ec8](https://github.com/dynamic-labs/dynamic-auth/commit/db68ec819fe8d3e326ed7ed36b1701b0cb3caded))
|
|
22
|
+
* **solana:** token 2022 send balance ([#10470](https://github.com/dynamic-labs/dynamic-auth/issues/10470)) ([2c5ee3e](https://github.com/dynamic-labs/dynamic-auth/commit/2c5ee3e007d1e0feb02b632deb6d23f8f6ba55f7))
|
|
23
|
+
|
|
2
24
|
### [4.61.6](https://github.com/dynamic-labs/dynamic-auth/compare/v4.61.5...v4.61.6) (2026-02-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-evm",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.62.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",
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.0.864",
|
|
22
22
|
"viem": "^2.28.4",
|
|
23
|
-
"@dynamic-labs/assert-package-version": "4.
|
|
24
|
-
"@dynamic-labs/ethereum-core": "4.
|
|
25
|
-
"@dynamic-labs/logger": "4.
|
|
26
|
-
"@dynamic-labs/types": "4.
|
|
27
|
-
"@dynamic-labs/utils": "4.
|
|
28
|
-
"@dynamic-labs/waas": "4.
|
|
29
|
-
"@dynamic-labs/wallet-connector-core": "4.
|
|
23
|
+
"@dynamic-labs/assert-package-version": "4.62.0",
|
|
24
|
+
"@dynamic-labs/ethereum-core": "4.62.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.62.0",
|
|
26
|
+
"@dynamic-labs/types": "4.62.0",
|
|
27
|
+
"@dynamic-labs/utils": "4.62.0",
|
|
28
|
+
"@dynamic-labs/waas": "4.62.0",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "4.62.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -169,7 +169,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
169
169
|
return (_a = this.getActiveAccount()) === null || _a === void 0 ? void 0 : _a.address;
|
|
170
170
|
});
|
|
171
171
|
}
|
|
172
|
-
|
|
172
|
+
getViemAccountCustomSource(_a) {
|
|
173
173
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, }) {
|
|
174
174
|
var _b;
|
|
175
175
|
const client = yield this.getWaasWalletClient();
|
|
@@ -177,7 +177,7 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
177
177
|
if (!signedSessionId) {
|
|
178
178
|
throw new utils.DynamicError('Signed session ID is required');
|
|
179
179
|
}
|
|
180
|
-
return
|
|
180
|
+
return {
|
|
181
181
|
address: accountAddress,
|
|
182
182
|
signAuthorization: (parameters) => _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
183
183
|
const traceId = this.generateTraceId();
|
|
@@ -314,7 +314,15 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
314
314
|
});
|
|
315
315
|
return signature;
|
|
316
316
|
}),
|
|
317
|
+
};
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
getViemAccount(_a) {
|
|
321
|
+
return _tslib.__awaiter(this, arguments, void 0, function* ({ accountAddress, }) {
|
|
322
|
+
const accountSource = yield this.getViemAccountCustomSource({
|
|
323
|
+
accountAddress,
|
|
317
324
|
});
|
|
325
|
+
return accounts.toAccount(accountSource);
|
|
318
326
|
});
|
|
319
327
|
}
|
|
320
328
|
getWalletClient(chainId) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Account, Hex, Transport, Chain as ViemChain, WalletClient } from 'viem';
|
|
1
|
+
import { Account, CustomSource, Hex, Transport, Chain as ViemChain, WalletClient } from 'viem';
|
|
2
2
|
import { LocalAccount, SignAuthorizationParameters, SignAuthorizationReturnType } from 'viem/accounts';
|
|
3
3
|
import { EthereumWalletConnector, EthereumWalletConnectorOpts, SwitchNetworkOps } from '@dynamic-labs/ethereum-core';
|
|
4
4
|
import { Logger } from '@dynamic-labs/logger';
|
|
@@ -11,6 +11,9 @@ interface JwtVerifiedCredentialWithSmartWalletRef extends JwtVerifiedCredential
|
|
|
11
11
|
smartWalletRefAddress?: string;
|
|
12
12
|
}
|
|
13
13
|
type SignAuthorizationParametersWithoutPrivateKey = Omit<SignAuthorizationParameters, 'privateKey'>;
|
|
14
|
+
type DynamicCustomSource = CustomSource & {
|
|
15
|
+
signAuthorization: (parameters: SignAuthorizationParametersWithoutPrivateKey) => Promise<SignAuthorizationReturnType>;
|
|
16
|
+
};
|
|
14
17
|
declare const DynamicWaasEVMConnector_base: (abstract new (...args: any[]) => {
|
|
15
18
|
[x: string]: any;
|
|
16
19
|
name: string;
|
|
@@ -174,6 +177,9 @@ export declare class DynamicWaasEVMConnector extends DynamicWaasEVMConnector_bas
|
|
|
174
177
|
private getRpcUrl;
|
|
175
178
|
validateActiveWallet(expectedAddress: string): Promise<void>;
|
|
176
179
|
getActiveAccountAddress(): Promise<string | undefined>;
|
|
180
|
+
getViemAccountCustomSource({ accountAddress, }: {
|
|
181
|
+
accountAddress: string;
|
|
182
|
+
}): Promise<DynamicCustomSource>;
|
|
177
183
|
getViemAccount({ accountAddress, }: {
|
|
178
184
|
accountAddress: string;
|
|
179
185
|
}): Promise<LocalAccount>;
|
|
@@ -165,7 +165,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
165
165
|
return (_a = this.getActiveAccount()) === null || _a === void 0 ? void 0 : _a.address;
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
|
|
168
|
+
getViemAccountCustomSource(_a) {
|
|
169
169
|
return __awaiter(this, arguments, void 0, function* ({ accountAddress, }) {
|
|
170
170
|
var _b;
|
|
171
171
|
const client = yield this.getWaasWalletClient();
|
|
@@ -173,7 +173,7 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
173
173
|
if (!signedSessionId) {
|
|
174
174
|
throw new DynamicError('Signed session ID is required');
|
|
175
175
|
}
|
|
176
|
-
return
|
|
176
|
+
return {
|
|
177
177
|
address: accountAddress,
|
|
178
178
|
signAuthorization: (parameters) => __awaiter(this, void 0, void 0, function* () {
|
|
179
179
|
const traceId = this.generateTraceId();
|
|
@@ -310,7 +310,15 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
310
310
|
});
|
|
311
311
|
return signature;
|
|
312
312
|
}),
|
|
313
|
+
};
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
getViemAccount(_a) {
|
|
317
|
+
return __awaiter(this, arguments, void 0, function* ({ accountAddress, }) {
|
|
318
|
+
const accountSource = yield this.getViemAccountCustomSource({
|
|
319
|
+
accountAddress,
|
|
313
320
|
});
|
|
321
|
+
return toAccount(accountSource);
|
|
314
322
|
});
|
|
315
323
|
}
|
|
316
324
|
getWalletClient(chainId) {
|