@octaflowlabs/onchain-sdk 1.4.4 → 1.5.1

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.
@@ -33,10 +33,10 @@ exports.NETWORKS_REGISTRY = [
33
33
  id: 'polygon-mainnet',
34
34
  name: 'polygon-mainnet',
35
35
  nameForDisplay: 'Polygon Mainnet',
36
- iconUrl: 'https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png',
37
36
  chainId: 137,
38
37
  rpcUrl: 'https://polygon.publicnode.com',
39
38
  explorerUrl: 'https://polygonscan.com',
39
+ iconUrl: 'https://assets.coingecko.com/coins/images/4713/large/matic-token-icon.png',
40
40
  symbol: 'POL',
41
41
  failoverRpcUrl: 'https://polygon.llamarpc.com',
42
42
  blockTime: 2,
@@ -53,6 +53,161 @@ exports.NETWORKS_REGISTRY = [
53
53
  failoverRpcUrl: 'https://arb.llamarpc.com',
54
54
  blockTime: 1,
55
55
  },
56
+ {
57
+ id: 'optimism-mainnet',
58
+ name: 'op-mainnet',
59
+ nameForDisplay: 'Optimism Mainnet',
60
+ chainId: 10,
61
+ rpcUrl: 'https://mainnet.optimism.io',
62
+ explorerUrl: 'https://optimistic.etherscan.io',
63
+ iconUrl: 'https://assets.coingecko.com/coins/images/25244/large/Optimism.png',
64
+ symbol: 'ETH',
65
+ failoverRpcUrl: 'https://optimism.llamarpc.com',
66
+ blockTime: 2,
67
+ },
68
+ {
69
+ id: 'base-mainnet',
70
+ name: 'base-mainnet',
71
+ nameForDisplay: 'Base Mainnet',
72
+ chainId: 8453,
73
+ rpcUrl: 'https://mainnet.base.org',
74
+ explorerUrl: 'https://basescan.org',
75
+ iconUrl: 'https://assets.coingecko.com/coins/images/32480/large/base.png',
76
+ symbol: 'ETH',
77
+ failoverRpcUrl: 'https://base.llamarpc.com',
78
+ blockTime: 2,
79
+ },
80
+ {
81
+ id: 'avalanche-mainnet',
82
+ name: 'avax-mainnet',
83
+ nameForDisplay: 'Avalanche C-Chain',
84
+ chainId: 43114,
85
+ rpcUrl: 'https://api.avax.network/ext/bc/C/rpc',
86
+ explorerUrl: 'https://snowtrace.io',
87
+ iconUrl: 'https://assets.coingecko.com/coins/images/12559/large/Avalanche_Circle_RedWhite_Trans.png',
88
+ symbol: 'AVAX',
89
+ failoverRpcUrl: 'https://avalanche.llamarpc.com',
90
+ blockTime: 2,
91
+ },
92
+ {
93
+ id: 'hyperevm-mainnet',
94
+ name: 'hyperevm-mainnet',
95
+ nameForDisplay: 'HyperEVM',
96
+ chainId: 999,
97
+ rpcUrl: 'https://hyperliquid-mainnet.g.alchemy.com/v2/YOUR_KEY',
98
+ explorerUrl: 'https://purrsec.com',
99
+ iconUrl: 'https://assets.coingecko.com/coins/images/52510/large/hyperliquid.png',
100
+ symbol: 'HYPE',
101
+ failoverRpcUrl: 'https://rpc.hyperliquid.xyz/evm',
102
+ blockTime: 1,
103
+ },
104
+ {
105
+ id: 'unichain-mainnet',
106
+ name: 'unichain-mainnet',
107
+ nameForDisplay: 'Unichain Mainnet',
108
+ chainId: 130,
109
+ rpcUrl: 'https://mainnet.unichain.org',
110
+ explorerUrl: 'https://uniscan.xyz',
111
+ iconUrl: 'https://assets.coingecko.com/coins/images/25244/large/Optimism.png',
112
+ symbol: 'ETH',
113
+ failoverRpcUrl: 'https://unichain.llamarpc.com',
114
+ blockTime: 1,
115
+ },
116
+ {
117
+ id: 'gnosis-mainnet',
118
+ name: 'gnosis-mainnet',
119
+ nameForDisplay: 'Gnosis Chain',
120
+ chainId: 100,
121
+ rpcUrl: 'https://rpc.gnosischain.com',
122
+ explorerUrl: 'https://gnosisscan.io',
123
+ iconUrl: 'https://assets.coingecko.com/coins/images/662/large/logo_square_simple_300px.png',
124
+ symbol: 'xDAI',
125
+ failoverRpcUrl: 'https://gnosis.llamarpc.com',
126
+ blockTime: 5,
127
+ },
128
+ {
129
+ id: 'mantle-mainnet',
130
+ name: 'mantle-mainnet',
131
+ nameForDisplay: 'Mantle Mainnet',
132
+ chainId: 5000,
133
+ rpcUrl: 'https://rpc.mantle.xyz',
134
+ explorerUrl: 'https://mantlescan.xyz',
135
+ iconUrl: 'https://assets.coingecko.com/coins/images/30980/large/token-logo.png',
136
+ symbol: 'MNT',
137
+ failoverRpcUrl: 'https://mantle.llamarpc.com',
138
+ blockTime: 2,
139
+ },
140
+ {
141
+ id: 'celo-mainnet',
142
+ name: 'celo-mainnet',
143
+ nameForDisplay: 'Celo Mainnet',
144
+ chainId: 42220,
145
+ rpcUrl: 'https://forno.celo.org',
146
+ explorerUrl: 'https://celoscan.io',
147
+ iconUrl: 'https://assets.coingecko.com/coins/images/11090/large/InjXBNx9_400x400.jpg',
148
+ symbol: 'CELO',
149
+ failoverRpcUrl: 'https://celo.llamarpc.com',
150
+ blockTime: 5,
151
+ },
152
+ {
153
+ id: 'blast-mainnet',
154
+ name: 'blast-mainnet',
155
+ nameForDisplay: 'Blast Mainnet',
156
+ chainId: 81457,
157
+ rpcUrl: 'https://rpc.blast.io',
158
+ explorerUrl: 'https://blastscan.io',
159
+ iconUrl: 'https://assets.coingecko.com/coins/images/35494/large/Blast.jpg',
160
+ symbol: 'ETH',
161
+ failoverRpcUrl: 'https://blast.llamarpc.com',
162
+ blockTime: 2,
163
+ },
164
+ {
165
+ id: 'berachain-mainnet',
166
+ name: 'berachain-mainnet',
167
+ nameForDisplay: 'Berachain Mainnet',
168
+ chainId: 80094,
169
+ rpcUrl: 'https://rpc.berachain.com',
170
+ explorerUrl: 'https://berascan.com',
171
+ iconUrl: 'https://assets.coingecko.com/coins/images/36417/large/bera.png',
172
+ symbol: 'BERA',
173
+ failoverRpcUrl: 'https://berachain.llamarpc.com',
174
+ blockTime: 2,
175
+ },
176
+ {
177
+ id: 'linea-mainnet',
178
+ name: 'linea-mainnet',
179
+ nameForDisplay: 'Linea Mainnet',
180
+ chainId: 59144,
181
+ rpcUrl: 'https://rpc.linea.build',
182
+ explorerUrl: 'https://lineascan.build',
183
+ iconUrl: 'https://assets.coingecko.com/coins/images/32234/large/linea.png',
184
+ symbol: 'ETH',
185
+ failoverRpcUrl: 'https://linea.llamarpc.com',
186
+ blockTime: 2,
187
+ },
188
+ {
189
+ id: 'scroll-mainnet',
190
+ name: 'scroll-mainnet',
191
+ nameForDisplay: 'Scroll Mainnet',
192
+ chainId: 534352,
193
+ rpcUrl: 'https://rpc.scroll.io',
194
+ explorerUrl: 'https://scrollscan.com',
195
+ iconUrl: 'https://assets.coingecko.com/coins/images/32760/large/scroll.png',
196
+ symbol: 'ETH',
197
+ failoverRpcUrl: 'https://scroll.llamarpc.com',
198
+ blockTime: 3,
199
+ },
200
+ {
201
+ id: 'plasma-mainnet',
202
+ name: 'plasma-mainnet',
203
+ nameForDisplay: 'Plasma Mainnet',
204
+ chainId: 9745,
205
+ rpcUrl: 'https://rpc.plasma.to',
206
+ explorerUrl: 'https://plasmascan.to',
207
+ iconUrl: '',
208
+ symbol: 'XPL',
209
+ blockTime: 1,
210
+ },
56
211
  ],
57
212
  },
58
213
  {
@@ -1,4 +1,4 @@
1
- export type BasicTokenSymbol = 'ETH' | 'BNB' | 'POL' | 'USDC' | 'USDT' | 'USD₮0' | 'DAI' | 'WETH' | 'WBNB' | 'WBTC' | 'UNI' | 'NTK';
1
+ export type BasicTokenSymbol = 'ETH' | 'BNB' | 'POL' | 'USDC' | 'USDT' | 'USD₮0' | 'USD₮' | 'DAI' | 'DAI.e' | 'WETH' | 'WBNB' | 'WBTC' | 'WBTC.e' | 'UNI' | 'UNI.e' | 'NTK' | 'OP' | 'AVAX' | 'USDt' | 'xDAI' | 'MNT' | 'CELO' | 'HYPE' | 'WHYPE' | 'BERA' | 'XPL' | 'USDC.e';
2
2
  export interface BasicTokenData {
3
3
  id: string;
4
4
  address: string | null;