viem 2.22.0 → 2.22.2

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 (54) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/_cjs/chains/definitions/blast.js +3 -0
  3. package/_cjs/chains/definitions/blast.js.map +1 -1
  4. package/_cjs/chains/definitions/humanode.js +28 -0
  5. package/_cjs/chains/definitions/humanode.js.map +1 -0
  6. package/_cjs/chains/definitions/humanodeTestnet5.js +21 -0
  7. package/_cjs/chains/definitions/humanodeTestnet5.js.map +1 -0
  8. package/_cjs/chains/definitions/rivalz.js +22 -0
  9. package/_cjs/chains/definitions/rivalz.js.map +1 -0
  10. package/_cjs/chains/index.js +13 -7
  11. package/_cjs/chains/index.js.map +1 -1
  12. package/_cjs/errors/version.js +1 -1
  13. package/_cjs/op-stack/chains.js +3 -1
  14. package/_cjs/op-stack/chains.js.map +1 -1
  15. package/_esm/chains/definitions/blast.js +3 -0
  16. package/_esm/chains/definitions/blast.js.map +1 -1
  17. package/_esm/chains/definitions/humanode.js +25 -0
  18. package/_esm/chains/definitions/humanode.js.map +1 -0
  19. package/_esm/chains/definitions/humanodeTestnet5.js +18 -0
  20. package/_esm/chains/definitions/humanodeTestnet5.js.map +1 -0
  21. package/_esm/chains/definitions/rivalz.js +19 -0
  22. package/_esm/chains/definitions/rivalz.js.map +1 -0
  23. package/_esm/chains/index.js +3 -0
  24. package/_esm/chains/index.js.map +1 -1
  25. package/_esm/errors/version.js +1 -1
  26. package/_esm/op-stack/chains.js +1 -0
  27. package/_esm/op-stack/chains.js.map +1 -1
  28. package/_types/chains/definitions/blast.d.ts +252 -2
  29. package/_types/chains/definitions/blast.d.ts.map +1 -1
  30. package/_types/chains/definitions/humanode.d.ts +34 -0
  31. package/_types/chains/definitions/humanode.d.ts.map +1 -0
  32. package/_types/chains/definitions/humanodeTestnet5.d.ts +39 -0
  33. package/_types/chains/definitions/humanodeTestnet5.d.ts.map +1 -0
  34. package/_types/chains/definitions/rivalz.d.ts +37 -0
  35. package/_types/chains/definitions/rivalz.d.ts.map +1 -0
  36. package/_types/chains/index.d.ts +3 -0
  37. package/_types/chains/index.d.ts.map +1 -1
  38. package/_types/errors/version.d.ts +1 -1
  39. package/_types/experimental/erc7821/actions/execute.d.ts +2 -2
  40. package/_types/experimental/erc7821/actions/execute.d.ts.map +1 -1
  41. package/_types/experimental/erc7821/decorators/erc7821.d.ts +1 -1
  42. package/_types/experimental/erc7821/decorators/erc7821.d.ts.map +1 -1
  43. package/_types/op-stack/chains.d.ts +1 -0
  44. package/_types/op-stack/chains.d.ts.map +1 -1
  45. package/chains/definitions/blast.ts +3 -0
  46. package/chains/definitions/humanode.ts +25 -0
  47. package/chains/definitions/humanodeTestnet5.ts +18 -0
  48. package/chains/definitions/rivalz.ts +19 -0
  49. package/chains/index.ts +3 -0
  50. package/errors/version.ts +1 -1
  51. package/experimental/erc7821/actions/execute.ts +2 -2
  52. package/experimental/erc7821/decorators/erc7821.ts +1 -1
  53. package/op-stack/chains.ts +1 -0
  54. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const humanode = /*#__PURE__*/ defineChain({
4
+ id: 5234,
5
+ name: 'Humanode',
6
+ nativeCurrency: { name: 'HMND', symbol: 'HMND', decimals: 18 },
7
+ rpcUrls: {
8
+ default: {
9
+ http: ['https://explorer-rpc-http.mainnet.stages.humanode.io'],
10
+ webSocket: ['wss://explorer-rpc-ws.mainnet.stages.humanode.io'],
11
+ },
12
+ },
13
+ blockExplorers: {
14
+ default: {
15
+ name: 'Subscan',
16
+ url: 'https://humanode.subscan.io',
17
+ },
18
+ },
19
+ contracts: {
20
+ multicall3: {
21
+ address: '0xca11bde05977b3631167028862be2a173976ca11',
22
+ blockCreated: 4_413_097,
23
+ },
24
+ },
25
+ })
@@ -0,0 +1,18 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const humanodeTestnet5 = /*#__PURE__*/ defineChain({
4
+ id: 14853,
5
+ name: 'Humanode Testnet 5',
6
+ nativeCurrency: { name: 'HMND', symbol: 'HMND', decimals: 18 },
7
+ rpcUrls: {
8
+ default: {
9
+ http: ['https://explorer-rpc-http.testnet5.stages.humanode.io'],
10
+ webSocket: ['wss://explorer-rpc-ws.testnet5.stages.humanode.io'],
11
+ },
12
+ },
13
+ contracts: {
14
+ multicall3: {
15
+ address: '0xca11bde05977b3631167028862be2a173976ca11',
16
+ },
17
+ },
18
+ })
@@ -0,0 +1,19 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const rivalz = /*#__PURE__*/ defineChain({
4
+ id: 753,
5
+ name: 'Rivalz',
6
+ nativeCurrency: { decimals: 18, name: 'Ether', symbol: 'ETH' },
7
+ rpcUrls: {
8
+ default: {
9
+ http: ['https://rivalz.calderachain.xyz/http'],
10
+ },
11
+ },
12
+ blockExplorers: {
13
+ default: {
14
+ name: 'Rivalz Caldera Explorer',
15
+ url: 'https://rivalz.calderaexplorer.xyz',
16
+ },
17
+ },
18
+ testnet: false,
19
+ })
package/chains/index.ts CHANGED
@@ -199,6 +199,8 @@ export { hela } from './definitions/hela.js'
199
199
  export { hemiSepolia } from './definitions/hemiSepolia.js'
200
200
  export { holesky } from './definitions/holesky.js'
201
201
  export { hpb } from './definitions/hpb.js'
202
+ export { humanode } from './definitions/humanode.js'
203
+ export { humanodeTestnet5 } from './definitions/humanodeTestnet5.js'
202
204
  export { hychain } from './definitions/hychain.js'
203
205
  export { hychainTestnet } from './definitions/hychainTestnet.js'
204
206
  export { idchain } from './definitions/idchain.js'
@@ -344,6 +346,7 @@ export { redbellyTestnet } from './definitions/redbellyTestnet.js'
344
346
  export { redstone } from './definitions/redstone.js'
345
347
  export { rei } from './definitions/rei.js'
346
348
  export { reyaNetwork } from './definitions/reyaNetwork.js'
349
+ export { rivalz } from './definitions/rivalz.js'
347
350
  export { rollux } from './definitions/rollux.js'
348
351
  export { rolluxTestnet } from './definitions/rolluxTestnet.js'
349
352
  export { ronin } from './definitions/ronin.js'
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.22.0'
1
+ export const version = '2.22.2'
@@ -40,10 +40,10 @@ import {
40
40
  import { supportsExecutionMode } from './supportsExecutionMode.js'
41
41
 
42
42
  export type ExecuteParameters<
43
+ calls extends readonly unknown[] = readonly unknown[],
43
44
  chain extends Chain | undefined = Chain | undefined,
44
45
  account extends Account | undefined = Account | undefined,
45
46
  chainOverride extends Chain | undefined = Chain | undefined,
46
- calls extends readonly unknown[] = readonly unknown[],
47
47
  _derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>,
48
48
  > = UnionEvaluate<
49
49
  UnionPick<
@@ -149,7 +149,7 @@ export async function execute<
149
149
  chainOverride extends Chain | undefined = undefined,
150
150
  >(
151
151
  client: Client<Transport, chain, account>,
152
- parameters: ExecuteParameters<chain, account, chainOverride, calls>,
152
+ parameters: ExecuteParameters<calls, chain, account, chainOverride>,
153
153
  ): Promise<ExecuteReturnType> {
154
154
  const { address, authorizationList, opData } = parameters
155
155
 
@@ -89,7 +89,7 @@ export type Erc7821Actions<
89
89
  const calls extends readonly unknown[],
90
90
  chainOverride extends Chain | undefined = undefined,
91
91
  >(
92
- parameters: ExecuteParameters<chain, account, chainOverride, calls>,
92
+ parameters: ExecuteParameters<calls, chain, account, chainOverride>,
93
93
  ) => Promise<ExecuteReturnType>
94
94
  /**
95
95
  * Checks if the contract supports the ERC-7821 execution mode.
@@ -4,6 +4,7 @@ export { ancient8Sepolia } from '../chains/definitions/ancient8Sepolia.js'
4
4
  export { base } from '../chains/definitions/base.js'
5
5
  export { baseGoerli } from '../chains/definitions/baseGoerli.js'
6
6
  export { baseSepolia } from '../chains/definitions/baseSepolia.js'
7
+ export { blast } from '../chains/definitions/blast.js'
7
8
  export { fraxtal } from '../chains/definitions/fraxtal.js'
8
9
  export { fraxtalTestnet } from '../chains/definitions/fraxtalTestnet.js'
9
10
  export { inkSepolia } from '../chains/definitions/inkSepolia.js'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.22.0",
4
+ "version": "2.22.2",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",