viem 2.21.41 → 2.21.42

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/_cjs/chains/definitions/acria.js +26 -0
  3. package/_cjs/chains/definitions/acria.js.map +1 -0
  4. package/_cjs/chains/definitions/diode.js +27 -0
  5. package/_cjs/chains/definitions/diode.js.map +1 -0
  6. package/_cjs/chains/definitions/sophon.js +35 -0
  7. package/_cjs/chains/definitions/sophon.js.map +1 -0
  8. package/_cjs/chains/definitions/unichainSepolia.js +1 -1
  9. package/_cjs/chains/definitions/unichainSepolia.js.map +1 -1
  10. package/_cjs/chains/index.js +15 -9
  11. package/_cjs/chains/index.js.map +1 -1
  12. package/_cjs/errors/version.js +1 -1
  13. package/_esm/chains/definitions/acria.js +23 -0
  14. package/_esm/chains/definitions/acria.js.map +1 -0
  15. package/_esm/chains/definitions/diode.js +24 -0
  16. package/_esm/chains/definitions/diode.js.map +1 -0
  17. package/_esm/chains/definitions/sophon.js +32 -0
  18. package/_esm/chains/definitions/sophon.js.map +1 -0
  19. package/_esm/chains/definitions/unichainSepolia.js +1 -1
  20. package/_esm/chains/definitions/unichainSepolia.js.map +1 -1
  21. package/_esm/chains/index.js +3 -0
  22. package/_esm/chains/index.js.map +1 -1
  23. package/_esm/errors/version.js +1 -1
  24. package/_types/chains/definitions/acria.d.ts +37 -0
  25. package/_types/chains/definitions/acria.d.ts.map +1 -0
  26. package/_types/chains/definitions/diode.d.ts +38 -0
  27. package/_types/chains/definitions/diode.d.ts.map +1 -0
  28. package/_types/chains/definitions/sophon.d.ts +405 -0
  29. package/_types/chains/definitions/sophon.d.ts.map +1 -0
  30. package/_types/chains/definitions/unichainSepolia.d.ts +1 -1
  31. package/_types/chains/index.d.ts +3 -0
  32. package/_types/chains/index.d.ts.map +1 -1
  33. package/_types/errors/version.d.ts +1 -1
  34. package/chains/definitions/acria.ts +23 -0
  35. package/chains/definitions/diode.ts +24 -0
  36. package/chains/definitions/sophon.ts +32 -0
  37. package/chains/definitions/unichainSepolia.ts +1 -1
  38. package/chains/index.ts +3 -0
  39. package/errors/version.ts +1 -1
  40. package/package.json +1 -1
@@ -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,7 @@ 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'
6
7
  export { aioz } from './definitions/aioz.js'
7
8
  export { alienx } from './definitions/alienX.js'
8
9
  export { alienxHalTestnet } from './definitions/alienXHalTestnet.js'
@@ -97,6 +98,7 @@ export { defichainEvm } from './definitions/defichainEvm.js'
97
98
  export { defichainEvmTestnet } from './definitions/defichainEvmTestnet.js'
98
99
  export { degen } from './definitions/degen.js'
99
100
  export { dfk } from './definitions/dfk.js'
101
+ export { diode } from './definitions/diode.js'
100
102
  export { dodochainTestnet } from './definitions/dodochainTestnet.js'
101
103
  export { dogechain } from './definitions/dogechain.js'
102
104
  export { dosChain } from './definitions/dosChain.js'
@@ -353,6 +355,7 @@ export { snaxTestnet } from './definitions/snaxTestnet.js'
353
355
  export { soneiumMinato } from './definitions/soneiumMinato.js'
354
356
  export { songbird } from './definitions/songbird.js'
355
357
  export { songbirdTestnet } from './definitions/songbirdTestnet.js'
358
+ export { sophon } from './definitions/sophon.js'
356
359
  export { sophonTestnet } from './definitions/sophonTestnet.js'
357
360
  export { spicy } from './definitions/spicy.js'
358
361
  export { step } from './definitions/step.js'
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.21.41'
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.41",
4
+ "version": "2.21.42",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",