Skip to content

Commit

Permalink
chore(evm): rm GiriGiriBashi
Browse files Browse the repository at this point in the history
  • Loading branch information
allemanfredi committed Jun 10, 2024
1 parent cb80a56 commit 4832974
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 1,137 deletions.
269 changes: 0 additions & 269 deletions packages/evm/contracts/ownable/GiriGiriBashi.sol

This file was deleted.

22 changes: 0 additions & 22 deletions packages/evm/tasks/deploy/hashi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ import { verify } from "."
import type { Hashi } from "../../types/contracts/Hashi"
import type { Yaho } from "../../types/contracts/Yaho"
import type { Yaru } from "../../types/contracts/Yaru"
import type { GiriGiriBashi } from "../../types/contracts/ownable/GiriGiriBashi"
import type { ShoyuBashi } from "../../types/contracts/ownable/ShoyuBashi"
import type { HeaderStorage } from "../../types/contracts/utils/HeaderStorage"
import type { Hashi__factory } from "../../types/factories/contracts/Hashi__factory"
import type { Yaho__factory } from "../../types/factories/contracts/Yaho__factory"
import type { Yaru__factory } from "../../types/factories/contracts/Yaru__factory"
import type { GiriGiriBashi__factory } from "../../types/factories/contracts/ownable/GiriGiriBashi__factory"
import type { ShoyuBashi__factory } from "../../types/factories/contracts/ownable/ShoyuBashi__factory"
import type { HeaderStorage__factory } from "../../types/factories/contracts/utils/HeaderStorage__factory"

Expand Down Expand Up @@ -47,26 +45,6 @@ task("deploy:ShoyuBashi")
if (taskArguments.verify) await verify(hre, shoyuBashi, constructorArguments)
})

task("deploy:GiriGiriBashi")
.addParam("owner", "address to set as the owner of this contract")
.addParam("hashi", "address of the hashi contract")
.addParam("recipient", "address that will receive bonds for unsuccessful challenges")
.addFlag("verify", "whether to verify the contract on Etherscan")
.setAction(async function (taskArguments: TaskArguments, hre) {
console.log("Deploying GiriGiriBashi...")
const signers: SignerWithAddress[] = await hre.ethers.getSigners()
const giriGiriBashiFactory: GiriGiriBashi__factory = <GiriGiriBashi__factory>(
await hre.ethers.getContractFactory("GiriGiriBashi")
)
const constructorArguments = [taskArguments.owner, taskArguments.hashi, taskArguments.recipient] as const
const giriGiriBashi: GiriGiriBashi = <GiriGiriBashi>(
await giriGiriBashiFactory.connect(signers[0]).deploy(...constructorArguments)
)
await giriGiriBashi.deployed()
console.log("GiriGiriBashi deployed to:", giriGiriBashi.address)
if (taskArguments.verify) await verify(hre, giriGiriBashi, constructorArguments)
})

task("deploy:HeaderStorage")
.addFlag("verify", "whether to verify the contract on Etherscan")
.setAction(async function (taskArguments: TaskArguments, hre) {
Expand Down
Loading

0 comments on commit 4832974

Please sign in to comment.