@dynamic-labs/ethereum-core 4.5.1 → 4.5.2
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
|
+
### [4.5.2](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.1...v4.5.2) (2025-02-08)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
* add getEnabledNetworks method to wallet connectors ([#8000](https://github.com/dynamic-labs/dynamic-auth/issues/8000)) ([450cdcd](https://github.com/dynamic-labs/dynamic-auth/commit/450cdcd98b11c734fb9c9d97bb1813cf5538e85e))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* add fallback for exchange rate lookup failure ([#7994](https://github.com/dynamic-labs/dynamic-auth/issues/7994)) ([1359724](https://github.com/dynamic-labs/dynamic-auth/commit/1359724ec2931c61324bfe8d73110d862ebc016f))
|
|
13
|
+
* add USDT and USDC as hardcoded to 1 ([#8012](https://github.com/dynamic-labs/dynamic-auth/issues/8012)) ([92dcd2f](https://github.com/dynamic-labs/dynamic-auth/commit/92dcd2f6a90e8eeca034edf1682336896180281e))
|
|
14
|
+
* underflow bigint issue with small sol transfers ([#8006](https://github.com/dynamic-labs/dynamic-auth/issues/8006)) ([3fd00c2](https://github.com/dynamic-labs/dynamic-auth/commit/3fd00c2f0d0e10333f0206cb80197375de836003))
|
|
15
|
+
* view address react 17 compatibility ([#8002](https://github.com/dynamic-labs/dynamic-auth/issues/8002)) ([782e0f3](https://github.com/dynamic-labs/dynamic-auth/commit/782e0f323f388cac1d0773420ae45595aa806c26))
|
|
16
|
+
|
|
2
17
|
### [4.5.1](https://github.com/dynamic-labs/dynamic-auth/compare/v4.5.0...v4.5.1) (2025-02-05)
|
|
3
18
|
|
|
4
19
|
|
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.5.
|
|
3
|
+
"version": "4.5.2",
|
|
4
4
|
"description": "Core package for utilities and types for viem",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,14 +18,14 @@
|
|
|
18
18
|
},
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@dynamic-labs/sdk-api-core": "0.0.
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.5.
|
|
23
|
-
"@dynamic-labs/logger": "4.5.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.5.
|
|
25
|
-
"@dynamic-labs/types": "4.5.
|
|
26
|
-
"@dynamic-labs/utils": "4.5.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.5.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.5.
|
|
21
|
+
"@dynamic-labs/sdk-api-core": "0.0.613",
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.5.2",
|
|
23
|
+
"@dynamic-labs/logger": "4.5.2",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.5.2",
|
|
25
|
+
"@dynamic-labs/types": "4.5.2",
|
|
26
|
+
"@dynamic-labs/utils": "4.5.2",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.5.2",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.5.2"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"viem": "^2.21.55"
|
|
@@ -303,6 +303,9 @@ class EthereumWalletConnector extends walletConnectorCore.WalletConnectorBase {
|
|
|
303
303
|
return ((_b = (_a = this.evmNetworks.find((network) => network.chainId.toString() === (currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.toString()))) === null || _a === void 0 ? void 0 : _a.blockExplorerUrls) !== null && _b !== void 0 ? _b : []);
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
|
+
getEnabledNetworks() {
|
|
307
|
+
return this.evmNetworks;
|
|
308
|
+
}
|
|
306
309
|
}
|
|
307
310
|
|
|
308
311
|
exports.EthereumWalletConnector = EthereumWalletConnector;
|
|
@@ -7712,5 +7712,6 @@ export declare abstract class EthereumWalletConnector extends WalletConnectorBas
|
|
|
7712
7712
|
createUiTransaction(from: string): Promise<IUITransaction>;
|
|
7713
7713
|
confirmTransactionStatus(txHash: string): Promise<TransactionReceipt>;
|
|
7714
7714
|
getBlockExplorerUrlsForCurrentNetwork(): Promise<string[]>;
|
|
7715
|
+
getEnabledNetworks(): GenericNetwork[];
|
|
7715
7716
|
}
|
|
7716
7717
|
export {};
|
|
@@ -299,6 +299,9 @@ class EthereumWalletConnector extends WalletConnectorBase {
|
|
|
299
299
|
return ((_b = (_a = this.evmNetworks.find((network) => network.chainId.toString() === (currentNetwork === null || currentNetwork === void 0 ? void 0 : currentNetwork.toString()))) === null || _a === void 0 ? void 0 : _a.blockExplorerUrls) !== null && _b !== void 0 ? _b : []);
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
+
getEnabledNetworks() {
|
|
303
|
+
return this.evmNetworks;
|
|
304
|
+
}
|
|
302
305
|
}
|
|
303
306
|
|
|
304
307
|
export { EthereumWalletConnector };
|