Skip to content

Commit

Permalink
Merge pull request #186 from Plex-Engineer/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
dsudit01 authored Feb 28, 2023
2 parents ea063af + d67c225 commit 6f2e7f2
Show file tree
Hide file tree
Showing 34 changed files with 597 additions and 261 deletions.
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Canto-io

## Overview

---

Canto.io public repository.

[Live site](https://www.canto.io/)

## Installation

---

To install all dependencies make sure you have yarn installed.

Use node version 16

```bash
# checkout correct nvm version
nvm use 16

# check to make sure node version 16 is being used
nvm --version

# install dependencies
yarn
```

## Usage

---

### Run application Locally:

```bash
# make sure application build properly
yarn build
# application will run on http://localhost:8000
yarn dev
```

## Testing

---

All tests are written using the Jest testing library.

```bash
# run all tests
yarn test
```
108 changes: 75 additions & 33 deletions src/global/config/tokenInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export interface Token {
isERC20: boolean;
isLP: boolean;
icon: string;
cTokenAddress: string;
}
export interface CTOKEN {
symbol: string;
Expand Down Expand Up @@ -76,11 +75,10 @@ export const TOKENS = {
symbol: "CANTO",
name: "Canto",
decimals: decimals.CANTO,
address: ADDRESSES.testnet.ETH,
address: ADDRESSES.testnet.WCANTO,
isERC20: false,
isLP: false,
icon: icons.CANTO,
cTokenAddress: ADDRESSES.testnet.CCanto,
},
WCANTO: {
symbol: "WCANTO",
Expand All @@ -90,7 +88,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.CANTO,
cTokenAddress: ADDRESSES.testnet.CCanto,
},
NOTE: {
symbol: "NOTE",
Expand All @@ -100,7 +97,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.Note,
cTokenAddress: ADDRESSES.testnet.CNote,
},
ETH: {
symbol: "ETH",
Expand All @@ -110,7 +106,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.ETH,
cTokenAddress: ADDRESSES.testnet.CETH,
},
ATOM: {
symbol: "ATOM",
Expand All @@ -120,7 +115,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.ATOM,
cTokenAddress: ADDRESSES.testnet.CATOM,
},
USDC: {
symbol: "USDC",
Expand All @@ -130,7 +124,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.USDC,
cTokenAddress: ADDRESSES.testnet.CUSDC,
},
USDT: {
symbol: "USDT",
Expand All @@ -140,7 +133,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.USDT,
cTokenAddress: ADDRESSES.testnet.CUSDT,
},
CantoNote: {
symbol: "CantoNoteLP",
Expand All @@ -150,7 +142,6 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.CantoNoteLP,
cTokenAddress: ADDRESSES.testnet.cCantoNoteLP,
},
CantoAtom: {
symbol: "CantoAtomLP",
Expand All @@ -160,7 +151,6 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.CantoAtomLP,
cTokenAddress: ADDRESSES.testnet.cCantoAtomLP,
},
NoteUSDC: {
symbol: "NoteUSDCLP",
Expand All @@ -170,7 +160,6 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.USDCNoteLP,
cTokenAddress: ADDRESSES.testnet.cNoteUSDCLP,
},
NoteUSDT: {
symbol: "NoteUSDTLP",
Expand All @@ -180,7 +169,6 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.USDTNoteLP,
cTokenAddress: ADDRESSES.testnet.cNoteUSDTLP,
},
CantoETH: {
symbol: "CantoETHLP",
Expand All @@ -190,19 +178,17 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.CantoETHLP,
cTokenAddress: ADDRESSES.testnet.cCantoETHLP,
},
},
cantoMainnet: {
CANTO: {
symbol: "CANTO",
name: "Canto",
decimals: decimals.CANTO,
address: "0x0000000000000000000000000000000000000000",
address: ADDRESSES.cantoMainnet.WCANTO,
isERC20: false,
isLP: false,
icon: icons.CANTO,
cTokenAddress: ADDRESSES.cantoMainnet.CCanto,
},
WCANTO: {
symbol: "WCANTO",
Expand All @@ -212,7 +198,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.CANTO,
cTokenAddress: ADDRESSES.cantoMainnet.CCanto,
},
NOTE: {
symbol: "NOTE",
Expand All @@ -222,7 +207,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.Note,
cTokenAddress: ADDRESSES.cantoMainnet.CNote,
},
ETH: {
symbol: "ETH",
Expand All @@ -232,7 +216,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.ETH,
cTokenAddress: ADDRESSES.cantoMainnet.CETH,
},
ATOM: {
symbol: "ATOM",
Expand All @@ -242,7 +225,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.ATOM,
cTokenAddress: ADDRESSES.cantoMainnet.CATOM,
},
USDC: {
symbol: "USDC",
Expand All @@ -252,7 +234,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.USDC,
cTokenAddress: ADDRESSES.cantoMainnet.CUSDC,
},
USDT: {
symbol: "USDT",
Expand All @@ -262,7 +243,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.USDT,
cTokenAddress: ADDRESSES.cantoMainnet.CUSDT,
},
CantoNote: {
symbol: "CantoNoteLP",
Expand All @@ -272,7 +252,6 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.CantoNoteLP,
cTokenAddress: ADDRESSES.cantoMainnet.cCantoNoteLP,
},
CantoAtom: {
symbol: "CantoAtomLP",
Expand All @@ -282,7 +261,6 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.CantoAtomLP,
cTokenAddress: ADDRESSES.cantoMainnet.cCantoAtomLP,
},
NoteUSDC: {
symbol: "NoteUSDCLP",
Expand All @@ -292,7 +270,6 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.USDCNoteLP,
cTokenAddress: ADDRESSES.cantoMainnet.cNoteUSDCLP,
},
NoteUSDT: {
symbol: "NoteUSDTLP",
Expand All @@ -302,7 +279,6 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.USDTNoteLP,
cTokenAddress: ADDRESSES.cantoMainnet.cNoteUSDTLP,
},
CantoETH: {
symbol: "CantoETHLP",
Expand All @@ -312,7 +288,79 @@ export const TOKENS = {
isERC20: true,
isLP: true,
icon: icons.CantoETHLP,
cTokenAddress: ADDRESSES.cantoMainnet.cCantoETHLP,
},
//ibc tokens new
SOMM: {
symbol: "SOMM",
name: "Sommelier",
decimals: 6,
address: "0xFA3C22C069B9556A4B2f7EcE1Ee3B467909f4864",
isERC20: true,
isLP: false,
icon: "https://raw.githubusercontent.com/cosmos/chain-registry/master/sommelier/images/somm.svg",
},
GRAV: {
symbol: "GRAV",
name: "Graviton",
decimals: 6,
address: "0xc03345448969Dd8C00e9E4A85d2d9722d093aF8E",
isERC20: true,
isLP: false,
icon: "https://raw.githubusercontent.com/cosmos/chain-registry/master/gravitybridge/images/grav.svg",
},
AKASH: {
symbol: "AKT",
name: "Akash",
decimals: 6,
address: "0x5aD523d94Efb56C400941eb6F34393b84c75ba39",
isERC20: true,
isLP: false,
icon: "https://raw.githubusercontent.com/cosmos/chain-registry/master/akash/images/akt.svg",
},
OSMOSIS: {
symbol: "OSMO",
name: "Osmosis",
decimals: 6,
address: "0x0CE35b0D42608Ca54Eb7bcc8044f7087C18E7717",
isERC20: true,
isLP: false,
icon: "https://raw.githubusercontent.com/cosmos/chain-registry/master/osmosis/images/osmo.svg",
},
CRESCENT: {
symbol: "CRE",
name: "Crescent",
decimals: 6,
address: "0x5db67696C3c088DfBf588d3dd849f44266ff0ffa",
isERC20: true,
isLP: false,
icon: "https://raw.githubusercontent.com/cosmos/chain-registry/master/crescent/images/cre.svg",
},
KAVA: {
symbol: "KAVA",
name: "Kava",
decimals: 6,
address: "0xC5e00D3b04563950941f7137B5AfA3a534F0D6d6",
isERC20: true,
isLP: false,
icon: "https://raw.githubusercontent.com/cosmos/chain-registry/master/kava/images/kava.png",
},
INJECTIVE: {
symbol: "INJ",
name: "Injective",
decimals: 18,
address: "0x1D54EcB8583Ca25895c512A8308389fFD581F9c9",
isERC20: true,
isLP: false,
icon: "https://raw.githubusercontent.com/cosmos/chain-registry/master/injective/images/inj.svg",
},
COMDEX: {
symbol: "CMDX",
name: "Comdex",
decimals: 6,
address: "0x3452e23F9c4cC62c70B7ADAd699B264AF3549C19",
isERC20: true,
isLP: false,
icon: "https://raw.githubusercontent.com/cosmos/chain-registry/master/comdex/images/cmdx.svg",
},
},
ETHMainnet: {
Expand All @@ -324,7 +372,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.USDT,
cTokenAddress: "0x0000000000000000000000000000000000000000",
},
USDC: {
symbol: "USDC",
Expand All @@ -334,7 +381,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.USDC,
cTokenAddress: "0x0000000000000000000000000000000000000000",
},
WETH: {
symbol: "WETH",
Expand All @@ -344,7 +390,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: icons.ETH,
cTokenAddress: "0x0000000000000000000000000000000000000000",
},
},
GravityBridge: {
Expand All @@ -356,7 +401,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: "https://s2.coinmarketcap.com/static/img/coins/32x32/1.png",
cTokenAddress: "0x0000000000000000000000000000000000000000",
},
BYE: {
symbol: "BYE",
Expand All @@ -366,7 +410,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: "https://s2.coinmarketcap.com/static/img/coins/32x32/2.png",
cTokenAddress: "0x0000000000000000000000000000000000000000",
},
MAX: {
symbol: "MAX",
Expand All @@ -376,7 +419,6 @@ export const TOKENS = {
isERC20: true,
isLP: false,
icon: "https://s2.coinmarketcap.com/static/img/coins/32x32/3.png",
cTokenAddress: "0x0000000000000000000000000000000000000000",
},
},
};
Expand Down
Loading

0 comments on commit 6f2e7f2

Please sign in to comment.