Skip to content

Commit

Permalink
Removed the usage of flake and building of the bridge contract ABI (#…
Browse files Browse the repository at this point in the history
…1302)

Closes #686
  • Loading branch information
xgreenx authored Aug 16, 2023
1 parent 2a8dba8 commit aaae2b3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 961 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ Description of the upcoming release here.

### Changed

- [#1302](https://github.com/FuelLabs/fuel-core/pull/1302): Removed the usage of flake and building of the bridge contract ABI.
It simplifies the maintenance and updating of the events, requiring only putting the event definition into the codebase of the relayer.
- [#1293](https://github.com/FuelLabs/fuel-core/issues/1293): Parallelized the `estimate_predicates` endpoint to utilize all available threads.

#### Breaking
Expand Down
19 changes: 0 additions & 19 deletions crates/services/relayer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,3 @@ If the state determines that the relayer is out of sync with the DA layer then l
The range of blocks is `(last_downloaded_height + 1)..=current_finalized_height`.

Logs are paginated into sets of blocks to avoid overloading a single rpc call.

## Contract Flake
The `flake.nix` in this repo has a tool to fetch, compile and generate the abi for the fuel contracts.
While it is not mandatory to use nix to do this the advantage is the exact versions of the contracts that were used to generate the abi files is pinned in the `flake.lock` file.

### Usage
To generate the api files run the following from the `fuel-core-relayer` directory.
```bash
nix run .#generate-abi-json abi
```
To update the version of the contracts that is used run:
```bash
nix flake update
nix run .#generate-abi-json abi
```
You can see the versions that are pinned by running:
```bash
nix flake info
```
Loading

0 comments on commit aaae2b3

Please sign in to comment.