viem 2.0.0-rc.0 → 2.0.0-rc.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/CHANGELOG.md +10 -0
- package/_cjs/actions/public/getFilterChanges.js +3 -2
- package/_cjs/actions/public/getFilterChanges.js.map +1 -1
- package/_cjs/actions/public/getFilterLogs.js +3 -2
- package/_cjs/actions/public/getFilterLogs.js.map +1 -1
- package/_cjs/actions/public/getLogs.js +3 -2
- package/_cjs/actions/public/getLogs.js.map +1 -1
- package/_cjs/actions/public/verifyTypedData.js +2 -1
- package/_cjs/actions/public/verifyTypedData.js.map +1 -1
- package/_cjs/chains/celo/formatters.js +0 -10
- package/_cjs/chains/celo/formatters.js.map +1 -1
- package/_cjs/chains/definitions/astar.js +0 -1
- package/_cjs/chains/definitions/astar.js.map +1 -1
- package/_cjs/chains/definitions/astarZkatana.js +0 -6
- package/_cjs/chains/definitions/astarZkatana.js.map +1 -1
- package/_cjs/chains/definitions/baseSepolia.js +0 -3
- package/_cjs/chains/definitions/baseSepolia.js.map +1 -1
- package/_cjs/chains/definitions/bscTestnet.js +0 -1
- package/_cjs/chains/definitions/bscTestnet.js.map +1 -1
- package/_cjs/chains/definitions/confluxESpaceTestnet.js +0 -4
- package/_cjs/chains/definitions/confluxESpaceTestnet.js.map +1 -1
- package/_cjs/chains/definitions/fantomSonicTestnet.js +0 -1
- package/_cjs/chains/definitions/fantomSonicTestnet.js.map +1 -1
- package/_cjs/chains/definitions/kava.js +0 -1
- package/_cjs/chains/definitions/kava.js.map +1 -1
- package/_cjs/chains/definitions/kavaTestnet.js +0 -1
- package/_cjs/chains/definitions/kavaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/klaytnBaobab.js +0 -1
- package/_cjs/chains/definitions/klaytnBaobab.js.map +1 -1
- package/_cjs/chains/definitions/lukso.js +0 -4
- package/_cjs/chains/definitions/lukso.js.map +1 -1
- package/_cjs/chains/definitions/manta.js +0 -1
- package/_cjs/chains/definitions/manta.js.map +1 -1
- package/_cjs/chains/definitions/mantaTestnet.js +0 -1
- package/_cjs/chains/definitions/mantaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/neonMainnet.js +0 -3
- package/_cjs/chains/definitions/neonMainnet.js.map +1 -1
- package/_cjs/chains/definitions/pgn.js +0 -3
- package/_cjs/chains/definitions/pgn.js.map +1 -1
- package/_cjs/chains/definitions/pgnTestnet.js +0 -3
- package/_cjs/chains/definitions/pgnTestnet.js.map +1 -1
- package/_cjs/chains/definitions/rootstock.js +0 -1
- package/_cjs/chains/definitions/rootstock.js.map +1 -1
- package/_cjs/chains/definitions/sapphire.js +0 -4
- package/_cjs/chains/definitions/sapphire.js.map +1 -1
- package/_cjs/chains/definitions/sapphireTestnet.js +0 -4
- package/_cjs/chains/definitions/sapphireTestnet.js.map +1 -1
- package/_cjs/chains/definitions/shibarium.js +0 -3
- package/_cjs/chains/definitions/shibarium.js.map +1 -1
- package/_cjs/chains/definitions/shimmer.js +0 -3
- package/_cjs/chains/definitions/shimmer.js.map +1 -1
- package/_cjs/chains/definitions/shimmerTestnet.js +0 -3
- package/_cjs/chains/definitions/shimmerTestnet.js.map +1 -1
- package/_cjs/chains/definitions/taikoJolnir.js +2 -2
- package/_cjs/chains/definitions/taikoJolnir.js.map +1 -1
- package/_cjs/chains/definitions/tenet.js +0 -1
- package/_cjs/chains/definitions/tenet.js.map +1 -1
- package/_cjs/chains/definitions/zilliqa.js +0 -3
- package/_cjs/chains/definitions/zilliqa.js.map +1 -1
- package/_cjs/chains/definitions/zilliqaTestnet.js +0 -3
- package/_cjs/chains/definitions/zilliqaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js +0 -4
- package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zkSyncTestnet.js +0 -4
- package/_cjs/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zoraSepolia.js +0 -4
- package/_cjs/chains/definitions/zoraSepolia.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_esm/actions/public/getFilterChanges.js +3 -2
- package/_esm/actions/public/getFilterChanges.js.map +1 -1
- package/_esm/actions/public/getFilterLogs.js +3 -2
- package/_esm/actions/public/getFilterLogs.js.map +1 -1
- package/_esm/actions/public/getLogs.js +3 -2
- package/_esm/actions/public/getLogs.js.map +1 -1
- package/_esm/actions/public/verifyTypedData.js +2 -1
- package/_esm/actions/public/verifyTypedData.js.map +1 -1
- package/_esm/chains/celo/formatters.js +0 -10
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/definitions/astar.js +0 -1
- package/_esm/chains/definitions/astar.js.map +1 -1
- package/_esm/chains/definitions/astarZkatana.js +0 -6
- package/_esm/chains/definitions/astarZkatana.js.map +1 -1
- package/_esm/chains/definitions/baseSepolia.js +0 -3
- package/_esm/chains/definitions/baseSepolia.js.map +1 -1
- package/_esm/chains/definitions/bscTestnet.js +0 -1
- package/_esm/chains/definitions/bscTestnet.js.map +1 -1
- package/_esm/chains/definitions/confluxESpaceTestnet.js +0 -4
- package/_esm/chains/definitions/confluxESpaceTestnet.js.map +1 -1
- package/_esm/chains/definitions/fantomSonicTestnet.js +0 -1
- package/_esm/chains/definitions/fantomSonicTestnet.js.map +1 -1
- package/_esm/chains/definitions/kava.js +0 -1
- package/_esm/chains/definitions/kava.js.map +1 -1
- package/_esm/chains/definitions/kavaTestnet.js +0 -1
- package/_esm/chains/definitions/kavaTestnet.js.map +1 -1
- package/_esm/chains/definitions/klaytnBaobab.js +0 -1
- package/_esm/chains/definitions/klaytnBaobab.js.map +1 -1
- package/_esm/chains/definitions/lukso.js +0 -4
- package/_esm/chains/definitions/lukso.js.map +1 -1
- package/_esm/chains/definitions/manta.js +0 -1
- package/_esm/chains/definitions/manta.js.map +1 -1
- package/_esm/chains/definitions/mantaTestnet.js +0 -1
- package/_esm/chains/definitions/mantaTestnet.js.map +1 -1
- package/_esm/chains/definitions/neonMainnet.js +0 -3
- package/_esm/chains/definitions/neonMainnet.js.map +1 -1
- package/_esm/chains/definitions/pgn.js +0 -3
- package/_esm/chains/definitions/pgn.js.map +1 -1
- package/_esm/chains/definitions/pgnTestnet.js +0 -3
- package/_esm/chains/definitions/pgnTestnet.js.map +1 -1
- package/_esm/chains/definitions/rootstock.js +0 -1
- package/_esm/chains/definitions/rootstock.js.map +1 -1
- package/_esm/chains/definitions/sapphire.js +0 -4
- package/_esm/chains/definitions/sapphire.js.map +1 -1
- package/_esm/chains/definitions/sapphireTestnet.js +0 -4
- package/_esm/chains/definitions/sapphireTestnet.js.map +1 -1
- package/_esm/chains/definitions/shibarium.js +0 -3
- package/_esm/chains/definitions/shibarium.js.map +1 -1
- package/_esm/chains/definitions/shimmer.js +0 -3
- package/_esm/chains/definitions/shimmer.js.map +1 -1
- package/_esm/chains/definitions/shimmerTestnet.js +0 -3
- package/_esm/chains/definitions/shimmerTestnet.js.map +1 -1
- package/_esm/chains/definitions/taikoJolnir.js +2 -2
- package/_esm/chains/definitions/taikoJolnir.js.map +1 -1
- package/_esm/chains/definitions/tenet.js +0 -1
- package/_esm/chains/definitions/tenet.js.map +1 -1
- package/_esm/chains/definitions/zilliqa.js +0 -3
- package/_esm/chains/definitions/zilliqa.js.map +1 -1
- package/_esm/chains/definitions/zilliqaTestnet.js +0 -3
- package/_esm/chains/definitions/zilliqaTestnet.js.map +1 -1
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js +0 -4
- package/_esm/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -1
- package/_esm/chains/definitions/zkSyncTestnet.js +0 -4
- package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_esm/chains/definitions/zoraSepolia.js +0 -4
- package/_esm/chains/definitions/zoraSepolia.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
- package/_types/actions/public/verifyTypedData.d.ts +2 -4
- package/_types/actions/public/verifyTypedData.d.ts.map +1 -1
- package/_types/chains/celo/chainConfig.d.ts +154 -177
- package/_types/chains/celo/chainConfig.d.ts.map +1 -1
- package/_types/chains/celo/formatters.d.ts +155 -178
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/index.d.ts +1 -1
- package/_types/chains/celo/index.d.ts.map +1 -1
- package/_types/chains/celo/types.d.ts +2 -14
- package/_types/chains/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/astar.d.ts +0 -3
- package/_types/chains/definitions/astar.d.ts.map +1 -1
- package/_types/chains/definitions/astarZkatana.d.ts +0 -3
- package/_types/chains/definitions/astarZkatana.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +116 -116
- package/_types/chains/definitions/baseGoerli.d.ts +116 -116
- package/_types/chains/definitions/baseSepolia.d.ts +116 -119
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/bscTestnet.d.ts +0 -3
- package/_types/chains/definitions/bscTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +154 -177
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +154 -177
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/celoCannoli.d.ts +154 -177
- package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts +0 -4
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/fantomSonicTestnet.d.ts +0 -3
- package/_types/chains/definitions/fantomSonicTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/kava.d.ts +0 -3
- package/_types/chains/definitions/kava.d.ts.map +1 -1
- package/_types/chains/definitions/kavaTestnet.d.ts +0 -3
- package/_types/chains/definitions/kavaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/klaytnBaobab.d.ts +0 -3
- package/_types/chains/definitions/klaytnBaobab.d.ts.map +1 -1
- package/_types/chains/definitions/lukso.d.ts +0 -4
- package/_types/chains/definitions/lukso.d.ts.map +1 -1
- package/_types/chains/definitions/manta.d.ts +0 -3
- package/_types/chains/definitions/manta.d.ts.map +1 -1
- package/_types/chains/definitions/mantaTestnet.d.ts +0 -3
- package/_types/chains/definitions/mantaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/neonMainnet.d.ts +0 -3
- package/_types/chains/definitions/neonMainnet.d.ts.map +1 -1
- package/_types/chains/definitions/optimism.d.ts +116 -116
- package/_types/chains/definitions/optimismGoerli.d.ts +116 -116
- package/_types/chains/definitions/optimismSepolia.d.ts +116 -116
- package/_types/chains/definitions/pgn.d.ts +116 -119
- package/_types/chains/definitions/pgn.d.ts.map +1 -1
- package/_types/chains/definitions/pgnTestnet.d.ts +116 -119
- package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/rootstock.d.ts +0 -3
- package/_types/chains/definitions/rootstock.d.ts.map +1 -1
- package/_types/chains/definitions/sapphire.d.ts +0 -4
- package/_types/chains/definitions/sapphire.d.ts.map +1 -1
- package/_types/chains/definitions/sapphireTestnet.d.ts +0 -4
- package/_types/chains/definitions/sapphireTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/shibarium.d.ts +0 -3
- package/_types/chains/definitions/shibarium.d.ts.map +1 -1
- package/_types/chains/definitions/shimmer.d.ts +0 -3
- package/_types/chains/definitions/shimmer.d.ts.map +1 -1
- package/_types/chains/definitions/shimmerTestnet.d.ts +0 -3
- package/_types/chains/definitions/shimmerTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/taikoJolnir.d.ts +2 -2
- package/_types/chains/definitions/tenet.d.ts +0 -3
- package/_types/chains/definitions/tenet.d.ts.map +1 -1
- package/_types/chains/definitions/zilliqa.d.ts +0 -3
- package/_types/chains/definitions/zilliqa.d.ts.map +1 -1
- package/_types/chains/definitions/zilliqaTestnet.d.ts +0 -3
- package/_types/chains/definitions/zilliqaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zkSync.d.ts +27 -27
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +27 -31
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncTestnet.d.ts +27 -31
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zora.d.ts +116 -116
- package/_types/chains/definitions/zoraSepolia.d.ts +116 -120
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zoraTestnet.d.ts +116 -116
- package/_types/chains/opStack/chainConfig.d.ts +116 -116
- package/_types/chains/opStack/formatters.d.ts +116 -116
- package/_types/chains/zksync/chainConfig.d.ts +27 -27
- package/_types/chains/zksync/formatters.d.ts +27 -27
- package/_types/errors/version.d.ts +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/actions/public/getFilterChanges.ts +3 -5
- package/actions/public/getFilterLogs.ts +3 -3
- package/actions/public/getLogs.ts +3 -3
- package/actions/public/verifyTypedData.ts +13 -8
- package/chains/celo/formatters.ts +0 -14
- package/chains/celo/index.ts +0 -4
- package/chains/celo/types.ts +0 -18
- package/chains/definitions/astar.ts +0 -1
- package/chains/definitions/astarZkatana.ts +0 -6
- package/chains/definitions/baseSepolia.ts +0 -3
- package/chains/definitions/bscTestnet.ts +0 -1
- package/chains/definitions/confluxESpaceTestnet.ts +0 -4
- package/chains/definitions/fantomSonicTestnet.ts +0 -1
- package/chains/definitions/kava.ts +0 -1
- package/chains/definitions/kavaTestnet.ts +0 -1
- package/chains/definitions/klaytnBaobab.ts +0 -1
- package/chains/definitions/lukso.ts +0 -4
- package/chains/definitions/manta.ts +0 -1
- package/chains/definitions/mantaTestnet.ts +0 -1
- package/chains/definitions/neonMainnet.ts +0 -3
- package/chains/definitions/pgn.ts +0 -3
- package/chains/definitions/pgnTestnet.ts +0 -3
- package/chains/definitions/rootstock.ts +0 -1
- package/chains/definitions/sapphire.ts +0 -4
- package/chains/definitions/sapphireTestnet.ts +0 -4
- package/chains/definitions/shibarium.ts +0 -3
- package/chains/definitions/shimmer.ts +0 -3
- package/chains/definitions/shimmerTestnet.ts +0 -3
- package/chains/definitions/taikoJolnir.ts +2 -2
- package/chains/definitions/tenet.ts +0 -1
- package/chains/definitions/zilliqa.ts +0 -3
- package/chains/definitions/zilliqaTestnet.ts +0 -3
- package/chains/definitions/zkSyncSepoliaTestnet.ts +0 -4
- package/chains/definitions/zkSyncTestnet.ts +0 -4
- package/chains/definitions/zoraSepolia.ts +0 -4
- package/errors/version.ts +1 -1
- package/package.json +1 -1
@@ -191,10 +191,9 @@ export async function getFilterChanges<
|
|
191
191
|
TToBlock
|
192
192
|
>
|
193
193
|
|
194
|
+
const formattedLogs = logs.map((log) => formatLog(log as RpcLog))
|
194
195
|
if (!('abi' in filter) || !filter.abi)
|
195
|
-
return
|
196
|
-
formatLog(log as RpcLog),
|
197
|
-
) as GetFilterChangesReturnType<
|
196
|
+
return formattedLogs as GetFilterChangesReturnType<
|
198
197
|
TFilterType,
|
199
198
|
TAbi,
|
200
199
|
TEventName,
|
@@ -202,10 +201,9 @@ export async function getFilterChanges<
|
|
202
201
|
TFromBlock,
|
203
202
|
TToBlock
|
204
203
|
>
|
205
|
-
|
206
204
|
return parseEventLogs({
|
207
205
|
abi: filter.abi,
|
208
|
-
logs:
|
206
|
+
logs: formattedLogs,
|
209
207
|
strict,
|
210
208
|
}) as unknown as GetFilterChangesReturnType<
|
211
209
|
TFilterType,
|
@@ -96,18 +96,18 @@ export async function getFilterLogs<
|
|
96
96
|
params: [filter.id],
|
97
97
|
})
|
98
98
|
|
99
|
+
const formattedLogs = logs.map((log) => formatLog(log))
|
99
100
|
if (!filter.abi)
|
100
|
-
return
|
101
|
+
return formattedLogs as GetFilterLogsReturnType<
|
101
102
|
TAbi,
|
102
103
|
TEventName,
|
103
104
|
TStrict,
|
104
105
|
TFromBlock,
|
105
106
|
TToBlock
|
106
107
|
>
|
107
|
-
|
108
108
|
return parseEventLogs({
|
109
109
|
abi: filter.abi,
|
110
|
-
logs,
|
110
|
+
logs: formattedLogs,
|
111
111
|
strict,
|
112
112
|
}) as unknown as GetFilterLogsReturnType<
|
113
113
|
TAbi,
|
@@ -200,18 +200,18 @@ export async function getLogs<
|
|
200
200
|
})
|
201
201
|
}
|
202
202
|
|
203
|
+
const formattedLogs = logs.map((log) => formatLog(log))
|
203
204
|
if (!events)
|
204
|
-
return
|
205
|
+
return formattedLogs as GetLogsReturnType<
|
205
206
|
TAbiEvent,
|
206
207
|
TAbiEvents,
|
207
208
|
TStrict,
|
208
209
|
TFromBlock,
|
209
210
|
TToBlock
|
210
211
|
>
|
211
|
-
|
212
212
|
return parseEventLogs({
|
213
213
|
abi: events,
|
214
|
-
logs,
|
214
|
+
logs: formattedLogs,
|
215
215
|
strict,
|
216
216
|
}) as unknown as GetLogsReturnType<
|
217
217
|
TAbiEvent,
|
@@ -17,10 +17,10 @@ import {
|
|
17
17
|
} from './verifyHash.js'
|
18
18
|
|
19
19
|
export type VerifyTypedDataParameters<
|
20
|
-
|
21
|
-
|
20
|
+
typedData extends TypedData | Record<string, unknown> = TypedData,
|
21
|
+
primaryType extends keyof typedData | 'EIP712Domain' = keyof typedData,
|
22
22
|
> = Omit<VerifyHashParameters, 'hash'> &
|
23
|
-
TypedDataDefinition<
|
23
|
+
TypedDataDefinition<typedData, primaryType> & {
|
24
24
|
/** The address to verify the typed data for. */
|
25
25
|
address: Address
|
26
26
|
/** The signature to verify */
|
@@ -43,9 +43,15 @@ export type VerifyTypedDataErrorType =
|
|
43
43
|
* @param parameters - {@link VerifyTypedDataParameters}
|
44
44
|
* @returns Whether or not the signature is valid. {@link VerifyTypedDataReturnType}
|
45
45
|
*/
|
46
|
-
export async function verifyTypedData<
|
47
|
-
|
48
|
-
|
46
|
+
export async function verifyTypedData<
|
47
|
+
const typedData extends TypedData | Record<string, unknown>,
|
48
|
+
primaryType extends keyof typedData | 'EIP712Domain',
|
49
|
+
chain extends Chain | undefined,
|
50
|
+
>(
|
51
|
+
client: Client<Transport, chain>,
|
52
|
+
parameters: VerifyTypedDataParameters<typedData, primaryType>,
|
53
|
+
): Promise<VerifyTypedDataReturnType> {
|
54
|
+
const {
|
49
55
|
address,
|
50
56
|
signature,
|
51
57
|
message,
|
@@ -53,8 +59,7 @@ export async function verifyTypedData<TChain extends Chain | undefined>(
|
|
53
59
|
types,
|
54
60
|
domain,
|
55
61
|
...callRequest
|
56
|
-
}
|
57
|
-
): Promise<VerifyTypedDataReturnType> {
|
62
|
+
} = parameters as VerifyTypedDataParameters
|
58
63
|
const hash = hashTypedData({ message, primaryType, types, domain })
|
59
64
|
return verifyHash(client, {
|
60
65
|
address,
|
@@ -8,15 +8,12 @@ import {
|
|
8
8
|
defineTransaction,
|
9
9
|
formatTransaction,
|
10
10
|
} from '../../utils/formatters/transaction.js'
|
11
|
-
import { defineTransactionReceipt } from '../../utils/formatters/transactionReceipt.js'
|
12
11
|
import { defineTransactionRequest } from '../../utils/formatters/transactionRequest.js'
|
13
12
|
import type {
|
14
13
|
CeloBlockOverrides,
|
15
14
|
CeloRpcTransaction,
|
16
|
-
CeloRpcTransactionReceiptOverrides,
|
17
15
|
CeloRpcTransactionRequest,
|
18
16
|
CeloTransaction,
|
19
|
-
CeloTransactionReceiptOverrides,
|
20
17
|
CeloTransactionRequest,
|
21
18
|
} from './types.js'
|
22
19
|
import { isCIP42, isCIP64 } from './utils.js'
|
@@ -69,17 +66,6 @@ export const formatters = {
|
|
69
66
|
return transaction
|
70
67
|
},
|
71
68
|
}),
|
72
|
-
transactionReceipt: /*#__PURE__*/ defineTransactionReceipt({
|
73
|
-
format(
|
74
|
-
args: CeloRpcTransactionReceiptOverrides,
|
75
|
-
): CeloTransactionReceiptOverrides {
|
76
|
-
return {
|
77
|
-
feeCurrency: args.feeCurrency,
|
78
|
-
gatewayFee: args.gatewayFee ? hexToBigInt(args.gatewayFee) : null,
|
79
|
-
gatewayFeeRecipient: args.gatewayFeeRecipient,
|
80
|
-
}
|
81
|
-
},
|
82
|
-
}),
|
83
69
|
|
84
70
|
transactionRequest: /*#__PURE__*/ defineTransactionRequest({
|
85
71
|
format(args: CeloTransactionRequest): CeloRpcTransactionRequest {
|
package/chains/celo/index.ts
CHANGED
@@ -10,12 +10,8 @@ export type {
|
|
10
10
|
CeloRpcBlock,
|
11
11
|
CeloRpcBlockOverrides,
|
12
12
|
CeloRpcTransaction,
|
13
|
-
CeloRpcTransactionReceipt,
|
14
|
-
CeloRpcTransactionReceiptOverrides,
|
15
13
|
CeloRpcTransactionRequest,
|
16
14
|
CeloTransaction,
|
17
|
-
CeloTransactionReceipt,
|
18
|
-
CeloTransactionReceiptOverrides,
|
19
15
|
CeloTransactionRequest,
|
20
16
|
CeloTransactionSerializable,
|
21
17
|
CeloTransactionSerialized,
|
package/chains/celo/types.ts
CHANGED
@@ -8,7 +8,6 @@ import type {
|
|
8
8
|
Quantity,
|
9
9
|
RpcBlock,
|
10
10
|
RpcTransaction as RpcTransaction_,
|
11
|
-
RpcTransactionReceipt,
|
12
11
|
RpcTransactionRequest as RpcTransactionRequest_,
|
13
12
|
TransactionType,
|
14
13
|
} from '../../types/rpc.js'
|
@@ -16,7 +15,6 @@ import type {
|
|
16
15
|
AccessList,
|
17
16
|
Transaction as Transaction_,
|
18
17
|
TransactionBase,
|
19
|
-
TransactionReceipt,
|
20
18
|
TransactionRequest as TransactionRequest_,
|
21
19
|
TransactionRequestBase,
|
22
20
|
TransactionSerializable,
|
@@ -76,14 +74,6 @@ export type CeloRpcTransaction<TPending extends boolean = boolean> =
|
|
76
74
|
| RpcTransactionCIP42<TPending>
|
77
75
|
| RpcTransactionCIP64<TPending>
|
78
76
|
|
79
|
-
export type CeloRpcTransactionReceiptOverrides = {
|
80
|
-
feeCurrency: Address | null
|
81
|
-
gatewayFee: Hex | null
|
82
|
-
gatewayFeeRecipient: Address | null
|
83
|
-
}
|
84
|
-
export type CeloRpcTransactionReceipt = RpcTransactionReceipt &
|
85
|
-
CeloRpcTransactionReceiptOverrides
|
86
|
-
|
87
77
|
export type CeloRpcTransactionRequest =
|
88
78
|
| RpcTransactionRequest
|
89
79
|
| RpcTransactionRequestCIP42
|
@@ -94,14 +84,6 @@ export type CeloTransaction<TPending extends boolean = boolean> =
|
|
94
84
|
| TransactionCIP42<TPending>
|
95
85
|
| TransactionCIP64<TPending>
|
96
86
|
|
97
|
-
export type CeloTransactionReceiptOverrides = {
|
98
|
-
feeCurrency: Address | null
|
99
|
-
gatewayFee: bigint | null
|
100
|
-
gatewayFeeRecipient: Address | null
|
101
|
-
}
|
102
|
-
export type CeloTransactionReceipt = TransactionReceipt &
|
103
|
-
CeloTransactionReceiptOverrides
|
104
|
-
|
105
87
|
export type CeloTransactionRequest =
|
106
88
|
| TransactionRequest
|
107
89
|
| TransactionRequestCIP42
|
@@ -12,12 +12,6 @@ export const astarZkatana = /*#__PURE__*/ defineChain({
|
|
12
12
|
'https://rpc.startale.com/zkatana',
|
13
13
|
],
|
14
14
|
},
|
15
|
-
public: {
|
16
|
-
http: [
|
17
|
-
'https://rpc.zkatana.gelato.digital',
|
18
|
-
'https://rpc.startale.com/zkatana',
|
19
|
-
],
|
20
|
-
},
|
21
15
|
},
|
22
16
|
blockExplorers: {
|
23
17
|
blockscout: {
|
@@ -10,7 +10,6 @@ export const bscTestnet = /*#__PURE__*/ defineChain({
|
|
10
10
|
},
|
11
11
|
rpcUrls: {
|
12
12
|
default: { http: ['https://data-seed-prebsc-1-s1.bnbchain.org:8545'] },
|
13
|
-
public: { http: ['https://data-seed-prebsc-1-s1.bnbchain.org:8545'] },
|
14
13
|
},
|
15
14
|
blockExplorers: {
|
16
15
|
default: { name: 'BscScan', url: 'https://testnet.bscscan.com' },
|
@@ -11,10 +11,6 @@ export const confluxESpaceTestnet = /*#__PURE__*/ defineChain({
|
|
11
11
|
http: ['https://evmtestnet.confluxrpc.org'],
|
12
12
|
webSocket: ['wss://evmtestnet.confluxrpc.org/ws'],
|
13
13
|
},
|
14
|
-
public: {
|
15
|
-
http: ['https://evmtestnet.confluxrpc.org'],
|
16
|
-
webSocket: ['wss://evmtestnet.confluxrpc.org/ws'],
|
17
|
-
},
|
18
14
|
},
|
19
15
|
blockExplorers: {
|
20
16
|
default: {
|
@@ -11,7 +11,6 @@ export const klaytnBaobab = /*#__PURE__*/ defineChain({
|
|
11
11
|
},
|
12
12
|
rpcUrls: {
|
13
13
|
default: { http: ['https://public-en-baobab.klaytn.net'] },
|
14
|
-
public: { http: ['https://public-en-baobab.klaytn.net'] },
|
15
14
|
},
|
16
15
|
blockExplorers: {
|
17
16
|
etherscan: { name: 'KlaytnScope', url: 'https://baobab.klaytnscope.com' },
|
@@ -14,10 +14,6 @@ export const lukso = /*#__PURE__*/ defineChain({
|
|
14
14
|
http: ['https://rpc.mainnet.lukso.network'],
|
15
15
|
webSocket: ['wss://ws-rpc.mainnet.lukso.network'],
|
16
16
|
},
|
17
|
-
public: {
|
18
|
-
http: ['https://rpc.mainnet.lukso.network'],
|
19
|
-
webSocket: ['wss://ws-rpc.mainnet.lukso.network'],
|
20
|
-
},
|
21
17
|
},
|
22
18
|
blockExplorers: {
|
23
19
|
default: {
|
@@ -10,10 +10,6 @@ export const sapphire = /*#__PURE__*/ defineChain({
|
|
10
10
|
http: ['https://sapphire.oasis.io'],
|
11
11
|
webSocket: ['wss://sapphire.oasis.io/ws'],
|
12
12
|
},
|
13
|
-
public: {
|
14
|
-
http: ['https://sapphire.oasis.io'],
|
15
|
-
webSocket: ['wss://sapphire.oasis.io/ws'],
|
16
|
-
},
|
17
13
|
},
|
18
14
|
blockExplorers: {
|
19
15
|
default: {
|
@@ -10,10 +10,6 @@ export const sapphireTestnet = /*#__PURE__*/ defineChain({
|
|
10
10
|
http: ['https://testnet.sapphire.oasis.dev'],
|
11
11
|
webSocket: ['wss://testnet.sapphire.oasis.dev/ws'],
|
12
12
|
},
|
13
|
-
public: {
|
14
|
-
http: ['https://testnet.sapphire.oasis.dev'],
|
15
|
-
webSocket: ['wss://testnet.sapphire.oasis.dev/ws'],
|
16
|
-
},
|
17
13
|
},
|
18
14
|
blockExplorers: {
|
19
15
|
default: {
|
@@ -2,11 +2,11 @@ import { defineChain } from '../../utils/chain/defineChain.js'
|
|
2
2
|
|
3
3
|
export const taikoJolnir = /*#__PURE__*/ defineChain({
|
4
4
|
id: 167007,
|
5
|
-
name: 'Taiko Jolnir
|
5
|
+
name: 'Taiko Jolnir (Alpha-5 Testnet)',
|
6
6
|
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
7
7
|
rpcUrls: {
|
8
8
|
default: {
|
9
|
-
http: ['https://jolnir.taiko.xyz'],
|
9
|
+
http: ['https://rpc.jolnir.taiko.xyz'],
|
10
10
|
},
|
11
11
|
},
|
12
12
|
blockExplorers: {
|
@@ -12,10 +12,6 @@ export const zkSyncSepoliaTestnet = /*#__PURE__*/ defineChain({
|
|
12
12
|
http: ['https://sepolia.era.zksync.dev'],
|
13
13
|
webSocket: ['wss://sepolia.era.zksync.dev/ws'],
|
14
14
|
},
|
15
|
-
public: {
|
16
|
-
http: ['https://sepolia.era.zksync.dev'],
|
17
|
-
webSocket: ['wss://sepolia.era.zksync.dev/ws'],
|
18
|
-
},
|
19
15
|
},
|
20
16
|
blockExplorers: {
|
21
17
|
default: {
|
@@ -13,10 +13,6 @@ export const zkSyncTestnet = /*#__PURE__*/ defineChain({
|
|
13
13
|
http: ['https://testnet.era.zksync.dev'],
|
14
14
|
webSocket: ['wss://testnet.era.zksync.dev/ws'],
|
15
15
|
},
|
16
|
-
public: {
|
17
|
-
http: ['https://testnet.era.zksync.dev'],
|
18
|
-
webSocket: ['wss://testnet.era.zksync.dev/ws'],
|
19
|
-
},
|
20
16
|
},
|
21
17
|
blockExplorers: {
|
22
18
|
default: {
|
@@ -18,10 +18,6 @@ export const zoraSepolia = /*#__PURE__*/ defineChain({
|
|
18
18
|
http: ['https://sepolia.rpc.zora.energy'],
|
19
19
|
webSocket: ['wss://sepolia.rpc.zora.energy'],
|
20
20
|
},
|
21
|
-
public: {
|
22
|
-
http: ['https://sepolia.rpc.zora.energy'],
|
23
|
-
webSocket: ['wss://sepolia.rpc.zora.energy'],
|
24
|
-
},
|
25
21
|
},
|
26
22
|
blockExplorers: {
|
27
23
|
default: {
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '2.0.0-rc.
|
1
|
+
export const version = '2.0.0-rc.1'
|