Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.23 KB

Build.md

File metadata and controls

61 lines (41 loc) · 1.23 KB

Mach AVS Build

Note

Currently the project is private so need:

export GOPRIVATE=github.com/alt-research/avs-generic-aggregator 

For depends.

Install dependencies

Install go v1.12.1, first install gvm:

sudo apt-get install bison

bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer)

Install go:

gvm install go1.21.1 
gvm use go1.21.1 --default

To build contract, need install foundry:

curl -L https://foundry.paradigm.xyz | bash

foundryup

Build Operator and Aggregator

git clone https://github.com/alt-research/mach-avs.git
cd mach-avs
make build

will got the following output:

  • ./bin/mach-operator-signer operator node for commit bls sig to aggregator
  • ./bin/mach-aggregator aggregator for collect bls sig and commit to layer1
  • ./bin/mach-operator-cli a tool for reg and dereg from avs

Build Contract

git clone https://github.com/alt-research/mach-avs.git
cd mach-avs/contracts
git submodule update --init --recursive 
forge build 

Deploy the avs contract to testnet can see Script For Testing AVS Contracts.