How to use etherscan method in synthetixio-synpress

Best JavaScript code snippet using synthetixio-synpress

tokens.ts

Source:tokens.ts Github

copy

Full Screen

1export const tokensMainnet = [2 {3 label: 'Tether USD (USDT)',4 href:5 'https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7',6 image: 'https://etherscan.io/token/images/tether_32.png',7 },8 {9 label: 'BNB (BNB)',10 href:11 'https://etherscan.io/token/0xB8c77482e45F1F44dE1745F52C74426C631bDD52',12 image: 'https://etherscan.io/token/images/bnb_28_2.png',13 },14 // {15 // label: 'ChainLink Token (LINK)',16 // href:17 // 'https://etherscan.io/token/0x514910771af9ca656af840dff83e8264ecf986ca',18 // image: 'https://etherscan.io/token/images/chainlink_28_2.png',19 // },20 {21 label: 'USD Coin (USDC)',22 href:23 'https://etherscan.io/token/0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',24 image: 'https://etherscan.io/token/images/centre-usdc_28.png',25 },26 {27 label: 'Crypto.com Coin (CRO)',28 href:29 'https://etherscan.io/token/0xa0b73e1ff0b80914ab6fe0444e65848c4c34450b',30 image: 'https://etherscan.io/token/images/cro_32.png',31 },32 {33 label: 'OKB (OKB)',34 href:35 'https://etherscan.io/token/0x75231f58b43240c9718dd58b4967c5114342a86c',36 image: 'https://etherscan.io/token/images/okex_28.png',37 },38 {39 label: 'Compound Dai (cDAI)',40 href:41 'https://etherscan.io/token/0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643',42 image: 'https://etherscan.io/token/images/compounddai_32.png',43 },44 {45 label: 'Wrapped BTC (WBTC)',46 href:47 'https://etherscan.io/token/0x2260fac5e5542a773aa44fbcfedf7c193bc2c599',48 image: 'https://etherscan.io/token/images/wbtc_28.png?v=1',49 },50 {51 label: 'Bitfinex LEO Token (LEO)',52 href:53 'https://etherscan.io/token/0x2af5d2ad76741191d15dfe7bf6ac92d4bd912ca3',54 image: 'https://etherscan.io/token/images/leo_28_2.png',55 },56 {57 label: 'YF Link (YFL)',58 href:59 'https://etherscan.io/token/0x28cb7e841ee97947a86B06fA4090C8451f64c0be',60 image: 'https://etherscan.io/token/images/yflink_32.png',61 },62 {63 label: 'HuobiToken (HT)',64 href:65 'https://etherscan.io/token/0x6f259637dcd74c767781e37bc6133cd6a68aa161',66 image: 'https://etherscan.io/token/images/huobi_28.png',67 },68 {69 label: 'Dai Stablecoin (DAI)',70 href:71 'https://etherscan.io/token/0x6b175474e89094c44da98b954eedeac495271d0f',72 image: 'https://etherscan.io/token/images/MCDDai_32.png',73 },74 // {75 // label: 'Binance USD (BUSD)',76 // href:77 // 'https://etherscan.io/token/0x4fabb145d64652a948d72533023f6e7a623c7c53',78 // image: 'https://etherscan.io/token/images/binanceusd_32.png',79 // },80 {81 label: 'VeChain (VEN)',82 href:83 'https://etherscan.io/token/0xd850942ef8811f2a866692a623011bde52a462c1',84 image: 'https://etherscan.io/token/images/vechain_28.png',85 },86 {87 label: 'Uniswap (UNI)',88 href:89 'https://etherscan.io/token/0x1f9840a85d5af5bf1d1762f925bdaddc4201f984',90 image: 'https://etherscan.io/token/images/uniswap_32.png',91 },92 {93 label: 'Theta Token (THETA)',94 href:95 'https://etherscan.io/token/0x3883f5e181fccaf8410fa61e12b59bad963fb645',96 image: 'https://etherscan.io/token/images/theta_28.png',97 },98 {99 label: 'Maker (MKR)',100 href:101 'https://etherscan.io/token/0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2',102 image: 'https://etherscan.io/token/images/mkr-etherscan-35.png',103 },104 {105 label: 'UMA Voting Token v1 (UMA)',106 href:107 'https://etherscan.io/token/0x04Fa0d235C4abf4BcF4787aF4CF447DE572eF828',108 image: 'https://etherscan.io/token/images/umavotingtokenv1_32.png?v=3',109 },110 {111 label: 'Synthetix Network Token (SNX)',112 href:113 'https://etherscan.io/token/0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f',114 image: 'https://etherscan.io/token/images/snx_32.png',115 },116 {117 label: 'OMG Network (OMG)',118 href:119 'https://etherscan.io/token/0xd26114cd6EE289AccF82350c8d8487fedB8A0C07',120 image: 'https://etherscan.io/token/images/OMGNetwork_32.png',121 },122 {123 label: 'yearn.finance (YFI)',124 href:125 'https://etherscan.io/token/0x0bc529c00C6401aEF6D220BE8C6Ea1667F6Ad93e',126 image: 'https://etherscan.io/token/images/yfi_32.png',127 },128 {129 label: 'Celsius (CEL)',130 href:131 'https://etherscan.io/token/0xaaaebe6fe48e54f431b0c390cfaf0b017d09d42d',132 image: 'https://etherscan.io/token/images/celsiustoken1_28.png',133 },134 {135 label: 'Aave Token (AAVE)',136 href:137 'https://etherscan.io/token/0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9',138 image: 'https://etherscan.io/token/images/aave_32.png',139 },140 {141 label: 'TrueUSD (TUSD)',142 href:143 'https://etherscan.io/token/0x0000000000085d4780B73119b644AE5ecd22b376',144 image: 'https://etherscan.io/token/images/trueusd_32.png',145 },146 {147 label: 'Compound (COMP)',148 href:149 'https://etherscan.io/token/0xc00e94cb662c3520282e6f5717214004a7f26888',150 image: 'https://etherscan.io/token/images/comp_32.png',151 },152 {153 label: 'Compound Ether (cETH)',154 href:155 'https://etherscan.io/token/0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5',156 image: 'https://etherscan.io/token/images/compound-eth_28.png',157 },158 {159 label: 'BAT (BAT)',160 href:161 'https://etherscan.io/token/0x0d8775f648430679a709e98d2b0cb6250d2887ef',162 image: 'https://etherscan.io/token/images/bat.png',163 },164 {165 label: 'renBTC (renBTC)',166 href:167 'https://etherscan.io/token/0xeb4c2781e4eba804ce9a9803c67d0893436bb27d',168 image: 'https://etherscan.io/token/images/renbtc_32.png',169 },170 {171 label: 'Paxos Standard (PAX)',172 href:173 'https://etherscan.io/token/0x8e870d67f660d95d5be530380d0ec0bd388289e1',174 image: 'https://etherscan.io/token/images/paxos_28_2.png',175 },176 {177 label: 'Republic (REN)',178 href:179 'https://etherscan.io/token/0x408e41876cccdc0f92210600ef50372656052a38',180 image: 'https://etherscan.io/token/images/rentoken2_28.png',181 },182 {183 label: 'ZRX (ZRX)',184 href:185 'https://etherscan.io/token/0xe41d2489571d322189246dafa5ebde1f4699f498',186 image: 'https://etherscan.io/token/images/zrx_28.png?v=3',187 },188 {189 label: 'NXM (NXM)',190 href:191 'https://etherscan.io/token/0xd7c49cee7e9188cca6ad8ff264c1da2e69d4cf3b',192 image: 'https://etherscan.io/token/images/nxm_32.png',193 },194 {195 label: 'LoopringCoin V2 (LRC)',196 href:197 'https://etherscan.io/token/0xbbbbca6a901c926f240b89eacb641d8aec7aeafd',198 image: 'https://etherscan.io/token/images/lrc_32.png',199 },200 {201 label: 'Zilliqa (ZIL)',202 href:203 'https://etherscan.io/token/0x05f4a42e251f2d52b8ed15e9fedaacfcef1fad27',204 image: 'https://etherscan.io/token/images/zilliqa_28_2.png',205 },206 {207 label: 'Compound USD Coin (cUSDC)',208 href:209 'https://etherscan.io/token/0x39aa39c021dfbae8fac545936693ac917d5e7563',210 image: 'https://etherscan.io/token/images/compound-usdc_28.png',211 },212 {213 label: 'KyberNetwork (KNC)',214 href:215 'https://etherscan.io/token/0xdd974d5c2e2928dea5f71b9825b8b646686bd200',216 image: 'https://etherscan.io/token/images/kyber2_28.png',217 },218 {219 label: 'Numeraire (NMR)',220 href:221 'https://etherscan.io/token/0x1776e1f26f98b1a5df9cd347953a26dd3cb46671',222 image: 'https://etherscan.io/token/images/numeraire_28_2.png',223 },224 {225 label: 'BandToken (BAND)',226 href:227 'https://etherscan.io/token/0xba11d00c5f74255f56a5e366f4f77f5a186d7f55',228 image: 'https://etherscan.io/token/images/bandtoken_32.png',229 },230 {231 label: 'HUSD (HUSD)',232 href:233 'https://etherscan.io/token/0xdf574c24545e5ffecb9a659c229253d4111d87e1',234 image: 'https://etherscan.io/token/images/husd_32.png',235 },236 {237 label: 'EthLend (LEND)',238 href:239 'https://etherscan.io/token/0x80fB784B7eD66730e8b1DBd9820aFD29931aab03',240 image: 'https://etherscan.io/token/images/ethlend_28.png',241 },242 {243 label: 'EnjinCoin (ENJ)',244 href:245 'https://etherscan.io/token/0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c',246 image: 'https://etherscan.io/token/images/enjin_28_2.png',247 },248 {249 label: 'Quant (QNT)',250 href:251 'https://etherscan.io/token/0x4a220e6096b25eadb88358cb44068a3248254675',252 image: 'https://etherscan.io/token/images/quantnetwork_28_2.png',253 },254 {255 label: 'Ocean Token (OCEAN)',256 href:257 'https://etherscan.io/token/0x967da4048cD07aB37855c090aAF366e4ce1b9F48',258 image: 'https://etherscan.io/token/images/oceantoken_28.png',259 },260 {261 label: 'Aragon (ANT)',262 href:263 'https://etherscan.io/token/0x960b236A07cf122663c4303350609A66A7B288C0',264 image: 'https://etherscan.io/token/images/aragon_32.png',265 },266 {267 label: 'Balancer (BAL)',268 href:269 'https://etherscan.io/token/0xba100000625a3754423978a60c9317c58a424e3d',270 image: 'https://etherscan.io/token/images/Balancer_32.png',271 },272 {273 label: 'Reserve Rights (RSR)',274 href:275 'https://etherscan.io/token/0x8762db106b2c2a0bccb3a80d1ed41273552616e8',276 image: 'https://etherscan.io/token/images/reserverights_32.png',277 },278 {279 label: 'Ampleforth (AMPL)',280 href:281 'https://etherscan.io/token/0xd46ba6d942050d489dbd938a2c909a5d5039a161',282 image: 'https://etherscan.io/token/images/ampleforth_32.png',283 },284 {285 label: 'Bytom (BTM)',286 href:287 'https://etherscan.io/token/0xcb97e65f07da24d46bcdd078ebebd7c6e6e3d750',288 image: 'https://etherscan.io/token/images/bytom_28.png',289 },290 {291 label: 'Decentraland (MANA)',292 href:293 'https://etherscan.io/token/0x0f5d2fb29fb7d3cfee444a200298f468908cc942',294 image: 'https://etherscan.io/token/images/decentraland_32.png?v=1',295 },296 {297 label: 'DxChain Token (DX)',298 href:299 'https://etherscan.io/token/0x973e52691176d36453868d9d86572788d27041a9',300 image: 'https://etherscan.io/token/images/dxchain_28_2.png',301 },302 {303 label: 'Golem (GNT)',304 href:305 'https://etherscan.io/token/0xa74476443119A942dE498590Fe1f2454d7D4aC0d',306 image: 'https://etherscan.io/token/images/golem_28.png?v=2',307 },308 {309 label: 'Swipe (SXP)',310 href:311 'https://etherscan.io/token/0x8ce9137d39326ad0cd6491fb5cc0cba0e089b6a9',312 image: 'https://etherscan.io/token/images/swipe_32.png',313 },314 {315 label: 'IOSToken (IOST)',316 href:317 'https://etherscan.io/token/0xfa1a856cfa3409cfa145fa4e20eb270df3eb21ab',318 image: 'https://etherscan.io/token/images/iost_28.png',319 },320 {321 label: 'StatusNetwork (SNT)',322 href:323 'https://etherscan.io/token/0x744d70fdbe2ba4cf95131626614a1763df805b9e',324 image: 'https://etherscan.io/token/images/status.png',325 },326 {327 label: 'HoloToken (HOT)',328 href:329 'https://etherscan.io/token/0x6c6ee5e31d828de241282b9606c8e98ea48526e2',330 image: 'https://etherscan.io/token/images/holo_28.png',331 },332 {333 label: 'Nexo (NEXO)',334 href:335 'https://etherscan.io/token/0xb62132e35a6c13ee1ee0f84dc5d40bad8d815206',336 image: 'https://etherscan.io/token/images/nexo_32.png',337 },338 {339 label: 'Bancor (BNT)',340 href:341 'https://etherscan.io/token/0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c',342 image: 'https://etherscan.io/token/images/bancor.png',343 },344 {345 label: 'Kucoin Shares (KCS)',346 href:347 'https://etherscan.io/token/0x039b5649a59967e3e936d7471f9c3700100ee1ab',348 image: 'https://etherscan.io/token/images/kucoin_28.png',349 },350 {351 label: 'Divi Exchange Token (DIVX)',352 href:353 'https://etherscan.io/token/0x13f11c9905a08ca76e3e853be63d4f0944326c72',354 image: 'https://etherscan.io/token/images/diviproject_28.png',355 },356 {357 label: 'SushiToken (SUSHI)',358 href:359 'https://etherscan.io/token/0x6b3595068778dd592e39a122f4f5a5cf09c90fe2',360 image: 'https://etherscan.io/token/images/sushiswap_32.png',361 },362 {363 label: 'Reputation (REPv2)',364 href:365 'https://etherscan.io/token/0x221657776846890989a759ba2973e427dff5c9bb',366 image: 'https://etherscan.io/token/images/repv2_32.png',367 },368 {369 label: 'Synth sUSD (sUSD)',370 href:371 'https://etherscan.io/token/0x57ab1ec28d129707052df4df418d58a2d46d5f51',372 image: 'https://etherscan.io/token/images/SynththetixsUSD_32.png',373 },374 {375 label: 'Huobi BTC (HBTC)',376 href:377 'https://etherscan.io/token/0x0316EB71485b0Ab14103307bf65a021042c6d380',378 image: 'https://etherscan.io/token/images/huobibtc_32.png',379 },380 {381 label: 'Fantom Token (FTM)',382 href:383 'https://etherscan.io/token/0x4e15361fd6b4bb609fa63c81a2be19d873717870',384 image: 'https://etherscan.io/token/images/fantom_28.png',385 },386 {387 label: 'Paxos Gold (PAXG)',388 href:389 'https://etherscan.io/token/0x45804880De22913dAFE09f4980848ECE6EcbAf78',390 image: 'https://etherscan.io/token/images/paxosgold_32.png',391 },392 {393 label: 'Matic Token (MATIC)',394 href:395 'https://etherscan.io/token/0x7d1afa7b718fb893db30a3abc0cfc608aacfebb0',396 image: 'https://etherscan.io/token/images/matictoken_28.png',397 },398 {399 label: 'Serum (SRM)',400 href:401 'https://etherscan.io/token/0x476c5E26a75bd202a9683ffD34359C0CC15be0fF',402 image: 'https://etherscan.io/token/images/serum_32.png',403 },404 {405 label: 'Storj (STORJ)',406 href:407 'https://etherscan.io/token/0xb64ef51c888972c908cfacf59b47c1afbc0ab8ac',408 image: 'https://etherscan.io/token/images/storj_32.png',409 },410 {411 label: 'RLC (RLC)',412 href:413 'https://etherscan.io/token/0x607F4C5BB672230e8672085532f7e901544a7375',414 image: 'https://etherscan.io/token/images/iexec_28.png',415 },416 {417 label: 'Wrapped NXM (wNXM)',418 href:419 'https://etherscan.io/token/0x0d438f3b5175bebc262bf23753c1e53d03432bde',420 image: 'https://etherscan.io/token/images/nxm_32.png',421 },422 {423 label: 'KEEP Token (KEEP)',424 href:425 'https://etherscan.io/token/0x85eee30c52b0b379b046fb0f85f4f3dc3009afec',426 image: 'https://etherscan.io/token/images/keepnetwork_32.png',427 },428 {429 label: 'Utrust Token (UTK)',430 href:431 'https://etherscan.io/token/0xdc9Ac3C20D1ed0B540dF9b1feDC10039Df13F99c',432 image: 'https://etherscan.io/token/images/utrust_32.png',433 },434 {435 label: 'chiliZ (CHZ)',436 href:437 'https://etherscan.io/token/0x3506424f91fd33084466f402d5d97f05f8e3b4af',438 image: 'https://etherscan.io/token/images/chiliz_28.png',439 },440 {441 label: 'MCO (MCO)',442 href:443 'https://etherscan.io/token/0xb63b606ac810a52cca15e44bb630fd42d8d1d83d',444 image: 'https://etherscan.io/token/images/cryptocom_28.png',445 },446 {447 label: 'Compound 0x (cZRX)',448 href:449 'https://etherscan.io/token/0xb3319f5d18bc0d84dd1b4825dcde5d5f7266d407',450 image: 'https://etherscan.io/token/images/compound-zrx_28.png',451 },452 {453 label: 'WAX Token (WAX)',454 href:455 'https://etherscan.io/token/0x39bb259f66e1c59d5abef88375979b4d20d98022',456 image: 'https://etherscan.io/token/images/wax.png',457 },458 {459 label: 'SwissBorg (CHSB)',460 href:461 'https://etherscan.io/token/0xba9d4199fab4f26efe3551d490e3821486f135ba',462 image: 'https://etherscan.io/token/images/swissborg_28_3.png',463 },464 {465 label: 'Uquid Coin (UQC)',466 href:467 'https://etherscan.io/token/0x8806926Ab68EB5a7b909DcAf6FdBe5d93271D6e2',468 image: 'https://etherscan.io/token/images/uquid_28.png',469 },470 {471 label: 'Ankr Network (ANKR)',472 href:473 'https://etherscan.io/token/0x8290333cef9e6d528dd5618fb97a76f268f3edd4',474 image: 'https://etherscan.io/token/images/ankr_28.png',475 },476 {477 label: 'Enigma (ENG)',478 href:479 'https://etherscan.io/token/0xf0ee6b27b759c9893ce4f094b49ad28fd15a23e4',480 image: 'https://etherscan.io/token/images/enigma_28.png',481 },482 {483 label: 'Livepeer Token (LPT)',484 href:485 'https://etherscan.io/token/0x58b6a8a3302369daec383334672404ee733ab239',486 image: 'https://etherscan.io/token/images/livepeer_28.png',487 },488 {489 label: 'Gnosis (GNO)',490 href:491 'https://etherscan.io/token/0x6810e776880c02933d47db1b9fc05908e5386b96',492 image: 'https://etherscan.io/token/images/gnosans_32.png',493 },494 {495 label: 'Curve DAO Token (CRV)',496 href:497 'https://etherscan.io/token/0xD533a949740bb3306d119CC777fa900bA034cd52',498 image: 'https://etherscan.io/token/images/Curvefi_32.png',499 },500 {501 label: 'MXCToken (MXC)',502 href:503 'https://etherscan.io/token/0x5ca381bbfb58f0092df149bd3d243b08b9a8386e',504 image: 'https://etherscan.io/token/images/mxc_28.png',505 },506 {507 label: 'ELF (ELF)',508 href:509 'https://etherscan.io/token/0xbf2179859fc6d5bee9bf9158632dc51678a4100e',510 image: 'https://etherscan.io/token/images/aelf_28.png',511 },512 {513 label: 'UniBright (UBT)',514 href:515 'https://etherscan.io/token/0x8400d94a5cb0fa0d041a3788e395285d61c9ee5e',516 image: 'https://etherscan.io/token/images/unibright_28.png',517 },518 {519 label: 'Rocket Pool (RPL)',520 href:521 'https://etherscan.io/token/0xb4efd85c19999d84251304bda99e90b92300bd93',522 image: 'https://etherscan.io/token/images/Rocketpool_32.png',523 },524 {525 label: 'SingularityNET (AGI)',526 href:527 'https://etherscan.io/token/0x8eb24319393716668d768dcec29356ae9cffe285',528 image: 'https://etherscan.io/token/images/singularitynet_28.png',529 },530 {531 label: 'Pundi X Token (NPXS)',532 href:533 'https://etherscan.io/token/0xa15c7ebe1f07caf6bff097d8a589fb8ac49ae5b3',534 image: 'https://etherscan.io/token/images/pundix-28.png',535 },536 {537 label: 'HarmonyOne (ONE)',538 href:539 'https://etherscan.io/token/0x799a4202c12ca952cb311598a024c80ed371a41e',540 image: 'https://etherscan.io/token/images/harmonyone_32.png',541 },542 {543 label: 'WaykiCoin (WIC)',544 href:545 'https://etherscan.io/token/0x4f878c0852722b0976a955d68b376e4cd4ae99e5',546 image: 'https://etherscan.io/token/images/waykichain_28.png',547 },548 {549 label: 'STASIS EURS Token (EURS)',550 href:551 'https://etherscan.io/token/0xdb25f211ab05b1c97d595516f45794528a807ad8',552 image: 'https://etherscan.io/token/images/statiseuro_28.png',553 },554 {555 label: 'STAKE (STAKE)',556 href:557 'https://etherscan.io/token/0x0Ae055097C6d159879521C384F1D2123D1f195e6',558 image: 'https://etherscan.io/token/images/stake_32.png?v=2',559 },560 {561 label: 'AION (AION)',562 href:563 'https://etherscan.io/token/0x4CEdA7906a5Ed2179785Cd3A40A69ee8bc99C466',564 image: 'https://etherscan.io/token/images/aion-network_28.png',565 },566 {567 label: 'DIAToken (DIA)',568 href:569 'https://etherscan.io/token/0x84cA8bc7997272c7CfB4D0Cd3D55cd942B3c9419',570 image: 'https://etherscan.io/token/images/DiaData_32.png?v=1',571 },572 {573 label: 'Tellor Tributes (TRB)',574 href:575 'https://etherscan.io/token/0x0ba45a8b5d5575935b8158a88c631e9f9c95a2e5',576 image: 'https://etherscan.io/token/images/tellortributes_32.png?v=2',577 },578 {579 label: 'Compound USDT (cUSDT)',580 href:581 'https://etherscan.io/token/0xf650c3d88d12db855b8bf7d11be6c55a4e07dcc9',582 image: 'https://etherscan.io/token/images/compoundcUSDT_32.png',583 },584 {585 label: 'BTU Protocol (BTU)',586 href:587 'https://etherscan.io/token/0xb683d83a532e2cb7dfa5275eed3698436371cc9f',588 image: 'https://etherscan.io/token/images/btu_28.png',589 },590 {591 label: 'PowerLedger (POWR)',592 href:593 'https://etherscan.io/token/0x595832f8fc6bf59c85c527fec3740a1b7a361269',594 image: 'https://etherscan.io/token/images/powerledger_28_2.png',595 },596 {597 label: 'mStable USD (mUSD)',598 href:599 'https://etherscan.io/token/0xe2f2a5c287993345a840db3b0845fbc70f5935a5',600 image: 'https://etherscan.io/token/images/mstableusd_32.png',601 },602 {603 label: 'Chimpion (BNANA)',604 href:605 'https://etherscan.io/token/0x07ef9e82721ac16809d24dafbe1792ce01654db4',606 image: 'https://etherscan.io/token/images/chimpion_28.png',607 },608 {609 label: 'Wrapped Ether (WETH)',610 href:611 'https://etherscan.io/token/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',612 image: 'https://etherscan.io/token/images/weth_28.png',613 },614].map(t => ({ ...t, address: t.href.split('token/')[1] }));615// let arr = new Array(...document.getElementsByClassName('media')).map(media => {616// const a = media.getElementsByTagName('a')[0];617// const img = media.getElementsByTagName('img')[0];618//619// return {620// label: a.innerHTML,621// href: a.href,622// src: img.src623// }...

Full Screen

Full Screen

config.ts

Source:config.ts Github

copy

Full Screen

1import { PackageConfig } from "../../src/types";2const config: PackageConfig = {3 projectName: "Compound Finance",4 projectUrl: "https://compound.finance/",5 contracts: {6 cTUSDDelegate: {7 address: "0xce526fa199d2f772abbc5b40b3284cdab1b8e6de",8 source: "etherscan",9 },10 cTUSD: {11 address: "0x12392f67bdf24fae0af363c24ac620a2f67dad86",12 source: "etherscan",13 },14 cLINKDelegate: {15 address: "0x24aa720906378bb8364228bddb8cabbc1f6fe1ba",16 source: "etherscan",17 },18 cLINK: {19 address: "0xface851a4921ce59e912d19329929ce6da6eb0c7",20 source: "etherscan",21 },22 GovernorBravo: {23 address: "0xc0da02939e1441f497fd74f78ce7decb17b66529",24 source: "etherscan",25 },26 cWBTC2Delegate: {27 address: "0x24aa720906378bb8364228bddb8cabbc1f6fe1ba",28 source: "etherscan",29 },30 cWBTC2: {31 address: "0xccF4429DB6322D5C611ee964527D42E5d685DD6a",32 source: "etherscan",33 },34 wbtc2_irm: {35 address: "0xF2e5dB36B0682f2CD6bC805c3a4236194e01f4D5",36 source: "etherscan",37 },38 IRM_COMP_Updateable: {39 address: "0xd956188795ca6F4A74092ddca33E0Ea4cA3a1395",40 source: "etherscan",41 },42 cCOMPDelegate: {43 address: "0x338f7e5d19d9953b76dd81446b142c2d9fe03482",44 source: "etherscan",45 },46 cCOMP: {47 address: "0x70e36f6bf80a52b3b46b3af8e106cc0ed743e8e4",48 source: "etherscan",49 },50 ZRX: {51 address: "0xE41d2489571d322189246DaFA5ebDe1F4699F498",52 source: "etherscan",53 },54 cUSDC: {55 address: "0x39AA39c021dfbaE8faC545936693aC917d5E7563",56 source: "etherscan",57 },58 PriceOracle: {59 address: "0x02557a5e05defeffd4cae6d83ea3d173b272c904",60 source: "etherscan",61 },62 PriceOracleProxy: {63 address: "0xDDc46a3B076aec7ab3Fc37420A8eDd2959764Ec4",64 source: "etherscan",65 },66 Maximillion: {67 address: "0xf859A1AD94BcF445A406B892eF0d3082f4174088",68 source: "etherscan",69 },70 Base200bps_Slope2000bps_Jump20000bps_Kink90: {71 address: "0x6bc8fE27D0c7207733656595e73c0D5Cf7AfaE36",72 source: "etherscan",73 },74 GovernorAlpha: {75 address: "0xc0dA01a04C3f3E0be433606045bB7017A7323E38",76 source: "etherscan",77 },78 cDAI: {79 address: "0x5d3a536E4D6DbD6114cc1Ead35777bAB948E3643",80 source: "etherscan",81 },82 CompoundLens: {83 address: "0xA1Bd4a10185F30932C78185f86641f11902E873F",84 source: "etherscan",85 },86 DAI: {87 address: "0x6B175474E89094C44Da98b954EedeAC495271d0F",88 source: "etherscan",89 },90 StdComptroller: {91 address: "0x62F18C451af964197341d3c86D27e98C41BB8fcC",92 source: "etherscan",93 },94 Poster: {95 address: "0x3c6809319201b978d821190ba03fa19a3523bd96",96 source: "etherscan",97 },98 Unitroller: {99 address: "0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B",100 source: "etherscan",101 },102 USDT: {103 address: "0xdAC17F958D2ee523a2206206994597C13D831ec7",104 source: "etherscan",105 },106 Reservoir: {107 address: "0x2775b1c75658Be0F640272CCb8c72ac986009e38",108 source: "etherscan",109 },110 Comptroller: {111 address: "0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B",112 source: "etherscan",113 },114 COMP: {115 address: "0xc00e94Cb662C3520282E6f5717214004A7f26888",116 source: "etherscan",117 },118 cUSDT: {119 address: "0xf650C3d88D12dB855b8bf7D11Be6C55A4e07dCC9",120 source: "etherscan",121 },122 cBAT: {123 address: "0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E",124 source: "etherscan",125 },126 Base500bps_Slope1500bps: {127 address: "0xd928c8ead620bb316d2cefe3caf81dc2dec6ff63",128 source: "etherscan",129 },130 DSR_Kink_9000bps_Jump_12000bps_AssumedRF_500bps: {131 address: "0xec163986cC9a6593D6AdDcBFf5509430D348030F",132 source: "etherscan",133 },134 DSR_Updateable: {135 address: "0xfeD941d39905B23D6FAf02C8301d40bD4834E27F",136 source: "etherscan",137 },138 Base0bps_Slope2000bps: {139 address: "0xc64C4cBA055eFA614CE01F4BAD8A9F519C4f8FaB",140 source: "etherscan",141 },142 BAT: {143 address: "0x0D8775F648430679A709E98d2b0Cb6250d2887EF",144 source: "etherscan",145 },146 StdComptroller_2_6: {147 address: "0x97BD4Cc841FC999194174cd1803C543247a014fe",148 source: "etherscan",149 },150 Base200bps_Slope1000bps: {151 address: "0x0c3f8df27e1a00b47653fde878d68d35f00714c0",152 source: "etherscan",153 },154 cETH: {155 address: "0x4Ddc2D193948926D02f9B1fE9e1daa0718270ED5",156 source: "etherscan",157 },158 cDaiDelegate: {159 address: "0xbB8bE4772fAA655C255309afc3c5207aA7b896Fd",160 source: "etherscan",161 },162 cUsdtDelegate: {163 address: "0x976aa93ca5Aaa569109f4267589c619a097f001D",164 source: "etherscan",165 },166 cUniDelegate: {167 address: "0x338f7e5d19d9953b76dd81446b142c2d9fe03482",168 source: "etherscan",169 },170 UNI: {171 address: "0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",172 source: "etherscan",173 },174 cUNI: {175 address: "0x35a18000230da775cac24873d00ff85bccded550",176 source: "etherscan",177 },178 StdComptrollerG2: {179 address: "0xf592eF673057a451c49c9433E278c5d59b56132c",180 source: "etherscan",181 },182 DSR_Kink_9000bps_Jump_12000bps_AssumedRF_20000bps: {183 address: "0x000000007675b5E1dA008f037A0800B309e0C493",184 source: "etherscan",185 },186 Base500bps_Slope1200bps: {187 address: "0xa1046abfc2598F48C44Fb320d281d3F3c0733c9a",188 source: "etherscan",189 },190 cSAI: {191 address: "0xF5DCe57282A584D2746FaF1593d3121Fcac444dC",192 source: "etherscan",193 },194 StdComptrollerG3: {195 address: "0x9D0a0443FF4bB04391655B8cD205683d9fA75550",196 source: "etherscan",197 },198 Timelock: {199 address: "0x6d903f6003cca6255D85CcA4D3B5E5146dC33925",200 source: "etherscan",201 },202 Base200bps_Slope3000bps: {203 address: "0xBAE04CbF96391086dC643e842b517734E214D698",204 source: "etherscan",205 },206 StdComptrollerG4: {207 address: "0xAf601CbFF871d0BE62D18F79C31e387c76fa0374",208 source: "etherscan",209 },210 StdComptrollerG5: {211 address: "0x7b5e3521a049C8fF88e6349f33044c6Cc33c113c",212 source: "etherscan",213 },214 cREP: {215 address: "0x158079Ee67Fce2f58472A96584A73C7Ab9AC95c1",216 source: "etherscan",217 },218 Base200bps_Slope2000bps_Jump8000bps_Kink90: {219 address: "0x40C0C2c565335fa9C4235aC8E1CbFE2c97BAC13A",220 source: "etherscan",221 },222 WBTC: {223 address: "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599",224 source: "etherscan",225 },226 Base200bps_Slope222bps_Kink90_Jump40: {227 address: "0x5562024784cc914069d67D89a28e3201bF7b57E7",228 source: "etherscan",229 },230 SAI: {231 address: "0x89d24a6b4ccb1b6faa2625fe562bdd9a23260359",232 source: "etherscan",233 },234 REP: {235 address: "0x1985365e9f78359a9B6AD760e32412f4a445E862",236 source: "etherscan",237 },238 cZRX: {239 address: "0xB3319f5D18Bc0D84dD1b4825Dcde5d5f7266d407",240 source: "etherscan",241 },242 cWBTC: {243 address: "0xC11b1268C1A384e55C48c2391d8d480264A3A7F4",244 source: "etherscan",245 },246 USDC: {247 address: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",248 source: "etherscan",249 },250 PriceData: {251 address: "0xc629c26dced4277419cde234012f8160a0278a79",252 source: "etherscan",253 },254 PriceFeed: {255 address: "0x4007b71e01424b2314c020fb0344b03a7c499e1a",256 source: "etherscan",257 },258 KNC: {259 address: "0xdd974d5c2e2928dea5f71b9825b8b646686bd200",260 source: "etherscan",261 },262 LINK: {263 address: "0x514910771af9ca656af840dff83e8264ecf986ca",264 source: "etherscan",265 },266 TUSD: {267 address: "0x0000000000085d4780B73119b644AE5ecd22b376",268 source: "etherscan",269 },270 Uniswap: {271 address: "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",272 source: "etherscan",273 },274 Pair_ETH_ZRX: {275 address: "0xc6f348dd3b91a56d117ec0071c1e9b83c0996de4",276 source: "etherscan",277 },278 Pair_ETH_KNC: {279 address: "0xf49c43ae0faf37217bdcb00df478cf793edd6687",280 source: "etherscan",281 },282 Pair_COMP_ETH: {283 address: "0xcffdded873554f362ac02f8fb1f02e5ada10516f",284 source: "etherscan",285 },286 Pair_LINK_ETH: {287 address: "0xa2107fa5b38d9bbd2c461d6edf11b11a50f6b974",288 source: "etherscan",289 },290 Pair_DAI_ETH: {291 address: "0xA478c2975Ab1Ea89e8196811F51A7B7Ade33eB11",292 source: "etherscan",293 },294 Pair_WBTC_ETH: {295 address: "0xbb2b8038a1640196fbe3e38816f3e67cba72d940",296 source: "etherscan",297 },298 Pair_REP_ETH: {299 address: "0xec2D2240D02A8cf63C3fA0B7d2C5a3169a319496",300 source: "etherscan",301 },302 Pair_BAT_ETH: {303 address: "0xb6909b960dbbe7392d405429eb2b3649752b4838",304 source: "etherscan",305 },306 Pair_ETH_USDC: {307 address: "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",308 source: "etherscan",309 },310 PriceFeedPoster: {311 address: "0x83563ba7f1b093aae57fe876f8d870f8a1508886",312 source: "etherscan",313 },314 CrowdProposalFactory: {315 address: "0x54a06047087927D9B0fb21c1cf0ebd792764dDB8",316 source: "etherscan",317 },318 IRM_USDT_Updateable: {319 address: "0xFB564da37B41b2F6B6EDcc3e56FbF523bD9F2012",320 source: "etherscan",321 },322 IRM_USDC_Updateable: {323 address: "0xD8EC56013EA119E7181d231E5048f90fBbe753c0",324 source: "etherscan",325 },326 IRM_UNI_Updateable: {327 address: "0xd88b94128ff2b8cf2d7886cd1c1e46757418ca2a",328 source: "etherscan",329 },330 },331};...

Full Screen

Full Screen

etherscan-verification.ts

Source:etherscan-verification.ts Github

copy

Full Screen

1import {exit} from 'process';2import fs from 'fs';3import globby from 'globby';4import {file} from 'tmp-promise';5import {DRE} from './misc-utils';6const listSolidityFiles = (dir: string) => globby(`${dir}/**/*.sol`);7const fatalErrors = [8 `The address provided as argument contains a contract, but its bytecode`,9 `Daily limit of 100 source code submissions reached`,10];11export const SUPPORTED_ETHERSCAN_NETWORKS = ['main', 'ropsten', 'kovan'];12export const getEtherscanPath = async (contractName: string) => {13 const paths = await listSolidityFiles(DRE.config.paths.sources);14 const path = paths.find((p) => p.includes(contractName));15 if (!path) {16 throw new Error(17 `Contract path not found for ${contractName}. Check if smart contract file is equal to contractName input.`18 );19 }20 return `${path}:${contractName}`;21};22function delay(ms: number) {23 return new Promise((resolve) => setTimeout(resolve, ms));24}25export const verifyContract = async (26 contractName: string,27 address: string,28 constructorArguments: (string | string[])[],29 libraries?: string30) => {31 const currentNetwork = DRE.network.name;32 if (!process.env.ETHERSCAN_KEY) {33 throw Error('Missing process.env.ETHERSCAN_KEY.');34 }35 if (!SUPPORTED_ETHERSCAN_NETWORKS.includes(currentNetwork)) {36 throw Error(37 `Current network ${currentNetwork} not supported. Please change to one of the next networks: ${SUPPORTED_ETHERSCAN_NETWORKS.toString()}`38 );39 }40 const etherscanPath = await getEtherscanPath(contractName);41 try {42 console.log(43 '[ETHERSCAN][WARNING] Delaying Etherscan verification due their API can not find newly deployed contracts'44 );45 const msDelay = 3000;46 const times = 15;47 // Write a temporal file to host complex parameters for buidler-etherscan https://github.com/nomiclabs/buidler/tree/development/packages/buidler-etherscan#complex-arguments48 const {fd, path, cleanup} = await file({49 prefix: 'verify-params-',50 postfix: '.js',51 });52 fs.writeSync(fd, `module.exports = ${JSON.stringify([...constructorArguments])};`);53 const params = {54 contractName: etherscanPath,55 address: address,56 libraries,57 constructorArgs: path,58 };59 await runTaskWithRetry('verify', params, times, msDelay, cleanup);60 } catch (error) {}61};62export const runTaskWithRetry = async (63 task: string,64 params: any,65 times: number,66 msDelay: number,67 cleanup: () => void68) => {69 let counter = times;70 await delay(msDelay);71 try {72 if (times) {73 await DRE.run(task, params);74 cleanup();75 } else {76 cleanup();77 console.error(78 '[ETHERSCAN][ERROR] Errors after all the retries, check the logs for more information.'79 );80 }81 } catch (error) {82 counter--;83 console.info(`[ETHERSCAN][[INFO] Retrying attemps: ${counter}.`);84 console.error('[ETHERSCAN][[ERROR]', error.message);85 if (fatalErrors.some((fatalError) => error.message.includes(fatalError))) {86 console.error(87 '[ETHERSCAN][[ERROR] Fatal error detected, skip retries and resume deployment.'88 );89 return;90 }91 await runTaskWithRetry(task, params, counter, msDelay, cleanup);92 }93};94export const checkVerification = () => {95 const currentNetwork = DRE.network.name;96 if (!process.env.ETHERSCAN_KEY) {97 console.error('Missing process.env.ETHERSCAN_KEY.');98 exit(3);99 }100 if (!SUPPORTED_ETHERSCAN_NETWORKS.includes(currentNetwork)) {101 console.error(102 `Current network ${currentNetwork} not supported. Please change to one of the next networks: ${SUPPORTED_ETHERSCAN_NETWORKS.toString()}`103 );104 exit(5);105 }...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1const { etherscan } = require("@synthetixio/synpress");2const { web3 } = require("@synthetixio/synpress");3describe("Synthetix", () => {4 const { etherscan } = require("@synthetixio/synpress");5 const { web3 } = require("@synthetixio/synpress");6 it("should have the correct synthetix balance", async () => {7 const { etherscan } = require("@synthetixio/synpress");8 const { web3 } = require("@synthetixio/synpress");9 const balance = await etherscan.getSynthetixBalance(10 );11 expect(balance).to.be.equal("100000000000000000000");12 });13 it("should have the correct synth balance", async () => {14 const balance = await etherscan.getSynthBalance(15 );16 expect(balance).to.be.equal("100000000000000000000");17 });18 it("should have the correct synthetix balance", async () => {19 const balance = await web3.getSynthetixBalance(20 );21 expect(balance).to.be.equal("100000000000000000000");22 });23 it("should have the correct synth balance", async ()

Full Screen

Using AI Code Generation

copy

Full Screen

1const synthetixioSynpress = require('synthetixio-synpress');2const etherscan = require('synthetixio-synpress/etherscan');3const { ethers } = require('ethers');4const { SynthetixJs } = require('synthetix-js');5const { SynthetixProvider } = require('@synthetixio/contracts-interface');6const { SynthetixJs } = require('synthetix-js');7const { SynthetixProvider } = require('@synthetixio/contracts-interface');8const provider = ethers.getDefaultProvider('kovan');9const synthetixProvider = new SynthetixProvider({ networkId: 42, provider });10const synthetixJs = new SynthetixJs({ networkId: 42, provider: synthetixProvider });11const { SynthetixJs } = require('synthetix-js');12const { SynthetixProvider } = require('@synthetixio/contracts-interface');13const provider = ethers.getDefaultProvider('kovan');14const synthetixProvider = new SynthetixProvider({ networkId: 42, provider });15const synthetixJs = new SynthetixJs({ networkId: 42, provider: synthetixProvider });16const { SynthetixJs } = require('synthetix-js');17const { SynthetixProvider } = require('@synthetixio/contracts-interface');18const provider = ethers.getDefaultProvider('kovan');19const synthetixProvider = new SynthetixProvider({ networkId: 42, provider });20const synthetixJs = new SynthetixJs({ networkId: 42, provider: synthetixProvider });21const { SynthetixJs } = require('synthetix-js');22const { SynthetixProvider } = require('@synthetixio/contracts-interface');23const provider = ethers.getDefaultProvider('kovan');24const synthetixProvider = new SynthetixProvider({ networkId: 42, provider });25const synthetixJs = new SynthetixJs({ networkId: 42, provider: synthetixProvider });26const { SynthetixJs } = require('synthetix-js');27const { SynthetixProvider } = require('@synthetixio/contracts-interface');

Full Screen

Using AI Code Generation

copy

Full Screen

1const { etherscan } = require('synpress');2async function main() {3 const price = await etherscan.getPrice('sUSD');4 console.log(price);5}6main().catch(console.error);7const { etherscan } = require('synpress');8async function main() {9 const price = await etherscan.getPrice('sETH');10 console.log(price);11}12main().catch(console.error);13const { etherscan } = require('synpress');14async function main() {15 const price = await etherscan.getPrice('sBTC');16 console.log(price);17}18main().catch(console.error);19const { etherscan } = require('synpress');20async function main() {21 const price = await etherscan.getPrice('sLINK');22 console.log(price);23}24main().catch(console.error);25const { etherscan } = require('synpress');26async function main() {27 const price = await etherscan.getPrice('sADA');28 console.log(price);29}30main().catch(console.error);31const { etherscan } = require('synpress');32async function main() {33 const price = await etherscan.getPrice('sDOT');34 console.log(price);35}36main().catch(console.error);37const { etherscan } = require('synpress');38async function main() {39 const price = await etherscan.getPrice('sBNB');40 console.log(price);41}42main().catch(console.error);

Full Screen

Using AI Code Generation

copy

Full Screen

1const etherscan = require('etherscan-api').init('YourApiKey');2const synthetixio = require('synthetixio-synpress')3async function getSynthetixPrice() {4 const price = await synthetixio.snxPrice();5 console.log(price);6}7async function getSynthetixPriceViaEtherscan() {8 const price = await etherscan.contract.getContractEvents('0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F', '0x57ab1ec28d129707052df4df418d58a2d46d5f51', 'Synthetix', 'SynthExchange', 1, 'latest', 'asc', '1');9 console.log(price);10}11getSynthetixPrice();12getSynthetixPriceViaEtherscan();

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run synthetixio-synpress automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful