Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/integration/mockErc20Approval.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ describe("mockErc20Approval", () => {

// check the approval
expect(approval.eq(mockApprovalAmount)).toBe(true);
}, 30000);
}, 120000);

it("[vyper] should mock the approval of an address for an ERC20 token", async () => {
const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52";
Expand Down Expand Up @@ -143,7 +143,7 @@ describe("mockErc20Approval", () => {

// check the approval
expect(approval.toString()).toBe(mockApprovalAmount);
}, 30000);
}, 120000);

it("should mock the approval of an address for an ERC20 token, using the fallback slot", async () => {
const tokenAddress = "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913";
Expand Down Expand Up @@ -209,7 +209,7 @@ describe("mockErc20Approval", () => {

// check the approval
expect(approval.eq(mockApprovalAmount)).toBe(true);
}, 30000);
}, 120000);


});
4 changes: 2 additions & 2 deletions tests/integration/mockErc20Balance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ describe("mockErc20Balance", () => {
);

expect(balance.eq(data.balance)).toBe(true);
}, 30000);
}, 120000);

it("[vyper] should mock the balance of an address for an ERC20 token", async () => {
const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52";
Expand Down Expand Up @@ -138,5 +138,5 @@ describe("mockErc20Balance", () => {
);

expect(balance.eq(data.balance)).toBe(true);
}, 30000);
}, 120000);
});
2 changes: 1 addition & 1 deletion tests/integration/mockPermit2Approval.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,5 @@ describe("mockErc20Approval", () => {

// check the approval
expect(approval.eq(mockApprovalAmount)).toBe(true);
}, 30000);
}, 120000);
});
4 changes: 2 additions & 2 deletions tests/unit/approvals/generateMockApprovalData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("generateMockApprovalData", () => {
expect(data.slot).toBeDefined();
expect(data.approval).toBeDefined();
expect(data.isVyper).toBe(false);
}, 30000);
}, 120000);

it("[vyper] should generate mock approval data", async () => {
const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52";
Expand All @@ -52,5 +52,5 @@ describe("generateMockApprovalData", () => {
expect(data.slot).toBeDefined();
expect(data.approval).toBeDefined();
expect(data.isVyper).toBe(true);
}, 30000);
}, 120000);
});
4 changes: 2 additions & 2 deletions tests/unit/approvals/getErc20Approval.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("getErc20Approval", () => {
expect(approval.toString()).toBe(
"1461501637330902918203684832716283019655931142975"
);
}, 30000);
}, 120000);

it("[vyper] should return the approval for the spender", async () => {
const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52";
Expand All @@ -40,5 +40,5 @@ describe("getErc20Approval", () => {
expect(approval.toString()).toBe(
"1461501637330902918203684832716283019655932542975"
);
}, 30000);
}, 120000);
});
4 changes: 2 additions & 2 deletions tests/unit/approvals/getErc20ApprovalStorageSlot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe("getErc20ApprovalStorageSlot", () => {
"0xf2dfc0227cd25ec2dc7c59717d57cc191c316c525cb2f0ea056315d3be9b1d39"
);
expect(isVyper).toBe(false);
}, 30000);
}, 120000);
it("[vyper] should return the slot for the approval", async () => {
const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52";
const ownerAddress = "0x0000c3Caa36E2d9A8CD5269C976eDe05018f0000";
Expand All @@ -49,5 +49,5 @@ describe("getErc20ApprovalStorageSlot", () => {
"0xfdea71adb068939bcb1c6cec44c1a3b422cf39891d820933d2cc03eb8a72f14c"
);
expect(isVyper).toBe(true);
}, 30000);
}, 120000);
});
4 changes: 2 additions & 2 deletions tests/unit/balances/generateMockBalanceData.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe("generateMockBalanceData", () => {
expect(data).toBeDefined();
expect(data.slot).toBeDefined();
expect(data.balance).toBeDefined();
}, 30000);
}, 120000);

it("[vyper] should generate mock balance data", async () => {
const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52";
Expand All @@ -47,5 +47,5 @@ describe("generateMockBalanceData", () => {
expect(data.slot).toBeDefined();
expect(data.balance).toBeDefined();
expect(data.isVyper).toBe(true);
}, 30000);
}, 120000);
});
4 changes: 2 additions & 2 deletions tests/unit/balances/getErc20Balance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe("getErc20Balance", () => {
);
expect(balance).toBeDefined();
expect(balance.toString()).toBe("8600000");
}, 30000);
}, 120000);

it("[vyper] should return the balance for the owner", async () => {
const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52";
Expand All @@ -32,5 +32,5 @@ describe("getErc20Balance", () => {
);
expect(balance).toBeDefined();
expect(balance.toString()).toBe("45868293345383087538");
}, 30000);
}, 120000);
});
4 changes: 2 additions & 2 deletions tests/unit/balances/getErc20BalanceStorageSlot.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe("getErc20BalanceStorageSlot", () => {
expect(slot).toBe("0x09");
expect(balance.toString()).toBe("8600000");
expect(isVyper).toBe(false);
}, 30000);
}, 120000);

it("[vyper] should return the slot and balance for the holder", async () => {
const tokenAddress = "0xD533a949740bb3306d119CC777fa900bA034cd52";
Expand All @@ -42,5 +42,5 @@ describe("getErc20BalanceStorageSlot", () => {
expect(slot).toBe("0x03");
expect(balance.toString()).toBe("45868293345383087538");
expect(isVyper).toBe(true);
}, 30000);
}, 120000);
});
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ describe("computePermit2AllowanceStorageSlot", () => {

expect(valueAtStorageSlot).toBeDefined()
expect(valueAtStorageSlot).toBe('0x00000000000001aa7be40acd0000000000000000000000000000000000000001')
}, 30000);
}, 120000);

});
4 changes: 2 additions & 2 deletions tests/unit/permit2/getPermit2Erc20Allowance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("getPermit2ERC20Allowance", () => {
expect(allowance).toBeDefined();
expect(allowance.toString()).toBe("1");

}, 30000);
}, 120000);

it("should return 0 allowance for permit2 ERC20 allowance for vitalik", async () => {
const tokenAddress = "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913";
Expand All @@ -39,6 +39,6 @@ describe("getPermit2ERC20Allowance", () => {
);
expect(allowance).toBeDefined();
expect(allowance.toString()).toBe("0");
}, 30000);
}, 120000);

});
Loading