@quicknode/sdk 2.0.0 → 2.1.1
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/cjs/index.js +1 -0
- package/esm/core/chains.js +2 -1
- package/package.json +3 -2
package/cjs/index.js
CHANGED
|
@@ -286,6 +286,7 @@ const qnChainToViemChain = {
|
|
|
286
286
|
'zkevm-mainnet': chains.polygonZkEvm,
|
|
287
287
|
'zkevm-testnet': chains.polygonZkEvmTestnet,
|
|
288
288
|
'ethereum-sepolia': chains.sepolia,
|
|
289
|
+
'ethereum-holesky': chains.holesky,
|
|
289
290
|
};
|
|
290
291
|
function chainNameFromEndpoint(endpointUrl) {
|
|
291
292
|
let hostnameParts;
|
package/esm/core/chains.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { QNInvalidEndpointUrl } from '../lib/errors/QNInvalidEnpointUrl.js';
|
|
2
2
|
import { QNChainNotSupported } from '../lib/errors/QNChainNotSupported.js';
|
|
3
|
-
import { arbitrum, arbitrumGoerli, avalanche, avalancheFuji, baseGoerli, bsc, bscTestnet, celo, fantom, gnosis, goerli, harmonyOne, mainnet, optimism, optimismGoerli, polygon, polygonMumbai, polygonZkEvm, polygonZkEvmTestnet, sepolia } from 'viem/chains';
|
|
3
|
+
import { arbitrum, arbitrumGoerli, avalanche, avalancheFuji, baseGoerli, bsc, bscTestnet, celo, fantom, gnosis, goerli, harmonyOne, mainnet, optimism, optimismGoerli, polygon, polygonMumbai, polygonZkEvm, polygonZkEvmTestnet, sepolia, holesky } from 'viem/chains';
|
|
4
4
|
|
|
5
5
|
const ETH_MAINNET_NETWORK = 'ethereum-mainnet';
|
|
6
6
|
const qnChainToViemChain = {
|
|
@@ -26,6 +26,7 @@ const qnChainToViemChain = {
|
|
|
26
26
|
'zkevm-mainnet': polygonZkEvm,
|
|
27
27
|
'zkevm-testnet': polygonZkEvmTestnet,
|
|
28
28
|
'ethereum-sepolia': sepolia,
|
|
29
|
+
'ethereum-holesky': holesky,
|
|
29
30
|
};
|
|
30
31
|
function chainNameFromEndpoint(endpointUrl) {
|
|
31
32
|
let hostnameParts;
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"directory": "packages/libs/sdk"
|
|
7
7
|
},
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"version": "2.
|
|
9
|
+
"version": "2.1.1",
|
|
10
10
|
"main": "./cjs/index.js",
|
|
11
11
|
"module": "./esm/index.js",
|
|
12
12
|
"types": "./index.d.ts",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"exports": {
|
|
34
34
|
".": {
|
|
35
35
|
"import": "./esm/index.js",
|
|
36
|
-
"require": "./cjs/index.js"
|
|
36
|
+
"require": "./cjs/index.js",
|
|
37
|
+
"types": "./index.d.ts"
|
|
37
38
|
},
|
|
38
39
|
"./core": {
|
|
39
40
|
"import": "./esm/core/index.js",
|