-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Use a new feature from the VM to get all required inputs in one dry run #2840
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
Merged
Merged
Changes from all commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
8a6502c
Started work on the `assemble_tx` endpoint.
xgreenx a19bcc3
Implemented remaining logic
xgreenx 8a5ff0c
fix: Updated integer types in client
netrome 59bc96a
feat: Support assembleTx in client
netrome 6d87183
fix: Use HexString instead of passing around Vec<u8>
netrome 2a42e40
fix: Integer changes in tests
netrome 1c3561d
fix: Typo
netrome 04660bd
fix: Cleanup
netrome 2da4546
Re-worked some tests to use new assemble tx API. ALong with it fixed …
xgreenx cdf2970
Merge branch 'refs/heads/master' into feature/assemble-tx
xgreenx 30177d0
Updated CHANGELOG
xgreenx 2bc6258
refactor: Tidy up `FuelCoreClientExt` trait
netrome 7f7df62
refactor: Simplify control flow in assemble_transaction impl
netrome 208f60b
refactor: Reorder trait methods
netrome 7fd6d51
refactor: Tidy up `AssembleTx::new` logic
netrome 0b38697
Remove breaking change from API
xgreenx f307ba5
Use GraphQL to produce a block, it awaits off-chain database to index…
xgreenx 9eddbf9
feat: Don't use bool for `destroy` option
netrome a2942f1
fix: Remove unsafe array slicing
netrome 2646e53
feat: Break out big loop to dedicated `populate_missing_contract_inpu…
netrome 3885dee
Removed unnessesary cover tip step
xgreenx 03b281e
We still need to cover fee because fake coin doesn't have any amount …
xgreenx 14ecbce
Added protection over many estimation of predicates
xgreenx a6963e7
Merge branch 'master' into feature/assemble-tx
xgreenx 25d26d7
Merge branch 'master' into feature/assemble-tx
AurelienFT 71d5b1e
Fix tests compilation
AurelienFT c8c1e49
Fixed witness index
xgreenx d118248
Fixed the issues with custom witness limit.
xgreenx 00fda90
Merge branch 'master' into feature/assemble-tx
xgreenx 28a3c10
Include `gas_price` into the response.
xgreenx eb7aa08
Fixed wrong `used_gas` calculation logic
xgreenx dfa5e81
Added filling of missing witnesses
xgreenx 78c1e4c
Merge branch 'refs/heads/master' into feature/assemble-tx
xgreenx af19011
Resolved conflicts
xgreenx 269ab9f
Make CI happy
xgreenx c2e215a
Make CI happy
xgreenx c86be0a
Fixed flaky test
xgreenx c0f51fe
Merge branch 'master' into feature/assemble-tx
netrome 3c29542
Add more tests for the change and variable outputs
xgreenx dfd59ca
Handle cases with zero gas price and when we don't need base asset to…
xgreenx 7a42126
Make audit happy
xgreenx a5fed62
Merge branch 'master' into feature/assemble-tx
xgreenx ca42157
Merge branch 'master' into feature/assemble-tx
rymnc 1760da4
Fixed panic during adding change outputs.
xgreenx 13e0607
Make CI happy
xgreenx 7fc0a0a
Use a new feature from the VM to get all required inputs in one dry run
xgreenx 4ee17c3
Updated changelog.
xgreenx 0eade5b
Mini self review
xgreenx 4ce0dc9
Merge branch 'master' into feature/assemble-tx
xgreenx 9ace50b
Merge branch 'feature/assemble-tx' into feature/assemble-tx-follow-up
xgreenx 876241e
Merge branch 'master' into feature/assemble-tx
xgreenx dc0e5df
Address comments from the PR
xgreenx c1ae36e
Use `ok_or_else`
xgreenx 14f842a
Merge branch 'master' into feature/assemble-tx
xgreenx 4f0a02f
Merge branch 'refs/heads/feature/assemble-tx' into feature/assemble-t…
xgreenx 256600d
Merge branch 'refs/heads/master' into feature/assemble-tx-follow-up
xgreenx 83e65ee
Merge branch 'master' into feature/assemble-tx-follow-up
xgreenx File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| Added a new CLI arguments: | ||
| - `assemble-tx-dry-run-limit` - The max number how many times script can be executed during `assemble_tx` GraphQL request. Default value is `3` times. | ||
| - `assemble-tx-estimate-predicates-limit` - The max number how many times predicates can be estimated during `assemble_tx` GraphQL request. Default values is `10` times. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| CLI argument `vm-backtrace` is deprecated and does nothing. It will be removed in a future version of `fuel-core`. | ||
| The `extra_tx_checks` field was renamed into `forbid_fake_coins` that affects JSON based serialization/deserialization. | ||
| Renamed `extra_tx_checks_default` field into `forbid_fake_coins_default`. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Removed `log_backtrace` logic from the executor. It is not needed anymore with the existence of the local debugger for the transactions. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Fixed `fuel-core-client` receipt deserialization in the case if the `ContractId` is zero. |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.