@dynamic-labs/ethereum-core 3.4.5 → 3.5.0
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 +26 -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,30 @@
|
|
|
1
1
|
|
|
2
|
+
## [3.5.0](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.6...v3.5.0) (2024-11-05)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add support for line social ([61b23fd](https://github.com/dynamic-labs/dynamic-auth/commit/61b23fde9f4b0bc56c1cdc2f7456784931bdb878))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* global connectivity transaction failures and confirmation modal ([#7355](https://github.com/dynamic-labs/DynamicAuth/issues/7355)) ([eb1c5d7](https://github.com/dynamic-labs/DynamicAuth/commit/eb1c5d794df972dfb2f84fdcaa6c581ba68285c0)), closes [#7347](https://github.com/dynamic-labs/DynamicAuth/issues/7347)
|
|
13
|
+
|
|
14
|
+
### [3.4.6](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.5...v3.4.6) (2024-10-31)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* add support for compass and leap wallets ([ab170c9](https://github.com/dynamic-labs/DynamicAuth/commit/ab170c962099ed6356d2f31c947b122f1aa7ec73))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### Bug Fixes
|
|
23
|
+
|
|
24
|
+
* prevent use-wallet-options from reading empty wallet-book ([#7320](https://github.com/dynamic-labs/DynamicAuth/issues/7320)) ([24c6cb1](https://github.com/dynamic-labs/DynamicAuth/commit/24c6cb14ce324925b120d363e029e29b72560895))
|
|
25
|
+
* sats-connect wallets not prompting correctly to sync account when making a transaction ([#7311](https://github.com/dynamic-labs/DynamicAuth/issues/7311)) ([#7312](https://github.com/dynamic-labs/DynamicAuth/issues/7312)) ([2026be4](https://github.com/dynamic-labs/DynamicAuth/commit/2026be412edcbb7e98341a5a5b2a3bd75ffdb83f))
|
|
26
|
+
* update check for wallet provider event listeners support ([#7303](https://github.com/dynamic-labs/DynamicAuth/issues/7303)) ([#7304](https://github.com/dynamic-labs/DynamicAuth/issues/7304)) ([1e91c76](https://github.com/dynamic-labs/DynamicAuth/commit/1e91c767ebe078f63c27884e4a8e7729d49b2114))
|
|
27
|
+
|
|
2
28
|
### [3.4.5](https://github.com/dynamic-labs/DynamicAuth/compare/v3.4.4...v3.4.5) (2024-10-30)
|
|
3
29
|
|
|
4
30
|
|
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": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/dynamic-labs/dynamic-auth.git",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"viem": "^2.7.6",
|
|
33
|
-
"@dynamic-labs/assert-package-version": "3.
|
|
34
|
-
"@dynamic-labs/logger": "3.
|
|
35
|
-
"@dynamic-labs/rpc-providers": "3.
|
|
36
|
-
"@dynamic-labs/types": "3.
|
|
37
|
-
"@dynamic-labs/utils": "3.
|
|
38
|
-
"@dynamic-labs/wallet-book": "3.
|
|
39
|
-
"@dynamic-labs/wallet-connector-core": "3.
|
|
33
|
+
"@dynamic-labs/assert-package-version": "3.5.0",
|
|
34
|
+
"@dynamic-labs/logger": "3.5.0",
|
|
35
|
+
"@dynamic-labs/rpc-providers": "3.5.0",
|
|
36
|
+
"@dynamic-labs/types": "3.5.0",
|
|
37
|
+
"@dynamic-labs/utils": "3.5.0",
|
|
38
|
+
"@dynamic-labs/wallet-book": "3.5.0",
|
|
39
|
+
"@dynamic-labs/wallet-connector-core": "3.5.0"
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -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
|
getPublicClient() {
|
|
22
22
|
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
23
23
|
var _a, _b;
|
|
@@ -283,4 +283,4 @@ class EthWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
exports.
|
|
286
|
+
exports.EthereumWalletConnector = EthereumWalletConnector;
|
|
@@ -11,20 +11,20 @@ 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
|
metadata?: WalletMetadata;
|
|
19
19
|
};
|
|
20
|
-
export declare abstract class
|
|
20
|
+
export declare abstract class EthereumWalletConnector extends WalletConnectorBase<typeof EthereumWallet> implements ISendBalanceWalletConnector {
|
|
21
21
|
ChainWallet: typeof EthereumWallet;
|
|
22
22
|
evmNetworks: EvmNetwork[];
|
|
23
23
|
private activeAccount;
|
|
24
24
|
private activeChain;
|
|
25
25
|
abstract getWalletClient(chainId?: string): WalletClient<Transport, ViemChain, Account> | undefined;
|
|
26
26
|
getPublicClient(): Promise<void | PublicClient<Transport, ViemChain> | undefined>;
|
|
27
|
-
constructor(props:
|
|
27
|
+
constructor(props: EthereumWalletConnectorOpts);
|
|
28
28
|
getNetwork(): Promise<number | undefined>;
|
|
29
29
|
getNameService(address: string): Promise<NameServiceData | undefined>;
|
|
30
30
|
isTestnet(): Promise<boolean>;
|
|
@@ -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
|
getPublicClient() {
|
|
18
18
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19
19
|
var _a, _b;
|
|
@@ -279,4 +279,4 @@ class EthWalletConnector extends WalletConnectorBase {
|
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
export {
|
|
282
|
+
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,
|