-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: In gnoclient, separate out SignTx and BroadcastTxCommit (#2641)
We can use `gnokey maketx call`, `gnokey sign` and `gnokey broadcast` to make a transaction and sign it separately before broadcast. We want to support the same thing in the `gnoclient` API. (And we want to expose this API in Gno Native Kit.) * Split out new API function `NewCallTx` from `Call` * Split out new API function `NewRunTx` from `Run` * Split out new API function `NewSendTx` from `Send` * Split out new API function `NewAddPackageTx` from `AddPackage` * Split out new API functions `SignTx` and `BroadcastTxCommit` from `signAndBroadcastTxCommit` * In client_test.go and integration_test.go, add code to also test signing separately <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description </details> --------- Signed-off-by: Jeff Thompson <jeff@thefirst.org>
- Loading branch information
Showing
3 changed files
with
230 additions
and
19 deletions.
There are no files selected for viewing
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
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
Oops, something went wrong.