Skip to content

Commit

Permalink
feat!: add transaction policies support (FuelLabs#5281)
Browse files Browse the repository at this point in the history
## Description
co-developed with: @IGI-111 and @xgreenx

This PR adds support for transaction policies. 

What was done:
- bump `fuel-vm` to `0.43.1`
- bump `fuels-rs` to `0.53.0`
- update the `std-lib` to handle new `GTF` codes and the transaction
policies
- update all test

BREAKING CHANGE:
- removed `TxParameters` in favor of `TxPolicies`
- changed `gtf` opcodes 
- removed `Mint` from `forc-tx` and cli

## Checklist
- [ ] I have linked to any relevant issues.
- [ ] I have commented my code, particularly in hard-to-understand
areas.
- [ ] I have updated the documentation where relevant (API docs, the
reference, and the Sway book).
- [ ] I have added tests that prove my fix is effective or that my
feature works.
- [x] I have added (or requested a maintainer to add) the necessary
`Breaking*` or `New Feature` labels where relevant.
- [x] 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).
- [x] I have requested a review from the relevant team or maintainers.

---------

Co-authored-by: green <[email protected]>
Co-authored-by: Elvis <[email protected]>
Co-authored-by: IGI-111 <[email protected]>
Co-authored-by: xunilrj <[email protected]>
Co-authored-by: Vaivaswatha Nagaraj <[email protected]>
Co-authored-by: Kaya Gökalp <[email protected]>
Co-authored-by: Joshua Batty <[email protected]>
Co-authored-by: Sophie Dankel <[email protected]>
  • Loading branch information
9 people authored Dec 5, 2023
1 parent f851440 commit fc17c39
Show file tree
Hide file tree
Showing 85 changed files with 1,886 additions and 1,487 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ concurrency:
env:
CARGO_TERM_COLOR: always
REGISTRY: ghcr.io
RUST_VERSION: 1.72.1
RUST_VERSION: 1.73.0
NIGHTLY_RUST_VERSION: nightly-2023-08-27

jobs:
Expand Down Expand Up @@ -255,7 +255,7 @@ jobs:
runs-on: ubuntu-latest
services:
fuel-core:
image: ghcr.io/fuellabs/fuel-core:v0.20.3
image: ghcr.io/fuellabs/fuel-core:v0.21.0
ports:
- 4000:4000
steps:
Expand Down
Loading

0 comments on commit fc17c39

Please sign in to comment.