Skip to content

Commit

Permalink
Merge pull request #68 from LayerZero-Labs/feat/beam
Browse files Browse the repository at this point in the history
feat: beam details
  • Loading branch information
piotr-layerzero authored Aug 23, 2023
2 parents c35a409 + a2a2c0d commit 7f9c41e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 11 deletions.
9 changes: 6 additions & 3 deletions packages/lz-sdk/src/constants/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ export const LZ_ADDRESS: { [chainKey in ChainKey]?: string } = {
[ChainKey.TENET_TESTNET]: "0x6aB5Ae6822647046626e83ee6dB8187151E1d5ab",
[ChainKey.ZKCONSENSYS]: "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
[ChainKey.ZKCONSENSYS_TESTNET]: "0x6aB5Ae6822647046626e83ee6dB8187151E1d5ab",
[ChainKey.MERITCIRCLE_TESTNET]: "0xae92d5aD7583AD66E49A0c67BAd18F6ba52dDDc1",
[ChainKey.BEAM]: "0xb6319cC6c8c27A8F5dAF0dD3DF91EA35C4720dd7",
[ChainKey.BEAM_TESTNET]: "0xae92d5aD7583AD66E49A0c67BAd18F6ba52dDDc1",
}

export const LZ_RELAYER: { [chainKey in ChainKey]?: string } = {
Expand Down Expand Up @@ -209,7 +210,8 @@ export const LZ_RELAYER_V2: { [chainKey in ChainKey]?: string } = {
[ChainKey.ZKSYNC]: "0x9923573104957bF457a3C4DF0e21c8b389Dd43df",
[ChainKey.TENET]: "0xAaB5A48CFC03Efa9cC34A2C1aAcCCB84b4b770e4",
[ChainKey.TENET_TESTNET]: "0x35AdD9321507A87471a11EBd4aE4f592d531e620",
[ChainKey.MERITCIRCLE_TESTNET]: "0x88866E5A296FffA511EF8011CB1BBd4d01Cd094F",
[ChainKey.BEAM]: "0xA658742d33ebd2ce2F0bdFf73515Aa797Fd161D9",
[ChainKey.BEAM_TESTNET]: "0x88866E5A296FffA511EF8011CB1BBd4d01Cd094F",
}

export const LZ_ULTRA_LIGHT_NODE_V1: { [chainKey in ChainKey]?: string } = {
Expand Down Expand Up @@ -391,5 +393,6 @@ export const LZ_ULTRA_LIGHT_NODE_V2: { [chainKey in ChainKey]?: string } = {
[ChainKey.ZKPOLYGON]: "",
[ChainKey.ZKSYNC_TESTNET]: "",
[ChainKey.ZKSYNC]: "",
[ChainKey.MERITCIRCLE_TESTNET]: "0x4e08B1F1AC79898569CfB999FB92B5495FB18A2B",
[ChainKey.BEAM]: "0x38dE71124f7a447a01D67945a51eDcE9FF491251",
[ChainKey.BEAM_TESTNET]: "0x4e08B1F1AC79898569CfB999FB92B5495FB18A2B",
}
4 changes: 3 additions & 1 deletion packages/lz-sdk/src/constants/blockTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { ChainId } from "../enums"

// in seconds
// keep list sorted alphabetically
// @deprecated
export const AVERAGE_BLOCK_TIME: { [chainId in ChainId]: number } = {
[ChainId.AAVEGOTCHI_TESTNET]: 5,
[ChainId.APTOS_TESTNET_SANDBOX]: 1,
Expand Down Expand Up @@ -120,5 +121,6 @@ export const AVERAGE_BLOCK_TIME: { [chainId in ChainId]: number } = {
[ChainId.ZKSYNC_TESTNET]: 1.4,
[ChainId.ZKSYNC]: 1.6,
[ChainId.BLOCKGEN_TESTNET]: 1,
[ChainId.MERITCIRCLE_TESTNET]: 1,
[ChainId.BEAM]: 1,
[ChainId.BEAM_TESTNET]: 1,
}
5 changes: 3 additions & 2 deletions packages/lz-sdk/src/enums/ChainId.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// keep list sorted alphabetically
export enum ChainId {
AAVEGOTCHI_TESTNET = 10191,
BLOCKGEN_TESTNET = 10177,
MERITCIRCLE_TESTNET = 10178,
APTOS = 108,
APTOS_TESTNET = 10108,
APTOS_TESTNET_SANDBOX = 20308,
Expand All @@ -23,6 +21,9 @@ export enum ChainId {
AVALANCHE = 106,
BASE = 184,
BASE_TESTNET = 10160,
BEAM = 198,
BEAM_TESTNET = 10178,
BLOCKGEN_TESTNET = 10177,
BOBA = 127,
BOBA_TESTNET = 10144,
BOBA_TESTNET_SANDBOX = 20144,
Expand Down
3 changes: 2 additions & 1 deletion packages/lz-sdk/src/enums/ChainKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export enum ChainKey {
AVALANCHE = "avalanche",
BASE = "base",
BASE_TESTNET = "base-testnet",
BEAM = "beam",
BEAM_TESTNET = "beam-testnet",
BLOCKGEN_TESTNET = "blockgen-testnet",
BOBA = "boba",
BOBA_TESTNET = "boba-testnet",
Expand Down Expand Up @@ -73,7 +75,6 @@ export enum ChainKey {
KLAYTN_TESTNET = "klaytn-testnet",
KOVAN = "kovan",
KOVAN_SANDBOX = "kovan-sandbox",
MERITCIRCLE_TESTNET = "meritcircle-testnet",
MANTLE = "mantle",
MANTLE_TESTNET = "mantle-testnet",
METER = "meter",
Expand Down
11 changes: 7 additions & 4 deletions packages/lz-sdk/src/enums/ChainListId.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// keep list sorted alphabetically
export enum ChainListId {
AAVEGOTCHI_TESTNET = 202103,
APTOS = 1,
Expand All @@ -15,6 +16,10 @@ export enum ChainListId {
AURORA_TESTNET = 1313161555,
AURORA_TESTNET_SANDBOX = 1313161555,
AVALANCHE = 43114,
BASE = 8453,
BASE_TESTNET = 84531,
BEAM = 4337,
BEAM_TESTNET = 13337,
BOBA = 288,
BOBA_TESTNET = 28,
BOBA_TESTNET_SANDBOX = 28,
Expand Down Expand Up @@ -91,12 +96,10 @@ export enum ChainListId {
SWIMMER_TESTNET_SANDBOX = 73771,
TENET = 1559,
TENET_TESTNET = 155,
ZKPOLYGON = 1101,
ZKPOLYGON_TESTNET = 1442,
ZKCONSENSYS = 59144,
ZKCONSENSYS_TESTNET = 59140,
ZKPOLYGON = 1101,
ZKPOLYGON_TESTNET = 1442,
ZKSYNC = 324,
ZKSYNC_TESTNET = 280,
BASE = 8453,
BASE_TESTNET = 84531,
}

0 comments on commit 7f9c41e

Please sign in to comment.