Skip to content

Commit

Permalink
Merge pull request #4003 from BitGo/coinfeature-sendmany
Browse files Browse the repository at this point in the history
feat(statics): add new coinfeature for bulk transaction
  • Loading branch information
dpkjnr authored Oct 24, 2023
2 parents 1d48601 + f48e8b7 commit 3847ec5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions modules/statics/src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,11 @@ export enum CoinFeature {
* This coin supports higher limit for tx request rebuild, which is 10 by default
*/
INCREASED_TX_REQUEST_REBUILD_LIMIT = 'increased-tx-request-rebuild-limit',

/**
* This coin supports bulk transaction creation
*/
BULK_TRANSACTION = 'bulk-transaction',
}

/**
Expand Down
13 changes: 12 additions & 1 deletion modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ const BTC_FEATURES = [
CoinFeature.CUSTODY_BITGO_NEW_YORK,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_SISTER_TRUST_ONE,
CoinFeature.BULK_TRANSACTION,
];
const BTG_FEATURES = [
...UtxoCoin.DEFAULT_FEATURES,
Expand Down Expand Up @@ -145,6 +146,7 @@ const ALGO_FEATURES = [
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.MULTISIG_COLD,
CoinFeature.BULK_TRANSACTION,
];
const DOT_FEATURES = [
...AccountCoin.DEFAULT_FEATURES,
Expand Down Expand Up @@ -172,6 +174,7 @@ const HBAR_FEATURES = [
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.MULTISIG_COLD,
CoinFeature.BULK_TRANSACTION,
];
const POLYGON_FEATURES = [
...ETH_FEATURES_WITH_STAKING_AND_MMI,
Expand Down Expand Up @@ -207,7 +210,13 @@ const MATIC_FEATURES = [
CoinFeature.METAMASK_INSTITUTIONAL,
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
];
const SUI_FEATURES = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.TSS, CoinFeature.TSS_COLD, CoinFeature.STAKING];
const SUI_FEATURES = [
...AccountCoin.DEFAULT_FEATURES,
CoinFeature.TSS,
CoinFeature.TSS_COLD,
CoinFeature.STAKING,
CoinFeature.BULK_TRANSACTION,
];
const TRX_FEATURES = [
...AccountCoin.DEFAULT_FEATURES,
CoinFeature.SUPPORTS_TOKENS,
Expand All @@ -224,6 +233,7 @@ const COSMOS_SIDECHAIN_FEATURES = [
CoinFeature.COSMOS_LIKE_COINS,
CoinFeature.REBUILD_ON_CUSTODY_SIGNING,
CoinFeature.INCREASED_TX_REQUEST_REBUILD_LIMIT,
CoinFeature.BULK_TRANSACTION,
];
const GENERIC_TOKEN_FEATURES = [
CoinFeature.ACCOUNT_MODEL,
Expand Down Expand Up @@ -497,6 +507,7 @@ export const coins = CoinMap.fromCoins([
CoinFeature.CUSTODY_BITGO_NEW_YORK,
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.BULK_TRANSACTION,
]
), // we should probably refactor this into a eth() method
account(
Expand Down

0 comments on commit 3847ec5

Please sign in to comment.