Repository navigation
Conversation
quantus near contract call-function as-read-only|as-transaction copies the near-cli-rs sentence word for word (json-args, prepaid-gas, attached-deposit, sign-as, network-config) with sign-with-wallet <WALLET> in place of sign-with-keychain and display as the offline dry run. Any contract method is reachable from an ML-DSA-65 wallet without a dedicated command. The DAO call submitter becomes submit_function_call and is shared. Network defaults move to FastNear (rpc.*.near.org is deprecated and rate-limits) and network-config also accepts an RPC URL.
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
quantus near contract call-function as-read-only <CONTRACT> <METHOD> json-args <ARGS> network-config <NET> nowquantus near contract call-function as-transaction <CONTRACT> <METHOD> json-args <ARGS> prepaid-gas '30 Tgas' attached-deposit '1 yoctoNEAR' sign-as <ACCOUNT> network-config <NET> sign-with-wallet <WALLET> send|displayThe grammar is near-cli-rs's own, copied word for word, so a script written for one runs on the other with
sign-with-keychainswapped forsign-with-wallet <WALLET>.displayprints the decoded transaction and the equivalent near-cli-rs line without loading the wallet or touching the network. Amounts use near-cli's unit strings;sign-with-wallettakes--password-filefor scripting.Any contract method (storage_deposit, ft_transfer_call, Rhea DCL calls, …) is now reachable from an ML-DSA-65 wallet without a dedicated command.
submit_dao_callgeneralised tosubmit_function_call, shared with the DAO commands.rpc.mainnet.fastnear.com,test.rpc.fastnear.com);rpc.*.near.orgis deprecated and rate-limits.network-config/--networkalso accept an RPC URL.Testing
cargo test --lib near: 29 passed (6 new: sentence parsing, step order enforcement, units incl. zero deposit, near-cli line rendering, JSON validation). Clippy clean.as-read-only:get_metadataondclv2.ref-labs.near(mainnet, v2.3.15) anddclv2.ref-dev.testnet(testnet, v2.3.14),ft_metadatavia an explicit RPC URL.displayof acreate_pooltransaction: decoded args, gas and deposit match the input; printed near-cli-rs line parses in near-cli-rs.'30'without unit, unknown network, missing wallet) fail before any network I/O.as-transaction … sendon a live network. It reuses the signing andsend_txpath the DAO commands already use in production; a testnet run from an ML-DSA-65-controlled account is still to do before relying on it.