Skip to content

Commit

Permalink
revert 0_1_0 test and add 0_2_0 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Da-Colon committed Oct 7, 2024
1 parent 558b3b7 commit 26d843f
Show file tree
Hide file tree
Showing 2 changed files with 656 additions and 68 deletions.
68 changes: 0 additions & 68 deletions test/DecentHats_0_1_0.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import {
MockSablierV2LockupLinear,
MockERC20__factory,
MockERC20,
MockHatsModuleFactory__factory,
MockHatsElectionEligibility__factory,
} from "../typechain-types"

import { SignerWithAddress } from "@nomicfoundation/hardhat-ethers/signers"
Expand Down Expand Up @@ -93,22 +91,13 @@ describe("DecentHats_0_1_0", () => {
let mockERC20: MockERC20
let mockERC20Address: string

let mockHatsElectionEligibilityImplementationAddress: string
let mockHatsModuleFactoryAddress: string

beforeEach(async () => {
const signers = await hre.ethers.getSigners()
const [deployer] = signers
;[, dao] = signers

mockHats = await new MockHats__factory(deployer).deploy()
mockHatsAddress = await mockHats.getAddress()
const mockHatsElectionEligibilityImplementation =
await new MockHatsElectionEligibility__factory(deployer).deploy()
mockHatsElectionEligibilityImplementationAddress =
await mockHatsElectionEligibilityImplementation.getAddress()
const mockHatsModuleFactory = await new MockHatsModuleFactory__factory(deployer).deploy()
mockHatsModuleFactoryAddress = await mockHatsModuleFactory.getAddress()
keyValuePairs = await new KeyValuePairs__factory(deployer).deploy()
erc6551Registry = await new ERC6551Registry__factory(deployer).deploy()
mockHatsAccountImplementation = await new MockHatsAccount__factory(deployer).deploy()
Expand Down Expand Up @@ -209,11 +198,6 @@ describe("DecentHats_0_1_0", () => {
isMutable: false,
wearer: ethers.ZeroAddress,
sablierParams: [],
isTermed: false,
termedParams: {
termEndDateTs: 0,
nominatedWearers: [],
},
},
hats: [
{
Expand All @@ -223,11 +207,6 @@ describe("DecentHats_0_1_0", () => {
isMutable: false,
wearer: ethers.ZeroAddress,
sablierParams: [],
isTermed: false,
termedParams: {
termEndDateTs: 0,
nominatedWearers: [],
},
},
{
maxSupply: 1,
Expand All @@ -236,16 +215,8 @@ describe("DecentHats_0_1_0", () => {
isMutable: false,
wearer: ethers.ZeroAddress,
sablierParams: [],
isTermed: false,
termedParams: {
termEndDateTs: 0,
nominatedWearers: [],
},
},
],
hatsModuleFactory: mockHatsModuleFactoryAddress,
hatsElectionEligibilityImplementation:
mockHatsElectionEligibilityImplementationAddress,
},
]
),
Expand Down Expand Up @@ -293,16 +264,8 @@ describe("DecentHats_0_1_0", () => {
isMutable: false,
wearer: ethers.ZeroAddress,
sablierParams: [],
isTermed: false,
termedParams: {
termEndDateTs: 0,
nominatedWearers: [],
},
},
hats: [],
hatsModuleFactory: mockHatsModuleFactoryAddress,
hatsElectionEligibilityImplementation:
mockHatsElectionEligibilityImplementationAddress,
},
]
),
Expand Down Expand Up @@ -393,11 +356,6 @@ describe("DecentHats_0_1_0", () => {
isMutable: false,
wearer: ethers.ZeroAddress,
sablierParams: [],
isTermed: false,
termedParams: {
termEndDateTs: 0,
nominatedWearers: [],
},
},
hats: [
{
Expand All @@ -422,11 +380,6 @@ describe("DecentHats_0_1_0", () => {
broker: { account: ethers.ZeroAddress, fee: 0 },
},
],
isTermed: false,
termedParams: {
termEndDateTs: 0,
nominatedWearers: [],
},
},
{
maxSupply: 1,
Expand All @@ -435,16 +388,8 @@ describe("DecentHats_0_1_0", () => {
isMutable: false,
wearer: ethers.ZeroAddress,
sablierParams: [],
isTermed: false,
termedParams: {
termEndDateTs: 0,
nominatedWearers: [],
},
},
],
hatsModuleFactory: mockHatsModuleFactoryAddress,
hatsElectionEligibilityImplementation:
mockHatsElectionEligibilityImplementationAddress,
},
]
),
Expand Down Expand Up @@ -527,11 +472,6 @@ describe("DecentHats_0_1_0", () => {
isMutable: false,
wearer: ethers.ZeroAddress,
sablierParams: [],
isTermed: false,
termedParams: {
termEndDateTs: 0,
nominatedWearers: [],
},
},
hats: [
{
Expand Down Expand Up @@ -570,16 +510,8 @@ describe("DecentHats_0_1_0", () => {
broker: { account: ethers.ZeroAddress, fee: 0 },
},
],
isTermed: false,
termedParams: {
termEndDateTs: 0,
nominatedWearers: [],
},
},
],
hatsModuleFactory: mockHatsModuleFactoryAddress,
hatsElectionEligibilityImplementation:
mockHatsElectionEligibilityImplementationAddress,
},
]
),
Expand Down
Loading

0 comments on commit 26d843f

Please sign in to comment.