@dynamic-labs/ethereum-core 4.100.3 → 4.100.4
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,14 @@
|
|
|
1
1
|
|
|
2
|
+
### [4.100.4](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.3...v4.100.4) (2026-10-08)
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **embedded-webview:** connect Coinbase Wallet via a real popup window [V4 backport] ([#12429](https://github.com/dynamic-labs/dynamic-auth/issues/12429)) ([82368fd](https://github.com/dynamic-labs/dynamic-auth/commit/82368fd41791e3a6e2ffec4dc6a0b401a7bec82f))
|
|
8
|
+
* **rpc-providers:** skip networks without an RPC URL instead of throwing [v4 backport] ([#12431](https://github.com/dynamic-labs/dynamic-auth/issues/12431)) ([95f05c5](https://github.com/dynamic-labs/dynamic-auth/commit/95f05c5c0c5195cc02f4dbc9969e90fc2e41eae0))
|
|
9
|
+
* unblock v4 CI (Playwright password/sign-message tests, shell-quote critical advisory) [V4 backport] ([#12475](https://github.com/dynamic-labs/dynamic-auth/issues/12475)) ([c4ad2ba](https://github.com/dynamic-labs/dynamic-auth/commit/c4ad2ba52a5d329a6b324b27c4ccfb3b48970223)), closes [#12468](https://github.com/dynamic-labs/dynamic-auth/issues/12468) [#1936](https://github.com/dynamic-labs/dynamic-auth/issues/1936) [#12476](https://github.com/dynamic-labs/dynamic-auth/issues/12476)
|
|
10
|
+
* **waas:** fall back when crypto.randomUUID is unavailable (v4 backport) ([#12436](https://github.com/dynamic-labs/dynamic-auth/issues/12436)) ([c72781e](https://github.com/dynamic-labs/dynamic-auth/commit/c72781ebf4269b356a98f3fc167bbd643a601bfd))
|
|
11
|
+
|
|
2
12
|
### [4.100.3](https://github.com/dynamic-labs/dynamic-auth/compare/v4.100.2...v4.100.3) (2026-09-18)
|
|
3
13
|
|
|
4
14
|
|
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.100.
|
|
3
|
+
"version": "4.100.4",
|
|
4
4
|
"description": "Core package for utilities and types for viem",
|
|
5
5
|
"author": "Dynamic Labs, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"homepage": "https://www.dynamic.xyz/",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@dynamic-labs/sdk-api-core": "0.40.0",
|
|
22
|
-
"@dynamic-labs/assert-package-version": "4.100.
|
|
23
|
-
"@dynamic-labs/logger": "4.100.
|
|
24
|
-
"@dynamic-labs/rpc-providers": "4.100.
|
|
25
|
-
"@dynamic-labs/types": "4.100.
|
|
26
|
-
"@dynamic-labs/utils": "4.100.
|
|
27
|
-
"@dynamic-labs/wallet-book": "4.100.
|
|
28
|
-
"@dynamic-labs/wallet-connector-core": "4.100.
|
|
22
|
+
"@dynamic-labs/assert-package-version": "4.100.4",
|
|
23
|
+
"@dynamic-labs/logger": "4.100.4",
|
|
24
|
+
"@dynamic-labs/rpc-providers": "4.100.4",
|
|
25
|
+
"@dynamic-labs/types": "4.100.4",
|
|
26
|
+
"@dynamic-labs/utils": "4.100.4",
|
|
27
|
+
"@dynamic-labs/wallet-book": "4.100.4",
|
|
28
|
+
"@dynamic-labs/wallet-connector-core": "4.100.4"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"viem": "^2.45.3"
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
var viem = require('viem');
|
|
5
5
|
var rpcProviders = require('@dynamic-labs/rpc-providers');
|
|
6
6
|
var utils = require('@dynamic-labs/utils');
|
|
7
|
+
var logger = require('../../utils/logger.cjs');
|
|
7
8
|
var getOrMapViemChain = require('../../utils/viem/getOrMapViemChain/getOrMapViemChain.cjs');
|
|
8
9
|
|
|
9
10
|
rpcProviders.ChainRpcProviders.getEvmProviderByChainId = (rpcProviders, chainId) => {
|
|
@@ -18,9 +19,14 @@ rpcProviders.ChainRpcProviders.registerEvmProviders = (providersConfig) => {
|
|
|
18
19
|
rpcProviders.ChainRpcProviders.registerChainProviders(rpcProviders.ProviderChain.EVM, (config) => {
|
|
19
20
|
const rpcProviders = {};
|
|
20
21
|
if (config === null || config === void 0 ? void 0 : config['evm']) {
|
|
21
|
-
rpcProviders.evm = utils.parseEvmNetworks(config['evm'])
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
rpcProviders.evm = utils.parseEvmNetworks(config['evm'])
|
|
23
|
+
.map((network) => {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
const rpcUrl = ((_a = network.privateCustomerRpcUrls) === null || _a === void 0 ? void 0 : _a[0]) || ((_b = network.rpcUrls) === null || _b === void 0 ? void 0 : _b[0]);
|
|
26
|
+
if (!rpcUrl) {
|
|
27
|
+
logger.logger.warn(`Skipping EVM provider registration for chain ${network.chainId}: no RPC URL configured`);
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
24
30
|
const provider = viem.createPublicClient({
|
|
25
31
|
chain: getOrMapViemChain.getOrMapViemChain(network),
|
|
26
32
|
transport: viem.http(rpcUrl, providersConfig === null || providersConfig === void 0 ? void 0 : providersConfig.httpTransportConfig),
|
|
@@ -30,7 +36,8 @@ rpcProviders.ChainRpcProviders.registerEvmProviders = (providersConfig) => {
|
|
|
30
36
|
chainName: network.name,
|
|
31
37
|
provider,
|
|
32
38
|
};
|
|
33
|
-
})
|
|
39
|
+
})
|
|
40
|
+
.filter((rpcProvider) => rpcProvider !== undefined);
|
|
34
41
|
}
|
|
35
42
|
return rpcProviders.evm;
|
|
36
43
|
});
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { createPublicClient, http } from 'viem';
|
|
3
3
|
import { ChainRpcProviders, ProviderChain } from '@dynamic-labs/rpc-providers';
|
|
4
4
|
import { parseEvmNetworks } from '@dynamic-labs/utils';
|
|
5
|
+
import { logger } from '../../utils/logger.js';
|
|
5
6
|
import { getOrMapViemChain } from '../../utils/viem/getOrMapViemChain/getOrMapViemChain.js';
|
|
6
7
|
|
|
7
8
|
ChainRpcProviders.getEvmProviderByChainId = (rpcProviders, chainId) => {
|
|
@@ -16,9 +17,14 @@ ChainRpcProviders.registerEvmProviders = (providersConfig) => {
|
|
|
16
17
|
ChainRpcProviders.registerChainProviders(ProviderChain.EVM, (config) => {
|
|
17
18
|
const rpcProviders = {};
|
|
18
19
|
if (config === null || config === void 0 ? void 0 : config['evm']) {
|
|
19
|
-
rpcProviders.evm = parseEvmNetworks(config['evm'])
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
rpcProviders.evm = parseEvmNetworks(config['evm'])
|
|
21
|
+
.map((network) => {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
const rpcUrl = ((_a = network.privateCustomerRpcUrls) === null || _a === void 0 ? void 0 : _a[0]) || ((_b = network.rpcUrls) === null || _b === void 0 ? void 0 : _b[0]);
|
|
24
|
+
if (!rpcUrl) {
|
|
25
|
+
logger.warn(`Skipping EVM provider registration for chain ${network.chainId}: no RPC URL configured`);
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
22
28
|
const provider = createPublicClient({
|
|
23
29
|
chain: getOrMapViemChain(network),
|
|
24
30
|
transport: http(rpcUrl, providersConfig === null || providersConfig === void 0 ? void 0 : providersConfig.httpTransportConfig),
|
|
@@ -28,7 +34,8 @@ ChainRpcProviders.registerEvmProviders = (providersConfig) => {
|
|
|
28
34
|
chainName: network.name,
|
|
29
35
|
provider,
|
|
30
36
|
};
|
|
31
|
-
})
|
|
37
|
+
})
|
|
38
|
+
.filter((rpcProvider) => rpcProvider !== undefined);
|
|
32
39
|
}
|
|
33
40
|
return rpcProviders.evm;
|
|
34
41
|
});
|