UNPKG

light-curate-data-service

Version:

A TypeScript library for interacting with LightGeneralizedTCR contracts

961 lines (960 loc) 28.3 kB
[ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_connectedTCR", "type": "address" } ], "name": "ConnectedTCRSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "_requestID", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_roundID", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "_contributor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "_contribution", "type": "uint256" }, { "indexed": false, "internalType": "enum LightGeneralizedTCR.Party", "name": "_side", "type": "uint8" } ], "name": "Contribution", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "contract IArbitrator", "name": "_arbitrator", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_disputeID", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_metaEvidenceID", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_evidenceGroupID", "type": "uint256" } ], "name": "Dispute", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "contract IArbitrator", "name": "_arbitrator", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_evidenceGroupID", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "_party", "type": "address" }, { "indexed": false, "internalType": "string", "name": "_evidence", "type": "string" } ], "name": "Evidence", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "indexed": false, "internalType": "bool", "name": "_updatedDirectly", "type": "bool" } ], "name": "ItemStatusChange", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "_metaEvidenceID", "type": "uint256" }, { "indexed": false, "internalType": "string", "name": "_evidence", "type": "string" } ], "name": "MetaEvidence", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "indexed": false, "internalType": "string", "name": "_data", "type": "string" }, { "indexed": false, "internalType": "bool", "name": "_addedDirectly", "type": "bool" } ], "name": "NewItem", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "_evidenceGroupID", "type": "uint256" } ], "name": "RequestSubmitted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_beneficiary", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "_request", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_round", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_reward", "type": "uint256" } ], "name": "RewardWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "contract IArbitrator", "name": "_arbitrator", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "_disputeID", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "_ruling", "type": "uint256" } ], "name": "Ruling", "type": "event" }, { "constant": true, "inputs": [], "name": "MULTIPLIER_DIVISOR", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "RULING_OPTIONS", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "string", "name": "_item", "type": "string" }], "name": "addItem", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [{ "internalType": "string", "name": "_item", "type": "string" }], "name": "addItemDirectly", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "name": "arbitrationParamsChanges", "outputs": [ { "internalType": "contract IArbitrator", "name": "arbitrator", "type": "address" }, { "internalType": "bytes", "name": "arbitratorExtraData", "type": "bytes" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "arbitrator", "outputs": [ { "internalType": "contract IArbitrator", "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "arbitratorDisputeIDToItemID", "outputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "arbitratorExtraData", "outputs": [{ "internalType": "bytes", "name": "", "type": "bytes" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "challengePeriodDuration", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "internalType": "string", "name": "_evidence", "type": "string" } ], "name": "challengeRequest", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "contract IArbitrator", "name": "_arbitrator", "type": "address" }, { "internalType": "bytes", "name": "_arbitratorExtraData", "type": "bytes" }, { "internalType": "string", "name": "_registrationMetaEvidence", "type": "string" }, { "internalType": "string", "name": "_clearingMetaEvidence", "type": "string" } ], "name": "changeArbitrationParams", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_challengePeriodDuration", "type": "uint256" } ], "name": "changeChallengePeriodDuration", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_connectedTCR", "type": "address" } ], "name": "changeConnectedTCR", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_governor", "type": "address" } ], "name": "changeGovernor", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_loserStakeMultiplier", "type": "uint256" } ], "name": "changeLoserStakeMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address", "name": "_relayerContract", "type": "address" } ], "name": "changeRelayerContract", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_removalBaseDeposit", "type": "uint256" } ], "name": "changeRemovalBaseDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_removalChallengeBaseDeposit", "type": "uint256" } ], "name": "changeRemovalChallengeBaseDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_sharedStakeMultiplier", "type": "uint256" } ], "name": "changeSharedStakeMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_submissionBaseDeposit", "type": "uint256" } ], "name": "changeSubmissionBaseDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_submissionChallengeBaseDeposit", "type": "uint256" } ], "name": "changeSubmissionChallengeBaseDeposit", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_winnerStakeMultiplier", "type": "uint256" } ], "name": "changeWinnerStakeMultiplier", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" } ], "name": "executeRequest", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "internalType": "enum LightGeneralizedTCR.Party", "name": "_side", "type": "uint8" } ], "name": "fundAppeal", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "internalType": "uint256", "name": "_requestID", "type": "uint256" }, { "internalType": "uint256", "name": "_roundID", "type": "uint256" }, { "internalType": "address", "name": "_contributor", "type": "address" } ], "name": "getContributions", "outputs": [ { "internalType": "uint256[3]", "name": "contributions", "type": "uint256[3]" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "internalType": "uint256", "name": "_requestID", "type": "uint256" } ], "name": "getEvidenceGroupID", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "pure", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" } ], "name": "getItemInfo", "outputs": [ { "internalType": "enum LightGeneralizedTCR.Status", "name": "status", "type": "uint8" }, { "internalType": "uint256", "name": "numberOfRequests", "type": "uint256" }, { "internalType": "uint256", "name": "sumDeposit", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "internalType": "uint256", "name": "_requestID", "type": "uint256" } ], "name": "getRequestInfo", "outputs": [ { "internalType": "bool", "name": "disputed", "type": "bool" }, { "internalType": "uint256", "name": "disputeID", "type": "uint256" }, { "internalType": "uint256", "name": "submissionTime", "type": "uint256" }, { "internalType": "bool", "name": "resolved", "type": "bool" }, { "internalType": "address payable[3]", "name": "parties", "type": "address[3]" }, { "internalType": "uint256", "name": "numberOfRounds", "type": "uint256" }, { "internalType": "enum LightGeneralizedTCR.Party", "name": "ruling", "type": "uint8" }, { "internalType": "contract IArbitrator", "name": "requestArbitrator", "type": "address" }, { "internalType": "bytes", "name": "requestArbitratorExtraData", "type": "bytes" }, { "internalType": "uint256", "name": "metaEvidenceID", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "internalType": "uint256", "name": "_requestID", "type": "uint256" }, { "internalType": "uint256", "name": "_roundID", "type": "uint256" } ], "name": "getRoundInfo", "outputs": [ { "internalType": "bool", "name": "appealed", "type": "bool" }, { "internalType": "uint256[3]", "name": "amountPaid", "type": "uint256[3]" }, { "internalType": "bool[3]", "name": "hasPaid", "type": "bool[3]" }, { "internalType": "uint256", "name": "feeRewards", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "governor", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "contract IArbitrator", "name": "_arbitrator", "type": "address" }, { "internalType": "bytes", "name": "_arbitratorExtraData", "type": "bytes" }, { "internalType": "address", "name": "_connectedTCR", "type": "address" }, { "internalType": "string", "name": "_registrationMetaEvidence", "type": "string" }, { "internalType": "string", "name": "_clearingMetaEvidence", "type": "string" }, { "internalType": "address", "name": "_governor", "type": "address" }, { "internalType": "uint256[4]", "name": "_baseDeposits", "type": "uint256[4]" }, { "internalType": "uint256", "name": "_challengePeriodDuration", "type": "uint256" }, { "internalType": "uint256[3]", "name": "_stakeMultipliers", "type": "uint256[3]" }, { "internalType": "address", "name": "_relayerContract", "type": "address" } ], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [{ "internalType": "bytes32", "name": "", "type": "bytes32" }], "name": "items", "outputs": [ { "internalType": "enum LightGeneralizedTCR.Status", "name": "status", "type": "uint8" }, { "internalType": "uint128", "name": "sumDeposit", "type": "uint128" }, { "internalType": "uint120", "name": "requestCount", "type": "uint120" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "loserStakeMultiplier", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "metaEvidenceUpdates", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "relayerContract", "outputs": [{ "internalType": "address", "name": "", "type": "address" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "removalBaseDeposit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "removalChallengeBaseDeposit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "internalType": "string", "name": "_evidence", "type": "string" } ], "name": "removeItem", "outputs": [], "payable": true, "stateMutability": "payable", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" } ], "name": "removeItemDirectly", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" }, { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "requestsDisputeData", "outputs": [ { "internalType": "uint256", "name": "disputeID", "type": "uint256" }, { "internalType": "enum LightGeneralizedTCR.DisputeStatus", "name": "status", "type": "uint8" }, { "internalType": "enum LightGeneralizedTCR.Party", "name": "ruling", "type": "uint8" }, { "internalType": "uint240", "name": "roundCount", "type": "uint240" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "uint256", "name": "_disputeID", "type": "uint256" }, { "internalType": "uint256", "name": "_ruling", "type": "uint256" } ], "name": "rule", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "sharedStakeMultiplier", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "submissionBaseDeposit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "submissionChallengeBaseDeposit", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "internalType": "string", "name": "_evidence", "type": "string" } ], "name": "submitEvidence", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "winnerStakeMultiplier", "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [ { "internalType": "address payable", "name": "_beneficiary", "type": "address" }, { "internalType": "bytes32", "name": "_itemID", "type": "bytes32" }, { "internalType": "uint256", "name": "_requestID", "type": "uint256" }, { "internalType": "uint256", "name": "_roundID", "type": "uint256" } ], "name": "withdrawFeesAndRewards", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" } ]