-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from chimera-defi/ch/newDeployScripts
Ch/new deploy scripts
- Loading branch information
Showing
12 changed files
with
619 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import {DeployFunction} from "hardhat-deploy/types"; | ||
import Ship from "../utils/ship"; | ||
import {DepositContract__factory} from "../types"; | ||
|
||
/** | ||
* | ||
* This only needs to be deployed on testnets like sepolia which do not have a deposit contract. | ||
* Do not deploy on mainnet | ||
*/ | ||
const func: DeployFunction = async hre => { | ||
const {deploy} = await Ship.init(hre); | ||
|
||
const dc = await deploy(DepositContract__factory, { | ||
args: [], | ||
}); | ||
}; | ||
|
||
export default func; | ||
func.tags = ["depositContract"]; | ||
func.dependencies = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import {DeployFunction} from "hardhat-deploy/types"; | ||
import Ship from "../utils/ship"; | ||
import {FeeCalc__factory} from "../types"; | ||
|
||
/** | ||
* | ||
* This only needs to be deployed on testnets like sepolia which do not have a deposit contract. | ||
*/ | ||
const func: DeployFunction = async hre => { | ||
const {deploy} = await Ship.init(hre); | ||
|
||
const fc = await deploy(FeeCalc__factory, { | ||
args: [ | ||
{ | ||
adminFee: 0, | ||
exitFee: 0, | ||
refundFeesOnWithdraw: false, | ||
chargeOnDeposit: true, | ||
chargeOnExit: false, | ||
}, | ||
], | ||
}); | ||
}; | ||
|
||
export default func; | ||
func.tags = ["feeCalc"]; | ||
func.dependencies = []; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
381 changes: 381 additions & 0 deletions
381
deployments/sepolia/solcInputs/61fc510774bb4eddca51caab8f8d5192.json
Large diffs are not rendered by default.
Oops, something went wrong.