Skip to content

Commit

Permalink
Merge pull request #77 from astriaorg/configs/add-neutron-mainnet
Browse files Browse the repository at this point in the history
Configs: add neutron and dtia to mainnet
  • Loading branch information
steezeburger authored Jan 9, 2025
2 parents 0b28d9c + 414a646 commit d0e672a
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added web/public/assets/icons/logos/neutron-logo-color.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
93 changes: 93 additions & 0 deletions web/src/config/chainConfigs/ChainConfigsMainnet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,95 @@ const StrideChainInfo: IbcChainInfo = {
iconClass: "i-stride",
};

const NeutronChainInfo: IbcChainInfo = {
chainId: "neutron-1",
chainName: "Neutron",
// RPC endpoint of the chain
rpc: "wss://neutron-rpc.publicnode.com:443",
// REST endpoint of the chain.
rest: "https://neutron-rest.publicnode.com",
// Staking coin information
stakeCurrency: {
// Coin denomination to be displayed to the user.
coinDenom: "dTIA",
// Actual denom (i.e. uatom, uscrt) used by the blockchain.
coinMinimalDenom:
"factory/neutron1ut4c6pv4u6vyu97yw48y8g7mle0cat54848v6m97k977022lzxtsaqsgmq/udtia",
// # of decimal points to convert minimal denomination to user-facing denomination.
coinDecimals: 6,
// (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided.
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed.
// coinGeckoId: ""
},
// (Optional) If you have a wallet webpage used to stake the coin then provide the url to the website in `walletUrlForStaking`.
// The 'stake' button in Keplr extension will link to the webpage.
// walletUrlForStaking: "",
// The BIP44 path.
bip44: {
// You can only set the coin type of BIP44.
// 'Purpose' is fixed to 44.
coinType: 118,
},
// The address prefix of the chain.
bech32Config: {
bech32PrefixAccAddr: "neutron",
bech32PrefixAccPub: "neutronpub",
bech32PrefixConsAddr: "neutronvalcons",
bech32PrefixConsPub: "neutronvalconspub",
bech32PrefixValAddr: "neutronvaloper",
bech32PrefixValPub: "neutronvaloperpub",
},
// List of all coin/tokens used in this chain.
currencies: [
{
// Coin denomination to be displayed to the user.
coinDenom: "dTIA",
// Actual denom (i.e. uatom, uscrt) used by the blockchain.
coinMinimalDenom:
"factory/neutron1ut4c6pv4u6vyu97yw48y8g7mle0cat54848v6m97k977022lzxtsaqsgmq/udtia",
// # of decimal points to convert minimal denomination to user-facing denomination.
coinDecimals: 6,
// (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided.
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed.
// coinGeckoId: ""
ibcChannel: "channel-6236",
sequencerBridgeAccount: "astria15juwcclg07xs38757q257evltequawcejzzs4l",
iconClass: "i-celestia",
},
],
// List of coin/tokens used as a fee token in this chain.
feeCurrencies: [
{
// Coin denomination to be displayed to the user.
coinDenom: "dTIA",
// Actual denom (i.e. nria, uscrt) used by the blockchain.
coinMinimalDenom:
"factory/neutron1ut4c6pv4u6vyu97yw48y8g7mle0cat54848v6m97k977022lzxtsaqsgmq/udtia",
// # of decimal points to convert minimal denomination to user-facing denomination.
coinDecimals: 6,
// (Optional) Keplr can show the fiat value of the coin if a coingecko id is provided.
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed.
// coinGeckoId: ""
// (Optional) This is used to set the fee of the transaction.
// If this field is not provided and suggesting chain is not natively integrated, Keplr extension will set the Keplr default gas price (low: 0.01, average: 0.025, high: 0.04).
// Currently, Keplr doesn't support dynamic calculation of the gas prices based on on-chain data.
// Make sure that the gas prices are higher than the minimum gas prices accepted by chain validators and RPC/REST endpoint.
gasPriceStep: {
low: 0.01,
average: 0.02,
high: 0.1,
},
},
],
iconClass: "i-neutron",
};

export const ibcChains: IbcChains = {
Celestia: CelestiaChainInfo,
Noble: NobleChainInfo,
Osmosis: OsmosisChainInfo,
Stride: StrideChainInfo,
Neutron: NeutronChainInfo,
};

const FlameChainInfo: EvmChainInfo = {
Expand Down Expand Up @@ -270,6 +354,15 @@ const FlameChainInfo: EvmChainInfo = {
ibcWithdrawalFeeWei: "10000000000000000",
iconClass: "i-stride-tia",
},
{
coinDenom: "dTIA",
coinMinimalDenom:
"factory/neutron1ut4c6pv4u6vyu97yw48y8g7mle0cat54848v6m97k977022lzxtsaqsgmq/udtia",
coinDecimals: 18,
erc20ContractAddress: "0x1E3b0f82d049379FEd8C0b67D915Ea925067e5f2",
ibcWithdrawalFeeWei: "10000000000000000",
iconClass: "i-celestia",
},
],
iconClass: "i-flame",
};
Expand Down
9 changes: 9 additions & 0 deletions web/src/styles/icons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,12 @@ i.i-osmosis {
height: 100%;
width: 100%;
}

i.i-neutron {
background-image: url('../../public/assets/icons/logos/neutron-logo-color.png');
background-repeat: no-repeat;
background-size: contain;
height: 100%;
width: 100%;
}

0 comments on commit d0e672a

Please sign in to comment.