@0xtorch/evm 0.0.161 → 0.0.163

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 (45) hide show
  1. package/_cjs/chain/definitions/megaEth.js +53 -0
  2. package/_cjs/chain/definitions/megaEth.js.map +1 -0
  3. package/_cjs/chain/index.js +8 -13
  4. package/_cjs/chain/index.js.map +1 -1
  5. package/_cjs/index.js +9 -13
  6. package/_cjs/index.js.map +1 -1
  7. package/_esm/chain/definitions/megaEth.js +48 -0
  8. package/_esm/chain/definitions/megaEth.js.map +1 -0
  9. package/_esm/chain/index.js +1 -2
  10. package/_esm/chain/index.js.map +1 -1
  11. package/_esm/index.js +1 -1
  12. package/_esm/index.js.map +1 -1
  13. package/_types/chain/definitions/megaEth.d.ts +18 -0
  14. package/_types/chain/definitions/megaEth.d.ts.map +1 -0
  15. package/_types/chain/index.d.ts +1 -2
  16. package/_types/chain/index.d.ts.map +1 -1
  17. package/_types/chain/viemChains/hyperEvm.d.ts +1 -0
  18. package/_types/chain/viemChains/hyperEvm.d.ts.map +1 -1
  19. package/_types/index.d.ts +1 -1
  20. package/_types/index.d.ts.map +1 -1
  21. package/chain/definitions/megaEth.ts +72 -0
  22. package/chain/index.ts +6 -12
  23. package/index.ts +4 -8
  24. package/package.json +2 -2
  25. package/_cjs/chain/definitions/gesoVerse.js +0 -47
  26. package/_cjs/chain/definitions/gesoVerse.js.map +0 -1
  27. package/_cjs/chain/definitions/zkFair.js +0 -59
  28. package/_cjs/chain/definitions/zkFair.js.map +0 -1
  29. package/_cjs/chain/viemChains/gesoVerse.js +0 -23
  30. package/_cjs/chain/viemChains/gesoVerse.js.map +0 -1
  31. package/_esm/chain/definitions/gesoVerse.js +0 -42
  32. package/_esm/chain/definitions/gesoVerse.js.map +0 -1
  33. package/_esm/chain/definitions/zkFair.js +0 -60
  34. package/_esm/chain/definitions/zkFair.js.map +0 -1
  35. package/_esm/chain/viemChains/gesoVerse.js +0 -20
  36. package/_esm/chain/viemChains/gesoVerse.js.map +0 -1
  37. package/_types/chain/definitions/gesoVerse.d.ts +0 -16
  38. package/_types/chain/definitions/gesoVerse.d.ts.map +0 -1
  39. package/_types/chain/definitions/zkFair.d.ts +0 -17
  40. package/_types/chain/definitions/zkFair.d.ts.map +0 -1
  41. package/_types/chain/viemChains/gesoVerse.d.ts +0 -49
  42. package/_types/chain/viemChains/gesoVerse.d.ts.map +0 -1
  43. package/chain/definitions/gesoVerse.ts +0 -61
  44. package/chain/definitions/zkFair.ts +0 -80
  45. package/chain/viemChains/gesoVerse.ts +0 -20
@@ -1,80 +0,0 @@
1
- import { usdc } from '@0xtorch/core'
2
- import { zkFair } from 'viem/chains'
3
- import { type Client, createClient } from '../../client'
4
- import type { Explorer } from '../../explorer'
5
- import { createBlockscout } from '../../explorer'
6
- import type { Chain } from '../types/chain'
7
- import type { HttpRpc } from '../types/rpc'
8
-
9
- export const createZkFairChain = ({
10
- explorerProxyUrl: proxyUrl,
11
- }: {
12
- explorerProxyUrl?: string
13
- explorerHeaders?: Record<string, string>
14
- }) =>
15
- createZkFairChainCustom({
16
- client: createClient({
17
- chain: zkFair,
18
- httpRpcs: zkFairHttpRpcs,
19
- }),
20
- explorer: createBlockscout({
21
- name: 'ZKFair-Mainnet explorer',
22
- baseUrl: 'https://scan.zkfair.io',
23
- apiBaseUrl: 'https://scan.zkfair.io/api',
24
- proxyUrl,
25
- }),
26
- })
27
-
28
- type CreateZkFairChainParameters = {
29
- client: Client
30
- explorer: Explorer
31
- }
32
-
33
- export const createZkFairChainCustom = ({
34
- client,
35
- explorer,
36
- }: CreateZkFairChainParameters): Chain => ({
37
- id: 42_766,
38
- network: 'zkfair',
39
- name: 'ZKFair',
40
- nativeToken: {
41
- name: 'USDC',
42
- symbol: 'USDC',
43
- decimals: 18,
44
- currency: usdc,
45
- },
46
- wrappedTokenAddresses: new Set([
47
- '0xd33db7ec50a98164cc865dfaa64666906d79319c',
48
- ]),
49
- explorer,
50
- client,
51
- blockTime: 45_000,
52
- coingeckoId: 'zkfair',
53
- defillamaId: undefined,
54
- })
55
-
56
- export const zkFairHttpRpcs: HttpRpc[] = [
57
- {
58
- url: 'https://rpc.zkfair.io',
59
- getLogsIsUsable: true,
60
- getLogsMaxBlockRange: 10_000n,
61
- },
62
- {
63
- url: 'https://endpoints.omniatech.io/v1/zkfair/mainnet/public',
64
- getLogsIsUsable: true,
65
- getLogsMaxBlockRange: 10_000n,
66
- },
67
- // Endpoint is not working
68
- // {
69
- // url: 'https://zkfair.blockpi.network/v1/rpc/public',
70
- // getLogsIsUsable: true,
71
- // getLogsMaxBlockRange: 10_000n,
72
- // },
73
- {
74
- url: 'https://zkfair.rpc.thirdweb.com',
75
- getLogsIsUsable: true,
76
- getLogsMaxBlockRange: 10_000n,
77
- },
78
- ]
79
-
80
- export const zkFairWebsocketRpcUrls: readonly string[] = []
@@ -1,20 +0,0 @@
1
- import { defineChain } from 'viem'
2
-
3
- export const gesoVerse = defineChain({
4
- id: 428,
5
- name: 'GESOVerse',
6
- nativeCurrency: { name: 'Oasys', symbol: 'OAS', decimals: 18 },
7
- rpcUrls: {
8
- default: {
9
- http: ['https://rpc.verse.gesoten.com'],
10
- },
11
- },
12
- blockExplorers: {
13
- default: {
14
- name: 'GESOVerse Explorer',
15
- url: 'https://explorer.verse.gesoten.com',
16
- apiUrl: 'https://explorer.verse.gesoten.com/api',
17
- },
18
- },
19
- testnet: false,
20
- })