-
Notifications
You must be signed in to change notification settings - Fork 39
feat(frontend): Service to call the transfer method of EXT token canister
#10627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(frontend): Service to call the transfer method of EXT token canister
#10627
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a new API service function to call the transfer method of the EXT v2 token canister, enabling NFT transfers within a collection. The implementation follows existing patterns in the codebase for handling identity validation and parameter ordering.
Key changes:
- Implements the
transferAPI function that wraps the canister'stransfermethod - Adds comprehensive test coverage including success and error cases
- Improves JSDoc consistency by reordering parameters in existing documentation
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| src/frontend/src/icp/api/ext-v2-token.api.ts | Adds the transfer function to enable NFT transfers; also fixes JSDoc parameter ordering in balance and getTokensByOwner |
| src/frontend/src/tests/icp/api/ext-v2-token.api.spec.ts | Adds test suite for the new transfer function covering success and nullish identity error cases |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Motivation
Like the other methods, we create an API service to call method
transferofExtV2TokenCanister.