Skip to content

Commit

Permalink
Merge pull request #409 from axelarnetwork/feat/add-provenance-chain
Browse files Browse the repository at this point in the history
feat/add provenance chain
  • Loading branch information
alanrsoares authored Aug 15, 2023
2 parents 63be6fb + 124917b commit 264c9a3
Show file tree
Hide file tree
Showing 26 changed files with 160 additions and 215 deletions.
20 changes: 11 additions & 9 deletions public/assets/chains/provenance.logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/acrechain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -14,14 +16,7 @@ export const acrechain: CosmosChain = {
coinDecimals: 18,
coinGeckoId: "arable-protocol",
},
bech32Config: {
bech32PrefixAccAddr: "acre",
bech32PrefixAccPub: "acrepub",
bech32PrefixValAddr: "acrevaloper",
bech32PrefixValPub: "acrevaloperpub",
bech32PrefixConsAddr: "acrevalcons",
bech32PrefixConsPub: "acrevalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("acre"),
bip44: { coinType: 60 },
currencies: [
{
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/archway.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";

export const archway: CosmosChain = {
rest: "https://api.mainnet.archway.io",
rpc: `${COSMOS_PROXY_RPC_MAINNET}/chain/archway`,
bech32Config: {
bech32PrefixAccAddr: "archway",
bech32PrefixAccPub: "archwaypub",
bech32PrefixConsAddr: "archwayvalcons",
bech32PrefixConsPub: "archwayvalconspub",
bech32PrefixValAddr: "archwayvaloper",
bech32PrefixValPub: "archwayvaloperpub",
},
bech32Config: Bech32Address.defaultBech32Config("archway"),
bip44: {
coinType: 118,
},
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/assetmantle.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -13,14 +15,7 @@ export const assetmantle: CosmosChain = {
coinDecimals: 6,
coinGeckoId: "assetmantle",
},
bech32Config: {
bech32PrefixAccAddr: "mantle",
bech32PrefixAccPub: "mantlepub",
bech32PrefixValAddr: "mantlevaloper",
bech32PrefixValPub: "mantlevaloperpub",
bech32PrefixConsAddr: "mantlevalcons",
bech32PrefixConsPub: "mantlevalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("mantle"),
bip44: {
coinType: 118,
},
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/aura.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -10,14 +12,7 @@ export const aura: CosmosChain = {
bip44: {
coinType: 118,
},
bech32Config: {
bech32PrefixAccAddr: "aura",
bech32PrefixAccPub: "aura" + "pub",
bech32PrefixValAddr: "aura" + "valoper",
bech32PrefixValPub: "aura" + "valoperpub",
bech32PrefixConsAddr: "aura" + "valcons",
bech32PrefixConsPub: "aura" + "valconspub",
},
bech32Config: Bech32Address.defaultBech32Config("aura"),
currencies: [
{
coinDenom: "AURA",
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/carbon.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -12,14 +14,7 @@ export const carbon: CosmosChain = {
bip44: {
coinType: 118,
},
bech32Config: {
bech32PrefixAccAddr: "swth",
bech32PrefixAccPub: "swthpub",
bech32PrefixValAddr: "swthvaloper",
bech32PrefixValPub: "swthvaloperpub",
bech32PrefixConsAddr: "swthvalcons",
bech32PrefixConsPub: "swthvalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("swth"),
currencies: [
{
coinDenom: "SWTH",
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/crescent.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -12,14 +14,7 @@ export const crescent: CosmosChain = {
bip44: {
coinType: 118,
},
bech32Config: {
bech32PrefixAccAddr: "cre",
bech32PrefixAccPub: "crepub",
bech32PrefixValAddr: "crevaloper",
bech32PrefixValPub: "crevaloperpub",
bech32PrefixConsAddr: "crevalcons",
bech32PrefixConsPub: "crevalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("cre"),
currencies: [
{
coinDenom: "CRE",
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/fetch.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -13,14 +15,7 @@ export const fetch: CosmosChain = {
coinDecimals: 18,
coinGeckoId: "fetch-ai",
},
bech32Config: {
bech32PrefixAccAddr: "fetch",
bech32PrefixAccPub: "fetchpub",
bech32PrefixValAddr: "fetchvaloper",
bech32PrefixValPub: "fetchvaloperpub",
bech32PrefixConsAddr: "fetchvalcons",
bech32PrefixConsPub: "fetchvalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("fetch"),
bip44: {
coinType: 118,
},
Expand Down
2 changes: 2 additions & 0 deletions src/config/web3/cosmos/mainnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import { ki } from "./ki";
import { kujira } from "./kujira";
import { neutron } from "./neutron";
import { osmosis } from "./osmosis";
import { provenance } from "./provenance";
import { rebus } from "./rebus";
import { regen } from "./regen";
import { secret } from "./secret";
Expand Down Expand Up @@ -63,4 +64,5 @@ export const mainnetChains: CosmosChain[] = [
sei,
aura,
rebus,
provenance,
];
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/ixo.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -22,14 +24,7 @@ export const ixo: CosmosChain = {
bip44: {
coinType: 118,
},
bech32Config: {
bech32PrefixAccAddr: "ixo",
bech32PrefixAccPub: "ixopub",
bech32PrefixValAddr: "ixovaloper",
bech32PrefixValPub: "ixovaloperpub",
bech32PrefixConsAddr: "ixovalcons",
bech32PrefixConsPub: "ixovalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("ixo"),
currencies: [
{
coinDenom: "IXO",
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/ki.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -13,14 +15,7 @@ export const ki: CosmosChain = {
coinDecimals: 6,
coinGeckoId: "ki",
},
bech32Config: {
bech32PrefixAccAddr: "ki",
bech32PrefixAccPub: "kipub",
bech32PrefixValAddr: "kivaloper",
bech32PrefixValPub: "kivaloperpub",
bech32PrefixConsAddr: "kivalcons",
bech32PrefixConsPub: "kivalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("ki"),
bip44: {
coinType: 118,
},
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/kujira.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -8,14 +10,7 @@ export const kujira: CosmosChain = {
rpc: `${COSMOS_PROXY_RPC_MAINNET}/chain/kujira`,
rest: "https://lcd.kaiyo.kujira.setten.io",
bip44: { coinType: 118 },
bech32Config: {
bech32PrefixAccAddr: "kujira",
bech32PrefixAccPub: "kujirapub",
bech32PrefixValAddr: "kujiravaloper",
bech32PrefixValPub: "kujiravaloperpub",
bech32PrefixConsAddr: "kujiravalcons",
bech32PrefixConsPub: "kujiravalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("kujira"),
currencies: [
{
coinDenom: "KUJI",
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/neutron.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -11,14 +13,7 @@ export const neutron: CosmosChain = {
bip44: {
coinType: 118,
},
bech32Config: {
bech32PrefixAccAddr: "neutron",
bech32PrefixAccPub: "neutronpub",
bech32PrefixValAddr: "neutronvaloper",
bech32PrefixValPub: "neutronvaloperpub",
bech32PrefixConsAddr: "neutronvalcons",
bech32PrefixConsPub: "neutronvalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("neutron"),
currencies: [
{
coinDenom: "NTRN",
Expand Down
54 changes: 54 additions & 0 deletions src/config/web3/cosmos/mainnet/provenance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";

export const provenance: CosmosChain = {
chainId: "pio-mainnet-1",
chainName: "Provenance",
chainIdentifier: "provenance",
chainToAxelarChannelId: "provenance-mainnet",
rest: "https://api.provenance.io/",
rpc: `${COSMOS_PROXY_RPC_MAINNET}/chain/provenance`,
bech32Config: Bech32Address.defaultBech32Config("pb"),
bip44: {
coinType: 505,
},
chainSymbolImageUrl:
"https://raw.githubusercontent.com/chainapsis/keplr-chain-registry/main/images/pio-mainnet/chain.png",
currencies: [
{
coinDecimals: 9,
coinDenom: "HASH",
coinGeckoId: "provenance-blockchain",
coinMinimalDenom: "nhash",
},
],
features: ["cosmwasm"],
feeCurrencies: [
{
coinDecimals: 9,
coinDenom: "HASH",
coinGeckoId: "provenance-blockchain",
coinMinimalDenom: "nhash",
gasPriceStep: {
average: 1905,
high: 2500,
low: 1905,
},
},
],
nodeProvider: {
name: "Provenance",
email: "[email protected]",
website: "https://provenance.io",
},
stakeCurrency: {
coinDecimals: 9,
coinDenom: "HASH",
coinGeckoId: "provenance-blockchain",
coinMinimalDenom: "nhash",
},
explorer: "https://explorer.provenance.io/accounts/",
};
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/mainnet/sei.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_MAINNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -9,14 +11,7 @@ export const sei: CosmosChain = {
rpc: `${COSMOS_PROXY_RPC_MAINNET}/chain/sei`,
rest: "https://sei-api.polkachu.com",
bip44: { coinType: 118 },
bech32Config: {
bech32PrefixAccAddr: "sei",
bech32PrefixAccPub: "seipub",
bech32PrefixValAddr: "seivaloper",
bech32PrefixValPub: "seivaloperpub",
bech32PrefixConsAddr: "seivalcons",
bech32PrefixConsPub: "seivalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("sei"),
currencies: [{ coinDenom: "SEI", coinMinimalDenom: "usei", coinDecimals: 6 }],
feeCurrencies: [
{ coinDenom: "SEI", coinMinimalDenom: "usei", coinDecimals: 6 },
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/testnet/acrechain.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_TESTNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -14,14 +16,7 @@ export const acrechain: CosmosChain = {
coinDecimals: 18,
coinGeckoId: "unknown",
},
bech32Config: {
bech32PrefixAccAddr: "acre",
bech32PrefixAccPub: "acrepub",
bech32PrefixValAddr: "acrevaloper",
bech32PrefixValPub: "acrevaloperpub",
bech32PrefixConsAddr: "acrevalcons",
bech32PrefixConsPub: "acrevalconspub",
},
bech32Config: Bech32Address.defaultBech32Config("acre"),
bip44: { coinType: 60 },
currencies: [
{
Expand Down
11 changes: 3 additions & 8 deletions src/config/web3/cosmos/testnet/aura.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Bech32Address } from "@keplr-wallet/cosmos";

import { COSMOS_PROXY_RPC_TESTNET } from "~/config/constants";

import { CosmosChain } from "../interface";
Expand All @@ -10,14 +12,7 @@ export const aura: CosmosChain = {
bip44: {
coinType: 118,
},
bech32Config: {
bech32PrefixAccAddr: "aura",
bech32PrefixAccPub: "aura" + "pub",
bech32PrefixValAddr: "aura" + "valoper",
bech32PrefixValPub: "aura" + "valoperpub",
bech32PrefixConsAddr: "aura" + "valcons",
bech32PrefixConsPub: "aura" + "valconspub",
},
bech32Config: Bech32Address.defaultBech32Config("aura"),
currencies: [
{
coinDenom: "EAURA",
Expand Down
Loading

1 comment on commit 264c9a3

@vercel
Copy link

@vercel vercel bot commented on 264c9a3 Aug 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.