generated from starwalker00/foundry-template-old
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
28 lines (22 loc) · 1.06 KB
/
.bash_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## RUN SCRIPTS
function VRFdeploy {
forge script script/VRFConsumer.s.sol:Deploy --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY -vvvv
}
function VRFsetNumber {
forge script script/VRFConsumer.s.sol:SetNumber --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY -vvvv
}
function VRFsetRandomNumber {
forge script script/VRFConsumer.s.sol:SetRandomNumber --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY -vvvv
}
function VRFgetNumber {
forge script script/VRFConsumer.s.sol:GetNumber --rpc-url $RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY -vvvv
}
## RUN TESTS
function VRFtest {
forge test --match-contract VRF*
}
## OTHER
# https://book.getfoundry.sh/forge/deploying#verifying-a-pre-existing-contract
function verify {
forge verify-contract --chain-id 80001 0xde7B240845e7cd386b79e18bbD7526225243dCCd src/VRFConsumer.sol:VRFConsumer $ETHERSCAN_KEY
}