porter-finance / v1-core

⛰️ Smart contracts powering the Porter protocol.
https://porter.finance
GNU Affero General Public License v3.0
4 stars 3 forks source link

Add hardhat-deploy Deployments #257

Closed Namaskar-1F64F closed 2 years ago

Namaskar-1F64F commented 2 years ago

This PR adds a deploy script to the project using hardhat-deploy. The deploy 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 following

Some other things done here was

RusseII commented 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

Namaskar-1F64F commented 2 years ago

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>