-
Notifications
You must be signed in to change notification settings - Fork 117
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
SPIKE: Design better API for dryrun, estimates, signing and preparation #432
Labels
Milestone
Comments
6 tasks
This was referenced Sep 16, 2020
Closed
6 tasks
In addition to the above; Provide the ability to obtain operation hash before sending it to the node |
6 tasks
related to previous implementation #995 |
We need to review the design and have a discussion again. Also, please re-confirm the follow-up tasks and let's what non-breaking changes could be implemented earlier and which ones have to wait till v15 |
This was referenced Oct 12, 2022
Created follow-up task issues 2019 and 2020 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
transfer()
method abstracts many underlying steps for the developer user, which is a good thing for typical usescases. When a developer user wishes to retrieve data from some particular underlying step, they use the lower-level abstractions in taquito.If a user wishes to get the estimate for a transaction operation on a contract method, they need to prepare the call, fetch the parameters, and then call the
Tezos.estimate.transfer({op...})
API.A proposal for a new set of methods follow;
(Controversial, maybe a better way around this?) Break the api so that
contract.transfer()
becomes a no-op method.Idea is to add the following new methods;
And for smart contract invocations, it may look like this:
send
will complete all steps and inject the methodestimate
will return an Estimate for the operationdryrun
will return the dryrun results, including the updated storage as evaluated by the RPC serversign
will return the signed operation but not inject the operationprepare
will prepare an operation that is ready for singing.Acceptance criteria:
The text was updated successfully, but these errors were encountered: