Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 987 Bytes

README.md

File metadata and controls

56 lines (40 loc) · 987 Bytes

v3utils

This repository contains the smart contracts for v3Utils and v3Automation.

It uses Foundry as development toolchain.

Setup

Install foundry

https://book.getfoundry.sh/getting-started/installation

Install dependencies

forge install

Tests

Most tests use a forked state of Arbitrum One network. You can run all tests with:

NOTE: Prepare .env file with sample values from sample.env before you run test.

forge test

Run tests with gas report

forge test --gas-report

Remember to check smart wallet address

Deploy

source .env
forge script script/V3Utils.s.sol:MyScript --legacy --rpc-url $RPC_URL --broadcast

using --with-gas-price flag to specify gas price:

forge script script/V3Utils.s.sol:MyScript --legacy --rpc-url $RPC_URL --broadcast --with-gas-price $GAS_PRICE

or with Makefile:

make deploy-v3utils

Verify Contract

Run script below to get verify contract script

make verify-v3utils