Skip to content

feat: added ft_transfer_call support in tokens subcommand#576

Merged
frol merged 1 commit into
mainfrom
feat/ft-transfer-call-support
Mar 18, 2026
Merged

feat: added ft_transfer_call support in tokens subcommand#576
frol merged 1 commit into
mainfrom
feat/ft-transfer-call-support

Conversation

@frolvanya

@frolvanya frolvanya commented Mar 18, 2026

Copy link
Copy Markdown
Contributor
  1. with msg-args
image https://testnet.nearblocks.io/txns/EZsrZfEES6DnTGYSwrA6huAKfTdsX2GBTYC5qGSgbcpR
  1. with msg-file
image https://testnet.nearblocks.io/txns/8HuZMMq8MdKTwA29BEDFTHYJZ97L6Ze1iUAFAWDdSqMW

closes #575

@frolvanya frolvanya requested a review from a team as a code owner March 18, 2026 05:01
Copilot AI review requested due to automatic review settings March 18, 2026 05:01
@github-project-automation github-project-automation Bot moved this to NEW❗ in DevTools Mar 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new near tokens ... send-ft-call flow to support NEP-141 ft_transfer_call, so users no longer need to go through the generic near contract call-function as-transaction path for common FT transfer-call use cases (e.g., bridging).

Changes:

  • Introduces FtTransferCall args type and a new tokens send-ft-call command that builds an ft_transfer_call transaction.
  • Adds interactive/CLI parameter flow for amount, memo, gas/deposit, and msg (direct string or file-based input).
  • Reuses existing FT balance lookup helper by making it accessible to the new command.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/types/ft_properties.rs Adds FtTransferCall struct for (de)serializing ft_transfer_call arguments.
src/commands/tokens/send_ft_call/mod.rs Implements prepopulated transaction creation for ft_transfer_call (including optional storage deposit registration).
src/commands/tokens/send_ft_call/amount_ft.rs Implements interactive/CLI parameter gathering (amount, memo, gas/deposit, and msg via args/file) and post-transaction messaging.
src/commands/tokens/send_ft/mod.rs Exposes get_ft_balance_for_account for reuse by send-ft-call.
src/commands/tokens/mod.rs Registers the new send-ft-call subcommand in tokens actions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/commands/tokens/send_ft_call/amount_ft.rs

@frol frol left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@race-of-sloths score 5

Looks helpful to me

@frol frol merged commit 7fc4433 into main Mar 18, 2026
18 checks passed
@frol frol deleted the feat/ft-transfer-call-support branch March 18, 2026 15:08
@github-project-automation github-project-automation Bot moved this from NEW❗ to Shipped 🚀 in DevTools Mar 18, 2026
@race-of-sloths

race-of-sloths commented Mar 18, 2026

Copy link
Copy Markdown

@frolvanya Thank you for your contribution! Your pull request is now a part of the Race of Sloths!
Weekly streak is on the road, smart strategy! Secure your streak with another PR!

Shows inviting banner with latest news.

Shows profile picture for the author of the PR

Current status: executed
Reviewer Score
@frol 5

Your contribution is much appreciated with a final score of 5!
You have received 74 (50 base + 20 weekly bonus + 5% lifetime bonus) Sloth points for this contribution

@frol received 25 Sloth Points for reviewing and scoring this pull request.

Another weekly streak completed, well done @frolvanya! To keep your weekly streak and get another bonus make pull request next week! Looking forward to see you in race-of-sloths

What is the Race of Sloths

Race of Sloths is a friendly competition where you can participate in challenges and compete with other open-source contributors within your normal workflow

For contributors:

  • Tag @race-of-sloths inside your pull requests
  • Wait for the maintainer to review and score your pull request
  • Check out your position in the Leaderboard
  • Keep weekly and monthly streaks to reach higher positions
  • Boast your contributions with a dynamic picture of your Profile

For maintainers:

  • Score pull requests that participate in the Race of Sloths and receive a reward
  • Engage contributors with fair scoring and fast responses so they keep their streaks
  • Promote the Race to the point where the Race starts promoting you
  • Grow the community of your contributors

Feel free to check our website for additional details!

Bot commands
  • For contributors
    • Include a PR: @race-of-sloths include to enter the Race with your PR
  • For maintainers:
    • Invite contributor @race-of-sloths invite to invite the contributor to participate in a race or include it, if it's already a runner.
    • Assign points: @race-of-sloths score [1/2/3/5/8/13] to award points based on your assessment.
    • Reject this PR: @race-of-sloths exclude to send this PR back to the drawing board.
    • Exclude repo: @race-of-sloths pause to stop bot activity in this repo until @race-of-sloths unpause command is called

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Shipped 🚀

Development

Successfully merging this pull request may close these issues.

[Task] Support for ft_transfer_call in tokens subcommand

5 participants