Skip to content

Commit

Permalink
feat: add avalanche and bsc blockchains as supported blockchains (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 authored Jan 3, 2025
1 parent 5b23197 commit ce7e1a8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "dlc-btc-lib",
"version": "2.5.4",
"version": "2.5.5",
"description": "This library provides a comprehensive set of interfaces and functions for minting dlcBTC tokens on supported blockchains.",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
16 changes: 16 additions & 0 deletions src/constants/ethereum-constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,29 @@ const ethereumHardhat: EthereumNetwork = {
defaultNodeURL: 'http://localhost:8545',
};

const ethereumAvalanche: EthereumNetwork = {
name: 'Avax',
displayName: 'Avalanche',
id: EthereumNetworkID.Avalanche,
defaultNodeURL: 'https://api.avax.network/ext/bc/C/rpc',
};

const ethereumBSC: EthereumNetwork = {
name: 'BSC',
displayName: 'Binace Smart Chain',
id: EthereumNetworkID.BSC,
defaultNodeURL: 'https://rpc.ankr.com/bsc',
};

export const supportedEthereumNetworks: EthereumNetwork[] = [
ethereumArbitrumSepolia,
ethereumArbitrum,
ethereumMainnet,
ethereumSepolia,
ethereumBase,
ethereumBaseSepolia,
ethereumAvalanche,
ethereumBSC,
ethereumHardhat,
];

Expand Down
2 changes: 2 additions & 0 deletions src/models/attestor.models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export type AttestorChainID =
| 'evm-opsepolia'
| 'evm-polygon'
| 'evm-polygonsepolia'
| 'evm-avax'
| 'evm-bsc'
| 'evm-localhost'
| 'evm-hardhat-arb'
| 'evm-hardhat-eth'
Expand Down
2 changes: 2 additions & 0 deletions src/models/ethereum-models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export enum EthereumNetworkID {
Mainnet = '1',
Sepolia = '11155111',
Arbitrum = '42161',
Avalanche = '43114',
BSC = '56',
ArbitrumSepolia = '421614',
Base = '8453',
BaseSepolia = '84532',
Expand Down

0 comments on commit ce7e1a8

Please sign in to comment.