mars-v2-frontend/utils/chains.ts
Gustavo Mauricio 3022ae9a6a
MP-2017: Deposit Funds and Account stats (#21)
* style: fund account font size adjustments

* client instance. contract addresses updates. prices hook added

* persist lend assets value for every credit account

* feat: account stats and semi circular progress

* minor code cleanup

* display borrowed assets interest rate

* fallback screen when no wallet is connected

* fix: hydration mismatch

* update osmosis testnet endpoints

* style: body text color

* coin interface imported from cosmos package

* risk calculation from ltv assets comment added

* svgr setup. inline svg extracted to Icons folder

* address removed from local storage. wallet store improvements

* rename setAddress action to connect

* yield page renamed to earn

* refactor: accountStats using BigNumber

* update contract addresses

* update hardcoded fee

* update market mocked values

* current leverage added to useAccountStats hook return

* leverage naming disambiguation

* debt positions labels color update. negative sign before values

* remove prefers-color-scheme media query

* update redbank mock data
2022-10-12 16:41:03 +01:00

56 lines
1.5 KiB
TypeScript

export const chainsInfo = {
Injective: {
chainId: 'injective-1',
rpc: 'https://tm.injective.network',
rest: 'https://lcd.injective.network',
stakeCurrency: {
coinDenom: 'INJ',
coinMinimalDenom: 'inj',
coinDecimals: 18,
coinGeckoId: 'injective-protocol',
coinImageUrl: '/tokens/injective.svg',
},
// works
// rest: "https://lcd.injective.network",
},
InjectiveTestnet: {
chainId: 'injective-888',
// need to check
rpc: 'https://testnet.tm.injective.dev',
rest: 'https://testnet.lcd.injective.dev',
stakeCurrency: {
coinDenom: 'INJ',
coinMinimalDenom: 'inj',
coinDecimals: 18,
coinGeckoId: 'injective-protocol',
coinImageUrl: '/tokens/injective.svg',
},
},
Osmosis: {
chainId: 'osmosis-1',
rpc: 'https://rpc.osmosis.zone',
rest: 'https://lcd.osmosis.zone',
stakeCurrency: {
coinDenom: 'OSMO',
coinMinimalDenom: 'uosmo',
coinDecimals: 6,
coinGeckoId: 'osmosis',
coinImageUrl: '/tokens/osmo.svg',
},
},
OsmosisTestnet: {
chainId: 'osmo-test-4',
rpc: 'https://osmosis-delphi-testnet-1.simply-vc.com.mt/XF32UOOU55CX/osmosis-rpc',
rest: 'https://osmosis-delphi-testnet-1.simply-vc.com.mt/XF32UOOU55CX/osmosis-lcd',
stakeCurrency: {
coinDenom: 'OSMO',
coinMinimalDenom: 'uosmo',
coinDecimals: 6,
coinGeckoId: 'osmosis',
coinImageUrl: '/tokens/osmo.svg',
},
},
}
export const chain = chainsInfo.OsmosisTestnet