Closed Namaskar-1F64F closed 2 years ago
How should I go about creating a bond with 18 decimals for testing?
I also need a settled auction that had bids. How should I go about getting this?
@Namaskar-1F64F
How should I go about creating a bond with 18 decimals for testing?
Change the decimals here https://github.com/porter-finance/v1-core/pull/257/commits/56fe707cf8815a533071740b511f64c8eb2a5f27#diff-aea8b9920ba6b9f1c1a2cf89b78c657de98d97f01e30693e7e71f3a89751d406R9
I also need a settled auction that had bids. How should I go about getting this?
Run the deploy script and get an auction id, then call npx hardhat settle-auction --auction-id <auction ID>
This PR adds a deploy script to the project using
hardhat-deploy
. Thedeploy
folder now has different steps that can be taken, and the commands to run are outlined in the README. This replaces the existing "integration" task and does the followinginitialize
on the implementation contract so others do not initialize itdeployer
as a bond issuer so it can issue bonds in subsequent scriptsconstants
constants
Some other things done here was
waitUntilMined
function to optionally log gas usage with NEW ENV VARLOG_GAS_USAGE
.settle-auction
task accepting an auction ID to settlePOLYGON_ALCHEMY_URL
and a newmumbai
network for testing