Skip to content

Commit

Permalink
feat: aw
Browse files Browse the repository at this point in the history
  • Loading branch information
nick134-bit committed Jul 30, 2024
1 parent 3e53884 commit 74a16a3
Show file tree
Hide file tree
Showing 12 changed files with 165 additions and 6 deletions.
2 changes: 2 additions & 0 deletions components/Finder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ const getUrl = (chainId: string, txHash: string) => {
return `https://ping.pub/terra-luna/tx/${txHash}`
case ChainId.osmosis:
return `https://mintscan.io/osmosis/txs/${txHash}`
case ChainId.archway:
return `https://mintscan.io/archway/txs/${txHash}`
default:
return null
}
Expand Down
5 changes: 4 additions & 1 deletion components/Layout/RadialGradient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ export const backgrounds = {
'linear-gradient(90deg, rgba(60, 205, 100, 0.25) 2.83%, rgba(255, 255, 0, 0.25) 50%, rgba(0, 117, 255, 0.25) 97.47%)',
'osmosis-1':
'linear-gradient(135deg, rgba(255, 20, 147, 0.8) 0%, rgba(147, 112, 219, 0.8) 50%, rgba(255, 20, 147, 0.8) 100%)',
}
// TODO ARCHWAY
'archway-1':
'linear-gradient(135deg, rgba(255, 20, 147, 0.8) 0%, rgba(147, 112, 219, 0.8) 50%, rgba(255, 20, 147, 0.8) 100%)',
}

const RadialGradient: FC = () => {
const { chainId } = useRecoilValue(chainState)
Expand Down
10 changes: 10 additions & 0 deletions components/Pages/Trade/Swap/defaultTokens.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,16 @@
"tokenSymbol": "WHALE",
"amount": 0
}
],
"archway": [
{
"tokenSymbol": "ampWHALE",
"amount": 0
},
{
"tokenSymbol": "WHALE",
"amount": 0
}
]
},
"testnet": {
Expand Down
10 changes: 9 additions & 1 deletion constants/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,13 @@
"rest": [
"https://osmosis-rest.publicnode.com"
]
},
"archway": {
"rpc": [
"https://archway.rpc.kjnodes.com"
],
"rest": [
"https://archway.api.kjnodes.com"
]
}
}
}
8 changes: 6 additions & 2 deletions constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export const ACTIVE_NETWORKS = {
sei: 'pacific-1',
'terra-classic': 'columbus-5',
osmosis: 'osmosis-1',
archway: 'archway-1',
},
testnet: {
comdex: 'comdex-test2',
Expand All @@ -32,6 +33,7 @@ export const ACTIVE_NETWORKS_WALLET_NAMES = {
'sei',
'terra',
'osmosis',
'archway',
],
testnet: [
'injectivetestnet',
Expand Down Expand Up @@ -59,6 +61,7 @@ export const WALLET_CHAIN_NAMES_BY_CHAIN_ID = {
'atlantic-1': 'seitestnet',
'rebel-2': 'terra',
'osmosis-1': 'osmosis',
'archway-1': 'archway',
}

export const ACTIVE_BONDING_NETWORKS = [
Expand All @@ -71,6 +74,7 @@ export const ACTIVE_BONDING_NETWORKS = [
'columbus-5',
'injective-1',
'osmosis-1',
'archway-1',
]
export const ACTIVE_INCENTIVE_NETWORKS = [
'chihuahua-1',
Expand Down Expand Up @@ -113,6 +117,6 @@ export const NETWORK_MAP = {
}

// Chain names by cosmos kit
export enum WalletChainName { terrac = 'terra', terra = 'terra2', migaloo= 'migaloo', juno= 'juno', sei= 'sei', comdex= 'comdex', injective= 'injective', chihuahua= 'chihuahua', osmosis= 'osmosis' }
export enum WalletChainName { terrac = 'terra', terra = 'terra2', migaloo= 'migaloo', juno= 'juno', sei= 'sei', comdex= 'comdex', injective= 'injective', chihuahua= 'chihuahua', osmosis= 'osmosis', archway= 'archway' }
export const CHAIN_NAMES = [...ACTIVE_NETWORKS_WALLET_NAMES.mainnet, ...ACTIVE_NETWORKS_WALLET_NAMES.testnet]
export enum ChainId { terrac = 'columbus-5', terra = 'phoenix-1', migaloo = 'migaloo-1', juno = 'juno-1', sei = 'pacific-1', comdex = 'comdex-1', injective = 'injective-1', chihuahua = 'chihuahua-1', narwhal = 'narwhal-1', pisco = 'pisco-1', osmosis = 'osmosis-1' }
export enum ChainId { terrac = 'columbus-5', terra = 'phoenix-1', migaloo = 'migaloo-1', juno = 'juno-1', sei = 'pacific-1', comdex = 'comdex-1', injective = 'injective-1', chihuahua = 'chihuahua-1', narwhal = 'narwhal-1', pisco = 'pisco-1', osmosis = 'osmosis-1', archway = "archway-1" }
4 changes: 2 additions & 2 deletions constants/vaultRouterAddresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"chihuahua-1": "chihuahua1qe6jsllyvrlmtz2xqef9k7q67xeyj3zcuc09wzptnvev3wyyd4fs4y4ce9",
"injective-1": "inj1hyja4uyjktpeh0fxzuw2fmjudr85rk2qxgqkvu",
"migaloo-1": "migaloo19pze0n07guzj6yla2708q2feh38q9n8gxmkk8fjnuprfh6y9ngjqs90hcy",
"osmosis-1": "osmo1ldkya0zakj380tlkd7dry0wj689t0r4x0kyxf6qn4pvvaat0l9tqsly68j"
}
"osmosis-1": "osmo1ldkya0zakj380tlkd7dry0wj689t0r4x0kyxf6qn4pvvaat0l9tqsly68j",
}
41 changes: 41 additions & 0 deletions public/mainnet/archway-1/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"whale_lair": "archway1a2hawz66n3nuh8964t0kw6yvcvqww2rnucsvacga2g4360nxs2tsyzftg8",
"incentive_factory": "archway1wc6wu89rl42fhyru4gff7jwy5cf3m0qz22yn7szvt8ac3m8al3rsp68vug",
"fee_distributor": "archway19sd5pzm9davt53735nc020ewemtw8dq5znp4sdtynlwmveqy3jfqltvnws",
"frontend_helper": "archway1yuxk5envmnvn8c36gakhzd650jsfjpj5pf5vm3wa0uf4ltj3r6hqzdp8dg",
"whale_base_token": {
"name": "WHALE",
"denom": "ibc/3FED3F9CE7B16BDCB7920FECEC085F8FA58E21C0EAB99703E4B816E5F666E3B9",
"decimals": 6
},
"bonding_tokens": [
{
"id": "eris-amplified-whale",
"chain_id": "archway-1",
"token_address": "ibc/6F78565CB5D0A8E854A4AD895B0881D0067F9147E5A56DC015EAC3476D9E17E4",
"symbol": "ampWHALE",
"name": "ampWHALE",
"decimals": 6,
"logoURI": "/logos/ampWhale.svg",
"tags": [
"native"
],
"native": true,
"denom": "ibc/6F78565CB5D0A8E854A4AD895B0881D0067F9147E5A56DC015EAC3476D9E17E4"
},
{
"id": "backbone-labs-staked-whale",
"chain_id": "archway-1",
"token_address": "ibc/DD9FFDD2E0B4EE93EBFD1C433501A008C8B7593DAB158944AE6C990500788D05",
"symbol": "bWHALE",
"name": "bWHALE",
"decimals": 6,
"logoURI": "https://raw.githubusercontent.com/cosmos/chain-registry/master/migaloo/images/bWHALE.png",
"tags": [
"native"
],
"native": true,
"denom": "ibc/DD9FFDD2E0B4EE93EBFD1C433501A008C8B7593DAB158944AE6C990500788D05"
}
]
}
31 changes: 31 additions & 0 deletions public/mainnet/archway-1/pools_list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"name": "Pools list on mainnet",
"logoURI": "/img/logo.svg",
"keywords": [
"special tokens"
],
"tags": {
"ProjectName": {
"name": "White Whale",
"description": "Tokens that are listed on Project"
}
},
"timestamp": "2024-01-23T15:01:19+0000",
"base_token": {
"id": "archway",
"chain_id": "archway-1",
"token_address": "",
"symbol": "ARCH",
"name": "Archway",
"decimals": 18,
"logoURI": "https://raw.githubusercontent.com/cosmos/chain-registry/master/archway/images/archway.svg",
"tags": [
"native"
],
"native": true,
"denom": "aarch"
},
"routerAddress": "archway1y0eyqu78q8zz93swaplvg90la0qkk0fueht3yxu6huc96yktrmcqntwe67",
"pools": [
]
}
5 changes: 5 additions & 0 deletions public/mainnet/archway-1/vaults_list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"factory": "archway132netq0uv85fqfq9dln93qy3gpukhzytk344u2a6phukmfa02c6qud97lr",
"vaults": [
]
}
49 changes: 49 additions & 0 deletions public/mainnet/chain_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -448,5 +448,54 @@
"ibc-go"
],
"beta": true
},
{
"chainId": "archway-1",
"chainName": "Archway Mainnet",
"label": "Archway",
"icon": "https://raw.githubusercontent.com/cosmos/chain-registry/master/archway/images/archway.svg",
"rpc": "https://archway.rpc.kjnodes.com",
"rest": "https://archway.api.kjnodes.com",
"stakeCurrency": {
"coinDenom": "ARCH",
"coinMinimalDenom": "aarch",
"coinDecimals": 18
},
"bip44": {
"coinType": 118
},
"bech32Config": {
"bech32PrefixAccAddr": "arch",
"bech32PrefixAccPub": "archpub",
"bech32PrefixValAddr": "archvaloper",
"bech32PrefixValPub": "archvaloperpub",
"bech32PrefixConsAddr": "archvalcons",
"bech32PrefixConsPub": "archvalconspub"
},
"currencies": [
{
"coinDenom": "ARCH",
"coinMinimalDenom": "aarch",
"coinDecimals": 18,
"coinGeckoId": "archway"
}
],
"feeCurrencies": [
{
"coinDenom": "ARCH",
"coinMinimalDenom": "aarch",
"coinDecimals": 18,
"coinGeckoId": "archway"
}
],
"coinType": 118,
"gasPriceStep": {
"low": 140000000000,
"average": 225400000000,
"high": 254800000000
},
"features": [
"cosmwasm"
]
}
]
2 changes: 2 additions & 0 deletions util/getChainLogoUrlByName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export const getChainLogoUrlByName = (chainName: string) : string => {
return '/logos/terra.png'
case WalletChainName.osmosis:
return '/logos/osmo.svg'
case WalletChainName.archway:
return 'https://raw.githubusercontent.com/cosmos/chain-registry/master/archway/images/archway.svg'
default:
return null
}
Expand Down
4 changes: 4 additions & 0 deletions util/getColorByChainName.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ export const getColorByChainName = (chainName: string) : string => {
return '#00FF00'
case WalletChainName.osmosis:
return '#800080'
// TODO: ARCHWAY
case WalletChainName.archway:
return '#000000'

default:
return null
}
Expand Down

0 comments on commit 74a16a3

Please sign in to comment.