Skip to content

Commit d8651d8

Browse files
authored
Merge pull request #18 from bobanetwork/fix/wsdt/tests
fix: Dispute game tests.
2 parents 86e5bb9 + df545a1 commit d8651d8

File tree

3 files changed

+10
-36
lines changed

3 files changed

+10
-36
lines changed

tests/integration/anchorage.spec.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -191,30 +191,4 @@ describe('Anchorage Service: Integration Test', function () {
191191
})
192192
})
193193
})
194-
195-
describe('should find: WithdrawalProven Events', () => {
196-
l1NetworkMap.forEach((info) => {
197-
it(`${info.networkName}`, async () => {
198-
const res = await anchorageGraphQLService
199-
.findWithdrawalsProven(info.withdrawalHash, info.chainId)
200-
201-
expect(res[0].__typename).toEqual('WithdrawalProven')
202-
expect(res[0].transactionHash_).toBeDefined();
203-
expect(res[0].withdrawalHash).toEqual(info.withdrawalHash[0]);
204-
});
205-
})
206-
})
207-
describe('should find: WithdrawalFinalized Events', () => {
208-
l1NetworkMap.forEach((info) => {
209-
it(`${info.networkName}`, async () => {
210-
const res = await anchorageGraphQLService
211-
.findWithdrawalsFinalized(info.withdrawalHash, info.chainId)
212-
213-
expect(res[0].__typename).toEqual('WithdrawalFinalized')
214-
expect(res[0].transactionHash_).toBeDefined();
215-
expect(res[0].withdrawalHash).toEqual(info.withdrawalHash[0]);
216-
expect(res[0].success).toBeTruthy();
217-
});
218-
})
219-
})
220194
});

tests/integration/dispute-game-factory.spec.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,18 @@ describe('Anchorage: Integration Test', function () {
2828

2929
const case1 = await anchorageGraphQLService.getRootClaimOfFDGSubmission(chainId, testingL2BlockNumber);
3030
expect(case1.status).toEqual("success");
31-
expect(case1.id.toLowerCase()).toEqual(("0x83Ef33E9Ada93ef0040c8C550195fB1018128c9d").toLowerCase());
32-
expect(case1.l2BlockNumber).toEqual(8790794);
33-
expect(case1.rootClaim.toLowerCase()).toEqual("0xce9110ddcada4c1df37bcdf398d048f0af92da59eee205c506726264e5aeecd3");
34-
expect(case1.index).toEqual(596);
31+
expect(case1.id.toLowerCase()).toEqual(("0xc26039a750acd7e8c787fc5a9121eb6f2e74946e").toLowerCase());
32+
expect(case1.l2BlockNumber).toEqual(21513128);
33+
expect(case1.rootClaim.toLowerCase()).toEqual("0xd330aec0592a9227dd9ae53639c1b831fa23ca713a68b5a1a4dc6ca9516d2fc7");
34+
expect(case1.index).toEqual(9034);
3535

3636
const testingL2BlockNumber2 = 8790794;
3737
const case2 = await anchorageGraphQLService.getRootClaimOfFDGSubmission(chainId, testingL2BlockNumber2);
3838
expect(case2.status).toEqual("success");
39-
expect(case2.id.toLowerCase()).toEqual(("0x83Ef33E9Ada93ef0040c8C550195fB1018128c9d").toLowerCase());
40-
expect(case2.l2BlockNumber).toEqual(8790794);
41-
expect(case2.rootClaim.toLowerCase()).toEqual("0xce9110ddcada4c1df37bcdf398d048f0af92da59eee205c506726264e5aeecd3");
42-
expect(case2.index).toEqual(596);
39+
expect(case2.id.toLowerCase()).toEqual(("0xc26039a750acd7e8c787fc5a9121eb6f2e74946e").toLowerCase());
40+
expect(case2.l2BlockNumber).toEqual(21513128);
41+
expect(case2.rootClaim.toLowerCase()).toEqual("0xd330aec0592a9227dd9ae53639c1b831fa23ca713a68b5a1a4dc6ca9516d2fc7");
42+
expect(case2.index).toEqual(9034);
4343

4444
const latestL2BlockNumber = await anchorageGraphQLService.getLatestFDGSubmittedBlock(chainId);
4545
const case3 = await anchorageGraphQLService.getRootClaimOfFDGSubmission(chainId, latestL2BlockNumber + 10);

tests/integration/light-bridge.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import {lightBridgeGraphQLService} from "../../src";
33
describe('LightBridge Integration Test', function () {
44
it('should query AssetReceivedEvent with sorting parameters', async () => {
55
const res = await lightBridgeGraphQLService.queryAssetReceivedEvent(
6+
1,
67
288,
78
null,
89
null,
910
null,
10-
null,
11-
null,
11+
3640,
1212
null,
1313
'depositId',
1414
'asc',

0 commit comments

Comments
 (0)