Skip to content

Support contractPackageHash for CsprTrade URLs#43

Merged
Comp0te merged 1 commit into
masterfrom
feat/WALLET-1298-cspr-trade-token-details-url
Jun 11, 2026
Merged

Support contractPackageHash for CsprTrade URLs#43
Comp0te merged 1 commit into
masterfrom
feat/WALLET-1298-cspr-trade-token-details-url

Conversation

@ost-ptk

@ost-ptk ost-ptk commented Jun 9, 2026

Copy link
Copy Markdown
Member

Description

Added support for contractPackageHash in CsprTrade URLs. Updated getMarketDataProviderUrl in common.ts to include contractPackageHash for token-specific URL generation. Enhanced DTOs to incorporate contractPackageHash where appropriate and added tests to verify behavior.

Motivation

This change enables token-specific URL generation for CsprTrade by supporting contractPackageHash. This improves the flexibility of token operations.

Related issues

Notes for reviewers

Please check the added tests, especially the scenarios with and without contractPackageHash. Ensure no unintended side effects are introduced.


  • Commits are signed off (DCO)
  • Tests added or updated where applicable

- Updated common.ts to include `contractPackageHash` in `getMarketDataProviderUrl` for token-specific URLs
- Enhanced DTOs to pass `contractPackageHash` where applicable
- Added tests to validate behavior with and without `contractPackageHash`
@ost-ptk ost-ptk requested a review from Comp0te June 9, 2026 10:54
@Comp0te Comp0te merged commit 5c9ebbd into master Jun 11, 2026
4 checks passed
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.

2 participants