-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70fe50a
commit 436dc11
Showing
6 changed files
with
44 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { LockDealNFT, RefundProvider, CollateralProvider } from "../../../typechain-types" | ||
import { deploy } from "../../deploy" | ||
|
||
export async function deployBuilders( | ||
lockDealNFT: LockDealNFT, | ||
refundProvider: RefundProvider, | ||
collateralProvider: CollateralProvider | ||
) { | ||
await deploy("SimpleBuilder", lockDealNFT.address) | ||
await deploy("SimpleRefundBuilder", lockDealNFT.address, refundProvider.address, collateralProvider.address) | ||
} |
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,11 @@ | ||
import { CollateralProvider, LockDealNFT, DealProvider } from "../../../typechain-types" | ||
import { deploy } from "../../deploy" | ||
|
||
export async function deployRefundWithCollateral(lockDealNFT: LockDealNFT, dealProvider: DealProvider) { | ||
const collateralProvider: CollateralProvider = await deploy( | ||
"CollateralProvider", | ||
lockDealNFT.address, | ||
dealProvider.address | ||
) | ||
await deploy("RefundProvider", lockDealNFT.address, collateralProvider.address) | ||
} |
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,8 @@ | ||
import { LockDealNFT, DealProvider, LockDealProvider } from "../../../typechain-types" | ||
import { deploy } from "../../deploy" | ||
|
||
export async function deploySimpleProviders(lockDealNFT: LockDealNFT) { | ||
const dealProvider: DealProvider = await deploy("DealProvider", lockDealNFT.address) | ||
const lockProvider: LockDealProvider = await deploy("LockDealProvider", lockDealNFT.address, dealProvider.address) | ||
await deploy("TimedDealProvider", lockDealNFT.address, lockProvider.address) | ||
} |
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,9 @@ | ||
import { VaultManager } from "../../../typechain-types" | ||
import { deploy } from "../../deploy" | ||
|
||
export async function deployNFTandVaultManager(baseURI: string = "") { | ||
const vaultManager: VaultManager = await deploy("VaultManager") | ||
await deploy("LockDealNFT", vaultManager.address, baseURI) | ||
} | ||
|
||
deployNFTandVaultManager() |
This file was deleted.
Oops, something went wrong.