Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(statics): add new coinfeature for bulk transaction #4003

Merged
merged 1 commit into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading