@aquarat/claims-manager

0.0.1 • Public • Published

@api3/claims-manager

Install the dependencies

yarn

Build the contracts

yarn build

Test the contracts

yarn test

Kleros notes

https://kleros.gitbook.io/docs/integrations/types-of-integrations/1.-dispute-resolution-integration-plan/smart-contract-integration

https://kleros.gitbook.io/docs/integrations/types-of-integrations/1.-dispute-resolution-integration-plan/integration-tools/centralized-arbitrator

https://github.com/kleros/kleros/blob/master/contracts/kleros/KlerosLiquid.sol

https://github.com/kleros/erc-792/blob/master/contracts/examples/CentralizedArbitratorWithAppeal.sol

Mainnet Arbitrator address: 0x988b3A538b618C7A603e1c11Ab82Cd16dbE28069

Blockchain subcourt: 1

Script to generate the arbitrator extra data:

generateArbitratorExtraData = (subcourtID, noOfVotes) => 0x${parseInt(subcourtID, 10).toString(16).padStart(64, "0") + parseInt(noOfVotes, 10).toString(16).padStart(64, "0")};

It also says extra data includes

(If appeals are allowed) Stake multipliers representing multipliers of the appeal cost that a party must pay for a new round (in basis points)

however, KlerosLiquid derives the appeal cost from the number of jurors.

Reads for frontend

Mostly static data:

Dispute-specific data

Writes for frontend

  • executeRuling(disputeId)

Readme

Keywords

none

Package Sidebar

Install

npm i @aquarat/claims-manager

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

1.02 MB

Total Files

171

Last publish

Collaborators

  • aquarat