diff --git a/README.md b/README.md index b05479a..233a685 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,7 @@ main() Import and Export ERC20 tokens from sifchain to ethereum and back. -Be sure to check the fee and gas is set to your preference in the `config.ts` file and the hard coded values in the `exportToken` and `importToken` function bodies. All available tokens along with corresponding symbols are found in the `sdk/assets.sifchain.mainnet.json` file. The assets in this file with `homeNetwork` equal to `"ethereum"` are ERC20 tokens. +Be sure to check the fee and gas is set to your preference in the `config.ts` file and the hard coded values in the `exportToken` and `importToken` function bodies. ERC20 token addresses are found in the `sdk/ethbridge/erc20TokenAddresses.json` file. Double check these are the correct ERC20 addresses. #### Import Eth or ERC20 tokens from Ethereum to Sifchain diff --git a/index.ts b/index.ts index 04dabef..ebd1f83 100644 --- a/index.ts +++ b/index.ts @@ -1,12 +1,16 @@ -import { delegate } from './sdk/validators/delegate' -import { undelegate } from './sdk/validators/undelegate' -import { swap } from './sdk/pools/swap' -import { importToken } from './sdk/ethbridge/importToken' +// import { delegate } from './sdk/validators/delegate' +// import { undelegate } from './sdk/validators/undelegate' +// import { swap } from './sdk/pools/swap' +// import { importToken } from './sdk/ethbridge/importToken' +import { getDexSymbols } from './sdk/helpers' const start = async () => { console.log('Sifchain ClientSDK. Add application logic here.') // // *** Your logic here *** + + console.log('Available tokens: ', await getDexSymbols()) + // // const importTokenRes = await importToken('eth', '1000000000001') // console.log({ importTokenRes }) diff --git a/sdk/assets.sifchain.mainnet.json b/sdk/assets.sifchain.mainnet.json deleted file mode 100644 index d75903b..0000000 --- a/sdk/assets.sifchain.mainnet.json +++ /dev/null @@ -1,701 +0,0 @@ -[ - { - "symbol": "erowan", - "decimals": 18, - "name": "Rowan", - "imageUrl": "./images/siflogo.png", - "address": "0x07bac35846e5ed502aa91adf6a9e7aa210f2dcbe", - "network": "ethereum", - "homeNetwork": "ethereum" - }, - { - "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", - "decimals": 6, - "imageUrl": "https://assets.coingecko.com/coins/images/325/thumb/Tether-logo.png?1598003707", - "name": "Tether USDT", - "network": "ethereum", - "priceUsd": 0.999153, - "symbol": "USDT", - "transferLimit": "5004238590", - "homeNetwork": "ethereum" - }, - { - "address": "0x0000000000000000000000000000000000000000", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/279/small/ethereum.png?1595348880", - "name": "Ethereum", - "network": "ethereum", - "priceUsd": 1145, - "symbol": "eth", - "transferLimit": "4381237787299667968", - "homeNetwork": "ethereum" - }, - { - "address": "0x0d8775f648430679a709e98d2b0cb6250d2887ef", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/677/thumb/basic-attention-token.png?1547034427", - "name": "Basic Attention Token", - "network": "ethereum", - "priceUsd": 0.309639, - "symbol": "BAT", - "transferLimit": "16147836674320740909056", - "homeNetwork": "ethereum" - }, - { - "address": "0xa117000000f279d81a1d3cc75430faa017fa5a2e", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/681/thumb/JelZ58cv_400x400.png?1601449653", - "name": "Aragon", - "network": "ethereum", - "priceUsd": 3.83, - "symbol": "ANT", - "transferLimit": "1305483028720626696192", - "homeNetwork": "ethereum" - }, - { - "address": "0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/736/thumb/bancor.png?1547034477", - "name": "Bancor Network Token", - "network": "ethereum", - "priceUsd": 1.94, - "symbol": "BNT", - "transferLimit": "2577319587628866076672", - "homeNetwork": "ethereum" - }, - { - "address": "0xe41d2489571d322189246dafa5ebde1f4699f498", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/863/thumb/0x.png?1547034672", - "name": "0x", - "network": "ethereum", - "priceUsd": 0.61159, - "symbol": "ZRX", - "transferLimit": "8175411631975670218752", - "homeNetwork": "ethereum" - }, - { - "address": "0x514910771af9ca656af840dff83e8264ecf986ca", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/877/thumb/chainlink-new-logo.png?1547034700", - "name": "Chainlink", - "network": "ethereum", - "priceUsd": 23.32, - "symbol": "LINK", - "transferLimit": "214408233276157788160", - "homeNetwork": "ethereum" - }, - { - "address": "0x0f5d2fb29fb7d3cfee444a200298f468908cc942", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/878/thumb/decentraland-mana.png?1550108745", - "name": "Decentraland", - "network": "ethereum", - "priceUsd": 0.158751, - "symbol": "MANA", - "transferLimit": "31495864592978940002304", - "homeNetwork": "ethereum" - }, - { - "address": "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/913/thumb/LRC.png?1572852344", - "name": "Loopring", - "network": "ethereum", - "priceUsd": 0.465068, - "symbol": "LRC", - "transferLimit": "10751115965837254590464", - "homeNetwork": "ethereum" - }, - { - "address": "0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/1102/thumb/enjin-coin-logo.png?1547035078", - "name": "Enjin Coin", - "network": "ethereum", - "priceUsd": 0.367884, - "symbol": "ENJ", - "transferLimit": "13591240717182590517248", - "homeNetwork": "ethereum" - }, - { - "address": "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/3406/thumb/SNX.png?1598631139", - "name": "Synthetix Network Token", - "network": "ethereum", - "priceUsd": 17.31, - "symbol": "SNX", - "transferLimit": "288850375505488150528", - "homeNetwork": "ethereum" - }, - { - "address": "0x0000000000085d4780b73119b644ae5ecd22b376", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/3449/thumb/TUSD.png?1559172762", - "name": "TrueUSD", - "network": "ethereum", - "priceUsd": 0.999831, - "symbol": "TUSD", - "transferLimit": "5000845142829138182144", - "homeNetwork": "ethereum" - }, - { - "address": "0x967da4048cd07ab37855c090aaf366e4ce1b9f48", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/3687/thumb/ocean-protocol-logo.jpg?1547038686", - "name": "Ocean Protocol", - "network": "ethereum", - "priceUsd": 0.568633, - "symbol": "OCEAN", - "transferLimit": "8793017640551988592640", - "homeNetwork": "ethereum" - }, - { - "address": "0x4e15361fd6b4bb609fa63c81a2be19d873717870", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/4001/thumb/Fantom.png?1558015016", - "name": "Fantom", - "network": "ethereum", - "priceUsd": 0.145596, - "symbol": "FTM", - "transferLimit": "34341602791285476818944", - "homeNetwork": "ethereum" - }, - { - "address": "0x57ab1ec28d129707052df4df418d58a2d46d5f51", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/5013/thumb/sUSD.png?1562212426", - "name": "sUSD", - "network": "ethereum", - "priceUsd": 1.01, - "symbol": "SUSD", - "transferLimit": "4950495049504951107584", - "homeNetwork": "ethereum" - }, - { - "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", - "decimals": 6, - "imageUrl": "https://assets.coingecko.com/coins/images/6319/thumb/USD_Coin_icon.png?1547042389", - "name": "USD Coin", - "network": "ethereum", - "priceUsd": 1, - "symbol": "USDC", - "transferLimit": "5000000000", - "homeNetwork": "ethereum" - }, - { - "address": "0xa0b73e1ff0b80914ab6fe0444e65848c4c34450b", - "decimals": 8, - "imageUrl": "https://assets.coingecko.com/coins/images/7310/thumb/cypto.png?1547043960", - "name": "Crypto com Coin", - "network": "ethereum", - "priceUsd": 0.070311, - "symbol": "CRO", - "displaySymbol": "CRO (ERC-20)", - "transferLimit": "7111262818051", - "homeNetwork": "ethereum", - "decommissioned": true, - "decommissionReason": "Crypto.org's ERC-20 token has been decommissioned on Sifchain in favor of the Cosmos CRO token. Please export all CRO (ERC-20) off of Sifchain." - }, - { - "address": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599", - "decimals": 8, - "imageUrl": "https://assets.coingecko.com/coins/images/7598/thumb/wrapped_bitcoin_wbtc.png?1548822744", - "name": "Wrapped Bitcoin", - "network": "ethereum", - "priceUsd": 33982, - "symbol": "WBTC", - "transferLimit": "14713671", - "homeNetwork": "ethereum" - }, - { - "address": "0x8ce9137d39326ad0cd6491fb5cc0cba0e089b6a9", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/9368/thumb/swipe.png?1566792311", - "name": "Swipe", - "network": "ethereum", - "priceUsd": 1.21, - "symbol": "SXP", - "transferLimit": "4132231404958677729280", - "homeNetwork": "ethereum" - }, - { - "address": "0xba11d00c5f74255f56a5e366f4f77f5a186d7f55", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/9545/thumb/band-protocol.png?1568730326", - "name": "Band Protocol", - "network": "ethereum", - "priceUsd": 9, - "symbol": "BAND", - "transferLimit": "555555555555555540992", - "homeNetwork": "ethereum" - }, - { - "address": "0x6b175474e89094c44da98b954eedeac495271d0f", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/9956/thumb/dai-multi-collateral-mcd.png?1574218774", - "name": "Dai Stablecoin", - "network": "ethereum", - "priceUsd": 0.997605, - "symbol": "DAI", - "transferLimit": "5012003748978804916224", - "homeNetwork": "ethereum" - }, - { - "address": "0xc00e94cb662c3520282e6f5717214004a7f26888", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/10775/thumb/COMP.png?1592625425", - "name": "Compound", - "network": "ethereum", - "priceUsd": 257.26, - "symbol": "COMP", - "transferLimit": "19435590453237972992", - "homeNetwork": "ethereum" - }, - { - "address": "0x04fa0d235c4abf4bcf4787af4cf447de572ef828", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/10951/thumb/UMA.png?1586307916", - "name": "UMA", - "network": "ethereum", - "priceUsd": 10.86, - "symbol": "UMA", - "transferLimit": "460405156537753272320", - "homeNetwork": "ethereum" - }, - { - "address": "0xba100000625a3754423978a60c9317c58a424e3d", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/11683/thumb/Balancer.png?1592792958", - "name": "Balancer", - "network": "ethereum", - "priceUsd": 23.76, - "symbol": "BAL", - "transferLimit": "210437710437710430208", - "homeNetwork": "ethereum" - }, - { - "address": "0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/11849/thumb/yfi-192x192.png?1598325330", - "name": "yearn finance", - "network": "ethereum", - "priceUsd": 30163, - "symbol": "YFI", - "transferLimit": "165766004707754528", - "homeNetwork": "ethereum" - }, - { - "address": "0x476c5e26a75bd202a9683ffd34359c0cc15be0ff", - "decimals": 6, - "imageUrl": "https://assets.coingecko.com/coins/images/11970/thumb/serum-logo.png?1597121577", - "name": "Serum", - "network": "ethereum", - "priceUsd": 1.92, - "symbol": "SRM", - "transferLimit": "2604166666", - "homeNetwork": "ethereum" - }, - { - "address": "0x2ba592f78db6436527729929aaf6c908497cb200", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/11976/thumb/Cream.png?1596593418", - "name": "Cream", - "network": "ethereum", - "priceUsd": 152.33, - "symbol": "CREAM", - "transferLimit": "32823475349570011136", - "homeNetwork": "ethereum" - }, - { - "address": "0x3845badade8e6dff049820680d1f14bd3903a5d0", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12129/thumb/sandbox_logo.jpg?1597397942", - "name": "SAND", - "network": "ethereum", - "priceUsd": 0.090036, - "symbol": "SAND", - "transferLimit": "55533342218668080103424", - "homeNetwork": "ethereum" - }, - { - "address": "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12271/thumb/512x512_Logo_no_chop.png?1606986688", - "name": "Sushi", - "network": "ethereum", - "priceUsd": 8.39, - "symbol": "SUSHI", - "transferLimit": "595947556615017725952", - "homeNetwork": "ethereum" - }, - { - "address": "0x36f3fd68e7325a35eb768f1aedaae9ea0689d723", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12440/thumb/esd_logo_circle.png?1603676421", - "name": "Empty Set Dollar", - "network": "ethereum", - "priceUsd": 0.213968, - "symbol": "ESD", - "transferLimit": "23367980258730274979840", - "homeNetwork": "ethereum" - }, - { - "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12504/thumb/uniswap-uni.png?1600306604", - "name": "Uniswap", - "network": "ethereum", - "priceUsd": 15.38, - "symbol": "UNI", - "transferLimit": "325097529258777640960", - "homeNetwork": "ethereum" - }, - { - "address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12645/thumb/AAVE.png?1601374110", - "name": "Aave", - "network": "ethereum", - "priceUsd": 301.33, - "symbol": "AAVE", - "transferLimit": "16593103906016661504", - "homeNetwork": "ethereum" - }, - { - "address": "0x0391d2021f89dc339f60fff84546ea23e337750f", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12811/thumb/barnbridge.jpg?1602728853", - "name": "BarnBridge", - "network": "ethereum", - "priceUsd": 49.83, - "symbol": "BOND", - "transferLimit": "100341159943808942080", - "homeNetwork": "ethereum" - }, - { - "address": "0x6e1a19f235be7ed8e3369ef73b196c07257494de", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/13238/thumb/WFIL-Icon.png?1606630561", - "name": "Wrapped Filecoin", - "network": "ethereum", - "priceUsd": 28.04, - "symbol": "WFIL", - "transferLimit": "178316690442225385472", - "homeNetwork": "ethereum" - }, - { - "address": "0xc944e90c64b2c07662a292be6244bdf05cda44a7", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/13397/thumb/Graph_Token.png?1608145566", - "name": "The Graph", - "network": "ethereum", - "priceUsd": 0.624661, - "symbol": "GRT", - "transferLimit": "8004341554859355406336", - "homeNetwork": "ethereum" - }, - { - "address": "0x0000000000095413afc295d19edeb1ad7b71c952", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/13454/thumb/lon_logo.png?1608701720", - "name": "Tokenlon", - "network": "ethereum", - "priceUsd": 6.68, - "symbol": "LON", - "transferLimit": "748502994011976105984", - "homeNetwork": "ethereum" - }, - { - "address": "0x111111111117dc0aa78b770fa6a738034120c302", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028", - "name": "1inch", - "network": "ethereum", - "priceUsd": 3.16, - "symbol": "1INCH", - "transferLimit": "1582278481012658274304", - "homeNetwork": "ethereum" - }, - { - "address": "0x3155ba85d5f96b2d030a4966af206230e46849cb", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/13677/thumb/BrMhBTr8_400x400.jpg?1610723303", - "name": "THORChain ERC20", - "network": "ethereum", - "priceUsd": 3.23, - "symbol": "RUNE", - "transferLimit": "1547987616099071164416", - "homeNetwork": "ethereum" - }, - { - "address": "0x2b89bf8ba858cd2fcee1fada378d5cd6936968be", - "decimals": 6, - "imageUrl": "https://assets.coingecko.com/coins/images/13767/thumb/Secret_S_Black_Coingecko.png?1611667298", - "name": "Secret ERC20 ", - "network": "ethereum", - "priceUsd": 1.12, - "symbol": "WSCRT", - "transferLimit": "4464285714", - "homeNetwork": "ethereum" - }, - { - "address": "0x6fb3e0a217407efff7ca062d46c26e5d60a14d69", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/3334/small/iotex-logo.png?1547037941", - "name": "IoTeX", - "network": "ethereum", - "priceUsd": 0.0109, - "symbol": "IOTX", - "transferLimit": "458715596330000000000000", - "homeNetwork": "ethereum" - }, - { - "address": "0xfe3e6a25e6b192a42a44ecddcd13796471735acf", - "name": "Reef Finance", - "symbol": "REEF", - "decimals": 18, - "priceUsd": 0.01802738, - "transferLimit": "277355888654000000000000", - "network": "ethereum", - "imageUrl": "https://assets.coingecko.com/coins/images/13504/small/Group_10572.png?1610534130", - "homeNetwork": "ethereum" - }, - { - "address": "0xc4c7ea4fab34bd9fb9a5e1b1a98df76e26e6407c", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/4932/thumb/_QPpjoUi_400x400.jpg?1566430520", - "name": "COCOS BCX", - "network": "ethereum", - "priceUsd": 0.92712, - "symbol": "cocos", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x85eee30c52b0b379b046fb0f85f4f3dc3009afec", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/3373/small/IuNzUb5b_400x400.jpg?1589526336", - "name": "Keep Network", - "network": "ethereum", - "priceUsd": 0.3684, - "symbol": "keep", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x8207c1ffc5b6804f6024322ccf34f29c3541ae26", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/3296/small/op.jpg?1547037878", - "name": "Origin Protocol", - "network": "ethereum", - "priceUsd": 0.4111, - "symbol": "ogn", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0xd82bb924a1707950903e2c0a619824024e254cd1", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12782/small/logocircle.png?1611944557", - "name": "DAOfi", - "network": "ethereum", - "priceUsd": 1.05, - "symbol": "daofi", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x3e9bc21c9b189c09df3ef1b824798658d5011937", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12509/small/linear.jpg?1606884470", - "name": "Linear", - "network": "ethereum", - "priceUsd": 0.1706, - "symbol": "lina", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x525794473f7ab5715c81d06d10f52d11cc052804", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/9351/small/12ships.png?1566485390", - "name": "12Ships", - "network": "ethereum", - "priceUsd": 0.0318, - "symbol": "tshp", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0xc4de189abf94c57f396bd4c52ab13b954febefd8", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/13803/small/b20.png?1611996305", - "name": "B.20", - "network": "ethereum", - "priceUsd": 9.0934, - "symbol": "b20", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x8ab7404063ec4dbcfd4598215992dc3f8ec853d7", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/3328/small/Akropolis.png?1547037929", - "name": "Akropolis", - "network": "ethereum", - "priceUsd": 0.067, - "symbol": "akro", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0xaf9f549774ecedbd0966c52f250acc548d3f36e5", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12623/small/RFUEL_SQR.png?1602481093", - "name": "Rio Fuel Token", - "network": "ethereum", - "priceUsd": 0.1596, - "symbol": "rfuel", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0xf1f955016ecbcd7321c7266bccfb96c68ea5e49b", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/12843/small/image.png?1611212077", - "name": "Rally", - "network": "ethereum", - "priceUsd": 1.11, - "symbol": "rly", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0xc834fa996fa3bec7aad3693af486ae53d8aa8b50", - "decimals": 18, - "imageUrl": "https://etherscan.io/token/images/convergence_32.png", - "name": "Convergence", - "network": "ethereum", - "priceUsd": 0.1531, - "symbol": "conv", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x6de037ef9ad2725eb40118bb1702ebb27e4aeb24", - "decimals": 18, - "imageUrl": "https://etherscan.io/token/images/render_32.png", - "name": "Render Token", - "network": "ethereum", - "priceUsd": 2.21, - "symbol": "rndr", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x1614f18fc94f47967a3fbe5ffcd46d4e7da3d787", - "decimals": 18, - "imageUrl": "https://etherscan.io/token/images/paidnetwork_32.png", - "name": "PAID Network", - "network": "ethereum", - "priceUsd": 0.1596, - "symbol": "paid", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x29cbd0510eec0327992cd6006e63f9fa8e7f33b7", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/14460/small/Tidal-mono.png?1616233894", - "name": "Tidal", - "network": "ethereum", - "priceUsd": 0, - "symbol": "tidal", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce", - "decimals": 18, - "imageUrl": "https://assets.coingecko.com/coins/images/11939/small/SHIBLOGO.png?1600752116", - "name": "SHIBA INU", - "network": "ethereum", - "priceUsd": 0, - "symbol": "SHIB", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "0x27c70cd1946795b66be9d954418546998b546634", - "decimals": 18, - "imageUrl": "https://etherscan.io/token/images/dogekiller_32.png", - "name": "DOGE KILLER", - "network": "ethereum", - "priceUsd": 0, - "symbol": "LEASH", - "transferLimit": "99999999999999999999999", - "homeNetwork": "ethereum" - }, - { - "address": "", - "decimals": 6, - "imageUrl": "https://assets.coingecko.com/coins/images/1481/small/cosmos_hub.png?1555657960", - "name": "Atom", - "network": "ethereum", - "homeNetwork": "cosmoshub", - "priceUsd": 0, - "symbol": "uatom", - "displaySymbol": "atom", - "transferLimit": "99999999999999999999999" - }, - { - "address": "", - "decimals": 6, - "imageUrl": "https://assets.coingecko.com/coins/images/12785/small/akash-logo.png?1615447676", - "name": "AKT", - "network": "ethereum", - "homeNetwork": "akash", - "priceUsd": 0, - "symbol": "uakt", - "displaySymbol": "akt", - "transferLimit": "99999999999999999999999" - }, - { - "symbol": "uiris", - "decimals": 6, - "name": "IRIS", - "network": "ethereum", - "label": "IRIS", - "imageUrl": "https://assets.coingecko.com/coins/images/5135/small/IRIS.png?1557999365", - "displaySymbol": "iris", - "homeNetwork": "iris", - "transferLimit": "99999999999999999999999", - "address": "" - }, - { - "symbol": "uxprt", - "displaySymbol": "xprt", - "decimals": 6, - "name": "xprt", - "network": "ethereum", - "label": "xprt", - "imageUrl": "https://persistence.one/favicon.png", - "homeNetwork": "persistence", - "transferLimit": "99999999999999999999999", - "address": "" - }, - { - "symbol": "uregen", - "displaySymbol": "regen", - "decimals": 6, - "name": "regen", - "network": "ethereum", - "label": "regen", - "imageUrl": "https://assets.coingecko.com/coins/images/16733/small/REGEN.png?1624861317", - "homeNetwork": "regen", - "transferLimit": "99999999999999999999999", - "address": "" - } -] diff --git a/sdk/dexEntriesCache.json b/sdk/dexEntriesCache.json new file mode 100644 index 0000000..f166e1a --- /dev/null +++ b/sdk/dexEntriesCache.json @@ -0,0 +1,2044 @@ +{ + "timestamp": 1632906957193, + "entries": [ + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "rowan", + "baseDenom": "rowan", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "cusdt", + "baseDenom": "cusdt", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "cusdc", + "baseDenom": "cusdc", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 8, + "high": 0, + "unsigned": false + }, + "denom": "ccro", + "baseDenom": "ccro", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 8, + "high": 0, + "unsigned": false + }, + "denom": "cwbtc", + "baseDenom": "cwbtc", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ceth", + "baseDenom": "ceth", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cdai", + "baseDenom": "cdai", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cyfi", + "baseDenom": "cyfi", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "czrx", + "baseDenom": "czrx", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "cwscrt", + "baseDenom": "cwscrt", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cwfil", + "baseDenom": "cwfil", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cuni", + "baseDenom": "cuni", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cuma", + "baseDenom": "cuma", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ctusd", + "baseDenom": "ctusd", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "csxp", + "baseDenom": "csxp", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "csushi", + "baseDenom": "csushi", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "csusd", + "baseDenom": "csusd", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "csrm", + "baseDenom": "csrm", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "csnx", + "baseDenom": "csnx", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "csand", + "baseDenom": "csand", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "crune", + "baseDenom": "crune", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "creef", + "baseDenom": "creef", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cogn", + "baseDenom": "cogn", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cocean", + "baseDenom": "cocean", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cmana", + "baseDenom": "cmana", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "clrc", + "baseDenom": "clrc", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "clon", + "baseDenom": "clon", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "clink", + "baseDenom": "clink", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ciotx", + "baseDenom": "ciotx", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cgrt", + "baseDenom": "cgrt", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cftm", + "baseDenom": "cftm", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cesd", + "baseDenom": "cesd", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cenj", + "baseDenom": "cenj", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ccream", + "baseDenom": "ccream", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ccomp", + "baseDenom": "ccomp", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ccocos", + "baseDenom": "ccocos", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cbond", + "baseDenom": "cbond", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cbnt", + "baseDenom": "cbnt", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cbat", + "baseDenom": "cbat", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cband", + "baseDenom": "cband", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cbal", + "baseDenom": "cbal", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cant", + "baseDenom": "cant", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "caave", + "baseDenom": "caave", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "c1inch", + "baseDenom": "c1inch", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cleash", + "baseDenom": "cleash", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cshib", + "baseDenom": "cshib", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ctidal", + "baseDenom": "ctidal", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cpaid", + "baseDenom": "cpaid", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "crndr", + "baseDenom": "crndr", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cconv", + "baseDenom": "cconv", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "crfuel", + "baseDenom": "crfuel", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cakro", + "baseDenom": "cakro", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cb20", + "baseDenom": "cb20", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ctshp", + "baseDenom": "ctshp", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "clina", + "baseDenom": "clina", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cdaofi", + "baseDenom": "cdaofi", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ckeep", + "baseDenom": "ckeep", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2", + "baseDenom": "uatom", + "path": "transfer/channel-0", + "ibcChannelId": "channel-0", + "ibcCounterpartyChannelId": "channel-192", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1, + 2, + 3 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "cosmoshub-4" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "ibc/6D717BFF5537D129035BAB39F593D638BA258A9F8D86FB7ECCEAB05B6950CC3E", + "baseDenom": "uakt", + "path": "transfer/channel-2", + "ibcChannelId": "channel-2", + "ibcCounterpartyChannelId": "channel-24", + "displayName": "UAKT", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "uakt", + "transferLimit": "", + "permissions": [ + 1, + 2, + 3 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "akashnet-2" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "ibc/21CB41565FCA19AB6613EE06B0D56E588E0DC3E53FF94BA499BB9635794A1A35", + "baseDenom": "udvpn", + "path": "transfer/channel-1", + "ibcChannelId": "channel-1", + "ibcCounterpartyChannelId": "channel-36", + "displayName": "uDVPN", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "udvpn", + "transferLimit": "", + "permissions": [ + 1, + 2, + 3 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "sentinelhub-2" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "crly", + "baseDenom": "crly", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "ibc/D87BC708A791246AA683D514C273736F07579CBD56C9CA79B7823F9A01C16270", + "baseDenom": "uxprt", + "path": "transfer/channel-7", + "ibcChannelId": "channel-7", + "ibcCounterpartyChannelId": "channel-26", + "displayName": "uXPRT", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "uxprt", + "transferLimit": "", + "permissions": [ + 1, + 2, + 3 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "core-1" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "ibc/11DFDFADE34DCE439BA732EBA5CD8AA804A544BA1ECC0882856289FAF01FE53F", + "baseDenom": "uiris", + "path": "transfer/channel-8", + "ibcChannelId": "channel-8", + "ibcCounterpartyChannelId": "channel-19", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1, + 2, + 3 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "irishub-1" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 8, + "high": 0, + "unsigned": false + }, + "denom": "ibc/B21954812E6E642ADC0B5ACB233E02A634BF137C572575BF80F7C0CC3DB2E74D", + "baseDenom": "basecro", + "path": "transfer/channel-9", + "ibcChannelId": "channel-9", + "ibcCounterpartyChannelId": "channel-33", + "displayName": "CRO", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "basecro", + "transferLimit": "", + "permissions": [ + 1, + 2, + 3 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "crypto-org-chain-mainnet-1" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 6, + "high": 0, + "unsigned": false + }, + "denom": "ibc/2CC6F10253D563A7C238096BA63D060F7F356E37D5176E517034B8F730DB4AB6", + "baseDenom": "uregen", + "path": "transfer/channel-10", + "ibcChannelId": "channel-10", + "ibcCounterpartyChannelId": "channel-28", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1, + 2, + 3 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "regen-1" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "caxs", + "baseDenom": "caxs", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cdfyn", + "baseDenom": "cdfyn", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cdnxc", + "baseDenom": "cdnxc", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cdon", + "baseDenom": "cdon", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cern", + "baseDenom": "cern", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cfrax", + "baseDenom": "cfrax", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cfxs", + "baseDenom": "cfxs", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ckft", + "baseDenom": "ckft", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cmatic", + "baseDenom": "cmatic", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cmetis", + "baseDenom": "cmetis", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cpols", + "baseDenom": "cpols", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "csaito", + "baseDenom": "csaito", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "ctoke", + "baseDenom": "ctoke", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 10, + "high": 0, + "unsigned": false + }, + "denom": "czcn", + "baseDenom": "czcn", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "czcx", + "baseDenom": "czcx", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + }, + { + "isWhitelisted": true, + "decimals": { + "low": 18, + "high": 0, + "unsigned": false + }, + "denom": "cust", + "baseDenom": "cust", + "path": "", + "ibcChannelId": "", + "ibcCounterpartyChannelId": "", + "displayName": "", + "displaySymbol": "", + "network": "", + "address": "", + "externalSymbol": "", + "transferLimit": "", + "permissions": [ + 1 + ], + "unitDenom": "", + "ibcCounterpartyDenom": "", + "ibcCounterpartyChainId": "" + } + ] +} \ No newline at end of file diff --git a/sdk/erc20TokenAddresses.json b/sdk/erc20TokenAddresses.json new file mode 100644 index 0000000..2855fc7 --- /dev/null +++ b/sdk/erc20TokenAddresses.json @@ -0,0 +1,287 @@ +[ + { + "symbol": "erowan", + "name": "Rowan", + "address": "0x07bac35846e5ed502aa91adf6a9e7aa210f2dcbe" + }, + { + "address": "0x0000000000000000000000000000000000000000", + "name": "Ethereum", + "symbol": "eth" + }, + { + "address": "0xdac17f958d2ee523a2206206994597c13d831ec7", + "name": "Tether USDT", + "symbol": "USDT" + }, + { + "address": "0x0d8775f648430679a709e98d2b0cb6250d2887ef", + "name": "Basic Attention Token", + "symbol": "BAT" + }, + { + "address": "0xa117000000f279d81a1d3cc75430faa017fa5a2e", + "name": "Aragon", + "symbol": "ANT" + }, + { + "address": "0x1f573d6fb3f13d689ff844b4ce37794d79a7ff1c", + "name": "Bancor Network Token", + "symbol": "BNT" + }, + { + "address": "0xe41d2489571d322189246dafa5ebde1f4699f498", + "name": "0x", + "symbol": "ZRX" + }, + { + "address": "0x514910771af9ca656af840dff83e8264ecf986ca", + "name": "Chainlink", + "symbol": "LINK" + }, + { + "address": "0x0f5d2fb29fb7d3cfee444a200298f468908cc942", + "name": "Decentraland", + "symbol": "MANA" + }, + { + "address": "0xbbbbca6a901c926f240b89eacb641d8aec7aeafd", + "name": "Loopring", + "symbol": "LRC" + }, + { + "address": "0xf629cbd94d3791c9250152bd8dfbdf380e2a3b9c", + "name": "Enjin Coin", + "symbol": "ENJ" + }, + { + "address": "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f", + "name": "Synthetix Network Token", + "symbol": "SNX" + }, + { + "address": "0x0000000000085d4780b73119b644ae5ecd22b376", + "name": "TrueUSD", + "symbol": "TUSD" + }, + { + "address": "0x967da4048cd07ab37855c090aaf366e4ce1b9f48", + "name": "Ocean Protocol", + "symbol": "OCEAN" + }, + { + "address": "0x4e15361fd6b4bb609fa63c81a2be19d873717870", + "name": "Fantom", + "symbol": "FTM" + }, + { + "address": "0x57ab1ec28d129707052df4df418d58a2d46d5f51", + "name": "sUSD", + "symbol": "SUSD" + }, + { + "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48", + "name": "USD Coin", + "symbol": "USDC" + }, + { + "address": "0x2260fac5e5542a773aa44fbcfedf7c193bc2c599", + "name": "Wrapped Bitcoin", + "symbol": "WBTC" + }, + { + "address": "0x8ce9137d39326ad0cd6491fb5cc0cba0e089b6a9", + "name": "Swipe", + "symbol": "SXP" + }, + { + "address": "0xba11d00c5f74255f56a5e366f4f77f5a186d7f55", + "name": "Band Protocol", + "symbol": "BAND" + }, + { + "address": "0x6b175474e89094c44da98b954eedeac495271d0f", + "name": "Dai Stablecoin", + "symbol": "DAI" + }, + { + "address": "0xc00e94cb662c3520282e6f5717214004a7f26888", + "name": "Compound", + "symbol": "COMP" + }, + { + "address": "0x04fa0d235c4abf4bcf4787af4cf447de572ef828", + "name": "UMA", + "symbol": "UMA" + }, + { + "address": "0xba100000625a3754423978a60c9317c58a424e3d", + "name": "Balancer", + "symbol": "BAL" + }, + { + "address": "0x0bc529c00c6401aef6d220be8c6ea1667f6ad93e", + "name": "yearn finance", + "symbol": "YFI" + }, + { + "address": "0x476c5e26a75bd202a9683ffd34359c0cc15be0ff", + "name": "Serum", + "symbol": "SRM" + }, + { + "address": "0x2ba592f78db6436527729929aaf6c908497cb200", + "name": "Cream", + "symbol": "CREAM" + }, + { + "address": "0x3845badade8e6dff049820680d1f14bd3903a5d0", + "name": "SAND", + "symbol": "SAND" + }, + { + "address": "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2", + "name": "Sushi", + "symbol": "SUSHI" + }, + { + "address": "0x36f3fd68e7325a35eb768f1aedaae9ea0689d723", + "name": "Empty Set Dollar", + "symbol": "ESD" + }, + { + "address": "0x1f9840a85d5af5bf1d1762f925bdaddc4201f984", + "name": "Uniswap", + "symbol": "UNI" + }, + { + "address": "0x7fc66500c84a76ad7e9c93437bfc5ac33e2ddae9", + "name": "Aave", + "symbol": "AAVE" + }, + { + "address": "0x0391d2021f89dc339f60fff84546ea23e337750f", + "name": "BarnBridge", + "symbol": "BOND" + }, + { + "address": "0x6e1a19f235be7ed8e3369ef73b196c07257494de", + "name": "Wrapped Filecoin", + "symbol": "WFIL" + }, + { + "address": "0xc944e90c64b2c07662a292be6244bdf05cda44a7", + "name": "The Graph", + "symbol": "GRT" + }, + { + "address": "0x0000000000095413afc295d19edeb1ad7b71c952", + "name": "Tokenlon", + "symbol": "LON" + }, + { + "address": "0x111111111117dc0aa78b770fa6a738034120c302", + "name": "1inch", + "symbol": "1INCH" + }, + { + "address": "0x3155ba85d5f96b2d030a4966af206230e46849cb", + "name": "THORChain ERC20", + "symbol": "RUNE" + }, + { + "address": "0x2b89bf8ba858cd2fcee1fada378d5cd6936968be", + "name": "Secret ERC20 ", + "symbol": "WSCRT" + }, + { + "address": "0x6fb3e0a217407efff7ca062d46c26e5d60a14d69", + "name": "IoTeX", + "symbol": "IOTX" + }, + { + "address": "0xfe3e6a25e6b192a42a44ecddcd13796471735acf", + "name": "Reef Finance", + "symbol": "REEF" + }, + { + "address": "0xc4c7ea4fab34bd9fb9a5e1b1a98df76e26e6407c", + "name": "COCOS BCX", + "symbol": "cocos" + }, + { + "address": "0x85eee30c52b0b379b046fb0f85f4f3dc3009afec", + "name": "Keep Network", + "symbol": "keep" + }, + { + "address": "0x8207c1ffc5b6804f6024322ccf34f29c3541ae26", + "name": "Origin Protocol", + "symbol": "ogn" + }, + { + "address": "0xd82bb924a1707950903e2c0a619824024e254cd1", + "name": "DAOfi", + "symbol": "daofi" + }, + { + "address": "0x3e9bc21c9b189c09df3ef1b824798658d5011937", + "name": "Linear", + "symbol": "lina" + }, + { + "address": "0x525794473f7ab5715c81d06d10f52d11cc052804", + "name": "12Ships", + "symbol": "tshp" + }, + { + "address": "0xc4de189abf94c57f396bd4c52ab13b954febefd8", + "name": "B.20", + "symbol": "b20" + }, + { + "address": "0x8ab7404063ec4dbcfd4598215992dc3f8ec853d7", + "name": "Akropolis", + "symbol": "akro" + }, + { + "address": "0xaf9f549774ecedbd0966c52f250acc548d3f36e5", + "name": "Rio Fuel Token", + "symbol": "rfuel" + }, + { + "address": "0xf1f955016ecbcd7321c7266bccfb96c68ea5e49b", + "name": "Rally", + "symbol": "rly" + }, + { + "address": "0xc834fa996fa3bec7aad3693af486ae53d8aa8b50", + "name": "Convergence", + "symbol": "conv" + }, + { + "address": "0x6de037ef9ad2725eb40118bb1702ebb27e4aeb24", + "name": "Render Token", + "symbol": "rndr" + }, + { + "address": "0x1614f18fc94f47967a3fbe5ffcd46d4e7da3d787", + "name": "PAID Network", + "symbol": "paid" + }, + { + "address": "0x29cbd0510eec0327992cd6006e63f9fa8e7f33b7", + "name": "Tidal", + "symbol": "tidal" + }, + { + "address": "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce", + "name": "SHIBA INU", + "symbol": "SHIB" + }, + { + "address": "0x27c70cd1946795b66be9d954418546998b546634", + "name": "DOGE KILLER", + "symbol": "LEASH" + } +] diff --git a/sdk/ethbridge/exportToken.ts b/sdk/ethbridge/exportToken.ts index 5062f62..81e21c9 100644 --- a/sdk/ethbridge/exportToken.ts +++ b/sdk/ethbridge/exportToken.ts @@ -23,10 +23,12 @@ export const exportToken = async (symbol: string, amount: string) => { const cosmosSender = firstAccount.address const ethereumChainId = await web3.eth.net.getId() const cethAmount = '70000000000000000' //threshold cEthFee + const lowerCaseSymbol = symbol.toLowerCase() + const denom = lowerCaseSymbol === 'rowan' ? 'rowan' : `c${symbol}` const value = { cosmosSender, amount, // amount to send - symbol, // sif token e.g: ceth, rowan + symbol: denom, // sif token with c eth prefix e.g: ceth, rowan, cusdt ethereumChainId: new Long(ethereumChainId), ethereumReceiver: ethWallet.address, cethAmount, @@ -40,7 +42,7 @@ export const exportToken = async (symbol: string, amount: string) => { value, } const unsignedTxn = - symbol.toLowerCase() === 'rowan' ? unsignedLockTxn : unsignedBurnTxn + lowerCaseSymbol === 'rowan' ? unsignedLockTxn : unsignedBurnTxn const client = await SigningStargateClient.connectWithSigner( config.sifRpc, diff --git a/sdk/ethbridge/importToken.ts b/sdk/ethbridge/importToken.ts index b0fe2e0..caac7a5 100644 --- a/sdk/ethbridge/importToken.ts +++ b/sdk/ethbridge/importToken.ts @@ -66,7 +66,7 @@ export const importToken = async (symbol: string, amount: string) => { if (!tx) { throw new Error( - `Symbol "${symbol}" could not be found in ./assets.sifchain.mainnet.json with an ERC20 address.` + `Symbol "${symbol}" could not be found in ./erc20TokenAddresses.json with an ERC20 address.` ) } diff --git a/sdk/helpers.ts b/sdk/helpers.ts index 919d60d..c108ad0 100644 --- a/sdk/helpers.ts +++ b/sdk/helpers.ts @@ -1,5 +1,8 @@ import config from '../config' -const ethTokens = require('assets.sifchain.mainnet.json') +import { NativeDexClient } from './client' +import { promises as fs } from 'fs' +const ethTokens = require('./erc20TokenAddresses.json') +const dexEntriesCache = require('./dexEntriesCache.json') import Web3 from 'web3' const web3 = new Web3(new Web3.providers.HttpProvider(config.ethnode)) @@ -10,6 +13,78 @@ export const getWeb3 = function () { export const getERC20Token = function (symbol: string) { return ethTokens.find( - (token) => token.symbol === symbol && token.homeNetwork === 'ethereum' + (token) => token.symbol.toLowerCase() === symbol.toLowerCase() ) } + +export const getDexEntryFromSymbol = async function ( + symbol: string, + isExportToCosmos: boolean = false +) { + const lowerCaseSymbol = symbol.toLowerCase() + let entries + // if cashe is older than one day then get new entries else use cached entries + // or if rpc address config has been changed + if ( + Date.now() > dexEntriesCache.timestamp + 1000 * 60 * 60 * 24 || + dexEntriesCache.rpcAddress !== config.sifRpc + ) { + const dex = await NativeDexClient.connect(config.sifRpc) + entries = (await dex.query.tokenregistry.Entries({})).registry.entries + const newDexEntries = { + timestamp: Date.now(), + rpcAddress: config.sifRpc, + entries, + } + console.log('Writing new Dex entries cache.') + await fs.writeFile( + `${__dirname}/dexEntriesCache.json`, + JSON.stringify(newDexEntries, null, 2) + ) + } else { + console.log('Using cached Dex entries.') + entries = dexEntriesCache.entries + } + + let entry + + if (isExportToCosmos) { + entry = entries.find((entry) => entry.baseDenom === `x${lowerCaseSymbol}`) + + if (!entry) { + console.log('Available tokens: ', await this.getDexSymbols()) + throw new Error(`Token "${symbol}" not found on dex.`) + } + + return entry + } + if (lowerCaseSymbol === 'rowan') { + return entries.find((entry) => entry.baseDenom === 'rowan') + } + if (lowerCaseSymbol === 'basecro') { + return entries.find((entry) => entry.baseDenom === 'basecro') + } + + entry = entries.find( + (entry) => + entry.baseDenom === `c${lowerCaseSymbol}` || + entry.baseDenom === `u${lowerCaseSymbol}` + ) + + if (!entry) { + console.log('Available tokens: ', await this.getDexSymbols()) + throw new Error(`Token "${symbol}" not found on dex.`) + } + + return entry +} + +export const getDexSymbols = async function () { + const dex = await NativeDexClient.connect(config.sifRpc) + const { entries } = (await dex.query.tokenregistry.Entries({})).registry + return entries.map((e) => { + if (e.baseDenom === 'rowan') return e.baseDenom + if (e.baseDenom === 'basecro') return e.baseDenom + return e.baseDenom.substring(1) + }) +} diff --git a/sdk/ibc/exportTokenIBC.ts b/sdk/ibc/exportTokenIBC.ts index 9c273dd..1fe41b6 100644 --- a/sdk/ibc/exportTokenIBC.ts +++ b/sdk/ibc/exportTokenIBC.ts @@ -3,30 +3,18 @@ import { SigningStargateClient, MsgTransferEncodeObject, } from '@cosmjs/stargate' -import { NativeDexClient } from '../client' import * as IbcTransferV1Tx from '@cosmjs/stargate/build/codec/ibc/applications/transfer/v1/tx' import { setupWallet } from '../wallet' import chainsIBC from './chainsConfigIBC' +import { getDexEntryFromSymbol, getDexSymbols } from '../helpers' export const exportTokenIBC = async (symbol: string, amount: string) => { - // look up ibc denom and channel id from dex entries - const dex = await NativeDexClient.connect(config.sifRpc) - const { entries } = (await dex.query.tokenregistry.Entries({})).registry - // console.log({ entries }) // list of IBC tokens on the dex - const entry = entries.find( - (entry) => entry.baseDenom === symbol.toLocaleLowerCase() - ) - - if (!entry) { - console.log( - 'Available tokens: ', - entries.map((e) => e.baseDenom) - ) - throw new Error(`Token "${symbol}" not found on dex.`) - } - + const entry = await getDexEntryFromSymbol(symbol) const { denom, ibcChannelId, ibcCounterpartyChainId } = entry + if (!denom.startsWith('ibc') && denom !== 'rowan') { + throw new Error(`Token "${symbol}" not a IBC token.`) + } // get receiver chain info const receiverChain = chainsIBC.find( (chain) => chain.chainId === ibcCounterpartyChainId diff --git a/sdk/ibc/importTokenIBC.ts b/sdk/ibc/importTokenIBC.ts index 39be6a4..6ff84e9 100644 --- a/sdk/ibc/importTokenIBC.ts +++ b/sdk/ibc/importTokenIBC.ts @@ -4,29 +4,16 @@ import { MsgTransferEncodeObject, } from '@cosmjs/stargate' import { StdFee } from '@cosmjs/launchpad' -import { NativeDexClient } from '../client' import * as IbcTransferV1Tx from '@cosmjs/stargate/build/codec/ibc/applications/transfer/v1/tx' import { setupWallet } from '../wallet' import chainsIBC from './chainsConfigIBC' +import { getDexEntryFromSymbol, getDexSymbols } from '../helpers' -export const importTokenIBC = async (symbol: string, amount: string) => { - // look up ibc denom and channel id from dex entries - const dex = await NativeDexClient.connect(config.sifRpc) - const { entries } = (await dex.query.tokenregistry.Entries({})).registry - // console.log({ entries }) // list of IBC tokens on the dex - const entry = entries.find( - (entry) => entry.baseDenom === symbol.toLocaleLowerCase() - ) - if (!entry) { - console.log( - 'Available tokens: ', - entries.map((e) => e.baseDenom) - ) - throw new Error(`Token "${symbol}" not found on dex.`) - } - - const { denom, ibcCounterpartyChannelId, ibcCounterpartyChainId } = entry +export const importTokenIBC = async (symbol: string, amount: string) => { + const entry = await getDexEntryFromSymbol(symbol) + const { denom, baseDenom, ibcCounterpartyChannelId, ibcCounterpartyChainId } = + entry const ibcDenom = denom // get sender chain info @@ -46,7 +33,8 @@ export const importTokenIBC = async (symbol: string, amount: string) => { const sender = senderFirstAccount.address // if symbol is native token to chain then use symbol denom else use ibcDenom - const tokenDenom = symbol === senderChain.nativeFeeToken ? symbol : ibcDenom + const tokenDenom = + baseDenom === senderChain.nativeFeeToken ? baseDenom : ibcDenom const unsignedTransferMsg: MsgTransferEncodeObject = { typeUrl: '/ibc.applications.transfer.v1.MsgTransfer', diff --git a/sdk/pools/addLiquidity.ts b/sdk/pools/addLiquidity.ts index 956da5f..1221d68 100644 --- a/sdk/pools/addLiquidity.ts +++ b/sdk/pools/addLiquidity.ts @@ -7,6 +7,7 @@ import { import { NativeDexClient } from '../client' import { Registry } from '@cosmjs/proto-signing' import config from '../../config' +import { getDexEntryFromSymbol } from '../helpers' type MsgAddLiquidityEncodeObject = { typeUrl: string @@ -18,11 +19,13 @@ type Asset = { } export const addLiquidity = async ( - externalAsset: string, + externalAssetSymbol: string, externalAssetAmount: string, nativeAssetAmount: string ) => { try { + const { denom } = await getDexEntryFromSymbol(externalAssetSymbol) + const wallet = await setupWallet('sif') const [firstAccount] = await wallet.getAccounts() const signer = firstAccount.address @@ -31,7 +34,7 @@ export const addLiquidity = async ( typeUrl: '/sifnode.clp.v1.MsgAddLiquidity', value: { signer, - externalAsset: { symbol: externalAsset }, + externalAsset: { symbol: denom }, nativeAssetAmount, externalAssetAmount, }, diff --git a/sdk/pools/removeLiquidity.ts b/sdk/pools/removeLiquidity.ts index 22743e2..ec23e56 100644 --- a/sdk/pools/removeLiquidity.ts +++ b/sdk/pools/removeLiquidity.ts @@ -7,6 +7,7 @@ import { import { NativeDexClient } from '../client' import { Registry } from '@cosmjs/proto-signing' import config from '../../config' +import { getDexEntryFromSymbol } from '../helpers' type MsgRemoveLiquidityEncodeObject = { typeUrl: string @@ -18,11 +19,13 @@ type Asset = { } export const removeLiquidity = async ( - externalAsset: string, + externalAssetSymbol: string, wBasisPoints: string, asymmetry: string ) => { try { + const { denom } = await getDexEntryFromSymbol(externalAssetSymbol) + const wallet = await setupWallet('sif') const [firstAccount] = await wallet.getAccounts() const signer = firstAccount.address @@ -31,7 +34,7 @@ export const removeLiquidity = async ( typeUrl: '/sifnode.clp.v1.MsgRemoveLiquidity', value: { signer, - externalAsset: { symbol: externalAsset }, + externalAsset: { symbol: denom }, wBasisPoints, asymmetry, }, diff --git a/sdk/pools/swap.ts b/sdk/pools/swap.ts index 4855530..073538c 100644 --- a/sdk/pools/swap.ts +++ b/sdk/pools/swap.ts @@ -4,6 +4,7 @@ import { NativeDexClient } from '../client' import { setupWallet } from '../wallet' import { MsgSwap } from '../generated/proto/sifnode/clp/v1/tx' import config from '../../config' +import { getDexEntryFromSymbol } from '../helpers' type MsgSwapEncodeObject = { typeUrl: string @@ -15,28 +16,32 @@ type Asset = { } export const swap = async ( - sentAsset: string, - receivedAsset: string, + sentAssetSymbol: string, + receivedAssetSymbol: string, sentAmount: string, minReceivingAmount: string ) => { try { + const [sentAssetEntry, receivedAssetEntry] = await Promise.all([ + getDexEntryFromSymbol(sentAssetSymbol), + getDexEntryFromSymbol(receivedAssetSymbol), + ]) + const wallet = await setupWallet('sif') const [firstAccount] = await wallet.getAccounts() - const signer = firstAccount.address const unsigned_txn: MsgSwapEncodeObject = { typeUrl: '/sifnode.clp.v1.MsgSwap', value: { sentAsset: { - symbol: sentAsset, + symbol: sentAssetEntry.denom, }, receivedAsset: { - symbol: receivedAsset, + symbol: receivedAssetEntry.denom, }, - sentAmount: `${sentAmount}`, - minReceivingAmount: `${minReceivingAmount}`, + sentAmount, + minReceivingAmount, signer, }, } diff --git a/sdk/validators/delegate.ts b/sdk/validators/delegate.ts index 564af3b..e2bcdeb 100644 --- a/sdk/validators/delegate.ts +++ b/sdk/validators/delegate.ts @@ -12,7 +12,7 @@ import config from '../../config' // https://github.com/cosmos/cosmjs/issues/640 import { MsgDelegate } from '@cosmjs/stargate/build/codec/cosmos/staking/v1beta1/tx' -export const delegate = async (amount: string, toValidator: string) => { +export const delegate = async (amount: string, validatorAddress: string) => { const wallet = await setupWallet('sif') const [firstAccount] = await wallet.getAccounts() @@ -25,7 +25,7 @@ export const delegate = async (amount: string, toValidator: string) => { const msg: MsgDelegate = { delegatorAddress: sender, - validatorAddress: toValidator, + validatorAddress, amount: { denom: 'rowan', amount, diff --git a/sdk/validators/undelegate.ts b/sdk/validators/undelegate.ts index 1ff2970..503ef84 100644 --- a/sdk/validators/undelegate.ts +++ b/sdk/validators/undelegate.ts @@ -12,7 +12,7 @@ import config from '../../config' // https://github.com/cosmos/cosmjs/issues/640 import { MsgUndelegate } from '@cosmjs/stargate/build/codec/cosmos/staking/v1beta1/tx' -export const undelegate = async (amount: string, toValidator: string) => { +export const undelegate = async (amount: string, validatorAddress: string) => { const wallet = await setupWallet('sif') const [firstAccount] = await wallet.getAccounts() @@ -25,7 +25,7 @@ export const undelegate = async (amount: string, toValidator: string) => { const msg: MsgUndelegate = { delegatorAddress: sender, - validatorAddress: toValidator, + validatorAddress, amount: { denom: 'rowan', amount, diff --git a/test/ibc/exportTokenIBC.test.ts b/test/ibc/exportTokenIBC.test.ts index 1398660..d075c23 100644 --- a/test/ibc/exportTokenIBC.test.ts +++ b/test/ibc/exportTokenIBC.test.ts @@ -4,7 +4,7 @@ import { SigningStargateClient } from '@cosmjs/stargate' import { exportTokenIBC } from '../../sdk/ibc/exportTokenIBC' describe('test ibc export feature', () => { - it('should export ibc test token uphoton', async () => { + it('should export ibc test token photon', async () => { try { const sifWallet = await setupWallet('sif') const [{ address }] = await sifWallet.getAccounts() @@ -16,11 +16,11 @@ describe('test ibc export feature', () => { const amount = '202' const ibcDenom = - 'ibc/4BFA1CE7B80A9A830F8E164495276CCD9E9B5424951749ED92F80B394E8C91C8' //uphoton + 'ibc/4BFA1CE7B80A9A830F8E164495276CCD9E9B5424951749ED92F80B394E8C91C8' //photon const balancesBefore = (await client.getBalance(address, ibcDenom)).amount - const res = await exportTokenIBC('uphoton', amount) + const res = await exportTokenIBC('photon', amount) console.log({ res }) expect(res).toHaveProperty('rawLog') diff --git a/test/pools/addLiquidity.test.ts b/test/pools/addLiquidity.test.ts index 9cc5679..429f025 100644 --- a/test/pools/addLiquidity.test.ts +++ b/test/pools/addLiquidity.test.ts @@ -6,7 +6,7 @@ const sifAPI = new PoolsApi(config.apiConfig) describe('test addLiquidity feature', () => { it('should add liquidity', async function () { - const res = await addLiquidity('ceth', '50', '100') + const res = await addLiquidity('eth', '50', '100') expect(res).toHaveProperty('rawLog') expect(res).toHaveProperty('gasUsed') diff --git a/test/pools/removeLiquidity.test.ts b/test/pools/removeLiquidity.test.ts index 07a52a1..9779983 100644 --- a/test/pools/removeLiquidity.test.ts +++ b/test/pools/removeLiquidity.test.ts @@ -1,11 +1,27 @@ import { removeLiquidity } from '../../sdk/pools/removeLiquidity' -import config from '../../config' -// const sifAPI = new PoolsApi(config.apiConfig); describe('test removeLiquidity feature', () => { - it('should fail', async () => { - const response = await removeLiquidity('ceth', '500', '1000') - console.log(response) - expect(1).toBe(1) - }) + it('should remove liquidity', async function () { + const res = await removeLiquidity('eth', '50', '100') + + expect(res).toHaveProperty('rawLog') + expect(res).toHaveProperty('gasUsed') + expect(res).toHaveProperty('transactionHash') + + const successMsg = JSON.parse(res.rawLog)[0].events[0].type + expect(successMsg).toBe('removed_liquidity') + const valueMsg = JSON.parse(res.rawLog)[0].events[2].attributes[2].value + expect(valueMsg).toBe('50ceth,100rowan') + }, 90000) + + it('should fail to remove liquidity for non existant pool', async function () { + const res = await removeLiquidity('lolCoin', '50', '100') + + expect(res).toHaveProperty('rawLog') + expect(res).toHaveProperty('gasUsed') + expect(res).toHaveProperty('transactionHash') + expect(res.rawLog).toBe( + 'failed to execute message; message index: 0: pool does not exist' + ) + }, 90000) }) diff --git a/test/pools/swap.test.ts b/test/pools/swap.test.ts index 3865459..1939004 100644 --- a/test/pools/swap.test.ts +++ b/test/pools/swap.test.ts @@ -4,8 +4,20 @@ import config from '../../config' export const sleep = (ms: number) => new Promise((done) => setTimeout(done, ms)) describe('test swap feature', () => { - it('should swap', async () => { - const res = await swap('ceth', 'rowan', '120', '1') + it('should swap peggy token eth', async () => { + const res = await swap('eth', 'rowan', '120', '1') + + expect(res).toHaveProperty('rawLog') + expect(res).toHaveProperty('gasUsed') + expect(res).toHaveProperty('transactionHash') + + const successMsg = JSON.parse(res.rawLog)[0].events[1].type + + expect(successMsg).toBe('swap_successful') + }, 90000) + + it('should swap ibc token photon', async () => { + const res = await swap('photon', 'rowan', '120', '1') expect(res).toHaveProperty('rawLog') expect(res).toHaveProperty('gasUsed')