Currently the project is private so need:
export GOPRIVATE=github.com/alt-research/avs-generic-aggregator
For depends.
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
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
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.