Skip to content

Commit

Permalink
add noble to dawn configs
Browse files Browse the repository at this point in the history
  • Loading branch information
steezeburger committed Oct 23, 2024
1 parent 12e9a47 commit 47086d8
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 1 deletion.
90 changes: 90 additions & 0 deletions web/src/config/chainConfigs/ChainConfigsDawn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,91 @@ const CelestiaChainInfo: IbcChainInfo = {
iconClass: "i-celestia",
};

const NobleChainInfo: IbcChainInfo = {
chainId: "grand-1",
chainName: "Noble Testnet",
// RPC endpoint of the chain
// rpc: "https://rpc.testnet.noble.strange.love:443",
// rpc: "https://rpc.testnet.noble.strange.love",
rpc: "https://noble-testnet-rpc.polkachu.com",
// REST endpoint of the chain.
rest: "https://noble-testnet-api.polkachu.com",
// Staking coin information
stakeCurrency: {
// Coin denomination to be displayed to the user.
coinDenom: "USDC",
// Actual denom (i.e. uatom, uscrt) used by the blockchain.
coinMinimalDenom: "uusdc",
// # 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: "noble",
bech32PrefixAccPub: "noblepub",
bech32PrefixConsAddr: "noblevalcons",
bech32PrefixConsPub: "noblevalconspub",
bech32PrefixValAddr: "noblevaloper",
bech32PrefixValPub: "noblevaloperpub",
},
// List of all coin/tokens used in this chain.
currencies: [
{
// Coin denomination to be displayed to the user.
coinDenom: "USDC",
// Actual denom (i.e. uatom, uscrt) used by the blockchain.
coinMinimalDenom: "uusdc",
// # 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-232",
sequencerBridgeAccount: "astria1u6ewl0tejz0df2l6tzc7k2degx6mqsjahldqxd",
iconClass: "i-noble",
},
],
// List of coin/tokens used as a fee token in this chain.
feeCurrencies: [
{
// Coin denomination to be displayed to the user.
coinDenom: "USDC",
// Actual denom (i.e. nria, uscrt) used by the blockchain.
coinMinimalDenom: "usdc",
// # 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-noble",
};

export const ibcChains: IbcChains = {
"Celestia Mocha-4": CelestiaChainInfo,
"Noble Testnet": NobleChainInfo,
};

const FlameChainInfo: EvmChainInfo = {
Expand All @@ -99,6 +182,13 @@ const FlameChainInfo: EvmChainInfo = {
"0x77Af806d724699B3644F9CCBFD45CC999CCC3d49",
iconClass: "i-celestia",
},
{
coinDenom: "USDC",
coinMinimalDenom: "uusdc",
coinDecimals: 18,
erc20ContractAddress: "0x6e18cE6Ec3Fc7b8E3EcFca4fA35e25F3f6FA879a",
iconClass: "i-noble",
},
],
iconClass: "i-flame",
};
Expand Down
1 change: 0 additions & 1 deletion web/src/config/chainConfigs/ChainConfigsDusk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ const NobleChainInfo: IbcChainInfo = {
// You can get id from https://api.coingecko.com/api/v3/coins/list if it is listed.
// coinGeckoId: ""
ibcChannel: "channel-231",
// NOTE - noble requires bech32 address, not bech32m.
sequencerBridgeAccount: "astria12saluecm8dd7hkutk83eavkl2p70lf5w7txezg",
iconClass: "i-noble",
},
Expand Down

0 comments on commit 47086d8

Please sign in to comment.