@dynamic-labs/blocto-evm 2.0.0-alpha.10 → 2.0.0-alpha.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 CHANGED
@@ -1,4 +1,43 @@
1
1
 
2
+ ## [2.0.0-alpha.12](https://github.com/dynamic-labs/DynamicAuth/compare/v2.0.0-alpha.11...v2.0.0-alpha.12) (2024-03-13)
3
+
4
+
5
+ ### Features
6
+
7
+ * add sign-in with farcaster ([#4947](https://github.com/dynamic-labs/DynamicAuth/issues/4947)) ([3927d24](https://github.com/dynamic-labs/DynamicAuth/commit/3927d24392a8944997ca05431c6ab54757be62d9))
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * wallet connect links with query params ([#4948](https://github.com/dynamic-labs/DynamicAuth/issues/4948)) ([0738130](https://github.com/dynamic-labs/DynamicAuth/commit/0738130f82473a197e035b8dd74d996bdbb24c11))
13
+
14
+ ## [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)
15
+
16
+
17
+ ### ⚠ BREAKING CHANGES
18
+
19
+ * rename FetchPublicAddressOpts to GetAddressOpts (#4910)
20
+ * remove use effect in useWalletEventListeners (#4843)
21
+ * rename fetchPublicAddress to getAddress (#4851)
22
+
23
+ ### Features
24
+
25
+ * Add farcaster to iconic ([#4925](https://github.com/dynamic-labs/DynamicAuth/issues/4925)) ([ab282dc](https://github.com/dynamic-labs/DynamicAuth/commit/ab282dc9cdcc0fe11f014d002b056ef4d3b34234))
26
+ * 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))
27
+
28
+
29
+ ### Bug Fixes
30
+
31
+ * add back connect button css variables ([#4922](https://github.com/dynamic-labs/DynamicAuth/issues/4922)) ([1119d62](https://github.com/dynamic-labs/DynamicAuth/commit/1119d62c2db6504952393060930524c3823e4a00))
32
+ * keep adaptive wallet list height ([#4916](https://github.com/dynamic-labs/DynamicAuth/issues/4916)) ([62aa54e](https://github.com/dynamic-labs/DynamicAuth/commit/62aa54e81d563082f7aa519f2ff2b5132e7dd83d))
33
+ * pass account and chain to walletClient ([#4865](https://github.com/dynamic-labs/DynamicAuth/issues/4865)) ([17a143f](https://github.com/dynamic-labs/DynamicAuth/commit/17a143f87a77e56227b2517038c20cf67f8e08bf))
34
+ * 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))
35
+
36
+
37
+ * remove use effect in useWalletEventListeners ([#4843](https://github.com/dynamic-labs/DynamicAuth/issues/4843)) ([2e948bb](https://github.com/dynamic-labs/DynamicAuth/commit/2e948bbca0dbdceab7460a844d0988eacd47f581))
38
+ * rename fetchPublicAddress to getAddress ([#4851](https://github.com/dynamic-labs/DynamicAuth/issues/4851)) ([668e7dd](https://github.com/dynamic-labs/DynamicAuth/commit/668e7dd62e1f323dbe64209b5c59c2cd0ee45d61))
39
+ * rename FetchPublicAddressOpts to GetAddressOpts ([#4910](https://github.com/dynamic-labs/DynamicAuth/issues/4910)) ([e5e4b1b](https://github.com/dynamic-labs/DynamicAuth/commit/e5e4b1b08a4e010afa44f8abb0bf6af7f236a86a))
40
+
2
41
  ## [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
42
 
4
43
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/blocto-evm",
3
- "version": "2.0.0-alpha.10",
3
+ "version": "2.0.0-alpha.12",
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.10",
31
- "@dynamic-labs/wallet-connector-core": "2.0.0-alpha.10"
30
+ "@dynamic-labs/ethereum": "2.0.0-alpha.12",
31
+ "@dynamic-labs/wallet-connector-core": "2.0.0-alpha.12"
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
- fetchPublicAddress() {
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
- fetchPublicAddress(): Promise<`0x${string}` | undefined>;
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
- fetchPublicAddress() {
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
- fetchPublicAddress() {
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.fetchPublicAddress();
112
+ const account = yield this.getAddress();
113
113
  if (!account) {
114
114
  return Promise.resolve(undefined);
115
115
  }
@@ -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
- fetchPublicAddress(): Promise<Hex | undefined>;
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
- fetchPublicAddress() {
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.fetchPublicAddress();
104
+ const account = yield this.getAddress();
105
105
  if (!account) {
106
106
  return Promise.resolve(undefined);
107
107
  }