diff --git a/provider/index.tsx b/provider/index.tsx index a0f4e6b..c371bce 100644 --- a/provider/index.tsx +++ b/provider/index.tsx @@ -7,6 +7,8 @@ import { Token } from '@/model/token' import { GET_ASSETS, GET_USER_DATA, applyCode } from '@/services' import { wallets as c98Mobile } from '@/services/c98MobileWallet' import { getGasPriceByChain } from '@/utils' +import { MainnetAsset } from '@/utils/cosmos-kit/assets' +import { Mainnet } from '@/utils/cosmos-kit/chains' import { getItem, removeItem, setItem } from '@/utils/localStorage' import { ApolloClient, ApolloProvider, HttpLink, InMemoryCache, NormalizedCacheObject, split } from '@apollo/client' import { setContext } from '@apollo/client/link/context' @@ -363,14 +365,8 @@ function ContextProvider({ children }: { children: ReactNode }) { console.log('Dragon Wish v1.0.2') return ( chain.chain_name == 'aura' || chain.chain_name == 'auratestnet'), - ]} - assetLists={[ - ...testnetAssets, - ...networkAssets.filter((chain) => chain.chain_name == 'aura' || chain.chain_name == 'auratestnet'), - ]} + chains={[...testnetChains, Mainnet]} + assetLists={[...testnetAssets, MainnetAsset]} signerOptions={signerOptions as any} endpointOptions={{ isLazy: true, diff --git a/public/config.json b/public/config.json index 10f07d1..386831c 100644 --- a/public/config.json +++ b/public/config.json @@ -1,16 +1,16 @@ { - "TWITTER_POST_ID": "1740384898689667455", - "REST_API_ENDPOINT": "https://campaign-api.euphoria.aura.network", - "HASURA_ENDPOINT": "https://campaign-hasura.euphoria.aura.network", - "SEEKHYPE_ENDPOINT": "https://staging.seekhype.io", - "AURASCAN_ENDPOINT": "https://euphoria.aurascan.io", - "HOROSCOPE_ENDPOINT": "https://indexer-v2.staging.aurascan.io", - "HOROSCOPE_CHAINKEY": "euphoria", - "COSMOSKIT_CHAINKEY": "auratestnet", - "SEEKHYPE_DRAGON_COLLECTION_ENDPOINT": "https://staging.seekhype.io/collection/cw721-long-371", - "SEEKHYPE_V2_DRAGON_COLLECTION_ENDPOINT": "https://staging.seekhype.io/nft/dragon-gem-v2-438", - "DRAGON_GEM_COLLECTION_CONTRACT_ADDRESS": "aura14rrxnmkpnvcmeknjzma0myeepdxaa86wh5837959ek37dmrl2lxqfg66z0", - "V2_DRAGON_GEM_COLLECTION_CONTRACT_ADDRESS": "aura1m8thl7lrkka8993c4cxky5st3ewetuv5kkelzya7drdeqrgl5qcs2lqhgs", - "SHIELD_COLLECTION_CONTRACT_ADDRESS": "aura12urfchczsz972jvzawyf38dm87vzhsnymrf4y0shzf4dpdnq0s2sq3pakh", - "OPERATOR_CONTRACT_ADDRESS": "aura19fmuecv5gk2m5pmh5m3gg5g675fu8mnz6gwwug" + "REST_API_ENDPOINT": "https://lixi-api.aura.network", + "HASURA_ENDPOINT": "https://lixi-hasura.aura.network", + "TWITTER_POST_ID": "1755998723153523045", + "AURASCAN_ENDPOINT": "https://aurascan.io", + "SEEKHYPE_ENDPOINT": "https://beta.seekhype.io", + "AURASCAN_ENDPOINT": "https://aurascan.io", + "HOROSCOPE_ENDPOINT": "https://horoscope.aura.network", + "HOROSCOPE_CHAINKEY": "xstaxy", + "COSMOSKIT_CHAINKEY": "aura", + "SEEKHYPE_DRAGON_COLLECTION_ENDPOINT": "https://beta.seekhype.io/collection/dragon-gem-dragon-s-227", + "DRAGON_GEM_COLLECTION_CONTRACT_ADDRESS": "aura189xmlzrj8ah96ww4700kp33va2uttzs7lgm0y8vx4hcw2clk4vsszgyu53", + "V2_DRAGON_GEM_COLLECTION_CONTRACT_ADDRESS": "aura1jgu42ganmy94f6ux455dc4cruh6xz3hpyp337txrprcnedmaeseq58gufk", + "SHIELD_COLLECTION_CONTRACT_ADDRESS": "aura1506ec745hve236ynk44agl9gluqdf0pcghcu766jrfe4974enyhsgucn2p", + "OPERATOR_CONTRACT_ADDRESS": "aura1qfx7zcvsz333dyqynsld9wj9aa2nycjmpdjunx" } diff --git a/utils/cosmos-kit/assets.tsx b/utils/cosmos-kit/assets.tsx new file mode 100644 index 0000000..23b4fc8 --- /dev/null +++ b/utils/cosmos-kit/assets.tsx @@ -0,0 +1,34 @@ +import { AssetList } from '@chain-registry/types' +export const MainnetAsset: AssetList = { + $schema: '../assetlist.schema.json', + chain_name: 'aura', + assets: [ + { + description: 'The native token of Aura Test Network', + denom_units: [ + { + denom: 'uaura', + exponent: 0, + }, + { + denom: 'aura', + exponent: 6, + }, + ], + base: 'uaura', + name: 'EAura', + display: 'eaura', + symbol: 'EAURA', + logo_URIs: { + png: 'https://raw.githubusercontent.com/cosmos/chain-registry/master/aura/images/Aura-logo-2.2.png', + svg: 'https://raw.githubusercontent.com/cosmos/chain-registry/master/aura/images/Aura-logo-2.2.svg', + }, + images: [ + { + png: 'https://raw.githubusercontent.com/cosmos/chain-registry/master/aura/images/Aura-logo-2.2.png', + svg: 'https://raw.githubusercontent.com/cosmos/chain-registry/master/aura/images/Aura-logo-2.2.svg', + }, + ], + }, + ], +} diff --git a/utils/cosmos-kit/chains.tsx b/utils/cosmos-kit/chains.tsx new file mode 100644 index 0000000..64d75da --- /dev/null +++ b/utils/cosmos-kit/chains.tsx @@ -0,0 +1,74 @@ +import { Chain } from '@chain-registry/types' +export const Mainnet: Chain = { + $schema: '../chain.schema.json', + chain_name: 'aura', + status: 'live', + network_type: 'mainnet', + website: 'https://aura.network/', + pretty_name: 'Aura Network', + chain_id: 'aura_6322-2', + bech32_prefix: 'aura', + daemon_name: 'aurad', + node_home: '$HOME/.aura', + key_algos: ['secp256k1'], + slip44: 118, + fees: { + fee_tokens: [ + { + denom: 'uaura', + fixed_min_gas_price: 0.001, + low_gas_price: 0.001, + average_gas_price: 0.002, + high_gas_price: 0.0025, + }, + ], + }, + staking: { + staking_tokens: [ + { + denom: 'uaura', + }, + ], + lock_duration: { + time: '172800s', + }, + }, + logo_URIs: { + png: 'https://raw.githubusercontent.com/cosmos/chain-registry/master/aura/images/Aura-logo-2.2.png', + svg: 'https://raw.githubusercontent.com/cosmos/chain-registry/master/aura/images/Aura-logo-2.2.svg', + }, + apis: { + rpc: [ + { + address: 'https://rpc.aura.network/', + provider: 'Aura Network Foundation', + }, + ], + rest: [ + { + address: 'https://lcd.aura.network/', + provider: 'Aura Network Foundation', + }, + ], + grpc: [ + { + address: 'http://grpc.aura.network:9090', + provider: 'Aura Network Foundation', + }, + ], + }, + explorers: [ + { + kind: 'aurascan', + url: 'https://aurascan.io', + tx_page: 'https://aurascan.io/tx/${txHash}', + account_page: 'https://aurascan.io/address/${accountAddress}', + }, + ], + images: [ + { + png: 'https://raw.githubusercontent.com/cosmos/chain-registry/master/aura/images/Aura-logo-2.2.png', + svg: 'https://raw.githubusercontent.com/cosmos/chain-registry/master/aura/images/Aura-logo-2.2.svg', + }, + ], +}