@dynamic-labs/ethereum 3.0.0-alpha.45 → 3.0.0-alpha.47
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 +40 -0
- package/package.json +9 -9
- package/src/EthWalletConnector.cjs +14 -0
- package/src/EthWalletConnector.d.ts +2 -1
- package/src/EthWalletConnector.js +14 -0
- package/src/utils/L2ResolverAbi.cjs +1287 -0
- package/src/utils/L2ResolverAbi.d.ts +993 -0
- package/src/utils/L2ResolverAbi.js +1285 -0
- package/src/utils/getNameservice.cjs +30 -10
- package/src/utils/getNameservice.js +30 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,44 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.0.0-alpha.47](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.46...v3.0.0-alpha.47) (2024-08-21)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### ⚠ BREAKING CHANGES
|
|
6
|
+
|
|
7
|
+
* rename useSelectWalletOption to useWalletOptions (#6616)
|
|
8
|
+
* stop exposing walletConnectorOptions from dynamic context (#6622)
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* add support for base.eth ens resolution ([#6655](https://github.com/dynamic-labs/DynamicAuth/issues/6655)) ([e2fb1c0](https://github.com/dynamic-labs/DynamicAuth/commit/e2fb1c0ca8410e85b7464d032abc6686bd46149f))
|
|
13
|
+
* expose wallet options from useWalletOptions hook ([#6624](https://github.com/dynamic-labs/DynamicAuth/issues/6624)) ([7287359](https://github.com/dynamic-labs/DynamicAuth/commit/7287359d1564564b87e82bf182edef8ef02c16f1))
|
|
14
|
+
* global wallet chain switching ([#6648](https://github.com/dynamic-labs/DynamicAuth/issues/6648)) ([10179fc](https://github.com/dynamic-labs/DynamicAuth/commit/10179fcddc747977c7dd250abd78bad0ec375f8f))
|
|
15
|
+
* implement Apple Sign-In for mobile ([#6632](https://github.com/dynamic-labs/DynamicAuth/issues/6632)) ([e68b088](https://github.com/dynamic-labs/DynamicAuth/commit/e68b088b1c13c1140b43a6d0c215383455a71a4a))
|
|
16
|
+
* surface mfa rate limit error ([#6658](https://github.com/dynamic-labs/DynamicAuth/issues/6658)) ([5fbcbc2](https://github.com/dynamic-labs/DynamicAuth/commit/5fbcbc2382ebcf2721a308d8e87bc8b2b5cb38cf))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* update bottom nav border radius ([#6651](https://github.com/dynamic-labs/DynamicAuth/issues/6651)) ([79212c2](https://github.com/dynamic-labs/DynamicAuth/commit/79212c26735eb06f31655e8b98a3d9c2c8371489))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
* rename useSelectWalletOption to useWalletOptions ([#6616](https://github.com/dynamic-labs/DynamicAuth/issues/6616)) ([3850dad](https://github.com/dynamic-labs/DynamicAuth/commit/3850dad47f847ace84aadc63a84c4e62f84f7df2))
|
|
25
|
+
* stop exposing walletConnectorOptions from dynamic context ([#6622](https://github.com/dynamic-labs/DynamicAuth/issues/6622)) ([b9da7db](https://github.com/dynamic-labs/DynamicAuth/commit/b9da7dbfc4020913ba3d95ec496811e9d8ee17b8))
|
|
26
|
+
|
|
27
|
+
## [3.0.0-alpha.46](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.45...v3.0.0-alpha.46) (2024-08-19)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* add overrides for chain info ([#6614](https://github.com/dynamic-labs/DynamicAuth/issues/6614)) ([07b76a0](https://github.com/dynamic-labs/DynamicAuth/commit/07b76a0887d3147a00d93a37bdf49a83bfec0ceb))
|
|
33
|
+
* add use token balances state in global store ([#6598](https://github.com/dynamic-labs/DynamicAuth/issues/6598)) ([05baefe](https://github.com/dynamic-labs/DynamicAuth/commit/05baefe7155f197c048557b15240ad93556a8604))
|
|
34
|
+
* refresh token balances ([#6578](https://github.com/dynamic-labs/DynamicAuth/issues/6578)) ([0768857](https://github.com/dynamic-labs/DynamicAuth/commit/0768857c924ce0e01b736173e50ea85b956ab067))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
### Bug Fixes
|
|
38
|
+
|
|
39
|
+
* createEmbeddedWalletAccount ([#6642](https://github.com/dynamic-labs/DynamicAuth/issues/6642)) ([bce08de](https://github.com/dynamic-labs/DynamicAuth/commit/bce08deaa4a5e1ea0b134efb5c4d252c82af5eec))
|
|
40
|
+
* jwt x error when singing with embedded wallet ([#6633](https://github.com/dynamic-labs/DynamicAuth/issues/6633)) ([7d1a6d4](https://github.com/dynamic-labs/DynamicAuth/commit/7d1a6d432807c5b361ff31e6feac2e10d0145d90))
|
|
41
|
+
|
|
2
42
|
## [3.0.0-alpha.45](https://github.com/dynamic-labs/DynamicAuth/compare/v3.0.0-alpha.44...v3.0.0-alpha.45) (2024-08-16)
|
|
3
43
|
|
|
4
44
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum",
|
|
3
|
-
"version": "3.0.0-alpha.
|
|
3
|
+
"version": "3.0.0-alpha.47",
|
|
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
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
29
|
+
"@dynamic-labs/sdk-api-core": "0.0.519",
|
|
30
30
|
"@coinbase/wallet-sdk": "4.0.4",
|
|
31
31
|
"@walletconnect/ethereum-provider": "2.11.2",
|
|
32
32
|
"eventemitter3": "5.0.1",
|
|
33
33
|
"buffer": "6.0.3",
|
|
34
|
-
"@dynamic-labs/embedded-wallet-evm": "3.0.0-alpha.
|
|
35
|
-
"@dynamic-labs/rpc-provider-ethereum": "3.0.0-alpha.
|
|
36
|
-
"@dynamic-labs/types": "3.0.0-alpha.
|
|
37
|
-
"@dynamic-labs/utils": "3.0.0-alpha.
|
|
38
|
-
"@dynamic-labs/viem-utils": "3.0.0-alpha.
|
|
39
|
-
"@dynamic-labs/wallet-book": "3.0.0-alpha.
|
|
40
|
-
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.
|
|
34
|
+
"@dynamic-labs/embedded-wallet-evm": "3.0.0-alpha.47",
|
|
35
|
+
"@dynamic-labs/rpc-provider-ethereum": "3.0.0-alpha.47",
|
|
36
|
+
"@dynamic-labs/types": "3.0.0-alpha.47",
|
|
37
|
+
"@dynamic-labs/utils": "3.0.0-alpha.47",
|
|
38
|
+
"@dynamic-labs/viem-utils": "3.0.0-alpha.47",
|
|
39
|
+
"@dynamic-labs/wallet-book": "3.0.0-alpha.47",
|
|
40
|
+
"@dynamic-labs/wallet-connector-core": "3.0.0-alpha.47",
|
|
41
41
|
"stream": "0.0.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
@@ -231,6 +231,20 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
|
+
confirmTransactionStatus(txHash) {
|
|
235
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
const publicClient = yield this.getPublicClient();
|
|
237
|
+
if (!publicClient) {
|
|
238
|
+
throw new utils.DynamicError('No public client available');
|
|
239
|
+
}
|
|
240
|
+
// The number of confirmations (blocks that have passed) to wait before resolving.
|
|
241
|
+
const confirmations = 3;
|
|
242
|
+
return publicClient.waitForTransactionReceipt({
|
|
243
|
+
confirmations,
|
|
244
|
+
hash: txHash,
|
|
245
|
+
});
|
|
246
|
+
});
|
|
247
|
+
}
|
|
234
248
|
}
|
|
235
249
|
|
|
236
250
|
exports.EthWalletConnector = EthWalletConnector;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Account, Hex, PublicClient, Transport, Chain as ViemChain, WalletClient } from 'viem';
|
|
2
2
|
import { IChainRpcProviders } from '@dynamic-labs/rpc-provider-ethereum';
|
|
3
|
-
import { EvmNetwork, GenericNetwork, IUITransaction } from '@dynamic-labs/types';
|
|
3
|
+
import { EvmNetwork, GenericNetwork, IUITransaction, TransactionReceipt } from '@dynamic-labs/types';
|
|
4
4
|
import { WalletBookSchema } from '@dynamic-labs/wallet-book';
|
|
5
5
|
import { ISendBalanceWalletConnector, NameServiceData, WalletConnectorBase } from '@dynamic-labs/wallet-connector-core';
|
|
6
6
|
export type SwitchNetworkOps = {
|
|
@@ -3082,5 +3082,6 @@ export declare abstract class EthWalletConnector extends WalletConnectorBase imp
|
|
|
3082
3082
|
setActiveChain(chain: ViemChain | undefined): void;
|
|
3083
3083
|
getActiveChain(): ViemChain | undefined;
|
|
3084
3084
|
createUiTransaction(from: string): Promise<IUITransaction>;
|
|
3085
|
+
confirmTransactionStatus(txHash: string): Promise<TransactionReceipt>;
|
|
3085
3086
|
}
|
|
3086
3087
|
export {};
|
|
@@ -227,6 +227,20 @@ class EthWalletConnector extends WalletConnectorBase {
|
|
|
227
227
|
});
|
|
228
228
|
});
|
|
229
229
|
}
|
|
230
|
+
confirmTransactionStatus(txHash) {
|
|
231
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
232
|
+
const publicClient = yield this.getPublicClient();
|
|
233
|
+
if (!publicClient) {
|
|
234
|
+
throw new DynamicError('No public client available');
|
|
235
|
+
}
|
|
236
|
+
// The number of confirmations (blocks that have passed) to wait before resolving.
|
|
237
|
+
const confirmations = 3;
|
|
238
|
+
return publicClient.waitForTransactionReceipt({
|
|
239
|
+
confirmations,
|
|
240
|
+
hash: txHash,
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
}
|
|
230
244
|
}
|
|
231
245
|
|
|
232
246
|
export { EthWalletConnector };
|