Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Peiyuan Liao committed Aug 26, 2021
1 parent bec9fdb commit de7a6f2
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion eth/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Expand Down
2 changes: 1 addition & 1 deletion eth/keys/out_private.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"16042856058063033181669690869158741008123588276656273305035062152622447288227"
"14424872480632707581136296923573385277127662987555196916674033904572077972239"
4 changes: 2 additions & 2 deletions eth/keys/out_public.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[
"9271671641444499488320396169152994253415038257382433316843902015970558228594",
"11375912063842796947467209120454864175350638825845940204292345186948758092218"
"1156383811360906264013733070069822536853305196159189302587660187278312189341",
"14257200234055073101814976581529866768651296731342690650061908111024510412826"
]

0 comments on commit de7a6f2

Please sign in to comment.