Skip to content
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

Can Borsh args be added? #450

Open
MagicGordon opened this issue Feb 14, 2025 · 1 comment
Open

Can Borsh args be added? #450

MagicGordon opened this issue Feb 14, 2025 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@MagicGordon
Copy link

MagicGordon commented Feb 14, 2025

@frol
Copy link
Collaborator

frol commented Feb 15, 2025

@MagicGordon Borsh requires the schema to serialize data and even if we will rely on NEAR ABI being provided through the embedded __contract_abi(), the data would still need to be provided in some form - JSON? That would be another layer of cumbersomeness to translate JSON -> Borsh.

There are base64-args and file-args options that you can employ to pass binary data (Borsh-serialized data). You can write a small helper CLI to prepare the args and then call NEAR CLI with those.

Advances on the NEAR ABI side are quite hard and take a ton of time, and don't yield wider NEAR adoption, so these tasks are not highly prioritized, but I will keep this issue open to track the demand and ideas on what could be a low-hanging fruit here.

@frol frol moved this from NEW❗ to Backlog 🥶 in DevTools Feb 15, 2025
@frol frol added enhancement New feature or request help wanted Extra attention is needed labels Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: Backlog 🥶
Development

No branches or pull requests

2 participants