Skip to content

Conversation

@MohammedRyaan786
Copy link
Contributor

TICKET: COIN-4915

@MohammedRyaan786 MohammedRyaan786 force-pushed the COIN-4916-sdk-add-ylds-token-support branch 7 times, most recently from 5544f18 to f87f706 Compare July 24, 2025 20:22
@MohammedRyaan786 MohammedRyaan786 requested a review from Copilot July 24, 2025 20:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Adds Cosmos token support to the coin factory to enable creation and management of Cosmos-based tokens. This enhancement extends the existing token framework to support the Cosmos ecosystem.

  • Adds CosmosTokenConfig type to the token configuration system
  • Integrates CosmosToken class into the coin factory registration and constructor lookup
  • Updates Cosmos sidechain features to include token support

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
modules/statics/src/tokenConfig.ts Adds CosmosTokenConfig to union types and token creation logic
modules/statics/src/coins.ts Implements Cosmos token creation logic in createToken function
modules/statics/src/coinFeatures.ts Adds SUPPORTS_TOKENS feature to Cosmos sidechain capabilities
modules/bitgo/test/browser/browser.spec.ts Updates test expectations to include CosmosToken
modules/bitgo/src/v2/coins/index.ts Exports CosmosToken class
modules/bitgo/src/v2/coinFactory.ts Registers Cosmos token constructors and adds token constructor lookup
modules/bitgo/package.json Adds abstract-cosmos dependency
modules/abstract-cosmos/src/cosmosToken.ts Makes token configurations parameter configurable

@MohammedRyaan786 MohammedRyaan786 marked this pull request as ready for review July 25, 2025 05:33
@MohammedRyaan786 MohammedRyaan786 requested review from a team as code owners July 25, 2025 05:33
@MohammedRyaan786 MohammedRyaan786 marked this pull request as draft July 25, 2025 06:32
@MohammedRyaan786 MohammedRyaan786 force-pushed the COIN-4916-sdk-add-ylds-token-support branch from f87f706 to 5245c50 Compare July 25, 2025 06:34
@MohammedRyaan786 MohammedRyaan786 marked this pull request as ready for review July 25, 2025 07:17
Copy link
Contributor

@veetragjain veetragjain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MohammedRyaan786 MohammedRyaan786 merged commit fc1dc8a into master Jul 25, 2025
12 checks passed
case 'near':
case 'tnear':
return Nep141Token.createTokenConstructor(tokenConfig as Nep141TokenConfig);
case 'asi':
Copy link
Contributor

@baltiyal baltiyal Jul 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't add all cosmos coins.
Remove all the coins which don't support tokens currently.
This is just increasing lines of code and can also confuse someone.

token.isToken, // isToken
token.kind // kind
);
case 'asi':
Copy link
Contributor

@baltiyal baltiyal Jul 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please don't add all cosmos coins.
Remove all the coins which don't support tokens currently.
This is just increasing lines of code and can also confuse someone.

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.

5 participants