@dynamic-labs/blocto-evm 2.0.0-alpha.10 → 2.0.0-alpha.11
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 +27 -0
- package/package.json +3 -3
- package/src/BloctoEmailConnector.cjs +1 -1
- package/src/BloctoEmailConnector.d.ts +1 -1
- package/src/BloctoEmailConnector.js +1 -1
- package/src/BloctoEvm.cjs +2 -2
- package/src/BloctoEvm.d.ts +1 -1
- package/src/BloctoEvm.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
|
|
2
|
+
## [2.0.0-alpha.11](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.10...v2.0.0-alpha.11) (2024-03-12)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* rename FetchPublicAddressOpts to GetAddressOpts (#4910)
|
|
8
|
+
* remove use effect in useWalletEventListeners (#4843)
|
|
9
|
+
* rename fetchPublicAddress to getAddress (#4851)
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* Add farcaster to iconic ([#4925](https://github.com/dynamic-labs/DynamicAuth/issues/4925)) ([ab282dc](https://github.com/dynamic-labs/DynamicAuth/commit/ab282dc9cdcc0fe11f014d002b056ef4d3b34234))
|
|
14
|
+
* use transaction confirmation ui on signAndSendTransaction for solana embedded wallets ([#4909](https://github.com/dynamic-labs/DynamicAuth/issues/4909)) ([d77e89e](https://github.com/dynamic-labs/DynamicAuth/commit/d77e89ecff9dfc67ed48537f541a9995b2662e1e))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* add back connect button css variables ([#4922](https://github.com/dynamic-labs/DynamicAuth/issues/4922)) ([1119d62](https://github.com/dynamic-labs/DynamicAuth/commit/1119d62c2db6504952393060930524c3823e4a00))
|
|
20
|
+
* keep adaptive wallet list height ([#4916](https://github.com/dynamic-labs/DynamicAuth/issues/4916)) ([62aa54e](https://github.com/dynamic-labs/DynamicAuth/commit/62aa54e81d563082f7aa519f2ff2b5132e7dd83d))
|
|
21
|
+
* pass account and chain to walletClient ([#4865](https://github.com/dynamic-labs/DynamicAuth/issues/4865)) ([17a143f](https://github.com/dynamic-labs/DynamicAuth/commit/17a143f87a77e56227b2517038c20cf67f8e08bf))
|
|
22
|
+
* update walletbook to fix zerion in-app browser detection issue ([#4917](https://github.com/dynamic-labs/DynamicAuth/issues/4917)) ([48b05d7](https://github.com/dynamic-labs/DynamicAuth/commit/48b05d78e4f7add09787b64505723d4eca34d3e0))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
* remove use effect in useWalletEventListeners ([#4843](https://github.com/dynamic-labs/DynamicAuth/issues/4843)) ([2e948bb](https://github.com/dynamic-labs/DynamicAuth/commit/2e948bbca0dbdceab7460a844d0988eacd47f581))
|
|
26
|
+
* rename fetchPublicAddress to getAddress ([#4851](https://github.com/dynamic-labs/DynamicAuth/issues/4851)) ([668e7dd](https://github.com/dynamic-labs/DynamicAuth/commit/668e7dd62e1f323dbe64209b5c59c2cd0ee45d61))
|
|
27
|
+
* rename FetchPublicAddressOpts to GetAddressOpts ([#4910](https://github.com/dynamic-labs/DynamicAuth/issues/4910)) ([e5e4b1b](https://github.com/dynamic-labs/DynamicAuth/commit/e5e4b1b08a4e010afa44f8abb0bf6af7f236a86a))
|
|
28
|
+
|
|
2
29
|
## [2.0.0-alpha.10](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.9...v2.0.0-alpha.10) (2024-03-08)
|
|
3
30
|
|
|
4
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/blocto-evm",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.11",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/dynamic-labs/DynamicAuth.git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@blocto/sdk": "0.5.4",
|
|
30
|
-
"@dynamic-labs/ethereum": "2.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "2.0.0-alpha.
|
|
30
|
+
"@dynamic-labs/ethereum": "2.0.0-alpha.11",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "2.0.0-alpha.11"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"viem": "^2.7.6"
|
|
@@ -23,7 +23,7 @@ class BloctoEmailConnector extends BloctoEvm.BloctoEvm {
|
|
|
23
23
|
localStorage.setItem(BloctoEmailConnector.storageEmailKey, email);
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
getAddress() {
|
|
27
27
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
try {
|
|
29
29
|
const client = this.getClient();
|
|
@@ -5,7 +5,7 @@ export declare class BloctoEmailConnector extends BloctoEvm implements IEmailWal
|
|
|
5
5
|
protected _email: string | undefined | null;
|
|
6
6
|
get email(): string | null | undefined;
|
|
7
7
|
setEmail(email: BloctoEmailConnector['email']): void;
|
|
8
|
-
|
|
8
|
+
getAddress(): Promise<`0x${string}` | undefined>;
|
|
9
9
|
getConnectedAccounts(): Promise<string[]>;
|
|
10
10
|
clearEmail(): void;
|
|
11
11
|
endSession(): Promise<void>;
|
|
@@ -19,7 +19,7 @@ class BloctoEmailConnector extends BloctoEvm {
|
|
|
19
19
|
localStorage.setItem(BloctoEmailConnector.storageEmailKey, email);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
getAddress() {
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
24
24
|
try {
|
|
25
25
|
const client = this.getClient();
|
package/src/BloctoEvm.cjs
CHANGED
|
@@ -84,7 +84,7 @@ class BloctoEvm extends ethereum.EthWalletConnector {
|
|
|
84
84
|
// Ethers will be making retries on failure. This becomes an issue on the connect step.
|
|
85
85
|
// When Blocto's modal closes prior to receiving a response with the address on the connect step,
|
|
86
86
|
// then ethers would retry and the modal will open again.
|
|
87
|
-
|
|
87
|
+
getAddress() {
|
|
88
88
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
89
89
|
try {
|
|
90
90
|
const client = this.getClient();
|
|
@@ -109,7 +109,7 @@ class BloctoEvm extends ethereum.EthWalletConnector {
|
|
|
109
109
|
var _a;
|
|
110
110
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
111
111
|
try {
|
|
112
|
-
const account = yield this.
|
|
112
|
+
const account = yield this.getAddress();
|
|
113
113
|
if (!account) {
|
|
114
114
|
return Promise.resolve(undefined);
|
|
115
115
|
}
|
package/src/BloctoEvm.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare class BloctoEvm extends EthWalletConnector {
|
|
|
19
19
|
protected getClient(): BloctoSDK | undefined;
|
|
20
20
|
protected removeClient(): void;
|
|
21
21
|
getWalletClient(): WalletClient | undefined;
|
|
22
|
-
|
|
22
|
+
getAddress(): Promise<Hex | undefined>;
|
|
23
23
|
signMessage(messageToSign: string): Promise<string | undefined>;
|
|
24
24
|
endSession(): Promise<void>;
|
|
25
25
|
}
|
package/src/BloctoEvm.js
CHANGED
|
@@ -76,7 +76,7 @@ class BloctoEvm extends EthWalletConnector {
|
|
|
76
76
|
// Ethers will be making retries on failure. This becomes an issue on the connect step.
|
|
77
77
|
// When Blocto's modal closes prior to receiving a response with the address on the connect step,
|
|
78
78
|
// then ethers would retry and the modal will open again.
|
|
79
|
-
|
|
79
|
+
getAddress() {
|
|
80
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
81
|
try {
|
|
82
82
|
const client = this.getClient();
|
|
@@ -101,7 +101,7 @@ class BloctoEvm extends EthWalletConnector {
|
|
|
101
101
|
var _a;
|
|
102
102
|
return __awaiter(this, void 0, void 0, function* () {
|
|
103
103
|
try {
|
|
104
|
-
const account = yield this.
|
|
104
|
+
const account = yield this.getAddress();
|
|
105
105
|
if (!account) {
|
|
106
106
|
return Promise.resolve(undefined);
|
|
107
107
|
}
|