@dynamic-labs/waas-evm 4.21.0 → 4.22.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 +15 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/DynamicWaasEVMConnector.cjs +22 -13
- package/src/DynamicWaasEVMConnector.js +22 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.22.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.21.1...v4.22.0) (2025-07-07)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* add authtoken to sign messsage and transaction ([#9106](https://github.com/dynamic-labs/dynamic-auth/issues/9106)) ([fe49a6b](https://github.com/dynamic-labs/dynamic-auth/commit/fe49a6b9dcf1121e3cc128835481107edaeb522a))
|
|
8
|
+
* bump waas wallet sdk to 0.0.110 to fix esmodule inference with node 20 and earlier versions ([#9108](https://github.com/dynamic-labs/dynamic-auth/issues/9108)) ([fa54fe6](https://github.com/dynamic-labs/dynamic-auth/commit/fa54fe610d885fcc826e3dff1c57e50b6b7f2934))
|
|
9
|
+
|
|
10
|
+
### [4.21.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.21.0...v4.21.1) (2025-07-04)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
|
|
15
|
+
* add auth token refresh to waas evm & svm functionalities ([#9102](https://github.com/dynamic-labs/dynamic-auth/issues/9102)) ([c155c37](https://github.com/dynamic-labs/dynamic-auth/commit/c155c3709f041ea48c6e76d300ca443e19a28539))
|
|
16
|
+
|
|
2
17
|
## [4.21.0](https://github.com/dynamic-labs/dynamic-auth/compare/v4.20.17...v4.21.0) (2025-07-04)
|
|
3
18
|
|
|
4
19
|
|
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.22.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.704",
|
|
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.22.0",
|
|
24
|
+
"@dynamic-labs/ethereum-core": "4.22.0",
|
|
25
|
+
"@dynamic-labs/logger": "4.22.0",
|
|
26
|
+
"@dynamic-labs/types": "4.22.0",
|
|
27
|
+
"@dynamic-labs/utils": "4.22.0",
|
|
28
|
+
"@dynamic-labs/waas": "4.22.0",
|
|
29
|
+
"@dynamic-labs/wallet-connector-core": "4.22.0"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {}
|
|
32
32
|
}
|
|
@@ -167,18 +167,26 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
167
167
|
return accounts.toAccount({
|
|
168
168
|
address: accountAddress,
|
|
169
169
|
signAuthorization: (parameters) => _tslib.__awaiter(this, void 0, void 0, function* () { return this.signAuthorization(parameters); }),
|
|
170
|
-
signMessage: ({ message }) =>
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
170
|
+
signMessage: ({ message }) => {
|
|
171
|
+
var _a;
|
|
172
|
+
return client.signMessage({
|
|
173
|
+
accountAddress,
|
|
174
|
+
authToken: (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
175
|
+
message: message,
|
|
176
|
+
signedSessionId,
|
|
177
|
+
});
|
|
178
|
+
},
|
|
179
|
+
signTransaction: (transaction) => {
|
|
180
|
+
var _a;
|
|
181
|
+
return client
|
|
182
|
+
.signTransaction({
|
|
183
|
+
authToken: (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
184
|
+
senderAddress: accountAddress,
|
|
185
|
+
signedSessionId,
|
|
186
|
+
transaction: viem.serializeTransaction(transaction),
|
|
187
|
+
})
|
|
188
|
+
.then((tx) => tx);
|
|
189
|
+
},
|
|
182
190
|
signTypedData: (typedData) => client.signTypedData({
|
|
183
191
|
accountAddress,
|
|
184
192
|
signedSessionId,
|
|
@@ -216,10 +224,11 @@ class DynamicWaasEVMConnector extends waas.withDynamicWaas(ethereumCore.Ethereum
|
|
|
216
224
|
}
|
|
217
225
|
createWalletAccount() {
|
|
218
226
|
return _tslib.__awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', } = {}) {
|
|
219
|
-
var _a;
|
|
227
|
+
var _a, _b;
|
|
220
228
|
const walletClient = this.getWaasWalletClient();
|
|
221
229
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
222
230
|
const createdWallet = yield walletClient.createWalletAccount({
|
|
231
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
223
232
|
signedSessionId,
|
|
224
233
|
thresholdSignatureScheme: thresholdSignatureScheme,
|
|
225
234
|
});
|
|
@@ -163,18 +163,26 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
163
163
|
return toAccount({
|
|
164
164
|
address: accountAddress,
|
|
165
165
|
signAuthorization: (parameters) => __awaiter(this, void 0, void 0, function* () { return this.signAuthorization(parameters); }),
|
|
166
|
-
signMessage: ({ message }) =>
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
166
|
+
signMessage: ({ message }) => {
|
|
167
|
+
var _a;
|
|
168
|
+
return client.signMessage({
|
|
169
|
+
accountAddress,
|
|
170
|
+
authToken: (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
171
|
+
message: message,
|
|
172
|
+
signedSessionId,
|
|
173
|
+
});
|
|
174
|
+
},
|
|
175
|
+
signTransaction: (transaction) => {
|
|
176
|
+
var _a;
|
|
177
|
+
return client
|
|
178
|
+
.signTransaction({
|
|
179
|
+
authToken: (_a = this.getAuthToken) === null || _a === void 0 ? void 0 : _a.call(this),
|
|
180
|
+
senderAddress: accountAddress,
|
|
181
|
+
signedSessionId,
|
|
182
|
+
transaction: serializeTransaction(transaction),
|
|
183
|
+
})
|
|
184
|
+
.then((tx) => tx);
|
|
185
|
+
},
|
|
178
186
|
signTypedData: (typedData) => client.signTypedData({
|
|
179
187
|
accountAddress,
|
|
180
188
|
signedSessionId,
|
|
@@ -212,10 +220,11 @@ class DynamicWaasEVMConnector extends withDynamicWaas(EthereumWalletConnector) {
|
|
|
212
220
|
}
|
|
213
221
|
createWalletAccount() {
|
|
214
222
|
return __awaiter(this, arguments, void 0, function* ({ thresholdSignatureScheme = 'TWO_OF_TWO', } = {}) {
|
|
215
|
-
var _a;
|
|
223
|
+
var _a, _b;
|
|
216
224
|
const walletClient = this.getWaasWalletClient();
|
|
217
225
|
const signedSessionId = yield ((_a = this.getSignedSessionId) === null || _a === void 0 ? void 0 : _a.call(this));
|
|
218
226
|
const createdWallet = yield walletClient.createWalletAccount({
|
|
227
|
+
authToken: (_b = this.getAuthToken) === null || _b === void 0 ? void 0 : _b.call(this),
|
|
219
228
|
signedSessionId,
|
|
220
229
|
thresholdSignatureScheme: thresholdSignatureScheme,
|
|
221
230
|
});
|