viem 2.0.0-rc.3 → 2.0.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 +38 -0
- package/_cjs/actions/getContract.js +6 -6
- package/_cjs/actions/getContract.js.map +1 -1
- package/_cjs/chains/definitions/acala.js +32 -0
- package/_cjs/chains/definitions/acala.js.map +1 -0
- package/_cjs/chains/definitions/bahamut.js +43 -0
- package/_cjs/chains/definitions/bahamut.js.map +1 -0
- package/_cjs/chains/definitions/defichainEvm.js +39 -0
- package/_cjs/chains/definitions/defichainEvm.js.map +1 -0
- package/_cjs/chains/definitions/defichainEvmTestnet.js +40 -0
- package/_cjs/chains/definitions/defichainEvmTestnet.js.map +1 -0
- package/_cjs/chains/definitions/karura.js +32 -0
- package/_cjs/chains/definitions/karura.js.map +1 -0
- package/_cjs/chains/definitions/klaytn.js +1 -1
- package/_cjs/chains/definitions/klaytn.js.map +1 -1
- package/_cjs/chains/definitions/mandala.js +32 -0
- package/_cjs/chains/definitions/mandala.js.map +1 -0
- package/_cjs/chains/definitions/oasisTestnet.js +22 -0
- package/_cjs/chains/definitions/oasisTestnet.js.map +1 -0
- package/_cjs/chains/definitions/opBNBTestnet.js +1 -1
- package/_cjs/chains/definitions/opBNBTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zkFair.js +30 -0
- package/_cjs/chains/definitions/zkFair.js.map +1 -0
- package/_cjs/chains/definitions/zkFairTestnet.js +30 -0
- package/_cjs/chains/definitions/zkFairTestnet.js.map +1 -0
- package/_cjs/chains/index.js +22 -4
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/errors/version.js.map +1 -1
- package/_esm/actions/getContract.js +6 -6
- package/_esm/actions/getContract.js.map +1 -1
- package/_esm/chains/definitions/acala.js +29 -0
- package/_esm/chains/definitions/acala.js.map +1 -0
- package/_esm/chains/definitions/bahamut.js +40 -0
- package/_esm/chains/definitions/bahamut.js.map +1 -0
- package/_esm/chains/definitions/defichainEvm.js +36 -0
- package/_esm/chains/definitions/defichainEvm.js.map +1 -0
- package/_esm/chains/definitions/defichainEvmTestnet.js +37 -0
- package/_esm/chains/definitions/defichainEvmTestnet.js.map +1 -0
- package/_esm/chains/definitions/karura.js +29 -0
- package/_esm/chains/definitions/karura.js.map +1 -0
- package/_esm/chains/definitions/klaytn.js +1 -1
- package/_esm/chains/definitions/klaytn.js.map +1 -1
- package/_esm/chains/definitions/mandala.js +29 -0
- package/_esm/chains/definitions/mandala.js.map +1 -0
- package/_esm/chains/definitions/oasisTestnet.js +19 -0
- package/_esm/chains/definitions/oasisTestnet.js.map +1 -0
- package/_esm/chains/definitions/opBNBTestnet.js +1 -1
- package/_esm/chains/definitions/opBNBTestnet.js.map +1 -1
- package/_esm/chains/definitions/zkFair.js +27 -0
- package/_esm/chains/definitions/zkFair.js.map +1 -0
- package/_esm/chains/definitions/zkFairTestnet.js +27 -0
- package/_esm/chains/definitions/zkFairTestnet.js.map +1 -0
- package/_esm/chains/index.js +9 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/errors/version.js.map +1 -1
- package/_types/actions/getContract.d.ts +12 -9
- package/_types/actions/getContract.d.ts.map +1 -1
- package/_types/chains/definitions/acala.d.ts +40 -0
- package/_types/chains/definitions/acala.d.ts.map +1 -0
- package/_types/chains/definitions/bahamut.d.ts +40 -0
- package/_types/chains/definitions/bahamut.d.ts.map +1 -0
- package/_types/chains/definitions/defichainEvm.d.ts +40 -0
- package/_types/chains/definitions/defichainEvm.d.ts.map +1 -0
- package/_types/chains/definitions/defichainEvmTestnet.d.ts +40 -0
- package/_types/chains/definitions/defichainEvmTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/karura.d.ts +40 -0
- package/_types/chains/definitions/karura.d.ts.map +1 -0
- package/_types/chains/definitions/klaytn.d.ts +1 -1
- package/_types/chains/definitions/mandala.d.ts +40 -0
- package/_types/chains/definitions/mandala.d.ts.map +1 -0
- package/_types/chains/definitions/oasisTestnet.d.ts +38 -0
- package/_types/chains/definitions/oasisTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/opBNBTestnet.d.ts +1 -1
- package/_types/chains/definitions/zkFair.d.ts +38 -0
- package/_types/chains/definitions/zkFair.d.ts.map +1 -0
- package/_types/chains/definitions/zkFairTestnet.d.ts +38 -0
- package/_types/chains/definitions/zkFairTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +9 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/errors/version.d.ts.map +1 -1
- package/actions/getContract.ts +24 -24
- package/chains/definitions/acala.ts +29 -0
- package/chains/definitions/bahamut.ts +40 -0
- package/chains/definitions/defichainEvm.ts +36 -0
- package/chains/definitions/defichainEvmTestnet.ts +37 -0
- package/chains/definitions/karura.ts +29 -0
- package/chains/definitions/klaytn.ts +1 -1
- package/chains/definitions/mandala.ts +29 -0
- package/chains/definitions/oasisTestnet.ts +19 -0
- package/chains/definitions/opBNBTestnet.ts +1 -1
- package/chains/definitions/zkFair.ts +27 -0
- package/chains/definitions/zkFairTestnet.ts +27 -0
- package/chains/index.ts +9 -0
- package/errors/version.ts +1 -1
- package/package.json +1 -1
package/actions/getContract.ts
CHANGED
@@ -72,10 +72,15 @@ type KeyedClient<
|
|
72
72
|
TTransport extends Transport = Transport,
|
73
73
|
TChain extends Chain | undefined = Chain | undefined,
|
74
74
|
TAccount extends Account | undefined = Account | undefined,
|
75
|
-
> =
|
76
|
-
|
77
|
-
|
78
|
-
|
75
|
+
> =
|
76
|
+
| {
|
77
|
+
public?: Client<TTransport, TChain>
|
78
|
+
wallet: Client<TTransport, TChain, TAccount>
|
79
|
+
}
|
80
|
+
| {
|
81
|
+
public: Client<TTransport, TChain>
|
82
|
+
wallet?: Client<TTransport, TChain, TAccount>
|
83
|
+
}
|
79
84
|
|
80
85
|
export type GetContractParameters<
|
81
86
|
TTransport extends Transport = Transport,
|
@@ -84,8 +89,9 @@ export type GetContractParameters<
|
|
84
89
|
TAbi extends Abi | readonly unknown[] = Abi,
|
85
90
|
TClient extends
|
86
91
|
| Client<TTransport, TChain, TAccount>
|
87
|
-
| KeyedClient<TTransport, TChain, TAccount>
|
88
|
-
|
|
92
|
+
| KeyedClient<TTransport, TChain, TAccount> =
|
93
|
+
| Client<TTransport, TChain, TAccount>
|
94
|
+
| KeyedClient<TTransport, TChain, TAccount>,
|
89
95
|
TAddress extends Address = Address,
|
90
96
|
> = {
|
91
97
|
/** Contract ABI */
|
@@ -113,7 +119,7 @@ export type GetContractParameters<
|
|
113
119
|
|
114
120
|
export type GetContractReturnType<
|
115
121
|
TAbi extends Abi | readonly unknown[] = Abi,
|
116
|
-
TClient extends Client | KeyedClient
|
122
|
+
TClient extends Client | KeyedClient = Client | KeyedClient,
|
117
123
|
TAddress extends Address = Address,
|
118
124
|
_EventNames extends string = TAbi extends Abi
|
119
125
|
? Abi extends TAbi
|
@@ -132,14 +138,14 @@ export type GetContractReturnType<
|
|
132
138
|
: string,
|
133
139
|
_Narrowable extends boolean = IsNarrowable<TAbi, Abi>,
|
134
140
|
_PublicClient extends Client | unknown = TClient extends {
|
135
|
-
|
141
|
+
public: Client
|
136
142
|
}
|
137
|
-
? TClient['
|
143
|
+
? TClient['public']
|
138
144
|
: TClient,
|
139
145
|
_WalletClient extends Client | unknown = TClient extends {
|
140
|
-
|
146
|
+
wallet: Client
|
141
147
|
}
|
142
|
-
? TClient['
|
148
|
+
? TClient['wallet']
|
143
149
|
: TClient,
|
144
150
|
> = Prettify<
|
145
151
|
Prettify<
|
@@ -471,15 +477,11 @@ export function getContract<
|
|
471
477
|
TTransport extends Transport,
|
472
478
|
TAddress extends Address,
|
473
479
|
const TAbi extends Abi | readonly unknown[],
|
474
|
-
TChain extends Chain | undefined = Chain | undefined,
|
475
|
-
TAccount extends Account | undefined = Account | undefined,
|
476
480
|
const TClient extends
|
477
481
|
| Client<TTransport, TChain, TAccount>
|
478
|
-
| KeyedClient<TTransport, TChain, TAccount
|
479
|
-
|
480
|
-
|
481
|
-
| KeyedClient<TTransport, TChain, TAccount>
|
482
|
-
| unknown,
|
482
|
+
| KeyedClient<TTransport, TChain, TAccount>,
|
483
|
+
TChain extends Chain | undefined = Chain | undefined,
|
484
|
+
TAccount extends Account | undefined = Account | undefined,
|
483
485
|
>({
|
484
486
|
abi,
|
485
487
|
address,
|
@@ -498,12 +500,10 @@ export function getContract<
|
|
498
500
|
|
499
501
|
const [publicClient, walletClient] = (() => {
|
500
502
|
if (!client) return [undefined, undefined]
|
501
|
-
if ('
|
502
|
-
return [client.
|
503
|
-
if ('
|
504
|
-
|
505
|
-
if ('walletClient' in client)
|
506
|
-
return [undefined, client.walletClient as Client]
|
503
|
+
if ('public' in client && 'wallet' in client)
|
504
|
+
return [client.public as Client, client.wallet as Client]
|
505
|
+
if ('public' in client) return [client.public as Client, undefined]
|
506
|
+
if ('wallet' in client) return [undefined, client.wallet as Client]
|
507
507
|
return [client, client]
|
508
508
|
})()
|
509
509
|
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const acala = /*#__PURE__*/ defineChain({
|
4
|
+
id: 787,
|
5
|
+
name: 'Acala',
|
6
|
+
network: 'acala',
|
7
|
+
nativeCurrency: {
|
8
|
+
name: 'Acala',
|
9
|
+
symbol: 'ACA',
|
10
|
+
decimals: 18,
|
11
|
+
},
|
12
|
+
rpcUrls: {
|
13
|
+
public: {
|
14
|
+
http: ['https://eth-rpc-acala.aca-api.network'],
|
15
|
+
webSocket: ['wss://eth-rpc-acala.aca-api.network'],
|
16
|
+
},
|
17
|
+
default: {
|
18
|
+
http: ['https://eth-rpc-acala.aca-api.network'],
|
19
|
+
webSocket: ['wss://eth-rpc-acala.aca-api.network'],
|
20
|
+
},
|
21
|
+
},
|
22
|
+
blockExplorers: {
|
23
|
+
default: {
|
24
|
+
name: 'Acala Blockscout',
|
25
|
+
url: 'https://blockscout.acala.network',
|
26
|
+
},
|
27
|
+
},
|
28
|
+
testnet: false,
|
29
|
+
})
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const bahamut = /*#__PURE__*/ defineChain({
|
4
|
+
id: 5165,
|
5
|
+
network: 'bahamut',
|
6
|
+
name: 'Bahamut',
|
7
|
+
nativeCurrency: { name: 'Fasttoken', symbol: 'FTN', decimals: 18 },
|
8
|
+
rpcUrls: {
|
9
|
+
default: {
|
10
|
+
http: [
|
11
|
+
'https://rpc1.bahamut.io',
|
12
|
+
'https://bahamut.publicnode.com',
|
13
|
+
'https://rpc2.bahamut.io',
|
14
|
+
],
|
15
|
+
webSocket: [
|
16
|
+
'wss://ws1.sahara.bahamutchain.com',
|
17
|
+
'wss://bahamut.publicnode.com',
|
18
|
+
'wss://ws2.sahara.bahamutchain.com',
|
19
|
+
],
|
20
|
+
},
|
21
|
+
public: {
|
22
|
+
http: [
|
23
|
+
'https://rpc1.bahamut.io',
|
24
|
+
'https://bahamut.publicnode.com',
|
25
|
+
'https://rpc2.bahamut.io',
|
26
|
+
],
|
27
|
+
webSocket: [
|
28
|
+
'wss://ws1.sahara.bahamutchain.com',
|
29
|
+
'wss://bahamut.publicnode.com',
|
30
|
+
'wss://ws2.sahara.bahamutchain.com',
|
31
|
+
],
|
32
|
+
},
|
33
|
+
},
|
34
|
+
blockExplorers: {
|
35
|
+
default: {
|
36
|
+
name: 'Ftnscan',
|
37
|
+
url: 'https://www.ftnscan.com',
|
38
|
+
},
|
39
|
+
},
|
40
|
+
})
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const defichainEvm = /*#__PURE__*/ defineChain({
|
4
|
+
id: 1130,
|
5
|
+
network: 'defichain-evm',
|
6
|
+
name: 'DeFiChain EVM Mainnet',
|
7
|
+
nativeCurrency: {
|
8
|
+
name: 'DeFiChain',
|
9
|
+
symbol: 'DFI',
|
10
|
+
decimals: 8,
|
11
|
+
},
|
12
|
+
rpcUrls: {
|
13
|
+
default: {
|
14
|
+
http: ['https://eth.mainnet.ocean.jellyfishsdk.com'],
|
15
|
+
},
|
16
|
+
public: {
|
17
|
+
http: ['https://eth.mainnet.ocean.jellyfishsdk.com'],
|
18
|
+
},
|
19
|
+
},
|
20
|
+
blockExplorers: {
|
21
|
+
default: {
|
22
|
+
name: 'DeFiScan',
|
23
|
+
url: 'https://meta.defiscan.live',
|
24
|
+
},
|
25
|
+
blockscout: {
|
26
|
+
name: 'Blockscout',
|
27
|
+
url: 'https://blockscout.mainnet.ocean.jellyfishsdk.com',
|
28
|
+
},
|
29
|
+
},
|
30
|
+
contracts: {
|
31
|
+
multicall3: {
|
32
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
33
|
+
blockCreated: 137852,
|
34
|
+
},
|
35
|
+
},
|
36
|
+
})
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const defichainEvmTestnet = /*#__PURE__*/ defineChain({
|
4
|
+
id: 1131,
|
5
|
+
network: 'defichain-evm-testnet',
|
6
|
+
name: 'DeFiChain EVM Testnet',
|
7
|
+
nativeCurrency: {
|
8
|
+
name: 'DeFiChain',
|
9
|
+
symbol: 'DFI',
|
10
|
+
decimals: 8,
|
11
|
+
},
|
12
|
+
rpcUrls: {
|
13
|
+
default: {
|
14
|
+
http: ['https://eth.testnet.ocean.jellyfishsdk.com'],
|
15
|
+
},
|
16
|
+
public: {
|
17
|
+
http: ['https://eth.testnet.ocean.jellyfishsdk.com'],
|
18
|
+
},
|
19
|
+
},
|
20
|
+
blockExplorers: {
|
21
|
+
default: {
|
22
|
+
name: 'DeFiScan',
|
23
|
+
url: 'https://meta.defiscan.live/?network=TestNet',
|
24
|
+
},
|
25
|
+
blockscout: {
|
26
|
+
name: 'Blockscout',
|
27
|
+
url: 'https://blockscout.testnet.ocean.jellyfishsdk.com',
|
28
|
+
},
|
29
|
+
},
|
30
|
+
contracts: {
|
31
|
+
multicall3: {
|
32
|
+
address: '0xcA11bde05977b3631167028862bE2a173976CA11',
|
33
|
+
blockCreated: 156462,
|
34
|
+
},
|
35
|
+
},
|
36
|
+
testnet: true,
|
37
|
+
})
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const karura = /*#__PURE__*/ defineChain({
|
4
|
+
id: 686,
|
5
|
+
name: 'Karura',
|
6
|
+
network: 'karura',
|
7
|
+
nativeCurrency: {
|
8
|
+
name: 'Karura',
|
9
|
+
symbol: 'KAR',
|
10
|
+
decimals: 18,
|
11
|
+
},
|
12
|
+
rpcUrls: {
|
13
|
+
public: {
|
14
|
+
http: ['https://eth-rpc-karura.aca-api.network'],
|
15
|
+
webSocket: ['wss://eth-rpc-karura.aca-api.network'],
|
16
|
+
},
|
17
|
+
default: {
|
18
|
+
http: ['https://eth-rpc-karura.aca-api.network'],
|
19
|
+
webSocket: ['wss://eth-rpc-karura.aca-api.network'],
|
20
|
+
},
|
21
|
+
},
|
22
|
+
blockExplorers: {
|
23
|
+
default: {
|
24
|
+
name: 'Karura Blockscout',
|
25
|
+
url: 'https://blockscout.karura.network',
|
26
|
+
},
|
27
|
+
},
|
28
|
+
testnet: false,
|
29
|
+
})
|
@@ -9,7 +9,7 @@ export const klaytn = /*#__PURE__*/ defineChain({
|
|
9
9
|
symbol: 'KLAY',
|
10
10
|
},
|
11
11
|
rpcUrls: {
|
12
|
-
default: { http: ['https://cypress.
|
12
|
+
default: { http: ['https://public-en-cypress.klaytn.net'] },
|
13
13
|
},
|
14
14
|
blockExplorers: {
|
15
15
|
default: { name: 'KlaytnScope', url: 'https://scope.klaytn.com' },
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const mandala = /*#__PURE__*/ defineChain({
|
4
|
+
id: 595,
|
5
|
+
name: 'Mandala TC9',
|
6
|
+
network: 'mandala',
|
7
|
+
nativeCurrency: {
|
8
|
+
name: 'Mandala',
|
9
|
+
symbol: 'mACA',
|
10
|
+
decimals: 18,
|
11
|
+
},
|
12
|
+
rpcUrls: {
|
13
|
+
public: {
|
14
|
+
http: ['https://eth-rpc-tc9.aca-staging.network'],
|
15
|
+
webSocket: ['wss://eth-rpc-tc9.aca-staging.network'],
|
16
|
+
},
|
17
|
+
default: {
|
18
|
+
http: ['https://eth-rpc-tc9.aca-staging.network'],
|
19
|
+
webSocket: ['wss://eth-rpc-tc9.aca-staging.network'],
|
20
|
+
},
|
21
|
+
},
|
22
|
+
blockExplorers: {
|
23
|
+
default: {
|
24
|
+
name: 'Mandala Blockscout',
|
25
|
+
url: 'https://blockscout.mandala.aca-staging.network',
|
26
|
+
},
|
27
|
+
},
|
28
|
+
testnet: true,
|
29
|
+
})
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const oasisTestnet = /*#__PURE__*/ defineChain({
|
4
|
+
id: 4090,
|
5
|
+
network: 'oasis-testnet',
|
6
|
+
name: 'Oasis Testnet',
|
7
|
+
nativeCurrency: { name: 'Fasttoken', symbol: 'FTN', decimals: 18 },
|
8
|
+
rpcUrls: {
|
9
|
+
default: { http: ['https://rpc1.oasis.bahamutchain.com'] },
|
10
|
+
public: { http: ['https://rpc1.oasis.bahamutchain.com'] },
|
11
|
+
},
|
12
|
+
blockExplorers: {
|
13
|
+
default: {
|
14
|
+
name: 'Ftnscan',
|
15
|
+
url: 'https://oasis.ftnscan.com',
|
16
|
+
},
|
17
|
+
},
|
18
|
+
testnet: true,
|
19
|
+
})
|
@@ -12,7 +12,7 @@ export const opBNBTestnet = /*#__PURE__*/ defineChain({
|
|
12
12
|
default: { http: ['https://opbnb-testnet-rpc.bnbchain.org'] },
|
13
13
|
},
|
14
14
|
blockExplorers: {
|
15
|
-
default: { name: 'opbnbscan', url: 'https://opbnbscan.com' },
|
15
|
+
default: { name: 'opbnbscan', url: 'https://testnet.opbnbscan.com' },
|
16
16
|
},
|
17
17
|
contracts: {
|
18
18
|
multicall3: {
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const zkFair = /*#__PURE__*/ defineChain({
|
4
|
+
id: 42766,
|
5
|
+
name: 'ZKFair Mainnet',
|
6
|
+
network: 'zkfair-mainnet',
|
7
|
+
nativeCurrency: {
|
8
|
+
decimals: 18,
|
9
|
+
name: 'USD Coin',
|
10
|
+
symbol: 'USDC',
|
11
|
+
},
|
12
|
+
rpcUrls: {
|
13
|
+
default: {
|
14
|
+
http: ['https://rpc.zkfair.io'],
|
15
|
+
},
|
16
|
+
public: {
|
17
|
+
http: ['https://rpc.zkfair.io'],
|
18
|
+
},
|
19
|
+
},
|
20
|
+
blockExplorers: {
|
21
|
+
default: {
|
22
|
+
name: 'zkFair Explorer',
|
23
|
+
url: 'https://scan.zkfair.io',
|
24
|
+
},
|
25
|
+
},
|
26
|
+
testnet: false,
|
27
|
+
})
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
2
|
+
|
3
|
+
export const zkFairTestnet = /*#__PURE__*/ defineChain({
|
4
|
+
id: 43851,
|
5
|
+
name: 'ZKFair Testnet',
|
6
|
+
network: 'zkfair-testnet',
|
7
|
+
nativeCurrency: {
|
8
|
+
decimals: 18,
|
9
|
+
name: 'USD Coin',
|
10
|
+
symbol: 'USDC',
|
11
|
+
},
|
12
|
+
rpcUrls: {
|
13
|
+
default: {
|
14
|
+
http: ['https://testnet-rpc.zkfair.io'],
|
15
|
+
},
|
16
|
+
public: {
|
17
|
+
http: ['https://testnet-rpc.zkfair.io'],
|
18
|
+
},
|
19
|
+
},
|
20
|
+
blockExplorers: {
|
21
|
+
default: {
|
22
|
+
name: 'zkFair Explorer',
|
23
|
+
url: 'https://testnet-scan.zkfair.io',
|
24
|
+
},
|
25
|
+
},
|
26
|
+
testnet: true,
|
27
|
+
})
|
package/chains/index.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
export type { Chain } from '../types/chain.js'
|
2
2
|
|
3
|
+
export { acala } from './definitions/acala.js'
|
3
4
|
export { arbitrum } from './definitions/arbitrum.js'
|
4
5
|
export { arbitrumGoerli } from './definitions/arbitrumGoerli.js'
|
5
6
|
export { arbitrumNova } from './definitions/arbitrumNova.js'
|
@@ -10,6 +11,7 @@ export { aurora } from './definitions/aurora.js'
|
|
10
11
|
export { auroraTestnet } from './definitions/auroraTestnet.js'
|
11
12
|
export { avalanche } from './definitions/avalanche.js'
|
12
13
|
export { avalancheFuji } from './definitions/avalancheFuji.js'
|
14
|
+
export { bahamut } from './definitions/bahamut.js'
|
13
15
|
export { base } from './definitions/base.js'
|
14
16
|
export { baseGoerli } from './definitions/baseGoerli.js'
|
15
17
|
export { baseSepolia } from './definitions/baseSepolia.js'
|
@@ -36,6 +38,8 @@ export { coreDao } from './definitions/coreDao.js'
|
|
36
38
|
export { cronos } from './definitions/cronos.js'
|
37
39
|
export { cronosTestnet } from './definitions/cronosTestnet.js'
|
38
40
|
export { crossbell } from './definitions/crossbell.js'
|
41
|
+
export { defichainEvm } from './definitions/defichainEvm.js'
|
42
|
+
export { defichainEvmTestnet } from './definitions/defichainEvmTestnet.js'
|
39
43
|
export { dfk } from './definitions/dfk.js'
|
40
44
|
export { dogechain } from './definitions/dogechain.js'
|
41
45
|
export { edgeware } from './definitions/edgeware.js'
|
@@ -61,6 +65,7 @@ export { fuseSparknet } from './definitions/fuseSparknet.js'
|
|
61
65
|
export { iotex } from './definitions/iotex.js'
|
62
66
|
export { iotexTestnet } from './definitions/iotexTestnet.js'
|
63
67
|
export { jbc } from './definitions/jbc.js'
|
68
|
+
export { karura } from './definitions/karura.js'
|
64
69
|
export { gobi } from './definitions/gobi.js'
|
65
70
|
export { goerli } from './definitions/goerli.js'
|
66
71
|
export { gnosis } from './definitions/gnosis.js'
|
@@ -81,6 +86,7 @@ export { lineaTestnet } from './definitions/lineaTestnet.js'
|
|
81
86
|
export { localhost } from './definitions/localhost.js'
|
82
87
|
export { lukso } from './definitions/lukso.js'
|
83
88
|
export { mainnet } from './definitions/mainnet.js'
|
89
|
+
export { mandala } from './definitions/mandala.js'
|
84
90
|
export { manta } from './definitions/manta.js'
|
85
91
|
export { mantaTestnet } from './definitions/mantaTestnet.js'
|
86
92
|
export { mantle } from './definitions/mantle.js'
|
@@ -101,6 +107,7 @@ export { neonMainnet } from './definitions/neonMainnet.js'
|
|
101
107
|
export { nexi } from './definitions/nexi.js'
|
102
108
|
export { nexilix } from './definitions/nexilix.js'
|
103
109
|
export { oasys } from './definitions/oasys.js'
|
110
|
+
export { oasisTestnet } from './definitions/oasisTestnet.js'
|
104
111
|
export { okc } from './definitions/okc.js'
|
105
112
|
export { optimism } from './definitions/optimism.js'
|
106
113
|
export { optimismGoerli } from './definitions/optimismGoerli.js'
|
@@ -169,6 +176,8 @@ export { wemixTestnet } from './definitions/wemixTestnet.js'
|
|
169
176
|
export { xdc } from './definitions/xdc.js'
|
170
177
|
export { xdcTestnet } from './definitions/xdcTestnet.js'
|
171
178
|
export { zhejiang } from './definitions/zhejiang.js'
|
179
|
+
export { zkFair } from './definitions/zkFair.js'
|
180
|
+
export { zkFairTestnet } from './definitions/zkFairTestnet.js'
|
172
181
|
export { zkSync } from './definitions/zkSync.js'
|
173
182
|
export { zkSyncTestnet } from './definitions/zkSyncTestnet.js'
|
174
183
|
export { zkSyncSepoliaTestnet } from './definitions/zkSyncSepoliaTestnet.js'
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '2.0.0
|
1
|
+
export const version = '2.0.0'
|