From e93798ea5499bf9b7e956a5d4ceaf9fb4c7d88bf Mon Sep 17 00:00:00 2001 From: Andrea Scartabelli Date: Thu, 12 Sep 2024 17:00:26 +0200 Subject: [PATCH] explorer: Add `memo` and `isDeploy` fields in transactions - removed unused "contract" property in transactions Resolves #2362 --- explorer/CHANGELOG.md | 2 + .../__tests__/transformBlock.spec.js | 4 +- .../__tests__/transformTransaction.spec.js | 32 +- explorer/src/lib/chain-info/chain-info.d.ts | 2 +- .../lib/chain-info/transformTransaction.js | 7 +- .../TransactionDetails.spec.js.snap | 54 +++ .../TransactionDetails.svelte | 8 + explorer/src/lib/mock-data/gql-block.json | 8 +- explorer/src/lib/mock-data/gql-blocks.json | 16 +- .../src/lib/mock-data/gql-chain-info.d.ts | 2 + .../lib/mock-data/gql-latest-chain-info.json | 60 ++- .../src/lib/mock-data/gql-transaction.json | 4 +- .../src/lib/mock-data/gql-transactions.json | 400 +++++++++++++----- .../lib/services/__tests__/duskAPI.spec.js | 10 +- explorer/src/lib/services/gql-queries.js | 4 +- .../__tests__/__snapshots__/page.spec.js.snap | 27 ++ 16 files changed, 502 insertions(+), 138 deletions(-) diff --git a/explorer/CHANGELOG.md b/explorer/CHANGELOG.md index a5d631563f..d7558f2abb 100644 --- a/explorer/CHANGELOG.md +++ b/explorer/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add accessible name to the nav bar button on mobile [#2036] - Implement warning for stale market data [#1892] - Add tooltip to current and pending stake showing the exact amount [#2363] +- Add `memo` and `isDeploy` fields in transactions [#2362] ### Changed @@ -62,6 +63,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#2159]: https://github.com/dusk-network/rusk/issues/2159 [#2220]: https://github.com/dusk-network/rusk/issues/2220 [#2348]: https://github.com/dusk-network/rusk/issues/2348 +[#2362]: https://github.com/dusk-network/rusk/issues/2362 [#2363]: https://github.com/dusk-network/rusk/issues/2363 diff --git a/explorer/src/lib/chain-info/__tests__/transformBlock.spec.js b/explorer/src/lib/chain-info/__tests__/transformBlock.spec.js index 8545fb233e..d57b78a420 100644 --- a/explorer/src/lib/chain-info/__tests__/transformBlock.spec.js +++ b/explorer/src/lib/chain-info/__tests__/transformBlock.spec.js @@ -28,12 +28,12 @@ describe("transformBlock", () => { blockhash: "bd5c99bb720b03500e89f103fe66113ba62f2e124ed9651563f38fd15977719f", blockheight: 495868, - contract: "Transfer", date: new Date(blockData.transactions[0].blockTimestamp * 1000), feepaid: 290866, gaslimit: 500000000, gasprice: 1, gasspent: 290866, + memo: blockData.transactions[0].tx.memo, method: "transfer", success: true, txerror: "", @@ -43,12 +43,12 @@ describe("transformBlock", () => { blockhash: "bd5c99bb720b03500e89f103fe66113ba62f2e124ed9651563f38fd15977719f", blockheight: 495868, - contract: "Transfer", date: new Date(blockData.transactions[1].blockTimestamp * 1000), feepaid: 289852, gaslimit: 500000000, gasprice: 1, gasspent: 289852, + memo: blockData.transactions[1].tx.memo, method: "transfer", success: true, txerror: "", diff --git a/explorer/src/lib/chain-info/__tests__/transformTransaction.spec.js b/explorer/src/lib/chain-info/__tests__/transformTransaction.spec.js index 2955245b2d..0afb2078a6 100644 --- a/explorer/src/lib/chain-info/__tests__/transformTransaction.spec.js +++ b/explorer/src/lib/chain-info/__tests__/transformTransaction.spec.js @@ -10,12 +10,12 @@ describe("transformTransaction", () => { blockhash: "3c6e4018cfa86723e50644e33d3990bc27fc794f6b49fbf6290e4d308e07bd2d", blockheight: 487166, - contract: "Transfer", date: new Date(txData.blockTimestamp * 1000), feepaid: 290766, gaslimit: 500000000, gasprice: 1, gasspent: 290766, + memo: gqlTransaction.tx.tx.memo, method: "transfer", success: true, txerror: "", @@ -40,13 +40,41 @@ describe("transformTransaction", () => { }; const expected = { ...expectedTx, - contract: "Stake", method: "stake", }; expect(transformTransaction(data)).toStrictEqual(expected); }); + it('should use "deploy" as method, if the related property is `true`, regardless of the `callData.fnName` value', () => { + const dataA = { + ...txData, + tx: { + ...txData.tx, + callData: { + contractId: + "0200000000000000000000000000000000000000000000000000000000000000", + fnName: "transfer", + }, + isDeploy: true, + }, + }; + const dataB = { + ...txData, + tx: { + ...txData.tx, + isDeploy: true, + }, + }; + const expected = { + ...expectedTx, + method: "deploy", + }; + + expect(transformTransaction(dataA)).toStrictEqual(expected); + expect(transformTransaction(dataB)).toStrictEqual(expected); + }); + it("should set the success property to `false` if the an error is present and use the message in the `txerror` property", () => { const data = { ...txData, diff --git a/explorer/src/lib/chain-info/chain-info.d.ts b/explorer/src/lib/chain-info/chain-info.d.ts index a977d949e5..40b83cb9e6 100644 --- a/explorer/src/lib/chain-info/chain-info.d.ts +++ b/explorer/src/lib/chain-info/chain-info.d.ts @@ -37,12 +37,12 @@ type SearchResult = { type Transaction = { blockhash: string; blockheight: number; - contract: string; date: Date; feepaid: number; gaslimit: number; gasprice: number; gasspent: number; + memo: string; method: string; success: boolean; txerror: string; diff --git a/explorer/src/lib/chain-info/transformTransaction.js b/explorer/src/lib/chain-info/transformTransaction.js index 59cc6b69a1..a7a9177536 100644 --- a/explorer/src/lib/chain-info/transformTransaction.js +++ b/explorer/src/lib/chain-info/transformTransaction.js @@ -1,19 +1,16 @@ import { unixTsToDate } from "$lib/dusk/date"; -/** @param {string} [s] */ -const capitalize = (s) => (s ? `${s[0].toUpperCase()}${s.slice(1)}` : ""); - /** @type {(v: GQLTransaction) => Transaction} */ const transformTransaction = (tx) => ({ blockhash: tx.blockHash, blockheight: tx.blockHeight, - contract: tx.tx.callData ? capitalize(tx.tx.callData.fnName) : "Transfer", date: unixTsToDate(tx.blockTimestamp), feepaid: tx.gasSpent * tx.tx.gasPrice, gaslimit: tx.tx.gasLimit, gasprice: tx.tx.gasPrice, gasspent: tx.gasSpent, - method: tx.tx.callData?.fnName ?? "transfer", + memo: tx.tx.memo ?? "", + method: tx.tx.isDeploy ? "deploy" : tx.tx.callData?.fnName ?? "transfer", success: tx.err === null, txerror: tx.err ?? "", txid: tx.id, diff --git a/explorer/src/lib/components/__tests__/__snapshots__/TransactionDetails.spec.js.snap b/explorer/src/lib/components/__tests__/__snapshots__/TransactionDetails.spec.js.snap index 2fe39e4604..8f97d3e49a 100644 --- a/explorer/src/lib/components/__tests__/__snapshots__/TransactionDetails.spec.js.snap +++ b/explorer/src/lib/components/__tests__/__snapshots__/TransactionDetails.spec.js.snap @@ -284,6 +284,33 @@ exports[`Transaction Details > renders the Transaction Details component 1`] = ` > 290766 +
+ + + + + + memo +
+ +
+ some notes about the transaction + +
@@ -610,6 +637,33 @@ exports[`Transaction Details > renders the Transaction Details component with th > 290766 +
+ + + + + + memo +
+ +
+ some notes about the transaction + +
diff --git a/explorer/src/lib/components/transaction-details/TransactionDetails.svelte b/explorer/src/lib/components/transaction-details/TransactionDetails.svelte index 7eaa49f5a0..b55f033928 100644 --- a/explorer/src/lib/components/transaction-details/TransactionDetails.svelte +++ b/explorer/src/lib/components/transaction-details/TransactionDetails.svelte @@ -170,6 +170,14 @@ {data.gasspent} + + + memo + {data.memo} + + diff --git a/explorer/src/lib/mock-data/gql-block.json b/explorer/src/lib/mock-data/gql-block.json index 1f3909d467..8637cd3b36 100644 --- a/explorer/src/lib/mock-data/gql-block.json +++ b/explorer/src/lib/mock-data/gql-block.json @@ -23,9 +23,11 @@ "id": "3a3f6f90a1012ae751b4448bcb8e98def0ba2b18170239bd69fcf8e2e37f0602", "tx": { "callData": null, + "isDeploy": false, "gasLimit": 500000000, "gasPrice": 1, - "id": "3a3f6f90a1012ae751b4448bcb8e98def0ba2b18170239bd69fcf8e2e37f0602" + "id": "3a3f6f90a1012ae751b4448bcb8e98def0ba2b18170239bd69fcf8e2e37f0602", + "memo": "" } }, { @@ -39,7 +41,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "07bfabea1d94c16f2dc3697fa642f6cecea6e81bf76b9644efbb6e2723b76d00" + "id": "07bfabea1d94c16f2dc3697fa642f6cecea6e81bf76b9644efbb6e2723b76d00", + "isDeploy": false, + "memo": "some notes about the transaction" } } ] diff --git a/explorer/src/lib/mock-data/gql-blocks.json b/explorer/src/lib/mock-data/gql-blocks.json index 51d4a1a1eb..ee73dcfc01 100644 --- a/explorer/src/lib/mock-data/gql-blocks.json +++ b/explorer/src/lib/mock-data/gql-blocks.json @@ -1162,7 +1162,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "befe14f664fe1cb95f89b7500cc8a8368b3cd8ab58f4897dd3c0132cbebde004" + "id": "befe14f664fe1cb95f89b7500cc8a8368b3cd8ab58f4897dd3c0132cbebde004", + "isDeploy": false, + "memo": "" } } ] @@ -1273,7 +1275,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "dd9249849db6143ae4bf3420da9a2bf90b402807f0ef4843d51dd06db35e2a0a" + "id": "dd9249849db6143ae4bf3420da9a2bf90b402807f0ef4843d51dd06db35e2a0a", + "isDeploy": false, + "memo": "" } } ] @@ -1400,7 +1404,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "1466ebfcaefcff92b8bb88feb86aab902a73d6062731de52d3f22d502136fc01" + "id": "1466ebfcaefcff92b8bb88feb86aab902a73d6062731de52d3f22d502136fc01", + "isDeploy": false, + "memo": "" } } ] @@ -1447,7 +1453,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "15af4e04d4f34b89a77601945aaec5c284ff71ed076ba3e4c7b6db1c7cddb80d" + "id": "15af4e04d4f34b89a77601945aaec5c284ff71ed076ba3e4c7b6db1c7cddb80d", + "isDeploy": false, + "memo": "" } } ] diff --git a/explorer/src/lib/mock-data/gql-chain-info.d.ts b/explorer/src/lib/mock-data/gql-chain-info.d.ts index 60b9d24178..b3082e6a08 100644 --- a/explorer/src/lib/mock-data/gql-chain-info.d.ts +++ b/explorer/src/lib/mock-data/gql-chain-info.d.ts @@ -48,5 +48,7 @@ type GQLTransaction = { gasLimit: number; gasPrice: number; id: string; + isDeploy: boolean; + memo: string; }; }; diff --git a/explorer/src/lib/mock-data/gql-latest-chain-info.json b/explorer/src/lib/mock-data/gql-latest-chain-info.json index 509c8481c6..62ee830a8e 100644 --- a/explorer/src/lib/mock-data/gql-latest-chain-info.json +++ b/explorer/src/lib/mock-data/gql-latest-chain-info.json @@ -253,7 +253,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "64cbef4738ccd709451ca5558b15ca3202b6d8147df6777debc4f6a8a4bc7d03" + "id": "64cbef4738ccd709451ca5558b15ca3202b6d8147df6777debc4f6a8a4bc7d03", + "isDeploy": false, + "memo": "" } }, { @@ -267,7 +269,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "1f6d99ea97565460469c6802b39af9bf0f94f457e97a3fc3eb41546d29b86804" + "id": "1f6d99ea97565460469c6802b39af9bf0f94f457e97a3fc3eb41546d29b86804", + "isDeploy": false, + "memo": "" } }, { @@ -281,7 +285,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "3ee81c6375f1ab41272e4c9f8dfb7950483c3bbfadf44658df735a18bde67c04" + "id": "3ee81c6375f1ab41272e4c9f8dfb7950483c3bbfadf44658df735a18bde67c04", + "isDeploy": false, + "memo": "" } }, { @@ -295,7 +301,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "3a75b42910a41d1f9a2639b09d95467fc076709a2f1553d6294ae15d6944e60e" + "id": "3a75b42910a41d1f9a2639b09d95467fc076709a2f1553d6294ae15d6944e60e", + "isDeploy": false, + "memo": "" } }, { @@ -309,7 +317,9 @@ "callData": null, "gasLimit": 50000000, "gasPrice": 1, - "id": "070280c69500df7d1b40942981a3b599ccf9f71ba62f96d63e322994efca2a0e" + "id": "070280c69500df7d1b40942981a3b599ccf9f71ba62f96d63e322994efca2a0e", + "isDeploy": false, + "memo": "" } }, { @@ -323,7 +333,9 @@ "callData": null, "gasLimit": 50000000, "gasPrice": 1, - "id": "534f753d5a420fddc21c84d76ff26b87cc48ea75b450c082759d155153259c00" + "id": "534f753d5a420fddc21c84d76ff26b87cc48ea75b450c082759d155153259c00", + "isDeploy": false, + "memo": "" } }, { @@ -337,7 +349,9 @@ "callData": null, "gasLimit": 50000000, "gasPrice": 1, - "id": "c6f13af20c23b8bc55d22a416a191e3a6ba47128b4d7dc3ac6fce5fc68ebb102" + "id": "c6f13af20c23b8bc55d22a416a191e3a6ba47128b4d7dc3ac6fce5fc68ebb102", + "isDeploy": false, + "memo": "" } }, { @@ -351,7 +365,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "31c7dce26a5a6ef1392f53630b8e2714981f10eaeea2685c5a37dbbf7bcb4c04" + "id": "31c7dce26a5a6ef1392f53630b8e2714981f10eaeea2685c5a37dbbf7bcb4c04", + "isDeploy": false, + "memo": "" } }, { @@ -365,7 +381,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "4fa6e913c083aa595530b1f6c010c7e5a58121307c991ea6782f9e9e4dd5510d" + "id": "4fa6e913c083aa595530b1f6c010c7e5a58121307c991ea6782f9e9e4dd5510d", + "isDeploy": false, + "memo": "" } }, { @@ -379,7 +397,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "d1a7928a435021d87ea3649bff57c8154fc7b5c6c68081a61fea5779ccdb2e04" + "id": "d1a7928a435021d87ea3649bff57c8154fc7b5c6c68081a61fea5779ccdb2e04", + "isDeploy": false, + "memo": "" } }, { @@ -393,7 +413,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "004ca8683c315b9270e04d3768dfb58fb0f65d92a9469ca31a5d97cff9718b06" + "id": "004ca8683c315b9270e04d3768dfb58fb0f65d92a9469ca31a5d97cff9718b06", + "isDeploy": false, + "memo": "" } }, { @@ -407,7 +429,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b5a77063e45dd90b97b2c30b4cd670fbf04ae60c4b8e3ea9fd0d0b4496253a05" + "id": "b5a77063e45dd90b97b2c30b4cd670fbf04ae60c4b8e3ea9fd0d0b4496253a05", + "isDeploy": false, + "memo": "" } }, { @@ -421,7 +445,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b263d9d594439be92bb9349bd97f55a05060956419f2f4a32925639d80b06e0b" + "id": "b263d9d594439be92bb9349bd97f55a05060956419f2f4a32925639d80b06e0b", + "isDeploy": false, + "memo": "" } }, { @@ -435,7 +461,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b4525cb82f5cd56fcf8ceb2eb30f647d2c3567e82abb8265dd12daf5275d7709" + "id": "b4525cb82f5cd56fcf8ceb2eb30f647d2c3567e82abb8265dd12daf5275d7709", + "isDeploy": false, + "memo": "" } }, { @@ -449,7 +477,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "40fb9d20eb9e6ffb27be4914f49cdf8059e2fdcc88a7b17f9499ff516584df08" + "id": "40fb9d20eb9e6ffb27be4914f49cdf8059e2fdcc88a7b17f9499ff516584df08", + "isDeploy": false, + "memo": "" } } ] diff --git a/explorer/src/lib/mock-data/gql-transaction.json b/explorer/src/lib/mock-data/gql-transaction.json index bfd57a3be4..e0470609aa 100644 --- a/explorer/src/lib/mock-data/gql-transaction.json +++ b/explorer/src/lib/mock-data/gql-transaction.json @@ -10,7 +10,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "4877687c2dbf154248d3ddee9ba0d81e3431f39056f82a46819da041d4ac0e04" + "id": "4877687c2dbf154248d3ddee9ba0d81e3431f39056f82a46819da041d4ac0e04", + "isDeploy": false, + "memo": "some notes about the transaction" } } } diff --git a/explorer/src/lib/mock-data/gql-transactions.json b/explorer/src/lib/mock-data/gql-transactions.json index 5283f8d26b..cdbea0d56b 100644 --- a/explorer/src/lib/mock-data/gql-transactions.json +++ b/explorer/src/lib/mock-data/gql-transactions.json @@ -11,7 +11,9 @@ "callData": null, "gasLimit": 50000000, "gasPrice": 1, - "id": "070280c69500df7d1b40942981a3b599ccf9f71ba62f96d63e322994efca2a0e" + "id": "070280c69500df7d1b40942981a3b599ccf9f71ba62f96d63e322994efca2a0e", + "isDeploy": false, + "memo": "" } }, { @@ -25,7 +27,9 @@ "callData": null, "gasLimit": 50000000, "gasPrice": 1, - "id": "534f753d5a420fddc21c84d76ff26b87cc48ea75b450c082759d155153259c00" + "id": "534f753d5a420fddc21c84d76ff26b87cc48ea75b450c082759d155153259c00", + "isDeploy": false, + "memo": "" } }, { @@ -39,7 +43,9 @@ "callData": null, "gasLimit": 50000000, "gasPrice": 1, - "id": "c6f13af20c23b8bc55d22a416a191e3a6ba47128b4d7dc3ac6fce5fc68ebb102" + "id": "c6f13af20c23b8bc55d22a416a191e3a6ba47128b4d7dc3ac6fce5fc68ebb102", + "isDeploy": false, + "memo": "" } }, { @@ -53,7 +59,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "31c7dce26a5a6ef1392f53630b8e2714981f10eaeea2685c5a37dbbf7bcb4c04" + "id": "31c7dce26a5a6ef1392f53630b8e2714981f10eaeea2685c5a37dbbf7bcb4c04", + "isDeploy": false, + "memo": "" } }, { @@ -67,7 +75,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "4fa6e913c083aa595530b1f6c010c7e5a58121307c991ea6782f9e9e4dd5510d" + "id": "4fa6e913c083aa595530b1f6c010c7e5a58121307c991ea6782f9e9e4dd5510d", + "isDeploy": false, + "memo": "" } }, { @@ -81,7 +91,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "d1a7928a435021d87ea3649bff57c8154fc7b5c6c68081a61fea5779ccdb2e04" + "id": "d1a7928a435021d87ea3649bff57c8154fc7b5c6c68081a61fea5779ccdb2e04", + "isDeploy": false, + "memo": "" } }, { @@ -95,7 +107,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "004ca8683c315b9270e04d3768dfb58fb0f65d92a9469ca31a5d97cff9718b06" + "id": "004ca8683c315b9270e04d3768dfb58fb0f65d92a9469ca31a5d97cff9718b06", + "isDeploy": false, + "memo": "" } }, { @@ -109,7 +123,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b5a77063e45dd90b97b2c30b4cd670fbf04ae60c4b8e3ea9fd0d0b4496253a05" + "id": "b5a77063e45dd90b97b2c30b4cd670fbf04ae60c4b8e3ea9fd0d0b4496253a05", + "isDeploy": false, + "memo": "" } }, { @@ -123,7 +139,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b263d9d594439be92bb9349bd97f55a05060956419f2f4a32925639d80b06e0b" + "id": "b263d9d594439be92bb9349bd97f55a05060956419f2f4a32925639d80b06e0b", + "isDeploy": false, + "memo": "" } }, { @@ -137,7 +155,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b4525cb82f5cd56fcf8ceb2eb30f647d2c3567e82abb8265dd12daf5275d7709" + "id": "b4525cb82f5cd56fcf8ceb2eb30f647d2c3567e82abb8265dd12daf5275d7709", + "isDeploy": false, + "memo": "" } }, { @@ -151,7 +171,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "40fb9d20eb9e6ffb27be4914f49cdf8059e2fdcc88a7b17f9499ff516584df08" + "id": "40fb9d20eb9e6ffb27be4914f49cdf8059e2fdcc88a7b17f9499ff516584df08", + "isDeploy": false, + "memo": "" } }, { @@ -165,7 +187,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b5ad0ec014ac415dc8ea214f9baf555728126558afc8e142f8223504f807910b" + "id": "b5ad0ec014ac415dc8ea214f9baf555728126558afc8e142f8223504f807910b", + "isDeploy": false, + "memo": "" } }, { @@ -179,7 +203,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "56504a6d6236fbd64671d86e6f60f20fc3e1ce09f7ee9ebc13b593ba14520c00" + "id": "56504a6d6236fbd64671d86e6f60f20fc3e1ce09f7ee9ebc13b593ba14520c00", + "isDeploy": false, + "memo": "" } }, { @@ -193,7 +219,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "d65e4ebe379d0d67142e80b377b41eaa35fa7d6e9acd3e034e6d63d5026ea001" + "id": "d65e4ebe379d0d67142e80b377b41eaa35fa7d6e9acd3e034e6d63d5026ea001", + "isDeploy": false, + "memo": "" } }, { @@ -207,7 +235,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "6c0ac7828bd57ddf18834505b0cd64f7db91ed6504dd7224a3094e10b1febf06" + "id": "6c0ac7828bd57ddf18834505b0cd64f7db91ed6504dd7224a3094e10b1febf06", + "isDeploy": false, + "memo": "" } }, { @@ -221,7 +251,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "890f5cbdabc58674e519498a92630e62700a4630e2fc66a12cab1603ec72fd0a" + "id": "890f5cbdabc58674e519498a92630e62700a4630e2fc66a12cab1603ec72fd0a", + "isDeploy": false, + "memo": "" } }, { @@ -235,7 +267,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "0717291342435d2d14a8dd8d0850c8bd563d9f4a86e4ccd6befe2c49ec4ca701" + "id": "0717291342435d2d14a8dd8d0850c8bd563d9f4a86e4ccd6befe2c49ec4ca701", + "isDeploy": false, + "memo": "" } }, { @@ -253,7 +287,9 @@ }, "gasLimit": 2900000000, "gasPrice": 1, - "id": "234a268e0eb314ef65e67a01673160fca9c28c28e2e9ffa495f46b4390850505" + "id": "234a268e0eb314ef65e67a01673160fca9c28c28e2e9ffa495f46b4390850505", + "isDeploy": false, + "memo": "" } }, { @@ -271,7 +307,9 @@ }, "gasLimit": 2900000000, "gasPrice": 1, - "id": "34faa5407c1cfd3a0b3a9ccb256caf0f968f345136cc91f39b1e8a190d3df90c" + "id": "34faa5407c1cfd3a0b3a9ccb256caf0f968f345136cc91f39b1e8a190d3df90c", + "isDeploy": false, + "memo": "" } }, { @@ -289,7 +327,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "4e6c4cb0cb90c229440e5879ab124ad1686236b7e5f672dadf20616e8a2ba70f" + "id": "4e6c4cb0cb90c229440e5879ab124ad1686236b7e5f672dadf20616e8a2ba70f", + "isDeploy": false, + "memo": "" } }, { @@ -307,7 +347,9 @@ }, "gasLimit": 2900000000, "gasPrice": 1, - "id": "1a5de8a0e93eaeddf80e3d698ff57f2fd4c965bbc1dbbf4938a725041cdbde04" + "id": "1a5de8a0e93eaeddf80e3d698ff57f2fd4c965bbc1dbbf4938a725041cdbde04", + "isDeploy": false, + "memo": "" } }, { @@ -325,7 +367,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "92774d896580133f4de508b81fb736136d0f1a056c688990b122ceb80dcf4e03" + "id": "92774d896580133f4de508b81fb736136d0f1a056c688990b122ceb80dcf4e03", + "isDeploy": false, + "memo": "" } }, { @@ -339,7 +383,9 @@ "callData": null, "gasLimit": 50000000, "gasPrice": 1, - "id": "82a6651bc1f16eeda28c215bc72411a940106e865c14e8508e76d31ccb0a7c00" + "id": "82a6651bc1f16eeda28c215bc72411a940106e865c14e8508e76d31ccb0a7c00", + "isDeploy": false, + "memo": "" } }, { @@ -353,7 +399,9 @@ "callData": null, "gasLimit": 50000000, "gasPrice": 1, - "id": "58e35acd24d88abbf2ac35c4f1feec8e93305e276557ded69a66a01cc2ea960d" + "id": "58e35acd24d88abbf2ac35c4f1feec8e93305e276557ded69a66a01cc2ea960d", + "isDeploy": false, + "memo": "" } }, { @@ -367,7 +415,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "5da77ac9cc3c347234c2a8914ae848e224da17c3f3f1fcf0556d04fe8027d40e" + "id": "5da77ac9cc3c347234c2a8914ae848e224da17c3f3f1fcf0556d04fe8027d40e", + "isDeploy": false, + "memo": "" } }, { @@ -381,7 +431,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "99fbbdf1ccd60008c3d3c46ba4b836c63f815931d58c0d9825e86313e315100e" + "id": "99fbbdf1ccd60008c3d3c46ba4b836c63f815931d58c0d9825e86313e315100e", + "isDeploy": false, + "memo": "" } }, { @@ -395,7 +447,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "911cadef7943c9b9504b5d85a995ef64c53ee7464851d31d8d1f2e7a081dc509" + "id": "911cadef7943c9b9504b5d85a995ef64c53ee7464851d31d8d1f2e7a081dc509", + "isDeploy": false, + "memo": "" } }, { @@ -409,7 +463,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "a58abbae06f7d99b1f073083d514575ff465fdc4be7aea802e14f9afa7767309" + "id": "a58abbae06f7d99b1f073083d514575ff465fdc4be7aea802e14f9afa7767309", + "isDeploy": false, + "memo": "" } }, { @@ -427,7 +483,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "9467c2b0bb71afa96a9fb844bc300d14325ff4fe7c3c1e7d21196f9962f63601" + "id": "9467c2b0bb71afa96a9fb844bc300d14325ff4fe7c3c1e7d21196f9962f63601", + "isDeploy": false, + "memo": "" } }, { @@ -445,7 +503,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "5cfdd5d300993f080910394ffd515c376d568f9fcdb32c3b800205fe526ff800" + "id": "5cfdd5d300993f080910394ffd515c376d568f9fcdb32c3b800205fe526ff800", + "isDeploy": false, + "memo": "" } }, { @@ -463,7 +523,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "a983e6c884a5a83fdb3a2f3a03d8f41d5db813ab9f0b6c41e0a9cfcd0f301b01" + "id": "a983e6c884a5a83fdb3a2f3a03d8f41d5db813ab9f0b6c41e0a9cfcd0f301b01", + "isDeploy": false, + "memo": "" } }, { @@ -481,7 +543,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "0c331d315cb9121aec30b9676abebb474bd7aa962bfe624126745391fda1910b" + "id": "0c331d315cb9121aec30b9676abebb474bd7aa962bfe624126745391fda1910b", + "isDeploy": false, + "memo": "" } }, { @@ -495,7 +559,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "22196ee04a1b3ef6c8d9685aa87ee89e5a6807192716b243a94b1692b40cd60f" + "id": "22196ee04a1b3ef6c8d9685aa87ee89e5a6807192716b243a94b1692b40cd60f", + "isDeploy": false, + "memo": "" } }, { @@ -513,7 +579,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "b8f40c1e38ceecec5659d02577469ab32e05db33def14a1428a3192366b68607" + "id": "b8f40c1e38ceecec5659d02577469ab32e05db33def14a1428a3192366b68607", + "isDeploy": false, + "memo": "" } }, { @@ -531,7 +599,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "e05e7196e54f42297608518dff98dcc6e16d5a59d2b0dd931d57e529d1f37806" + "id": "e05e7196e54f42297608518dff98dcc6e16d5a59d2b0dd931d57e529d1f37806", + "isDeploy": false, + "memo": "" } }, { @@ -545,7 +615,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "8a160bd24157e9a81cf82cef396b9d794db8e61884c2c90871ea9c6bb8bc380d" + "id": "8a160bd24157e9a81cf82cef396b9d794db8e61884c2c90871ea9c6bb8bc380d", + "isDeploy": false, + "memo": "" } }, { @@ -563,7 +635,9 @@ }, "gasLimit": 2900000000, "gasPrice": 1, - "id": "52f50cf4d4a2321e47a043e5b285d237573de4feadc8f16efa3ba7a6591f5806" + "id": "52f50cf4d4a2321e47a043e5b285d237573de4feadc8f16efa3ba7a6591f5806", + "isDeploy": false, + "memo": "" } }, { @@ -577,7 +651,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "e5ac156e8f7e51bcf25c3a489dbedde9d6c52477e7e6882e24bdc6198f645609" + "id": "e5ac156e8f7e51bcf25c3a489dbedde9d6c52477e7e6882e24bdc6198f645609", + "isDeploy": false, + "memo": "" } }, { @@ -591,7 +667,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "84f57b1657281b7c81dbed5bcba04d7334745a94c266736e40f6a16bcc223908" + "id": "84f57b1657281b7c81dbed5bcba04d7334745a94c266736e40f6a16bcc223908", + "isDeploy": false, + "memo": "" } }, { @@ -605,7 +683,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "5e0f99f576f504bc5eae2b349dc2c23dd7eb4b6cfeaa5e2b6c8210c58554c007" + "id": "5e0f99f576f504bc5eae2b349dc2c23dd7eb4b6cfeaa5e2b6c8210c58554c007", + "isDeploy": false, + "memo": "" } }, { @@ -619,7 +699,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "29027db41982ef9a5b0e11673a2850cd561d8f2bbe012df8544e0306db0ca70d" + "id": "29027db41982ef9a5b0e11673a2850cd561d8f2bbe012df8544e0306db0ca70d", + "isDeploy": false, + "memo": "" } }, { @@ -633,7 +715,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "5b8fd7d11d6b3ef22980801c6be470e81cc5814556287980c4304dd973cbd709" + "id": "5b8fd7d11d6b3ef22980801c6be470e81cc5814556287980c4304dd973cbd709", + "isDeploy": false, + "memo": "" } }, { @@ -647,7 +731,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "c65d3de546c94c02200bc0763d509d560e60fef02b3b5a6b39c981cddbe13c07" + "id": "c65d3de546c94c02200bc0763d509d560e60fef02b3b5a6b39c981cddbe13c07", + "isDeploy": false, + "memo": "" } }, { @@ -661,7 +747,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "4d7acb715451a1ee2a56e17135cbc96d2fe112297328bfe55220968ee2f2860f" + "id": "4d7acb715451a1ee2a56e17135cbc96d2fe112297328bfe55220968ee2f2860f", + "isDeploy": false, + "memo": "" } }, { @@ -675,7 +763,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "9cc67e9470b7914186a69d6405d72e4e3366d23e8d0da838fe81c02af1625c0a" + "id": "9cc67e9470b7914186a69d6405d72e4e3366d23e8d0da838fe81c02af1625c0a", + "isDeploy": false, + "memo": "" } }, { @@ -689,7 +779,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "c840c1fbbd76ffbd582c0354fe8c9bf262bf21ab67d3b4ca15eb2a912e592405" + "id": "c840c1fbbd76ffbd582c0354fe8c9bf262bf21ab67d3b4ca15eb2a912e592405", + "isDeploy": false, + "memo": "" } }, { @@ -703,7 +795,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "e2cf33e953c333c8e01f3507e93d7395a739753e21a5142b662d96ddd666a609" + "id": "e2cf33e953c333c8e01f3507e93d7395a739753e21a5142b662d96ddd666a609", + "isDeploy": false, + "memo": "" } }, { @@ -717,7 +811,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "7f613682701c448142d9541283cf41325971a6580b49fd0cdac71e2b6424d609" + "id": "7f613682701c448142d9541283cf41325971a6580b49fd0cdac71e2b6424d609", + "isDeploy": false, + "memo": "" } }, { @@ -731,7 +827,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "1af903c9ac613b1e17332432b7160a43ea2a5798efa2174efebf30272635d800" + "id": "1af903c9ac613b1e17332432b7160a43ea2a5798efa2174efebf30272635d800", + "isDeploy": false, + "memo": "" } }, { @@ -745,7 +843,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "e7d5034ffaa8c0334f3db9fbf47537cec1421d1d69550f39efaa85dda2e97400" + "id": "e7d5034ffaa8c0334f3db9fbf47537cec1421d1d69550f39efaa85dda2e97400", + "isDeploy": false, + "memo": "" } }, { @@ -759,7 +859,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "6715865e2789b40f7e7ad82e5a2f30464e43a8519c14ba17cea02471af0b6f0a" + "id": "6715865e2789b40f7e7ad82e5a2f30464e43a8519c14ba17cea02471af0b6f0a", + "isDeploy": false, + "memo": "" } }, { @@ -773,7 +875,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "db8fcbb3ec6102c8ec8ce15f60b62d7d18ff3e68a50c2ed0974ff4fff0420807" + "id": "db8fcbb3ec6102c8ec8ce15f60b62d7d18ff3e68a50c2ed0974ff4fff0420807", + "isDeploy": false, + "memo": "" } }, { @@ -787,7 +891,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "845e6c788b3526f2680342cd6ba8c0b9adf6c3a6ee247dd72aa23483176c4702" + "id": "845e6c788b3526f2680342cd6ba8c0b9adf6c3a6ee247dd72aa23483176c4702", + "isDeploy": false, + "memo": "" } }, { @@ -801,7 +907,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "0f5bcb51605b6053b9e6cfb6e5bdc5a4e3154080230a7872792565cf80d06c05" + "id": "0f5bcb51605b6053b9e6cfb6e5bdc5a4e3154080230a7872792565cf80d06c05", + "isDeploy": false, + "memo": "" } }, { @@ -815,7 +923,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "20b4142daa4d23624f290dda40c262e95b77770339b5c29f67047fe0c1d2a902" + "id": "20b4142daa4d23624f290dda40c262e95b77770339b5c29f67047fe0c1d2a902", + "isDeploy": false, + "memo": "" } }, { @@ -829,7 +939,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "d20a57ecc6b38bfa50a2a53e91f170a828ef2e1ba7f917f7045693d213363409" + "id": "d20a57ecc6b38bfa50a2a53e91f170a828ef2e1ba7f917f7045693d213363409", + "isDeploy": false, + "memo": "" } }, { @@ -843,7 +955,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "4d282843a01167d2385ff5eaa5857a8fc3c316d25b54b71924031c26b871cd07" + "id": "4d282843a01167d2385ff5eaa5857a8fc3c316d25b54b71924031c26b871cd07", + "isDeploy": false, + "memo": "" } }, { @@ -857,7 +971,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "1f46f8c4ce31cef6a4b16a3f8dcb2515f264517bd15b3a9a008929e14d94ee00" + "id": "1f46f8c4ce31cef6a4b16a3f8dcb2515f264517bd15b3a9a008929e14d94ee00", + "isDeploy": false, + "memo": "" } }, { @@ -875,7 +991,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "cb74051541dcd5016ace78f5ebe78e6db485bed7767e8af81ee682cc2b68260d" + "id": "cb74051541dcd5016ace78f5ebe78e6db485bed7767e8af81ee682cc2b68260d", + "isDeploy": false, + "memo": "" } }, { @@ -893,7 +1011,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "44713f290759b19fd1d88ad1d05d2b0783424c06ca322af90edcaf4372c0820d" + "id": "44713f290759b19fd1d88ad1d05d2b0783424c06ca322af90edcaf4372c0820d", + "isDeploy": false, + "memo": "" } }, { @@ -911,7 +1031,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "81fe07ea2e80c77feb01281e2b11de80a778a70726e64dfd3a0c2b84e72ee001" + "id": "81fe07ea2e80c77feb01281e2b11de80a778a70726e64dfd3a0c2b84e72ee001", + "isDeploy": false, + "memo": "" } }, { @@ -925,7 +1047,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "1b8f3d7cea0ea23b6b9c79f6f7fb694a07ae8f2c3e6235aabb119df21038670e" + "id": "1b8f3d7cea0ea23b6b9c79f6f7fb694a07ae8f2c3e6235aabb119df21038670e", + "isDeploy": false, + "memo": "" } }, { @@ -939,7 +1063,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "d6fc799b7ff584ad99c4af4117db20eb1e3b463fb91c7912d945be00f33e7b0f" + "id": "d6fc799b7ff584ad99c4af4117db20eb1e3b463fb91c7912d945be00f33e7b0f", + "isDeploy": false, + "memo": "" } }, { @@ -953,7 +1079,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "9486bb36cdd7177e4811183549e73b7711f837a4bff08490832810c188c6c909" + "id": "9486bb36cdd7177e4811183549e73b7711f837a4bff08490832810c188c6c909", + "isDeploy": false, + "memo": "" } }, { @@ -967,7 +1095,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "979b161bec7d807da43e281f86bbce3f86fc369f44f9fcb6b1e8910df9cec70a" + "id": "979b161bec7d807da43e281f86bbce3f86fc369f44f9fcb6b1e8910df9cec70a", + "isDeploy": false, + "memo": "" } }, { @@ -985,7 +1115,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "4dd8076f28b1d500459e6e492a05ba5c676dcc13acd81477f4d818be195ce80c" + "id": "4dd8076f28b1d500459e6e492a05ba5c676dcc13acd81477f4d818be195ce80c", + "isDeploy": false, + "memo": "" } }, { @@ -1003,7 +1135,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "2e5c5ff62b979510b3dc21a4ace29c06a85330e40d7d3eee973c864c7beab50d" + "id": "2e5c5ff62b979510b3dc21a4ace29c06a85330e40d7d3eee973c864c7beab50d", + "isDeploy": false, + "memo": "" } }, { @@ -1017,7 +1151,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "145c577eb7c60b1b7c843d8d0cb3cbf2be16173a0e0d1979cda4ed25d2cd2e06" + "id": "145c577eb7c60b1b7c843d8d0cb3cbf2be16173a0e0d1979cda4ed25d2cd2e06", + "isDeploy": false, + "memo": "" } }, { @@ -1031,7 +1167,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "5d4c53c5a4403844491ebce683a9cb8fbd36196b98f49cd450e9333d95ee9600" + "id": "5d4c53c5a4403844491ebce683a9cb8fbd36196b98f49cd450e9333d95ee9600", + "isDeploy": false, + "memo": "" } }, { @@ -1045,7 +1183,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "6e2515abf1af01c269ffe3f64cc735da66ddeec761b9b7269790bec566c39202" + "id": "6e2515abf1af01c269ffe3f64cc735da66ddeec761b9b7269790bec566c39202", + "isDeploy": false, + "memo": "" } }, { @@ -1059,7 +1199,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b1dff2866a776d9e8d181939aa99183ea7f73fa0c078cd645ef1f76bc1ed9700" + "id": "b1dff2866a776d9e8d181939aa99183ea7f73fa0c078cd645ef1f76bc1ed9700", + "isDeploy": false, + "memo": "" } }, { @@ -1073,7 +1215,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "2be77d2c7110033b0ce42092e87c71d166437642f59a20611f1b6f2ad86fa005" + "id": "2be77d2c7110033b0ce42092e87c71d166437642f59a20611f1b6f2ad86fa005", + "isDeploy": false, + "memo": "" } }, { @@ -1087,7 +1231,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b9299a2a1bcbc74092a42b6855a3bbf9e2679ffb575def96a3b59cab6f6c100d" + "id": "b9299a2a1bcbc74092a42b6855a3bbf9e2679ffb575def96a3b59cab6f6c100d", + "isDeploy": false, + "memo": "" } }, { @@ -1105,7 +1251,9 @@ }, "gasLimit": 2900000000, "gasPrice": 1, - "id": "17c6a912c0da0310428c0d4db8f5111deedbadeaac9eabdebb7b8280bc2bec07" + "id": "17c6a912c0da0310428c0d4db8f5111deedbadeaac9eabdebb7b8280bc2bec07", + "isDeploy": false, + "memo": "" } }, { @@ -1119,7 +1267,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "dd35255be953b2c8c7fbc5321fd35c01bdcc63efddf63af3fc6d019756688d02" + "id": "dd35255be953b2c8c7fbc5321fd35c01bdcc63efddf63af3fc6d019756688d02", + "isDeploy": false, + "memo": "" } }, { @@ -1133,7 +1283,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "95a9b97688d79ae1fb2ffe53676d0b854a4215b57e0f1339f4957728751f580f" + "id": "95a9b97688d79ae1fb2ffe53676d0b854a4215b57e0f1339f4957728751f580f", + "isDeploy": false, + "memo": "" } }, { @@ -1147,7 +1299,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "c4285cb55e91d6facc2689e58415a65acbe416a02a15d6c6a97270081044490e" + "id": "c4285cb55e91d6facc2689e58415a65acbe416a02a15d6c6a97270081044490e", + "isDeploy": false, + "memo": "" } }, { @@ -1165,7 +1319,9 @@ }, "gasLimit": 2900000000, "gasPrice": 1, - "id": "872a52081afa90c01ecfed2a0bf2fa91ed46178d45139c5b5f2d273f96bd8400" + "id": "872a52081afa90c01ecfed2a0bf2fa91ed46178d45139c5b5f2d273f96bd8400", + "isDeploy": false, + "memo": "" } }, { @@ -1179,7 +1335,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "3d372b0d2abe8885184bf22542ca3d3168a741074ae5d45d0b2a50e270da8605" + "id": "3d372b0d2abe8885184bf22542ca3d3168a741074ae5d45d0b2a50e270da8605", + "isDeploy": false, + "memo": "" } }, { @@ -1197,7 +1355,9 @@ }, "gasLimit": 2900000000, "gasPrice": 1, - "id": "1a424e5ae0a1c419abc1cd16d4de31c9b699be0a7964fc2a4317b4cec6b91404" + "id": "1a424e5ae0a1c419abc1cd16d4de31c9b699be0a7964fc2a4317b4cec6b91404", + "isDeploy": false, + "memo": "" } }, { @@ -1211,7 +1371,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "befe14f664fe1cb95f89b7500cc8a8368b3cd8ab58f4897dd3c0132cbebde004" + "id": "befe14f664fe1cb95f89b7500cc8a8368b3cd8ab58f4897dd3c0132cbebde004", + "isDeploy": false, + "memo": "" } }, { @@ -1225,7 +1387,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "dd9249849db6143ae4bf3420da9a2bf90b402807f0ef4843d51dd06db35e2a0a" + "id": "dd9249849db6143ae4bf3420da9a2bf90b402807f0ef4843d51dd06db35e2a0a", + "isDeploy": false, + "memo": "" } }, { @@ -1239,7 +1403,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "1466ebfcaefcff92b8bb88feb86aab902a73d6062731de52d3f22d502136fc01" + "id": "1466ebfcaefcff92b8bb88feb86aab902a73d6062731de52d3f22d502136fc01", + "isDeploy": false, + "memo": "" } }, { @@ -1253,7 +1419,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "15af4e04d4f34b89a77601945aaec5c284ff71ed076ba3e4c7b6db1c7cddb80d" + "id": "15af4e04d4f34b89a77601945aaec5c284ff71ed076ba3e4c7b6db1c7cddb80d", + "isDeploy": false, + "memo": "" } }, { @@ -1271,7 +1439,9 @@ }, "gasLimit": 2900000000, "gasPrice": 1, - "id": "edf201b85bf3e4b33aef17df0546c6839337f8cd45d26e195ac25d532179d80a" + "id": "edf201b85bf3e4b33aef17df0546c6839337f8cd45d26e195ac25d532179d80a", + "isDeploy": false, + "memo": "" } }, { @@ -1289,7 +1459,9 @@ }, "gasLimit": 2900000000, "gasPrice": 1, - "id": "aaffb79bf30aa79d3313cf391c442e36ec57bac85cc2e6cd3b356869213a390a" + "id": "aaffb79bf30aa79d3313cf391c442e36ec57bac85cc2e6cd3b356869213a390a", + "isDeploy": false, + "memo": "" } }, { @@ -1303,7 +1475,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "c44e89624a2e913de3609572ada47d132d457f560293f1996f2eba303f37d002" + "id": "c44e89624a2e913de3609572ada47d132d457f560293f1996f2eba303f37d002", + "isDeploy": false, + "memo": "" } }, { @@ -1317,7 +1491,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "25e9795fc65efb60758004f97b8ddf1b80c6d89cd343db1bf9ac92c0609df40f" + "id": "25e9795fc65efb60758004f97b8ddf1b80c6d89cd343db1bf9ac92c0609df40f", + "isDeploy": false, + "memo": "" } }, { @@ -1331,7 +1507,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "5cc70e00e7ea9db06dec89ed3bfe793c8a605f5b2f894ec983f1043b0003a901" + "id": "5cc70e00e7ea9db06dec89ed3bfe793c8a605f5b2f894ec983f1043b0003a901", + "isDeploy": false, + "memo": "" } }, { @@ -1349,7 +1527,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "e3cb4dffd4b913956d30a04761a5caa04733d4bf90016ec20bc7a8712bce1d0e" + "id": "e3cb4dffd4b913956d30a04761a5caa04733d4bf90016ec20bc7a8712bce1d0e", + "isDeploy": false, + "memo": "" } }, { @@ -1367,7 +1547,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "e523d79e65fdb7d90b4e0d6c61f35f5227e4f188c9011907b7919d9cd466eb09" + "id": "e523d79e65fdb7d90b4e0d6c61f35f5227e4f188c9011907b7919d9cd466eb09", + "isDeploy": false, + "memo": "" } }, { @@ -1385,7 +1567,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "63315d5c29f115ba95dafc3e9966114d09c90664d4b368a3093a5aa7ac131906" + "id": "63315d5c29f115ba95dafc3e9966114d09c90664d4b368a3093a5aa7ac131906", + "isDeploy": false, + "memo": "" } }, { @@ -1399,7 +1583,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "24f194518c711f820f5d98bd88f37aed30e921752aaffa014ae02a36b2a62107" + "id": "24f194518c711f820f5d98bd88f37aed30e921752aaffa014ae02a36b2a62107", + "isDeploy": false, + "memo": "" } }, { @@ -1413,7 +1599,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "9fcc569a12ba09a5e7409569842e27717921dc127f3d1cb54f8091010ef0630e" + "id": "9fcc569a12ba09a5e7409569842e27717921dc127f3d1cb54f8091010ef0630e", + "isDeploy": false, + "memo": "" } }, { @@ -1431,7 +1619,9 @@ }, "gasLimit": 50000000, "gasPrice": 1, - "id": "b54df6f798c808cafc058145858bffa293e6da0be0a57b3fc21dd194d03ce60d" + "id": "b54df6f798c808cafc058145858bffa293e6da0be0a57b3fc21dd194d03ce60d", + "isDeploy": false, + "memo": "" } }, { @@ -1445,7 +1635,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "7ac32b7b5c74076d75fd33b6e406a8193660285d01624999d969a842681e1800" + "id": "7ac32b7b5c74076d75fd33b6e406a8193660285d01624999d969a842681e1800", + "isDeploy": false, + "memo": "" } }, { @@ -1459,7 +1651,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "b697fc2d7d77f1b9e68bf7297193e8c24ce2ec34c7bab3a97d1ae2c559b48804" + "id": "b697fc2d7d77f1b9e68bf7297193e8c24ce2ec34c7bab3a97d1ae2c559b48804", + "isDeploy": false, + "memo": "" } }, { @@ -1473,7 +1667,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "bfbcca9ce0cbe499338818171e272300dd0c4a12f81d5e843f8b3439e6a8670d" + "id": "bfbcca9ce0cbe499338818171e272300dd0c4a12f81d5e843f8b3439e6a8670d", + "isDeploy": false, + "memo": "" } }, { @@ -1487,7 +1683,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "332224bcf8f9bb2eaea845eb6fb0ea22eb84a65702736047aaa5dab8d7e4f406" + "id": "332224bcf8f9bb2eaea845eb6fb0ea22eb84a65702736047aaa5dab8d7e4f406", + "isDeploy": false, + "memo": "" } }, { @@ -1501,7 +1699,9 @@ "callData": null, "gasLimit": 500000000, "gasPrice": 1, - "id": "c0167a46e072ef79aa982d73d2f3cf9bff38ee3da8513c95326e7b2781119e07" + "id": "c0167a46e072ef79aa982d73d2f3cf9bff38ee3da8513c95326e7b2781119e07", + "isDeploy": false, + "memo": "" } } ] diff --git a/explorer/src/lib/services/__tests__/duskAPI.spec.js b/explorer/src/lib/services/__tests__/duskAPI.spec.js index a05b4064cb..4ea089fc37 100644 --- a/explorer/src/lib/services/__tests__/duskAPI.spec.js +++ b/explorer/src/lib/services/__tests__/duskAPI.spec.js @@ -75,7 +75,7 @@ describe("duskAPI", () => { expect(fetchSpy.mock.calls[0][0]).toBe(gqlExpectedURL); expect(fetchSpy.mock.calls[0][1]).toMatchInlineSnapshot(` { - "body": "{"data":"\\n \\n\\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id\\n }\\n}\\n\\nfragment BlockInfo on Block {\\n header {\\n hash,\\n gasLimit,\\n height,\\n prevBlockHash,\\n seed,\\n stateHash,\\n timestamp,\\n version\\n },\\n fees,\\n gasSpent,\\n reward,\\n transactions {...TransactionInfo}\\n}\\n\\n query($id: String!) { block(hash: $id) {...BlockInfo} }\\n ","topic":"gql"}", + "body": "{"data":"\\n \\n\\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id,\\n isDeploy,\\n memo\\n }\\n}\\n\\nfragment BlockInfo on Block {\\n header {\\n hash,\\n gasLimit,\\n height,\\n prevBlockHash,\\n seed,\\n stateHash,\\n timestamp,\\n version\\n },\\n fees,\\n gasSpent,\\n reward,\\n transactions {...TransactionInfo}\\n}\\n\\n query($id: String!) { block(hash: $id) {...BlockInfo} }\\n ","topic":"gql"}", "headers": { "Accept": "application/json", "Accept-Charset": "utf-8", @@ -169,7 +169,7 @@ describe("duskAPI", () => { expect(fetchSpy.mock.calls[0][0]).toBe(gqlExpectedURL); expect(fetchSpy.mock.calls[0][1]).toMatchInlineSnapshot(` { - "body": "{"data":"\\n \\n\\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id\\n }\\n}\\n\\nfragment BlockInfo on Block {\\n header {\\n hash,\\n gasLimit,\\n height,\\n prevBlockHash,\\n seed,\\n stateHash,\\n timestamp,\\n version\\n },\\n fees,\\n gasSpent,\\n reward,\\n transactions {...TransactionInfo}\\n}\\n\\n query($amount: Int!) { blocks(last: $amount) {...BlockInfo} }\\n ","topic":"gql"}", + "body": "{"data":"\\n \\n\\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id,\\n isDeploy,\\n memo\\n }\\n}\\n\\nfragment BlockInfo on Block {\\n header {\\n hash,\\n gasLimit,\\n height,\\n prevBlockHash,\\n seed,\\n stateHash,\\n timestamp,\\n version\\n },\\n fees,\\n gasSpent,\\n reward,\\n transactions {...TransactionInfo}\\n}\\n\\n query($amount: Int!) { blocks(last: $amount) {...BlockInfo} }\\n ","topic":"gql"}", "headers": { "Accept": "application/json", "Accept-Charset": "utf-8", @@ -193,7 +193,7 @@ describe("duskAPI", () => { expect(fetchSpy.mock.calls[0][0]).toBe(gqlExpectedURL); expect(fetchSpy.mock.calls[0][1]).toMatchInlineSnapshot(` { - "body": "{"data":"\\n \\n\\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id\\n }\\n}\\n\\nfragment BlockInfo on Block {\\n header {\\n hash,\\n gasLimit,\\n height,\\n prevBlockHash,\\n seed,\\n stateHash,\\n timestamp,\\n version\\n },\\n fees,\\n gasSpent,\\n reward,\\n transactions {...TransactionInfo}\\n}\\n\\n query($amount: Int!) {\\n blocks(last: $amount) {...BlockInfo},\\n transactions(last: $amount) {...TransactionInfo}\\n }\\n ","topic":"gql"}", + "body": "{"data":"\\n \\n\\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id,\\n isDeploy,\\n memo\\n }\\n}\\n\\nfragment BlockInfo on Block {\\n header {\\n hash,\\n gasLimit,\\n height,\\n prevBlockHash,\\n seed,\\n stateHash,\\n timestamp,\\n version\\n },\\n fees,\\n gasSpent,\\n reward,\\n transactions {...TransactionInfo}\\n}\\n\\n query($amount: Int!) {\\n blocks(last: $amount) {...BlockInfo},\\n transactions(last: $amount) {...TransactionInfo}\\n }\\n ","topic":"gql"}", "headers": { "Accept": "application/json", "Accept-Charset": "utf-8", @@ -307,7 +307,7 @@ describe("duskAPI", () => { expect(fetchSpy.mock.calls[0][0]).toBe(gqlExpectedURL); expect(fetchSpy.mock.calls[0][1]).toMatchInlineSnapshot(` { - "body": "{"data":"\\n \\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id\\n }\\n}\\n\\n query($id: String!) { tx(hash: $id) {...TransactionInfo} }\\n ","topic":"gql"}", + "body": "{"data":"\\n \\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id,\\n isDeploy,\\n memo\\n }\\n}\\n\\n query($id: String!) { tx(hash: $id) {...TransactionInfo} }\\n ","topic":"gql"}", "headers": { "Accept": "application/json", "Accept-Charset": "utf-8", @@ -352,7 +352,7 @@ describe("duskAPI", () => { expect(fetchSpy.mock.calls[0][0]).toBe(gqlExpectedURL); expect(fetchSpy.mock.calls[0][1]).toMatchInlineSnapshot(` { - "body": "{"data":"\\n \\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id\\n }\\n}\\n\\n query($amount: Int!) { transactions(last: $amount) {...TransactionInfo} }\\n ","topic":"gql"}", + "body": "{"data":"\\n \\nfragment TransactionInfo on SpentTransaction {\\n\\tblockHash,\\n\\tblockHeight,\\n\\tblockTimestamp,\\n err,\\n\\tgasSpent,\\n\\tid,\\n tx {\\n callData {\\n contractId,\\n data,\\n fnName\\n },\\n gasLimit,\\n gasPrice,\\n id,\\n isDeploy,\\n memo\\n }\\n}\\n\\n query($amount: Int!) { transactions(last: $amount) {...TransactionInfo} }\\n ","topic":"gql"}", "headers": { "Accept": "application/json", "Accept-Charset": "utf-8", diff --git a/explorer/src/lib/services/gql-queries.js b/explorer/src/lib/services/gql-queries.js index 9b795b813a..20324a9124 100644 --- a/explorer/src/lib/services/gql-queries.js +++ b/explorer/src/lib/services/gql-queries.js @@ -14,7 +14,9 @@ fragment TransactionInfo on SpentTransaction { }, gasLimit, gasPrice, - id + id, + isDeploy, + memo } } `; diff --git a/explorer/src/routes/transactions/transaction/__tests__/__snapshots__/page.spec.js.snap b/explorer/src/routes/transactions/transaction/__tests__/__snapshots__/page.spec.js.snap index bab68fdd81..e4db74638e 100644 --- a/explorer/src/routes/transactions/transaction/__tests__/__snapshots__/page.spec.js.snap +++ b/explorer/src/routes/transactions/transaction/__tests__/__snapshots__/page.spec.js.snap @@ -322,6 +322,33 @@ exports[`Transaction Details > should render the Transaction details page and qu > 290766 +
+ + + + + + memo +
+ +
+ some notes about the transaction + +