@dynamic-labs/ethereum-core 4.0.0-alpha.22 → 4.0.0-alpha.24
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 +14 -0
- package/package.cjs +1 -1
- package/package.js +1 -1
- package/package.json +8 -8
- package/src/connector/{EthWalletConnector.cjs → EthereumWalletConnector.cjs} +2 -2
- package/src/connector/{EthWalletConnector.d.ts → EthereumWalletConnector.d.ts} +3 -3
- package/src/connector/{EthWalletConnector.js → EthereumWalletConnector.js} +2 -2
- package/src/connector/index.d.ts +1 -1
- package/src/connector/isEthWalletConnector/isEthWalletConnector.d.ts +2 -2
- package/src/index.cjs +2 -2
- package/src/index.js +1 -1
- package/src/wallet/EthereumWallet.d.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
1
|
|
|
2
|
+
## [4.0.0-alpha.24](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.23...v4.0.0-alpha.24) (2024-10-31)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* prevent use-wallet-options from reading empty wallet-book ([#7319](https://github.com/dynamic-labs/dynamic-auth/issues/7319)) ([fc1269e](https://github.com/dynamic-labs/dynamic-auth/commit/fc1269ed2b59ee17fc528d24a4d34936eb20c02f))
|
|
8
|
+
|
|
9
|
+
## [4.0.0-alpha.23](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.22...v4.0.0-alpha.23) (2024-10-31)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* allow deletion of embedded wallets ([#7170](https://github.com/dynamic-labs/dynamic-auth/issues/7170)) ([40c5478](https://github.com/dynamic-labs/dynamic-auth/commit/40c54789594ba265a63b24f936da4e72b5b1c5b9))
|
|
15
|
+
|
|
2
16
|
## [4.0.0-alpha.22](https://github.com/dynamic-labs/dynamic-auth/compare/v4.0.0-alpha.21...v4.0.0-alpha.22) (2024-10-30)
|
|
3
17
|
|
|
4
18
|
|
package/package.cjs
CHANGED
package/package.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dynamic-labs/ethereum-core",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.24",
|
|
4
4
|
"description": "Core package for utilities and types for viem",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"viem": "^2.7.6",
|
|
25
|
-
"@dynamic-labs/assert-package-version": "4.0.0-alpha.
|
|
26
|
-
"@dynamic-labs/logger": "4.0.0-alpha.
|
|
27
|
-
"@dynamic-labs/rpc-providers": "4.0.0-alpha.
|
|
28
|
-
"@dynamic-labs/types": "4.0.0-alpha.
|
|
29
|
-
"@dynamic-labs/utils": "4.0.0-alpha.
|
|
30
|
-
"@dynamic-labs/wallet-book": "4.0.0-alpha.
|
|
31
|
-
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.
|
|
25
|
+
"@dynamic-labs/assert-package-version": "4.0.0-alpha.24",
|
|
26
|
+
"@dynamic-labs/logger": "4.0.0-alpha.24",
|
|
27
|
+
"@dynamic-labs/rpc-providers": "4.0.0-alpha.24",
|
|
28
|
+
"@dynamic-labs/types": "4.0.0-alpha.24",
|
|
29
|
+
"@dynamic-labs/utils": "4.0.0-alpha.24",
|
|
30
|
+
"@dynamic-labs/wallet-book": "4.0.0-alpha.24",
|
|
31
|
+
"@dynamic-labs/wallet-connector-core": "4.0.0-alpha.24"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -17,7 +17,7 @@ var findEvmNetwork = require('../utils/findEvmNetwork/findEvmNetwork.cjs');
|
|
|
17
17
|
var getNameservice = require('../utils/getNameservice/getNameservice.cjs');
|
|
18
18
|
var EthereumWallet = require('../wallet/EthereumWallet.cjs');
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class EthereumWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
21
21
|
constructor(props) {
|
|
22
22
|
var _a;
|
|
23
23
|
super(props);
|
|
@@ -296,4 +296,4 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
exports.
|
|
299
|
+
exports.EthereumWalletConnector = EthereumWalletConnector;
|
|
@@ -11,21 +11,21 @@ export type SwitchNetworkOps = {
|
|
|
11
11
|
type EvmRpcMap = {
|
|
12
12
|
[chainId: number]: string;
|
|
13
13
|
};
|
|
14
|
-
export type
|
|
14
|
+
export type EthereumWalletConnectorOpts = {
|
|
15
15
|
chainRpcProviders: IChainRpcProviders;
|
|
16
16
|
evmNetworks: GenericNetwork[];
|
|
17
17
|
walletBook: WalletBookSchema;
|
|
18
18
|
walletUiUtils: WalletUiUtils<InternalWalletConnector>;
|
|
19
19
|
metadata?: WalletMetadata;
|
|
20
20
|
};
|
|
21
|
-
export declare abstract class
|
|
21
|
+
export declare abstract class EthereumWalletConnector extends WalletConnectorBase<typeof EthereumWallet> implements ISendBalanceWalletConnector {
|
|
22
22
|
ChainWallet: typeof EthereumWallet;
|
|
23
23
|
evmNetworks: EvmNetwork[];
|
|
24
24
|
private activeAccount;
|
|
25
25
|
private activeChain;
|
|
26
26
|
private walletUiUtils;
|
|
27
27
|
abstract getWalletClient(chainId?: string): WalletClient<Transport, ViemChain, Account> | undefined;
|
|
28
|
-
constructor(props:
|
|
28
|
+
constructor(props: EthereumWalletConnectorOpts);
|
|
29
29
|
getPublicClient(): Promise<void | PublicClient<Transport, ViemChain> | undefined>;
|
|
30
30
|
getNetwork(): Promise<number | undefined>;
|
|
31
31
|
getNameService(address: string): Promise<NameServiceData | undefined>;
|
|
@@ -13,7 +13,7 @@ import { findEvmNetwork } from '../utils/findEvmNetwork/findEvmNetwork.js';
|
|
|
13
13
|
import { getNameservice } from '../utils/getNameservice/getNameservice.js';
|
|
14
14
|
import { EthereumWallet } from '../wallet/EthereumWallet.js';
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class EthereumWalletConnector extends WalletConnectorBase {
|
|
17
17
|
constructor(props) {
|
|
18
18
|
var _a;
|
|
19
19
|
super(props);
|
|
@@ -292,4 +292,4 @@ class EthWalletConnector extends WalletConnectorBase {
|
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
|
|
295
|
-
export {
|
|
295
|
+
export { EthereumWalletConnector };
|
package/src/connector/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './EthereumWalletConnector';
|
|
2
2
|
export * from './isEthWalletConnector';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { WalletConnector } from '@dynamic-labs/wallet-connector-core';
|
|
2
|
-
import {
|
|
3
|
-
export declare const isEthWalletConnector: (connector: WalletConnector |
|
|
2
|
+
import { EthereumWalletConnector } from '../';
|
|
3
|
+
export declare const isEthWalletConnector: (connector: WalletConnector | EthereumWalletConnector) => connector is EthereumWalletConnector;
|
package/src/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
|
|
6
6
|
var assertPackageVersion = require('@dynamic-labs/assert-package-version');
|
|
7
7
|
var _package = require('../package.cjs');
|
|
8
|
-
var
|
|
8
|
+
var EthereumWalletConnector = require('./connector/EthereumWalletConnector.cjs');
|
|
9
9
|
var isEthWalletConnector = require('./connector/isEthWalletConnector/isEthWalletConnector.cjs');
|
|
10
10
|
require('./rpc/RpcProvidersEthereum/RpcProvidersEthereum.cjs');
|
|
11
11
|
var rpcProviders = require('@dynamic-labs/rpc-providers');
|
|
@@ -29,7 +29,7 @@ var isEthereumWallet = require('./wallet/isEthereumWallet/isEthereumWallet.cjs')
|
|
|
29
29
|
|
|
30
30
|
assertPackageVersion.assertPackageVersion('@dynamic-labs/ethereum-core', _package.version);
|
|
31
31
|
|
|
32
|
-
exports.
|
|
32
|
+
exports.EthereumWalletConnector = EthereumWalletConnector.EthereumWalletConnector;
|
|
33
33
|
exports.isEthWalletConnector = isEthWalletConnector.isEthWalletConnector;
|
|
34
34
|
exports.evmProvidersSelector = evmProvidersSelector.evmProvidersSelector;
|
|
35
35
|
exports.ViemRpcUiTransaction = ViemRpcUiTransaction.ViemRpcUiTransaction;
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client'
|
|
2
2
|
import { assertPackageVersion } from '@dynamic-labs/assert-package-version';
|
|
3
3
|
import { version } from '../package.js';
|
|
4
|
-
export {
|
|
4
|
+
export { EthereumWalletConnector } from './connector/EthereumWalletConnector.js';
|
|
5
5
|
export { isEthWalletConnector } from './connector/isEthWalletConnector/isEthWalletConnector.js';
|
|
6
6
|
import './rpc/RpcProvidersEthereum/RpcProvidersEthereum.js';
|
|
7
7
|
export * from '@dynamic-labs/rpc-providers';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Account, Chain, PublicClient, Transport, WalletClient } from 'viem';
|
|
2
2
|
import { Wallet } from '@dynamic-labs/wallet-connector-core';
|
|
3
|
-
import {
|
|
4
|
-
export declare class EthereumWallet extends Wallet<
|
|
3
|
+
import { EthereumWalletConnector } from '../connector';
|
|
4
|
+
export declare class EthereumWallet extends Wallet<EthereumWalletConnector> {
|
|
5
5
|
/**
|
|
6
6
|
* Retrieves the public client.
|
|
7
7
|
* @returns A promise that resolves to the public client,
|