@tria-sdk/constants 1.0.45 → 1.0.46

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.
package/dist/src/txn.js DELETED
@@ -1,263 +0,0 @@
1
- import { bitlayerTestnet, bitlayerMainnet, neoxTestnet, polygonAmoy, sepolia, zkLink, zkLinkTestnet, vanarTestnet, } from "./chains";
2
- export const explorerBaseUrls = {
3
- ETH: "https://etherscan.io",
4
- [sepolia]: "https://sepolia.etherscan.io",
5
- POLYGON: "https://polygonscan.com",
6
- [polygonAmoy]: "https://www.oklink.com/amoy",
7
- AVALANCHE: "https://snowtrace.io",
8
- ARBITRUM: "https://arbiscan.io",
9
- BINANCE: "https://bscscan.com",
10
- OPTIMISM: "https://optimistic.etherscan.io",
11
- FANTOM: "https://ftmscan.com",
12
- SOLANA: "https://solscan.io",
13
- APTOS: "https://explorer.aptoslabs.com",
14
- NEO: "https://neo3.neotube.io",
15
- SUI: "https://suiexplorer.com/?network=mainnet",
16
- FUSE: "https://explorer.fuse.io",
17
- FUSESPARK: "https://explorer.fusespark.io",
18
- MUMBAI: "https://mumbai.polygonscan.com",
19
- METIS: "https://andromeda-explorer.metis.io",
20
- "METIS-TESTNET": "https://sepolia.explorer.metisdevops.link",
21
- MANTLE: "https://explorer.mantle.xyz",
22
- "MANTLE-TESTNET": "https://explorer.testnet.mantle.xyz",
23
- MANTA: "https://pacific-explorer.manta.network",
24
- "MANTA-TESTNET": "https://manta-testnet.calderaexplorer.xyz",
25
- [zkLink]: "https://explorer.zklink.io",
26
- [zkLinkTestnet]: "https://goerli.explorer.zklink.io",
27
- [bitlayerTestnet]: "https://testnet-scan.bitlayer.org/en-us",
28
- [bitlayerMainnet]: "https://www.btrscan.com",
29
- [neoxTestnet]: "https://xt2scan.ngd.network",
30
- [vanarTestnet]: "https://explorer-vanguard.vanarchain.com",
31
- };
32
- export const txnBaseUrl = {
33
- ETH: `${explorerBaseUrls.ETH}/tx`, // /txHash
34
- [sepolia]: `${explorerBaseUrls[sepolia]}/tx`,
35
- POLYGON: `${explorerBaseUrls.POLYGON}/tx`,
36
- [polygonAmoy]: `${explorerBaseUrls[polygonAmoy]}/tx`,
37
- AVALANCHE: `${explorerBaseUrls.AVALANCHE}/tx`,
38
- ARBITRUM: `${explorerBaseUrls.ARBITRUM}/tx`,
39
- BINANCE: `${explorerBaseUrls.BINANCE}/tx`,
40
- OPTIMISM: `${explorerBaseUrls.OPTIMISM}/tx`,
41
- FANTOM: `${explorerBaseUrls.FANTOM}/tx`,
42
- FUSE: `${explorerBaseUrls.FUSE}/tx`,
43
- FUSESPARK: `${explorerBaseUrls.FUSESPARK}/tx`,
44
- MUMBAI: `${explorerBaseUrls.MUMBAI}/tx`,
45
- METIS: `${explorerBaseUrls.METIS}/tx`,
46
- "METIS-TESTNET": `${explorerBaseUrls["METIS-TESTNET"]}/tx`,
47
- MANTLE: `${explorerBaseUrls.MANTLE}/tx`,
48
- "MANTLE-TESTNET": `${explorerBaseUrls["MANTLE-TESTNET"]}/tx`,
49
- MANTA: `${explorerBaseUrls.MANTA}/tx`,
50
- "MANTA-TESTNET": `${explorerBaseUrls["MANTA-TESTNET"]}/tx`,
51
- [zkLink]: `${explorerBaseUrls[zkLink]}/tx`,
52
- [zkLinkTestnet]: `${explorerBaseUrls[zkLinkTestnet]}/tx`,
53
- [bitlayerTestnet]: `${explorerBaseUrls[bitlayerTestnet]}/tx`,
54
- [bitlayerMainnet]: `${explorerBaseUrls[bitlayerMainnet]}/tx`,
55
- [neoxTestnet]: `${explorerBaseUrls[neoxTestnet]}/tx`,
56
- [vanarTestnet]: `${explorerBaseUrls[vanarTestnet]}/tx`,
57
- };
58
- export const nativeTokenDetails = {
59
- ETH: {
60
- name: "Ether",
61
- symbol: "ETH",
62
- logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png",
63
- },
64
- [sepolia]: {
65
- name: "Ether",
66
- symbol: "ETH",
67
- logoUrl: "https://www.datocms-assets.com/86369/1669619533-ethereum.png",
68
- },
69
- POLYGON: {
70
- name: "Matic Token",
71
- symbol: "MATIC",
72
- logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
73
- },
74
- [polygonAmoy]: {
75
- name: "Matic Token",
76
- symbol: "MATIC",
77
- logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
78
- },
79
- AVALANCHE: {
80
- name: "Avalanche Coin",
81
- symbol: "AVAX",
82
- logoUrl: "https://www.datocms-assets.com/86369/1686152997-avalanche-colour.png",
83
- },
84
- ARBITRUM: {
85
- name: "Arbitrum Mainnet Ether",
86
- symbol: "ETH",
87
- logoUrl: "https://www.datocms-assets.com/86369/1669925028-arbitrum.png",
88
- },
89
- BINANCE: {
90
- name: "Binance Coin",
91
- symbol: "BNB",
92
- logoUrl: "https://www.datocms-assets.com/86369/1670003837-biance-smart-chain-colour.png",
93
- },
94
- OPTIMISM: {
95
- name: "Ether",
96
- symbol: "ETH",
97
- logoUrl: "https://www.datocms-assets.com/86369/1670347461-optimisim-colour.png",
98
- },
99
- FANTOM: {
100
- name: "Fantom",
101
- symbol: "FTM",
102
- logoUrl: "https://www.datocms-assets.com/86369/1669925359-fantom-1.png",
103
- },
104
- FUSE: {
105
- name: "Fuse",
106
- symbol: "FUSE",
107
- logoUrl: "https://assets.coingecko.com/coins/images/10347/standard/fuse.png",
108
- },
109
- FUSESPARK: {
110
- name: "Spark",
111
- symbol: "SPARK",
112
- logoUrl: "https://assets.coingecko.com/coins/images/10347/standard/fuse.png",
113
- },
114
- MUMBAI: {
115
- name: "Matic Token",
116
- symbol: "MATIC",
117
- logoUrl: "https://logos.covalenthq.com/tokens/1/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0.png",
118
- },
119
- METIS: {
120
- name: "Metis Token",
121
- symbol: "METIS",
122
- logoUrl: "https://static.tria.so/chain-logo-w/Metis.webp",
123
- },
124
- "METIS-TESTNET": {
125
- name: "Metis Token",
126
- symbol: "METIS",
127
- logoUrl: "https://static.tria.so/chain-logo-w/Metis.webp",
128
- },
129
- MANTLE: {
130
- name: "Mantle",
131
- symbol: "MNT",
132
- logoUrl: "https://static.tria.so/chain-logo-w/Mantle.webp",
133
- },
134
- "MANTLE-TESTNET": {
135
- name: "Mantle",
136
- symbol: "MNT",
137
- logoUrl: "https://static.tria.so/chain-logo-w/Mantle.webp",
138
- },
139
- MANTA: {
140
- name: "Ether",
141
- symbol: "ETH",
142
- logoUrl: "https://static.tria.so/chain-logo-w/Manta.webp",
143
- },
144
- "MANTA-TESTNET": {
145
- name: "Ether",
146
- symbol: "ETH",
147
- logoUrl: "https://static.tria.so/chain-logo-w/Manta.webp",
148
- },
149
- SOLANA: {
150
- name: "Solana",
151
- symbol: "SOL",
152
- logoUrl: "https://static.tria.so/chain-logo-w/Solana.webp",
153
- },
154
- [zkLink]: {
155
- name: "Ether",
156
- symbol: "ETH",
157
- logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
158
- },
159
- [zkLinkTestnet]: {
160
- name: "Ether",
161
- symbol: "ETH",
162
- logoUrl: "https://static.tria.so/chain-logo-w/zklink.webp",
163
- },
164
- [bitlayerTestnet]: {
165
- name: "Bitcoin",
166
- symbol: "BTC",
167
- logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
168
- },
169
- [bitlayerMainnet]: {
170
- name: "Bitcoin",
171
- symbol: "BTC",
172
- logoUrl: "https://static.tria.so/chain-logo-w/bitlayer.webp",
173
- },
174
- [neoxTestnet]: {
175
- name: "Gas",
176
- symbol: "GAS",
177
- logoUrl: "https://assets.coingecko.com/coins/images/858/standard/GAS_512_512.png?1696501992",
178
- },
179
- [vanarTestnet]: {
180
- name: "Vanry",
181
- symbol: "VG",
182
- logoUrl: "https://explorer-vanguard.vanarchain.com/assets/network_icon_dark.svg",
183
- },
184
- };
185
- const alchemyKey = "kcuWVV9ss_iLWJ2Lw6xdHbmtZYixfY7Z";
186
- export const rpcUrls = {
187
- MUMBAI: `https://polygon-mumbai.g.alchemy.com/v2/${alchemyKey}`, //'https://polygon-mumbai.blockpi.network/v1/rpc/public',
188
- [polygonAmoy]: `https://polygon-amoy.g.alchemy.com/v2/${alchemyKey}`,
189
- [sepolia]: `https://eth-sepolia.g.alchemy.com/v2/${alchemyKey}`,
190
- ETH: "https://eth.llamarpc.com",
191
- POLYGON: `https://polygon-mainnet.g.alchemy.com/v2/${alchemyKey}`, // 'https://polygon.llamarpc.com',
192
- AVALANCHE: "https://avalanche-c-chain.publicnode.com",
193
- ARBITRUM: "https://arbitrum-one.publicnode.com",
194
- BINANCE: "https://bsc.publicnode.com",
195
- OPTIMISM: "https://optimism.meowrpc.com",
196
- FANTOM: "https://fantom.publicnode.com",
197
- FUSE: "https://rpc.fuse.io",
198
- FUSESPARK: "https://rpc.fusespark.io",
199
- MANTA: "https://1rpc.io/manta",
200
- "MANTA-TESTNET": "https://manta-testnet.calderachain.xyz/http",
201
- METIS: "https://metis-pokt.nodies.app",
202
- "METIS-TESTNET": "https://goerli.gateway.metisdevops.link",
203
- MANTLE: "https://rpc.mantle.xyz",
204
- "MANTLE-TESTNET": "https://rpc.testnet.mantle.xyz",
205
- [zkLink]: "https://rpc.zklink.io",
206
- [zkLinkTestnet]: "https://goerli.rpc.zklink.io",
207
- [bitlayerTestnet]: "https://testnet-rpc.bitlayer.org",
208
- [bitlayerMainnet]: "https://rpc.bitlayer.org",
209
- [neoxTestnet]: "https://neoxseed1.ngd.network",
210
- [vanarTestnet]: "https://rpc-partners-vanguard.vanarchain.com", // "https://rpc-vanguard.vanarchain.com",
211
- };
212
- export const chainNameToChainId = {
213
- MUMBAI: 80001,
214
- [polygonAmoy]: 80002,
215
- [sepolia]: 11155111,
216
- POLYGON: 137,
217
- ETH: 1,
218
- AVALANCHE: 43114,
219
- ARBITRUM: 42161,
220
- BINANCE: 56,
221
- OPTIMISM: 10,
222
- FANTOM: 250,
223
- FUSE: 122,
224
- FUSESPARK: 123,
225
- MANTA: 169,
226
- "MANTA-TESTNET": 3441005,
227
- METIS: 1088,
228
- "METIS-TESTNET": 599,
229
- MANTLE: 5000,
230
- "MANTLE-TESTNET": 5001,
231
- [zkLink]: 810180,
232
- [zkLinkTestnet]: 810182,
233
- [bitlayerTestnet]: 200810,
234
- [bitlayerMainnet]: 200901,
235
- [neoxTestnet]: 12227330,
236
- [vanarTestnet]: 78600,
237
- };
238
- export const chainIdToChainName = {
239
- 80001: "MUMBAI",
240
- 80002: polygonAmoy,
241
- 11155111: sepolia,
242
- 137: "POLYGON",
243
- 1: "ETH",
244
- 43114: "AVALANCHE",
245
- 42161: "ARBITRUM",
246
- 56: "BINANCE",
247
- 10: "OPTIMISM",
248
- 250: "FANTOM",
249
- 122: "FUSE",
250
- 123: "FUSESPARK",
251
- 5000: "MANTLE",
252
- 5001: "MANTLE-TESTNET",
253
- 1088: "METIS",
254
- 599: "METIS-TESTNET",
255
- 169: "MANTA",
256
- 3441005: "MANTA-TESTNET",
257
- 810180: zkLink,
258
- 810182: zkLinkTestnet,
259
- 200810: bitlayerTestnet,
260
- 200901: bitlayerMainnet,
261
- 12227330: neoxTestnet,
262
- 78600: vanarTestnet,
263
- };