Skip to content

Commit

Permalink
Implement MIP-58 - Trusted Relayer (#903)
Browse files Browse the repository at this point in the history
Co-authored-by: Icarus131 <[email protected]>
Co-authored-by: primata <[email protected]>
Co-authored-by: Liam Monninger <[email protected]>
Co-authored-by: musitdev <[email protected]>
Co-authored-by: Liam Monninger <[email protected]>
Co-authored-by: Andy Golay <[email protected]>
  • Loading branch information
7 people authored Jan 14, 2025
1 parent 840783e commit 05d31c4
Show file tree
Hide file tree
Showing 78 changed files with 2,880 additions and 5,717 deletions.
100 changes: 48 additions & 52 deletions .github/workflows/checks-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -345,57 +345,53 @@ jobs:
forge test --fork-url https://ethereum-sepolia-rpc.publicnode.com -vv
"
## any use of Move CLI requires ubuntu-24.04 and to not run on buildjet
# bridge-client-integration:
# if: github.event.label.name == 'cicd:bridge' || github.ref == 'refs/heads/main'
# strategy:
# matrix:
# include:
# - os: ubuntu-24.04
# arch: x86_64
# runs-on: ubuntu-24.04
#
# runs-on: ${{ matrix.runs-on }}
#
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Install Movement CLI
# run: |
# sudo apt-get update
# sudo apt-get install -y build-essential
# sudo apt-get install -y binutils
# sudo apt-get install -y lld
# sudo apt-get install -y libudev-dev
# sudo apt-get install -y libdw-dev
# which ld
# which lld
# which gcc
# which cc
# echo $PATH
# export GIT_CLONE_PROTECTION_ACTIVE=false
# git clone https://github.com/movementlabsxyz/aptos-core/
# cd aptos-core
# cargo build -p movement
# sudo cp target/debug/movement /usr/local/bin/
# cd -
#
# - name: Install Nix
# uses: DeterminateSystems/nix-installer-action@main
#
# - uses: cachix/cachix-action@v15
# with:
# name: movementlabs
# authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
#
# - name: Run eth_movement tests
# run: |
# nix develop --command bash -c "rust_backtrace=1 cargo test --test eth_movement -- --nocapture --test-threads=1"
#
# - name: Run movement_eth tests
# run: |
# nix develop --command bash -c "rust_backtrace=1 cargo test --test movement_eth -- --nocapture --test-threads=1"
# any use of Move CLI requires ubuntu-24.04 and to not run on buildjet
bridge-client-integration:
if: github.event.label.name == 'cicd:bridge' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feature/trusted-relayer'
strategy:
matrix:
include:
- os: ubuntu-24.04
arch: x86_64
runs-on: ubuntu-24.04
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Movement CLI
run: |
sudo apt-get update
sudo apt-get install -y build-essential
sudo apt-get install -y binutils
sudo apt-get install -y lld
sudo apt-get install -y libudev-dev
sudo apt-get install -y libdw-dev
which ld
which lld
which gcc
which cc
echo $PATH
export GIT_CLONE_PROTECTION_ACTIVE=false
git clone https://github.com/movementlabsxyz/aptos-core/
cd aptos-core
cargo build -p movement
sudo cp target/debug/movement /usr/local/bin/
cd -
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- uses: cachix/cachix-action@v15
with:
name: movementlabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Run eth_movement tests
run: |
nix develop --command bash -c "rust_backtrace=1 cargo test --test client_eth_tests -- --nocapture --test-threads=1"
- name: Run movement_eth tests
run: |
nix develop --command bash -c "rust_backtrace=1 cargo test --test client_mvt_tests -- --nocapture --test-threads=1"
- name: Run Relayer tests
run: |
nix develop --command bash -c "rust_backtrace=1 cargo test --test relayer -- --nocapture --test-threads=1"
# Indexer:
# strategy:
Expand All @@ -416,4 +412,4 @@ jobs:
#
# - name: Run Indexer tests in nix environment
# # adjust the log level while debugging
# run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just movement-full-node native build.celestia-local.indexer.hasura.indexer-test -t=false"
# run: CELESTIA_LOG_LEVEL=FATAL nix develop --command bash -c "just movement-full-node native build.celestia-local.indexer.hasura.indexer-test -t=false"
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,9 @@
[submodule "protocol-units/tokens/mock/testnet/holesky/lib/openzeppelin-contracts"]
path = protocol-units/tokens/mock/testnet/holesky/lib/openzeppelin-contracts
url = https://github.com/OpenZeppelin/openzeppelin-contracts
[submodule "lib/BokkyPooBahsDateTimeLibrary"]
path = lib/BokkyPooBahsDateTimeLibrary
url = https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary
[submodule "protocol-units/bridge/contracts/lib/BokkyPooBahsDateTimeLibrary"]
path = protocol-units/bridge/contracts/lib/BokkyPooBahsDateTimeLibrary
url = https://github.com/bokkypoobah/BokkyPooBahsDateTimeLibrary
Loading

0 comments on commit 05d31c4

Please sign in to comment.