Skip to content

Commit

Permalink
Add bsc-mainnet to addresses pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
andresaiello committed Sep 29, 2023
1 parent c80a37f commit 900cd0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/addresses/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zetachain/addresses",
"version": "0.0.11",
"version": "0.0.12",
"license": "MIT",
"author": "zetachain",
"publishConfig": {
Expand All @@ -22,4 +22,4 @@
"vite": "^3.1.0",
"vite-plugin-dts": "^1.4.1"
}
}
}
5 changes: 3 additions & 2 deletions packages/addresses/src/addresses.helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ export const getTestnetList = (): Record<ZetaTestnetNetworkName, TestnetAddressG
* @description Mainnet
*/

export type MainnetNetworkName = "eth-mainnet" | "klaytn-cypress";
export type MainnetNetworkName = "bsc-mainnet" | "eth-mainnet" | "klaytn-cypress";
export type ZetaMainnetNetworkName = "mainnet";
export type MainnetAddressGroup = Record<MainnetNetworkName, NetworkAddresses>;
export const isMainnetNetworkName = (networkName: string): networkName is MainnetNetworkName =>
networkName === "eth-mainnet" || networkName === "klaytn-cypress";
networkName === "bsc-mainnet" || networkName === "eth-mainnet" || networkName === "klaytn-cypress";
export const isZetaMainnet = (networkName: string | undefined): networkName is ZetaMainnetNetworkName =>
networkName === "mainnet";

Expand All @@ -131,6 +131,7 @@ export const getChainId = (networkName: NetworkName) => {
athens: 7001,
"bitcoin-test": 18332,
"bsc-localnet": 97,
"bsc-mainnet": 56,
"bsc-testnet": 97,
"eth-localnet": 5,
"eth-mainnet": 1,
Expand Down

0 comments on commit 900cd0d

Please sign in to comment.