Skip to content

Commit

Permalink
Consts: Add Blast (#460)
Browse files Browse the repository at this point in the history
* add Blast, modify how native chain ids are specified
  • Loading branch information
barnjamin authored Apr 4, 2024
1 parent db153a2 commit dc1bce0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/base/src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const chainIdAndChainEntries = [
[ 33, "Rootstock" ],
[ 34, "Scroll" ],
[ 35, "Mantle" ],
[ 36, "Blast" ],
[ 3104, "Wormchain" ],
[ 4000, "Cosmoshub" ],
[ 4001, "Evmos" ],
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/contracts/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const coreBridgeContracts = [[
["Mantle", "0x376428e7f26D5867e69201b275553C45B09EE090"],
["PolygonSepolia", "0x6b9C8671cdDC8dEab9c719bB87cBd3e782bA6a35"],
["Scroll", "0x055F47F1250012C6B20c436570a76e52c17Af2D5"],
["Blast", "0x473e002D7add6fB67a4964F13bFd61280Ca46886"],
]], [
"Devnet", [
["Solana", "Bridge1p5gheXUvJ6jGWGeCsgPKgnE3YgdGKRVCMY9o"],
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/contracts/tokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ export const tokenBridgeContracts = [[
["Mantle", "0x75Bfa155a9D7A3714b0861c8a8aF0C4633c45b5D"],
["PolygonSepolia", "0xC7A204bDBFe983FCD8d8E61D02b475D4073fF97e"],
["Scroll", "0x22427d90B7dA3fA4642F7025A854c7254E4e45BF"],
["Blast", "0x430855B4D43b8AEB9D2B9869B74d58dda79C0dB2"],
]], [
"Devnet", [
["Solana", "B6RHG3mfcckmrYN1UhmJzyS1XX3fZKbkeUcpJe9Sy3FE"],
Expand Down
2 changes: 2 additions & 0 deletions core/base/src/constants/nativeChainIds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const chainNetworkNativeChainIdEntries = [
["Dymension", "dymension_1100-1"],
["Mantle", 5000n],
["Scroll", 534352n],
["Blast", 81457n],
],
],
[
Expand Down Expand Up @@ -96,6 +97,7 @@ const chainNetworkNativeChainIdEntries = [
["Neutron", "pion-1"],
["Celestia", "mocha-4"],
["Seda", "seda-1-testnet"],
["Blast", 168587773n], // Sepolia testnet
["Mantle", 5003n], // Sepolia testnet
["Scroll", 534351n],
],
Expand Down
1 change: 1 addition & 0 deletions core/base/src/constants/platforms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const platformAndChainsEntries = [[
"PolygonSepolia",
"Mantle",
"Scroll",
"Blast",
]], [
"Solana", [
"Solana",
Expand Down
4 changes: 3 additions & 1 deletion core/base/src/constants/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ const rpcConfig = [[
["Dymension", "https://dymension-rpc.polkachu.com/"],
["Stargaze", "https://stargaze-rpc.polkachu.com/"],
["Celestia", "https://celestia-rpc.polkachu.com/"],
["Neutron", "https://neutron-rpc.polkachu.com/"]
["Neutron", "https://neutron-rpc.polkachu.com/"],
["Blast", "https://rpc.blast.io"],
]], [
"Testnet", [
["Ethereum", "https://rpc.ankr.com/eth_goerli"],
Expand Down Expand Up @@ -69,6 +70,7 @@ const rpcConfig = [[
["Mantle", "https://mantle-sepolia.drpc.org"],
["Karura", "https://eth-rpc-karura-testnet.aca-staging.network"],
["Acala", "https://eth-rpc-acala-testnet.aca-staging.network"],
["Blast", "https://sepolia.blast.io"],
]], [
"Devnet", [
["Ethereum", "http://eth-devnet:8545"],
Expand Down
2 changes: 1 addition & 1 deletion core/definitions/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ export function buildConfig<N extends Network>(n: N): ChainsConfig<N, Platform>
network: n,
chainId: toChainId(c),
finalityThreshold: finality.finalityThreshold.get(c) ?? 0,
blockTime: finality.blockTime(c),
blockTime: finality.blockTime.get(c) ?? 0,
contracts: getContracts(n, c),
nativeTokenDecimals: decimals.nativeDecimals(platform),
nativeChainId,
Expand Down

0 comments on commit dc1bce0

Please sign in to comment.