Skip to content

Commit

Permalink
Add Noble support
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley committed Dec 17, 2024
1 parent b90c148 commit 67e1446
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/base/src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ const chainIdAndChainEntries = [
[ 4006, "Seda" ],
[ 4007, "Dymension" ],
[ 4008, "Provenance" ],
[ 4009, "Noble" ],
[10002, "Sepolia" ],
[10003, "ArbitrumSepolia"],
[10004, "BaseSepolia" ],
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/finality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const finalityThresholds = [
["Stargaze", 0],
["Dymension", 0],
["Provenance",0],
["Noble", 0],
// Testnets
["Sepolia", 72],
["ArbitrumSepolia", 4096],
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/nativeChainIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const chainNetworkNativeChainIdEntries = [
["Celestia", "celestia"],
["Dymension", "dymension_1100-1"],
["Provenance","pio-mainnet-1"],
["Noble", "noble-1"],
["Xlayer", 196n],
["Mantle", 5000n],
["Scroll", 534352n],
Expand Down
3 changes: 2 additions & 1 deletion core/base/src/constants/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ const platformAndChainsEntries = [[
"Stargaze",
"Celestia",
"Seda",
"Provenance"
"Provenance",
"Noble"
]], [
"Btc", [
"Btc"
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const rpcConfig = [[
["Neutron", "https://neutron-rpc.polkachu.com/"],
["Blast", "https://rpc.blast.io"],
["Provenance","https://rpc.provenance.io/"],
["Noble", "https://noble-rpc.polkachu.com/"],
["Linea", "https://rpc.linea.build"],
["Scroll", "https://rpc.ankr.com/scroll"],
["Xlayer", "https://xlayerrpc.okx.com/"],
Expand Down
11 changes: 11 additions & 0 deletions core/icons/src/images/chains/Noble.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions platforms/cosmwasm/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const cosmwasmAddressPrefix = [
["Neutron", "neutron"],
["Seda", "seda"],
["Provenance", "pb"],
["Noble", "noble"],
] as const satisfies RoArray<readonly [CosmwasmChains, string]>;

export const chainToAddressPrefix = constMap(cosmwasmAddressPrefix);
Expand All @@ -66,6 +67,7 @@ const cosmwasmNativeDenom = [
["Stargaze", "ustars"],
["Neutron", "untrn"],
["Provenance", "nhash"],
["Noble", "uusdc"],
],
],
[
Expand Down Expand Up @@ -214,6 +216,7 @@ const avgPrices = [
["Evmos", "25000000000"],
["Dymension", "5000000000"],
["Provenance", "2100"],
["Noble", "0.1"],
],
],
] as const satisfies RoArray<readonly [Network, RoArray<readonly [CosmwasmChains, string]>]>;
Expand Down

0 comments on commit 67e1446

Please sign in to comment.