@dynamic-labs/ethereum 3.0.0-alpha.45 → 3.0.0-alpha.46

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,19 @@
1
1
 
2
+ ## [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)
3
+
4
+
5
+ ### Features
6
+
7
+ * add overrides for chain info ([#6614](https://github.com/dynamic-labs/DynamicAuth/issues/6614)) ([07b76a0](https://github.com/dynamic-labs/DynamicAuth/commit/07b76a0887d3147a00d93a37bdf49a83bfec0ceb))
8
+ * 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))
9
+ * refresh token balances ([#6578](https://github.com/dynamic-labs/DynamicAuth/issues/6578)) ([0768857](https://github.com/dynamic-labs/DynamicAuth/commit/0768857c924ce0e01b736173e50ea85b956ab067))
10
+
11
+
12
+ ### Bug Fixes
13
+
14
+ * createEmbeddedWalletAccount ([#6642](https://github.com/dynamic-labs/DynamicAuth/issues/6642)) ([bce08de](https://github.com/dynamic-labs/DynamicAuth/commit/bce08deaa4a5e1ea0b134efb5c4d252c82af5eec))
15
+ * 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))
16
+
2
17
  ## [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
18
 
4
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/ethereum",
3
- "version": "3.0.0-alpha.45",
3
+ "version": "3.0.0-alpha.46",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
@@ -31,13 +31,13 @@
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.45",
35
- "@dynamic-labs/rpc-provider-ethereum": "3.0.0-alpha.45",
36
- "@dynamic-labs/types": "3.0.0-alpha.45",
37
- "@dynamic-labs/utils": "3.0.0-alpha.45",
38
- "@dynamic-labs/viem-utils": "3.0.0-alpha.45",
39
- "@dynamic-labs/wallet-book": "3.0.0-alpha.45",
40
- "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.45",
34
+ "@dynamic-labs/embedded-wallet-evm": "3.0.0-alpha.46",
35
+ "@dynamic-labs/rpc-provider-ethereum": "3.0.0-alpha.46",
36
+ "@dynamic-labs/types": "3.0.0-alpha.46",
37
+ "@dynamic-labs/utils": "3.0.0-alpha.46",
38
+ "@dynamic-labs/viem-utils": "3.0.0-alpha.46",
39
+ "@dynamic-labs/wallet-book": "3.0.0-alpha.46",
40
+ "@dynamic-labs/wallet-connector-core": "3.0.0-alpha.46",
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 };