Skip to content

Descent-Collective/oracle-module

Repository files navigation

Oracle Module

To test

$ forge test -vvv --gas-report

To deploy locally to anvil

Run

$ anvil

Note: Be sure to set PRIVATE_KEY variable in .env to be one of the anvil local private keys with eth balance

Then

$ source .env
$ forge script script/median.s.sol:MedianScript --fork-url http://localhost:8545 --broadcast -vvvv

To deploy to a public network

$ source .env
$ forge script script/median.s.sol:MedianScript --rpc-url $GOERLI_RPC_URL --broadcast --verify -vvvv

Note: Can remove --broadcast and --verify` to simulate the deployment script locally without actually broadcasting it to the network

Foundry Usage

Build

$ forge build

Test

$ forge test -vvv --gas-report

Format

$ forge fmt

Gas Snapshots

$ forge snapshot

Anvil

$ anvil

Cast

$ cast <subcommand>

Help

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

About

The price oracle module for Descent protocol

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •