From 718a6c9784a7973de64f402de667797657ab29cc Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 15:14:58 +0100 Subject: [PATCH 01/22] fix: first try --- .../tests/api/accounts.test.ts | 187 +++++++++++++++++- 1 file changed, 186 insertions(+), 1 deletion(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 534ab7e184..e17416cd35 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -2,15 +2,17 @@ import * as request from "supertest"; import { environment } from "../../src/config"; import { localConfig } from "../../src/config"; -import { Token, Wallets } from "../../src/entities"; +import { Buffer, Token, Wallets } from "../../src/entities"; import { Helper } from "../../src/helper"; describe("API module: Account", () => { jest.setTimeout(localConfig.standardTimeout); const helper = new Helper(); + const bufferFile = "src/playbook/"; let apiRoute: string; let response; + let txHash: string; //@id1704 it("Verify /api?module=account&action=balancemulti response", async () => { @@ -102,4 +104,187 @@ describe("API module: Account", () => { expect(typeof response.body.result[0].functionName).toStrictEqual("string"); }); }); + + //@id1852 + it("Verify /api?module=account&action=txlistinternal&address=", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + const blockNumber = blocks.body.items[0].number; + apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; + response = await helper.performGETrequest(apiRoute); + + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result.length).toBeGreaterThan(1); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toStrictEqual("string"); + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].value).toStrictEqual("string"); + expect(typeof response.body.result[0].gas).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].type).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toBeTruthy(); + expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].fee).toStrictEqual("string"); + expect(typeof response.body.result[0].l1BatchNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].traceId).toBeTruthy(); + expect(typeof response.body.result[0].transactionType).toStrictEqual("string"); + expect(typeof response.body.result[0].isError).toStrictEqual("string"); + expect(typeof response.body.result[0].errCode).toStrictEqual("string"); + }); + }); + + //@id1804 + it("Verify /api?module=account&action=txlistinternal", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + const blockNumber = blocks.body.items[0].number; + apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=1`; + response = await helper.performGETrequest(apiRoute); + + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result.length).toBeGreaterThan(1); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toBeTruthy(); //can be null + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].value).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].type).toStrictEqual("string"); + expect(typeof response.body.result[0].traceId).toBeTruthy(); + expect(typeof response.body.result[0].isError).toStrictEqual("string"); + expect(typeof response.body.result[0].errCode).toStrictEqual("string"); + }); + }); + + //@id1805 + it("Verify /api?module=account&action=tokentx", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + const blockNumber = blocks.body.items[0].number; + apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; + response = await helper.performGETrequest(apiRoute); + + console.log(response.body); + + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result.length).toBeGreaterThan(1); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toStrictEqual("string"); + expect(typeof response.body.result[0].nonce).toStrictEqual("string"); + expect(typeof response.body.result[0].blockHash).toStrictEqual("string"); + expect(typeof response.body.result[0].transactionIndex).toStrictEqual("string"); + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].value).toStrictEqual("string"); + expect(typeof response.body.result[0].tokenName).toStrictEqual("string"); + expect(typeof response.body.result[0].tokenSymbol).toStrictEqual("string"); + expect(typeof response.body.result[0].tokenDecimal).toStrictEqual("string"); + expect(typeof response.body.result[0].gas).toStrictEqual("string"); + expect(typeof response.body.result[0].gasPrice).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toStrictEqual("string"); + expect(typeof response.body.result[0].cumulativeGasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toBeTruthy(); + expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].confirmations).toStrictEqual("string"); + expect(typeof response.body.result[0].fee).toStrictEqual("string"); + expect(typeof response.body.result[0].l1BatchNumber).toBeTruthy(); + expect(typeof response.body.result[0].transactionType).toStrictEqual("string"); + }); + }); + + //@id1806 + + it("Verify /api?module=account&action=tokennfttx", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + const blockNumber = blocks.body.items[0].number; + const nftAddress = await helper.getStringFromFile(bufferFile + Buffer.NFTtoL2); + apiRoute = `/api?module=account&action=tokennfttx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${nftAddress}&address=${nftAddress}`; + response = await helper.performGETrequest(apiRoute); + + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toStrictEqual("string"); + expect(typeof response.body.result[0].nonce).toStrictEqual("string"); + expect(typeof response.body.result[0].blockHash).toStrictEqual("string"); + expect(typeof response.body.result[0].transactionIndex).toStrictEqual("string"); + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].tokenID).toStrictEqual("string"); + expect(typeof response.body.result[0].gas).toStrictEqual("string"); + expect(typeof response.body.result[0].gasPrice).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toStrictEqual("string"); + expect(typeof response.body.result[0].cumulativeGasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].confirmations).toStrictEqual("string"); + expect(typeof response.body.result[0].fee).toStrictEqual("string"); + expect(typeof response.body.result[0].l1BatchNumber).toBeTruthy(); + expect(typeof response.body.result[0].transactionType).toStrictEqual("string"); + }); + }); + + //@id1807 + it("Verify /api?module=account&action=getminedblocks", async () => { + await helper.retryTestAction(async () => { + apiRoute = `/api?module=account&action=getminedblocks&page=1&offset=10&address=0x0000000000000000000000000000000000000000`; + response = await helper.performGETrequest(apiRoute); + + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result.length).toBeGreaterThan(1); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].blockReward).toStrictEqual("string"); + }); + }); + + //@id1854 + it("Verify /api?module=account&action=txlistinternal&txhash=", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + //txHash = await helper.getStringFromFile(bufferFile + Buffer.txEthTransfer); + const blockNumber = blocks.body.items[0].number; + apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&txhash=0x2fe80424c49a9d6f05561947fbc1e6b77bf8982f08dc57883d1ee083c534d30d`; + response = await helper.performGETrequest(apiRoute); + + console.log(txHash); + console.log(response.body); + + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result.length).toBeGreaterThan(1); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toStrictEqual("string"); + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].value).toStrictEqual("string"); + expect(typeof response.body.result[0].gas).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].type).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toBeTruthy(); + expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].fee).toStrictEqual("string"); + expect(typeof response.body.result[0].l1BatchNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].traceId).toBeTruthy(); + expect(typeof response.body.result[0].isError).toStrictEqual("string"); + }); + }); }); From 8076787bdb8eba2f123dee71302bc21c0c8a8f39 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 15:51:53 +0100 Subject: [PATCH 02/22] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index e17416cd35..30b502b696 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -255,15 +255,14 @@ describe("API module: Account", () => { }); //@id1854 - it("Verify /api?module=account&action=txlistinternal&txhash=", async () => { + xit("Verify /api?module=account&action=txlistinternal&txhash=", async () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); //txHash = await helper.getStringFromFile(bufferFile + Buffer.txEthTransfer); const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&txhash=0x2fe80424c49a9d6f05561947fbc1e6b77bf8982f08dc57883d1ee083c534d30d`; + apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&txhash=null`; response = await helper.performGETrequest(apiRoute); - console.log(txHash); console.log(response.body); expect(response.status).toBe(200); From 46abe46c044780b50cae6ff2fe9282df35dd61a9 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 16:09:50 +0100 Subject: [PATCH 03/22] fix: remove console logs --- packages/integration-tests/tests/api/accounts.test.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 30b502b696..a6c84541eb 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -171,8 +171,6 @@ describe("API module: Account", () => { apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; response = await helper.performGETrequest(apiRoute); - console.log(response.body); - expect(response.status).toBe(200); expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); From 5ca757e96c87fd9848b8cfc4c26977a72a6021de Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 16:40:47 +0100 Subject: [PATCH 04/22] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index a6c84541eb..bea4015ca2 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -168,7 +168,7 @@ describe("API module: Account", () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; + apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Token.ETHER_ERC20_Address}`; response = await helper.performGETrequest(apiRoute); expect(response.status).toBe(200); From c04f733b0ed942266f4c45d6cea1b395439dc1e0 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 16:46:33 +0100 Subject: [PATCH 05/22] fix: new one --- .../tests/api/accounts.test.ts | 33 ------------------- 1 file changed, 33 deletions(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index bea4015ca2..a22b215996 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -251,37 +251,4 @@ describe("API module: Account", () => { expect(typeof response.body.result[0].blockReward).toStrictEqual("string"); }); }); - - //@id1854 - xit("Verify /api?module=account&action=txlistinternal&txhash=", async () => { - await helper.retryTestAction(async () => { - const blocks = await request(environment.blockExplorerAPI).get("/blocks"); - //txHash = await helper.getStringFromFile(bufferFile + Buffer.txEthTransfer); - const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&txhash=null`; - response = await helper.performGETrequest(apiRoute); - - console.log(response.body); - - expect(response.status).toBe(200); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(response.body.result.length).toBeGreaterThan(1); - expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); - expect(typeof response.body.result[0].hash).toStrictEqual("string"); - expect(typeof response.body.result[0].from).toStrictEqual("string"); - expect(typeof response.body.result[0].to).toStrictEqual("string"); - expect(typeof response.body.result[0].value).toStrictEqual("string"); - expect(typeof response.body.result[0].gas).toStrictEqual("string"); - expect(typeof response.body.result[0].input).toStrictEqual("string"); - expect(typeof response.body.result[0].type).toStrictEqual("string"); - expect(typeof response.body.result[0].contractAddress).toBeTruthy(); - expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); - expect(typeof response.body.result[0].fee).toStrictEqual("string"); - expect(typeof response.body.result[0].l1BatchNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].traceId).toBeTruthy(); - expect(typeof response.body.result[0].isError).toStrictEqual("string"); - }); - }); }); From 5fce2ab094d79e9f4a455316389e6821cd1fb702 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 17:23:40 +0100 Subject: [PATCH 06/22] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index a22b215996..a8bd799015 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -208,6 +208,7 @@ describe("API module: Account", () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; const nftAddress = await helper.getStringFromFile(bufferFile + Buffer.NFTtoL2); + console.log(nftAddress); apiRoute = `/api?module=account&action=tokennfttx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${nftAddress}&address=${nftAddress}`; response = await helper.performGETrequest(apiRoute); From 31fd212c53b194407fa758004bc3bb3d34e1ae5f Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 17:42:24 +0100 Subject: [PATCH 07/22] fix: add playbook --- packages/integration-tests/tests/api/accounts.test.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index a8bd799015..e29cad8b84 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -4,16 +4,23 @@ import { environment } from "../../src/config"; import { localConfig } from "../../src/config"; import { Buffer, Token, Wallets } from "../../src/entities"; import { Helper } from "../../src/helper"; +import { Playbook } from "../../src/playbook/playbook"; describe("API module: Account", () => { jest.setTimeout(localConfig.standardTimeout); const helper = new Helper(); + const playbook = new Playbook(); const bufferFile = "src/playbook/"; let apiRoute: string; let response; let txHash: string; + describe("/api?module=account", () => { + beforeAll(async () => { + await playbook.deployNFTtoL2(); + }); + //@id1704 it("Verify /api?module=account&action=balancemulti response", async () => { await helper.retryTestAction(async () => { From e4864f06d8644f3d0e0c3950d9dae87679aec089 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 17:51:54 +0100 Subject: [PATCH 08/22] fix: new one --- .../tests/api/accounts.test.ts | 421 +++++++++--------- 1 file changed, 211 insertions(+), 210 deletions(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index e29cad8b84..57c02bfdce 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -21,242 +21,243 @@ describe("API module: Account", () => { await playbook.deployNFTtoL2(); }); - //@id1704 - it("Verify /api?module=account&action=balancemulti response", async () => { - await helper.retryTestAction(async () => { - apiRoute = `/api?module=account&action=balancemulti&address=${Wallets.richWalletAddress},${Wallets.mainWalletAddress}`; - const richWalletBalance = await helper.getBalanceETH(Wallets.richWalletAddress, "L2"); - const mainWalletBalance = await helper.getBalanceETH(Wallets.mainWalletAddress, "L2"); - const richWalletLowerCase = Wallets.richWalletAddress.toLowerCase(); - const mainWalletLowerCase = Wallets.mainWalletAddress.toLowerCase(); - response = await helper.performGETrequest(apiRoute); + //@id1704 + it("Verify /api?module=account&action=balancemulti response", async () => { + await helper.retryTestAction(async () => { + apiRoute = `/api?module=account&action=balancemulti&address=${Wallets.richWalletAddress},${Wallets.mainWalletAddress}`; + const richWalletBalance = await helper.getBalanceETH(Wallets.richWalletAddress, "L2"); + const mainWalletBalance = await helper.getBalanceETH(Wallets.mainWalletAddress, "L2"); + const richWalletLowerCase = Wallets.richWalletAddress.toLowerCase(); + const mainWalletLowerCase = Wallets.mainWalletAddress.toLowerCase(); + response = await helper.performGETrequest(apiRoute); - expect(response.status).toBe(200); - expect(response.body.result.length).toBeGreaterThan(1); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(response.body.result[0]).toStrictEqual( - expect.objectContaining({ account: richWalletLowerCase, balance: richWalletBalance }) - ); - expect(response.body.result[1]).toStrictEqual( - expect.objectContaining({ account: mainWalletLowerCase, balance: mainWalletBalance }) - ); + expect(response.status).toBe(200); + expect(response.body.result.length).toBeGreaterThan(1); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result[0]).toStrictEqual( + expect.objectContaining({ account: richWalletLowerCase, balance: richWalletBalance }) + ); + expect(response.body.result[1]).toStrictEqual( + expect.objectContaining({ account: mainWalletLowerCase, balance: mainWalletBalance }) + ); + }); }); - }); - //@id1703 - it("Verify /api?module=account&action=balance response", async () => { - await helper.retryTestAction(async () => { - const balance = await helper.getBalanceETH(Wallets.richWalletAddress, "L2"); - apiRoute = `/api?module=account&action=balance&address=${Wallets.richWalletAddress}`; - response = await helper.performGETrequest(apiRoute); + //@id1703 + it("Verify /api?module=account&action=balance response", async () => { + await helper.retryTestAction(async () => { + const balance = await helper.getBalanceETH(Wallets.richWalletAddress, "L2"); + apiRoute = `/api?module=account&action=balance&address=${Wallets.richWalletAddress}`; + response = await helper.performGETrequest(apiRoute); - expect(response.status).toBe(200); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(response.body).toStrictEqual(expect.objectContaining({ result: balance })); + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body).toStrictEqual(expect.objectContaining({ result: balance })); + }); }); - }); - //@id1705 - it("Verify /api?module=account&action=tokenbalance response", async () => { - await helper.retryTestAction(async () => { - apiRoute = `/api?module=account&action=tokenbalance&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; - response = await helper.performGETrequest(apiRoute); + //@id1705 + it("Verify /api?module=account&action=tokenbalance response", async () => { + await helper.retryTestAction(async () => { + apiRoute = `/api?module=account&action=tokenbalance&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; + response = await helper.performGETrequest(apiRoute); - expect(response.status).toBe(200); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(typeof response.body.result).toStrictEqual("string"); + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(typeof response.body.result).toStrictEqual("string"); + }); }); - }); - //@id1702 - it("Verify /api?module=account&action=txlist response", async () => { - await helper.retryTestAction(async () => { - const blocks = await request(environment.blockExplorerAPI).get("/blocks"); - const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=txlist&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; - response = await helper.performGETrequest(apiRoute); + //@id1702 + it("Verify /api?module=account&action=txlist response", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + const blockNumber = blocks.body.items[0].number; + apiRoute = `/api?module=account&action=txlist&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; + response = await helper.performGETrequest(apiRoute); - expect(response.status).toBe(200); - expect(response.body.result.length).toBeGreaterThan(1); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); - expect(typeof response.body.result[0].hash).toStrictEqual("string"); - expect(typeof response.body.result[0].nonce).toStrictEqual("string"); - expect(typeof response.body.result[0].blockHash).toStrictEqual("string"); - expect(typeof response.body.result[0].transactionIndex).toStrictEqual("string"); - expect(typeof response.body.result[0].from).toStrictEqual("string"); - expect(typeof response.body.result[0].to).toStrictEqual("string"); - expect(typeof response.body.result[0].value).toStrictEqual("string"); - expect(typeof response.body.result[0].gas).toStrictEqual("string"); - expect(typeof response.body.result[0].gasPrice).toStrictEqual("string"); - expect(typeof response.body.result[0].isError).toStrictEqual("string"); - expect(typeof response.body.result[0].txreceipt_status).toStrictEqual("string"); - expect(typeof response.body.result[0].input).toStrictEqual("string"); - expect(typeof response.body.result[0].contractAddress).toBeTruthy(); // can be null - expect(typeof response.body.result[0].cumulativeGasUsed).toStrictEqual("string"); - expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); - expect(typeof response.body.result[0].confirmations).toStrictEqual("string"); - expect(typeof response.body.result[0].fee).toStrictEqual("string"); - expect(typeof response.body.result[0].commitTxHash).toStrictEqual("string"); - expect(typeof response.body.result[0].proveTxHash).toStrictEqual("string"); - expect(typeof response.body.result[0].executeTxHash).toStrictEqual("string"); - expect(typeof response.body.result[0].isL1Originated).toStrictEqual("string"); - expect(typeof response.body.result[0].l1BatchNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].methodId).toStrictEqual("string"); - expect(typeof response.body.result[0].functionName).toStrictEqual("string"); + expect(response.status).toBe(200); + expect(response.body.result.length).toBeGreaterThan(1); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toStrictEqual("string"); + expect(typeof response.body.result[0].nonce).toStrictEqual("string"); + expect(typeof response.body.result[0].blockHash).toStrictEqual("string"); + expect(typeof response.body.result[0].transactionIndex).toStrictEqual("string"); + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].value).toStrictEqual("string"); + expect(typeof response.body.result[0].gas).toStrictEqual("string"); + expect(typeof response.body.result[0].gasPrice).toStrictEqual("string"); + expect(typeof response.body.result[0].isError).toStrictEqual("string"); + expect(typeof response.body.result[0].txreceipt_status).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toBeTruthy(); // can be null + expect(typeof response.body.result[0].cumulativeGasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].confirmations).toStrictEqual("string"); + expect(typeof response.body.result[0].fee).toStrictEqual("string"); + expect(typeof response.body.result[0].commitTxHash).toStrictEqual("string"); + expect(typeof response.body.result[0].proveTxHash).toStrictEqual("string"); + expect(typeof response.body.result[0].executeTxHash).toStrictEqual("string"); + expect(typeof response.body.result[0].isL1Originated).toStrictEqual("string"); + expect(typeof response.body.result[0].l1BatchNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].methodId).toStrictEqual("string"); + expect(typeof response.body.result[0].functionName).toStrictEqual("string"); + }); }); - }); - //@id1852 - it("Verify /api?module=account&action=txlistinternal&address=", async () => { - await helper.retryTestAction(async () => { - const blocks = await request(environment.blockExplorerAPI).get("/blocks"); - const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; - response = await helper.performGETrequest(apiRoute); + //@id1852 + it("Verify /api?module=account&action=txlistinternal&address=", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + const blockNumber = blocks.body.items[0].number; + apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; + response = await helper.performGETrequest(apiRoute); - expect(response.status).toBe(200); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(response.body.result.length).toBeGreaterThan(1); - expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); - expect(typeof response.body.result[0].hash).toStrictEqual("string"); - expect(typeof response.body.result[0].from).toStrictEqual("string"); - expect(typeof response.body.result[0].to).toStrictEqual("string"); - expect(typeof response.body.result[0].value).toStrictEqual("string"); - expect(typeof response.body.result[0].gas).toStrictEqual("string"); - expect(typeof response.body.result[0].input).toStrictEqual("string"); - expect(typeof response.body.result[0].type).toStrictEqual("string"); - expect(typeof response.body.result[0].contractAddress).toBeTruthy(); - expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); - expect(typeof response.body.result[0].fee).toStrictEqual("string"); - expect(typeof response.body.result[0].l1BatchNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].traceId).toBeTruthy(); - expect(typeof response.body.result[0].transactionType).toStrictEqual("string"); - expect(typeof response.body.result[0].isError).toStrictEqual("string"); - expect(typeof response.body.result[0].errCode).toStrictEqual("string"); + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result.length).toBeGreaterThan(1); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toStrictEqual("string"); + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].value).toStrictEqual("string"); + expect(typeof response.body.result[0].gas).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].type).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toBeTruthy(); + expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].fee).toStrictEqual("string"); + expect(typeof response.body.result[0].l1BatchNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].traceId).toBeTruthy(); + expect(typeof response.body.result[0].transactionType).toStrictEqual("string"); + expect(typeof response.body.result[0].isError).toStrictEqual("string"); + expect(typeof response.body.result[0].errCode).toStrictEqual("string"); + }); }); - }); - //@id1804 - it("Verify /api?module=account&action=txlistinternal", async () => { - await helper.retryTestAction(async () => { - const blocks = await request(environment.blockExplorerAPI).get("/blocks"); - const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=1`; - response = await helper.performGETrequest(apiRoute); + //@id1804 + it("Verify /api?module=account&action=txlistinternal", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + const blockNumber = blocks.body.items[0].number; + apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=1`; + response = await helper.performGETrequest(apiRoute); - expect(response.status).toBe(200); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(response.body.result.length).toBeGreaterThan(1); - expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); - expect(typeof response.body.result[0].hash).toBeTruthy(); //can be null - expect(typeof response.body.result[0].from).toStrictEqual("string"); - expect(typeof response.body.result[0].to).toStrictEqual("string"); - expect(typeof response.body.result[0].value).toStrictEqual("string"); - expect(typeof response.body.result[0].input).toStrictEqual("string"); - expect(typeof response.body.result[0].type).toStrictEqual("string"); - expect(typeof response.body.result[0].traceId).toBeTruthy(); - expect(typeof response.body.result[0].isError).toStrictEqual("string"); - expect(typeof response.body.result[0].errCode).toStrictEqual("string"); + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result.length).toBeGreaterThan(1); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toBeTruthy(); //can be null + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].value).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].type).toStrictEqual("string"); + expect(typeof response.body.result[0].traceId).toBeTruthy(); + expect(typeof response.body.result[0].isError).toStrictEqual("string"); + expect(typeof response.body.result[0].errCode).toStrictEqual("string"); + }); }); - }); - //@id1805 - it("Verify /api?module=account&action=tokentx", async () => { - await helper.retryTestAction(async () => { - const blocks = await request(environment.blockExplorerAPI).get("/blocks"); - const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Token.ETHER_ERC20_Address}`; - response = await helper.performGETrequest(apiRoute); + //@id1805 + it("Verify /api?module=account&action=tokentx", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + const blockNumber = blocks.body.items[0].number; + apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Token.ETHER_ERC20_Address}`; + response = await helper.performGETrequest(apiRoute); - expect(response.status).toBe(200); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(response.body.result.length).toBeGreaterThan(1); - expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); - expect(typeof response.body.result[0].hash).toStrictEqual("string"); - expect(typeof response.body.result[0].nonce).toStrictEqual("string"); - expect(typeof response.body.result[0].blockHash).toStrictEqual("string"); - expect(typeof response.body.result[0].transactionIndex).toStrictEqual("string"); - expect(typeof response.body.result[0].from).toStrictEqual("string"); - expect(typeof response.body.result[0].to).toStrictEqual("string"); - expect(typeof response.body.result[0].value).toStrictEqual("string"); - expect(typeof response.body.result[0].tokenName).toStrictEqual("string"); - expect(typeof response.body.result[0].tokenSymbol).toStrictEqual("string"); - expect(typeof response.body.result[0].tokenDecimal).toStrictEqual("string"); - expect(typeof response.body.result[0].gas).toStrictEqual("string"); - expect(typeof response.body.result[0].gasPrice).toStrictEqual("string"); - expect(typeof response.body.result[0].input).toStrictEqual("string"); - expect(typeof response.body.result[0].contractAddress).toStrictEqual("string"); - expect(typeof response.body.result[0].cumulativeGasUsed).toStrictEqual("string"); - expect(typeof response.body.result[0].contractAddress).toBeTruthy(); - expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); - expect(typeof response.body.result[0].confirmations).toStrictEqual("string"); - expect(typeof response.body.result[0].fee).toStrictEqual("string"); - expect(typeof response.body.result[0].l1BatchNumber).toBeTruthy(); - expect(typeof response.body.result[0].transactionType).toStrictEqual("string"); + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result.length).toBeGreaterThan(1); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toStrictEqual("string"); + expect(typeof response.body.result[0].nonce).toStrictEqual("string"); + expect(typeof response.body.result[0].blockHash).toStrictEqual("string"); + expect(typeof response.body.result[0].transactionIndex).toStrictEqual("string"); + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].value).toStrictEqual("string"); + expect(typeof response.body.result[0].tokenName).toStrictEqual("string"); + expect(typeof response.body.result[0].tokenSymbol).toStrictEqual("string"); + expect(typeof response.body.result[0].tokenDecimal).toStrictEqual("string"); + expect(typeof response.body.result[0].gas).toStrictEqual("string"); + expect(typeof response.body.result[0].gasPrice).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toStrictEqual("string"); + expect(typeof response.body.result[0].cumulativeGasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toBeTruthy(); + expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].confirmations).toStrictEqual("string"); + expect(typeof response.body.result[0].fee).toStrictEqual("string"); + expect(typeof response.body.result[0].l1BatchNumber).toBeTruthy(); + expect(typeof response.body.result[0].transactionType).toStrictEqual("string"); + }); }); - }); - //@id1806 + //@id1806 - it("Verify /api?module=account&action=tokennfttx", async () => { - await helper.retryTestAction(async () => { - const blocks = await request(environment.blockExplorerAPI).get("/blocks"); - const blockNumber = blocks.body.items[0].number; - const nftAddress = await helper.getStringFromFile(bufferFile + Buffer.NFTtoL2); - console.log(nftAddress); - apiRoute = `/api?module=account&action=tokennfttx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${nftAddress}&address=${nftAddress}`; - response = await helper.performGETrequest(apiRoute); + it("Verify /api?module=account&action=tokennfttx", async () => { + await helper.retryTestAction(async () => { + const blocks = await request(environment.blockExplorerAPI).get("/blocks"); + const blockNumber = blocks.body.items[0].number; + const nftAddress = await helper.getStringFromFile(bufferFile + Buffer.NFTtoL2); + console.log(nftAddress); + apiRoute = `/api?module=account&action=tokennfttx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${nftAddress}&address=${nftAddress}`; + response = await helper.performGETrequest(apiRoute); - expect(response.status).toBe(200); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); - expect(typeof response.body.result[0].hash).toStrictEqual("string"); - expect(typeof response.body.result[0].nonce).toStrictEqual("string"); - expect(typeof response.body.result[0].blockHash).toStrictEqual("string"); - expect(typeof response.body.result[0].transactionIndex).toStrictEqual("string"); - expect(typeof response.body.result[0].from).toStrictEqual("string"); - expect(typeof response.body.result[0].to).toStrictEqual("string"); - expect(typeof response.body.result[0].tokenID).toStrictEqual("string"); - expect(typeof response.body.result[0].gas).toStrictEqual("string"); - expect(typeof response.body.result[0].gasPrice).toStrictEqual("string"); - expect(typeof response.body.result[0].input).toStrictEqual("string"); - expect(typeof response.body.result[0].contractAddress).toStrictEqual("string"); - expect(typeof response.body.result[0].cumulativeGasUsed).toStrictEqual("string"); - expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); - expect(typeof response.body.result[0].confirmations).toStrictEqual("string"); - expect(typeof response.body.result[0].fee).toStrictEqual("string"); - expect(typeof response.body.result[0].l1BatchNumber).toBeTruthy(); - expect(typeof response.body.result[0].transactionType).toStrictEqual("string"); + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].hash).toStrictEqual("string"); + expect(typeof response.body.result[0].nonce).toStrictEqual("string"); + expect(typeof response.body.result[0].blockHash).toStrictEqual("string"); + expect(typeof response.body.result[0].transactionIndex).toStrictEqual("string"); + expect(typeof response.body.result[0].from).toStrictEqual("string"); + expect(typeof response.body.result[0].to).toStrictEqual("string"); + expect(typeof response.body.result[0].tokenID).toStrictEqual("string"); + expect(typeof response.body.result[0].gas).toStrictEqual("string"); + expect(typeof response.body.result[0].gasPrice).toStrictEqual("string"); + expect(typeof response.body.result[0].input).toStrictEqual("string"); + expect(typeof response.body.result[0].contractAddress).toStrictEqual("string"); + expect(typeof response.body.result[0].cumulativeGasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].gasUsed).toStrictEqual("string"); + expect(typeof response.body.result[0].confirmations).toStrictEqual("string"); + expect(typeof response.body.result[0].fee).toStrictEqual("string"); + expect(typeof response.body.result[0].l1BatchNumber).toBeTruthy(); + expect(typeof response.body.result[0].transactionType).toStrictEqual("string"); + }); }); - }); - //@id1807 - it("Verify /api?module=account&action=getminedblocks", async () => { - await helper.retryTestAction(async () => { - apiRoute = `/api?module=account&action=getminedblocks&page=1&offset=10&address=0x0000000000000000000000000000000000000000`; - response = await helper.performGETrequest(apiRoute); + //@id1807 + it("Verify /api?module=account&action=getminedblocks", async () => { + await helper.retryTestAction(async () => { + apiRoute = `/api?module=account&action=getminedblocks&page=1&offset=10&address=0x0000000000000000000000000000000000000000`; + response = await helper.performGETrequest(apiRoute); - expect(response.status).toBe(200); - expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); - expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(response.body.result.length).toBeGreaterThan(1); - expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); - expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); - expect(typeof response.body.result[0].blockReward).toStrictEqual("string"); + expect(response.status).toBe(200); + expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); + expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); + expect(response.body.result.length).toBeGreaterThan(1); + expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); + expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); + expect(typeof response.body.result[0].blockReward).toStrictEqual("string"); + }); }); }); }); From 55791579346c2435b6fcd65f06abc7245a77d42f Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 17:58:58 +0100 Subject: [PATCH 09/22] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 57c02bfdce..10f0d81957 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -10,15 +10,21 @@ describe("API module: Account", () => { jest.setTimeout(localConfig.standardTimeout); const helper = new Helper(); - const playbook = new Playbook(); const bufferFile = "src/playbook/"; let apiRoute: string; let response; let txHash: string; + const playbook = new Playbook(); - describe("/api?module=account", () => { + describe("/address/{address}", () => { beforeAll(async () => { + await playbook.deployNFTtoL1(); await playbook.deployNFTtoL2(); + await playbook.deployMultiCallContracts(); + await playbook.deployMultiTransferETH(); + await playbook.deployGreeterToL2(); + await playbook.useMultiCallContracts(); + await playbook.useMultiTransferETH(); }); //@id1704 From 49024d2436584975eb0dc5009906735d94d017be Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 18:03:08 +0100 Subject: [PATCH 10/22] fix: unused var --- packages/integration-tests/tests/api/accounts.test.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 10f0d81957..b3026cf51d 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -13,7 +13,6 @@ describe("API module: Account", () => { const bufferFile = "src/playbook/"; let apiRoute: string; let response; - let txHash: string; const playbook = new Playbook(); describe("/address/{address}", () => { From e18f39532ecc8724615f4d4288f875e449729de8 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 18:23:52 +0100 Subject: [PATCH 11/22] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index b3026cf51d..65697c1789 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -17,13 +17,7 @@ describe("API module: Account", () => { describe("/address/{address}", () => { beforeAll(async () => { - await playbook.deployNFTtoL1(); await playbook.deployNFTtoL2(); - await playbook.deployMultiCallContracts(); - await playbook.deployMultiTransferETH(); - await playbook.deployGreeterToL2(); - await playbook.useMultiCallContracts(); - await playbook.useMultiTransferETH(); }); //@id1704 @@ -128,7 +122,6 @@ describe("API module: Account", () => { expect(response.status).toBe(200); expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); expect(response.body).toStrictEqual(expect.objectContaining({ message: "OK" })); - expect(response.body.result.length).toBeGreaterThan(1); expect(typeof response.body.result[0].blockNumber).toStrictEqual("string"); expect(typeof response.body.result[0].timeStamp).toStrictEqual("string"); expect(typeof response.body.result[0].hash).toStrictEqual("string"); @@ -180,7 +173,7 @@ describe("API module: Account", () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Token.ETHER_ERC20_Address}`; + apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; response = await helper.performGETrequest(apiRoute); expect(response.status).toBe(200); From f36d9b2c21273f953424fefaad79853ce408ad44 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 18:38:23 +0100 Subject: [PATCH 12/22] fix: new one --- .github/workflows/integration-tests-api.yml | 18 +++++++++--------- .../tests/api/accounts.test.ts | 3 +++ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integration-tests-api.yml b/.github/workflows/integration-tests-api.yml index f191349d4c..b26667670f 100644 --- a/.github/workflows/integration-tests-api.yml +++ b/.github/workflows/integration-tests-api.yml @@ -11,17 +11,17 @@ jobs: checks: write strategy: matrix: - node-version: ['lts/*'] # 18.17.1 or lts/* + node-version: ['lts/*'] # 18.17.1 or lts/* test-pattern: - accounts.test.ts - - addresses.test.ts - - batches.test.ts - - blocks.test.ts - - contracts.test.ts - - logs.test.ts - - stats.test.ts - - tokens.test.ts - - transactions.test.ts + #- addresses.test.ts + #- batches.test.ts + #- blocks.test.ts + #- contracts.test.ts + #- logs.test.ts + #- stats.test.ts + #- tokens.test.ts + #- transactions.test.ts name: 'API test set: ${{ matrix.test-pattern}} / Node: ${{ matrix.node-version}}' steps: - name: Checkout with Submodule diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 65697c1789..ef839bc9a9 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -18,6 +18,9 @@ describe("API module: Account", () => { describe("/address/{address}", () => { beforeAll(async () => { await playbook.deployNFTtoL2(); + await playbook.deployMultiTransferETH(); + await playbook.useMultiTransferETH(); + await playbook.withdrawETH(); }); //@id1704 From a64d8af9475290608ee61ece62387023293b4099 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 18:39:09 +0100 Subject: [PATCH 13/22] fix: new one --- .github/workflows/app-e2e.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/app-e2e.yml b/.github/workflows/app-e2e.yml index 6d629e4f72..c4384ae862 100644 --- a/.github/workflows/app-e2e.yml +++ b/.github/workflows/app-e2e.yml @@ -47,16 +47,16 @@ jobs: fail-fast: false matrix: tags: [ - "@artifactsSet1", - "@artifactsSet2", - "@artifactsSet3", - "@artifactsSet4", - "@redirectionSet1", - "@redirectionSet2", - "@redirectionSet3", - "@copying", + # "@artifactsSet1", + # "@artifactsSet2", + # "@artifactsSet3", + # "@artifactsSet4", + # "@redirectionSet1", + # "@redirectionSet2", + # "@redirectionSet3", + # "@copying", "@search", - "@testnetSmokeSuite" + # "@testnetSmokeSuite" ] name: '${{ matrix.tags }}' From 6550d57834b6b798e33527559a1cfcca92dc010e Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 18:52:58 +0100 Subject: [PATCH 14/22] fix: new one --- .github/workflows/app-e2e.yml | 18 +++++++++--------- .github/workflows/integration-tests-api.yml | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/app-e2e.yml b/.github/workflows/app-e2e.yml index c4384ae862..6d629e4f72 100644 --- a/.github/workflows/app-e2e.yml +++ b/.github/workflows/app-e2e.yml @@ -47,16 +47,16 @@ jobs: fail-fast: false matrix: tags: [ - # "@artifactsSet1", - # "@artifactsSet2", - # "@artifactsSet3", - # "@artifactsSet4", - # "@redirectionSet1", - # "@redirectionSet2", - # "@redirectionSet3", - # "@copying", + "@artifactsSet1", + "@artifactsSet2", + "@artifactsSet3", + "@artifactsSet4", + "@redirectionSet1", + "@redirectionSet2", + "@redirectionSet3", + "@copying", "@search", - # "@testnetSmokeSuite" + "@testnetSmokeSuite" ] name: '${{ matrix.tags }}' diff --git a/.github/workflows/integration-tests-api.yml b/.github/workflows/integration-tests-api.yml index b26667670f..4467199bf9 100644 --- a/.github/workflows/integration-tests-api.yml +++ b/.github/workflows/integration-tests-api.yml @@ -14,14 +14,14 @@ jobs: node-version: ['lts/*'] # 18.17.1 or lts/* test-pattern: - accounts.test.ts - #- addresses.test.ts - #- batches.test.ts - #- blocks.test.ts - #- contracts.test.ts - #- logs.test.ts - #- stats.test.ts - #- tokens.test.ts - #- transactions.test.ts + - addresses.test.ts + - batches.test.ts + - blocks.test.ts + - contracts.test.ts + - logs.test.ts + - stats.test.ts + - tokens.test.ts + - transactions.test.ts name: 'API test set: ${{ matrix.test-pattern}} / Node: ${{ matrix.node-version}}' steps: - name: Checkout with Submodule From 5aef32c1b55c8bc1be1e9aff12bb50eb1955ab16 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 19:09:21 +0100 Subject: [PATCH 15/22] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index ef839bc9a9..171ae06828 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -19,7 +19,7 @@ describe("API module: Account", () => { beforeAll(async () => { await playbook.deployNFTtoL2(); await playbook.deployMultiTransferETH(); - await playbook.useMultiTransferETH(); + //await playbook.useMultiTransferETH(); await playbook.withdrawETH(); }); From c95c30279ba53b47992af825cc68c2d02902ae43 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 19:35:28 +0100 Subject: [PATCH 16/22] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 171ae06828..ef839bc9a9 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -19,7 +19,7 @@ describe("API module: Account", () => { beforeAll(async () => { await playbook.deployNFTtoL2(); await playbook.deployMultiTransferETH(); - //await playbook.useMultiTransferETH(); + await playbook.useMultiTransferETH(); await playbook.withdrawETH(); }); From 876532b16131d89a18e7ffc6d094fe9e79b5ed0a Mon Sep 17 00:00:00 2001 From: Oleh Bairak <118197764+olehbairak@users.noreply.github.com> Date: Mon, 5 Feb 2024 19:52:30 +0100 Subject: [PATCH 17/22] Update integration-tests-api.yml --- .github/workflows/integration-tests-api.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests-api.yml b/.github/workflows/integration-tests-api.yml index 4467199bf9..f191349d4c 100644 --- a/.github/workflows/integration-tests-api.yml +++ b/.github/workflows/integration-tests-api.yml @@ -11,7 +11,7 @@ jobs: checks: write strategy: matrix: - node-version: ['lts/*'] # 18.17.1 or lts/* + node-version: ['lts/*'] # 18.17.1 or lts/* test-pattern: - accounts.test.ts - addresses.test.ts From 0a78f6728c84751fad922d9189e1fbbd25034725 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Mon, 5 Feb 2024 23:21:14 +0100 Subject: [PATCH 18/22] fix: minor --- packages/app/tests/e2e/features/copying.feature | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/app/tests/e2e/features/copying.feature b/packages/app/tests/e2e/features/copying.feature index 47c7adacb9..15fed09fe6 100644 --- a/packages/app/tests/e2e/features/copying.feature +++ b/packages/app/tests/e2e/features/copying.feature @@ -33,7 +33,7 @@ Feature: Copying | To | 0x0faF6df7054946141266420b43783387A78d82A9 | | Input data | 0xa9059cbb0000000000000000000000000faf6df7054946141266420b43783387a78d82a90000000000000000000000000000000000000000000000000000000000989680 | - @id239 @mainnet + @id239 @mainnet Scenario Outline: Check "" hashes copying for Transaction page Given I go to page "/tx/0x97e3d593e03e764df14e352e73ba6af487faf8d04bd65a1fd3d55208b6e0d972" When I click on the copy button with "" row on "Transaction" page @@ -47,7 +47,7 @@ Feature: Copying | To | 0xA0924Cc8792836F48D94759c76D32986BC74B54c | | Input data | 0x2e4dbe8f000000000000000000000000000000000000000000000000000000000001bc45000000000000000000000000d613effb65b11e301f1338f71013b390985380300000000000000000000000000000000000000000000000000000000008116e2b000000000000000000000000000000000000000000000000000000000001bc4500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000004123131c5b6401f42c98f7e84ae00ef577fa5e580f313a83a135c8fc893103ec884bc0bbd4b5d3ef32ec774eb20529ffebb7aae5d250d2568cff65e5ac412f99f21c00000000000000000000000000000000000000000000000000000000000000 | - @id257 @testnet + @id257 @testnet Scenario Outline: Check "" hashes copying for Logs tab on Transaction page Given I go to page "/tx/0xe7a91cc9b270d062328ef995e0ef67195a3703d43ce4e1d375f87d5c64e51981" And I select "Logs" tab on "Transaction" page @@ -109,9 +109,9 @@ Feature: Copying Examples: | Text | - | 0x00050000000000020000008003000039000000400030043f00000000030100190000006003300270000000d7033001970000000102200190000000240000c13d000000040230008c0000030a0000413d000000000201043b000000e002200270000000d90420009c0000002c0000a13d000000da0420009c000000380000a13d000000db0420009c000000950000613d000000dc0420009c000001ea0000613d000000dd0220009c0000030a0000c13d0000000002000416000000000202004b0000030a0000c13d000000040230008a000000200220008c0000030a0000413d0000000401100370000000000101043b000000e5011001970000000000100435000000200000043f00000000010000190358033c0000040f000000360000013d0000000001000416000000000101004b0000030a0000c13d000000200100003900000100001004430000012000000443000000d801000041000003590001042e000000e00420009c000000600000213d000000e30120009c000001a60000613d000000e40120009c0000030a0000c13d0000000001000416000000000101004b0000030a0000c13d0000000101000039000000000101041a000001e70000013d000000de0420009c000001af0000613d000000df0220009c0000030a0000c13d0000000002000416000000000202004b0000030a0000c13d000000040230008a000000600220008c0000030a0000413d0000000402100370000000000402043b000000e50240009c0000030a0000213d0000002402100370000000000202043b000000e505200197000000e50220009c0000030a0000213d00000000020004110000004401100370000000000301043b000080060120008c000002090000613d000000090100008a000000000112016f000080010110008c000002090000613d000000f001000041000000800010043f0000002001000039000000840010043f0000003e01000039000000a40010043f000000f101000041000000c40010043f000000f201000041000000e40010043f000000f3010000410000035a00010430000000e10420009c000001e30000613d000000e20220009c0000030a0000c13d0000000002000416000000000202004b0000030a0000c13d000000040230008a000000400220008c0000030a0000413d0000000402100370000000000402043b000000e50240009c0000030a0000213d0000002401100370000000000501043b0000000001000411000080010110008c000001ff0000c13d0000000101000039000000000301041a0000000002530019000000000332004b000000000300001900000001030040390000000103300190000000910000c13d000400000005001d000000000021041b0000000000400435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039000500000004001d035803530000040f000000050500002900000001022001900000030a0000613d000000000101043b000000000201041a0000000403000029000000000232001a000000910000413d000002c20000013d000000fa0100004100000000001004350000001101000039000001e00000013d000000040230008a000000400220008c0000030a0000413d0000000402100370000000000802043b000000e50280009c0000030a0000213d0000002402100370000000000402043b000000e90240009c0000030a0000213d0000002302400039000000ea05000041000000000632004b00000000060000190000000006058019000000ea02200197000000000702004b0000000005008019000000ea0220009c000000000506c019000000000205004b0000030a0000c13d0000000405400039000000000251034f000000000202043b000000e90620009c000001dd0000213d000000bf06200039000000200900008a000000000696016f000000e90760009c000001dd0000213d000000400060043f000000800020043f00000000042400190000002404400039000000000334004b0000030a0000213d0000002003500039000000000131034f0000001f0320018f0000000504200272000000ca0000613d00000000050000190000000506500210000000000761034f000000000707043b000000a00660003900000000007604350000000105500039000000000645004b000000c20000413d000400000009001d000500000008001d000000000503004b000000db0000613d0000000504400210000000000141034f0000000303300210000000a004400039000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f0000000000140435000000a00120003900000000000104350000000001000416000300000001001d00000000010004100000000000100435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039035803530000040f0000000102200190000000050400002900000004070000290000030a0000613d000000000101043b000000000201041a00000003090000290000000002920049000000000021041b0000000101000039000000000201041a0000000002920049000000000021041b000000ec02000041000000400100043d000000200310003900000000002304350000006002400210000000240310003900000000002304350000000008000411000000600280021000000058031000390000000000230435000000380210003900000000009204350000006c03100039000000800200043d000000000402004b000001100000613d00000000040000190000000005340019000000a006400039000000000606043300000000006504350000002004400039000000000524004b000001090000413d000000000332001900000000000304350000004c0320003900000000003104350000008b02200039000000000272016f000000000a12001900000000022a004b00000000020000190000000102004039000000e903a0009c000001dd0000213d0000000102200190000001dd0000c13d000100000008001d0000004000a0043f000000ed0200004100000000002a04350000000402a000390000002003000039000000000032043500000000020104330000002403a0003900000000002304350000004403a00039000000000402004b000001330000613d000000000400001900000000053400190000002004400039000000000614001900000000060604330000000000650435000000000524004b0000012c0000413d000000000132001900000000000104350000001f01200039000000000171016f000000d702000041000000d703a0009c000000000302001900000000030a401900000040033002100000004401100039000000d70410009c00000000010280190000006001100210000000000131019f0000000003000414000000d70430009c0000000003028019000000c002300210000000000112019f000080080200003900020000000a001d0358034e0000040f000000020a00002900000000030100190000006003300270000000d703300197000000200430008c000000000403001900000020040080390000001f0540018f00000005064002720000015c0000613d0000000007000019000000050870021000000000098a0019000000000881034f000000000808043b00000000008904350000000107700039000000000867004b000001540000413d000000000705004b0000016b0000613d0000000506600210000000000761034f00000000066a00190000000305500210000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f000000000056043500000001022001900000030c0000613d0000001f01400039000000600210018f0000000001a20019000000000221004b00000000020000190000000102004039000000e90410009c00000005040000290000000305000029000001dd0000213d0000000102200190000001dd0000c13d000000400010043f000000200230008c0000030a0000413d00000020021000390000004003000039000000000032043500000000005104350000004003100039000000800200043d00000000002304350000006003100039000000e506400197000000000402004b0000018f0000613d00000000040000190000000005340019000000a007400039000000000707043300000000007504350000002004400039000000000524004b000001880000413d000000000332001900000000000304350000007f02200039000000040220017f000000d703000041000000d70410009c00000000010380190000004001100210000000d70420009c00000000020380190000006002200210000000000112019f0000000002000414000000d70420009c0000000002038019000000c002200210000000000112019f000000ee011001c70000800d020000390000000303000039000000ef040000410000000105000029000003050000013d0000000001000416000000000101004b0000030a0000c13d000000c001000039000000400010043f0000000501000039000000800010043f000000ff01000041000001f20000013d000000040230008a000000200220008c0000030a0000413d0000000401100370000000000401043b000000e50140009c0000030a0000213d0000000001000416000400000001001d00000000010004100000000000100435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039000500000004001d035803530000040f000000050400002900000001022001900000030a0000613d000000000101043b000000000201041a00000004050000290000000002520049000000000021041b0000000101000039000000000201041a0000000002520049000000000021041b000000ec02000041000000400100043d000000200310003900000000002304350000006002400210000000240310003900000000002304350000003802100039000000000052043500000038020000390000000000210435000000f80210009c0000022f0000413d000000fa0100004100000000001004350000004101000039000000040010043f000000fb010000410000035a000104300000000001000416000000000101004b0000030a0000c13d0000001201000039000000800010043f000000e601000041000003590001042e0000000001000416000000000101004b0000030a0000c13d000000c001000039000000400010043f0000000301000039000000800010043f000000e701000041000000a00010043f0000002001000039000000c00010043f0000008001000039000000e002000039035803290000040f000000c00110008a000000d702000041000000d70310009c00000000010280190000006001100210000000e8011001c7000003590001042e000000f001000041000000800010043f0000002001000039000000840010043f0000001f01000039000000a40010043f000000fc01000041000000c40010043f000000fd010000410000035a00010430000400000003001d0000000000400435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039000500000004001d000300000005001d035803530000040f000000050300002900000001022001900000030a0000613d000000000101043b000000000201041a000000040120006c000002d30000813d000000400100043d0000004402100039000000f603000041000000000032043500000024021000390000001f030000390000000000320435000000f0020000410000000000210435000000040210003900000020030000390000000000320435000000d702000041000000d70310009c00000000010280190000004001100210000000f7011001c70000035a000104300000006007100039000000400070043f000000ed020000410000000000270435000000640210003900000020030000390000000000320435000000840310003900000000020104330000000000230435000000a403100039000000000402004b000002440000613d000000000400001900000000053400190000002004400039000000000614001900000000060604330000000000650435000000000524004b0000023d0000413d000000000132001900000000000104350000001f01200039000000200200008a000000000121016f000000d702000041000000d70370009c0000000003020019000000000307401900000040033002100000004401100039000000d70410009c00000000010280190000006001100210000000000131019f0000000003000414000000d70430009c0000000003028019000000c002300210000000000112019f0000800802000039000300000007001d0358034e0000040f000000030a00002900000000030100190000006003300270000000d703300197000000200430008c000000000403001900000020040080390000001f0540018f00000005064002720000026e0000613d0000000007000019000000050870021000000000098a0019000000000881034f000000000808043b00000000008904350000000107700039000000000867004b000002660000413d000000000705004b0000027d0000613d0000000506600210000000000761034f00000000066a00190000000305500210000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f000000000056043500000001022001900000029f0000613d0000001f01400039000000600210018f0000000001a20019000000000221004b00000000020000190000000102004039000000e90410009c00000005050000290000000404000029000001dd0000213d0000000102200190000001dd0000c13d000000400010043f000000200230008c0000030a0000413d0000000000410435000000d7020000410000000003000414000000d70430009c0000000003028019000000d70410009c00000000010280190000004001100210000000c002300210000000000112019f000000f4011001c7000000e5065001970000800d0200003900000003030000390000000005000411000000f904000041000003050000013d000000400200043d0000001f0430018f0000000505300272000002ac0000613d000000000600001900000005076002100000000008720019000000000771034f000000000707043b00000000007804350000000106600039000000000756004b000002a40000413d000000000604004b000002bb0000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000000d701000041000000d70420009c000000000201801900000040012002100000006002300210000000000121019f0000035a00010430000000000021041b000000400100043d0000000000310435000000d7020000410000000003000414000000d70430009c0000000003028019000000d70410009c00000000010280190000004001100210000000c002300210000000000112019f000000f4011001c70000800d020000390000000203000039000000fe04000041000003050000013d000200000002001d0000000000300435000000200000043f000000d7030000410000000001000414000000d70210009c0000000001038019000000c001100210000000eb011001c70000801002000039035803530000040f000000030300002900000001022001900000030a0000613d0000000204000029000000040240006a000000000101043b000000000021041b00000000003004350000000001000414000000d70210009c000000d701008041000000c001100210000000eb011001c70000801002000039035803530000040f0000000306000029000000050500002900000001022001900000030a0000613d000000000101043b000000000201041a00000004030000290000000002320019000000000021041b000000400100043d0000000000310435000000d7020000410000000003000414000000d70430009c0000000003028019000000d70410009c00000000010280190000004001100210000000c002300210000000000112019f000000f4011001c70000800d020000390000000303000039000000f5040000410358034e0000040f00000001012001900000030a0000613d0000000001000019000003590001042e00000000010000190000035a00010430000000400200043d0000001f0430018f0000000505300272000003190000613d000000000600001900000005076002100000000008720019000000000771034f000000000707043b00000000007804350000000106600039000000000756004b000003110000413d000000000604004b000003280000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000002bb0000013d00000000030104330000000002320436000000000403004b000003350000613d000000000400001900000000052400190000002004400039000000000614001900000000060604330000000000650435000000000534004b0000032e0000413d000000000123001900000000000104350000001f01300039000000200300008a000000000131016f0000000001120019000000000001042d000000d702000041000000d70310009c00000000010280190000000003000414000000d70430009c0000000003028019000000c0023002100000004001100210000000000121019f000000eb011001c70000801002000039035803530000040f00000001022001900000034c0000613d000000000101043b000000000001042d00000000010000190000035a0001043000000351002104210000000102000039000000000001042d0000000002000019000000000001042d00000356002104230000000102000039000000000001042d0000000002000019000000000001042d0000035800000432000003590001042e0000035a00010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000002000000000000000000000000000000400000010000000000000000000000000000000000000000000000000000000000000000000000000051cff8d80000000000000000000000000000000000000000000000000000000084bc3eaf0000000000000000000000000000000000000000000000000000000084bc3eb00000000000000000000000000000000000000000000000000000000095d89b41000000000000000000000000000000000000000000000000000000009cc7f7080000000000000000000000000000000000000000000000000000000051cff8d900000000000000000000000000000000000000000000000000000000579952fc00000000000000000000000000000000000000000000000000000000313ce56600000000000000000000000000000000000000000000000000000000313ce5670000000000000000000000000000000000000000000000000000000040c10f190000000000000000000000000000000000000000000000000000000006fdde030000000000000000000000000000000000000000000000000000000018160ddd000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000002000000080000000000000000045544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000400000000000000000000000006c0960f90000000000000000000000000000000000000000000000000000000062f84b24000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000c405fe8958410bbaf0c73b7a0c3e20859e86ca168a4c9b0def9c54d2555a306b08c379a0000000000000000000000000000000000000000000000000000000004f6e6c792073797374656d20636f6e7472616374732077697468207370656369616c206163636573732063616e2063616c6c2074686973206d6574686f64000000000000000000000000000000000000000000840000008000000000000000000200000000000000000000000000000000000020000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5472616e7366657220616d6f756e7420657863656564732062616c616e6365000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffa02717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b63984e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000043616c6c61626c65206f6e6c792062792074686520626f6f746c6f616465720000000000000000000000000000000000000000640000008000000000000000000f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d41213968854574686572000000000000000000000000000000000000000000000000000000f0b6b42807e1cedc08bb5d52497201e58eadf5d98c44d22f30deb9673d25565c | + | 0x00050000000000020000008003000039000000400030043f00000000030100190000006003300270000000d7033001970000000102200190000000240000c13d000000040230008c0000030a0000413d000000000201043b000000e002200270000000d90420009c0000002c0000a13d000000da0420009c000000380000a13d000000db0420009c000000950000613d000000dc0420009c000001ea0000613d000000dd0220009c0000030a0000c13d0000000002000416000000000202004b0000030a0000c13d000000040230008a000000200220008c0000030a0000413d0000000401100370000000000101043b000000e5011001970000000000100435000000200000043f00000000010000190358033c0000040f000000360000013d0000000001000416000000000101004b0000030a0000c13d000000200100003900000100001004430000012000000443000000d801000041000003590001042e000000e00420009c000000600000213d000000e30120009c000001a60000613d000000e40120009c0000030a0000c13d0000000001000416000000000101004b0000030a0000c13d0000000101000039000000000101041a000001e70000013d000000de0420009c000001af0000613d000000df0220009c0000030a0000c13d0000000002000416000000000202004b0000030a0000c13d000000040230008a000000600220008c0000030a0000413d0000000402100370000000000402043b000000e50240009c0000030a0000213d0000002402100370000000000202043b000000e505200197000000e50220009c0000030a0000213d00000000020004110000004401100370000000000301043b000080060120008c000002090000613d000000090100008a000000000112016f000080010110008c000002090000613d000000f001000041000000800010043f0000002001000039000000840010043f0000003e01000039000000a40010043f000000f101000041000000c40010043f000000f201000041000000e40010043f000000f3010000410000035a00010430000000e10420009c000001e30000613d000000e20220009c0000030a0000c13d0000000002000416000000000202004b0000030a0000c13d000000040230008a000000400220008c0000030a0000413d0000000402100370000000000402043b000000e50240009c0000030a0000213d0000002401100370000000000501043b0000000001000411000080010110008c000001ff0000c13d0000000101000039000000000301041a0000000002530019000000000332004b000000000300001900000001030040390000000103300190000000910000c13d000400000005001d000000000021041b0000000000400435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039000500000004001d035803530000040f000000050500002900000001022001900000030a0000613d000000000101043b000000000201041a0000000403000029000000000232001a000000910000413d000002c20000013d000000fa0100004100000000001004350000001101000039000001e00000013d000000040230008a000000400220008c0000030a0000413d0000000402100370000000000802043b000000e50280009c0000030a0000213d0000002402100370000000000402043b000000e90240009c0000030a0000213d0000002302400039000000ea05000041000000000632004b00000000060000190000000006058019000000ea02200197000000000702004b0000000005008019000000ea0220009c000000000506c019000000000205004b0000030a0000c13d0000000405400039000000000251034f000000000202043b000000e90620009c000001dd0000213d000000bf06200039000000200900008a000000000696016f000000e90760009c000001dd0000213d000000400060043f000000800020043f00000000042400190000002404400039000000000334004b0000030a0000213d0000002003500039000000000131034f0000001f0320018f0000000504200272000000ca0000613d00000000050000190000000506500210000000000761034f000000000707043b000000a00660003900000000007604350000000105500039000000000645004b000000c20000413d000400000009001d000500000008001d000000000503004b000000db0000613d0000000504400210000000000141034f0000000303300210000000a004400039000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f0000000000140435000000a00120003900000000000104350000000001000416000300000001001d00000000010004100000000000100435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039035803530000040f0000000102200190000000050400002900000004070000290000030a0000613d000000000101043b000000000201041a00000003090000290000000002920049000000000021041b0000000101000039000000000201041a0000000002920049000000000021041b000000ec02000041000000400100043d000000200310003900000000002304350000006002400210000000240310003900000000002304350000000008000411000000600280021000000058031000390000000000230435000000380210003900000000009204350000006c03100039000000800200043d000000000402004b000001100000613d00000000040000190000000005340019000000a006400039000000000606043300000000006504350000002004400039000000000524004b000001090000413d000000000332001900000000000304350000004c0320003900000000003104350000008b02200039000000000272016f000000000a12001900000000022a004b00000000020000190000000102004039000000e903a0009c000001dd0000213d0000000102200190000001dd0000c13d000100000008001d0000004000a0043f000000ed0200004100000000002a04350000000402a000390000002003000039000000000032043500000000020104330000002403a0003900000000002304350000004403a00039000000000402004b000001330000613d000000000400001900000000053400190000002004400039000000000614001900000000060604330000000000650435000000000524004b0000012c0000413d000000000132001900000000000104350000001f01200039000000000171016f000000d702000041000000d703a0009c000000000302001900000000030a401900000040033002100000004401100039000000d70410009c00000000010280190000006001100210000000000131019f0000000003000414000000d70430009c0000000003028019000000c002300210000000000112019f000080080200003900020000000a001d0358034e0000040f000000020a00002900000000030100190000006003300270000000d703300197000000200430008c000000000403001900000020040080390000001f0540018f00000005064002720000015c0000613d0000000007000019000000050870021000000000098a0019000000000881034f000000000808043b00000000008904350000000107700039000000000867004b000001540000413d000000000705004b0000016b0000613d0000000506600210000000000761034f00000000066a00190000000305500210000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f000000000056043500000001022001900000030c0000613d0000001f01400039000000600210018f0000000001a20019000000000221004b00000000020000190000000102004039000000e90410009c00000005040000290000000305000029000001dd0000213d0000000102200190000001dd0000c13d000000400010043f000000200230008c0000030a0000413d00000020021000390000004003000039000000000032043500000000005104350000004003100039000000800200043d00000000002304350000006003100039000000e506400197000000000402004b0000018f0000613d00000000040000190000000005340019000000a007400039000000000707043300000000007504350000002004400039000000000524004b000001880000413d000000000332001900000000000304350000007f02200039000000040220017f000000d703000041000000d70410009c00000000010380190000004001100210000000d70420009c00000000020380190000006002200210000000000112019f0000000002000414000000d70420009c0000000002038019000000c002200210000000000112019f000000ee011001c70000800d020000390000000303000039000000ef040000410000000105000029000003050000013d0000000001000416000000000101004b0000030a0000c13d000000c001000039000000400010043f0000000501000039000000800010043f000000ff01000041000001f20000013d000000040230008a000000200220008c0000030a0000413d0000000401100370000000000401043b000000e50140009c0000030a0000213d0000000001000416000400000001001d00000000010004100000000000100435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039000500000004001d035803530000040f000000050400002900000001022001900000030a0000613d000000000101043b000000000201041a00000004050000290000000002520049000000000021041b0000000101000039000000000201041a0000000002520049000000000021041b000000ec02000041000000400100043d000000200310003900000000002304350000006002400210000000240310003900000000002304350000003802100039000000000052043500000038020000390000000000210435000000f80210009c0000022f0000413d000000fa0100004100000000001004350000004101000039000000040010043f000000fb010000410000035a000104300000000001000416000000000101004b0000030a0000c13d0000001201000039000000800010043f000000e601000041000003590001042e0000000001000416000000000101004b0000030a0000c13d000000c001000039000000400010043f0000000301000039000000800010043f000000e701000041000000a00010043f0000002001000039000000c00010043f0000008001000039000000e002000039035803290000040f000000c00110008a000000d702000041000000d70310009c00000000010280190000006001100210000000e8011001c7000003590001042e000000f001000041000000800010043f0000002001000039000000840010043f0000001f01000039000000a40010043f000000fc01000041000000c40010043f000000fd010000410000035a00010430000400000003001d0000000000400435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039000500000004001d000300000005001d035803530000040f000000050300002900000001022001900000030a0000613d000000000101043b000000000201041a000000040120006c000002d30000813d000000400100043d0000004402100039000000f603000041000000000032043500000024021000390000001f030000390000000000320435000000f0020000410000000000210435000000040210003900000020030000390000000000320435000000d702000041000000d70310009c00000000010280190000004001100210000000f7011001c70000035a000104300000006007100039000000400070043f000000ed020000410000000000270435000000640210003900000020030000390000000000320435000000840310003900000000020104330000000000230435000000a403100039000000000402004b000002440000613d000000000400001900000000053400190000002004400039000000000614001900000000060604330000000000650435000000000524004b0000023d0000413d000000000132001900000000000104350000001f01200039000000200200008a000000000121016f000000d702000041000000d70370009c0000000003020019000000000307401900000040033002100000004401100039000000d70410009c00000000010280190000006001100210000000000131019f0000000003000414000000d70430009c0000000003028019000000c002300210000000000112019f0000800802000039000300000007001d0358034e0000040f000000030a00002900000000030100190000006003300270000000d703300197000000200430008c000000000403001900000020040080390000001f0540018f00000005064002720000026e0000613d0000000007000019000000050870021000000000098a0019000000000881034f000000000808043b00000000008904350000000107700039000000000867004b000002660000413d000000000705004b0000027d0000613d0000000506600210000000000761034f00000000066a00190000000305500210000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f000000000056043500000001022001900000029f0000613d0000001f01400039000000600210018f0000000001a20019000000000221004b00000000020000190000000102004039000000e90410009c00000005050000290000000404000029000001dd0000213d0000000102200190000001dd0000c13d000000400010043f000000200230008c0000030a0000413d0000000000410435000000d7020000410000000003000414000000d70430009c0000000003028019000000d70410009c00000000010280190000004001100210000000c002300210000000000112019f000000f4011001c7000000e5065001970000800d0200003900000003030000390000000005000411000000f904000041000003050000013d000000400200043d0000001f0430018f0000000505300272000002ac0000613d000000000600001900000005076002100000000008720019000000000771034f000000000707043b00000000007804350000000106600039000000000756004b000002a40000413d000000000604004b000002bb0000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000000d701000041000000d70420009c000000000201801900000040012002100000006002300210000000000121019f0000035a00010430000000000021041b000000400100043d0000000000310435000000d7020000410000000003000414000000d70430009c0000000003028019000000d70410009c00000000010280190000004001100210000000c002300210000000000112019f000000f4011001c70000800d020000390000000203000039000000fe04000041000003050000013d000200000002001d0000000000300435000000200000043f000000d7030000410000000001000414000000d70210009c0000000001038019000000c001100210000000eb011001c70000801002000039035803530000040f000000030300002900000001022001900000030a0000613d0000000204000029000000040240006a000000000101043b000000000021041b00000000003004350000000001000414000000d70210009c000000d701008041000000c001100210000000eb011001c70000801002000039035803530000040f0000000306000029000000050500002900000001022001900000030a0000613d000000000101043b000000000201041a00000004030000290000000002320019000000000021041b000000400100043d0000000000310435000000d7020000410000000003000414000000d70430009c0000000003028019000000d70410009c00000000010280190000004001100210000000c002300210000000000112019f000000f4011001c70000800d020000390000000303000039000000f5040000410358034e0000040f00000001012001900000030a0000613d0000000001000019000003590001042e00000000010000190000035a00010430000000400200043d0000001f0430018f0000000505300272000003190000613d000000000600001900000005076002100000000008720019000000000771034f000000000707043b00000000007804350000000106600039000000000756004b000003110000413d000000000604004b000003280000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000002bb0000013d00000000030104330000000002320436000000000403004b000003350000613d000000000400001900000000052400190000002004400039000000000614001900000000060604330000000000650435000000000534004b0000032e0000413d000000000123001900000000000104350000001f01300039000000200300008a000000000131016f0000000001120019000000000001042d000000d702000041000000d70310009c00000000010280190000000003000414000000d70430009c0000000003028019000000c0023002100000004001100210000000000121019f000000eb011001c70000801002000039035803530000040f00000001022001900000034c0000613d000000000101043b000000000001042d00000000010000190000035a0001043000000351002104210000000102000039000000000001042d0000000002000019000000000001042d00000356002104230000000102000039000000000001042d0000000002000019000000000001042d0000035800000432000003590001042e0000035a00010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000002000000000000000000000000000000400000010000000000000000000000000000000000000000000000000000000000000000000000000051cff8d80000000000000000000000000000000000000000000000000000000084bc3eaf0000000000000000000000000000000000000000000000000000000084bc3eb00000000000000000000000000000000000000000000000000000000095d89b41000000000000000000000000000000000000000000000000000000009cc7f7080000000000000000000000000000000000000000000000000000000051cff8d900000000000000000000000000000000000000000000000000000000579952fc00000000000000000000000000000000000000000000000000000000313ce56600000000000000000000000000000000000000000000000000000000313ce5670000000000000000000000000000000000000000000000000000000040c10f190000000000000000000000000000000000000000000000000000000006fdde030000000000000000000000000000000000000000000000000000000018160ddd000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000002000000080000000000000000045544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000400000000000000000000000006c0960f90000000000000000000000000000000000000000000000000000000062f84b24000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000c405fe8958410bbaf0c73b7a0c3e20859e86ca168a4c9b0def9c54d2555a306b08c379a0000000000000000000000000000000000000000000000000000000004f6e6c792073797374656d20636f6e7472616374732077697468207370656369616c206163636573732063616e2063616c6c2074686973206d6574686f64000000000000000000000000000000000000000000840000008000000000000000000200000000000000000000000000000000000020000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5472616e7366657220616d6f756e7420657863656564732062616c616e6365000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffa02717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b63984e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000043616c6c61626c65206f6e6c792062792074686520626f6f746c6f616465720000000000000000000000000000000000000000640000008000000000000000000f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688545746865720000000000000000000000000000000000000000000000000000007b182cdf1aa84e348ae5644feda1c98a5a163d38bb021538445530813acd46bb | - @id266:I @testnet + @id266:I @testnet Scenario Outline: Check "" hashes copying on Block page Given I go to page "/block/1" When I click on the copy button with "" row on "Block" page @@ -125,7 +125,7 @@ Feature: Copying | Prove tx hash | 0xfbd3a89cee83e4f28999bc8fd5e96d133b7ebc367d5c7026f173d21687998379 | | Execute tx hash | 0x5131c1bb47dca3d42ccdfd12d1ab7224cbb88fb9ad91b94e2da26631602f6fab | - @id266:III @mainnet + @id266:III @mainnet Scenario Outline: Check "" hashes copying on Block page Given I go to page "/block/1" When I click on the copy button with "" row on "Block" page From a962ed9df1e0abb08d61fa2ade58b043dad4139f Mon Sep 17 00:00:00 2001 From: Oleh Bairak <118197764+olehbairak@users.noreply.github.com> Date: Mon, 5 Feb 2024 23:22:37 +0100 Subject: [PATCH 19/22] Update copying.feature --- packages/app/tests/e2e/features/copying.feature | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/app/tests/e2e/features/copying.feature b/packages/app/tests/e2e/features/copying.feature index 15fed09fe6..37e4cab336 100644 --- a/packages/app/tests/e2e/features/copying.feature +++ b/packages/app/tests/e2e/features/copying.feature @@ -33,7 +33,7 @@ Feature: Copying | To | 0x0faF6df7054946141266420b43783387A78d82A9 | | Input data | 0xa9059cbb0000000000000000000000000faf6df7054946141266420b43783387a78d82a90000000000000000000000000000000000000000000000000000000000989680 | - @id239 @mainnet + @id239 @mainnet Scenario Outline: Check "" hashes copying for Transaction page Given I go to page "/tx/0x97e3d593e03e764df14e352e73ba6af487faf8d04bd65a1fd3d55208b6e0d972" When I click on the copy button with "" row on "Transaction" page @@ -47,7 +47,7 @@ Feature: Copying | To | 0xA0924Cc8792836F48D94759c76D32986BC74B54c | | Input data | 0x2e4dbe8f000000000000000000000000000000000000000000000000000000000001bc45000000000000000000000000d613effb65b11e301f1338f71013b390985380300000000000000000000000000000000000000000000000000000000008116e2b000000000000000000000000000000000000000000000000000000000001bc4500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000004123131c5b6401f42c98f7e84ae00ef577fa5e580f313a83a135c8fc893103ec884bc0bbd4b5d3ef32ec774eb20529ffebb7aae5d250d2568cff65e5ac412f99f21c00000000000000000000000000000000000000000000000000000000000000 | - @id257 @testnet + @id257 @testnet Scenario Outline: Check "" hashes copying for Logs tab on Transaction page Given I go to page "/tx/0xe7a91cc9b270d062328ef995e0ef67195a3703d43ce4e1d375f87d5c64e51981" And I select "Logs" tab on "Transaction" page @@ -111,7 +111,7 @@ Feature: Copying | Text | | 0x00050000000000020000008003000039000000400030043f00000000030100190000006003300270000000d7033001970000000102200190000000240000c13d000000040230008c0000030a0000413d000000000201043b000000e002200270000000d90420009c0000002c0000a13d000000da0420009c000000380000a13d000000db0420009c000000950000613d000000dc0420009c000001ea0000613d000000dd0220009c0000030a0000c13d0000000002000416000000000202004b0000030a0000c13d000000040230008a000000200220008c0000030a0000413d0000000401100370000000000101043b000000e5011001970000000000100435000000200000043f00000000010000190358033c0000040f000000360000013d0000000001000416000000000101004b0000030a0000c13d000000200100003900000100001004430000012000000443000000d801000041000003590001042e000000e00420009c000000600000213d000000e30120009c000001a60000613d000000e40120009c0000030a0000c13d0000000001000416000000000101004b0000030a0000c13d0000000101000039000000000101041a000001e70000013d000000de0420009c000001af0000613d000000df0220009c0000030a0000c13d0000000002000416000000000202004b0000030a0000c13d000000040230008a000000600220008c0000030a0000413d0000000402100370000000000402043b000000e50240009c0000030a0000213d0000002402100370000000000202043b000000e505200197000000e50220009c0000030a0000213d00000000020004110000004401100370000000000301043b000080060120008c000002090000613d000000090100008a000000000112016f000080010110008c000002090000613d000000f001000041000000800010043f0000002001000039000000840010043f0000003e01000039000000a40010043f000000f101000041000000c40010043f000000f201000041000000e40010043f000000f3010000410000035a00010430000000e10420009c000001e30000613d000000e20220009c0000030a0000c13d0000000002000416000000000202004b0000030a0000c13d000000040230008a000000400220008c0000030a0000413d0000000402100370000000000402043b000000e50240009c0000030a0000213d0000002401100370000000000501043b0000000001000411000080010110008c000001ff0000c13d0000000101000039000000000301041a0000000002530019000000000332004b000000000300001900000001030040390000000103300190000000910000c13d000400000005001d000000000021041b0000000000400435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039000500000004001d035803530000040f000000050500002900000001022001900000030a0000613d000000000101043b000000000201041a0000000403000029000000000232001a000000910000413d000002c20000013d000000fa0100004100000000001004350000001101000039000001e00000013d000000040230008a000000400220008c0000030a0000413d0000000402100370000000000802043b000000e50280009c0000030a0000213d0000002402100370000000000402043b000000e90240009c0000030a0000213d0000002302400039000000ea05000041000000000632004b00000000060000190000000006058019000000ea02200197000000000702004b0000000005008019000000ea0220009c000000000506c019000000000205004b0000030a0000c13d0000000405400039000000000251034f000000000202043b000000e90620009c000001dd0000213d000000bf06200039000000200900008a000000000696016f000000e90760009c000001dd0000213d000000400060043f000000800020043f00000000042400190000002404400039000000000334004b0000030a0000213d0000002003500039000000000131034f0000001f0320018f0000000504200272000000ca0000613d00000000050000190000000506500210000000000761034f000000000707043b000000a00660003900000000007604350000000105500039000000000645004b000000c20000413d000400000009001d000500000008001d000000000503004b000000db0000613d0000000504400210000000000141034f0000000303300210000000a004400039000000000504043300000000053501cf000000000535022f000000000101043b0000010003300089000000000131022f00000000013101cf000000000151019f0000000000140435000000a00120003900000000000104350000000001000416000300000001001d00000000010004100000000000100435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039035803530000040f0000000102200190000000050400002900000004070000290000030a0000613d000000000101043b000000000201041a00000003090000290000000002920049000000000021041b0000000101000039000000000201041a0000000002920049000000000021041b000000ec02000041000000400100043d000000200310003900000000002304350000006002400210000000240310003900000000002304350000000008000411000000600280021000000058031000390000000000230435000000380210003900000000009204350000006c03100039000000800200043d000000000402004b000001100000613d00000000040000190000000005340019000000a006400039000000000606043300000000006504350000002004400039000000000524004b000001090000413d000000000332001900000000000304350000004c0320003900000000003104350000008b02200039000000000272016f000000000a12001900000000022a004b00000000020000190000000102004039000000e903a0009c000001dd0000213d0000000102200190000001dd0000c13d000100000008001d0000004000a0043f000000ed0200004100000000002a04350000000402a000390000002003000039000000000032043500000000020104330000002403a0003900000000002304350000004403a00039000000000402004b000001330000613d000000000400001900000000053400190000002004400039000000000614001900000000060604330000000000650435000000000524004b0000012c0000413d000000000132001900000000000104350000001f01200039000000000171016f000000d702000041000000d703a0009c000000000302001900000000030a401900000040033002100000004401100039000000d70410009c00000000010280190000006001100210000000000131019f0000000003000414000000d70430009c0000000003028019000000c002300210000000000112019f000080080200003900020000000a001d0358034e0000040f000000020a00002900000000030100190000006003300270000000d703300197000000200430008c000000000403001900000020040080390000001f0540018f00000005064002720000015c0000613d0000000007000019000000050870021000000000098a0019000000000881034f000000000808043b00000000008904350000000107700039000000000867004b000001540000413d000000000705004b0000016b0000613d0000000506600210000000000761034f00000000066a00190000000305500210000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f000000000056043500000001022001900000030c0000613d0000001f01400039000000600210018f0000000001a20019000000000221004b00000000020000190000000102004039000000e90410009c00000005040000290000000305000029000001dd0000213d0000000102200190000001dd0000c13d000000400010043f000000200230008c0000030a0000413d00000020021000390000004003000039000000000032043500000000005104350000004003100039000000800200043d00000000002304350000006003100039000000e506400197000000000402004b0000018f0000613d00000000040000190000000005340019000000a007400039000000000707043300000000007504350000002004400039000000000524004b000001880000413d000000000332001900000000000304350000007f02200039000000040220017f000000d703000041000000d70410009c00000000010380190000004001100210000000d70420009c00000000020380190000006002200210000000000112019f0000000002000414000000d70420009c0000000002038019000000c002200210000000000112019f000000ee011001c70000800d020000390000000303000039000000ef040000410000000105000029000003050000013d0000000001000416000000000101004b0000030a0000c13d000000c001000039000000400010043f0000000501000039000000800010043f000000ff01000041000001f20000013d000000040230008a000000200220008c0000030a0000413d0000000401100370000000000401043b000000e50140009c0000030a0000213d0000000001000416000400000001001d00000000010004100000000000100435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039000500000004001d035803530000040f000000050400002900000001022001900000030a0000613d000000000101043b000000000201041a00000004050000290000000002520049000000000021041b0000000101000039000000000201041a0000000002520049000000000021041b000000ec02000041000000400100043d000000200310003900000000002304350000006002400210000000240310003900000000002304350000003802100039000000000052043500000038020000390000000000210435000000f80210009c0000022f0000413d000000fa0100004100000000001004350000004101000039000000040010043f000000fb010000410000035a000104300000000001000416000000000101004b0000030a0000c13d0000001201000039000000800010043f000000e601000041000003590001042e0000000001000416000000000101004b0000030a0000c13d000000c001000039000000400010043f0000000301000039000000800010043f000000e701000041000000a00010043f0000002001000039000000c00010043f0000008001000039000000e002000039035803290000040f000000c00110008a000000d702000041000000d70310009c00000000010280190000006001100210000000e8011001c7000003590001042e000000f001000041000000800010043f0000002001000039000000840010043f0000001f01000039000000a40010043f000000fc01000041000000c40010043f000000fd010000410000035a00010430000400000003001d0000000000400435000000200000043f000000d7010000410000000002000414000000d70320009c0000000002018019000000c001200210000000eb011001c70000801002000039000500000004001d000300000005001d035803530000040f000000050300002900000001022001900000030a0000613d000000000101043b000000000201041a000000040120006c000002d30000813d000000400100043d0000004402100039000000f603000041000000000032043500000024021000390000001f030000390000000000320435000000f0020000410000000000210435000000040210003900000020030000390000000000320435000000d702000041000000d70310009c00000000010280190000004001100210000000f7011001c70000035a000104300000006007100039000000400070043f000000ed020000410000000000270435000000640210003900000020030000390000000000320435000000840310003900000000020104330000000000230435000000a403100039000000000402004b000002440000613d000000000400001900000000053400190000002004400039000000000614001900000000060604330000000000650435000000000524004b0000023d0000413d000000000132001900000000000104350000001f01200039000000200200008a000000000121016f000000d702000041000000d70370009c0000000003020019000000000307401900000040033002100000004401100039000000d70410009c00000000010280190000006001100210000000000131019f0000000003000414000000d70430009c0000000003028019000000c002300210000000000112019f0000800802000039000300000007001d0358034e0000040f000000030a00002900000000030100190000006003300270000000d703300197000000200430008c000000000403001900000020040080390000001f0540018f00000005064002720000026e0000613d0000000007000019000000050870021000000000098a0019000000000881034f000000000808043b00000000008904350000000107700039000000000867004b000002660000413d000000000705004b0000027d0000613d0000000506600210000000000761034f00000000066a00190000000305500210000000000806043300000000085801cf000000000858022f000000000707043b0000010005500089000000000757022f00000000055701cf000000000585019f000000000056043500000001022001900000029f0000613d0000001f01400039000000600210018f0000000001a20019000000000221004b00000000020000190000000102004039000000e90410009c00000005050000290000000404000029000001dd0000213d0000000102200190000001dd0000c13d000000400010043f000000200230008c0000030a0000413d0000000000410435000000d7020000410000000003000414000000d70430009c0000000003028019000000d70410009c00000000010280190000004001100210000000c002300210000000000112019f000000f4011001c7000000e5065001970000800d0200003900000003030000390000000005000411000000f904000041000003050000013d000000400200043d0000001f0430018f0000000505300272000002ac0000613d000000000600001900000005076002100000000008720019000000000771034f000000000707043b00000000007804350000000106600039000000000756004b000002a40000413d000000000604004b000002bb0000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000000d701000041000000d70420009c000000000201801900000040012002100000006002300210000000000121019f0000035a00010430000000000021041b000000400100043d0000000000310435000000d7020000410000000003000414000000d70430009c0000000003028019000000d70410009c00000000010280190000004001100210000000c002300210000000000112019f000000f4011001c70000800d020000390000000203000039000000fe04000041000003050000013d000200000002001d0000000000300435000000200000043f000000d7030000410000000001000414000000d70210009c0000000001038019000000c001100210000000eb011001c70000801002000039035803530000040f000000030300002900000001022001900000030a0000613d0000000204000029000000040240006a000000000101043b000000000021041b00000000003004350000000001000414000000d70210009c000000d701008041000000c001100210000000eb011001c70000801002000039035803530000040f0000000306000029000000050500002900000001022001900000030a0000613d000000000101043b000000000201041a00000004030000290000000002320019000000000021041b000000400100043d0000000000310435000000d7020000410000000003000414000000d70430009c0000000003028019000000d70410009c00000000010280190000004001100210000000c002300210000000000112019f000000f4011001c70000800d020000390000000303000039000000f5040000410358034e0000040f00000001012001900000030a0000613d0000000001000019000003590001042e00000000010000190000035a00010430000000400200043d0000001f0430018f0000000505300272000003190000613d000000000600001900000005076002100000000008720019000000000771034f000000000707043b00000000007804350000000106600039000000000756004b000003110000413d000000000604004b000003280000613d0000000505500210000000000151034f00000000055200190000000304400210000000000605043300000000064601cf000000000646022f000000000101043b0000010004400089000000000141022f00000000014101cf000000000161019f0000000000150435000002bb0000013d00000000030104330000000002320436000000000403004b000003350000613d000000000400001900000000052400190000002004400039000000000614001900000000060604330000000000650435000000000534004b0000032e0000413d000000000123001900000000000104350000001f01300039000000200300008a000000000131016f0000000001120019000000000001042d000000d702000041000000d70310009c00000000010280190000000003000414000000d70430009c0000000003028019000000c0023002100000004001100210000000000121019f000000eb011001c70000801002000039035803530000040f00000001022001900000034c0000613d000000000101043b000000000001042d00000000010000190000035a0001043000000351002104210000000102000039000000000001042d0000000002000019000000000001042d00000356002104230000000102000039000000000001042d0000000002000019000000000001042d0000035800000432000003590001042e0000035a00010430000000000000000000000000000000000000000000000000000000000000000000000000ffffffff00000002000000000000000000000000000000400000010000000000000000000000000000000000000000000000000000000000000000000000000051cff8d80000000000000000000000000000000000000000000000000000000084bc3eaf0000000000000000000000000000000000000000000000000000000084bc3eb00000000000000000000000000000000000000000000000000000000095d89b41000000000000000000000000000000000000000000000000000000009cc7f7080000000000000000000000000000000000000000000000000000000051cff8d900000000000000000000000000000000000000000000000000000000579952fc00000000000000000000000000000000000000000000000000000000313ce56600000000000000000000000000000000000000000000000000000000313ce5670000000000000000000000000000000000000000000000000000000040c10f190000000000000000000000000000000000000000000000000000000006fdde030000000000000000000000000000000000000000000000000000000018160ddd000000000000000000000000ffffffffffffffffffffffffffffffffffffffff000000000000000000000000000000000000002000000080000000000000000045544800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000ffffffffffffffff800000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000400000000000000000000000006c0960f90000000000000000000000000000000000000000000000000000000062f84b24000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000c405fe8958410bbaf0c73b7a0c3e20859e86ca168a4c9b0def9c54d2555a306b08c379a0000000000000000000000000000000000000000000000000000000004f6e6c792073797374656d20636f6e7472616374732077697468207370656369616c206163636573732063616e2063616c6c2074686973206d6574686f64000000000000000000000000000000000000000000840000008000000000000000000200000000000000000000000000000000000020000000000000000000000000ddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5472616e7366657220616d6f756e7420657863656564732062616c616e6365000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffa02717ead6b9200dd235aad468c9809ea400fe33ac69b5bfaa6d3e90fc922b63984e487b7100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002400000000000000000000000043616c6c61626c65206f6e6c792062792074686520626f6f746c6f616465720000000000000000000000000000000000000000640000008000000000000000000f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688545746865720000000000000000000000000000000000000000000000000000007b182cdf1aa84e348ae5644feda1c98a5a163d38bb021538445530813acd46bb | - @id266:I @testnet + @id266:I @testnet Scenario Outline: Check "" hashes copying on Block page Given I go to page "/block/1" When I click on the copy button with "" row on "Block" page @@ -125,7 +125,7 @@ Feature: Copying | Prove tx hash | 0xfbd3a89cee83e4f28999bc8fd5e96d133b7ebc367d5c7026f173d21687998379 | | Execute tx hash | 0x5131c1bb47dca3d42ccdfd12d1ab7224cbb88fb9ad91b94e2da26631602f6fab | - @id266:III @mainnet + @id266:III @mainnet Scenario Outline: Check "" hashes copying on Block page Given I go to page "/block/1" When I click on the copy button with "" row on "Block" page From 08919a99da7bbae059173d045c0535bc530a0bfb Mon Sep 17 00:00:00 2001 From: Oleh Bairak <118197764+olehbairak@users.noreply.github.com> Date: Tue, 6 Feb 2024 11:51:15 +0100 Subject: [PATCH 20/22] Update accounts.test.ts --- packages/integration-tests/tests/api/accounts.test.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index ef839bc9a9..07d9136ec9 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -210,7 +210,6 @@ describe("API module: Account", () => { }); //@id1806 - it("Verify /api?module=account&action=tokennfttx", async () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); From 84dbc4cf572236205632ae54e2c519f2b55d9815 Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Tue, 6 Feb 2024 12:11:00 +0100 Subject: [PATCH 21/22] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 07d9136ec9..3dfd3fbb5d 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -78,7 +78,7 @@ describe("API module: Account", () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=txlist&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; + apiRoute = `/api?module=account&action=txlist&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; response = await helper.performGETrequest(apiRoute); expect(response.status).toBe(200); @@ -119,7 +119,7 @@ describe("API module: Account", () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; + apiRoute = `/api?module=account&action=txlistinternal&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&address=${Wallets.richWalletAddress}`; response = await helper.performGETrequest(apiRoute); expect(response.status).toBe(200); @@ -176,8 +176,9 @@ describe("API module: Account", () => { await helper.retryTestAction(async () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; - apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; + apiRoute = `/api?module=account&action=tokentx&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&contractaddress=${Token.ETHER_ERC20_Address}&address=${Wallets.richWalletAddress}`; response = await helper.performGETrequest(apiRoute); + console.log(apiRoute); expect(response.status).toBe(200); expect(response.body).toStrictEqual(expect.objectContaining({ status: "1" })); @@ -216,7 +217,7 @@ describe("API module: Account", () => { const blockNumber = blocks.body.items[0].number; const nftAddress = await helper.getStringFromFile(bufferFile + Buffer.NFTtoL2); console.log(nftAddress); - apiRoute = `/api?module=account&action=tokennfttx&page=1&offset=10&sort=desc&endblock${blockNumber}&startblock=0&contractaddress=${nftAddress}&address=${nftAddress}`; + apiRoute = `/api?module=account&action=tokennfttx&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&contractaddress=${nftAddress}&address=${nftAddress}`; response = await helper.performGETrequest(apiRoute); expect(response.status).toBe(200); From 97a024a371b11276e206ddb8d100bb613265390f Mon Sep 17 00:00:00 2001 From: Oleh Bairak Date: Tue, 6 Feb 2024 12:11:41 +0100 Subject: [PATCH 22/22] fix: new one --- packages/integration-tests/tests/api/accounts.test.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/integration-tests/tests/api/accounts.test.ts b/packages/integration-tests/tests/api/accounts.test.ts index 3dfd3fbb5d..401b1c702d 100644 --- a/packages/integration-tests/tests/api/accounts.test.ts +++ b/packages/integration-tests/tests/api/accounts.test.ts @@ -216,7 +216,6 @@ describe("API module: Account", () => { const blocks = await request(environment.blockExplorerAPI).get("/blocks"); const blockNumber = blocks.body.items[0].number; const nftAddress = await helper.getStringFromFile(bufferFile + Buffer.NFTtoL2); - console.log(nftAddress); apiRoute = `/api?module=account&action=tokennfttx&page=1&offset=10&sort=desc&endblock=${blockNumber}&startblock=0&contractaddress=${nftAddress}&address=${nftAddress}`; response = await helper.performGETrequest(apiRoute);