Skip to content

Add SDK contract ID registry design #218

Description

@El-swaggerito

Description

Difficulty: Expert

Type: Feature

Summary

Design a contract ID registry pattern for managing known PocketPay contract addresses by network.

Current Behaviour

Consumers may hardcode contract IDs inconsistently.

Expected Behaviour

The SDK should provide a safer configuration pattern for known contract IDs.

Suggested Implementation

Create a design or implementation for network-scoped contract ID configuration and validation.

Files or Areas Likely Affected

src/config/
src/soroban/
src/vault/
docs/

Acceptance Criteria

  • Contract ID registry pattern is defined.
  • Network-specific IDs are supported.
  • Invalid IDs are rejected.
  • Documentation explains configuration.
  • Tests cover lookup and validation.

Additional Notes

Avoid hardcoding production claims if not ready.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked for GrantFox OSS contributionMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Official GrantFox campaign labeldeveloper-experienceDeveloper experience workexpertExpert difficultyfeatureFeature worksdkSDK related worksorobanSoroban smart contract work

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions