From ff420c72a5e1c66c43d0fc860ac35131fe7db2a0 Mon Sep 17 00:00:00 2001 From: npty Date: Thu, 15 Feb 2024 16:48:12 +0700 Subject: [PATCH] feat: add ojo --- src/config/web3/cosmos/testnet/index.ts | 2 ++ src/config/web3/cosmos/testnet/ojo.ts | 45 +++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 src/config/web3/cosmos/testnet/ojo.ts diff --git a/src/config/web3/cosmos/testnet/index.ts b/src/config/web3/cosmos/testnet/index.ts index bdecbe74e..33480deb5 100644 --- a/src/config/web3/cosmos/testnet/index.ts +++ b/src/config/web3/cosmos/testnet/index.ts @@ -14,6 +14,7 @@ import { haqq } from "./haqq"; import { kujira } from "./kujira"; import { neutron } from "./neutron"; import { odin } from "./odin"; +import { ojo } from "./ojo"; import { osmosis } from "./osmosis"; import { persistence } from "./persistence"; import { provenance } from "./provenance"; @@ -43,6 +44,7 @@ export const testnetChains: CosmosChain[] = [ burnt, acrechain, odin, + ojo, secret, neutron, teritori, diff --git a/src/config/web3/cosmos/testnet/ojo.ts b/src/config/web3/cosmos/testnet/ojo.ts new file mode 100644 index 000000000..f6ce5ba60 --- /dev/null +++ b/src/config/web3/cosmos/testnet/ojo.ts @@ -0,0 +1,45 @@ +import { Bech32Address } from "@keplr-wallet/cosmos"; + +import { COSMOS_PROXY_RPC_TESTNET } from "~/config/constants"; + +import { CosmosChain } from "../interface"; + +export const ojo: CosmosChain = { + rpc: `${COSMOS_PROXY_RPC_TESTNET}/chain/ojo`, + rest: "https://api.ditto-val-stage-0.ojo.network/", + chainId: "agamotto", + chainName: "Ojo", + chainIdentifier: "ojo", + stakeCurrency: { + coinDenom: "OJO", + coinMinimalDenom: "uojo", + coinDecimals: 6, + coinGeckoId: "ojo", + }, + bech32Config: Bech32Address.defaultBech32Config("ojo"), + bip44: { coinType: 60 }, + currencies: [ + { + coinDenom: "OJO", + coinMinimalDenom: "uojo", + coinDecimals: 6, + coinGeckoId: "ojo", + }, + ], + feeCurrencies: [ + { + coinDenom: "OJO", + coinMinimalDenom: "uojo", + coinDecimals: 6, + coinGeckoId: "ojo", + gasPriceStep: { + low: 0, + average: 0, + high: 0, + }, + }, + ], + features: ["stargate", "no-legacy-stdTx", "ibc-transfer"], + chainToAxelarChannelId: "channel-1", + explorer: "https://agamotto.ojo.network/agamotto/account/", +};