File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
modules/utxo-staking/src/coreDao Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { payments, networks } from '@bitgo/utxo-lib';
22
33// Source: https://docs.coredao.org/docs/Learn/products/btc-staking/design
44export const CORE_DAO_DEVNET_CHAIN_ID = Buffer . from ( '0458' , 'hex' ) ;
5+ export const CORE_DAO_TESTNET2_CHAIN_ID = Buffer . from ( '045a' , 'hex' ) ;
56export const CORE_DAO_TESTNET_CHAIN_ID = Buffer . from ( '045b' , 'hex' ) ;
67export const CORE_DAO_MAINNET_CHAIN_ID = Buffer . from ( '045c' , 'hex' ) ;
78export const CORE_DAO_SATOSHI_PLUS_IDENTIFIER = Buffer . from ( '5341542b' , 'hex' ) ;
@@ -81,6 +82,7 @@ export function createCoreDaoOpReturnOutputScript({
8182 if (
8283 ! (
8384 chainId . equals ( CORE_DAO_TESTNET_CHAIN_ID ) ||
85+ chainId . equals ( CORE_DAO_TESTNET2_CHAIN_ID ) ||
8486 chainId . equals ( CORE_DAO_MAINNET_CHAIN_ID ) ||
8587 chainId . equals ( CORE_DAO_DEVNET_CHAIN_ID )
8688 )
@@ -177,6 +179,7 @@ export function parseCoreDaoOpReturnOutputScript(script: Buffer): OpReturnParams
177179 ! (
178180 chainId . equals ( CORE_DAO_DEVNET_CHAIN_ID ) ||
179181 chainId . equals ( CORE_DAO_TESTNET_CHAIN_ID ) ||
182+ chainId . equals ( CORE_DAO_TESTNET2_CHAIN_ID ) ||
180183 chainId . equals ( CORE_DAO_MAINNET_CHAIN_ID )
181184 )
182185 ) {
You can’t perform that action at this time.
0 commit comments