Skip to content

Commit

Permalink
update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
DarksightKellar committed Oct 25, 2024
1 parent 4b6f994 commit a9e6a47
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"semi": true,
"arrowParens": "avoid",
"singleAttributePerLine": true,
"trailingComma": "all",
"overrides": [
{
"files": "*.sol",
Expand Down
36 changes: 18 additions & 18 deletions test/DecentHats_0_1_0.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ describe('DecentHats_0_1_0', () => {
hre.ethers.ZeroAddress,
0,
hre.ethers.ZeroAddress,
]
],
);

const saltNum = BigInt(`0x${Buffer.from(hre.ethers.randomBytes(32)).toString('hex')}`);
Expand All @@ -85,14 +85,14 @@ describe('DecentHats_0_1_0', () => {
createGnosisSetupCalldata,
saltNum,
gnosisSafeL2SingletonAddress,
gnosisSafeProxyFactory
gnosisSafeProxyFactory,
);
gnosisSafeAddress = predictedGnosisSafeAddress;

await gnosisSafeProxyFactory.createProxyWithNonce(
gnosisSafeL2SingletonAddress,
createGnosisSetupCalldata,
saltNum
saltNum,
);

gnosisSafe = GnosisSafeL2__factory.connect(predictedGnosisSafeAddress, deployer);
Expand All @@ -116,7 +116,7 @@ describe('DecentHats_0_1_0', () => {
to: gnosisSafeAddress,
transactionData: GnosisSafeL2__factory.createInterface().encodeFunctionData(
'enableModule',
[decentHatsAddress]
[decentHatsAddress],
),
signers: [dao],
});
Expand Down Expand Up @@ -178,7 +178,7 @@ describe('DecentHats_0_1_0', () => {
},
],
},
]
],
),
signers: [dao],
});
Expand Down Expand Up @@ -227,7 +227,7 @@ describe('DecentHats_0_1_0', () => {
},
hats: [],
},
]
],
),
signers: [dao],
});
Expand Down Expand Up @@ -259,7 +259,7 @@ describe('DecentHats_0_1_0', () => {
i,
erc6551Registry,
mockHatsAccountImplementationAddress,
mockHatsAddress
mockHatsAddress,
);

expect(await topHatAccount.tokenId()).eq(i);
Expand Down Expand Up @@ -331,7 +331,7 @@ describe('DecentHats_0_1_0', () => {
},
],
},
]
],
),
signers: [dao],
});
Expand All @@ -355,7 +355,7 @@ describe('DecentHats_0_1_0', () => {

it('Creates a Sablier stream for the hat with stream parameters', async () => {
const streamCreatedEvents = await mockSablier.queryFilter(
mockSablier.filters.StreamCreated()
mockSablier.filters.StreamCreated(),
);
expect(streamCreatedEvents.length).to.equal(1);

Expand All @@ -367,14 +367,14 @@ describe('DecentHats_0_1_0', () => {

it('Does not create a Sablier stream for hats without stream parameters', async () => {
const streamCreatedEvents = await mockSablier.queryFilter(
mockSablier.filters.StreamCreated()
mockSablier.filters.StreamCreated(),
);
expect(streamCreatedEvents.length).to.equal(1); // Only one stream should be created
});

it('Creates a Sablier stream with correct timestamps', async () => {
const streamCreatedEvents = await mockSablier.queryFilter(
mockSablier.filters.StreamCreated()
mockSablier.filters.StreamCreated(),
);
expect(streamCreatedEvents.length).to.equal(1);

Expand Down Expand Up @@ -453,15 +453,15 @@ describe('DecentHats_0_1_0', () => {
},
],
},
]
],
),
signers: [dao],
});
});

it('Creates multiple Sablier streams for a single hat', async () => {
const streamCreatedEvents = await mockSablier.queryFilter(
mockSablier.filters.StreamCreated()
mockSablier.filters.StreamCreated(),
);
expect(streamCreatedEvents.length).to.equal(2);

Expand All @@ -478,7 +478,7 @@ describe('DecentHats_0_1_0', () => {

it('Creates streams with correct parameters', async () => {
const streamCreatedEvents = await mockSablier.queryFilter(
mockSablier.filters.StreamCreated()
mockSablier.filters.StreamCreated(),
);

const stream1 = await mockSablier.getStream(streamCreatedEvents[0].args.streamId);
Expand All @@ -494,7 +494,7 @@ describe('DecentHats_0_1_0', () => {

it('Creates streams with correct timestamps', async () => {
const streamCreatedEvents = await mockSablier.queryFilter(
mockSablier.filters.StreamCreated()
mockSablier.filters.StreamCreated(),
);

const stream1 = await mockSablier.getStream(streamCreatedEvents[0].args.streamId);
Expand Down Expand Up @@ -543,7 +543,7 @@ describe('DecentHats_0_1_0', () => {
},
],
},
]
],
),
signers: [dao],
});
Expand Down Expand Up @@ -586,7 +586,7 @@ describe('DecentHats_0_1_0', () => {
await erc6551Registry.getAddress(),
mockHatsAccountImplementationAddress,
'0x5d0e6ce4fd951366cc55da93f6e79d8b81483109d79676a04bcc2bed6a4b5072',
]
],
),
signers: [dao],
});
Expand All @@ -595,7 +595,7 @@ describe('DecentHats_0_1_0', () => {
it('Emits an ExecutionSuccess event', async () => {
await expect(createHatAndAccountAndMintAndStreamsTx).to.emit(
gnosisSafe,
'ExecutionSuccess'
'ExecutionSuccess',
);
});

Expand Down

0 comments on commit a9e6a47

Please sign in to comment.