viem 1.20.1 → 1.20.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +9 -3
  3. package/_cjs/actions/index.js +4 -2
  4. package/_cjs/actions/index.js.map +1 -1
  5. package/_cjs/chains/celo/formatters.js +0 -10
  6. package/_cjs/chains/celo/formatters.js.map +1 -1
  7. package/_cjs/chains/definitions/taikoJolnir.js +3 -3
  8. package/_cjs/chains/definitions/taikoJolnir.js.map +1 -1
  9. package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js +38 -0
  10. package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -0
  11. package/_cjs/chains/definitions/zkSyncTestnet.js.map +1 -1
  12. package/_cjs/chains/index.js +3 -1
  13. package/_cjs/chains/index.js.map +1 -1
  14. package/_cjs/chains/utils/index.js.map +1 -1
  15. package/_cjs/errors/version.js +1 -1
  16. package/_esm/actions/index.js +1 -0
  17. package/_esm/actions/index.js.map +1 -1
  18. package/_esm/chains/celo/formatters.js +0 -10
  19. package/_esm/chains/celo/formatters.js.map +1 -1
  20. package/_esm/chains/definitions/taikoJolnir.js +3 -3
  21. package/_esm/chains/definitions/taikoJolnir.js.map +1 -1
  22. package/_esm/chains/definitions/zkSyncSepoliaTestnet.js +35 -0
  23. package/_esm/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -0
  24. package/_esm/chains/definitions/zkSyncTestnet.js +1 -0
  25. package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
  26. package/_esm/chains/index.js +1 -0
  27. package/_esm/chains/index.js.map +1 -1
  28. package/_esm/chains/utils/index.js.map +1 -1
  29. package/_esm/errors/version.js +1 -1
  30. package/_types/actions/index.d.ts +1 -0
  31. package/_types/actions/index.d.ts.map +1 -1
  32. package/_types/chains/celo/formatters.d.ts +1 -24
  33. package/_types/chains/celo/formatters.d.ts.map +1 -1
  34. package/_types/chains/celo/types.d.ts +2 -14
  35. package/_types/chains/celo/types.d.ts.map +1 -1
  36. package/_types/chains/definitions/celo.d.ts +0 -23
  37. package/_types/chains/definitions/celo.d.ts.map +1 -1
  38. package/_types/chains/definitions/celoAlfajores.d.ts +0 -23
  39. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
  40. package/_types/chains/definitions/celoCannoli.d.ts +0 -23
  41. package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
  42. package/_types/chains/definitions/taikoJolnir.d.ts +3 -3
  43. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +527 -0
  44. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts.map +1 -0
  45. package/_types/chains/definitions/zkSyncTestnet.d.ts +1 -0
  46. package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
  47. package/_types/chains/index.d.ts +1 -0
  48. package/_types/chains/index.d.ts.map +1 -1
  49. package/_types/chains/utils/index.d.ts +1 -1
  50. package/_types/chains/utils/index.d.ts.map +1 -1
  51. package/_types/errors/version.d.ts +1 -1
  52. package/actions/index.ts +5 -0
  53. package/chains/celo/formatters.ts +0 -14
  54. package/chains/celo/types.ts +0 -18
  55. package/chains/definitions/taikoJolnir.ts +3 -3
  56. package/chains/definitions/zkSyncSepoliaTestnet.ts +38 -0
  57. package/chains/definitions/zkSyncTestnet.ts +1 -0
  58. package/chains/index.ts +1 -0
  59. package/chains/utils/index.ts +0 -4
  60. package/errors/version.ts +1 -1
  61. package/package.json +1 -1
@@ -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
@@ -2,15 +2,15 @@ import { defineChain } from '../../utils/chain/defineChain.js'
2
2
 
3
3
  export const taikoJolnir = /*#__PURE__*/ defineChain({
4
4
  id: 167007,
5
- name: 'Taiko Jolnir L2',
5
+ name: 'Taiko Jolnir (Alpha-5 Testnet)',
6
6
  network: 'tko-jolnir',
7
7
  nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
8
8
  rpcUrls: {
9
9
  default: {
10
- http: ['https://jolnir.taiko.xyz'],
10
+ http: ['https://rpc.jolnir.taiko.xyz'],
11
11
  },
12
12
  public: {
13
- http: ['https://jolnir.taiko.xyz'],
13
+ http: ['https://rpc.jolnir.taiko.xyz'],
14
14
  },
15
15
  },
16
16
  blockExplorers: {
@@ -0,0 +1,38 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+ import { formattersZkSync } from '../zksync/formatters.js'
3
+ import { serializersZkSync } from '../zksync/serializers.js'
4
+
5
+ export const zkSyncSepoliaTestnet = /*#__PURE__*/ defineChain(
6
+ {
7
+ id: 300,
8
+ name: 'zkSync Sepolia Testnet',
9
+ network: 'zksync-sepolia-testnet',
10
+ nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
11
+ rpcUrls: {
12
+ default: {
13
+ http: ['https://sepolia.era.zksync.dev'],
14
+ webSocket: ['wss://sepolia.era.zksync.dev/ws'],
15
+ },
16
+ public: {
17
+ http: ['https://sepolia.era.zksync.dev'],
18
+ webSocket: ['wss://sepolia.era.zksync.dev/ws'],
19
+ },
20
+ },
21
+ blockExplorers: {
22
+ default: {
23
+ name: 'zkExplorer',
24
+ url: 'https://sepolia.explorer.zksync.io/',
25
+ },
26
+ },
27
+ contracts: {
28
+ multicall3: {
29
+ address: '0xF9cda624FBC7e059355ce98a31693d299FACd963',
30
+ },
31
+ },
32
+ testnet: true,
33
+ },
34
+ {
35
+ serializers: serializersZkSync,
36
+ formatters: formattersZkSync,
37
+ },
38
+ )
@@ -2,6 +2,7 @@ import { defineChain } from '../../utils/chain/defineChain.js'
2
2
  import { formattersZkSync } from '../zksync/formatters.js'
3
3
  import { serializersZkSync } from '../zksync/serializers.js'
4
4
 
5
+ /** @deprecated Use `zkSyncSepoliaTestnet` */
5
6
  export const zkSyncTestnet = /*#__PURE__*/ defineChain(
6
7
  {
7
8
  id: 280,
package/chains/index.ts CHANGED
@@ -166,6 +166,7 @@ export { xdcTestnet } from './definitions/xdcTestnet.js'
166
166
  export { zhejiang } from './definitions/zhejiang.js'
167
167
  export { zkSync } from './definitions/zkSync.js'
168
168
  export { zkSyncTestnet } from './definitions/zkSyncTestnet.js'
169
+ export { zkSyncSepoliaTestnet } from './definitions/zkSyncSepoliaTestnet.js'
169
170
  export { zetachainAthensTestnet } from './definitions/zetachainAthensTestnet.js'
170
171
  export { zilliqa } from './definitions/zilliqa.js'
171
172
  export { zilliqaTestnet } from './definitions/zilliqaTestnet.js'
@@ -27,12 +27,8 @@ export type {
27
27
  CeloRpcBlock,
28
28
  CeloRpcBlockOverrides,
29
29
  CeloRpcTransaction,
30
- CeloRpcTransactionReceipt,
31
- CeloRpcTransactionReceiptOverrides,
32
30
  CeloRpcTransactionRequest,
33
31
  CeloTransaction,
34
- CeloTransactionReceipt,
35
- CeloTransactionReceiptOverrides,
36
32
  CeloTransactionRequest,
37
33
  CeloTransactionSerializable,
38
34
  CeloTransactionSerialized,
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '1.20.0'
1
+ export const version = '1.20.3'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "1.20.1",
4
+ "version": "1.20.3",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",