Created
July 1, 2019 00:23
-
-
Save hbarcelos/f03095f2f7bf33d99d6e607b2136f66e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_pinakion", | |
"type": "address" | |
} | |
], | |
"name": "changePinakion", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "RNBlock", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "disputesWithoutJurors", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [], | |
"name": "passPhase", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "governor", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "lastDelayedSetStake", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
} | |
], | |
"name": "disputeStatus", | |
"outputs": [ | |
{ | |
"name": "status", | |
"type": "uint8" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
} | |
], | |
"name": "passPeriod", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "maxDrawingTime", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
} | |
], | |
"name": "currentRuling", | |
"outputs": [ | |
{ | |
"name": "ruling", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"name": "courts", | |
"outputs": [ | |
{ | |
"name": "parent", | |
"type": "uint96" | |
}, | |
{ | |
"name": "hiddenVotes", | |
"type": "bool" | |
}, | |
{ | |
"name": "minStake", | |
"type": "uint256" | |
}, | |
{ | |
"name": "alpha", | |
"type": "uint256" | |
}, | |
{ | |
"name": "feeForJuror", | |
"type": "uint256" | |
}, | |
{ | |
"name": "jurorsForCourtJump", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_appeal", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_iterations", | |
"type": "uint256" | |
} | |
], | |
"name": "execute", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "ALPHA_DIVISOR", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_voteIDs", | |
"type": "uint256[]" | |
}, | |
{ | |
"name": "_choice", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_salt", | |
"type": "uint256" | |
} | |
], | |
"name": "castVote", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_subcourtID", | |
"type": "uint96" | |
}, | |
{ | |
"name": "_minStake", | |
"type": "uint256" | |
} | |
], | |
"name": "changeSubcourtMinStake", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_subcourtID", | |
"type": "uint96" | |
} | |
], | |
"name": "getSubcourt", | |
"outputs": [ | |
{ | |
"name": "children", | |
"type": "uint256[]" | |
}, | |
{ | |
"name": "timesPerPeriod", | |
"type": "uint256[4]" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_extraData", | |
"type": "bytes" | |
} | |
], | |
"name": "appeal", | |
"outputs": [], | |
"payable": true, | |
"stateMutability": "payable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_from", | |
"type": "address" | |
}, | |
{ | |
"name": "_to", | |
"type": "address" | |
}, | |
{ | |
"name": "_amount", | |
"type": "uint256" | |
} | |
], | |
"name": "onTransfer", | |
"outputs": [ | |
{ | |
"name": "allowed", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"name": "disputes", | |
"outputs": [ | |
{ | |
"name": "subcourtID", | |
"type": "uint96" | |
}, | |
{ | |
"name": "arbitrated", | |
"type": "address" | |
}, | |
{ | |
"name": "numberOfChoices", | |
"type": "uint256" | |
}, | |
{ | |
"name": "period", | |
"type": "uint8" | |
}, | |
{ | |
"name": "lastPeriodChange", | |
"type": "uint256" | |
}, | |
{ | |
"name": "drawsInRound", | |
"type": "uint256" | |
}, | |
{ | |
"name": "commitsInRound", | |
"type": "uint256" | |
}, | |
{ | |
"name": "ruled", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_subcourtID", | |
"type": "uint96" | |
}, | |
{ | |
"name": "_timesPerPeriod", | |
"type": "uint256[4]" | |
} | |
], | |
"name": "changeSubcourtTimesPerPeriod", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_subcourtID", | |
"type": "uint96" | |
}, | |
{ | |
"name": "_feeForJuror", | |
"type": "uint256" | |
} | |
], | |
"name": "changeSubcourtJurorFee", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_subcourtID", | |
"type": "uint96" | |
}, | |
{ | |
"name": "_alpha", | |
"type": "uint256" | |
} | |
], | |
"name": "changeSubcourtAlpha", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_voteIDs", | |
"type": "uint256[]" | |
}, | |
{ | |
"name": "_commit", | |
"type": "bytes32" | |
} | |
], | |
"name": "castCommit", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "RN", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "RNGenerator", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_destination", | |
"type": "address" | |
}, | |
{ | |
"name": "_amount", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_data", | |
"type": "bytes" | |
} | |
], | |
"name": "executeGovernorProposal", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_minStakingTime", | |
"type": "uint256" | |
} | |
], | |
"name": "changeMinStakingTime", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "NON_PAYABLE_AMOUNT", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_subcourtID", | |
"type": "uint96" | |
}, | |
{ | |
"name": "_stake", | |
"type": "uint128" | |
} | |
], | |
"name": "setStake", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
} | |
], | |
"name": "executeRuling", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_appeal", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_voteID", | |
"type": "uint256" | |
} | |
], | |
"name": "getVote", | |
"outputs": [ | |
{ | |
"name": "account", | |
"type": "address" | |
}, | |
{ | |
"name": "commit", | |
"type": "bytes32" | |
}, | |
{ | |
"name": "choice", | |
"type": "uint256" | |
}, | |
{ | |
"name": "voted", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_RNGenerator", | |
"type": "address" | |
} | |
], | |
"name": "changeRNGenerator", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_iterations", | |
"type": "uint256" | |
} | |
], | |
"name": "executeDelayedSetStakes", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_account", | |
"type": "address" | |
}, | |
{ | |
"name": "_subcourtID", | |
"type": "uint96" | |
} | |
], | |
"name": "stakeOf", | |
"outputs": [ | |
{ | |
"name": "stake", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_subcourtID", | |
"type": "uint96" | |
}, | |
{ | |
"name": "_jurorsForCourtJump", | |
"type": "uint256" | |
} | |
], | |
"name": "changeSubcourtJurorsForJump", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
} | |
], | |
"name": "appealPeriod", | |
"outputs": [ | |
{ | |
"name": "start", | |
"type": "uint256" | |
}, | |
{ | |
"name": "end", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "phase", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint8" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "MAX_STAKE_PATHS", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"name": "delayedSetStakes", | |
"outputs": [ | |
{ | |
"name": "account", | |
"type": "address" | |
}, | |
{ | |
"name": "subcourtID", | |
"type": "uint96" | |
}, | |
{ | |
"name": "stake", | |
"type": "uint128" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "lastPhaseChange", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "minStakingTime", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "nextDelayedSetStake", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_numberOfChoices", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_extraData", | |
"type": "bytes" | |
} | |
], | |
"name": "createDispute", | |
"outputs": [ | |
{ | |
"name": "disputeID", | |
"type": "uint256" | |
} | |
], | |
"payable": true, | |
"stateMutability": "payable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_iterations", | |
"type": "uint256" | |
} | |
], | |
"name": "drawJurors", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_parent", | |
"type": "uint96" | |
}, | |
{ | |
"name": "_hiddenVotes", | |
"type": "bool" | |
}, | |
{ | |
"name": "_minStake", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_alpha", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_feeForJuror", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_jurorsForCourtJump", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_timesPerPeriod", | |
"type": "uint256[4]" | |
}, | |
{ | |
"name": "_sortitionSumTreeK", | |
"type": "uint256" | |
} | |
], | |
"name": "createSubcourt", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_account", | |
"type": "address" | |
} | |
], | |
"name": "getJuror", | |
"outputs": [ | |
{ | |
"name": "subcourtIDs", | |
"type": "uint96[]" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_owner", | |
"type": "address" | |
}, | |
{ | |
"name": "_spender", | |
"type": "address" | |
}, | |
{ | |
"name": "_amount", | |
"type": "uint256" | |
} | |
], | |
"name": "onApprove", | |
"outputs": [ | |
{ | |
"name": "allowed", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"name": "jurors", | |
"outputs": [ | |
{ | |
"name": "stakedTokens", | |
"type": "uint256" | |
}, | |
{ | |
"name": "lockedTokens", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_maxDrawingTime", | |
"type": "uint256" | |
} | |
], | |
"name": "changeMaxDrawingTime", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
} | |
], | |
"name": "getDispute", | |
"outputs": [ | |
{ | |
"name": "votesLengths", | |
"type": "uint256[]" | |
}, | |
{ | |
"name": "tokensAtStakePerJuror", | |
"type": "uint256[]" | |
}, | |
{ | |
"name": "totalFeesForJurors", | |
"type": "uint256[]" | |
}, | |
{ | |
"name": "votesInEachRound", | |
"type": "uint256[]" | |
}, | |
{ | |
"name": "repartitionsInEachRound", | |
"type": "uint256[]" | |
}, | |
{ | |
"name": "penaltiesInEachRound", | |
"type": "uint256[]" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_appeal", | |
"type": "uint256" | |
} | |
], | |
"name": "getVoteCounter", | |
"outputs": [ | |
{ | |
"name": "winningChoice", | |
"type": "uint256" | |
}, | |
{ | |
"name": "counts", | |
"type": "uint256[]" | |
}, | |
{ | |
"name": "tied", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_governor", | |
"type": "address" | |
} | |
], | |
"name": "changeGovernor", | |
"outputs": [], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "MIN_JURORS", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_extraData", | |
"type": "bytes" | |
} | |
], | |
"name": "appealCost", | |
"outputs": [ | |
{ | |
"name": "cost", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": false, | |
"inputs": [ | |
{ | |
"name": "_owner", | |
"type": "address" | |
} | |
], | |
"name": "proxyPayment", | |
"outputs": [ | |
{ | |
"name": "allowed", | |
"type": "bool" | |
} | |
], | |
"payable": true, | |
"stateMutability": "payable", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "lockInsolventTransfers", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "bool" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [ | |
{ | |
"name": "_extraData", | |
"type": "bytes" | |
} | |
], | |
"name": "arbitrationCost", | |
"outputs": [ | |
{ | |
"name": "cost", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"constant": true, | |
"inputs": [], | |
"name": "pinakion", | |
"outputs": [ | |
{ | |
"name": "", | |
"type": "address" | |
} | |
], | |
"payable": false, | |
"stateMutability": "view", | |
"type": "function" | |
}, | |
{ | |
"inputs": [ | |
{ | |
"name": "_governor", | |
"type": "address" | |
}, | |
{ | |
"name": "_pinakion", | |
"type": "address" | |
}, | |
{ | |
"name": "_RNGenerator", | |
"type": "address" | |
}, | |
{ | |
"name": "_minStakingTime", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_maxDrawingTime", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_hiddenVotes", | |
"type": "bool" | |
}, | |
{ | |
"name": "_minStake", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_alpha", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_feeForJuror", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_jurorsForCourtJump", | |
"type": "uint256" | |
}, | |
{ | |
"name": "_timesPerPeriod", | |
"type": "uint256[4]" | |
}, | |
{ | |
"name": "_sortitionSumTreeK", | |
"type": "uint256" | |
} | |
], | |
"payable": false, | |
"stateMutability": "nonpayable", | |
"type": "constructor" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": false, | |
"name": "_phase", | |
"type": "uint8" | |
} | |
], | |
"name": "NewPhase", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"name": "_period", | |
"type": "uint8" | |
} | |
], | |
"name": "NewPeriod", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "_address", | |
"type": "address" | |
}, | |
{ | |
"indexed": false, | |
"name": "_subcourtID", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"name": "_stake", | |
"type": "uint128" | |
}, | |
{ | |
"indexed": false, | |
"name": "_newTotalStake", | |
"type": "uint256" | |
} | |
], | |
"name": "StakeSet", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "_address", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"name": "_appeal", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"name": "_voteID", | |
"type": "uint256" | |
} | |
], | |
"name": "Draw", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "_address", | |
"type": "address" | |
}, | |
{ | |
"indexed": true, | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": false, | |
"name": "_tokenAmount", | |
"type": "int256" | |
}, | |
{ | |
"indexed": false, | |
"name": "_ETHAmount", | |
"type": "int256" | |
} | |
], | |
"name": "TokenAndETHShift", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": true, | |
"name": "_arbitrable", | |
"type": "address" | |
} | |
], | |
"name": "DisputeCreation", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": true, | |
"name": "_arbitrable", | |
"type": "address" | |
} | |
], | |
"name": "AppealPossible", | |
"type": "event" | |
}, | |
{ | |
"anonymous": false, | |
"inputs": [ | |
{ | |
"indexed": true, | |
"name": "_disputeID", | |
"type": "uint256" | |
}, | |
{ | |
"indexed": true, | |
"name": "_arbitrable", | |
"type": "address" | |
} | |
], | |
"name": "AppealDecision", | |
"type": "event" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const Web3 = require('web3'); | |
const abi = require('./kleros-liquid-abi.json') | |
const { INFURA_PROVIDER_URL, CONTRACT_ADDRESS } = process.env | |
const web3 = new Web3(INFURA_PROVIDER_URL) | |
const KlerosLiquid = new web3.eth.Contract(abi, CONTRACT_ADDRESS) | |
;(async () => { | |
const value = await KlerosLiquid.methods.maxDrawingTime.call(); | |
console.log(parseInt(value, 10)) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment