-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow forc deploy to submit transaction without waiting for commit co…
…nfirmation (#6294) ## Description The current `forc deploy` command is designed to submit and await for transaction finalization as much this is a common use case, for delayed transactions, were transaction are submitted but can take time a lot of time to be included and finalized. For this use cases I have implement a suggestion `--submit-only` this will follow the current flow, but only submit the transaction. ### Example use case for delayed transactions In Bako Safe, as it is a multisig, it is necessary to have signatures from multiple accounts before sending the transaction to the network. To work together with forc deploy, a GraphQL Proxy has been developed that works with the Fuel provider to allow sending the transaction to our protocol. ```zsh forc deploy --node-url 'https://api.bako.global/v1/graphql' --default-signer --submit-only ``` ## Changes - [x] Add a new deploy params `--submit-only` - [x] Create a branch on the code to verify if the param is provided - [x] Abstract create artifacts to a single function to avoid code repetition - [x] Modified transaction submission to allow for immediate submission when the `submit_only` command is provided - [x] Implemented tests for the new command ## Checklist - [ ] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [x] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [x] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [ ] I have requested a review from the relevant team or maintainers. --------- Co-authored-by: Sophie Dankel <47993817+sdankel@users.noreply.github.com> Co-authored-by: K1-R1 <77465250+K1-R1@users.noreply.github.com>
- Loading branch information
1 parent
360fcf5
commit 9b87126
Showing
5 changed files
with
176 additions
and
67 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,4 +215,5 @@ booleans | |
underflows | ||
Codec | ||
bool | ||
str | ||
str | ||
multisig |
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
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