Skip to content

Conversation

@rv-bitgo
Copy link
Contributor

@rv-bitgo rv-bitgo commented Dec 10, 2024

A slightly better approach to managing coins.ts file.

coins.ts has already ~20,000 lines of code config which is bound to only grow with time if we keep adding new tokens/coins to it on every onboarding. This comes with the pro of easily putting all tokens in one place but comes at a cost of easily messing up the entire flow by a single mistake.

I propose any new onboarded coins be put into smaller files that can be unique to their assets (erc20, sol and so on.).
Please check this out and let me know what do you guys think of this structure and any potential issues that might come with this approach.

@rv-bitgo rv-bitgo requested a review from a team December 10, 2024 12:52
@rv-bitgo rv-bitgo requested review from a team as code owners December 10, 2024 12:52
@rv-bitgo rv-bitgo requested review from a team and sachushaji December 10, 2024 13:45
lcovar
lcovar previously approved these changes Dec 10, 2024
@rv-bitgo rv-bitgo force-pushed the WIN-3948-optimized-onboarding-of-tokens branch from ac0cf38 to a39c131 Compare December 11, 2024 07:06
@rv-bitgo rv-bitgo dismissed stale reviews from lcovar and parasgarg-bitgo via ab7d58f December 11, 2024 07:19
WIN-3948

feat(statics): add tokens for onboarding

WIN-3948

feat(statics): added batch of tokens for onboarding

WIN-3948

fix(statics): fix syntax

WIN-3948

feat(statics): add tokens for onboarding

WIN-3948

TICKET: WIN-3948

feat(statics): onboard new tokens - optimized

WIN-3948

TICKET: WIN-3948

fix(statics): fix the ts syntax and import

WIN-3948

TICKET: WIN-3948

fix: fix the decimal unit and name of tokens as per ticket

WIN-3948

TICKET: WIN-3948
@rv-bitgo rv-bitgo force-pushed the WIN-3948-optimized-onboarding-of-tokens branch from ab7d58f to d808dab Compare December 11, 2024 07:22
@rv-bitgo rv-bitgo merged commit 8b3c70e into master Dec 11, 2024
6 checks passed
@rv-bitgo rv-bitgo deleted the WIN-3948-optimized-onboarding-of-tokens branch December 11, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants