-
Notifications
You must be signed in to change notification settings - Fork 213
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(target_chains/fuel): add governance contract (#1518)
* add governance contract * add fuel ci * add rust-toolchain * add executes_governance_instruction test * add test for SetValidPeriod * add test for AuthorizeGovernanceDataSourceTransfer * remove SetWormholeAddress * add test for SetDataSources * remove WormholeAddressSetEvent * remove SetWormholeAddress * remove SetWormholeAddressPayload * remove SetWormholeAddressPayload and SetWormholeAddress imports * remove GovernanceAction::SetWormholeAddress * address comments * refactor test * add comments
- Loading branch information
Showing
42 changed files
with
1,803 additions
and
214 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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Test Fuel Contract | ||
|
||
on: | ||
pull_request: | ||
paths: | ||
- target_chains/fuel/** | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- target_chains/fuel/** | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: target_chains/fuel/contracts/ | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Fuel toolchain | ||
run: | | ||
curl https://install.fuel.network | sh | ||
echo "$HOME/.fuelup/bin" >> $GITHUB_PATH | ||
- name: Build with Forc | ||
run: forc build --verbose | ||
- name: Run tests with Forc | ||
run: forc test --verbose | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Run tests | ||
run: cargo test --verbose |
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
Oops, something went wrong.