Skip to content

Commit

Permalink
Merge pull request #5255 from BitGo/COIN-2519-sdk
Browse files Browse the repository at this point in the history
feat(statics): ungate 7 top priority assets for bitstamp
  • Loading branch information
evanzbitgo authored Dec 11, 2024
2 parents 4d70af6 + b314ad8 commit 7e4f921
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 8 deletions.
24 changes: 17 additions & 7 deletions modules/statics/src/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ const DOT_FEATURES = [
CoinFeature.STAKING,
CoinFeature.EXPIRING_TRANSACTIONS,
CoinFeature.REBUILD_ON_CUSTODY_SIGNING,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
];
const EOS_FEATURES = [
...AccountCoin.DEFAULT_FEATURES,
Expand Down Expand Up @@ -230,6 +231,7 @@ const NEAR_FEATURES = [
CoinFeature.TSS_COLD,
CoinFeature.STAKING,
CoinFeature.REBUILD_ON_CUSTODY_SIGNING,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
];
const MATIC_FEATURES = [
...AccountCoin.DEFAULT_FEATURES,
Expand Down Expand Up @@ -313,9 +315,13 @@ const INJECTIVE_FEATURES = [
const COREUM_FEATURES = [...COSMOS_SIDECHAIN_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
const SEI_FEATURES = [...COSMOS_SIDECHAIN_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
const TOKEN_FEATURES_WITH_SWISS = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_SWITZERLAND];
const TOKEN_FEATURES_WITH_NY = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_NEW_YORK];
const TOKEN_FEATURES_WITH_NY_GERMANY = [...TOKEN_FEATURES_WITH_NY, CoinFeature.CUSTODY_BITGO_GERMANY];
const TOKEN_FEATURES_WITH_FRANKFURT = [...AccountCoin.DEFAULT_FEATURES, CoinFeature.CUSTODY_BITGO_FRANKFURT];
const TOKEN_FEATURES_WITH_NY_GERMANY_FRANKFURT = [
...AccountCoin.DEFAULT_FEATURES,
CoinFeature.CUSTODY_BITGO_NEW_YORK,
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
];
const GENERIC_TOKEN_FEATURES = [
CoinFeature.ACCOUNT_MODEL,
CoinFeature.REQUIRES_BIG_NUMBER,
Expand Down Expand Up @@ -4474,7 +4480,8 @@ export const coins = CoinMap.fromCoins([
'The Graph',
18,
'0xc944e90c64b2c07662a292be6244bdf05cda44a7',
UnderlyingAsset.GRT
UnderlyingAsset.GRT,
ETH_FEATURES_WITH_FRANKFURT
),
erc20(
'b9a52473-f4a9-491f-a59d-e642f87299ef',
Expand Down Expand Up @@ -5102,7 +5109,8 @@ export const coins = CoinMap.fromCoins([
'ChainLink',
18,
'0x514910771af9ca656af840dff83e8264ecf986ca',
UnderlyingAsset.LINK
UnderlyingAsset.LINK,
ETH_FEATURES_WITH_FRANKFURT
),
erc20(
'ca72e22a-8fd4-4f17-90f0-c44987be9dcd',
Expand Down Expand Up @@ -6767,7 +6775,8 @@ export const coins = CoinMap.fromCoins([
'Sand',
18,
'0x3845badade8e6dff049820680d1f14bd3903a5d0',
UnderlyingAsset.SAND
UnderlyingAsset.SAND,
ETH_FEATURES_WITH_FRANKFURT
),
erc20(
'2de0ecf5-f1ad-410f-900d-1843755e4b49',
Expand Down Expand Up @@ -6856,7 +6865,7 @@ export const coins = CoinMap.fromCoins([
18,
'0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce',
UnderlyingAsset.SHIB,
TOKEN_FEATURES_WITH_NY_GERMANY
TOKEN_FEATURES_WITH_NY_GERMANY_FRANKFURT
),
erc20(
'e25ca1cf-b0f4-42a0-9d7f-42b94a1e9738',
Expand Down Expand Up @@ -7578,7 +7587,8 @@ export const coins = CoinMap.fromCoins([
'Uniswap Token',
18,
'0x1f9840a85d5af5bf1d1762f925bdaddc4201f984',
UnderlyingAsset.UNI
UnderlyingAsset.UNI,
ETH_FEATURES_WITH_FRANKFURT
),
erc20(
'c0210f3b-f053-4a5b-b375-2abe8c013e29',
Expand Down
16 changes: 15 additions & 1 deletion modules/statics/test/unit/coins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_NEW_YORK,
],
},
dot: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
eos: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
eth: {
features: [
Expand Down Expand Up @@ -105,6 +106,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
},
dash: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
matic: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
near: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
weth: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
eigen: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
'reth-rocket': { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
Expand Down Expand Up @@ -154,7 +156,13 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
},
shib: { features: [CoinFeature.CUSTODY_BITGO_NEW_YORK, CoinFeature.CUSTODY_BITGO_GERMANY] },
shib: {
features: [
CoinFeature.CUSTODY_BITGO_NEW_YORK,
CoinFeature.CUSTODY_BITGO_GERMANY,
CoinFeature.CUSTODY_BITGO_FRANKFURT,
],
},
injv2: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
moca: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
wbtc: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
Expand Down Expand Up @@ -226,6 +234,10 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
rly: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
atom: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
dfi: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
grt: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
link: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
sand: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
uni: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
tia: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
bsc: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },

Expand Down Expand Up @@ -315,6 +327,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
tcelo: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
tcoreum: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
tdoge: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
tdot: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
teos: { features: [CoinFeature.CUSTODY_BITGO_GERMANY, CoinFeature.CUSTODY_BITGO_FRANKFURT] },
gteth: {
features: [
Expand Down Expand Up @@ -351,6 +364,7 @@ const custodyFeatures: Record<string, { features: CoinFeature[] }> = {
],
},
tmatic: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
tnear: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
tweth: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
tinjective: { features: [CoinFeature.CUSTODY_BITGO_SWITZERLAND] },
topeth: { features: [CoinFeature.CUSTODY_BITGO_FRANKFURT] },
Expand Down

0 comments on commit 7e4f921

Please sign in to comment.