Skip to content

Commit 586ba54

Browse files
authored
Merge pull request #9105 from BitGo/CHALO-701
feat(sdk-coin-canton): added coinfeature for byov validators
2 parents e08bd8c + 7646f2d commit 586ba54

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ import {
9292
BERA_FEATURES,
9393
BSC_FEATURES,
9494
CANTON_FEATURES,
95+
TCANTON_FEATURES,
9596
CELO_FEATURES,
9697
COREDAO_FEATURES,
9798
COREUM_FEATURES,
@@ -3822,7 +3823,7 @@ export const allCoinsAndTokens = [
38223823
'Testnet Canton',
38233824
Networks.test.canton,
38243825
UnderlyingAsset.CANTON,
3825-
[...CANTON_FEATURES, CoinFeature.UNSPENT_MODEL, CoinFeature.MERGE_UTXOS, CoinFeature.FANOUT_UTXOS],
3826+
TCANTON_FEATURES,
38263827
KeyCurve.Ed25519
38273828
),
38283829
gasTankAccount(

modules/statics/src/base.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,11 @@ export enum CoinFeature {
591591
* This token is a receipt token, representing a claim on an underlying asset
592592
*/
593593
RECEIPT_TOKEN = 'receipt-token',
594+
595+
/**
596+
* This coin supports bring-your-own-validator (BYOV) staking
597+
*/
598+
BYOV_VALIDATOR = 'byov-validator',
594599
}
595600

596601
/**

modules/statics/src/coinFeatures.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,14 @@ export const CANTON_TOKEN_FEATURES = [
806806
CoinFeature.ALPHANUMERIC_MEMO_ID,
807807
];
808808

809+
export const TCANTON_FEATURES = [
810+
...CANTON_FEATURES,
811+
CoinFeature.UNSPENT_MODEL,
812+
CoinFeature.MERGE_UTXOS,
813+
CoinFeature.FANOUT_UTXOS,
814+
CoinFeature.BYOV_VALIDATOR,
815+
];
816+
809817
export const ERC7984_TOKEN_FEATURES = [
810818
...ACCOUNT_COIN_DEFAULT_FEATURES,
811819
CoinFeature.BULK_TRANSACTION,

0 commit comments

Comments
 (0)