Skip to content

Feat/add more tokens#592

Merged
Agilulfo1820 merged 2 commits intomainfrom
feat/add-more-tokens
Feb 25, 2026
Merged

Feat/add more tokens#592
Agilulfo1820 merged 2 commits intomainfrom
feat/add-more-tokens

Conversation

@Agilulfo1820
Copy link
Copy Markdown
Member

@Agilulfo1820 Agilulfo1820 commented Feb 25, 2026

Added SASS token, visible when allowCommunityTokens is set to true in the provider.
Removed USDGLO token.

Summary by CodeRabbit

  • New Features

    • Added allowCommunityTokens configuration option to control inclusion of community tokens in token lists and wallet balances
    • Enhanced token balance queries with optional parameters for more granular control
  • Updates

    • Replaced USDGLO token integration with SASS token across all network configurations
    • Updated SASS token logo to external URL source

@Agilulfo1820 Agilulfo1820 merged commit 2cd249e into main Feb 25, 2026
5 checks passed
@Agilulfo1820 Agilulfo1820 deleted the feat/add-more-tokens branch February 25, 2026 12:00
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 25, 2026

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 120e615 and a359d88.

📒 Files selected for processing (10)
  • examples/next-template/src/app/providers/VechainKitProviderWrapper.tsx
  • packages/vechain-kit/src/config/index.ts
  • packages/vechain-kit/src/config/mainnet.ts
  • packages/vechain-kit/src/config/solo.ts
  • packages/vechain-kit/src/config/testnet.ts
  • packages/vechain-kit/src/hooks/api/wallet/useGetErc20Balance.ts
  • packages/vechain-kit/src/hooks/api/wallet/useTokenBalances.ts
  • packages/vechain-kit/src/hooks/api/wallet/useTokenPrices.ts
  • packages/vechain-kit/src/providers/VeChainKitProvider.tsx
  • packages/vechain-kit/src/utils/constants.tsx

📝 Walkthrough

Walkthrough

This PR replaces the USDGLO (GloDollar) token with a new SASS community token across the VeChain Kit. Changes include renaming the contract address configuration field from gloDollarContractAddress to sassContractAddress, introducing an allowCommunityTokens feature flag to conditionally enable SASS token support, and updating token balance and pricing logic accordingly. The logo reference is also updated to point to a remote SASS token image.

Changes

Cohort / File(s) Summary
Configuration
packages/vechain-kit/src/config/index.ts, packages/vechain-kit/src/config/mainnet.ts, packages/vechain-kit/src/config/solo.ts, packages/vechain-kit/src/config/testnet.ts
Renamed gloDollarContractAddress field to sassContractAddress across all configuration files. Updated testnet address value; mainnet and solo retain placeholder values.
Provider Setup
packages/vechain-kit/src/providers/VeChainKitProvider.tsx, examples/next-template/src/app/providers/VechainKitProviderWrapper.tsx
Added allowCommunityTokens prop to VeChainKitProvider and propagated it through context. Wrapper template now passes allowCommunityTokens={true} and commented out network type configuration.
Token Hooks
packages/vechain-kit/src/hooks/api/wallet/useGetErc20Balance.ts, packages/vechain-kit/src/hooks/api/wallet/useTokenBalances.ts, packages/vechain-kit/src/hooks/api/wallet/useTokenPrices.ts
Added UseGetErc20BalanceOptions type with enabled flag to balance hook. Updated token balance logic to conditionally include SASS instead of USDGLO based on allowCommunityTokens. Modified price mapping and dependencies to use SASS contract address.
Constants
packages/vechain-kit/src/utils/constants.tsx
Replaced USDGLO logo reference with SASS token logo, changing from local static asset to remote S3-hosted URL.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Possibly related PRs

Suggested reviewers

  • victorkl400
  • mikeredmond

Poem

🐰 The tokens hop and dance anew,
SASS arrives in morning dew,
GloDollar fades, but code lives on,
Community flags greet the dawn! 🌟

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/add-more-tokens

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant