Skip to content
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

Removed the usage of flake and building of the bridge contract ABI #1302

Merged
merged 4 commits into from
Aug 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading