diff --git a/contracts/deployments/arbitrumSepolia.ts b/contracts/deployments/arbitrumSepolia.ts index 47b450981..c59ec1693 100644 --- a/contracts/deployments/arbitrumSepolia.ts +++ b/contracts/deployments/arbitrumSepolia.ts @@ -2,93 +2,104 @@ export default { name: "arbitrumSepolia", chainId: "421614", contracts: { - ArbitrableExample: { - address: "0xE22500Fa27f696d06702367246bd17Bd2C8a4c5d", + BlockHashRNG: { + address: "0x0298a3EFa6Faf90865725E2b48Cf0F66e5d52754", abi: [ { inputs: [ { - internalType: "contract IArbitratorV2", - name: "_arbitrator", - type: "address", - }, - { - internalType: "string", - name: "_templateData", - type: "string", + internalType: "uint256", + name: "block", + type: "uint256", }, + ], + name: "randomNumbers", + outputs: [ { - internalType: "string", - name: "_templateDataMappings", - type: "string", + internalType: "uint256", + name: "number", + type: "uint256", }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ { - internalType: "bytes", - name: "_arbitratorExtraData", - type: "bytes", + internalType: "uint256", + name: "_block", + type: "uint256", }, + ], + name: "receiveRandomness", + outputs: [ { - internalType: "contract IDisputeTemplateRegistry", - name: "_templateRegistry", - type: "address", + internalType: "uint256", + name: "randomNumber", + type: "uint256", }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ { - internalType: "contract IERC20", - name: "_weth", - type: "address", + internalType: "uint256", + name: "_block", + type: "uint256", }, ], + name: "requestRandomness", + outputs: [], stateMutability: "nonpayable", - type: "constructor", + type: "function", }, + ], + }, + DAI: { + address: "0xc34aeFEa232956542C5b2f2EE55fD5c378B35c03", + abi: [ { - anonymous: false, inputs: [ { - indexed: true, internalType: "string", - name: "_action", + name: "_name", + type: "string", + }, + { + internalType: "string", + name: "_symbol", type: "string", }, ], - name: "Action", - type: "event", + stateMutability: "nonpayable", + type: "constructor", }, { anonymous: false, inputs: [ { indexed: true, - internalType: "contract IArbitratorV2", - name: "_arbitrator", + internalType: "address", + name: "owner", type: "address", }, { indexed: true, - internalType: "uint256", - name: "_arbitrableDisputeID", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "_externalDisputeID", - type: "uint256", + internalType: "address", + name: "spender", + type: "address", }, { indexed: false, internalType: "uint256", - name: "_templateId", + name: "value", type: "uint256", }, - { - indexed: false, - internalType: "string", - name: "_templateUri", - type: "string", - }, ], - name: "DisputeRequest", + name: "Approval", type: "event", }, { @@ -96,47 +107,45 @@ export default { inputs: [ { indexed: true, - internalType: "contract IArbitratorV2", - name: "_arbitrator", + internalType: "address", + name: "from", type: "address", }, { indexed: true, - internalType: "uint256", - name: "_disputeID", - type: "uint256", + internalType: "address", + name: "to", + type: "address", }, { indexed: false, internalType: "uint256", - name: "_ruling", + name: "value", type: "uint256", }, ], - name: "Ruling", + name: "Transfer", type: "event", }, { - inputs: [], - name: "arbitrator", - outputs: [ + inputs: [ { - internalType: "contract IArbitratorV2", - name: "", + internalType: "address", + name: "owner", + type: "address", + }, + { + internalType: "address", + name: "spender", type: "address", }, ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "arbitratorExtraData", + name: "allowance", outputs: [ { - internalType: "bytes", + internalType: "uint256", name: "", - type: "bytes", + type: "uint256", }, ], stateMutability: "view", @@ -145,79 +154,78 @@ export default { { inputs: [ { - internalType: "contract IArbitratorV2", - name: "_arbitrator", + internalType: "address", + name: "spender", type: "address", }, + { + internalType: "uint256", + name: "amount", + type: "uint256", + }, ], - name: "changeArbitrator", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ + name: "approve", + outputs: [ { - internalType: "bytes", - name: "_arbitratorExtraData", - type: "bytes", + internalType: "bool", + name: "", + type: "bool", }, ], - name: "changeArbitratorExtraData", - outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [ { - internalType: "string", - name: "_templateData", - type: "string", + internalType: "address", + name: "account", + type: "address", }, + ], + name: "balanceOf", + outputs: [ { - internalType: "string", - name: "_templateDataMappings", - type: "string", + internalType: "uint256", + name: "", + type: "uint256", }, ], - name: "changeDisputeTemplate", - outputs: [], - stateMutability: "nonpayable", + stateMutability: "view", type: "function", }, { - inputs: [ + inputs: [], + name: "decimals", + outputs: [ { - internalType: "contract IDisputeTemplateRegistry", - name: "_templateRegistry", - type: "address", + internalType: "uint8", + name: "", + type: "uint8", }, ], - name: "changeTemplateRegistry", - outputs: [], - stateMutability: "nonpayable", + stateMutability: "view", type: "function", }, { inputs: [ { - internalType: "string", - name: "_action", - type: "string", + internalType: "address", + name: "spender", + type: "address", }, { internalType: "uint256", - name: "_feeInWeth", + name: "subtractedValue", type: "uint256", }, ], - name: "createDispute", + name: "decreaseAllowance", outputs: [ { - internalType: "uint256", - name: "disputeID", - type: "uint256", + internalType: "bool", + name: "", + type: "bool", }, ], stateMutability: "nonpayable", @@ -226,65 +234,35 @@ export default { { inputs: [ { - internalType: "string", - name: "_action", - type: "string", - }, - ], - name: "createDispute", - outputs: [ - { - internalType: "uint256", - name: "disputeID", - type: "uint256", + internalType: "address", + name: "spender", + type: "address", }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ { internalType: "uint256", - name: "", + name: "addedValue", type: "uint256", }, ], - name: "disputes", + name: "increaseAllowance", outputs: [ { internalType: "bool", - name: "isRuled", + name: "", type: "bool", }, - { - internalType: "uint256", - name: "ruling", - type: "uint256", - }, - { - internalType: "uint256", - name: "numberOfRulingOptions", - type: "uint256", - }, ], - stateMutability: "view", + stateMutability: "nonpayable", type: "function", }, { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "externalIDtoLocalID", + inputs: [], + name: "name", outputs: [ { - internalType: "uint256", + internalType: "string", name: "", - type: "uint256", + type: "string", }, ], stateMutability: "view", @@ -292,38 +270,20 @@ export default { }, { inputs: [], - name: "governor", + name: "symbol", outputs: [ { - internalType: "address", + internalType: "string", name: "", - type: "address", + type: "string", }, ], stateMutability: "view", type: "function", }, - { - inputs: [ - { - internalType: "uint256", - name: "_externalDisputeID", - type: "uint256", - }, - { - internalType: "uint256", - name: "_ruling", - type: "uint256", - }, - ], - name: "rule", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [], - name: "templateId", + name: "totalSupply", outputs: [ { internalType: "uint256", @@ -335,172 +295,90 @@ export default { type: "function", }, { - inputs: [], - name: "templateRegistry", - outputs: [ - { - internalType: "contract IDisputeTemplateRegistry", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "weth", - outputs: [ + inputs: [ { - internalType: "contract IERC20", - name: "", + internalType: "address", + name: "to", type: "address", }, - ], - stateMutability: "view", - type: "function", - }, - ], - }, - BlockHashRNG: { - address: "0x991d2df165670b9cac3B022f4B68D65b664222ea", - abi: [ - { - inputs: [ { internalType: "uint256", - name: "", + name: "amount", type: "uint256", }, ], - name: "randomNumbers", + name: "transfer", outputs: [ { - internalType: "uint256", + internalType: "bool", name: "", - type: "uint256", + type: "bool", }, ], - stateMutability: "view", + stateMutability: "nonpayable", type: "function", }, { inputs: [ { - internalType: "uint256", - name: "_block", - type: "uint256", + internalType: "address", + name: "from", + type: "address", + }, + { + internalType: "address", + name: "to", + type: "address", }, - ], - name: "receiveRandomness", - outputs: [ { internalType: "uint256", - name: "randomNumber", + name: "amount", type: "uint256", }, ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ + name: "transferFrom", + outputs: [ { - internalType: "uint256", - name: "_block", - type: "uint256", + internalType: "bool", + name: "", + type: "bool", }, ], - name: "requestRandomness", - outputs: [], stateMutability: "nonpayable", type: "function", }, ], }, - DAI: { - address: "0xc34aeFEa232956542C5b2f2EE55fD5c378B35c03", + DAIFaucet: { + address: "0x1Fa58B52326488D62A406E71DBaD839560e810fF", abi: [ { inputs: [ { - internalType: "string", - name: "_name", - type: "string", - }, - { - internalType: "string", - name: "_symbol", - type: "string", + internalType: "contract IERC20", + name: "_token", + type: "address", }, ], stateMutability: "nonpayable", type: "constructor", }, { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "owner", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "spender", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "value", - type: "uint256", - }, - ], - name: "Approval", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "from", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "to", - type: "address", - }, + inputs: [], + name: "amount", + outputs: [ { - indexed: false, internalType: "uint256", - name: "value", + name: "", type: "uint256", }, ], - name: "Transfer", - type: "event", + stateMutability: "view", + type: "function", }, { - inputs: [ - { - internalType: "address", - name: "owner", - type: "address", - }, - { - internalType: "address", - name: "spender", - type: "address", - }, - ], - name: "allowance", + inputs: [], + name: "balance", outputs: [ { internalType: "uint256", @@ -513,25 +391,14 @@ export default { }, { inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, { internalType: "uint256", - name: "amount", + name: "_amount", type: "uint256", }, ], - name: "approve", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], + name: "changeAmount", + outputs: [], stateMutability: "nonpayable", type: "function", }, @@ -539,16 +406,23 @@ export default { inputs: [ { internalType: "address", - name: "account", + name: "_governor", type: "address", }, ], - name: "balanceOf", + name: "changeGovernor", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "governor", outputs: [ { - internalType: "uint256", + internalType: "address", name: "", - type: "uint256", + type: "address", }, ], stateMutability: "view", @@ -556,38 +430,28 @@ export default { }, { inputs: [], - name: "decimals", + name: "request", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "token", outputs: [ { - internalType: "uint8", + internalType: "contract IERC20", name: "", - type: "uint8", + type: "address", }, ], stateMutability: "view", type: "function", }, { - inputs: [ - { - internalType: "address", - name: "spender", - type: "address", - }, - { - internalType: "uint256", - name: "subtractedValue", - type: "uint256", - }, - ], - name: "decreaseAllowance", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], + inputs: [], + name: "withdraw", + outputs: [], stateMutability: "nonpayable", type: "function", }, @@ -595,16 +459,11 @@ export default { inputs: [ { internalType: "address", - name: "spender", + name: "", type: "address", }, - { - internalType: "uint256", - name: "addedValue", - type: "uint256", - }, ], - name: "increaseAllowance", + name: "withdrewAlready", outputs: [ { internalType: "bool", @@ -612,233 +471,14 @@ export default { type: "bool", }, ], - stateMutability: "nonpayable", + stateMutability: "view", type: "function", }, - { - inputs: [], - name: "name", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "symbol", - outputs: [ - { - internalType: "string", - name: "", - type: "string", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "totalSupply", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transfer", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "from", - type: "address", - }, - { - internalType: "address", - name: "to", - type: "address", - }, - { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - ], - name: "transferFrom", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - ], - }, - DAIFaucet: { - address: "0x1Fa58B52326488D62A406E71DBaD839560e810fF", - abi: [ - { - inputs: [ - { - internalType: "contract IERC20", - name: "_token", - type: "address", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "amount", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "balance", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "changeAmount", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_governor", - type: "address", - }, - ], - name: "changeGovernor", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "governor", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "request", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "token", - outputs: [ - { - internalType: "contract IERC20", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "withdraw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "withdrewAlready", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, - ], - }, - DisputeKitClassic: { - address: "0x8078C2A3bf93f6f69BDD4D38233E7e219eA1914e", - abi: [ + ], + }, + DisputeKitClassic: { + address: "0x10bDc76B491BFcA466AB5C74431880C086b07c67", + abi: [ { stateMutability: "payable", type: "fallback", @@ -1503,6 +1143,16 @@ export default { name: "_voteID", type: "uint256", }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, ], name: "getDegreeOfCoherence", outputs: [ @@ -1776,7 +1426,7 @@ export default { ], }, DisputeKitClassic_Implementation: { - address: "0x2507018D785CE92115CfebE0d92CC496C42e99b7", + address: "0x718a6FB3b6f8dc8205e9052E6B745Ff0c23205dD", abi: [ { inputs: [], @@ -2439,6 +2089,16 @@ export default { name: "_voteID", type: "uint256", }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, + { + internalType: "uint256", + name: "", + type: "uint256", + }, ], name: "getDegreeOfCoherence", outputs: [ @@ -2696,7 +2356,7 @@ export default { ], }, DisputeKitClassic_Proxy: { - address: "0x8078C2A3bf93f6f69BDD4D38233E7e219eA1914e", + address: "0x10bDc76B491BFcA466AB5C74431880C086b07c67", abi: [ { inputs: [ @@ -2725,7 +2385,7 @@ export default { ], }, DisputeResolver: { - address: "0x48e052B4A6dC4F30e90930F1CeaAFd83b3981EB3", + address: "0xa5A7F0F8e5f90eb8738C7Ee1be37A9794024Bc1B", abi: [ { inputs: [ @@ -2755,7 +2415,7 @@ export default { { indexed: true, internalType: "uint256", - name: "_arbitrableDisputeID", + name: "_arbitratorDisputeID", type: "uint256", }, { @@ -2990,7 +2650,7 @@ export default { inputs: [ { internalType: "uint256", - name: "_externalDisputeID", + name: "_arbitratorDisputeID", type: "uint256", }, { @@ -3020,7 +2680,7 @@ export default { ], }, DisputeTemplateRegistry: { - address: "0x553dcbF6aB3aE06a1064b5200Df1B5A9fB403d3c", + address: "0xf2833d188269Df7c7B6951f9114DA0bD6BAE70af", abi: [ { stateMutability: "payable", @@ -3260,7 +2920,7 @@ export default { ], }, DisputeTemplateRegistry_Implementation: { - address: "0x15E5964C7751dF8563eA4bC000301582C79BC454", + address: "0xa04d631e5660635D8e8f724F799A4e83Bb1EDb18", abi: [ { inputs: [], @@ -3321,650 +2981,62 @@ export default { { indexed: true, internalType: "string", - name: "_templateTag", - type: "string", - }, - { - indexed: false, - internalType: "string", - name: "_templateData", - type: "string", - }, - { - indexed: false, - internalType: "string", - name: "_templateDataMappings", - type: "string", - }, - ], - name: "DisputeTemplate", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: false, - internalType: "uint64", - name: "version", - type: "uint64", - }, - ], - name: "Initialized", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "address", - name: "newImplementation", - type: "address", - }, - ], - name: "Upgraded", - type: "event", - }, - { - inputs: [ - { - internalType: "address", - name: "_governor", - type: "address", - }, - ], - name: "changeGovernor", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "governor", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_governor", - type: "address", - }, - ], - name: "initialize", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "proxiableUUID", - outputs: [ - { - internalType: "bytes32", - name: "", - type: "bytes32", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "_templateTag", - type: "string", - }, - { - internalType: "string", - name: "_templateData", - type: "string", - }, - { - internalType: "string", - name: "_templateDataMappings", - type: "string", - }, - ], - name: "setDisputeTemplate", - outputs: [ - { - internalType: "uint256", - name: "templateId", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "templates", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "newImplementation", - type: "address", - }, - { - internalType: "bytes", - name: "data", - type: "bytes", - }, - ], - name: "upgradeToAndCall", - outputs: [], - stateMutability: "payable", - type: "function", - }, - ], - }, - DisputeTemplateRegistry_Proxy: { - address: "0x553dcbF6aB3aE06a1064b5200Df1B5A9fB403d3c", - abi: [ - { - inputs: [ - { - internalType: "address", - name: "_implementation", - type: "address", - }, - { - internalType: "bytes", - name: "_data", - type: "bytes", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - stateMutability: "payable", - type: "fallback", - }, - { - stateMutability: "payable", - type: "receive", - }, - ], - }, - Escrow: { - address: "0xF1a7Cd3115F5852966430f8E3877D2221F074A2e", - abi: [ - { - inputs: [ - { - internalType: "contract IArbitratorV2", - name: "_arbitrator", - type: "address", - }, - { - internalType: "bytes", - name: "_arbitratorExtraData", - type: "bytes", - }, - { - internalType: "string", - name: "_templateData", - type: "string", - }, - { - internalType: "string", - name: "_templateDataMappings", - type: "string", - }, - { - internalType: "contract IDisputeTemplateRegistry", - name: "_templateRegistry", - type: "address", - }, - { - internalType: "uint256", - name: "_feeTimeout", - type: "uint256", - }, - ], - stateMutability: "nonpayable", - type: "constructor", - }, - { - inputs: [], - name: "ArbitratorOnly", - type: "error", - }, - { - inputs: [], - name: "BuyerFeeNotCoverArbitrationCosts", - type: "error", - }, - { - inputs: [], - name: "BuyerOnly", - type: "error", - }, - { - inputs: [], - name: "DeadlineNotPassed", - type: "error", - }, - { - inputs: [], - name: "DisputeAlreadyCreatedOrTransactionAlreadyExecuted", - type: "error", - }, - { - inputs: [], - name: "DisputeAlreadyResolved", - type: "error", - }, - { - inputs: [], - name: "GovernorOnly", - type: "error", - }, - { - inputs: [], - name: "InvalidRuling", - type: "error", - }, - { - inputs: [], - name: "MaximumPaymentAmountExceeded", - type: "error", - }, - { - inputs: [], - name: "NotWaitingForBuyerFees", - type: "error", - }, - { - inputs: [], - name: "NotWaitingForSellerFees", - type: "error", - }, - { - inputs: [], - name: "SellerFeeNotCoverArbitrationCosts", - type: "error", - }, - { - inputs: [], - name: "SellerOnly", - type: "error", - }, - { - inputs: [], - name: "TimeoutNotPassed", - type: "error", - }, - { - inputs: [], - name: "TransactionDisputed", - type: "error", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "contract IArbitratorV2", - name: "_arbitrator", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "_arbitrableDisputeID", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "_externalDisputeID", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "_templateId", - type: "uint256", - }, - { - indexed: false, - internalType: "string", - name: "_templateUri", - type: "string", - }, - ], - name: "DisputeRequest", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "_transactionID", - type: "uint256", - }, - { - indexed: false, - internalType: "enum Escrow.Party", - name: "_party", - type: "uint8", - }, - ], - name: "HasToPayFee", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "_transactionID", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - { - indexed: false, - internalType: "address", - name: "_party", - type: "address", - }, - ], - name: "Payment", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "contract IArbitratorV2", - name: "_arbitrator", - type: "address", - }, - { - indexed: true, - internalType: "uint256", - name: "_disputeID", - type: "uint256", - }, - { - indexed: false, - internalType: "uint256", - name: "_ruling", - type: "uint256", - }, - ], - name: "Ruling", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "_transactionID", - type: "uint256", - }, - { - indexed: true, - internalType: "address", - name: "_buyer", - type: "address", - }, - { - indexed: true, - internalType: "address", - name: "_seller", - type: "address", - }, - { - indexed: false, - internalType: "uint256", - name: "_amount", - type: "uint256", - }, - ], - name: "TransactionCreated", - type: "event", - }, - { - anonymous: false, - inputs: [ - { - indexed: true, - internalType: "uint256", - name: "_transactionID", - type: "uint256", - }, - { - indexed: true, - internalType: "enum Escrow.Resolution", - name: "_resolution", - type: "uint8", - }, - ], - name: "TransactionResolved", - type: "event", - }, - { - inputs: [], - name: "AMOUNT_OF_CHOICES", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "arbitrator", - outputs: [ - { - internalType: "contract IArbitratorV2", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "arbitratorExtraData", - outputs: [ - { - internalType: "bytes", - name: "", - type: "bytes", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IArbitratorV2", - name: "_arbitrator", - type: "address", - }, - ], - name: "changeArbitrator", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "bytes", - name: "_arbitratorExtraData", - type: "bytes", - }, - ], - name: "changeArbitratorExtraData", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "string", - name: "_templateData", - type: "string", - }, - { - internalType: "string", - name: "_templateDataMappings", - type: "string", - }, - ], - name: "changeDisputeTemplate", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "contract IDisputeTemplateRegistry", - name: "_templateRegistry", - type: "address", - }, - ], - name: "changeTemplateRegistry", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_timeoutPayment", - type: "uint256", - }, - { - internalType: "address payable", - name: "_seller", - type: "address", - }, - { - internalType: "string", - name: "_templateData", - type: "string", - }, - { - internalType: "string", - name: "_templateDataMappings", - type: "string", - }, - ], - name: "createTransaction", - outputs: [ - { - internalType: "uint256", - name: "transactionID", - type: "uint256", - }, - ], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ + name: "_templateTag", + type: "string", + }, { - internalType: "uint256", - name: "", - type: "uint256", + indexed: false, + internalType: "string", + name: "_templateData", + type: "string", }, - ], - name: "disputeIDtoTransactionID", - outputs: [ { - internalType: "uint256", - name: "", - type: "uint256", + indexed: false, + internalType: "string", + name: "_templateDataMappings", + type: "string", }, ], - stateMutability: "view", - type: "function", + name: "DisputeTemplate", + type: "event", }, { + anonymous: false, inputs: [ { - internalType: "uint256", - name: "_transactionID", - type: "uint256", + indexed: false, + internalType: "uint64", + name: "version", + type: "uint64", }, ], - name: "executeTransaction", - outputs: [], - stateMutability: "nonpayable", - type: "function", + name: "Initialized", + type: "event", }, { - inputs: [], - name: "feeTimeout", - outputs: [ + anonymous: false, + inputs: [ { - internalType: "uint256", - name: "", - type: "uint256", + indexed: true, + internalType: "address", + name: "newImplementation", + type: "address", }, ], - stateMutability: "view", - type: "function", + name: "Upgraded", + type: "event", }, { - inputs: [], - name: "getCountTransactions", - outputs: [ + inputs: [ { - internalType: "uint256", - name: "", - type: "uint256", + internalType: "address", + name: "_governor", + type: "address", }, ], - stateMutability: "view", + name: "changeGovernor", + outputs: [], + stateMutability: "nonpayable", type: "function", }, { @@ -3983,86 +3055,61 @@ export default { { inputs: [ { - internalType: "uint256", - name: "_transactionID", - type: "uint256", - }, - { - internalType: "uint256", - name: "_amount", - type: "uint256", + internalType: "address", + name: "_governor", + type: "address", }, ], - name: "pay", + name: "initialize", outputs: [], stateMutability: "nonpayable", type: "function", }, { - inputs: [ + inputs: [], + name: "proxiableUUID", + outputs: [ { - internalType: "uint256", - name: "_transactionID", - type: "uint256", + internalType: "bytes32", + name: "", + type: "bytes32", }, ], - name: "payArbitrationFeeByBuyer", - outputs: [], - stateMutability: "payable", + stateMutability: "view", type: "function", }, { inputs: [ { - internalType: "uint256", - name: "_transactionID", - type: "uint256", + internalType: "string", + name: "_templateTag", + type: "string", }, - ], - name: "payArbitrationFeeBySeller", - outputs: [], - stateMutability: "payable", - type: "function", - }, - { - inputs: [ { - internalType: "uint256", - name: "_transactionID", - type: "uint256", + internalType: "string", + name: "_templateData", + type: "string", }, { - internalType: "uint256", - name: "_amountReimbursed", - type: "uint256", + internalType: "string", + name: "_templateDataMappings", + type: "string", }, ], - name: "reimburse", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint256", - name: "_disputeID", - type: "uint256", - }, + name: "setDisputeTemplate", + outputs: [ { internalType: "uint256", - name: "_ruling", + name: "templateId", type: "uint256", }, ], - name: "rule", - outputs: [], stateMutability: "nonpayable", type: "function", }, { inputs: [], - name: "templateId", + name: "templates", outputs: [ { internalType: "uint256", @@ -4073,118 +3120,57 @@ export default { stateMutability: "view", type: "function", }, - { - inputs: [], - name: "templateRegistry", - outputs: [ - { - internalType: "contract IDisputeTemplateRegistry", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { - internalType: "uint256", - name: "_transactionID", - type: "uint256", + internalType: "address", + name: "newImplementation", + type: "address", }, - ], - name: "timeOutByBuyer", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ { - internalType: "uint256", - name: "_transactionID", - type: "uint256", + internalType: "bytes", + name: "data", + type: "bytes", }, ], - name: "timeOutBySeller", + name: "upgradeToAndCall", outputs: [], - stateMutability: "nonpayable", + stateMutability: "payable", type: "function", }, + ], + }, + DisputeTemplateRegistry_Proxy: { + address: "0xf2833d188269Df7c7B6951f9114DA0bD6BAE70af", + abi: [ { inputs: [ { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "transactions", - outputs: [ - { - internalType: "address payable", - name: "buyer", - type: "address", - }, - { - internalType: "address payable", - name: "seller", + internalType: "address", + name: "_implementation", type: "address", }, { - internalType: "uint256", - name: "amount", - type: "uint256", - }, - { - internalType: "uint256", - name: "deadline", - type: "uint256", - }, - { - internalType: "uint256", - name: "disputeID", - type: "uint256", - }, - { - internalType: "uint256", - name: "buyerFee", - type: "uint256", - }, - { - internalType: "uint256", - name: "sellerFee", - type: "uint256", - }, - { - internalType: "uint256", - name: "lastFeePaymentTime", - type: "uint256", - }, - { - internalType: "string", - name: "templateData", - type: "string", - }, - { - internalType: "string", - name: "templateDataMappings", - type: "string", - }, - { - internalType: "enum Escrow.Status", - name: "status", - type: "uint8", + internalType: "bytes", + name: "_data", + type: "bytes", }, ], - stateMutability: "view", - type: "function", + stateMutability: "nonpayable", + type: "constructor", + }, + { + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", }, ], }, EvidenceModule: { - address: "0xE4066AE16685F66e30fb22e932B67E49220095c0", + address: "0xFA4Df75ab27525e65Db073a9aF195cd6B7707046", abi: [ { stateMutability: "payable", @@ -4381,7 +3367,7 @@ export default { ], }, EvidenceModule_Implementation: { - address: "0xD8609345DEe222051337b3A8335581Cc630Df2E9", + address: "0xA1280FA86a65c4Fe6e22586066A89372C22AA03f", abi: [ { inputs: [], @@ -4559,7 +3545,7 @@ export default { ], }, EvidenceModule_Proxy: { - address: "0xE4066AE16685F66e30fb22e932B67E49220095c0", + address: "0xFA4Df75ab27525e65Db073a9aF195cd6B7707046", abi: [ { inputs: [ @@ -4588,7 +3574,7 @@ export default { ], }, KlerosCore: { - address: "0x33d0b8879368acD8ca868e656Ade97bB97b90468", + address: "0x8ab813348fA90DE51A87131365c458D43ca03F9c", abi: [ { stateMutability: "payable", @@ -4678,6 +3664,11 @@ export default { name: "GovernorOnly", type: "error", }, + { + inputs: [], + name: "GuardianOrGovernorOnly", + type: "error", + }, { inputs: [], name: "InvalidDisputKitParent", @@ -4736,7 +3727,22 @@ export default { }, { inputs: [], - name: "StakingFailed", + name: "StakingInTooManyCourts", + type: "error", + }, + { + inputs: [], + name: "StakingLessThanCourtMinStake", + type: "error", + }, + { + inputs: [], + name: "StakingNotPossibeInThisCourt", + type: "error", + }, + { + inputs: [], + name: "StakingTransferFailed", type: "error", }, { @@ -4765,6 +3771,11 @@ export default { name: "UUPSUnsupportedProxiableUUID", type: "error", }, + { + inputs: [], + name: "UnstakingTransferFailed", + type: "error", + }, { inputs: [], name: "UnsuccessfulCall", @@ -4772,12 +3783,22 @@ export default { }, { inputs: [], - name: "UnsupportedDisputeKit", + name: "UnsupportedDisputeKit", + type: "error", + }, + { + inputs: [], + name: "VotePeriodNotPassed", + type: "error", + }, + { + inputs: [], + name: "WhenNotPausedOnly", type: "error", }, { inputs: [], - name: "VotePeriodNotPassed", + name: "WhenPausedOnly", type: "error", }, { @@ -5194,7 +4215,7 @@ export default { }, { indexed: false, - internalType: "enum KlerosCore.Period", + internalType: "enum KlerosCoreBase.Period", name: "_period", type: "uint8", }, @@ -5202,6 +4223,12 @@ export default { name: "NewPeriod", type: "event", }, + { + anonymous: false, + inputs: [], + name: "Paused", + type: "event", + }, { anonymous: false, inputs: [ @@ -5276,6 +4303,12 @@ export default { name: "TokenAndETHShift", type: "event", }, + { + anonymous: false, + inputs: [], + name: "Unpaused", + type: "event", + }, { anonymous: false, inputs: [ @@ -5508,6 +4541,19 @@ export default { stateMutability: "nonpayable", type: "function", }, + { + inputs: [ + { + internalType: "address", + name: "_guardian", + type: "address", + }, + ], + name: "changeGuardian", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { @@ -5829,7 +4875,7 @@ export default { type: "address", }, { - internalType: "enum KlerosCore.Period", + internalType: "enum KlerosCoreBase.Period", name: "period", type: "uint8", }, @@ -6071,7 +5117,7 @@ export default { type: "uint256", }, ], - internalType: "struct KlerosCore.Round", + internalType: "struct KlerosCoreBase.Round", name: "", type: "tuple", }, @@ -6111,6 +5157,19 @@ export default { stateMutability: "view", type: "function", }, + { + inputs: [], + name: "guardian", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -6118,6 +5177,11 @@ export default { name: "_governor", type: "address", }, + { + internalType: "address", + name: "_guardian", + type: "address", + }, { internalType: "contract IERC20", name: "_pinakion", @@ -6233,6 +5297,26 @@ export default { stateMutability: "nonpayable", type: "function", }, + { + inputs: [], + name: "pause", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "paused", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [], name: "pinakion", @@ -6318,6 +5402,13 @@ export default { stateMutability: "view", type: "function", }, + { + inputs: [], + name: "unpause", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { @@ -6355,7 +5446,7 @@ export default { ], }, KlerosCore_Implementation: { - address: "0x6FDc191b55a03e840b36793e433A932EeCEa40BE", + address: "0xea9cc831DA99C2d9EeC82aA8d281Bb3e26572e52", abi: [ { inputs: [], @@ -6442,6 +5533,11 @@ export default { name: "GovernorOnly", type: "error", }, + { + inputs: [], + name: "GuardianOrGovernorOnly", + type: "error", + }, { inputs: [], name: "InvalidDisputKitParent", @@ -6500,7 +5596,22 @@ export default { }, { inputs: [], - name: "StakingFailed", + name: "StakingInTooManyCourts", + type: "error", + }, + { + inputs: [], + name: "StakingLessThanCourtMinStake", + type: "error", + }, + { + inputs: [], + name: "StakingNotPossibeInThisCourt", + type: "error", + }, + { + inputs: [], + name: "StakingTransferFailed", type: "error", }, { @@ -6529,6 +5640,11 @@ export default { name: "UUPSUnsupportedProxiableUUID", type: "error", }, + { + inputs: [], + name: "UnstakingTransferFailed", + type: "error", + }, { inputs: [], name: "UnsuccessfulCall", @@ -6544,6 +5660,16 @@ export default { name: "VotePeriodNotPassed", type: "error", }, + { + inputs: [], + name: "WhenNotPausedOnly", + type: "error", + }, + { + inputs: [], + name: "WhenPausedOnly", + type: "error", + }, { inputs: [], name: "WrongDisputeKitIndex", @@ -6958,7 +6084,7 @@ export default { }, { indexed: false, - internalType: "enum KlerosCore.Period", + internalType: "enum KlerosCoreBase.Period", name: "_period", type: "uint8", }, @@ -6966,6 +6092,12 @@ export default { name: "NewPeriod", type: "event", }, + { + anonymous: false, + inputs: [], + name: "Paused", + type: "event", + }, { anonymous: false, inputs: [ @@ -7040,6 +6172,12 @@ export default { name: "TokenAndETHShift", type: "event", }, + { + anonymous: false, + inputs: [], + name: "Unpaused", + type: "event", + }, { anonymous: false, inputs: [ @@ -7272,6 +6410,19 @@ export default { stateMutability: "nonpayable", type: "function", }, + { + inputs: [ + { + internalType: "address", + name: "_guardian", + type: "address", + }, + ], + name: "changeGuardian", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { @@ -7593,7 +6744,7 @@ export default { type: "address", }, { - internalType: "enum KlerosCore.Period", + internalType: "enum KlerosCoreBase.Period", name: "period", type: "uint8", }, @@ -7835,7 +6986,7 @@ export default { type: "uint256", }, ], - internalType: "struct KlerosCore.Round", + internalType: "struct KlerosCoreBase.Round", name: "", type: "tuple", }, @@ -7875,6 +7026,19 @@ export default { stateMutability: "view", type: "function", }, + { + inputs: [], + name: "guardian", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -7882,6 +7046,11 @@ export default { name: "_governor", type: "address", }, + { + internalType: "address", + name: "_guardian", + type: "address", + }, { internalType: "contract IERC20", name: "_pinakion", @@ -7997,6 +7166,26 @@ export default { stateMutability: "nonpayable", type: "function", }, + { + inputs: [], + name: "pause", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "paused", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [], name: "pinakion", @@ -8082,6 +7271,13 @@ export default { stateMutability: "view", type: "function", }, + { + inputs: [], + name: "unpause", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [ { @@ -8103,7 +7299,7 @@ export default { ], }, KlerosCore_Proxy: { - address: "0x33d0b8879368acD8ca868e656Ade97bB97b90468", + address: "0x8ab813348fA90DE51A87131365c458D43ca03F9c", abi: [ { inputs: [ @@ -8412,7 +7608,7 @@ export default { ], }, PNKFaucet: { - address: "0x0273512759B5E80031725332da12E91E9F8Bf667", + address: "0x9f6ffc13B685A68ae359fCA128dfE776458Df464", abi: [ { inputs: [ @@ -9053,7 +8249,7 @@ export default { ], }, PolicyRegistry_Implementation: { - address: "0xd543D50dcba2c3E067296210D64c8F91206Df908", + address: "0xC5cb504E1A88ea7De10136B2D6e33F9F7D4E9656", abi: [ { inputs: [], @@ -9301,7 +8497,7 @@ export default { abi: [], }, RandomizerRNG: { - address: "0xaE7F3AcA5c1E40D5E51eE61e20929bbDA0CAf4DC", + address: "0x1E2960117f570f48c773154C0A63919c12Db0Cc2", abi: [ { stateMutability: "payable", @@ -9453,7 +8649,7 @@ export default { inputs: [ { internalType: "uint256", - name: "", + name: "requestId", type: "uint256", }, ], @@ -9461,7 +8657,7 @@ export default { outputs: [ { internalType: "uint256", - name: "", + name: "number", type: "uint256", }, ], @@ -9548,7 +8744,7 @@ export default { inputs: [ { internalType: "address", - name: "", + name: "requester", type: "address", }, ], @@ -9556,7 +8752,7 @@ export default { outputs: [ { internalType: "uint256", - name: "", + name: "requestId", type: "uint256", }, ], @@ -9626,7 +8822,7 @@ export default { ], }, RandomizerRNG_Implementation: { - address: "0x121F321f8F803fb88A895b969D6E26C672121149", + address: "0x0974eF19c9202141D20ce50D60c5A3c522e7A9Ae", abi: [ { inputs: [], @@ -9775,7 +8971,7 @@ export default { inputs: [ { internalType: "uint256", - name: "", + name: "requestId", type: "uint256", }, ], @@ -9783,7 +8979,7 @@ export default { outputs: [ { internalType: "uint256", - name: "", + name: "number", type: "uint256", }, ], @@ -9870,7 +9066,7 @@ export default { inputs: [ { internalType: "address", - name: "", + name: "requester", type: "address", }, ], @@ -9878,7 +9074,7 @@ export default { outputs: [ { internalType: "uint256", - name: "", + name: "requestId", type: "uint256", }, ], @@ -9932,7 +9128,7 @@ export default { ], }, RandomizerRNG_Proxy: { - address: "0xaE7F3AcA5c1E40D5E51eE61e20929bbDA0CAf4DC", + address: "0x1E2960117f570f48c773154C0A63919c12Db0Cc2", abi: [ { inputs: [ @@ -9961,7 +9157,7 @@ export default { ], }, SortitionModule: { - address: "0x3645F9e08D80E47c82aD9E33fCB4EA703822C831", + address: "0xa156fAC2e209126273f841E81490DA7D4381Cc03", abi: [ { stateMutability: "payable", @@ -10177,32 +9373,6 @@ export default { name: "Upgraded", type: "event", }, - { - inputs: [], - name: "DEFAULT_K", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "MAX_STAKE_PATHS", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { @@ -10543,7 +9713,7 @@ export default { inputs: [ { internalType: "address", - name: "", + name: "account", type: "address", }, ], @@ -10580,12 +9750,12 @@ export default { inputs: [ { internalType: "address", - name: "", + name: "jurorAccount", type: "address", }, { internalType: "uint96", - name: "", + name: "courtId", type: "uint96", }, ], @@ -10827,9 +9997,9 @@ export default { type: "uint256", }, { - internalType: "bool", - name: "succeeded", - type: "bool", + internalType: "enum StakingResult", + name: "stakingResult", + type: "uint8", }, ], stateMutability: "nonpayable", @@ -10938,7 +10108,7 @@ export default { ], }, SortitionModule_Implementation: { - address: "0xAf48e32f89339438572a04455b1C4B2fF1659c8f", + address: "0xF506eA3E25ed3BFc9aFa30c81e0254cb0E4E0A35", abi: [ { inputs: [], @@ -11151,32 +10321,6 @@ export default { name: "Upgraded", type: "event", }, - { - inputs: [], - name: "DEFAULT_K", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "MAX_STAKE_PATHS", - outputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { @@ -11517,7 +10661,7 @@ export default { inputs: [ { internalType: "address", - name: "", + name: "account", type: "address", }, ], @@ -11554,12 +10698,12 @@ export default { inputs: [ { internalType: "address", - name: "", + name: "jurorAccount", type: "address", }, { internalType: "uint96", - name: "", + name: "courtId", type: "uint96", }, ], @@ -11801,9 +10945,9 @@ export default { type: "uint256", }, { - internalType: "bool", - name: "succeeded", - type: "bool", + internalType: "enum StakingResult", + name: "stakingResult", + type: "uint8", }, ], stateMutability: "nonpayable", @@ -11896,7 +11040,7 @@ export default { ], }, SortitionModule_Proxy: { - address: "0x3645F9e08D80E47c82aD9E33fCB4EA703822C831", + address: "0xa156fAC2e209126273f841E81490DA7D4381Cc03", abi: [ { inputs: [ @@ -11924,6 +11068,57 @@ export default { }, ], }, + TransactionBatcher: { + address: "0x35f93986950804ac1F93519BF68C2a7Dd776db0E", + abi: [ + { + inputs: [ + { + internalType: "address[]", + name: "targets", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + { + internalType: "bytes[]", + name: "datas", + type: "bytes[]", + }, + ], + name: "batchSend", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address[]", + name: "targets", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + { + internalType: "bytes[]", + name: "datas", + type: "bytes[]", + }, + ], + name: "batchSendUnchecked", + outputs: [], + stateMutability: "payable", + type: "function", + }, + ], + }, WETH: { address: "0xAEE953CC26DbDeA52beBE3F97f281981f2B9d511", abi: [ diff --git a/contracts/deployments/arbitrumSepolia/TransactionBatcher.json b/contracts/deployments/arbitrumSepolia/TransactionBatcher.json new file mode 100644 index 000000000..6372364e0 --- /dev/null +++ b/contracts/deployments/arbitrumSepolia/TransactionBatcher.json @@ -0,0 +1,87 @@ +{ + "address": "0x35f93986950804ac1F93519BF68C2a7Dd776db0E", + "abi": [ + { + "inputs": [ + { + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "datas", + "type": "bytes[]" + } + ], + "name": "batchSend", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address[]", + "name": "targets", + "type": "address[]" + }, + { + "internalType": "uint256[]", + "name": "values", + "type": "uint256[]" + }, + { + "internalType": "bytes[]", + "name": "datas", + "type": "bytes[]" + } + ], + "name": "batchSendUnchecked", + "outputs": [], + "stateMutability": "payable", + "type": "function" + } + ], + "transactionHash": "0x3c4a6f233fda3dc940b9aba1e04ee5993b515e4834b73365c4cd613718db46b2", + "receipt": { + "to": null, + "from": "0xf1C7c037891525E360C59f708739Ac09A7670c59", + "contractAddress": "0x35f93986950804ac1F93519BF68C2a7Dd776db0E", + "transactionIndex": 2, + "gasUsed": "3685628", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", + "blockHash": "0xe9853220bdd1f19aee5024da03ad2d91d98090a74ab599bdcf2af279f02d9744", + "transactionHash": "0x3c4a6f233fda3dc940b9aba1e04ee5993b515e4834b73365c4cd613718db46b2", + "logs": [], + "blockNumber": 66236728, + "cumulativeGasUsed": "5055051", + "status": 1, + "byzantium": true + }, + "args": [], + "numDeployments": 1, + "solcInputHash": "036e2ca71d8ebdd78fd6317e15ba1f3c", + "metadata": "{\"compiler\":{\"version\":\"0.8.24+commit.e11b9ed9\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"datas\",\"type\":\"bytes[]\"}],\"name\":\"batchSend\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"targets\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"values\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes[]\",\"name\":\"datas\",\"type\":\"bytes[]\"}],\"name\":\"batchSendUnchecked\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/utils/TransactionBatcher.sol\":\"TransactionBatcher\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":100},\"remappings\":[]},\"sources\":{\"src/utils/TransactionBatcher.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\n// Adapted from https://github.com/daostack/web3-transaction-batcher/blob/1b88d2ea062f8f2d9fdfdf9bbe85d2bbef780151/contracts/Batcher.sol\\n\\ncontract TransactionBatcher {\\n\\n function batchSend(address[] memory targets, uint256[] memory values, bytes[] memory datas) public payable {\\n for (uint256 i = 0; i < targets.length; i++) {\\n (bool success,) = targets[i].call{value: values[i]}(datas[i]);\\n if (!success) revert('transaction failed'); // All the calls must succeed.\\n }\\n }\\n\\n function batchSendUnchecked(address[] memory targets, uint256[] memory values, bytes[] memory datas) public payable {\\n for (uint256 i = 0; i < targets.length; i++) {\\n targets[i].call{value: values[i]}(datas[i]); // Intentionally ignoring return value.\\n }\\n }\\n}\\n\",\"keccak256\":\"0x1983237012c29ef487ca47d60b197eb30d5b072ffec3078685d43fcc5fcc10a0\",\"license\":\"MIT\"}},\"version\":1}", + "bytecode": "0x608060405234801561000f575f80fd5b506105238061001d5f395ff3fe608060405260043610610028575f3560e01c8063a8f0802e1461002c578063cef591aa14610041575b5f80fd5b61003f61003a3660046103c4565b610054565b005b61003f61004f3660046103c4565b61015c565b5f5b8351811015610156575f848281518110610072576100726104ad565b60200260200101516001600160a01b0316848381518110610095576100956104ad565b60200260200101518484815181106100af576100af6104ad565b60200260200101516040516100c491906104c1565b5f6040518083038185875af1925050503d805f81146100fe576040519150601f19603f3d011682016040523d82523d5f602084013e610103565b606091505b505090508061014d5760405162461bcd60e51b81526020600482015260126024820152711d1c985b9cd858dd1a5bdb8819985a5b195960721b604482015260640160405180910390fd5b50600101610056565b50505050565b5f5b835181101561015657838181518110610179576101796104ad565b60200260200101516001600160a01b031683828151811061019c5761019c6104ad565b60200260200101518383815181106101b6576101b66104ad565b60200260200101516040516101cb91906104c1565b5f6040518083038185875af1925050503d805f8114610205576040519150601f19603f3d011682016040523d82523d5f602084013e61020a565b606091505b50505060010161015e565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561025257610252610215565b604052919050565b5f67ffffffffffffffff82111561027357610273610215565b5060051b60200190565b5f82601f83011261028c575f80fd5b813560206102a161029c8361025a565b610229565b8083825260208201915060208460051b8701019350868411156102c2575f80fd5b602086015b848110156102de57803583529183019183016102c7565b509695505050505050565b5f601f83601f8401126102fa575f80fd5b8235602061030a61029c8361025a565b82815260059290921b85018101918181019087841115610328575f80fd5b8287015b848110156103b857803567ffffffffffffffff8082111561034b575f80fd5b818a0191508a603f83011261035e575f80fd5b8582013560408282111561037457610374610215565b610385828b01601f19168901610229565b92508183528c8183860101111561039a575f80fd5b8181850189850137505f90820187015284525091830191830161032c565b50979650505050505050565b5f805f606084860312156103d6575f80fd5b833567ffffffffffffffff808211156103ed575f80fd5b818601915086601f830112610400575f80fd5b8135602061041061029c8361025a565b82815260059290921b8401810191818101908a84111561042e575f80fd5b948201945b838610156104605785356001600160a01b0381168114610451575f80fd5b82529482019490820190610433565b97505087013592505080821115610475575f80fd5b6104818783880161027d565b93506040860135915080821115610496575f80fd5b506104a3868287016102e9565b9150509250925092565b634e487b7160e01b5f52603260045260245ffd5b5f82515f5b818110156104e057602081860181015185830152016104c6565b505f92019182525091905056fea264697066735822122089797200888ad757484ded7bc0ffbb0769e9e974d73188d61385b7f6675e9f2064736f6c63430008180033", + "deployedBytecode": "0x608060405260043610610028575f3560e01c8063a8f0802e1461002c578063cef591aa14610041575b5f80fd5b61003f61003a3660046103c4565b610054565b005b61003f61004f3660046103c4565b61015c565b5f5b8351811015610156575f848281518110610072576100726104ad565b60200260200101516001600160a01b0316848381518110610095576100956104ad565b60200260200101518484815181106100af576100af6104ad565b60200260200101516040516100c491906104c1565b5f6040518083038185875af1925050503d805f81146100fe576040519150601f19603f3d011682016040523d82523d5f602084013e610103565b606091505b505090508061014d5760405162461bcd60e51b81526020600482015260126024820152711d1c985b9cd858dd1a5bdb8819985a5b195960721b604482015260640160405180910390fd5b50600101610056565b50505050565b5f5b835181101561015657838181518110610179576101796104ad565b60200260200101516001600160a01b031683828151811061019c5761019c6104ad565b60200260200101518383815181106101b6576101b66104ad565b60200260200101516040516101cb91906104c1565b5f6040518083038185875af1925050503d805f8114610205576040519150601f19603f3d011682016040523d82523d5f602084013e61020a565b606091505b50505060010161015e565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561025257610252610215565b604052919050565b5f67ffffffffffffffff82111561027357610273610215565b5060051b60200190565b5f82601f83011261028c575f80fd5b813560206102a161029c8361025a565b610229565b8083825260208201915060208460051b8701019350868411156102c2575f80fd5b602086015b848110156102de57803583529183019183016102c7565b509695505050505050565b5f601f83601f8401126102fa575f80fd5b8235602061030a61029c8361025a565b82815260059290921b85018101918181019087841115610328575f80fd5b8287015b848110156103b857803567ffffffffffffffff8082111561034b575f80fd5b818a0191508a603f83011261035e575f80fd5b8582013560408282111561037457610374610215565b610385828b01601f19168901610229565b92508183528c8183860101111561039a575f80fd5b8181850189850137505f90820187015284525091830191830161032c565b50979650505050505050565b5f805f606084860312156103d6575f80fd5b833567ffffffffffffffff808211156103ed575f80fd5b818601915086601f830112610400575f80fd5b8135602061041061029c8361025a565b82815260059290921b8401810191818101908a84111561042e575f80fd5b948201945b838610156104605785356001600160a01b0381168114610451575f80fd5b82529482019490820190610433565b97505087013592505080821115610475575f80fd5b6104818783880161027d565b93506040860135915080821115610496575f80fd5b506104a3868287016102e9565b9150509250925092565b634e487b7160e01b5f52603260045260245ffd5b5f82515f5b818110156104e057602081860181015185830152016104c6565b505f92019182525091905056fea264697066735822122089797200888ad757484ded7bc0ffbb0769e9e974d73188d61385b7f6675e9f2064736f6c63430008180033", + "devdoc": { + "kind": "dev", + "methods": {}, + "version": 1 + }, + "userdoc": { + "kind": "user", + "methods": {}, + "version": 1 + }, + "storageLayout": { + "storage": [], + "types": null + } +} diff --git a/contracts/deployments/arbitrumSepoliaDevnet.ts b/contracts/deployments/arbitrumSepoliaDevnet.ts index 13cd09d29..4bf1ba0b2 100644 --- a/contracts/deployments/arbitrumSepoliaDevnet.ts +++ b/contracts/deployments/arbitrumSepoliaDevnet.ts @@ -3,7 +3,7 @@ export default { chainId: "421614", contracts: { ArbitrableExample: { - address: "0xe48488AE09022a4F32c528d7EbfF92870225AcBf", + address: "0x3Eae72F076c68F5c354C73abC33EAA291ef1b2Fa", abi: [ { inputs: [ @@ -66,7 +66,7 @@ export default { { indexed: true, internalType: "uint256", - name: "_arbitrableDisputeID", + name: "_arbitratorDisputeID", type: "uint256", }, { @@ -307,7 +307,7 @@ export default { inputs: [ { internalType: "uint256", - name: "_externalDisputeID", + name: "_arbitratorDisputeID", type: "uint256", }, { @@ -6521,7 +6521,7 @@ export default { ], }, DisputeResolver: { - address: "0xB8B36CC43f852f9F0484f53Eb38CaBBA28a81bF6", + address: "0xCE3d5F83d9da70d60ab9cee8b644a18EF3671E61", abi: [ { inputs: [ @@ -6551,7 +6551,7 @@ export default { { indexed: true, internalType: "uint256", - name: "_arbitrableDisputeID", + name: "_arbitratorDisputeID", type: "uint256", }, { @@ -6786,7 +6786,7 @@ export default { inputs: [ { internalType: "uint256", - name: "_externalDisputeID", + name: "_arbitratorDisputeID", type: "uint256", }, { @@ -6816,7 +6816,7 @@ export default { ], }, DisputeResolverNeo: { - address: "0xaBC213522c01354DC0Db2B3E89bDe0FCF44Acac6", + address: "0xB73B124f2939959676509c37Ab6a41C8Ab4aDA1C", abi: [ { inputs: [ @@ -6846,7 +6846,7 @@ export default { { indexed: true, internalType: "uint256", - name: "_arbitrableDisputeID", + name: "_arbitratorDisputeID", type: "uint256", }, { @@ -7110,8 +7110,8 @@ export default { }, ], }, - DisputeResolverUniversity: { - address: "0x102Ba9488Df13842612e777aB16144cCACD38194", + DisputeResolverRuler: { + address: "0x199893232ECC74cC7898B24b5Ff58d613029f6B7", abi: [ { inputs: [ @@ -7141,7 +7141,7 @@ export default { { indexed: true, internalType: "uint256", - name: "_arbitrableDisputeID", + name: "_arbitratorDisputeID", type: "uint256", }, { @@ -7376,7 +7376,7 @@ export default { inputs: [ { internalType: "uint256", - name: "_externalDisputeID", + name: "_arbitratorDisputeID", type: "uint256", }, { @@ -7405,140 +7405,130 @@ export default { }, ], }, - DisputeTemplateRegistry: { - address: "0x596D3B09E684D62217682216e9b7a0De75933391", + DisputeResolverUniversity: { + address: "0x88d793dA6e88Ebd58136A1e1483cc4cf0D915ca4", abi: [ - { - stateMutability: "payable", - type: "fallback", - }, - { - stateMutability: "payable", - type: "receive", - }, - { - inputs: [], - name: "AlreadyInitialized", - type: "error", - }, - { - inputs: [], - name: "FailedDelegateCall", - type: "error", - }, { inputs: [ { - internalType: "address", - name: "implementation", + internalType: "contract IArbitratorV2", + name: "_arbitrator", type: "address", }, - ], - name: "InvalidImplementation", - type: "error", - }, - { - inputs: [], - name: "NotInitializing", - type: "error", - }, - { - inputs: [], - name: "UUPSUnauthorizedCallContext", - type: "error", - }, - { - inputs: [ { - internalType: "bytes32", - name: "slot", - type: "bytes32", + internalType: "contract IDisputeTemplateRegistry", + name: "_templateRegistry", + type: "address", }, ], - name: "UUPSUnsupportedProxiableUUID", - type: "error", + stateMutability: "nonpayable", + type: "constructor", }, { anonymous: false, inputs: [ + { + indexed: true, + internalType: "contract IArbitratorV2", + name: "_arbitrator", + type: "address", + }, { indexed: true, internalType: "uint256", - name: "_templateId", + name: "_arbitratorDisputeID", type: "uint256", }, { - indexed: true, - internalType: "string", - name: "_templateTag", - type: "string", + indexed: false, + internalType: "uint256", + name: "_externalDisputeID", + type: "uint256", }, { indexed: false, - internalType: "string", - name: "_templateData", - type: "string", + internalType: "uint256", + name: "_templateId", + type: "uint256", }, { indexed: false, internalType: "string", - name: "_templateDataMappings", + name: "_templateUri", type: "string", }, ], - name: "DisputeTemplate", + name: "DisputeRequest", type: "event", }, { anonymous: false, inputs: [ + { + indexed: true, + internalType: "contract IArbitratorV2", + name: "_arbitrator", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, { indexed: false, - internalType: "uint64", - name: "version", - type: "uint64", + internalType: "uint256", + name: "_ruling", + type: "uint256", }, ], - name: "Initialized", + name: "Ruling", type: "event", }, { - anonymous: false, - inputs: [ + inputs: [], + name: "arbitrator", + outputs: [ { - indexed: true, - internalType: "address", - name: "newImplementation", + internalType: "contract IArbitratorV2", + name: "", type: "address", }, ], - name: "Upgraded", - type: "event", + stateMutability: "view", + type: "function", }, { inputs: [ { - internalType: "address", - name: "_governor", - type: "address", + internalType: "uint256", + name: "", + type: "uint256", }, ], - name: "changeGovernor", - outputs: [], - stateMutability: "nonpayable", + name: "arbitratorDisputeIDToLocalID", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", type: "function", }, { - inputs: [], - name: "governor", - outputs: [ + inputs: [ { - internalType: "address", - name: "", + internalType: "contract IArbitratorV2", + name: "_arbitrator", type: "address", }, ], - stateMutability: "view", + name: "changeArbitrator", + outputs: [], + stateMutability: "nonpayable", type: "function", }, { @@ -7549,109 +7539,177 @@ export default { type: "address", }, ], - name: "initialize", + name: "changeGovernor", outputs: [], stateMutability: "nonpayable", type: "function", }, { - inputs: [], - name: "proxiableUUID", - outputs: [ + inputs: [ { - internalType: "bytes32", - name: "", - type: "bytes32", + internalType: "contract IDisputeTemplateRegistry", + name: "_templateRegistry", + type: "address", }, ], - stateMutability: "view", + name: "changeTemplateRegistry", + outputs: [], + stateMutability: "nonpayable", type: "function", }, { inputs: [ { - internalType: "string", - name: "_templateTag", - type: "string", + internalType: "bytes", + name: "_arbitratorExtraData", + type: "bytes", }, { internalType: "string", - name: "_templateData", + name: "_disputeTemplate", type: "string", }, { internalType: "string", - name: "_templateDataMappings", + name: "_disputeTemplateDataMappings", type: "string", }, - ], - name: "setDisputeTemplate", - outputs: [ { internalType: "uint256", - name: "templateId", + name: "_numberOfRulingOptions", type: "uint256", }, ], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "templates", + name: "createDisputeForTemplate", outputs: [ { internalType: "uint256", - name: "", + name: "disputeID", type: "uint256", }, ], - stateMutability: "view", + stateMutability: "payable", type: "function", }, { inputs: [ - { - internalType: "address", - name: "newImplementation", - type: "address", - }, { internalType: "bytes", - name: "data", + name: "_arbitratorExtraData", type: "bytes", }, + { + internalType: "string", + name: "_disputeTemplateUri", + type: "string", + }, + { + internalType: "uint256", + name: "_numberOfRulingOptions", + type: "uint256", + }, + ], + name: "createDisputeForTemplateUri", + outputs: [ + { + internalType: "uint256", + name: "disputeID", + type: "uint256", + }, ], - name: "upgradeToAndCall", - outputs: [], stateMutability: "payable", type: "function", }, { inputs: [ { - internalType: "address", - name: "_implementation", - type: "address", + internalType: "uint256", + name: "", + type: "uint256", }, + ], + name: "disputes", + outputs: [ { internalType: "bytes", - name: "_data", + name: "arbitratorExtraData", type: "bytes", }, + { + internalType: "bool", + name: "isRuled", + type: "bool", + }, + { + internalType: "uint256", + name: "ruling", + type: "uint256", + }, + { + internalType: "uint256", + name: "numberOfRulingOptions", + type: "uint256", + }, ], - stateMutability: "nonpayable", - type: "constructor", + stateMutability: "view", + type: "function", }, - ], - }, - DisputeTemplateRegistry_Implementation: { - address: "0xc53b813ed94AaEb6F5518D60bf6a8109954bE3f6", - abi: [ { inputs: [], - stateMutability: "nonpayable", - type: "constructor", + name: "governor", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_arbitratorDisputeID", + type: "uint256", + }, + { + internalType: "uint256", + name: "_ruling", + type: "uint256", + }, + ], + name: "rule", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "templateRegistry", + outputs: [ + { + internalType: "contract IDisputeTemplateRegistry", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + ], + }, + DisputeTemplateRegistry: { + address: "0x596D3B09E684D62217682216e9b7a0De75933391", + abi: [ + { + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", }, { inputs: [], @@ -7864,11 +7922,6 @@ export default { stateMutability: "payable", type: "function", }, - ], - }, - DisputeTemplateRegistry_Proxy: { - address: "0x596D3B09E684D62217682216e9b7a0De75933391", - abi: [ { inputs: [ { @@ -7885,26 +7938,15 @@ export default { stateMutability: "nonpayable", type: "constructor", }, - { - stateMutability: "payable", - type: "fallback", - }, - { - stateMutability: "payable", - type: "receive", - }, ], }, - EvidenceModule: { - address: "0x57fd453FB0d16f8ca174E7386102D7170E17Be09", + DisputeTemplateRegistry_Implementation: { + address: "0xE00A43d3c3321A0e210F2F8bE2F3F75eC8a4951E", abi: [ { - stateMutability: "payable", - type: "fallback", - }, - { - stateMutability: "payable", - type: "receive", + inputs: [], + stateMutability: "nonpayable", + type: "constructor", }, { inputs: [], @@ -7954,23 +7996,29 @@ export default { { indexed: true, internalType: "uint256", - name: "_externalDisputeID", + name: "_templateId", type: "uint256", }, { indexed: true, - internalType: "address", - name: "_party", - type: "address", + internalType: "string", + name: "_templateTag", + type: "string", }, { indexed: false, internalType: "string", - name: "_evidence", + name: "_templateData", + type: "string", + }, + { + indexed: false, + internalType: "string", + name: "_templateDataMappings", type: "string", }, ], - name: "Evidence", + name: "DisputeTemplate", type: "event", }, { @@ -7999,6 +8047,19 @@ export default { name: "Upgraded", type: "event", }, + { + inputs: [ + { + internalType: "address", + name: "_governor", + type: "address", + }, + ], + name: "changeGovernor", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, { inputs: [], name: "governor", @@ -8041,21 +8102,45 @@ export default { { inputs: [ { - internalType: "uint256", - name: "_externalDisputeID", - type: "uint256", + internalType: "string", + name: "_templateTag", + type: "string", }, { internalType: "string", - name: "_evidence", + name: "_templateData", + type: "string", + }, + { + internalType: "string", + name: "_templateDataMappings", type: "string", }, ], - name: "submitEvidence", - outputs: [], + name: "setDisputeTemplate", + outputs: [ + { + internalType: "uint256", + name: "templateId", + type: "uint256", + }, + ], stateMutability: "nonpayable", type: "function", }, + { + inputs: [], + name: "templates", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, { inputs: [ { @@ -8074,6 +8159,11 @@ export default { stateMutability: "payable", type: "function", }, + ], + }, + DisputeTemplateRegistry_Proxy: { + address: "0x596D3B09E684D62217682216e9b7a0De75933391", + abi: [ { inputs: [ { @@ -8090,15 +8180,26 @@ export default { stateMutability: "nonpayable", type: "constructor", }, + { + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", + }, ], }, - EvidenceModule_Implementation: { - address: "0x05AD81f245209b7f91885fd96e57c9da90554824", + EvidenceModule: { + address: "0x57fd453FB0d16f8ca174E7386102D7170E17Be09", abi: [ { - inputs: [], - stateMutability: "nonpayable", - type: "constructor", + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", }, { inputs: [], @@ -8268,11 +8369,6 @@ export default { stateMutability: "payable", type: "function", }, - ], - }, - EvidenceModule_Proxy: { - address: "0x57fd453FB0d16f8ca174E7386102D7170E17Be09", - abi: [ { inputs: [ { @@ -8289,66 +8385,265 @@ export default { stateMutability: "nonpayable", type: "constructor", }, - { - stateMutability: "payable", - type: "fallback", - }, - { - stateMutability: "payable", - type: "receive", - }, ], }, - KlerosCore: { - address: "0xA54e7A16d7460e38a8F324eF46782FB520d58CE8", + EvidenceModule_Implementation: { + address: "0x05AD81f245209b7f91885fd96e57c9da90554824", abi: [ - { - stateMutability: "payable", - type: "fallback", - }, - { - stateMutability: "payable", - type: "receive", - }, { inputs: [], - name: "AlreadyInitialized", - type: "error", + stateMutability: "nonpayable", + type: "constructor", }, { inputs: [], - name: "AppealFeesNotEnough", + name: "AlreadyInitialized", type: "error", }, { inputs: [], - name: "AppealPeriodNotPassed", + name: "FailedDelegateCall", type: "error", }, { - inputs: [], - name: "ArbitrationFeesNotEnough", + inputs: [ + { + internalType: "address", + name: "implementation", + type: "address", + }, + ], + name: "InvalidImplementation", type: "error", }, { inputs: [], - name: "ArraysLengthMismatch", + name: "NotInitializing", type: "error", }, { inputs: [], - name: "CannotDisableClassicDK", + name: "UUPSUnauthorizedCallContext", type: "error", }, { - inputs: [], - name: "CommitPeriodNotPassed", + inputs: [ + { + internalType: "bytes32", + name: "slot", + type: "bytes32", + }, + ], + name: "UUPSUnsupportedProxiableUUID", type: "error", }, { - inputs: [], - name: "DepthLevelMax", - type: "error", + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_externalDisputeID", + 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: false, + internalType: "uint64", + name: "version", + type: "uint64", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "newImplementation", + type: "address", + }, + ], + name: "Upgraded", + type: "event", + }, + { + inputs: [], + name: "governor", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_governor", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "proxiableUUID", + outputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_externalDisputeID", + type: "uint256", + }, + { + internalType: "string", + name: "_evidence", + type: "string", + }, + ], + name: "submitEvidence", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "newImplementation", + type: "address", + }, + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "upgradeToAndCall", + outputs: [], + stateMutability: "payable", + type: "function", + }, + ], + }, + EvidenceModule_Proxy: { + address: "0x57fd453FB0d16f8ca174E7386102D7170E17Be09", + abi: [ + { + inputs: [ + { + internalType: "address", + name: "_implementation", + type: "address", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", + }, + ], + }, + KlerosCore: { + address: "0xA54e7A16d7460e38a8F324eF46782FB520d58CE8", + abi: [ + { + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", + }, + { + inputs: [], + name: "AlreadyInitialized", + type: "error", + }, + { + inputs: [], + name: "AppealFeesNotEnough", + type: "error", + }, + { + inputs: [], + name: "AppealPeriodNotPassed", + type: "error", + }, + { + inputs: [], + name: "ArbitrationFeesNotEnough", + type: "error", + }, + { + inputs: [], + name: "ArraysLengthMismatch", + type: "error", + }, + { + inputs: [], + name: "CannotDisableClassicDK", + type: "error", + }, + { + inputs: [], + name: "CommitPeriodNotPassed", + type: "error", + }, + { + inputs: [], + name: "DepthLevelMax", + type: "error", }, { inputs: [], @@ -12773,12 +13068,3354 @@ export default { name: "TokenAndETHShift", type: "event", }, - { - anonymous: false, - inputs: [], - name: "Unpaused", - type: "event", - }, + { + anonymous: false, + inputs: [], + name: "Unpaused", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "newImplementation", + type: "address", + }, + ], + name: "Upgraded", + type: "event", + }, + { + inputs: [ + { + internalType: "contract IDisputeKit", + name: "_disputeKitAddress", + type: "address", + }, + ], + name: "addNewDisputeKit", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + internalType: "uint256", + name: "_numberOfChoices", + type: "uint256", + }, + { + internalType: "bytes", + name: "_extraData", + type: "bytes", + }, + ], + name: "appeal", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "appealCost", + outputs: [ + { + internalType: "uint256", + name: "cost", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "appealPeriod", + outputs: [ + { + internalType: "uint256", + name: "start", + type: "uint256", + }, + { + internalType: "uint256", + name: "end", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + name: "arbitrableWhitelist", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "_extraData", + type: "bytes", + }, + { + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + ], + name: "arbitrationCost", + outputs: [ + { + internalType: "uint256", + name: "cost", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "_extraData", + type: "bytes", + }, + ], + name: "arbitrationCost", + outputs: [ + { + internalType: "uint256", + name: "cost", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + { + internalType: "bool", + name: "_accepted", + type: "bool", + }, + ], + name: "changeAcceptedFeeTokens", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_arbitrable", + type: "address", + }, + { + internalType: "bool", + name: "_allowed", + type: "bool", + }, + ], + name: "changeArbitrableWhitelist", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + { + internalType: "bool", + name: "_hiddenVotes", + type: "bool", + }, + { + internalType: "uint256", + name: "_minStake", + type: "uint256", + }, + { + internalType: "uint256", + name: "_alpha", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeForJuror", + type: "uint256", + }, + { + internalType: "uint256", + name: "_jurorsForCourtJump", + type: "uint256", + }, + { + internalType: "uint256[4]", + name: "_timesPerPeriod", + type: "uint256[4]", + }, + ], + name: "changeCourtParameters", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + { + internalType: "uint64", + name: "_rateInEth", + type: "uint64", + }, + { + internalType: "uint8", + name: "_rateDecimals", + type: "uint8", + }, + ], + name: "changeCurrencyRates", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_governor", + type: "address", + }, + ], + name: "changeGovernor", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_guardian", + type: "address", + }, + ], + name: "changeGuardian", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC721", + name: "_jurorNft", + type: "address", + }, + ], + name: "changeJurorNft", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_jurorProsecutionModule", + type: "address", + }, + ], + name: "changeJurorProsecutionModule", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "_pinakion", + type: "address", + }, + ], + name: "changePinakion", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract ISortitionModule", + name: "_sortitionModule", + type: "address", + }, + ], + name: "changeSortitionModule", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "_toToken", + type: "address", + }, + { + internalType: "uint256", + name: "_amountInEth", + type: "uint256", + }, + ], + name: "convertEthToTokenAmount", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "courts", + outputs: [ + { + internalType: "uint96", + name: "parent", + type: "uint96", + }, + { + internalType: "bool", + name: "hiddenVotes", + type: "bool", + }, + { + internalType: "uint256", + name: "minStake", + type: "uint256", + }, + { + internalType: "uint256", + name: "alpha", + type: "uint256", + }, + { + internalType: "uint256", + name: "feeForJuror", + type: "uint256", + }, + { + internalType: "uint256", + name: "jurorsForCourtJump", + type: "uint256", + }, + { + internalType: "bool", + name: "disabled", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint96", + name: "_parent", + type: "uint96", + }, + { + internalType: "bool", + name: "_hiddenVotes", + type: "bool", + }, + { + internalType: "uint256", + name: "_minStake", + type: "uint256", + }, + { + internalType: "uint256", + name: "_alpha", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeForJuror", + type: "uint256", + }, + { + internalType: "uint256", + name: "_jurorsForCourtJump", + type: "uint256", + }, + { + internalType: "uint256[4]", + name: "_timesPerPeriod", + type: "uint256[4]", + }, + { + internalType: "bytes", + name: "_sortitionExtraData", + type: "bytes", + }, + { + internalType: "uint256[]", + name: "_supportedDisputeKits", + type: "uint256[]", + }, + ], + name: "createCourt", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_numberOfChoices", + type: "uint256", + }, + { + internalType: "bytes", + name: "_extraData", + type: "bytes", + }, + ], + name: "createDispute", + outputs: [ + { + internalType: "uint256", + name: "disputeID", + type: "uint256", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_numberOfChoices", + type: "uint256", + }, + { + internalType: "bytes", + name: "_extraData", + type: "bytes", + }, + { + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + { + internalType: "uint256", + name: "_feeAmount", + type: "uint256", + }, + ], + name: "createDispute", + outputs: [ + { + internalType: "uint256", + name: "disputeID", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "", + type: "address", + }, + ], + name: "currencyRates", + outputs: [ + { + internalType: "bool", + name: "feePaymentAccepted", + type: "bool", + }, + { + internalType: "uint64", + name: "rateInEth", + type: "uint64", + }, + { + internalType: "uint8", + name: "rateDecimals", + type: "uint8", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "currentRuling", + outputs: [ + { + internalType: "uint256", + name: "ruling", + type: "uint256", + }, + { + internalType: "bool", + name: "tied", + type: "bool", + }, + { + internalType: "bool", + name: "overridden", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "disputeKits", + outputs: [ + { + internalType: "contract IDisputeKit", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "disputes", + outputs: [ + { + internalType: "uint96", + name: "courtID", + type: "uint96", + }, + { + internalType: "contract IArbitrableV2", + name: "arbitrated", + type: "address", + }, + { + internalType: "enum KlerosCoreBase.Period", + name: "period", + type: "uint8", + }, + { + internalType: "bool", + name: "ruled", + type: "bool", + }, + { + internalType: "uint256", + name: "lastPeriodChange", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + internalType: "uint256", + name: "_iterations", + type: "uint256", + }, + ], + name: "draw", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + { + internalType: "uint256[]", + name: "_disputeKitIDs", + type: "uint256[]", + }, + { + internalType: "bool", + name: "_enable", + type: "bool", + }, + ], + name: "enableDisputeKits", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + internalType: "uint256", + name: "_round", + type: "uint256", + }, + { + internalType: "uint256", + name: "_iterations", + type: "uint256", + }, + ], + name: "execute", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_destination", + type: "address", + }, + { + internalType: "uint256", + name: "_amount", + type: "uint256", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + name: "executeGovernorProposal", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "executeRuling", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "getDisputeKitsLength", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "getNumberOfRounds", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "getNumberOfVotes", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + internalType: "uint256", + name: "_round", + type: "uint256", + }, + ], + name: "getRoundInfo", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "disputeKitID", + type: "uint256", + }, + { + internalType: "uint256", + name: "pnkAtStakePerJuror", + type: "uint256", + }, + { + internalType: "uint256", + name: "totalFeesForJurors", + type: "uint256", + }, + { + internalType: "uint256", + name: "nbVotes", + type: "uint256", + }, + { + internalType: "uint256", + name: "repartitions", + type: "uint256", + }, + { + internalType: "uint256", + name: "pnkPenalties", + type: "uint256", + }, + { + internalType: "address[]", + name: "drawnJurors", + type: "address[]", + }, + { + internalType: "uint256", + name: "sumFeeRewardPaid", + type: "uint256", + }, + { + internalType: "uint256", + name: "sumPnkRewardPaid", + type: "uint256", + }, + { + internalType: "contract IERC20", + name: "feeToken", + type: "address", + }, + { + internalType: "uint256", + name: "drawIterations", + type: "uint256", + }, + ], + internalType: "struct KlerosCoreBase.Round", + name: "", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + ], + name: "getTimesPerPeriod", + outputs: [ + { + internalType: "uint256[4]", + name: "timesPerPeriod", + type: "uint256[4]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "governor", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "guardian", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_governor", + type: "address", + }, + { + internalType: "address", + name: "_guardian", + type: "address", + }, + { + internalType: "contract IERC20", + name: "_pinakion", + type: "address", + }, + { + internalType: "address", + name: "_jurorProsecutionModule", + type: "address", + }, + { + internalType: "contract IDisputeKit", + name: "_disputeKit", + type: "address", + }, + { + internalType: "bool", + name: "_hiddenVotes", + type: "bool", + }, + { + internalType: "uint256[4]", + name: "_courtParameters", + type: "uint256[4]", + }, + { + internalType: "uint256[4]", + name: "_timesPerPeriod", + type: "uint256[4]", + }, + { + internalType: "bytes", + name: "_sortitionExtraData", + type: "bytes", + }, + { + internalType: "contract ISortitionModule", + name: "_sortitionModuleAddress", + type: "address", + }, + { + internalType: "contract IERC721", + name: "_jurorNft", + type: "address", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "isDisputeKitJumping", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + { + internalType: "uint256", + name: "_disputeKitID", + type: "uint256", + }, + ], + name: "isSupported", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "jurorNft", + outputs: [ + { + internalType: "contract IERC721", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "jurorProsecutionModule", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "passPeriod", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "pause", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "paused", + outputs: [ + { + internalType: "bool", + name: "", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "pinakion", + outputs: [ + { + internalType: "contract IERC20", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "proxiableUUID", + outputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + { + internalType: "uint256", + name: "_newStake", + type: "uint256", + }, + ], + name: "setStake", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_account", + type: "address", + }, + { + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + { + internalType: "uint256", + name: "_newStake", + type: "uint256", + }, + { + internalType: "bool", + name: "_alreadyTransferred", + type: "bool", + }, + ], + name: "setStakeBySortitionModule", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "sortitionModule", + outputs: [ + { + internalType: "contract ISortitionModule", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "unpause", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "newImplementation", + type: "address", + }, + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "upgradeToAndCall", + outputs: [], + stateMutability: "payable", + type: "function", + }, + ], + }, + KlerosCoreNeo_Proxy: { + address: "0x26bf077037550e437605F07e25EfcAd510715C3A", + abi: [ + { + inputs: [ + { + internalType: "address", + name: "_implementation", + type: "address", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + { + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", + }, + ], + }, + KlerosCoreRuler: { + address: "0x7ffcd32A0521645E6fCFd071A68F0e26957775a5", + abi: [ + { + stateMutability: "payable", + type: "fallback", + }, + { + stateMutability: "payable", + type: "receive", + }, + { + inputs: [], + name: "AlreadyInitialized", + type: "error", + }, + { + inputs: [], + name: "AppealFeesNotEnough", + type: "error", + }, + { + inputs: [], + name: "ArbitrationFeesNotEnough", + type: "error", + }, + { + inputs: [], + name: "DisputeNotAppealable", + type: "error", + }, + { + inputs: [], + name: "FailedDelegateCall", + type: "error", + }, + { + inputs: [], + name: "GovernorOnly", + type: "error", + }, + { + inputs: [], + name: "GovernorOrInstructorOnly", + type: "error", + }, + { + inputs: [], + name: "InvalidForkingCourtAsParent", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "implementation", + type: "address", + }, + ], + name: "InvalidImplementation", + type: "error", + }, + { + inputs: [], + name: "NoRulerSet", + type: "error", + }, + { + inputs: [], + name: "NotInitializing", + type: "error", + }, + { + inputs: [], + name: "RulerOnly", + type: "error", + }, + { + inputs: [], + name: "RulingAlreadyExecuted", + type: "error", + }, + { + inputs: [], + name: "RulingModeNotSet", + type: "error", + }, + { + inputs: [], + name: "TokenNotAccepted", + type: "error", + }, + { + inputs: [], + name: "TransferFailed", + type: "error", + }, + { + inputs: [], + name: "UUPSUnauthorizedCallContext", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "slot", + type: "bytes32", + }, + ], + name: "UUPSUnsupportedProxiableUUID", + type: "error", + }, + { + inputs: [], + name: "UnsuccessfulCall", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IERC20", + name: "_token", + type: "address", + }, + { + indexed: true, + internalType: "bool", + name: "_accepted", + type: "bool", + }, + ], + name: "AcceptedFeeToken", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + ], + name: "AppealDecision", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + ], + name: "AppealPossible", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + indexed: true, + internalType: "enum KlerosCoreRuler.RulingMode", + name: "mode", + type: "uint8", + }, + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_ruling", + type: "uint256", + }, + { + indexed: false, + internalType: "bool", + name: "tied", + type: "bool", + }, + { + indexed: false, + internalType: "bool", + name: "overridden", + type: "bool", + }, + ], + name: "AutoRuled", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_courtID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint96", + name: "_parent", + type: "uint96", + }, + { + indexed: false, + internalType: "bool", + name: "_hiddenVotes", + type: "bool", + }, + { + indexed: false, + internalType: "uint256", + name: "_minStake", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_alpha", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_feeForJuror", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_jurorsForCourtJump", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256[4]", + name: "_timesPerPeriod", + type: "uint256[4]", + }, + ], + name: "CourtCreated", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "_roundID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint96", + name: "_fromCourtID", + type: "uint96", + }, + { + indexed: false, + internalType: "uint96", + name: "_toCourtID", + type: "uint96", + }, + ], + name: "CourtJump", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + { + indexed: false, + internalType: "bool", + name: "_hiddenVotes", + type: "bool", + }, + { + indexed: false, + internalType: "uint256", + name: "_minStake", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_alpha", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_feeForJuror", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_jurorsForCourtJump", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256[4]", + name: "_timesPerPeriod", + type: "uint256[4]", + }, + ], + name: "CourtModified", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + ], + name: "DisputeCreation", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint64", + name: "version", + type: "uint64", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "_roundID", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_pnkAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_feeAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + ], + name: "LeftoverRewardSent", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + { + indexed: false, + internalType: "uint64", + name: "_rateInEth", + type: "uint64", + }, + { + indexed: false, + internalType: "uint8", + name: "_rateDecimals", + type: "uint8", + }, + ], + name: "NewCurrencyRate", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: false, + internalType: "enum KlerosCoreRuler.Period", + name: "_period", + type: "uint8", + }, + ], + name: "NewPeriod", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "_oldRuler", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "_newRuler", + type: "address", + }, + ], + name: "RulerChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + components: [ + { + internalType: "enum KlerosCoreRuler.RulingMode", + name: "rulingMode", + type: "uint8", + }, + { + internalType: "uint256", + name: "presetRuling", + type: "uint256", + }, + { + internalType: "bool", + name: "presetTied", + type: "bool", + }, + { + internalType: "bool", + name: "presetOverridden", + type: "bool", + }, + ], + indexed: false, + internalType: "struct KlerosCoreRuler.RulerSettings", + name: "_settings", + type: "tuple", + }, + ], + name: "RulerSettingsChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_ruling", + type: "uint256", + }, + ], + name: "Ruling", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "_account", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "_roundID", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_degreeOfCoherency", + type: "uint256", + }, + { + indexed: false, + internalType: "int256", + name: "_pnkAmount", + type: "int256", + }, + { + indexed: false, + internalType: "int256", + name: "_feeAmount", + type: "int256", + }, + { + indexed: false, + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + ], + name: "TokenAndETHShift", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "newImplementation", + type: "address", + }, + ], + name: "Upgraded", + type: "event", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + internalType: "uint256", + name: "_numberOfChoices", + type: "uint256", + }, + { + internalType: "bytes", + name: "", + type: "bytes", + }, + { + internalType: "bool", + name: "_jump", + type: "bool", + }, + ], + name: "appeal", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + internalType: "bool", + name: "_jump", + type: "bool", + }, + ], + name: "appealCost", + outputs: [ + { + internalType: "uint256", + name: "cost", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "_extraData", + type: "bytes", + }, + { + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + ], + name: "arbitrationCost", + outputs: [ + { + internalType: "uint256", + name: "cost", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "bytes", + name: "_extraData", + type: "bytes", + }, + ], + name: "arbitrationCost", + outputs: [ + { + internalType: "uint256", + name: "cost", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + { + internalType: "bool", + name: "_accepted", + type: "bool", + }, + ], + name: "changeAcceptedFeeTokens", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + { + internalType: "bool", + name: "_hiddenVotes", + type: "bool", + }, + { + internalType: "uint256", + name: "_minStake", + type: "uint256", + }, + { + internalType: "uint256", + name: "_alpha", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeForJuror", + type: "uint256", + }, + { + internalType: "uint256", + name: "_jurorsForCourtJump", + type: "uint256", + }, + { + internalType: "uint256[4]", + name: "_timesPerPeriod", + type: "uint256[4]", + }, + ], + name: "changeCourtParameters", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + { + internalType: "uint64", + name: "_rateInEth", + type: "uint64", + }, + { + internalType: "uint8", + name: "_rateDecimals", + type: "uint8", + }, + ], + name: "changeCurrencyRates", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address payable", + name: "_governor", + type: "address", + }, + ], + name: "changeGovernor", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "_pinakion", + type: "address", + }, + ], + name: "changePinakion", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + internalType: "address", + name: "_newRuler", + type: "address", + }, + ], + name: "changeRuler", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + internalType: "uint256", + name: "_presetRuling", + type: "uint256", + }, + { + internalType: "bool", + name: "_presetTied", + type: "bool", + }, + { + internalType: "bool", + name: "_presetOverridden", + type: "bool", + }, + ], + name: "changeRulingModeToAutomaticPreset", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + ], + name: "changeRulingModeToAutomaticRandom", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + ], + name: "changeRulingModeToManual", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "_toToken", + type: "address", + }, + { + internalType: "uint256", + name: "_amountInEth", + type: "uint256", + }, + ], + name: "convertEthToTokenAmount", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "courts", + outputs: [ + { + internalType: "uint96", + name: "parent", + type: "uint96", + }, + { + internalType: "bool", + name: "hiddenVotes", + type: "bool", + }, + { + internalType: "uint256", + name: "minStake", + type: "uint256", + }, + { + internalType: "uint256", + name: "alpha", + type: "uint256", + }, + { + internalType: "uint256", + name: "feeForJuror", + type: "uint256", + }, + { + internalType: "uint256", + name: "jurorsForCourtJump", + type: "uint256", + }, + { + internalType: "bool", + name: "disabled", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint96", + name: "_parent", + type: "uint96", + }, + { + internalType: "bool", + name: "_hiddenVotes", + type: "bool", + }, + { + internalType: "uint256", + name: "_minStake", + type: "uint256", + }, + { + internalType: "uint256", + name: "_alpha", + type: "uint256", + }, + { + internalType: "uint256", + name: "_feeForJuror", + type: "uint256", + }, + { + internalType: "uint256", + name: "_jurorsForCourtJump", + type: "uint256", + }, + { + internalType: "uint256[4]", + name: "_timesPerPeriod", + type: "uint256[4]", + }, + ], + name: "createCourt", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_numberOfChoices", + type: "uint256", + }, + { + internalType: "bytes", + name: "_extraData", + type: "bytes", + }, + ], + name: "createDispute", + outputs: [ + { + internalType: "uint256", + name: "disputeID", + type: "uint256", + }, + ], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_numberOfChoices", + type: "uint256", + }, + { + internalType: "bytes", + name: "_extraData", + type: "bytes", + }, + { + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + { + internalType: "uint256", + name: "_feeAmount", + type: "uint256", + }, + ], + name: "createDispute", + outputs: [ + { + internalType: "uint256", + name: "disputeID", + type: "uint256", + }, + ], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IERC20", + name: "", + type: "address", + }, + ], + name: "currencyRates", + outputs: [ + { + internalType: "bool", + name: "feePaymentAccepted", + type: "bool", + }, + { + internalType: "uint64", + name: "rateInEth", + type: "uint64", + }, + { + internalType: "uint8", + name: "rateDecimals", + type: "uint8", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "currentRuling", + outputs: [ + { + internalType: "uint256", + name: "ruling", + type: "uint256", + }, + { + internalType: "bool", + name: "tied", + type: "bool", + }, + { + internalType: "bool", + name: "overridden", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + name: "disputes", + outputs: [ + { + internalType: "uint96", + name: "courtID", + type: "uint96", + }, + { + internalType: "contract IArbitrableV2", + name: "arbitrated", + type: "address", + }, + { + internalType: "enum KlerosCoreRuler.Period", + name: "period", + type: "uint8", + }, + { + internalType: "bool", + name: "ruled", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + internalType: "uint256", + name: "_round", + type: "uint256", + }, + ], + name: "execute", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_destination", + type: "address", + }, + { + internalType: "uint256", + name: "_amount", + type: "uint256", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + name: "executeGovernorProposal", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + internalType: "uint256", + name: "_ruling", + type: "uint256", + }, + { + internalType: "bool", + name: "tied", + type: "bool", + }, + { + internalType: "bool", + name: "overridden", + type: "bool", + }, + ], + name: "executeRuling", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "getNextDisputeID", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "getNumberOfRounds", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + ], + name: "getNumberOfVotes", + outputs: [ + { + internalType: "uint256", + name: "", + type: "uint256", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + internalType: "uint256", + name: "_round", + type: "uint256", + }, + ], + name: "getRoundInfo", + outputs: [ + { + components: [ + { + internalType: "uint256", + name: "totalFeesForJurors", + type: "uint256", + }, + { + internalType: "uint256", + name: "sumFeeRewardPaid", + type: "uint256", + }, + { + internalType: "contract IERC20", + name: "feeToken", + type: "address", + }, + ], + internalType: "struct KlerosCoreRuler.Round", + name: "", + type: "tuple", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + ], + name: "getTimesPerPeriod", + outputs: [ + { + internalType: "uint256[4]", + name: "timesPerPeriod", + type: "uint256[4]", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "governor", + outputs: [ + { + internalType: "address", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_governor", + type: "address", + }, + { + internalType: "contract IERC20", + name: "_pinakion", + type: "address", + }, + { + internalType: "uint256[4]", + name: "_courtParameters", + type: "uint256[4]", + }, + ], + name: "initialize", + outputs: [], + stateMutability: "nonpayable", + type: "function", + }, + { + inputs: [], + name: "pinakion", + outputs: [ + { + internalType: "contract IERC20", + name: "", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [], + name: "proxiableUUID", + outputs: [ + { + internalType: "bytes32", + name: "", + type: "bytes32", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IArbitrableV2", + name: "arbitrable", + type: "address", + }, + ], + name: "rulers", + outputs: [ + { + internalType: "address", + name: "ruler", + type: "address", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "uint256", + name: "disputeID", + type: "uint256", + }, + ], + name: "rulingResults", + outputs: [ + { + internalType: "uint256", + name: "ruling", + type: "uint256", + }, + { + internalType: "bool", + name: "tied", + type: "bool", + }, + { + internalType: "bool", + name: "overridden", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "contract IArbitrableV2", + name: "arbitrable", + type: "address", + }, + ], + name: "settings", + outputs: [ + { + internalType: "enum KlerosCoreRuler.RulingMode", + name: "rulingMode", + type: "uint8", + }, + { + internalType: "uint256", + name: "presetRuling", + type: "uint256", + }, + { + internalType: "bool", + name: "presetTied", + type: "bool", + }, + { + internalType: "bool", + name: "presetOverridden", + type: "bool", + }, + ], + stateMutability: "view", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "newImplementation", + type: "address", + }, + { + internalType: "bytes", + name: "data", + type: "bytes", + }, + ], + name: "upgradeToAndCall", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address", + name: "_implementation", + type: "address", + }, + { + internalType: "bytes", + name: "_data", + type: "bytes", + }, + ], + stateMutability: "nonpayable", + type: "constructor", + }, + ], + }, + KlerosCoreRuler_Implementation: { + address: "0x97e30A3A940856A3913437912C746f1aF6ccC76c", + abi: [ + { + inputs: [], + stateMutability: "nonpayable", + type: "constructor", + }, + { + inputs: [], + name: "AlreadyInitialized", + type: "error", + }, + { + inputs: [], + name: "AppealFeesNotEnough", + type: "error", + }, + { + inputs: [], + name: "ArbitrationFeesNotEnough", + type: "error", + }, + { + inputs: [], + name: "DisputeNotAppealable", + type: "error", + }, + { + inputs: [], + name: "FailedDelegateCall", + type: "error", + }, + { + inputs: [], + name: "GovernorOnly", + type: "error", + }, + { + inputs: [], + name: "GovernorOrInstructorOnly", + type: "error", + }, + { + inputs: [], + name: "InvalidForkingCourtAsParent", + type: "error", + }, + { + inputs: [ + { + internalType: "address", + name: "implementation", + type: "address", + }, + ], + name: "InvalidImplementation", + type: "error", + }, + { + inputs: [], + name: "NoRulerSet", + type: "error", + }, + { + inputs: [], + name: "NotInitializing", + type: "error", + }, + { + inputs: [], + name: "RulerOnly", + type: "error", + }, + { + inputs: [], + name: "RulingAlreadyExecuted", + type: "error", + }, + { + inputs: [], + name: "RulingModeNotSet", + type: "error", + }, + { + inputs: [], + name: "TokenNotAccepted", + type: "error", + }, + { + inputs: [], + name: "TransferFailed", + type: "error", + }, + { + inputs: [], + name: "UUPSUnauthorizedCallContext", + type: "error", + }, + { + inputs: [ + { + internalType: "bytes32", + name: "slot", + type: "bytes32", + }, + ], + name: "UUPSUnsupportedProxiableUUID", + type: "error", + }, + { + inputs: [], + name: "UnsuccessfulCall", + type: "error", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IERC20", + name: "_token", + type: "address", + }, + { + indexed: true, + internalType: "bool", + name: "_accepted", + type: "bool", + }, + ], + name: "AcceptedFeeToken", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + ], + name: "AppealDecision", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + ], + name: "AppealPossible", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + indexed: true, + internalType: "enum KlerosCoreRuler.RulingMode", + name: "mode", + type: "uint8", + }, + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_ruling", + type: "uint256", + }, + { + indexed: false, + internalType: "bool", + name: "tied", + type: "bool", + }, + { + indexed: false, + internalType: "bool", + name: "overridden", + type: "bool", + }, + ], + name: "AutoRuled", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_courtID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint96", + name: "_parent", + type: "uint96", + }, + { + indexed: false, + internalType: "bool", + name: "_hiddenVotes", + type: "bool", + }, + { + indexed: false, + internalType: "uint256", + name: "_minStake", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_alpha", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_feeForJuror", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_jurorsForCourtJump", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256[4]", + name: "_timesPerPeriod", + type: "uint256[4]", + }, + ], + name: "CourtCreated", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "_roundID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint96", + name: "_fromCourtID", + type: "uint96", + }, + { + indexed: false, + internalType: "uint96", + name: "_toCourtID", + type: "uint96", + }, + ], + name: "CourtJump", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint96", + name: "_courtID", + type: "uint96", + }, + { + indexed: false, + internalType: "bool", + name: "_hiddenVotes", + type: "bool", + }, + { + indexed: false, + internalType: "uint256", + name: "_minStake", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_alpha", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_feeForJuror", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_jurorsForCourtJump", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256[4]", + name: "_timesPerPeriod", + type: "uint256[4]", + }, + ], + name: "CourtModified", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + ], + name: "DisputeCreation", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: false, + internalType: "uint64", + name: "version", + type: "uint64", + }, + ], + name: "Initialized", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "_roundID", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_pnkAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_feeAmount", + type: "uint256", + }, + { + indexed: false, + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + ], + name: "LeftoverRewardSent", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + { + indexed: false, + internalType: "uint64", + name: "_rateInEth", + type: "uint64", + }, + { + indexed: false, + internalType: "uint8", + name: "_rateDecimals", + type: "uint8", + }, + ], + name: "NewCurrencyRate", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: false, + internalType: "enum KlerosCoreRuler.Period", + name: "_period", + type: "uint8", + }, + ], + name: "NewPeriod", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "_oldRuler", + type: "address", + }, + { + indexed: true, + internalType: "address", + name: "_newRuler", + type: "address", + }, + ], + name: "RulerChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + components: [ + { + internalType: "enum KlerosCoreRuler.RulingMode", + name: "rulingMode", + type: "uint8", + }, + { + internalType: "uint256", + name: "presetRuling", + type: "uint256", + }, + { + internalType: "bool", + name: "presetTied", + type: "bool", + }, + { + internalType: "bool", + name: "presetOverridden", + type: "bool", + }, + ], + indexed: false, + internalType: "struct KlerosCoreRuler.RulerSettings", + name: "_settings", + type: "tuple", + }, + ], + name: "RulerSettingsChanged", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_ruling", + type: "uint256", + }, + ], + name: "Ruling", + type: "event", + }, + { + anonymous: false, + inputs: [ + { + indexed: true, + internalType: "address", + name: "_account", + type: "address", + }, + { + indexed: true, + internalType: "uint256", + name: "_disputeID", + type: "uint256", + }, + { + indexed: true, + internalType: "uint256", + name: "_roundID", + type: "uint256", + }, + { + indexed: false, + internalType: "uint256", + name: "_degreeOfCoherency", + type: "uint256", + }, + { + indexed: false, + internalType: "int256", + name: "_pnkAmount", + type: "int256", + }, + { + indexed: false, + internalType: "int256", + name: "_feeAmount", + type: "int256", + }, + { + indexed: false, + internalType: "contract IERC20", + name: "_feeToken", + type: "address", + }, + ], + name: "TokenAndETHShift", + type: "event", + }, { anonymous: false, inputs: [ @@ -12792,19 +16429,6 @@ export default { name: "Upgraded", type: "event", }, - { - inputs: [ - { - internalType: "contract IDisputeKit", - name: "_disputeKitAddress", - type: "address", - }, - ], - name: "addNewDisputeKit", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [ { @@ -12819,9 +16443,14 @@ export default { }, { internalType: "bytes", - name: "_extraData", + name: "", type: "bytes", }, + { + internalType: "bool", + name: "_jump", + type: "bool", + }, ], name: "appeal", outputs: [], @@ -12835,61 +16464,23 @@ export default { name: "_disputeID", type: "uint256", }, - ], - name: "appealCost", - outputs: [ - { - internalType: "uint256", - name: "cost", - type: "uint256", - }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [ { - internalType: "uint256", - name: "_disputeID", - type: "uint256", + internalType: "bool", + name: "_jump", + type: "bool", }, ], - name: "appealPeriod", + name: "appealCost", outputs: [ { internalType: "uint256", - name: "start", - type: "uint256", - }, - { - internalType: "uint256", - name: "end", + name: "cost", type: "uint256", }, ], stateMutability: "view", type: "function", }, - { - inputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - name: "arbitrableWhitelist", - outputs: [ - { - internalType: "bool", - name: "", - type: "bool", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { @@ -12951,24 +16542,6 @@ export default { stateMutability: "nonpayable", type: "function", }, - { - inputs: [ - { - internalType: "address", - name: "_arbitrable", - type: "address", - }, - { - internalType: "bool", - name: "_allowed", - type: "bool", - }, - ], - name: "changeArbitrableWhitelist", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [ { @@ -13051,12 +16624,12 @@ export default { { inputs: [ { - internalType: "address", - name: "_guardian", + internalType: "contract IERC20", + name: "_pinakion", type: "address", }, ], - name: "changeGuardian", + name: "changePinakion", outputs: [], stateMutability: "nonpayable", type: "function", @@ -13064,12 +16637,17 @@ export default { { inputs: [ { - internalType: "contract IERC721", - name: "_jurorNft", + internalType: "contract IArbitrableV2", + name: "_arbitrable", + type: "address", + }, + { + internalType: "address", + name: "_newRuler", type: "address", }, ], - name: "changeJurorNft", + name: "changeRuler", outputs: [], stateMutability: "nonpayable", type: "function", @@ -13077,12 +16655,27 @@ export default { { inputs: [ { - internalType: "address", - name: "_jurorProsecutionModule", + internalType: "contract IArbitrableV2", + name: "_arbitrable", type: "address", }, + { + internalType: "uint256", + name: "_presetRuling", + type: "uint256", + }, + { + internalType: "bool", + name: "_presetTied", + type: "bool", + }, + { + internalType: "bool", + name: "_presetOverridden", + type: "bool", + }, ], - name: "changeJurorProsecutionModule", + name: "changeRulingModeToAutomaticPreset", outputs: [], stateMutability: "nonpayable", type: "function", @@ -13090,12 +16683,12 @@ export default { { inputs: [ { - internalType: "contract IERC20", - name: "_pinakion", + internalType: "contract IArbitrableV2", + name: "_arbitrable", type: "address", }, ], - name: "changePinakion", + name: "changeRulingModeToAutomaticRandom", outputs: [], stateMutability: "nonpayable", type: "function", @@ -13103,12 +16696,12 @@ export default { { inputs: [ { - internalType: "contract ISortitionModule", - name: "_sortitionModule", + internalType: "contract IArbitrableV2", + name: "_arbitrable", type: "address", }, ], - name: "changeSortitionModule", + name: "changeRulingModeToManual", outputs: [], stateMutability: "nonpayable", type: "function", @@ -13223,16 +16816,6 @@ export default { name: "_timesPerPeriod", type: "uint256[4]", }, - { - internalType: "bytes", - name: "_sortitionExtraData", - type: "bytes", - }, - { - internalType: "uint256[]", - name: "_supportedDisputeKits", - type: "uint256[]", - }, ], name: "createCourt", outputs: [], @@ -13355,25 +16938,6 @@ export default { stateMutability: "view", type: "function", }, - { - inputs: [ - { - internalType: "uint256", - name: "", - type: "uint256", - }, - ], - name: "disputeKits", - outputs: [ - { - internalType: "contract IDisputeKit", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { @@ -13395,7 +16959,7 @@ export default { type: "address", }, { - internalType: "enum KlerosCoreBase.Period", + internalType: "enum KlerosCoreRuler.Period", name: "period", type: "uint8", }, @@ -13404,56 +16968,10 @@ export default { name: "ruled", type: "bool", }, - { - internalType: "uint256", - name: "lastPeriodChange", - type: "uint256", - }, ], stateMutability: "view", type: "function", }, - { - inputs: [ - { - internalType: "uint256", - name: "_disputeID", - type: "uint256", - }, - { - internalType: "uint256", - name: "_iterations", - type: "uint256", - }, - ], - name: "draw", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "uint96", - name: "_courtID", - type: "uint96", - }, - { - internalType: "uint256[]", - name: "_disputeKitIDs", - type: "uint256[]", - }, - { - internalType: "bool", - name: "_enable", - type: "bool", - }, - ], - name: "enableDisputeKits", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [ { @@ -13466,11 +16984,6 @@ export default { name: "_round", type: "uint256", }, - { - internalType: "uint256", - name: "_iterations", - type: "uint256", - }, ], name: "execute", outputs: [], @@ -13507,6 +17020,21 @@ export default { name: "_disputeID", type: "uint256", }, + { + internalType: "uint256", + name: "_ruling", + type: "uint256", + }, + { + internalType: "bool", + name: "tied", + type: "bool", + }, + { + internalType: "bool", + name: "overridden", + type: "bool", + }, ], name: "executeRuling", outputs: [], @@ -13515,7 +17043,7 @@ export default { }, { inputs: [], - name: "getDisputeKitsLength", + name: "getNextDisputeID", outputs: [ { internalType: "uint256", @@ -13580,64 +17108,24 @@ export default { name: "getRoundInfo", outputs: [ { - components: [ - { - internalType: "uint256", - name: "disputeKitID", - type: "uint256", - }, - { - internalType: "uint256", - name: "pnkAtStakePerJuror", - type: "uint256", - }, - { - internalType: "uint256", - name: "totalFeesForJurors", - type: "uint256", - }, - { - internalType: "uint256", - name: "nbVotes", - type: "uint256", - }, - { - internalType: "uint256", - name: "repartitions", - type: "uint256", - }, + components: [ { internalType: "uint256", - name: "pnkPenalties", + name: "totalFeesForJurors", type: "uint256", }, - { - internalType: "address[]", - name: "drawnJurors", - type: "address[]", - }, { internalType: "uint256", name: "sumFeeRewardPaid", type: "uint256", }, - { - internalType: "uint256", - name: "sumPnkRewardPaid", - type: "uint256", - }, { internalType: "contract IERC20", name: "feeToken", type: "address", }, - { - internalType: "uint256", - name: "drawIterations", - type: "uint256", - }, ], - internalType: "struct KlerosCoreBase.Round", + internalType: "struct KlerosCoreRuler.Round", name: "", type: "tuple", }, @@ -13677,19 +17165,6 @@ export default { stateMutability: "view", type: "function", }, - { - inputs: [], - name: "guardian", - outputs: [ - { - internalType: "address", - name: "", - type: "address", - }, - ], - stateMutability: "view", - type: "function", - }, { inputs: [ { @@ -13697,56 +17172,16 @@ export default { name: "_governor", type: "address", }, - { - internalType: "address", - name: "_guardian", - type: "address", - }, { internalType: "contract IERC20", name: "_pinakion", type: "address", }, - { - internalType: "address", - name: "_jurorProsecutionModule", - type: "address", - }, - { - internalType: "contract IDisputeKit", - name: "_disputeKit", - type: "address", - }, - { - internalType: "bool", - name: "_hiddenVotes", - type: "bool", - }, { internalType: "uint256[4]", name: "_courtParameters", type: "uint256[4]", }, - { - internalType: "uint256[4]", - name: "_timesPerPeriod", - type: "uint256[4]", - }, - { - internalType: "bytes", - name: "_sortitionExtraData", - type: "bytes", - }, - { - internalType: "contract ISortitionModule", - name: "_sortitionModuleAddress", - type: "address", - }, - { - internalType: "contract IERC721", - name: "_jurorNft", - type: "address", - }, ], name: "initialize", outputs: [], @@ -13754,68 +17189,44 @@ export default { type: "function", }, { - inputs: [ - { - internalType: "uint256", - name: "_disputeID", - type: "uint256", - }, - ], - name: "isDisputeKitJumping", + inputs: [], + name: "pinakion", outputs: [ { - internalType: "bool", + internalType: "contract IERC20", name: "", - type: "bool", + type: "address", }, ], stateMutability: "view", type: "function", }, { - inputs: [ - { - internalType: "uint96", - name: "_courtID", - type: "uint96", - }, - { - internalType: "uint256", - name: "_disputeKitID", - type: "uint256", - }, - ], - name: "isSupported", + inputs: [], + name: "proxiableUUID", outputs: [ { - internalType: "bool", + internalType: "bytes32", name: "", - type: "bool", + type: "bytes32", }, ], stateMutability: "view", type: "function", }, { - inputs: [], - name: "jurorNft", - outputs: [ + inputs: [ { - internalType: "contract IERC721", - name: "", + internalType: "contract IArbitrableV2", + name: "arbitrable", type: "address", }, ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "jurorProsecutionModule", + name: "rulers", outputs: [ { internalType: "address", - name: "", + name: "ruler", type: "address", }, ], @@ -13826,56 +17237,26 @@ export default { inputs: [ { internalType: "uint256", - name: "_disputeID", + name: "disputeID", type: "uint256", }, ], - name: "passPeriod", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "pause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "paused", + name: "rulingResults", outputs: [ { - internalType: "bool", - name: "", - type: "bool", + internalType: "uint256", + name: "ruling", + type: "uint256", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "pinakion", - outputs: [ { - internalType: "contract IERC20", - name: "", - type: "address", + internalType: "bool", + name: "tied", + type: "bool", }, - ], - stateMutability: "view", - type: "function", - }, - { - inputs: [], - name: "proxiableUUID", - outputs: [ { - internalType: "bytes32", - name: "", - type: "bytes32", + internalType: "bool", + name: "overridden", + type: "bool", }, ], stateMutability: "view", @@ -13884,69 +17265,37 @@ export default { { inputs: [ { - internalType: "uint96", - name: "_courtID", - type: "uint96", - }, - { - internalType: "uint256", - name: "_newStake", - type: "uint256", - }, - ], - name: "setStake", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [ - { - internalType: "address", - name: "_account", + internalType: "contract IArbitrableV2", + name: "arbitrable", type: "address", }, + ], + name: "settings", + outputs: [ { - internalType: "uint96", - name: "_courtID", - type: "uint96", + internalType: "enum KlerosCoreRuler.RulingMode", + name: "rulingMode", + type: "uint8", }, { internalType: "uint256", - name: "_newStake", + name: "presetRuling", type: "uint256", }, { internalType: "bool", - name: "_alreadyTransferred", + name: "presetTied", type: "bool", }, - ], - name: "setStakeBySortitionModule", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, - { - inputs: [], - name: "sortitionModule", - outputs: [ { - internalType: "contract ISortitionModule", - name: "", - type: "address", + internalType: "bool", + name: "presetOverridden", + type: "bool", }, ], stateMutability: "view", type: "function", }, - { - inputs: [], - name: "unpause", - outputs: [], - stateMutability: "nonpayable", - type: "function", - }, { inputs: [ { @@ -13967,8 +17316,8 @@ export default { }, ], }, - KlerosCoreNeo_Proxy: { - address: "0x26bf077037550e437605F07e25EfcAd510715C3A", + KlerosCoreRuler_Proxy: { + address: "0x7ffcd32A0521645E6fCFd071A68F0e26957775a5", abi: [ { inputs: [ @@ -26792,6 +30141,57 @@ export default { }, ], }, + TransactionBatcher: { + address: "0x35f93986950804ac1F93519BF68C2a7Dd776db0E", + abi: [ + { + inputs: [ + { + internalType: "address[]", + name: "targets", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + { + internalType: "bytes[]", + name: "datas", + type: "bytes[]", + }, + ], + name: "batchSend", + outputs: [], + stateMutability: "payable", + type: "function", + }, + { + inputs: [ + { + internalType: "address[]", + name: "targets", + type: "address[]", + }, + { + internalType: "uint256[]", + name: "values", + type: "uint256[]", + }, + { + internalType: "bytes[]", + name: "datas", + type: "bytes[]", + }, + ], + name: "batchSendUnchecked", + outputs: [], + stateMutability: "payable", + type: "function", + }, + ], + }, WETH: { address: "0x3829A2486d53ee984a0ca2D76552715726b77138", abi: [