Skip to content

Implement Asset#329

Closed
ISTIFANUS-N wants to merge 15 commits intoDistinctCodes:mainfrom
ISTIFANUS-N:ImplementAsset
Closed

Implement Asset#329
ISTIFANUS-N wants to merge 15 commits intoDistinctCodes:mainfrom
ISTIFANUS-N:ImplementAsset

Conversation

@ISTIFANUS-N
Copy link
Contributor

Extend Asset Contract with Tokenization Support

Why:
To support Pro/Enterprise plans, assets need to be tokenizable on the Stellar network. This requires extending the existing asset.rs contract to link assets with a Stellar token ID.

Scope / Changes:

  • Added tokenize_asset(asset_id: BytesN<32>, token_id: BytesN<32>) function.
  • Restricted tokenization to the contract admin (set during initialize).
  • Updated Asset struct to include a stellar_token_id field.
  • Integrated with errors.rs for error handling (AssetNotFound, Unauthorized, etc.).
  • Added tests to cover tokenization logic and access control.
  • Documented the tokenization process.

Acceptance Criteria:

  • ✅ Only the admin can tokenize assets.
  • ✅ Tokenization updates stellar_token_id in the Asset struct.
  • ✅ Tests confirm tokenization works and unauthorized attempts fail.
  • ✅ Contract compiles and runs without errors.

closes #247

@vercel
Copy link

vercel bot commented Oct 2, 2025

@ISTIFANUS-N is attempting to deploy a commit to the naijabuz's projects Team on Vercel.

A member of the Team first needs to authorize it.

@truthixify
Copy link
Collaborator

@ISTIFANUS-N

fix falling CI and resolve conflicts

@ISTIFANUS-N
Copy link
Contributor Author

@truthixify

@truthixify
Copy link
Collaborator

@ISTIFANUS-N

As you can see the CI is failing, please fix failing CI and your PR will be reviewed.

ParthSinghPS and others added 14 commits October 3, 2025 11:05
- Set up QueryClientProvider with Providers component
- Create centralized mutation keys in lib/query/keys.ts
- Implement useRegisterMutation and useLoginMutation hooks
- Add comprehensive TypeScript types for auth flows
- Configure API client with normalized error handling
- Enable React Query DevTools for development
- Update root layout to include query provider
- Add Breadcrumb component in components/ui/Breadcrumb.tsx
- Accept array of {label, href} items as props
- Render links for all except last item (plain text)
- Use Tailwind classes (flex, gap-2, text-sm)
- Add example usage demonstrations
- Component is reusable across Dashboard, Profile, and other pages

Closes DistinctCodes#316
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.

[CONTRACT] Implement Asset Tokenization in Asset Contract

10 participants