Skip to content

Commit

Permalink
added menu item deploy core contracts without refund
Browse files Browse the repository at this point in the history
  • Loading branch information
YouStillAlive committed Sep 27, 2024
1 parent 5d66467 commit c644d84
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import '@nomicfoundation/hardhat-chai-matchers';
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: {
version: "0.8.24",
version: "0.8.26",
settings: {
evmVersion: 'istanbul',
optimizer: {
Expand Down
6 changes: 3 additions & 3 deletions scripts/terminal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import {
deployAllContracts,
deployLightMigrator,
deployDelayProviderAndMigrator,
deployMoonbeam
deployWithoutRefund
} from "./utility/deployment/execute"

const scriptPaths = [
"Moonbeam.ts",
"withoutRefund.ts",
"VaultAndLockDealNFT.ts",
"SimpleProviders.ts",
"RefundProvider.ts",
Expand All @@ -39,7 +39,7 @@ async function displayMenu() {
await deployAllContracts()
break
case menuItems[1].name:
await deployMoonbeam()
await deployWithoutRefund()
break
case menuItems[2].name:
await deployVaultAndLockDealNFT()
Expand Down
4 changes: 2 additions & 2 deletions scripts/utility/deployment/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export async function deployAllContracts() {
await executeScript("AllContracts", "scripts/deploy.ts");
}

export async function deployMoonbeam() {
export async function deployWithoutRefund() {
process.env.BASEURI = await getBaseURI();
await executeScript("Moonbeam", "scripts/moonbeam.ts");
await executeScript("deploy core contracts without Refund", "scripts/withoutRefund.ts");
}
4 changes: 2 additions & 2 deletions scripts/moonbeam.ts → scripts/withoutRefund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from "../typechain-types"
import { deploy } from "./utility/deployment"

async function deployMoonbeamContracts(baseURI: string = "") {
async function deployAllContractsWithoutRefund(baseURI: string = "") {
const vaultManager: VaultManager = await deploy("VaultManager")

// Deploy LockDealNFT contract
Expand Down Expand Up @@ -38,7 +38,7 @@ async function deployMoonbeamContracts(baseURI: string = "") {

const baseURI = process.env.BASEURI || ""

deployMoonbeamContracts(baseURI).catch((error) => {
deployAllContractsWithoutRefund(baseURI).catch((error) => {
console.error(error)
process.exitCode = 1
})
Expand Down

0 comments on commit c644d84

Please sign in to comment.