@dynamic-labs/ethereum 3.9.10 → 3.9.12
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 +9 -9
- package/src/coinbase/coinbase.cjs +8 -8
- package/src/coinbase/coinbase.js +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
|
|
2
|
+
### [3.9.12](https://github.com/dynamic-labs/DynamicAuth/compare/v3.9.11...v3.9.12) (2025-02-21)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* upgrade elliptic package ([#8107](https://github.com/dynamic-labs/DynamicAuth/issues/8107)) ([ff83101](https://github.com/dynamic-labs/DynamicAuth/commit/ff831012e6b574a4a393012970e2f4b0aa9bf71f))
|
|
8
|
+
|
|
9
|
+
### [3.9.11](https://github.com/dynamic-labs/DynamicAuth/compare/v3.9.10...v3.9.11) (2025-02-08)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* ensure correct dependencies are listed in packages ([#7958](https://github.com/dynamic-labs/DynamicAuth/issues/7958)) ([0ba0035](https://github.com/dynamic-labs/DynamicAuth/commit/0ba003520136336ea69a6ac163d36acec2b67970))
|
|
15
|
+
* ensure user wallets state has been updated before emitting walletAdded/walletRemoved events ([#7870](https://github.com/dynamic-labs/DynamicAuth/issues/7870)) ([5d89ad0](https://github.com/dynamic-labs/DynamicAuth/commit/5d89ad02a278ccb1b47bc46a8e36c15180ed7965)), closes [#7863](https://github.com/dynamic-labs/DynamicAuth/issues/7863)
|
|
16
|
+
|
|
2
17
|
### [3.9.10](https://github.com/dynamic-labs/DynamicAuth/compare/v3.9.9...v3.9.10) (2025-01-16)
|
|
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/ethereum",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.12",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"./package.json": "./package.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@coinbase/wallet-sdk": "4.0
|
|
29
|
+
"@coinbase/wallet-sdk": "4.3.0",
|
|
30
30
|
"@walletconnect/ethereum-provider": "2.11.2",
|
|
31
31
|
"@walletconnect/types": "2.10.6",
|
|
32
32
|
"eventemitter3": "5.0.1",
|
|
33
33
|
"buffer": "6.0.3",
|
|
34
|
-
"@dynamic-labs/assert-package-version": "3.9.
|
|
35
|
-
"@dynamic-labs/embedded-wallet-evm": "3.9.
|
|
36
|
-
"@dynamic-labs/ethereum-core": "3.9.
|
|
37
|
-
"@dynamic-labs/types": "3.9.
|
|
38
|
-
"@dynamic-labs/utils": "3.9.
|
|
39
|
-
"@dynamic-labs/wallet-book": "3.9.
|
|
40
|
-
"@dynamic-labs/wallet-connector-core": "3.9.
|
|
34
|
+
"@dynamic-labs/assert-package-version": "3.9.12",
|
|
35
|
+
"@dynamic-labs/embedded-wallet-evm": "3.9.12",
|
|
36
|
+
"@dynamic-labs/ethereum-core": "3.9.12",
|
|
37
|
+
"@dynamic-labs/types": "3.9.12",
|
|
38
|
+
"@dynamic-labs/utils": "3.9.12",
|
|
39
|
+
"@dynamic-labs/wallet-book": "3.9.12",
|
|
40
|
+
"@dynamic-labs/wallet-connector-core": "3.9.12"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"viem": "^2.7.12"
|
|
@@ -32,9 +32,9 @@ class Coinbase extends ethereumCore.EthereumWalletConnector {
|
|
|
32
32
|
getConnectedAccounts() {
|
|
33
33
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
34
34
|
try {
|
|
35
|
-
const accounts = yield this.coinbaseProvider.request({
|
|
35
|
+
const accounts = (yield this.coinbaseProvider.request({
|
|
36
36
|
method: 'eth_accounts',
|
|
37
|
-
});
|
|
37
|
+
}));
|
|
38
38
|
if (accounts[0]) {
|
|
39
39
|
this.setActiveAccount(accounts[0]);
|
|
40
40
|
}
|
|
@@ -51,23 +51,23 @@ class Coinbase extends ethereumCore.EthereumWalletConnector {
|
|
|
51
51
|
}
|
|
52
52
|
getAddress() {
|
|
53
53
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
const [address] = yield this.coinbaseProvider.request({
|
|
54
|
+
const [address] = (yield this.coinbaseProvider.request({
|
|
55
55
|
method: 'eth_requestAccounts',
|
|
56
|
-
});
|
|
56
|
+
}));
|
|
57
57
|
this.setActiveAccount(address);
|
|
58
58
|
return address;
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
signMessage(messageToSign) {
|
|
62
62
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
const [address] = yield this.coinbaseProvider.request({
|
|
63
|
+
const [address] = (yield this.coinbaseProvider.request({
|
|
64
64
|
method: 'eth_requestAccounts',
|
|
65
|
-
});
|
|
65
|
+
}));
|
|
66
66
|
try {
|
|
67
|
-
return yield this.coinbaseProvider.request({
|
|
67
|
+
return (yield this.coinbaseProvider.request({
|
|
68
68
|
method: 'personal_sign',
|
|
69
69
|
params: [viem.toHex(viem.toBytes(messageToSign)), address.toLowerCase()],
|
|
70
|
-
});
|
|
70
|
+
}));
|
|
71
71
|
}
|
|
72
72
|
catch (err) {
|
|
73
73
|
return undefined;
|
package/src/coinbase/coinbase.js
CHANGED
|
@@ -28,9 +28,9 @@ class Coinbase extends EthereumWalletConnector {
|
|
|
28
28
|
getConnectedAccounts() {
|
|
29
29
|
return __awaiter(this, void 0, void 0, function* () {
|
|
30
30
|
try {
|
|
31
|
-
const accounts = yield this.coinbaseProvider.request({
|
|
31
|
+
const accounts = (yield this.coinbaseProvider.request({
|
|
32
32
|
method: 'eth_accounts',
|
|
33
|
-
});
|
|
33
|
+
}));
|
|
34
34
|
if (accounts[0]) {
|
|
35
35
|
this.setActiveAccount(accounts[0]);
|
|
36
36
|
}
|
|
@@ -47,23 +47,23 @@ class Coinbase extends EthereumWalletConnector {
|
|
|
47
47
|
}
|
|
48
48
|
getAddress() {
|
|
49
49
|
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
const [address] = yield this.coinbaseProvider.request({
|
|
50
|
+
const [address] = (yield this.coinbaseProvider.request({
|
|
51
51
|
method: 'eth_requestAccounts',
|
|
52
|
-
});
|
|
52
|
+
}));
|
|
53
53
|
this.setActiveAccount(address);
|
|
54
54
|
return address;
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
signMessage(messageToSign) {
|
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
-
const [address] = yield this.coinbaseProvider.request({
|
|
59
|
+
const [address] = (yield this.coinbaseProvider.request({
|
|
60
60
|
method: 'eth_requestAccounts',
|
|
61
|
-
});
|
|
61
|
+
}));
|
|
62
62
|
try {
|
|
63
|
-
return yield this.coinbaseProvider.request({
|
|
63
|
+
return (yield this.coinbaseProvider.request({
|
|
64
64
|
method: 'personal_sign',
|
|
65
65
|
params: [toHex(toBytes(messageToSign)), address.toLowerCase()],
|
|
66
|
-
});
|
|
66
|
+
}));
|
|
67
67
|
}
|
|
68
68
|
catch (err) {
|
|
69
69
|
return undefined;
|