Skip to content
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
12 changes: 7 additions & 5 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ export const allCoinsAndTokens = [
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.BULK_TRANSACTION,
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_ONCHAIN,
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
Expand Down Expand Up @@ -371,6 +372,7 @@ export const allCoinsAndTokens = [
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.BULK_TRANSACTION,
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_ONCHAIN,
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
Expand Down Expand Up @@ -2025,7 +2027,7 @@ export const allCoinsAndTokens = [
8,
UnderlyingAsset.APT,
BaseUnit.APT,
[...APT_FEATURES, CoinFeature.STAKING],
[...APT_FEATURES, CoinFeature.STAKING, CoinFeature.CUSTODY_BITGO_KOREA],
KeyCurve.Ed25519,
80,
200
Expand All @@ -2038,7 +2040,7 @@ export const allCoinsAndTokens = [
8,
UnderlyingAsset.APT,
BaseUnit.APT,
[...APT_FEATURES, CoinFeature.STAKING],
[...APT_FEATURES, CoinFeature.STAKING, CoinFeature.CUSTODY_BITGO_KOREA],
KeyCurve.Ed25519,
80,
200
Expand Down Expand Up @@ -4027,7 +4029,7 @@ export const allCoinsAndTokens = [
6,
'TEkxiTehnzSmSe2XqrBj4w32RUN966rdz8',
UnderlyingAsset.USDC,
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
),
tronToken(
'f96fda99-cf5a-4ac4-885e-fa95292a7135',
Expand All @@ -4036,7 +4038,7 @@ export const allCoinsAndTokens = [
6,
'TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t',
UnderlyingAsset['trx:usdt'],
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
),
tronToken(
'77fe25dc-7871-4d9d-9cc0-2e5cba6250ff',
Expand Down Expand Up @@ -4313,7 +4315,7 @@ export const allCoinsAndTokens = [
6,
'TSdZwNqpHofzP6BsBKGQUWdBeJphLmF6id',
UnderlyingAsset.USDC,
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.STABLECOIN]
[...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
),
ttronToken(
'85a60a5a-88e3-45df-9e2c-dc6161b4c6b1',
Expand Down
11 changes: 9 additions & 2 deletions modules/statics/src/coinFeatures.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export const ACCOUNT_COIN_DEFAULT_FEATURES = [
CoinFeature.CUSTODY_BITGO_MENA_FZE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_INDIA,
Expand Down Expand Up @@ -61,6 +60,7 @@ export const ETC_FEATURES = [
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_NEW_YORK,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.MULTISIG_COLD,
CoinFeature.MULTISIG,
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
Expand All @@ -81,6 +81,7 @@ export const AVAXC_FEATURES = [
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.MULTISIG_COLD,
CoinFeature.MULTISIG,
CoinFeature.EIP1559,
Expand Down Expand Up @@ -156,6 +157,7 @@ export const XRP_FEATURES = [
CoinFeature.CUSTODY_BITGO_NEW_YORK,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.MULTISIG_COLD,
CoinFeature.MULTISIG,
];
Expand Down Expand Up @@ -198,6 +200,7 @@ export const ADA_FEATURES = [
CoinFeature.SUPPORTS_TOKENS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
];
export const ADA_TOKEN_FEATURES = [
...ACCOUNT_COIN_DEFAULT_FEATURES,
Expand Down Expand Up @@ -279,6 +282,7 @@ export const SOL_FEATURES = [
CoinFeature.STAKING,
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.BULK_TRANSACTION,
CoinFeature.WALLET_CONNECT_DEFI,
];
Expand All @@ -304,6 +308,7 @@ export const BSC_FEATURES = [
CoinFeature.USES_NON_PACKED_ENCODING_FOR_TXDATA,
CoinFeature.STUCK_TRANSACTION_MANAGEMENT_TSS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.BULK_TRANSACTION,
CoinFeature.SHARED_EVM_MESSAGE_SIGNING,
CoinFeature.ERC20_BULK_TRANSACTION,
Expand Down Expand Up @@ -398,6 +403,7 @@ export const SUI_FEATURES = [
CoinFeature.SUPPORTS_TOKENS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BULK_TRANSACTION,
CoinFeature.ALLOWS_NEGATIVE_FEE,
];
Expand All @@ -421,6 +427,7 @@ export const TRX_FEATURES = [
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.MULTISIG_COLD,
CoinFeature.MULTISIG,
CoinFeature.STAKING,
Expand Down Expand Up @@ -478,6 +485,7 @@ export const TON_FEATURES = [
CoinFeature.REBUILD_ON_CUSTODY_SIGNING,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.ALPHANUMERIC_MEMO_ID,
CoinFeature.SUPPORTS_TOKENS,
];
Expand Down Expand Up @@ -746,7 +754,6 @@ export const CANTON_FEATURES = [
CoinFeature.CUSTODY_BITGO_MENA_FZE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.SUPPORTS_ONE_STEP_DEPOSIT,
Expand Down
12 changes: 9 additions & 3 deletions modules/statics/src/coins/erc20Coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6466,6 +6466,7 @@ export const erc20Coins = [
...TOKEN_FEATURES_WITH_SWISS,
CoinFeature.CUSTODY_BITGO_NEW_YORK,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.STABLECOIN,
]
),
Expand Down Expand Up @@ -6494,7 +6495,12 @@ export const erc20Coins = [
6,
'0xdac17f958d2ee523a2206206994597c13d831ec7',
UnderlyingAsset.USDT,
[...TOKEN_FEATURES_WITH_SWISS, CoinFeature.CUSTODY_BITGO_FRANKFURT, CoinFeature.STABLECOIN]
[
...TOKEN_FEATURES_WITH_SWISS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.STABLECOIN,
]
),
erc20(
'7eab6610-5fa7-4a92-8317-c4d143cd58c0',
Expand Down Expand Up @@ -13111,7 +13117,7 @@ export const erc20Coins = [
6,
'0x07865c6e87b9f70255377e024ace6630c1eaa37f',
UnderlyingAsset.TUSDC,
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.STABLECOIN]
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
),
terc20(
'891e4428-82b1-4970-8bad-a2cece698066',
Expand All @@ -13120,7 +13126,7 @@ export const erc20Coins = [
6,
'0xc2c527c0cacf457746bd31b2a698fe89de2b6d49',
UnderlyingAsset.TUSDT,
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.STABLECOIN]
[...ACCOUNT_COIN_DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
),
terc20(
'6b43e702-d0ba-44c8-af93-c10cd9c2e730',
Expand Down
8 changes: 4 additions & 4 deletions modules/statics/src/coins/solTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ export const solTokens = [
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // https://explorer.solana.com/address/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
UnderlyingAsset['sol:usdc'],
[...SOL_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.STABLECOIN]
[...SOL_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
),
solToken(
'2a41c38d-c79a-4734-ae3a-c60e4d1f2d99',
Expand Down Expand Up @@ -232,7 +232,7 @@ export const solTokens = [
'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB', // https://explorer.solana.com/address/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB
'Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB',
UnderlyingAsset['sol:usdt'],
[...SOL_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.STABLECOIN]
[...SOL_TOKEN_FEATURES_WITH_FRANKFURT, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
),
solToken(
'4d631f91-02e2-4b89-af01-7b42cb61b1bb',
Expand Down Expand Up @@ -3420,7 +3420,7 @@ export const solTokens = [
'F4uLeXJoFz3hw13MposuwaQbMcZbCjqvEGPPeRRB1Byf',
'F4uLeXJoFz3hw13MposuwaQbMcZbCjqvEGPPeRRB1Byf',
UnderlyingAsset['tsol:usdc'],
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN]
[...SOL_TOKEN_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
),
tsolToken(
'6dcb8ff8-be59-471f-9e57-c3b68735d71e',
Expand Down Expand Up @@ -3470,7 +3470,7 @@ export const solTokens = [
'9cgpBeNZ2HnLda7NWaaU1i3NyTstk2c4zCMUcoAGsi9C',
'9cgpBeNZ2HnLda7NWaaU1i3NyTstk2c4zCMUcoAGsi9C',
UnderlyingAsset['tsol:usdt'],
[...SOL_TOKEN_FEATURES, CoinFeature.STABLECOIN]
[...SOL_TOKEN_FEATURES, CoinFeature.CUSTODY_BITGO_KOREA, CoinFeature.STABLECOIN]
),
tsolToken(
'7ad7512f-90ca-44e3-9238-ae78c1a3e57d',
Expand Down
14 changes: 2 additions & 12 deletions modules/statics/test/unit/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
],
},
etc: {
Expand Down Expand Up @@ -508,6 +509,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_SWITZERLAND,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.BULK_TRANSACTION,
],
},
Expand Down Expand Up @@ -579,7 +581,6 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
],
},
Expand All @@ -590,7 +591,6 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_FRANKFURT,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
],
},
Expand All @@ -606,7 +606,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
Expand All @@ -619,7 +618,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.TRANSACTION_DATA,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY,
],
},
Expand All @@ -631,7 +629,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.TRANSACTION_DATA,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY,
],
},
Expand All @@ -644,7 +641,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
Expand All @@ -659,7 +655,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
Expand All @@ -673,7 +668,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
Expand All @@ -688,7 +682,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
Expand All @@ -702,7 +695,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
Expand All @@ -716,7 +708,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
Expand All @@ -730,7 +721,6 @@ const coinsWithExcludedFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY,
CoinFeature.CUSTODY_BITGO_TRUST,
CoinFeature.CUSTODY_BITGO_INDIA,
CoinFeature.CUSTODY_BITGO_KOREA,
CoinFeature.CUSTODY_BITGO_EUROPE_APS,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
Expand Down