From de7a6f2369606721d5499fba316e1c92ba93d648 Mon Sep 17 00:00:00 2001 From: Peiyuan Liao Date: Thu, 26 Aug 2021 15:47:22 -0600 Subject: [PATCH] update --- eth/hardhat.config.js | 8 +++++++- eth/keys/out_private.json | 2 +- eth/keys/out_public.json | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/eth/hardhat.config.js b/eth/hardhat.config.js index ad6532f..3369543 100644 --- a/eth/hardhat.config.js +++ b/eth/hardhat.config.js @@ -47,7 +47,13 @@ task("list_bounties", "List bounties given dataset") hashes = await write_contract.queryDatasetBounties(taskArgs.hash); const bounties = await Promise.all(hashes.map(async function (hash) { x = await write_contract.queryBountyHash(hash); - return {"publickey-1": x[0].toString(), "publickey-2": x[1].toString(), "MSE-Cap": x[2].toString()}; + return {"PubKey1": x[1].toString(), + "PubKey2": x[2].toString(), + "MSEcap": x[3].toString(), + "Bounty": ethers.utils.formatEther(x[4]).toString(), + "Issuer": x[5].toString(), + "Note": x[6].toString(), + }; })); console.log(bounties); }); diff --git a/eth/keys/out_private.json b/eth/keys/out_private.json index 3eb67bd..2824fe2 100644 --- a/eth/keys/out_private.json +++ b/eth/keys/out_private.json @@ -1 +1 @@ -"16042856058063033181669690869158741008123588276656273305035062152622447288227" \ No newline at end of file +"14424872480632707581136296923573385277127662987555196916674033904572077972239" \ No newline at end of file diff --git a/eth/keys/out_public.json b/eth/keys/out_public.json index 8beb1b1..c632781 100644 --- a/eth/keys/out_public.json +++ b/eth/keys/out_public.json @@ -1,4 +1,4 @@ [ - "9271671641444499488320396169152994253415038257382433316843902015970558228594", - "11375912063842796947467209120454864175350638825845940204292345186948758092218" + "1156383811360906264013733070069822536853305196159189302587660187278312189341", + "14257200234055073101814976581529866768651296731342690650061908111024510412826" ] \ No newline at end of file