MP-2798, MP-2799, MP-2902, MP-2893, MP-2895, MP-2896, MP-2898 (#312)
This commit is contained in:
@@ -12,7 +12,7 @@ export const ASSETS: Asset[] = [
|
||||
color: '#9f1ab9',
|
||||
decimals: 6,
|
||||
hasOraclePrice: true,
|
||||
logo: '/tokens/osmo.svg',
|
||||
logo: '/images/tokens/osmo.svg',
|
||||
isEnabled: true,
|
||||
isMarket: true,
|
||||
isDisplayCurrency: true,
|
||||
@@ -27,7 +27,7 @@ export const ASSETS: Asset[] = [
|
||||
? 'ibc/A8C2D23A1E6F95DA4E48BA349667E322BD7A6C996D8A4AAE8BA72E190F3D1477'
|
||||
: 'ibc/27394FB092D2ECCD56123C74F36E4C1F926001CEADA9CA97EA622B25F41E5EB2',
|
||||
color: '#6f7390',
|
||||
logo: '/tokens/atom.svg',
|
||||
logo: '/images/tokens/atom.svg',
|
||||
decimals: 6,
|
||||
hasOraclePrice: true,
|
||||
isEnabled: true,
|
||||
@@ -43,7 +43,7 @@ export const ASSETS: Asset[] = [
|
||||
id: 'stATOM',
|
||||
denom: 'ibc/C140AFD542AE77BD7DCC83F13FDD8C5E5BB8C4929785E6EC2F4C636F98F17901',
|
||||
color: '#9f1ab9',
|
||||
logo: '/tokens/statom.svg',
|
||||
logo: '/images/tokens/statom.svg',
|
||||
decimals: 6,
|
||||
poolId: 803,
|
||||
hasOraclePrice: !IS_TESTNET,
|
||||
@@ -57,7 +57,7 @@ export const ASSETS: Asset[] = [
|
||||
name: 'Axelar Wrapped Bitcoin',
|
||||
denom: 'ibc/D1542AA8762DB13087D8364F3EA6509FD6F009A34F00426AF9E4F9FA85CBBF1F',
|
||||
color: '#f09242',
|
||||
logo: '/tokens/axlwbtc.svg',
|
||||
logo: '/images/tokens/axlwbtc.svg',
|
||||
decimals: 8,
|
||||
hasOraclePrice: true,
|
||||
isEnabled: !IS_TESTNET,
|
||||
@@ -72,7 +72,7 @@ export const ASSETS: Asset[] = [
|
||||
name: 'Axelar Wrapped Ethereum',
|
||||
denom: 'ibc/EA1D43981D5C9A1C4AAEA9C23BB1D4FA126BA9BC7020A25E0AE4AA841EA25DC5',
|
||||
color: '#343434',
|
||||
logo: '/tokens/axlweth.svg',
|
||||
logo: '/images/tokens/axlweth.svg',
|
||||
decimals: 18,
|
||||
hasOraclePrice: true,
|
||||
isEnabled: !IS_TESTNET,
|
||||
@@ -89,7 +89,7 @@ export const ASSETS: Asset[] = [
|
||||
? 'ibc/DB9D326CF53EA07610C394D714D78F8BB4DC7E312D4213193791A9046BF45E20'
|
||||
: MARS_MAINNET_DENOM,
|
||||
color: '#dd5b65',
|
||||
logo: '/tokens/mars.svg',
|
||||
logo: '/images/tokens/mars.svg',
|
||||
decimals: 6,
|
||||
poolId: 907,
|
||||
hasOraclePrice: false,
|
||||
@@ -105,7 +105,7 @@ export const ASSETS: Asset[] = [
|
||||
? 'ibc/6F34E1BD664C36CE49ACC28E60D62559A5F96C4F9A6CCE4FC5A67B2852E24CFE'
|
||||
: 'ibc/D189335C6E4A68B513C10AB227BF1C1D38C746766278BA3EEB4FB14124F1D858',
|
||||
color: '#478edc',
|
||||
logo: '/tokens/axlusdc.svg',
|
||||
logo: '/images/tokens/axlusdc.svg',
|
||||
decimals: 6,
|
||||
hasOraclePrice: true,
|
||||
isEnabled: !IS_TESTNET,
|
||||
@@ -123,7 +123,7 @@ export const ASSETS: Asset[] = [
|
||||
? 'ibc/B3504E092456BA618CC28AC671A71FB08C6CA0FD0BE7C8A5B5A3E2DD933CC9E4'
|
||||
: 'ibc/B3504E092456BA618CC28AC671A71FB08C6CA0FD0BE7C8A5B5A3E2DD933CC9E4',
|
||||
color: '#478edc',
|
||||
logo: '/tokens/nusdc.svg',
|
||||
logo: '/images/tokens/nusdc.svg',
|
||||
decimals: 6,
|
||||
hasOraclePrice: IS_TESTNET,
|
||||
isEnabled: IS_TESTNET,
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
export const BRIDGES: Bridge[] = [
|
||||
{
|
||||
name: 'Gravity bridge',
|
||||
url: 'https://bridge.blockscape.network',
|
||||
image: '/images/bridges/gravity.png',
|
||||
},
|
||||
{
|
||||
name: 'Satellite by Axelar',
|
||||
url: 'https://satellite.money',
|
||||
image: '/images/bridges/satellite.png',
|
||||
},
|
||||
]
|
||||
@@ -0,0 +1,84 @@
|
||||
import { Bech32Address } from '@keplr-wallet/cosmos'
|
||||
|
||||
import { ChainInfoID } from 'types/enums/wallet'
|
||||
|
||||
export const CHAINS: ChainInfos = {
|
||||
[ChainInfoID.Osmosis1]: {
|
||||
rpc: 'https://rpc-osmosis.blockapsis.com',
|
||||
rest: 'https://lcd-osmosis.blockapsis.com',
|
||||
explorer: 'https://www.mintscan.io/osmosis',
|
||||
explorerName: 'Mintscan',
|
||||
chainId: ChainInfoID.Osmosis1,
|
||||
name: 'Osmosis',
|
||||
bip44: {
|
||||
coinType: 118,
|
||||
},
|
||||
alternativeBIP44s: [{ coinType: 330 }],
|
||||
gasPrice: '0.025uosmo',
|
||||
bech32Config: Bech32Address.defaultBech32Config('osmo'),
|
||||
defaultCurrency: {
|
||||
coinDenom: 'OSMO',
|
||||
coinMinimalDenom: 'uosmo',
|
||||
coinDecimals: 6,
|
||||
coinGeckoId: 'osmosis',
|
||||
gasPriceStep: {
|
||||
low: 0,
|
||||
average: 0.025,
|
||||
high: 0.04,
|
||||
},
|
||||
},
|
||||
features: ['ibc-transfer', 'ibc-go'],
|
||||
},
|
||||
[ChainInfoID.OsmosisDevnet]: {
|
||||
rpc: 'https://rpc.devnet.osmosis.zone',
|
||||
rest: ' https://lcd.devnet.osmosis.zone',
|
||||
explorer: 'https://www.mintscan.io/osmosis',
|
||||
explorerName: 'Mintscan',
|
||||
chainId: ChainInfoID.OsmosisDevnet,
|
||||
name: 'Osmosis Devnet',
|
||||
bip44: {
|
||||
coinType: 118,
|
||||
},
|
||||
alternativeBIP44s: [{ coinType: 330 }],
|
||||
gasPrice: '0.025uosmo',
|
||||
bech32Config: Bech32Address.defaultBech32Config('osmo'),
|
||||
defaultCurrency: {
|
||||
coinDenom: 'OSMO',
|
||||
coinMinimalDenom: 'uosmo',
|
||||
coinDecimals: 6,
|
||||
coinGeckoId: 'osmosis',
|
||||
gasPriceStep: {
|
||||
low: 0,
|
||||
average: 0.025,
|
||||
high: 0.04,
|
||||
},
|
||||
},
|
||||
features: ['ibc-transfer', 'ibc-go'],
|
||||
},
|
||||
[ChainInfoID.OsmosisTestnet]: {
|
||||
rpc: 'https://rpc.osmotest5.osmosis.zone',
|
||||
rest: 'https://lcd.osmotest5.osmosis.zone',
|
||||
explorer: 'https://testnet.mintscan.io/osmosis-testnet',
|
||||
explorerName: 'Mintscan',
|
||||
chainId: ChainInfoID.OsmosisTestnet,
|
||||
name: 'Osmosis Testnet',
|
||||
bip44: {
|
||||
coinType: 118,
|
||||
},
|
||||
alternativeBIP44s: [{ coinType: 330 }],
|
||||
gasPrice: '0.025uosmo',
|
||||
bech32Config: Bech32Address.defaultBech32Config('osmo'),
|
||||
defaultCurrency: {
|
||||
coinDenom: 'OSMO',
|
||||
coinMinimalDenom: 'uosmo',
|
||||
coinDecimals: 6,
|
||||
coinGeckoId: 'osmosis',
|
||||
gasPriceStep: {
|
||||
low: 0,
|
||||
average: 0.025,
|
||||
high: 0.04,
|
||||
},
|
||||
},
|
||||
features: ['ibc-transfer', 'ibc-go'],
|
||||
},
|
||||
}
|
||||
@@ -18,6 +18,7 @@ interface EnvironmentVariables {
|
||||
WALLETS: string[]
|
||||
PYTH_ENDPOINT: string
|
||||
MAINNET_REST_API: string
|
||||
WALLET_CONNECT_ID: string
|
||||
}
|
||||
|
||||
export const ENV: EnvironmentVariables = {
|
||||
@@ -42,6 +43,7 @@ export const ENV: EnvironmentVariables = {
|
||||
WALLETS: process.env.NEXT_PUBLIC_WALLETS?.split(',') || [],
|
||||
PYTH_ENDPOINT: process.env.NEXT_PUBLIC_PYTH_ENDPOINT || '',
|
||||
MAINNET_REST_API: process.env.NEXT_PUBLIC_MAINNET_REST || '',
|
||||
WALLET_CONNECT_ID: process.env.NEXT_PUBLIC_WALLET_CONNECT_ID || '',
|
||||
}
|
||||
|
||||
export const VERCEL_BYPASS = process.env.NEXT_PUBLIC_BYPASS
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
import { ChainInfoID, WalletID } from 'types/enums/wallet'
|
||||
|
||||
export const WALLETS: WalletInfos = {
|
||||
[WalletID.Cosmostation]: {
|
||||
name: 'Cosmostation Wallet',
|
||||
install: 'Install Cosmostation Wallet',
|
||||
installURL:
|
||||
'https://chrome.google.com/webstore/detail/cosmostation-wallet/fpkhgmpbidmiogeglndfbkegfdlnajnf',
|
||||
imageURL:
|
||||
'https://raw.githubusercontent.com/mars-protocol/wallet-connector/main/src/components/ui/images/cosmostation-wallet-extension.png',
|
||||
|
||||
supportedChains: [ChainInfoID.Osmosis1, ChainInfoID.OsmosisDevnet, ChainInfoID.OsmosisTestnet],
|
||||
},
|
||||
[WalletID.CosmostationMobile]: {
|
||||
name: 'Cosmostation Wallet',
|
||||
walletConnect: 'Cosmostation WalletConnect',
|
||||
imageURL:
|
||||
'https://raw.githubusercontent.com/mars-protocol/wallet-connector/main/src/components/ui/images/cosmostation-wallet-extension.png',
|
||||
mobileImageURL:
|
||||
'https://raw.githubusercontent.com/mars-protocol/wallet-connector/main/src/components/ui/images/cosmostation-wallet-connect.png',
|
||||
supportedChains: [ChainInfoID.Osmosis1, ChainInfoID.OsmosisTestnet],
|
||||
},
|
||||
[WalletID.Keplr]: {
|
||||
name: 'Keplr Wallet',
|
||||
install: 'Install Keplr Wallet',
|
||||
installURL: 'https://www.keplr.app/download',
|
||||
imageURL: '/images/wallets/keplr.png',
|
||||
supportedChains: [ChainInfoID.Osmosis1, ChainInfoID.OsmosisDevnet, ChainInfoID.OsmosisTestnet],
|
||||
},
|
||||
[WalletID.KeplrMobile]: {
|
||||
name: 'Keplr Wallet',
|
||||
walletConnect: 'Keplr WalletConnect',
|
||||
imageURL: '/images/wallets/keplr.png',
|
||||
mobileImageURL:
|
||||
'https://raw.githubusercontent.com/mars-protocol/wallet-connector/main/src/components/ui/images/keplr-wallet-connect.png',
|
||||
supportedChains: [ChainInfoID.Osmosis1],
|
||||
},
|
||||
[WalletID.Leap]: {
|
||||
name: 'Leap Wallet',
|
||||
install: 'Install Leap Wallet',
|
||||
installURL:
|
||||
'https://chrome.google.com/webstore/detail/leap-cosmos-wallet/fcfcfllfndlomdhbehjjcoimbgofdncg',
|
||||
imageURL: 'https://assets.leapwallet.io/logos/leap-cosmos-logo.png',
|
||||
supportedChains: [ChainInfoID.Osmosis1, ChainInfoID.OsmosisTestnet],
|
||||
},
|
||||
[WalletID.Station]: {
|
||||
name: 'Station Wallet',
|
||||
install: 'Install Station Wallet',
|
||||
installURL:
|
||||
'https://chrome.google.com/webstore/detail/station-wallet/aiifbnbfobpmeekipheeijimdpnlpgpp',
|
||||
imageURL: '/images/wallets/station.png',
|
||||
supportedChains: [ChainInfoID.Osmosis1],
|
||||
},
|
||||
[WalletID.Xdefi]: {
|
||||
name: 'XDEFI Wallet',
|
||||
install: 'Install XDEFI Wallet',
|
||||
installURL: 'https://go.xdefi.io/mars',
|
||||
imageURL: 'https://xdefi-static.s3.eu-west-1.amazonaws.com/xdefi.png',
|
||||
supportedChains: [ChainInfoID.Osmosis1],
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user