Deploy Example AVS

Deploy your AVS contracts on Ethereum Holesky and Base Sepolia testnets, using Simple Price Oracle AVS Example.

For other language quickstart implementations, refer to:

Prerequisites

  1. Othentic CLI installed - see previous step

  2. Deployer account with balance of:

    1. ≥ 0.3 ETH on Holesky (faucets: 1, 2)

    2. ≥ 0.01 ETH on Base Sepolia (faucets)


1

Clone the example GitHub repo

Clone the repository:

git clone https://github.com/Othentic-Labs/simple-price-oracle-avs-example.git
cd simple-price-oracle-avs-example
rm -rf .git

From this point onward, we assume all commands run from the root of the Oracle Example directory.

2

Deploy AVS

Run the following command to deploy AVS contracts:

othentic-cli network deploy \
    --l1-chain holesky \
    --l2-chain base-sepolia \
    --rewards-token eth \
    --l1-initial-deposit 10000000000000000 \
    --l2-initial-deposit 10000000000000000 \
    --name test-avs-name

When prompted, enter the private key of the deployer account.

The CLI will initiate the AVS contract deployment process. After finishing, it will print out the deployment addresses on both networks.

Please Note:

  1. You can deploy on any supported network and on multiple networks simultaneously.

  2. Make sure the Deployer account has at least 0.3 holETH.

Troubleshooting Errors

3

Set your environment variables

To make the CLI aware of your deployment, update your environment variables by running:

othentic-cli network contracts > .env

Success!

Next, prepare three internal operator accounts for your AVS by running a simple setup script.

Last updated