diff --git a/config.ts b/config.ts new file mode 100644 index 0000000..d95ce0f --- /dev/null +++ b/config.ts @@ -0,0 +1,160 @@ +import { AccountInfo } from "./types"; + +export const AccountInfos: AccountInfo[] = [ + { + prefix: "cosmos", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/cosmoshub/chain.png", + }, + { + prefix: "osmo", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/osmosis/chain.png", + }, + { + prefix: "agoric", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/agoric/chain.png", + }, + { + prefix: "akash", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/akashnet/chain.png", + }, + { + prefix: "axelar", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/axelar-dojo/chain.png", + }, + { + prefix: "bostrom", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/bostrom/chain.png", + }, + { + prefix: "persistence", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/core/chain.png", + }, + { + prefix: "cro", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/crypto-org-chain-mainnet/chain.png", + }, + { + prefix: "emoney", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/emoney/chain.png", + }, + { + prefix: "evmos", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/evmos_9001/chain.png", + }, + { + prefix: "gravity", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/gravity-bridge/chain.png", + }, + { + prefix: "ixo", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/impacthub/chain.png", + }, + { + prefix: "star", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/iov-mainnet-ibc/chain.png", + }, + { + prefix: "iaa", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/irishub/chain.png", + }, + { + prefix: "juno", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/juno/chain.png", + }, + { + prefix: "kava", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/kava_2222/chain.png", + }, + { + prefix: "regen", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/regen/chain.png", + }, + { + prefix: "secret", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/secret/chain.png", + }, + { + prefix: "sent", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/sentinelhub/chain.png", + }, + { + prefix: "certik", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/shentu-2.2/chain.png", + }, + { + prefix: "sif", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/sifchain/chain.png", + }, + { + prefix: "somm", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/sommelier/chain.png", + }, + { + prefix: "stars", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/stargaze/chain.png", + }, + { + prefix: "stride", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/stride/chain.png", + }, + { + prefix: "tgrade", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/tgrade-mainnet/chain.png", + }, + { + prefix: "umee", + address: "cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs", + chainImageUrl: + "https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/umee/chain.png", + }, +]; diff --git a/pages/verification/index.tsx b/pages/verification/index.tsx index 187faa0..5fc528c 100644 --- a/pages/verification/index.tsx +++ b/pages/verification/index.tsx @@ -48,6 +48,7 @@ import { } from "./styled"; import { PrimaryButton } from "../../components/primary-button"; +import { AccountInfos } from "../../config"; export default function VerificationPage() { const [twitterAuthInfo, setTwitterAuthInfo] = @@ -237,125 +238,25 @@ export default function VerificationPage() { - - - chain image - - - .osmo - - cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs - - + {AccountInfos.map((accountInfo) => ( + + + {`${accountInfo.prefix} + + + {`.${accountInfo.prefix}`} + {accountInfo.address} + - + - - - - - - chain image - - - .osmo - - cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs - - - - - - - - - - - chain image - - - .osmo - - cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs - - - - - - - - - - - chain image - - - .osmo - - cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs - - - - - - - - - - - chain image - - - .osmo - - cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs - - - - - - - - - - - chain image - - - .osmo - - cosmos14ky6udatsvdx859050mrnr7rvml0huue2wszvs - - - - - - - + + + ))} diff --git a/types/account-info.ts b/types/account-info.ts new file mode 100644 index 0000000..3471b49 --- /dev/null +++ b/types/account-info.ts @@ -0,0 +1,5 @@ +export interface AccountInfo { + prefix: string; + chainImageUrl: string; + address: string; +} diff --git a/types/index.ts b/types/index.ts index 02795f0..0dea015 100644 --- a/types/index.ts +++ b/types/index.ts @@ -1 +1,4 @@ export * from "./width-height-props"; +export * from "./api-response"; +export * from "./account-info"; +export * from "./msg";