viem 2.21.40 → 2.21.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +6 -0
  3. package/_cjs/actions/wallet/sendTransaction.js +15 -2
  4. package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
  5. package/_cjs/chains/definitions/acria.js +26 -0
  6. package/_cjs/chains/definitions/acria.js.map +1 -0
  7. package/_cjs/chains/definitions/aioz.js +26 -0
  8. package/_cjs/chains/definitions/aioz.js.map +1 -0
  9. package/_cjs/chains/definitions/diode.js +27 -0
  10. package/_cjs/chains/definitions/diode.js.map +1 -0
  11. package/_cjs/chains/definitions/enuls.js +24 -0
  12. package/_cjs/chains/definitions/enuls.js.map +1 -0
  13. package/_cjs/chains/definitions/polygonAmoy.js +1 -1
  14. package/_cjs/chains/definitions/polygonAmoy.js.map +1 -1
  15. package/_cjs/chains/definitions/sepolia.js +1 -1
  16. package/_cjs/chains/definitions/soneiumMinato.js +3 -3
  17. package/_cjs/chains/definitions/soneiumMinato.js.map +1 -1
  18. package/_cjs/chains/definitions/sophon.js +35 -0
  19. package/_cjs/chains/definitions/sophon.js.map +1 -0
  20. package/_cjs/chains/definitions/unichainSepolia.js +1 -1
  21. package/_cjs/chains/definitions/unichainSepolia.js.map +1 -1
  22. package/_cjs/chains/index.js +19 -9
  23. package/_cjs/chains/index.js.map +1 -1
  24. package/_cjs/errors/version.js +1 -1
  25. package/_esm/actions/wallet/sendTransaction.js +15 -2
  26. package/_esm/actions/wallet/sendTransaction.js.map +1 -1
  27. package/_esm/chains/definitions/acria.js +23 -0
  28. package/_esm/chains/definitions/acria.js.map +1 -0
  29. package/_esm/chains/definitions/aioz.js +23 -0
  30. package/_esm/chains/definitions/aioz.js.map +1 -0
  31. package/_esm/chains/definitions/diode.js +24 -0
  32. package/_esm/chains/definitions/diode.js.map +1 -0
  33. package/_esm/chains/definitions/enuls.js +21 -0
  34. package/_esm/chains/definitions/enuls.js.map +1 -0
  35. package/_esm/chains/definitions/polygonAmoy.js +1 -1
  36. package/_esm/chains/definitions/polygonAmoy.js.map +1 -1
  37. package/_esm/chains/definitions/sepolia.js +1 -1
  38. package/_esm/chains/definitions/soneiumMinato.js +3 -3
  39. package/_esm/chains/definitions/soneiumMinato.js.map +1 -1
  40. package/_esm/chains/definitions/sophon.js +32 -0
  41. package/_esm/chains/definitions/sophon.js.map +1 -0
  42. package/_esm/chains/definitions/unichainSepolia.js +1 -1
  43. package/_esm/chains/definitions/unichainSepolia.js.map +1 -1
  44. package/_esm/chains/index.js +5 -0
  45. package/_esm/chains/index.js.map +1 -1
  46. package/_esm/errors/version.js +1 -1
  47. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
  48. package/_types/chains/definitions/acria.d.ts +37 -0
  49. package/_types/chains/definitions/acria.d.ts.map +1 -0
  50. package/_types/chains/definitions/aioz.d.ts +37 -0
  51. package/_types/chains/definitions/aioz.d.ts.map +1 -0
  52. package/_types/chains/definitions/diode.d.ts +38 -0
  53. package/_types/chains/definitions/diode.d.ts.map +1 -0
  54. package/_types/chains/definitions/enuls.d.ts +37 -0
  55. package/_types/chains/definitions/enuls.d.ts.map +1 -0
  56. package/_types/chains/definitions/polygonAmoy.d.ts +2 -2
  57. package/_types/chains/definitions/sepolia.d.ts +1 -1
  58. package/_types/chains/definitions/soneiumMinato.d.ts +3 -3
  59. package/_types/chains/definitions/sophon.d.ts +405 -0
  60. package/_types/chains/definitions/sophon.d.ts.map +1 -0
  61. package/_types/chains/definitions/unichainSepolia.d.ts +1 -1
  62. package/_types/chains/index.d.ts +5 -0
  63. package/_types/chains/index.d.ts.map +1 -1
  64. package/_types/errors/version.d.ts +1 -1
  65. package/actions/wallet/sendTransaction.ts +19 -2
  66. package/chains/definitions/acria.ts +23 -0
  67. package/chains/definitions/aioz.ts +23 -0
  68. package/chains/definitions/diode.ts +24 -0
  69. package/chains/definitions/enuls.ts +21 -0
  70. package/chains/definitions/polygonAmoy.ts +1 -1
  71. package/chains/definitions/sepolia.ts +1 -1
  72. package/chains/definitions/soneiumMinato.ts +3 -3
  73. package/chains/definitions/sophon.ts +32 -0
  74. package/chains/definitions/unichainSepolia.ts +1 -1
  75. package/chains/index.ts +5 -0
  76. package/errors/version.ts +1 -1
  77. package/package.json +1 -1
@@ -0,0 +1,24 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const diode = /*#__PURE__*/ defineChain({
4
+ id: 15,
5
+ name: 'Diode Prenet',
6
+ nativeCurrency: {
7
+ decimals: 18,
8
+ name: 'DIODE',
9
+ symbol: 'DIODE',
10
+ },
11
+ rpcUrls: {
12
+ default: {
13
+ http: ['https://prenet.diode.io:8443'],
14
+ webSocket: ['wss://prenet.diode.io:8443/ws'],
15
+ },
16
+ },
17
+ blockExplorers: {
18
+ default: {
19
+ name: 'Diode Explorer',
20
+ url: 'https://diode.io/prenet',
21
+ },
22
+ },
23
+ testnet: false,
24
+ })
@@ -0,0 +1,21 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+
3
+ export const enuls = /*#__PURE__*/ defineChain({
4
+ id: 119,
5
+ name: 'ENULS Mainnet',
6
+ nativeCurrency: {
7
+ decimals: 18,
8
+ name: 'NULS',
9
+ symbol: 'NULS',
10
+ },
11
+ rpcUrls: {
12
+ default: { http: ['https://evmapi2.nuls.io'] },
13
+ },
14
+ blockExplorers: {
15
+ default: {
16
+ name: 'ENULS Explorer',
17
+ url: 'https://evmscan.nuls.io',
18
+ },
19
+ },
20
+ testnet: false,
21
+ })
@@ -3,7 +3,7 @@ import { defineChain } from '../../utils/chain/defineChain.js'
3
3
  export const polygonAmoy = /*#__PURE__*/ defineChain({
4
4
  id: 80_002,
5
5
  name: 'Polygon Amoy',
6
- nativeCurrency: { name: 'MATIC', symbol: 'MATIC', decimals: 18 },
6
+ nativeCurrency: { name: 'POL', symbol: 'POL', decimals: 18 },
7
7
  rpcUrls: {
8
8
  default: {
9
9
  http: ['https://rpc-amoy.polygon.technology'],
@@ -6,7 +6,7 @@ export const sepolia = /*#__PURE__*/ defineChain({
6
6
  nativeCurrency: { name: 'Sepolia Ether', symbol: 'ETH', decimals: 18 },
7
7
  rpcUrls: {
8
8
  default: {
9
- http: ['https://rpc2.sepolia.org'],
9
+ http: ['https://sepolia.drpc.org'],
10
10
  },
11
11
  },
12
12
  blockExplorers: {
@@ -16,15 +16,15 @@ export const soneiumMinato = /*#__PURE__*/ defineChain({
16
16
  blockExplorers: {
17
17
  default: {
18
18
  name: 'Blockscout',
19
- url: 'https://explorer-testnet.soneium.org',
20
- apiUrl: 'https://explorer-testnet.soneium.org/api',
19
+ url: 'https://soneium-minato.blockscout.com',
20
+ apiUrl: 'https://soneium-minato.blockscout.com/api',
21
21
  },
22
22
  },
23
23
  contracts: {
24
24
  ...chainConfig.contracts,
25
25
  disputeGameFactory: {
26
26
  [sourceId]: {
27
- address: '0xF69dB6cA559C52d9A4BB6e2B2901f490Ca35Fbf6',
27
+ address: '0xB3Ad2c38E6e0640d7ce6aA952AB3A60E81bf7a01',
28
28
  },
29
29
  },
30
30
  l2OutputOracle: {
@@ -0,0 +1,32 @@
1
+ import { defineChain } from '../../utils/chain/defineChain.js'
2
+ import { chainConfig } from '../../zksync/chainConfig.js'
3
+
4
+ export const sophon = /*#__PURE__*/ defineChain({
5
+ ...chainConfig,
6
+ id: 50104,
7
+ name: 'Sophon',
8
+ nativeCurrency: {
9
+ decimals: 18,
10
+ name: 'Sophon',
11
+ symbol: 'SOPH',
12
+ },
13
+ rpcUrls: {
14
+ default: {
15
+ http: ['https://rpc.sophon.xyz'],
16
+ webSocket: ['wss://rpc.sophon.xyz/ws'],
17
+ },
18
+ },
19
+ blockExplorers: {
20
+ default: {
21
+ name: 'Sophon Block Explorer',
22
+ url: 'https://explorer.sophon.xyz',
23
+ },
24
+ },
25
+ contracts: {
26
+ multicall3: {
27
+ address: '0x5f4867441d2416cA88B1b3fd38f21811680CD2C8',
28
+ blockCreated: 116,
29
+ },
30
+ },
31
+ testnet: false,
32
+ })
@@ -21,7 +21,7 @@ export const unichainSepolia = /*#__PURE__*/ defineChain({
21
21
  default: {
22
22
  name: 'Uniscan',
23
23
  url: 'https://sepolia.uniscan.xyz',
24
- apiUrl: 'https://api-sepolia.uniscan.xyz',
24
+ apiUrl: 'https://api-sepolia.uniscan.xyz/api',
25
25
  },
26
26
  },
27
27
  contracts: {
package/chains/index.ts CHANGED
@@ -3,6 +3,8 @@ export type { Chain } from '../types/chain.js'
3
3
  // biome-ignore lint/performance/noBarrelFile: entrypoint module
4
4
  export { abstractTestnet } from './definitions/abstractTestnet.js'
5
5
  export { acala } from './definitions/acala.js'
6
+ export { acria } from './definitions/acria.js'
7
+ export { aioz } from './definitions/aioz.js'
6
8
  export { alienx } from './definitions/alienX.js'
7
9
  export { alienxHalTestnet } from './definitions/alienXHalTestnet.js'
8
10
  export { ancient8 } from './definitions/ancient8.js'
@@ -96,6 +98,7 @@ export { defichainEvm } from './definitions/defichainEvm.js'
96
98
  export { defichainEvmTestnet } from './definitions/defichainEvmTestnet.js'
97
99
  export { degen } from './definitions/degen.js'
98
100
  export { dfk } from './definitions/dfk.js'
101
+ export { diode } from './definitions/diode.js'
99
102
  export { dodochainTestnet } from './definitions/dodochainTestnet.js'
100
103
  export { dogechain } from './definitions/dogechain.js'
101
104
  export { dosChain } from './definitions/dosChain.js'
@@ -115,6 +118,7 @@ export { elastosTestnet } from './definitions/elastosTestnet.js'
115
118
  export { electroneum } from './definitions/electroneum.js'
116
119
  export { electroneumTestnet } from './definitions/electroneumTestnet.js'
117
120
  export { elysiumTestnet } from './definitions/elysiumTestnet.js'
121
+ export { enuls } from './definitions/enuls.js'
118
122
  export { eon } from './definitions/eon.js'
119
123
  export { eos } from './definitions/eos.js'
120
124
  export { eosTestnet } from './definitions/eosTestnet.js'
@@ -351,6 +355,7 @@ export { snaxTestnet } from './definitions/snaxTestnet.js'
351
355
  export { soneiumMinato } from './definitions/soneiumMinato.js'
352
356
  export { songbird } from './definitions/songbird.js'
353
357
  export { songbirdTestnet } from './definitions/songbirdTestnet.js'
358
+ export { sophon } from './definitions/sophon.js'
354
359
  export { sophonTestnet } from './definitions/sophonTestnet.js'
355
360
  export { spicy } from './definitions/spicy.js'
356
361
  export { step } from './definitions/step.js'
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.21.40'
1
+ export const version = '2.21.42'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.21.40",
4
+ "version": "2.21.42",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",