Skip to content

Latest commit

 

History

History

contracts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

ZK Data Hub Contracts

The contracts for the ZK Data Hub are split in two versions:

  • Axiom V1: The first version of the data hub, supporting Axiom V1 proofs.
  • Axiom V2: The up to date version of the data hub, supporting Axiom V2 proofs.

The UniV3 TWAP oracle is implemented in the UniswapV3TwapOracle.sol contract.

Build

$ forge build

Test

$ forge test

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Deploy

source .env
forge script script/deploy/UniswapV3TwapOracleDeploy.s.sol  --rpc-url $GOERLI_RPC_URL --broadcast --verify 

Cast

$ cast <subcommand>

Help

$ forge --help
$ anvil --help
$ cast --help