-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add MakeCallTx, etc., SignTx and BroadcastTxCommit. In go.mod …
…use temporary replace for gno PR 2641 (#161) PR gnolang/gno#2641 updates the `gnoclient` API to add `MakeCallTx`, etc. and `SignTx` and `BroadcastTxCommit`. We want to support these in the gnonative API. * In go.mod, add a replace for github.com/gnolang/gno to the branch of PR gnolang/gno#2641 * In gnonativetypes.go, add field `CallerAddress` to `CallRequest`, `SendRequest` and `RunRequest`. Add `MakeTxResponse` and request/response for `SignTx` and `BroadcastTxCommitResponse`. * In rpc.proto, add `MakeCallTx`, etc., `SignTx` and `BroadcastTxCommit`. * Run `make regenerate` . * In api.go, split out helper function `convertCallRequest` from `Call`. Do the same for `convertSendRequest` and `convertRunRequest`. Add `MakeCallTx` which also uses `convertCallRequest`. Do the same for `MakeSendTx` and `MakeRunTx`. Add `SignTx` and `BroadcastTxCommit`. * Note that `MakeCallTx` converts the tx structure to JSON using `amino.MarshalJSON(tx)` . This is the same thing as done by the command-line `gnokey maketx call` . Signed-off-by: Jeff Thompson <[email protected]>
- Loading branch information
Showing
19 changed files
with
4,297 additions
and
1,974 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.