Files
oracle/packages/scripts/setupFork.sh
nicholaspaiandGitHub c2111e8108 fix(admin-scripts): Work with decentralized proposer (#3796)
* Use gas price in send

* check for UMA bond

* move comments to utils

* Added resolve logic

* fix

* use multicall to read txns
2022-01-27 16:40:34 -05:00

13 lines
704 B
Bash
Executable File

#!/usr/bin/env bash
CURRENT_DIR=$(pwd)
# This script assumes that you've started a hardhat node fork of Ethereum mainnet, and makes requests to the fork that
# modify it in preparation for running test scripts connected to it. For example, running `impersonateAccounts` unlocks
# accounts that we'll use to submit and vote on Admin proposals.
HARDHAT_NETWORK=localhost yarn hardhat run $CURRENT_DIR/packages/scripts/src/utils/impersonateAccounts.js --no-compile
# Run this after impersonating the foundation wallet. This sends UMA to the deployer so it
# can submit new proposals.
HARDHAT_NETWORK=localhost yarn hardhat run $CURRENT_DIR/packages/scripts/src/utils/seedProposerWithUma.js --no-compile