Skip to content

Commit 2703464

Browse files
Merge pull request #5251 from BitGo/BTC-1674
chore(utxo-staking): add tbtc4 support
2 parents e642c7b + 48bfcf8 commit 2703464

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

modules/utxo-staking/src/coreDao/opReturn.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
44
export const CORE_DAO_DEVNET_CHAIN_ID = Buffer.from('0458', 'hex');
5+
export const CORE_DAO_TESTNET2_CHAIN_ID = Buffer.from('045a', 'hex');
56
export const CORE_DAO_TESTNET_CHAIN_ID = Buffer.from('045b', 'hex');
67
export const CORE_DAO_MAINNET_CHAIN_ID = Buffer.from('045c', 'hex');
78
export 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
) {

0 commit comments

Comments
 (0)