The CRVFunder series is a short series exploring using Brownie at an application level. Specifically, we'll be looking at how Brownie was used to help rapidly prototype the CRVFunder application. CRVFunder launched a new fundraising gauge type to divert CRV inflation to any cause as voted on by the Curve DAO.
Throughout this series we'll be pointing to snapshots of the code in development. The actual repository is available at @vefunder/crvfunder. The code contained here in the crvfunder directory shows the application snapshot as it existed at 63b4041
On the console, store an account by private key
brownie accounts new <id>
To import from a keystore file
brownie accounts import <id> <path>
Running pytest will return one of the following exit codes
Once an accounts has been saved, you can import it into your script
accounts.load(id)
Set a tip to be added to the base transaction fee to push your transaction faster.
from brownie.network import priority_fee
priority_fee("2 gwei") # Set globally
tx({"priority_fee": "2 gwei"}) # Per transaction
Any ContractContainer can load an implementation deployed to a specific address using the built-in "at" method
my_contract = ContractContainer.at(<address>)