@quicknode/sdk 2.1.2 → 2.1.3
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/README.md +0 -10
- package/cjs/index.js +6 -0
- package/esm/core/chains.js +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,8 +4,6 @@ A SDK from [QuickNode](https://www.quicknode.com/) making it easy for developers
|
|
|
4
4
|
|
|
5
5
|
QuickNode's SDK is a JavaScript and TypeScript framework-agnostic library that supports both CommonJS and ES module systems.
|
|
6
6
|
|
|
7
|
-
Currently the SDK makes it even easier to use the [QuickNode Graph API](https://www.quicknode.com/graph-api) to query market insights, trading data, transactions by wallets and contracts, cached NFT images, and more!
|
|
8
|
-
|
|
9
7
|
> :grey_question: We want to hear from you! Please take a few minutes to fill out our [QuickNode SDK feedback form](https://forms.gle/vWFXDDjEUySjWUof6) and let us know what you currently think about the SDK. This helps us further improve the SDK.
|
|
10
8
|
|
|
11
9
|
[](https://coveralls.io/github/quiknode-labs/qn-oss?branch=main)
|
|
@@ -80,11 +78,3 @@ API responses are recorded using [polly.js](https://github.com/Netflix/pollyjs).
|
|
|
80
78
|
Run `nx lint libs-sdk` to execute the lint via [ESLint](https://eslint.org/).
|
|
81
79
|
|
|
82
80
|
<br>
|
|
83
|
-
|
|
84
|
-
### Generate graphql codegen typings
|
|
85
|
-
|
|
86
|
-
Generate graphql typings via [Codegen](https://www.the-guild.dev/graphql/codegen).
|
|
87
|
-
|
|
88
|
-
1. navigate to `packages/libs/sdk` from `qn-oss` monorepo root
|
|
89
|
-
1. `cp .env.example .env` and add api key
|
|
90
|
-
1. run `yarn run codegen`
|
package/cjs/index.js
CHANGED
|
@@ -266,8 +266,11 @@ const ETH_MAINNET_NETWORK = 'ethereum-mainnet';
|
|
|
266
266
|
const qnChainToViemChain = {
|
|
267
267
|
'arbitrum-mainnet': chains.arbitrum,
|
|
268
268
|
'arbitrum-goerli': chains.arbitrumGoerli,
|
|
269
|
+
'arbitrum-sepolia': chains.arbitrumSepolia,
|
|
270
|
+
'arbitrum-nova': chains.arbitrumNova,
|
|
269
271
|
'avalanche-mainnet': chains.avalanche,
|
|
270
272
|
'avalanche-testnet': chains.avalancheFuji,
|
|
273
|
+
'base-mainnet': chains.base,
|
|
271
274
|
'base-goerli': chains.baseGoerli,
|
|
272
275
|
'base-sepolia': chains.baseSepolia,
|
|
273
276
|
['bsc']: chains.bsc,
|
|
@@ -281,8 +284,11 @@ const qnChainToViemChain = {
|
|
|
281
284
|
[ETH_MAINNET_NETWORK]: chains.mainnet,
|
|
282
285
|
['optimism']: chains.optimism,
|
|
283
286
|
'optimism-goerli': chains.optimismGoerli,
|
|
287
|
+
'optimism-sepolia': chains.optimismSepolia,
|
|
284
288
|
['matic']: chains.polygon,
|
|
285
289
|
['polygon']: chains.polygon,
|
|
290
|
+
'scroll-mainnet': chains.scroll,
|
|
291
|
+
'scroll-testnet': chains.scrollTestnet,
|
|
286
292
|
'matic-testnet': chains.polygonMumbai,
|
|
287
293
|
'zkevm-mainnet': chains.polygonZkEvm,
|
|
288
294
|
'zkevm-testnet': chains.polygonZkEvmTestnet,
|
package/esm/core/chains.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
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, baseSepolia, bsc, bscTestnet, celo, fantom, gnosis, goerli, harmonyOne, mainnet, optimism, optimismGoerli, polygon, polygonMumbai, polygonZkEvm, polygonZkEvmTestnet, sepolia, holesky } from 'viem/chains';
|
|
3
|
+
import { arbitrum, arbitrumGoerli, arbitrumSepolia, arbitrumNova, avalanche, avalancheFuji, base, baseGoerli, baseSepolia, bsc, bscTestnet, celo, fantom, gnosis, goerli, harmonyOne, mainnet, optimism, optimismGoerli, optimismSepolia, polygon, scroll, scrollTestnet, polygonMumbai, polygonZkEvm, polygonZkEvmTestnet, sepolia, holesky } from 'viem/chains';
|
|
4
4
|
|
|
5
5
|
const ETH_MAINNET_NETWORK = 'ethereum-mainnet';
|
|
6
6
|
const qnChainToViemChain = {
|
|
7
7
|
'arbitrum-mainnet': arbitrum,
|
|
8
8
|
'arbitrum-goerli': arbitrumGoerli,
|
|
9
|
+
'arbitrum-sepolia': arbitrumSepolia,
|
|
10
|
+
'arbitrum-nova': arbitrumNova,
|
|
9
11
|
'avalanche-mainnet': avalanche,
|
|
10
12
|
'avalanche-testnet': avalancheFuji,
|
|
13
|
+
'base-mainnet': base,
|
|
11
14
|
'base-goerli': baseGoerli,
|
|
12
15
|
'base-sepolia': baseSepolia,
|
|
13
16
|
['bsc']: bsc,
|
|
@@ -21,8 +24,11 @@ const qnChainToViemChain = {
|
|
|
21
24
|
[ETH_MAINNET_NETWORK]: mainnet,
|
|
22
25
|
['optimism']: optimism,
|
|
23
26
|
'optimism-goerli': optimismGoerli,
|
|
27
|
+
'optimism-sepolia': optimismSepolia,
|
|
24
28
|
['matic']: polygon,
|
|
25
29
|
['polygon']: polygon,
|
|
30
|
+
'scroll-mainnet': scroll,
|
|
31
|
+
'scroll-testnet': scrollTestnet,
|
|
26
32
|
'matic-testnet': polygonMumbai,
|
|
27
33
|
'zkevm-mainnet': polygonZkEvm,
|
|
28
34
|
'zkevm-testnet': polygonZkEvmTestnet,
|