viem 2.49.2 → 2.50.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/CHANGELOG.md +62 -0
- package/_cjs/actions/ens/getEnsAddress.js +21 -6
- package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
- package/_cjs/actions/public/call.js +76 -41
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/getBalance.js +11 -4
- package/_cjs/actions/public/getBalance.js.map +1 -1
- package/_cjs/actions/public/getCode.js +12 -5
- package/_cjs/actions/public/getCode.js.map +1 -1
- package/_cjs/actions/public/getProof.js +9 -5
- package/_cjs/actions/public/getProof.js.map +1 -1
- package/_cjs/actions/public/getStorageAt.js +9 -4
- package/_cjs/actions/public/getStorageAt.js.map +1 -1
- package/_cjs/actions/public/getTransactionCount.js +10 -7
- package/_cjs/actions/public/getTransactionCount.js.map +1 -1
- package/_cjs/actions/public/multicall.js +3 -1
- package/_cjs/actions/public/multicall.js.map +1 -1
- package/_cjs/actions/public/readContract.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js +14 -0
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/sendTransactionSync.js +15 -0
- package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_cjs/chains/definitions/arc.js +19 -0
- package/_cjs/chains/definitions/arc.js.map +1 -0
- package/_cjs/chains/definitions/mizuhikiTestnetAwaji.js +29 -0
- package/_cjs/chains/definitions/mizuhikiTestnetAwaji.js.map +1 -0
- package/_cjs/chains/definitions/morphHolesky.js +1 -1
- package/_cjs/chains/definitions/morphHolesky.js.map +1 -1
- package/_cjs/chains/definitions/sentrix.js +29 -0
- package/_cjs/chains/definitions/sentrix.js.map +1 -0
- package/_cjs/chains/definitions/sentrixTestnet.js +30 -0
- package/_cjs/chains/definitions/sentrixTestnet.js.map +1 -0
- package/_cjs/chains/definitions/sova.js +1 -1
- package/_cjs/chains/definitions/sova.js.map +1 -1
- package/_cjs/chains/index.js +23 -15
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/constants/solidity.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +5 -3
- package/_cjs/index.js.map +1 -1
- package/_cjs/tempo/Chain.js +19 -0
- package/_cjs/tempo/Chain.js.map +1 -0
- package/_cjs/tempo/Decorator.js +1 -0
- package/_cjs/tempo/Decorator.js.map +1 -1
- package/_cjs/tempo/Formatters.js +1 -1
- package/_cjs/tempo/Formatters.js.map +1 -1
- package/_cjs/tempo/Transaction.js +5 -2
- package/_cjs/tempo/Transaction.js.map +1 -1
- package/_cjs/tempo/actions/fee.js +61 -0
- package/_cjs/tempo/actions/fee.js.map +1 -1
- package/_cjs/tempo/chainConfig.js +16 -6
- package/_cjs/tempo/chainConfig.js.map +1 -1
- package/_cjs/tempo/chains/index.js +11 -0
- package/_cjs/tempo/chains/index.js.map +1 -0
- package/_cjs/tempo/errors.js +58 -0
- package/_cjs/tempo/errors.js.map +1 -0
- package/_cjs/tempo/index.js +17 -1
- package/_cjs/tempo/index.js.map +1 -1
- package/_cjs/utils/abi/encodeEventTopics.js +4 -2
- package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
- package/_cjs/utils/block/formatBlockParameter.js +16 -0
- package/_cjs/utils/block/formatBlockParameter.js.map +1 -0
- package/_cjs/utils/ccipTunnel.js +65 -0
- package/_cjs/utils/ccipTunnel.js.map +1 -0
- package/_cjs/utils/index.js +6 -4
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/nonceManager.js +7 -3
- package/_cjs/utils/nonceManager.js.map +1 -1
- package/_cjs/utils/observe.js +7 -1
- package/_cjs/utils/observe.js.map +1 -1
- package/_cjs/utils/rpc/socket.js +19 -2
- package/_cjs/utils/rpc/socket.js.map +1 -1
- package/_esm/actions/ens/getEnsAddress.js +21 -6
- package/_esm/actions/ens/getEnsAddress.js.map +1 -1
- package/_esm/actions/public/call.js +76 -41
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/getBalance.js +11 -4
- package/_esm/actions/public/getBalance.js.map +1 -1
- package/_esm/actions/public/getCode.js +12 -5
- package/_esm/actions/public/getCode.js.map +1 -1
- package/_esm/actions/public/getProof.js +9 -5
- package/_esm/actions/public/getProof.js.map +1 -1
- package/_esm/actions/public/getStorageAt.js +9 -4
- package/_esm/actions/public/getStorageAt.js.map +1 -1
- package/_esm/actions/public/getTransactionCount.js +10 -7
- package/_esm/actions/public/getTransactionCount.js.map +1 -1
- package/_esm/actions/public/multicall.js +3 -1
- package/_esm/actions/public/multicall.js.map +1 -1
- package/_esm/actions/public/readContract.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +14 -0
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/sendTransactionSync.js +15 -0
- package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
- package/_esm/chains/definitions/arc.js +16 -0
- package/_esm/chains/definitions/arc.js.map +1 -0
- package/_esm/chains/definitions/mizuhikiTestnetAwaji.js +26 -0
- package/_esm/chains/definitions/mizuhikiTestnetAwaji.js.map +1 -0
- package/_esm/chains/definitions/morphHolesky.js +1 -1
- package/_esm/chains/definitions/morphHolesky.js.map +1 -1
- package/_esm/chains/definitions/sentrix.js +26 -0
- package/_esm/chains/definitions/sentrix.js.map +1 -0
- package/_esm/chains/definitions/sentrixTestnet.js +27 -0
- package/_esm/chains/definitions/sentrixTestnet.js.map +1 -0
- package/_esm/chains/definitions/sova.js +1 -1
- package/_esm/chains/definitions/sova.js.map +1 -1
- package/_esm/chains/index.js +4 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/constants/solidity.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +1 -0
- package/_esm/index.js.map +1 -1
- package/_esm/tempo/Chain.js +6 -0
- package/_esm/tempo/Chain.js.map +1 -0
- package/_esm/tempo/Decorator.js +1 -0
- package/_esm/tempo/Decorator.js.map +1 -1
- package/_esm/tempo/Formatters.js +10 -4
- package/_esm/tempo/Formatters.js.map +1 -1
- package/_esm/tempo/Transaction.js +16 -6
- package/_esm/tempo/Transaction.js.map +1 -1
- package/_esm/tempo/actions/fee.js +83 -0
- package/_esm/tempo/actions/fee.js.map +1 -1
- package/_esm/tempo/actions/wallet.js +2 -2
- package/_esm/tempo/chainConfig.js +18 -8
- package/_esm/tempo/chainConfig.js.map +1 -1
- package/_esm/tempo/chains/index.js +3 -0
- package/_esm/tempo/chains/index.js.map +1 -0
- package/_esm/tempo/errors.js +51 -0
- package/_esm/tempo/errors.js.map +1 -0
- package/_esm/tempo/index.js +2 -0
- package/_esm/tempo/index.js.map +1 -1
- package/_esm/utils/abi/encodeEventTopics.js +6 -2
- package/_esm/utils/abi/encodeEventTopics.js.map +1 -1
- package/_esm/utils/block/formatBlockParameter.js +39 -0
- package/_esm/utils/block/formatBlockParameter.js.map +1 -0
- package/_esm/utils/ccipTunnel.js +62 -0
- package/_esm/utils/ccipTunnel.js.map +1 -0
- package/_esm/utils/index.js +1 -0
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/nonceManager.js +7 -3
- package/_esm/utils/nonceManager.js.map +1 -1
- package/_esm/utils/observe.js +7 -1
- package/_esm/utils/observe.js.map +1 -1
- package/_esm/utils/rpc/socket.js +20 -2
- package/_esm/utils/rpc/socket.js.map +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts +3 -1
- package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts +17 -6
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/getBalance.d.ts +15 -3
- package/_types/actions/public/getBalance.d.ts.map +1 -1
- package/_types/actions/public/getCode.d.ts +15 -4
- package/_types/actions/public/getCode.d.ts.map +1 -1
- package/_types/actions/public/getProof.d.ts +14 -3
- package/_types/actions/public/getProof.d.ts.map +1 -1
- package/_types/actions/public/getStorageAt.d.ts +15 -4
- package/_types/actions/public/getStorageAt.d.ts.map +1 -1
- package/_types/actions/public/getTransactionCount.d.ts +15 -3
- package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
- package/_types/actions/public/multicall.d.ts +1 -1
- package/_types/actions/public/multicall.d.ts.map +1 -1
- package/_types/actions/public/readContract.d.ts +1 -1
- package/_types/actions/public/readContract.d.ts.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +4 -2
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
- package/_types/chains/definitions/arc.d.ts +54 -0
- package/_types/chains/definitions/arc.d.ts.map +1 -0
- package/_types/chains/definitions/mizuhikiTestnetAwaji.d.ts +46 -0
- package/_types/chains/definitions/mizuhikiTestnetAwaji.d.ts.map +1 -0
- package/_types/chains/definitions/morphHolesky.d.ts +1 -1
- package/_types/chains/definitions/sentrix.d.ts +46 -0
- package/_types/chains/definitions/sentrix.d.ts.map +1 -0
- package/_types/chains/definitions/sentrixTestnet.d.ts +46 -0
- package/_types/chains/definitions/sentrixTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/sova.d.ts +1 -1
- package/_types/chains/index.d.ts +4 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/constants/solidity.d.ts +16 -3
- package/_types/constants/solidity.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +1 -0
- package/_types/index.d.ts.map +1 -1
- package/_types/tempo/Chain.d.ts +5 -0
- package/_types/tempo/Chain.d.ts.map +1 -0
- package/_types/tempo/Decorator.d.ts +23 -0
- package/_types/tempo/Decorator.d.ts.map +1 -1
- package/_types/tempo/Formatters.d.ts.map +1 -1
- package/_types/tempo/Transaction.d.ts.map +1 -1
- package/_types/tempo/actions/fee.d.ts +38 -0
- package/_types/tempo/actions/fee.d.ts.map +1 -1
- package/_types/tempo/actions/wallet.d.ts +9 -6
- package/_types/tempo/actions/wallet.d.ts.map +1 -1
- package/_types/tempo/chainConfig.d.ts.map +1 -1
- package/_types/tempo/chains/index.d.ts +2 -0
- package/_types/tempo/chains/index.d.ts.map +1 -0
- package/_types/tempo/errors.d.ts +36 -0
- package/_types/tempo/errors.d.ts.map +1 -0
- package/_types/tempo/index.d.ts +2 -0
- package/_types/tempo/index.d.ts.map +1 -1
- package/_types/types/block.d.ts +3 -4
- package/_types/types/block.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +1 -1
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/utils/abi/encodeEventTopics.d.ts +6 -2
- package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
- package/_types/utils/block/formatBlockParameter.d.ts +45 -0
- package/_types/utils/block/formatBlockParameter.d.ts.map +1 -0
- package/_types/utils/ccipTunnel.d.ts +9 -0
- package/_types/utils/ccipTunnel.d.ts.map +1 -0
- package/_types/utils/index.d.ts +1 -0
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/nonceManager.d.ts.map +1 -1
- package/_types/utils/observe.d.ts.map +1 -1
- package/_types/utils/rpc/socket.d.ts.map +1 -1
- package/actions/ens/getEnsAddress.ts +34 -6
- package/actions/public/call.ts +125 -51
- package/actions/public/getBalance.ts +30 -9
- package/actions/public/getCode.ts +35 -11
- package/actions/public/getProof.ts +27 -11
- package/actions/public/getStorageAt.ts +33 -10
- package/actions/public/getTransactionCount.ts +33 -11
- package/actions/public/multicall.ts +6 -0
- package/actions/public/readContract.ts +2 -0
- package/actions/wallet/prepareTransactionRequest.ts +11 -15
- package/actions/wallet/sendTransaction.ts +13 -0
- package/actions/wallet/sendTransactionSync.ts +16 -0
- package/chains/definitions/arc.ts +16 -0
- package/chains/definitions/mizuhikiTestnetAwaji.ts +26 -0
- package/chains/definitions/morphHolesky.ts +1 -1
- package/chains/definitions/sentrix.ts +26 -0
- package/chains/definitions/sentrixTestnet.ts +27 -0
- package/chains/definitions/sova.ts +1 -1
- package/chains/index.ts +4 -0
- package/constants/solidity.ts +4 -4
- package/errors/version.ts +1 -1
- package/index.ts +4 -0
- package/package.json +11 -3
- package/tempo/Chain.ts +20 -0
- package/tempo/Decorator.ts +27 -0
- package/tempo/Formatters.ts +15 -4
- package/tempo/Transaction.ts +16 -6
- package/tempo/actions/fee.ts +117 -1
- package/tempo/actions/wallet.ts +9 -6
- package/tempo/chainConfig.ts +18 -12
- package/tempo/chains/index.ts +9 -0
- package/tempo/chains/package.json +6 -0
- package/tempo/errors.ts +78 -0
- package/tempo/index.ts +2 -0
- package/types/block.ts +3 -5
- package/types/eip1193.ts +1 -1
- package/utils/abi/encodeEventTopics.ts +25 -6
- package/utils/block/formatBlockParameter.ts +63 -0
- package/utils/ccipTunnel.ts +67 -0
- package/utils/index.ts +4 -0
- package/utils/nonceManager.ts +7 -3
- package/utils/observe.ts +7 -4
- package/utils/rpc/socket.ts +21 -2
|
@@ -6,11 +6,11 @@ import type { BlockTag } from '../../types/block.js'
|
|
|
6
6
|
import type { Chain } from '../../types/chain.js'
|
|
7
7
|
import type { Hash } from '../../types/misc.js'
|
|
8
8
|
import type { Proof } from '../../types/proof.js'
|
|
9
|
-
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
|
10
9
|
import {
|
|
11
|
-
type
|
|
12
|
-
|
|
13
|
-
} from '../../utils/
|
|
10
|
+
type FormatBlockParameterErrorType,
|
|
11
|
+
formatBlockParameter,
|
|
12
|
+
} from '../../utils/block/formatBlockParameter.js'
|
|
13
|
+
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
|
14
14
|
import {
|
|
15
15
|
type FormatProofErrorType,
|
|
16
16
|
formatProof,
|
|
@@ -26,6 +26,8 @@ export type GetProofParameters = {
|
|
|
26
26
|
/** The block number. */
|
|
27
27
|
blockNumber?: bigint | undefined
|
|
28
28
|
blockTag?: undefined
|
|
29
|
+
blockHash?: undefined
|
|
30
|
+
requireCanonical?: undefined
|
|
29
31
|
}
|
|
30
32
|
| {
|
|
31
33
|
blockNumber?: undefined
|
|
@@ -34,13 +36,23 @@ export type GetProofParameters = {
|
|
|
34
36
|
* @default 'latest'
|
|
35
37
|
*/
|
|
36
38
|
blockTag?: BlockTag | undefined
|
|
39
|
+
blockHash?: undefined
|
|
40
|
+
requireCanonical?: undefined
|
|
41
|
+
}
|
|
42
|
+
| {
|
|
43
|
+
blockNumber?: undefined
|
|
44
|
+
blockTag?: undefined
|
|
45
|
+
/** The proof at a block specified by block hash. */
|
|
46
|
+
blockHash: Hash
|
|
47
|
+
/** Whether or not to throw an error if the block is not in the canonical chain. Only allowed in conjunction with `blockHash`. */
|
|
48
|
+
requireCanonical?: boolean | undefined
|
|
37
49
|
}
|
|
38
50
|
)
|
|
39
51
|
|
|
40
52
|
export type GetProofReturnType = Proof
|
|
41
53
|
|
|
42
54
|
export type GetProofErrorType =
|
|
43
|
-
|
|
|
55
|
+
| FormatBlockParameterErrorType
|
|
44
56
|
| FormatProofErrorType
|
|
45
57
|
| RequestErrorType
|
|
46
58
|
| ErrorType
|
|
@@ -74,19 +86,23 @@ export async function getProof<chain extends Chain | undefined>(
|
|
|
74
86
|
client: Client<Transport, chain>,
|
|
75
87
|
{
|
|
76
88
|
address,
|
|
89
|
+
blockHash,
|
|
77
90
|
blockNumber,
|
|
78
|
-
blockTag
|
|
91
|
+
blockTag = 'latest',
|
|
92
|
+
requireCanonical,
|
|
79
93
|
storageKeys,
|
|
80
94
|
}: GetProofParameters,
|
|
81
95
|
): Promise<GetProofReturnType> {
|
|
82
|
-
const
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
96
|
+
const block = formatBlockParameter({
|
|
97
|
+
blockHash,
|
|
98
|
+
blockNumber,
|
|
99
|
+
blockTag,
|
|
100
|
+
requireCanonical,
|
|
101
|
+
})
|
|
86
102
|
|
|
87
103
|
const proof = await client.request({
|
|
88
104
|
method: 'eth_getProof',
|
|
89
|
-
params: [address, storageKeys,
|
|
105
|
+
params: [address, storageKeys, block],
|
|
90
106
|
})
|
|
91
107
|
|
|
92
108
|
return formatProof(proof)
|
|
@@ -5,12 +5,12 @@ import type { Transport } from '../../clients/transports/createTransport.js'
|
|
|
5
5
|
import type { ErrorType } from '../../errors/utils.js'
|
|
6
6
|
import type { BlockTag } from '../../types/block.js'
|
|
7
7
|
import type { Chain } from '../../types/chain.js'
|
|
8
|
-
import type { Hex } from '../../types/misc.js'
|
|
9
|
-
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
|
8
|
+
import type { Hash, Hex } from '../../types/misc.js'
|
|
10
9
|
import {
|
|
11
|
-
type
|
|
12
|
-
|
|
13
|
-
} from '../../utils/
|
|
10
|
+
type FormatBlockParameterErrorType,
|
|
11
|
+
formatBlockParameter,
|
|
12
|
+
} from '../../utils/block/formatBlockParameter.js'
|
|
13
|
+
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
|
14
14
|
|
|
15
15
|
export type GetStorageAtParameters = {
|
|
16
16
|
address: Address
|
|
@@ -19,17 +19,29 @@ export type GetStorageAtParameters = {
|
|
|
19
19
|
| {
|
|
20
20
|
blockNumber?: undefined
|
|
21
21
|
blockTag?: BlockTag | undefined
|
|
22
|
+
blockHash?: undefined
|
|
23
|
+
requireCanonical?: undefined
|
|
22
24
|
}
|
|
23
25
|
| {
|
|
24
26
|
blockNumber?: bigint | undefined
|
|
25
27
|
blockTag?: undefined
|
|
28
|
+
blockHash?: undefined
|
|
29
|
+
requireCanonical?: undefined
|
|
30
|
+
}
|
|
31
|
+
| {
|
|
32
|
+
blockNumber?: undefined
|
|
33
|
+
blockTag?: undefined
|
|
34
|
+
/** The storage value at a block specified by block hash. */
|
|
35
|
+
blockHash: Hash
|
|
36
|
+
/** Whether or not to throw an error if the block is not in the canonical chain. Only allowed in conjunction with `blockHash`. */
|
|
37
|
+
requireCanonical?: boolean | undefined
|
|
26
38
|
}
|
|
27
39
|
)
|
|
28
40
|
|
|
29
41
|
export type GetStorageAtReturnType = Hex | undefined
|
|
30
42
|
|
|
31
43
|
export type GetStorageAtErrorType =
|
|
32
|
-
|
|
|
44
|
+
| FormatBlockParameterErrorType
|
|
33
45
|
| RequestErrorType
|
|
34
46
|
| ErrorType
|
|
35
47
|
|
|
@@ -59,13 +71,24 @@ export type GetStorageAtErrorType =
|
|
|
59
71
|
*/
|
|
60
72
|
export async function getStorageAt<chain extends Chain | undefined>(
|
|
61
73
|
client: Client<Transport, chain>,
|
|
62
|
-
{
|
|
74
|
+
{
|
|
75
|
+
address,
|
|
76
|
+
blockHash,
|
|
77
|
+
blockNumber,
|
|
78
|
+
blockTag = 'latest',
|
|
79
|
+
requireCanonical,
|
|
80
|
+
slot,
|
|
81
|
+
}: GetStorageAtParameters,
|
|
63
82
|
): Promise<GetStorageAtReturnType> {
|
|
64
|
-
const
|
|
65
|
-
|
|
83
|
+
const block = formatBlockParameter({
|
|
84
|
+
blockHash,
|
|
85
|
+
blockNumber,
|
|
86
|
+
blockTag,
|
|
87
|
+
requireCanonical,
|
|
88
|
+
})
|
|
66
89
|
const data = await client.request({
|
|
67
90
|
method: 'eth_getStorageAt',
|
|
68
|
-
params: [address, slot,
|
|
91
|
+
params: [address, slot, block],
|
|
69
92
|
})
|
|
70
93
|
return data
|
|
71
94
|
}
|
|
@@ -6,15 +6,16 @@ import type { Transport } from '../../clients/transports/createTransport.js'
|
|
|
6
6
|
import type { ErrorType } from '../../errors/utils.js'
|
|
7
7
|
import type { BlockTag } from '../../types/block.js'
|
|
8
8
|
import type { Chain } from '../../types/chain.js'
|
|
9
|
+
import type { Hash } from '../../types/misc.js'
|
|
10
|
+
import {
|
|
11
|
+
type FormatBlockParameterErrorType,
|
|
12
|
+
formatBlockParameter,
|
|
13
|
+
} from '../../utils/block/formatBlockParameter.js'
|
|
9
14
|
import type { RequestErrorType } from '../../utils/buildRequest.js'
|
|
10
15
|
import {
|
|
11
16
|
type HexToNumberErrorType,
|
|
12
17
|
hexToNumber,
|
|
13
18
|
} from '../../utils/encoding/fromHex.js'
|
|
14
|
-
import {
|
|
15
|
-
type NumberToHexErrorType,
|
|
16
|
-
numberToHex,
|
|
17
|
-
} from '../../utils/encoding/toHex.js'
|
|
18
19
|
|
|
19
20
|
export type GetTransactionCountParameters = {
|
|
20
21
|
/** The account address. */
|
|
@@ -24,18 +25,30 @@ export type GetTransactionCountParameters = {
|
|
|
24
25
|
/** The block number. */
|
|
25
26
|
blockNumber?: bigint | undefined
|
|
26
27
|
blockTag?: undefined
|
|
28
|
+
blockHash?: undefined
|
|
29
|
+
requireCanonical?: undefined
|
|
27
30
|
}
|
|
28
31
|
| {
|
|
29
32
|
blockNumber?: undefined
|
|
30
33
|
/** The block tag. Defaults to 'latest'. */
|
|
31
34
|
blockTag?: BlockTag | undefined
|
|
35
|
+
blockHash?: undefined
|
|
36
|
+
requireCanonical?: undefined
|
|
37
|
+
}
|
|
38
|
+
| {
|
|
39
|
+
blockNumber?: undefined
|
|
40
|
+
blockTag?: undefined
|
|
41
|
+
/** The transaction count at a block specified by block hash. */
|
|
42
|
+
blockHash: Hash
|
|
43
|
+
/** Whether or not to throw an error if the block is not in the canonical chain. Only allowed in conjunction with `blockHash`. */
|
|
44
|
+
requireCanonical?: boolean | undefined
|
|
32
45
|
}
|
|
33
46
|
)
|
|
34
47
|
export type GetTransactionCountReturnType = number
|
|
35
48
|
|
|
36
49
|
export type GetTransactionCountErrorType =
|
|
37
50
|
| RequestErrorType
|
|
38
|
-
|
|
|
51
|
+
| FormatBlockParameterErrorType
|
|
39
52
|
| HexToNumberErrorType
|
|
40
53
|
| ErrorType
|
|
41
54
|
|
|
@@ -67,18 +80,27 @@ export async function getTransactionCount<
|
|
|
67
80
|
account extends Account | undefined,
|
|
68
81
|
>(
|
|
69
82
|
client: Client<Transport, chain, account>,
|
|
70
|
-
{
|
|
83
|
+
{
|
|
84
|
+
address,
|
|
85
|
+
blockHash,
|
|
86
|
+
blockNumber,
|
|
87
|
+
blockTag = 'latest',
|
|
88
|
+
requireCanonical,
|
|
89
|
+
}: GetTransactionCountParameters,
|
|
71
90
|
): Promise<GetTransactionCountReturnType> {
|
|
91
|
+
const block = formatBlockParameter({
|
|
92
|
+
blockHash,
|
|
93
|
+
blockNumber,
|
|
94
|
+
blockTag,
|
|
95
|
+
requireCanonical,
|
|
96
|
+
})
|
|
72
97
|
const count = await client.request(
|
|
73
98
|
{
|
|
74
99
|
method: 'eth_getTransactionCount',
|
|
75
|
-
params: [
|
|
76
|
-
address,
|
|
77
|
-
typeof blockNumber === 'bigint' ? numberToHex(blockNumber) : blockTag,
|
|
78
|
-
],
|
|
100
|
+
params: [address, block],
|
|
79
101
|
},
|
|
80
102
|
{
|
|
81
|
-
dedupe:
|
|
103
|
+
dedupe: typeof blockNumber === 'bigint' || blockHash !== undefined,
|
|
82
104
|
},
|
|
83
105
|
)
|
|
84
106
|
return hexToNumber(count)
|
|
@@ -45,9 +45,11 @@ export type MulticallParameters<
|
|
|
45
45
|
> = Pick<
|
|
46
46
|
CallParameters,
|
|
47
47
|
| 'authorizationList'
|
|
48
|
+
| 'blockHash'
|
|
48
49
|
| 'blockNumber'
|
|
49
50
|
| 'blockOverrides'
|
|
50
51
|
| 'blockTag'
|
|
52
|
+
| 'requireCanonical'
|
|
51
53
|
| 'stateOverride'
|
|
52
54
|
> & {
|
|
53
55
|
/** The account to use for the multicall. */
|
|
@@ -138,9 +140,11 @@ export async function multicall<
|
|
|
138
140
|
account,
|
|
139
141
|
authorizationList,
|
|
140
142
|
allowFailure = true,
|
|
143
|
+
blockHash,
|
|
141
144
|
blockNumber,
|
|
142
145
|
blockOverrides,
|
|
143
146
|
blockTag,
|
|
147
|
+
requireCanonical,
|
|
144
148
|
stateOverride,
|
|
145
149
|
} = parameters
|
|
146
150
|
const contracts = parameters.contracts as ContractFunctionParameters[]
|
|
@@ -237,10 +241,12 @@ export async function multicall<
|
|
|
237
241
|
account,
|
|
238
242
|
args: [calls],
|
|
239
243
|
authorizationList,
|
|
244
|
+
blockHash,
|
|
240
245
|
blockNumber,
|
|
241
246
|
blockOverrides,
|
|
242
247
|
blockTag,
|
|
243
248
|
functionName: 'aggregate3',
|
|
249
|
+
requireCanonical,
|
|
244
250
|
stateOverride,
|
|
245
251
|
}),
|
|
246
252
|
),
|
|
@@ -44,11 +44,13 @@ export type ReadContractParameters<
|
|
|
44
44
|
CallParameters,
|
|
45
45
|
| 'account'
|
|
46
46
|
| 'authorizationList'
|
|
47
|
+
| 'blockHash'
|
|
47
48
|
| 'blockNumber'
|
|
48
49
|
| 'blockOverrides'
|
|
49
50
|
| 'blockTag'
|
|
50
51
|
| 'factory'
|
|
51
52
|
| 'factoryData'
|
|
53
|
+
| 'requireCanonical'
|
|
52
54
|
| 'stateOverride'
|
|
53
55
|
>
|
|
54
56
|
> &
|
|
@@ -38,15 +38,7 @@ import type {
|
|
|
38
38
|
GetChainParameter,
|
|
39
39
|
} from '../../types/chain.js'
|
|
40
40
|
import type { GetTransactionRequestKzgParameter } from '../../types/kzg.js'
|
|
41
|
-
import type {
|
|
42
|
-
TransactionRequest,
|
|
43
|
-
TransactionRequestEIP1559,
|
|
44
|
-
TransactionRequestEIP2930,
|
|
45
|
-
TransactionRequestEIP4844,
|
|
46
|
-
TransactionRequestEIP7702,
|
|
47
|
-
TransactionRequestLegacy,
|
|
48
|
-
TransactionSerializable,
|
|
49
|
-
} from '../../types/transaction.js'
|
|
41
|
+
import type { TransactionSerializable } from '../../types/transaction.js'
|
|
50
42
|
import type {
|
|
51
43
|
ExactPartial,
|
|
52
44
|
IsNever,
|
|
@@ -106,6 +98,12 @@ type ParameterTypeToParameters<
|
|
|
106
98
|
> = parameterType extends 'fees'
|
|
107
99
|
? 'maxFeePerGas' | 'maxPriorityFeePerGas' | 'gasPrice'
|
|
108
100
|
: parameterType
|
|
101
|
+
type ExtractTransactionRequest<transactionRequest, transactionType> =
|
|
102
|
+
transactionRequest extends { type?: infer type | undefined }
|
|
103
|
+
? Extract<transactionType, type> extends never
|
|
104
|
+
? never
|
|
105
|
+
: transactionRequest
|
|
106
|
+
: never
|
|
109
107
|
|
|
110
108
|
export type PrepareTransactionRequestRequest<
|
|
111
109
|
chain extends Chain | undefined = Chain | undefined,
|
|
@@ -166,12 +164,10 @@ export type PrepareTransactionRequestReturnType<
|
|
|
166
164
|
: GetTransactionType<request> extends 'legacy'
|
|
167
165
|
? unknown
|
|
168
166
|
: GetTransactionType<request>,
|
|
169
|
-
_transactionRequest
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
| (_transactionType extends 'eip4844' ? TransactionRequestEIP4844 : never)
|
|
174
|
-
| (_transactionType extends 'eip7702' ? TransactionRequestEIP7702 : never),
|
|
167
|
+
_transactionRequest = ExtractTransactionRequest<
|
|
168
|
+
UnionOmit<FormattedTransactionRequest<_derivedChain>, 'from'>,
|
|
169
|
+
_transactionType
|
|
170
|
+
>,
|
|
175
171
|
> = Prettify<
|
|
176
172
|
UnionRequiredBy<
|
|
177
173
|
Extract<
|
|
@@ -190,6 +190,7 @@ export async function sendTransaction<
|
|
|
190
190
|
docsPath: '/docs/actions/wallet/sendTransaction',
|
|
191
191
|
})
|
|
192
192
|
const account = account_ ? parseAccount(account_) : null
|
|
193
|
+
let nonceManagerParameters: { address: Address; chainId: number } | undefined
|
|
193
194
|
|
|
194
195
|
try {
|
|
195
196
|
assertRequest(parameters as AssertRequestParameters)
|
|
@@ -309,6 +310,16 @@ export async function sendTransaction<
|
|
|
309
310
|
}
|
|
310
311
|
|
|
311
312
|
if (account?.type === 'local') {
|
|
313
|
+
if (account.nonceManager && typeof nonce === 'undefined') {
|
|
314
|
+
const requestChainId = (rest as unknown as { chainId?: number }).chainId
|
|
315
|
+
const chainId = await (async () => {
|
|
316
|
+
if (typeof requestChainId === 'number') return requestChainId
|
|
317
|
+
if (chain) return chain.id
|
|
318
|
+
return getAction(client, getChainId, 'getChainId')({})
|
|
319
|
+
})()
|
|
320
|
+
nonceManagerParameters = { address: account.address, chainId }
|
|
321
|
+
}
|
|
322
|
+
|
|
312
323
|
// Prepare the request for signing (assign appropriate fees, etc.)
|
|
313
324
|
const request = await getAction(
|
|
314
325
|
client,
|
|
@@ -366,6 +377,8 @@ export async function sendTransaction<
|
|
|
366
377
|
})
|
|
367
378
|
} catch (err) {
|
|
368
379
|
if (err instanceof AccountTypeNotSupportedError) throw err
|
|
380
|
+
if (nonceManagerParameters)
|
|
381
|
+
account?.nonceManager?.reset(nonceManagerParameters)
|
|
369
382
|
throw getTransactionError(err as BaseError, {
|
|
370
383
|
...parameters,
|
|
371
384
|
account,
|
|
@@ -213,6 +213,7 @@ export async function sendTransactionSync<
|
|
|
213
213
|
docsPath: '/docs/actions/wallet/sendTransactionSync',
|
|
214
214
|
})
|
|
215
215
|
const account = account_ ? parseAccount(account_) : null
|
|
216
|
+
let nonceManagerParameters: { address: Address; chainId: number } | undefined
|
|
216
217
|
|
|
217
218
|
try {
|
|
218
219
|
assertRequest(parameters as AssertRequestParameters)
|
|
@@ -348,6 +349,16 @@ export async function sendTransactionSync<
|
|
|
348
349
|
}
|
|
349
350
|
|
|
350
351
|
if (account?.type === 'local') {
|
|
352
|
+
if (account.nonceManager && typeof nonce === 'undefined') {
|
|
353
|
+
const requestChainId = (rest as unknown as { chainId?: number }).chainId
|
|
354
|
+
const chainId = await (async () => {
|
|
355
|
+
if (typeof requestChainId === 'number') return requestChainId
|
|
356
|
+
if (chain) return chain.id
|
|
357
|
+
return getAction(client, getChainId, 'getChainId')({})
|
|
358
|
+
})()
|
|
359
|
+
nonceManagerParameters = { address: account.address, chainId }
|
|
360
|
+
}
|
|
361
|
+
|
|
351
362
|
// Prepare the request for signing (assign appropriate fees, etc.)
|
|
352
363
|
const request = await getAction(
|
|
353
364
|
client,
|
|
@@ -407,6 +418,11 @@ export async function sendTransactionSync<
|
|
|
407
418
|
})
|
|
408
419
|
} catch (err) {
|
|
409
420
|
if (err instanceof AccountTypeNotSupportedError) throw err
|
|
421
|
+
if (
|
|
422
|
+
nonceManagerParameters &&
|
|
423
|
+
!(err instanceof TransactionReceiptRevertedError)
|
|
424
|
+
)
|
|
425
|
+
account?.nonceManager?.reset(nonceManagerParameters)
|
|
410
426
|
throw getTransactionError(err as BaseError, {
|
|
411
427
|
...parameters,
|
|
412
428
|
account,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
|
2
|
+
|
|
3
|
+
export const arc = /*#__PURE__*/ defineChain({
|
|
4
|
+
id: 5042,
|
|
5
|
+
name: 'Arc',
|
|
6
|
+
nativeCurrency: {
|
|
7
|
+
name: 'USDC',
|
|
8
|
+
symbol: 'USDC',
|
|
9
|
+
decimals: 18,
|
|
10
|
+
},
|
|
11
|
+
rpcUrls: {
|
|
12
|
+
default: {
|
|
13
|
+
http: [],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
})
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
|
2
|
+
|
|
3
|
+
export const mizuhikiTestnetAwaji = /*#__PURE__*/ defineChain({
|
|
4
|
+
id: 6497,
|
|
5
|
+
name: 'MIZUHIKI Testnet Awaji',
|
|
6
|
+
nativeCurrency: { name: 'MIZU', symbol: 'MIZU', decimals: 18 },
|
|
7
|
+
rpcUrls: {
|
|
8
|
+
default: {
|
|
9
|
+
http: ['https://rpc.awaji.mizuhiki.io'],
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
blockExplorers: {
|
|
13
|
+
default: {
|
|
14
|
+
name: 'Blockscout',
|
|
15
|
+
url: 'https://awaji.blockscout.com',
|
|
16
|
+
apiUrl: 'https://awaji.blockscout.com/api',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
contracts: {
|
|
20
|
+
multicall3: {
|
|
21
|
+
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
|
22
|
+
blockCreated: 0,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
testnet: true,
|
|
26
|
+
})
|
|
@@ -14,7 +14,7 @@ export const morphHolesky = /*#__PURE__*/ defineChain({
|
|
|
14
14
|
default: {
|
|
15
15
|
name: 'Morph Holesky Explorer',
|
|
16
16
|
url: 'https://explorer-holesky.morphl2.io',
|
|
17
|
-
apiUrl: 'https://explorer-api-holesky.morphl2.io/api
|
|
17
|
+
apiUrl: 'https://explorer-api-holesky.morphl2.io/api',
|
|
18
18
|
},
|
|
19
19
|
},
|
|
20
20
|
testnet: true,
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
|
2
|
+
|
|
3
|
+
export const sentrix = /*#__PURE__*/ defineChain({
|
|
4
|
+
id: 7119,
|
|
5
|
+
name: 'Sentrix Chain',
|
|
6
|
+
nativeCurrency: { name: 'Sentrix', symbol: 'SRX', decimals: 18 },
|
|
7
|
+
blockTime: 1_000,
|
|
8
|
+
rpcUrls: {
|
|
9
|
+
default: {
|
|
10
|
+
http: ['https://rpc.sentrixchain.com'],
|
|
11
|
+
webSocket: ['wss://rpc.sentrixchain.com/ws'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
blockExplorers: {
|
|
15
|
+
default: {
|
|
16
|
+
name: 'SentrixScan',
|
|
17
|
+
url: 'https://scan.sentrixchain.com',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
contracts: {
|
|
21
|
+
multicall3: {
|
|
22
|
+
address: '0xFd4b34b5763f54a580a0d9f7997A2A993ef9ceE9',
|
|
23
|
+
blockCreated: 717_078,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineChain } from '../../utils/chain/defineChain.js'
|
|
2
|
+
|
|
3
|
+
export const sentrixTestnet = /*#__PURE__*/ defineChain({
|
|
4
|
+
id: 7120,
|
|
5
|
+
name: 'Sentrix Testnet',
|
|
6
|
+
nativeCurrency: { name: 'Sentrix', symbol: 'SRX', decimals: 18 },
|
|
7
|
+
blockTime: 1_000,
|
|
8
|
+
rpcUrls: {
|
|
9
|
+
default: {
|
|
10
|
+
http: ['https://testnet-rpc.sentrixchain.com'],
|
|
11
|
+
webSocket: ['wss://testnet-rpc.sentrixchain.com/ws'],
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
blockExplorers: {
|
|
15
|
+
default: {
|
|
16
|
+
name: 'SentrixScan Testnet',
|
|
17
|
+
url: 'https://scan-testnet.sentrixchain.com',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
contracts: {
|
|
21
|
+
multicall3: {
|
|
22
|
+
address: '0x7900826De548425c6BE56caEbD4760AB0155Cd54',
|
|
23
|
+
blockCreated: 723_191,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
testnet: true,
|
|
27
|
+
})
|
package/chains/index.ts
CHANGED
|
@@ -33,6 +33,7 @@ export { arbitrum } from './definitions/arbitrum.js'
|
|
|
33
33
|
export { arbitrumGoerli } from './definitions/arbitrumGoerli.js'
|
|
34
34
|
export { arbitrumNova } from './definitions/arbitrumNova.js'
|
|
35
35
|
export { arbitrumSepolia } from './definitions/arbitrumSepolia.js'
|
|
36
|
+
export { arc } from './definitions/arc.js'
|
|
36
37
|
export { arcTestnet } from './definitions/arcTestnet.js'
|
|
37
38
|
export { arenaz } from './definitions/arenaz.js'
|
|
38
39
|
export { areonNetwork } from './definitions/areonNetwork.js'
|
|
@@ -414,6 +415,7 @@ export { mezoTestnet } from './definitions/mezoTestnet.js'
|
|
|
414
415
|
export { mint } from './definitions/mint.js'
|
|
415
416
|
export { mintSepoliaTestnet } from './definitions/mintSepoliaTestnet.js'
|
|
416
417
|
export { mitosisTestnet } from './definitions/mitosisTestnet.js'
|
|
418
|
+
export { mizuhikiTestnetAwaji } from './definitions/mizuhikiTestnetAwaji.js'
|
|
417
419
|
export { mode } from './definitions/mode.js'
|
|
418
420
|
export { modeTestnet } from './definitions/modeTestnet.js'
|
|
419
421
|
export { monad } from './definitions/monad.js'
|
|
@@ -538,6 +540,8 @@ export { scrollSepolia } from './definitions/scrollSepolia.js'
|
|
|
538
540
|
export { sei } from './definitions/sei.js'
|
|
539
541
|
export { seismicDevnet } from './definitions/seismicDevnet.js'
|
|
540
542
|
export { seiTestnet } from './definitions/seiTestnet.js'
|
|
543
|
+
export { sentrix } from './definitions/sentrix.js'
|
|
544
|
+
export { sentrixTestnet } from './definitions/sentrixTestnet.js'
|
|
541
545
|
export { sepolia } from './definitions/sepolia.js'
|
|
542
546
|
export { shape } from './definitions/shape.js'
|
|
543
547
|
export { shapeSepolia } from './definitions/shapeSepolia.js'
|
package/constants/solidity.ts
CHANGED
|
@@ -13,7 +13,7 @@ export const panicReasons = {
|
|
|
13
13
|
81: 'Attempted to call a zero-initialized variable of internal function type.',
|
|
14
14
|
} as const
|
|
15
15
|
|
|
16
|
-
export const solidityError
|
|
16
|
+
export const solidityError = {
|
|
17
17
|
inputs: [
|
|
18
18
|
{
|
|
19
19
|
name: 'message',
|
|
@@ -22,8 +22,8 @@ export const solidityError: AbiError = {
|
|
|
22
22
|
],
|
|
23
23
|
name: 'Error',
|
|
24
24
|
type: 'error',
|
|
25
|
-
}
|
|
26
|
-
export const solidityPanic
|
|
25
|
+
} as const satisfies AbiError
|
|
26
|
+
export const solidityPanic = {
|
|
27
27
|
inputs: [
|
|
28
28
|
{
|
|
29
29
|
name: 'reason',
|
|
@@ -32,4 +32,4 @@ export const solidityPanic: AbiError = {
|
|
|
32
32
|
],
|
|
33
33
|
name: 'Panic',
|
|
34
34
|
type: 'error',
|
|
35
|
-
}
|
|
35
|
+
} as const satisfies AbiError
|
package/errors/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '2.
|
|
1
|
+
export const version = '2.50.3'
|
package/index.ts
CHANGED
|
@@ -1465,6 +1465,10 @@ export {
|
|
|
1465
1465
|
offchainLookupAbiItem,
|
|
1466
1466
|
offchainLookupSignature,
|
|
1467
1467
|
} from './utils/ccip.js'
|
|
1468
|
+
export {
|
|
1469
|
+
type CcipReadTunnelParameters,
|
|
1470
|
+
ccipReadTunnel,
|
|
1471
|
+
} from './utils/ccipTunnel.js'
|
|
1468
1472
|
export {
|
|
1469
1473
|
type AssertCurrentChainErrorType,
|
|
1470
1474
|
type AssertCurrentChainParameters,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "viem",
|
|
3
3
|
"description": "TypeScript Interface for Ethereum",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.50.3",
|
|
5
5
|
"main": "./_cjs/index.js",
|
|
6
6
|
"module": "./_esm/index.js",
|
|
7
7
|
"types": "./_types/index.d.ts",
|
|
@@ -124,6 +124,11 @@
|
|
|
124
124
|
"import": "./_esm/tempo/actions/index.js",
|
|
125
125
|
"default": "./_cjs/tempo/actions/index.js"
|
|
126
126
|
},
|
|
127
|
+
"./tempo/chains": {
|
|
128
|
+
"types": "./_types/tempo/chains/index.d.ts",
|
|
129
|
+
"import": "./_esm/tempo/chains/index.js",
|
|
130
|
+
"default": "./_cjs/tempo/chains/index.js"
|
|
131
|
+
},
|
|
127
132
|
"./tempo/zones": {
|
|
128
133
|
"types": "./_types/tempo/zones/index.d.ts",
|
|
129
134
|
"import": "./_esm/tempo/zones/index.js",
|
|
@@ -196,6 +201,9 @@
|
|
|
196
201
|
"tempo/actions": [
|
|
197
202
|
"./_types/tempo/actions/index.d.ts"
|
|
198
203
|
],
|
|
204
|
+
"tempo/chains": [
|
|
205
|
+
"./_types/tempo/chains/index.d.ts"
|
|
206
|
+
],
|
|
199
207
|
"utils": [
|
|
200
208
|
"./_types/utils/index.d.ts"
|
|
201
209
|
],
|
|
@@ -222,8 +230,8 @@
|
|
|
222
230
|
"@scure/bip39": "1.6.0",
|
|
223
231
|
"abitype": "1.2.3",
|
|
224
232
|
"isows": "1.0.7",
|
|
225
|
-
"ox": "0.14.
|
|
226
|
-
"ws": "8.
|
|
233
|
+
"ox": "0.14.22",
|
|
234
|
+
"ws": "8.20.1"
|
|
227
235
|
},
|
|
228
236
|
"license": "MIT",
|
|
229
237
|
"homepage": "https://viem.sh",
|
package/tempo/Chain.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// biome-ignore lint/performance/noBarrelFile: namespace module
|
|
2
|
+
export {
|
|
3
|
+
tempo,
|
|
4
|
+
tempo as mainnet,
|
|
5
|
+
tempo as tempoMainnet,
|
|
6
|
+
} from '../chains/definitions/tempo.js'
|
|
7
|
+
export {
|
|
8
|
+
tempoDevnet,
|
|
9
|
+
tempoDevnet as devnet,
|
|
10
|
+
} from '../chains/definitions/tempoDevnet.js'
|
|
11
|
+
export {
|
|
12
|
+
tempoLocalnet,
|
|
13
|
+
tempoLocalnet as localnet,
|
|
14
|
+
} from '../chains/definitions/tempoLocalnet.js'
|
|
15
|
+
export {
|
|
16
|
+
tempoModerato,
|
|
17
|
+
tempoModerato as moderato,
|
|
18
|
+
tempoModerato as tempoTestnet,
|
|
19
|
+
tempoModerato as testnet,
|
|
20
|
+
} from '../chains/definitions/tempoModerato.js'
|