Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfantaholic committed Nov 30, 2023
1 parent cf0bd09 commit a768971
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 24 deletions.
2 changes: 1 addition & 1 deletion subgraphs/cauldrons/src/utils/is-liquidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ export function isLiquidate(event: ethereum.Event): boolean {
]);
return false;
}
}
}
24 changes: 13 additions & 11 deletions subgraphs/cauldrons/tests/helpers/create-log-remove-collateral.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export function createLogRemoveCollateral(): LogRemoveCollateral {
new ethereum.Log(
Address.fromString('0x9617b633EF905860D919b88E1d9d9a6191795341'),
[
Bytes.fromHexString("0x8ad4d3ff00da092c7ad9a573ea4f5f6a3dffc6712dc06d3f78f49b862297c402"),
Bytes.fromHexString("0x000000000000000000000000779b400527494c5c195680cf2d58302648481d50"),
Bytes.fromHexString("0x000000000000000000000000e0d6b751ab1b28098d581d1f2265e76e16a3f10e"),
Bytes.fromHexString('0x8ad4d3ff00da092c7ad9a573ea4f5f6a3dffc6712dc06d3f78f49b862297c402'),
Bytes.fromHexString('0x000000000000000000000000779b400527494c5c195680cf2d58302648481d50'),
Bytes.fromHexString('0x000000000000000000000000e0d6b751ab1b28098d581d1f2265e76e16a3f10e'),
],
Bytes.empty(),
Bytes.empty(),
Expand All @@ -28,14 +28,14 @@ export function createLogRemoveCollateral(): LogRemoveCollateral {
BigInt.fromI32(0),
BigInt.fromI32(0),
'0x',
null
null,
),
new ethereum.Log(
Address.fromString('0x9617b633EF905860D919b88E1d9d9a6191795341'),
[
Bytes.fromHexString("0xc8e512d8f188ca059984b5853d2bf653da902696b8512785b182b2c813789a6e"),
Bytes.fromHexString("0x000000000000000000000000e0d6b751ab1b28098d581d1f2265e76e16a3f10e"),
Bytes.fromHexString("0x000000000000000000000000779b400527494c5c195680cf2d58302648481d50"),
Bytes.fromHexString('0xc8e512d8f188ca059984b5853d2bf653da902696b8512785b182b2c813789a6e'),
Bytes.fromHexString('0x000000000000000000000000e0d6b751ab1b28098d581d1f2265e76e16a3f10e'),
Bytes.fromHexString('0x000000000000000000000000779b400527494c5c195680cf2d58302648481d50'),
],
Bytes.empty(),
Bytes.empty(),
Expand All @@ -45,9 +45,9 @@ export function createLogRemoveCollateral(): LogRemoveCollateral {
BigInt.fromI32(1),
BigInt.fromI32(0),
'0x',
null
)
]
null,
),
];

log.receipt = new ethereum.TransactionReceipt(
Bytes.fromHexString('0x834f743bfd0e544e508618fe61022dbc747c8eb68996bfbcb8f14041daf15d2c'),
Expand All @@ -60,7 +60,9 @@ export function createLogRemoveCollateral(): LogRemoveCollateral {
eventLogs,
BigInt.fromI32(1),
Bytes.empty(),
Bytes.fromHexString('0x00000000000000400000000000000804000000000000000000000001000040000000001000000000000000000200000000000008100000000000000000000802000000800000002000010000800000000000000000008000000000000100008800000008000020000000000000000000000000002000004000000000000080000000000210000000000000000002000010000000100500020000008000000000000000000000000000002000000000000000000000000080000000000000000800000000000000000004000000810000000000004010022000000000001000000000000000000000000000080000080000001010000000000000000000000000')
Bytes.fromHexString(
'0x00000000000000400000000000000804000000000000000000000001000040000000001000000000000000000200000000000008100000000000000000000802000000800000002000010000800000000000000000008000000000000100008800000008000020000000000000000000000000002000004000000000000080000000000210000000000000000002000010000000100500020000008000000000000000000000000000002000000000000000000000000080000000000000000800000000000000000004000000810000000000004010022000000000001000000000000000000000000000080000080000001010000000000000000000000000',
),
);

log.parameters = new Array();
Expand Down
26 changes: 14 additions & 12 deletions subgraphs/cauldrons/tests/helpers/create-log-repay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ export function createLogRepay(): LogRepay {
log.block.number = BLOCK_NUMBER;
log.block.timestamp = BLOCK_TIMESTAMP;
log.address = CLONE_ADDRESS;

log.logIndex = BigInt.fromI32(1);

const eventLogs: ethereum.Log[] = [
new ethereum.Log(
Address.fromString('0x9617b633EF905860D919b88E1d9d9a6191795341'),
[
Bytes.fromHexString("0x8ad4d3ff00da092c7ad9a573ea4f5f6a3dffc6712dc06d3f78f49b862297c402"),
Bytes.fromHexString("0x000000000000000000000000779b400527494c5c195680cf2d58302648481d50"),
Bytes.fromHexString("0x000000000000000000000000e0d6b751ab1b28098d581d1f2265e76e16a3f10e"),
Bytes.fromHexString('0x8ad4d3ff00da092c7ad9a573ea4f5f6a3dffc6712dc06d3f78f49b862297c402'),
Bytes.fromHexString('0x000000000000000000000000779b400527494c5c195680cf2d58302648481d50'),
Bytes.fromHexString('0x000000000000000000000000e0d6b751ab1b28098d581d1f2265e76e16a3f10e'),
],
Bytes.empty(),
Bytes.empty(),
Expand All @@ -28,14 +28,14 @@ export function createLogRepay(): LogRepay {
BigInt.fromI32(0),
BigInt.fromI32(0),
'0x',
null
null,
),
new ethereum.Log(
Address.fromString('0x9617b633EF905860D919b88E1d9d9a6191795341'),
[
Bytes.fromHexString("0xc8e512d8f188ca059984b5853d2bf653da902696b8512785b182b2c813789a6e"),
Bytes.fromHexString("0x000000000000000000000000e0d6b751ab1b28098d581d1f2265e76e16a3f10e"),
Bytes.fromHexString("0x000000000000000000000000779b400527494c5c195680cf2d58302648481d50"),
Bytes.fromHexString('0xc8e512d8f188ca059984b5853d2bf653da902696b8512785b182b2c813789a6e'),
Bytes.fromHexString('0x000000000000000000000000e0d6b751ab1b28098d581d1f2265e76e16a3f10e'),
Bytes.fromHexString('0x000000000000000000000000779b400527494c5c195680cf2d58302648481d50'),
],
Bytes.empty(),
Bytes.empty(),
Expand All @@ -45,9 +45,9 @@ export function createLogRepay(): LogRepay {
BigInt.fromI32(1),
BigInt.fromI32(0),
'0x',
null
)
]
null,
),
];

log.receipt = new ethereum.TransactionReceipt(
Bytes.fromHexString('0x834f743bfd0e544e508618fe61022dbc747c8eb68996bfbcb8f14041daf15d2c'),
Expand All @@ -60,7 +60,9 @@ export function createLogRepay(): LogRepay {
eventLogs,
BigInt.fromI32(1),
Bytes.empty(),
Bytes.fromHexString('0x00000000000000400000000000000804000000000000000000000001000040000000001000000000000000000200000000000008100000000000000000000802000000800000002000010000800000000000000000008000000000000100008800000008000020000000000000000000000000002000004000000000000080000000000210000000000000000002000010000000100500020000008000000000000000000000000000002000000000000000000000000080000000000000000800000000000000000004000000810000000000004010022000000000001000000000000000000000000000080000080000001010000000000000000000000000')
Bytes.fromHexString(
'0x00000000000000400000000000000804000000000000000000000001000040000000001000000000000000000200000000000008100000000000000000000802000000800000002000010000800000000000000000008000000000000100008800000008000020000000000000000000000000002000004000000000000080000000000210000000000000000002000010000000100500020000008000000000000000000000000000002000000000000000000000000080000000000000000800000000000000000004000000810000000000004010022000000000001000000000000000000000000000080000080000001010000000000000000000000000',
),
);

log.parameters = new Array();
Expand Down

0 comments on commit a768971

Please sign in to comment.