diff --git a/onchain/rollups/export/abi/arbitrum_goerli.json b/onchain/rollups/export/abi/arbitrum_goerli.json index a99b426c..f7bd8e94 100644 --- a/onchain/rollups/export/abi/arbitrum_goerli.json +++ b/onchain/rollups/export/abi/arbitrum_goerli.json @@ -2,953 +2,1024 @@ "name": "arbitrum_goerli", "chainId": "421613", "contracts": { - "Bitmask": { - "address": "0x3F62ccC0e41287ea4d28dce6582a215B75bB43fd", - "abi": [] - }, - "BitsManipulation": { - "address": "0x91E780568A1FEdd5d01E1c1E4cAed68E3a849345", + "Bank": { + "address": "0x81766c96789Bf68426abd3857596a46dA46a359E", "abi": [ { "inputs": [ { - "internalType": "int32", - "name": "number", - "type": "int32" - }, - { - "internalType": "uint32", - "name": "wordSize", - "type": "uint32" - } - ], - "name": "int32SignExtension", - "outputs": [ - { - "internalType": "int32", - "name": "", - "type": "int32" + "internalType": "address", + "name": "_token", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "nonpayable", + "type": "constructor" }, { + "anonymous": false, "inputs": [ { - "internalType": "uint32", - "name": "num", - "type": "uint32" - } - ], - "name": "uint32SwapEndian", - "outputs": [ + "indexed": false, + "internalType": "address", + "name": "from", + "type": "address" + }, { - "internalType": "uint32", - "name": "", - "type": "uint32" + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" } ], - "stateMutability": "pure", - "type": "function" + "name": "Deposit", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "uint64", - "name": "number", - "type": "uint64" + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" }, { - "internalType": "uint64", - "name": "wordSize", - "type": "uint64" - } - ], - "name": "uint64SignExtension", - "outputs": [ + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" + }, { - "internalType": "uint64", - "name": "", - "type": "uint64" + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" } ], - "stateMutability": "pure", - "type": "function" + "name": "Transfer", + "type": "event" }, { "inputs": [ { - "internalType": "uint64", - "name": "num", - "type": "uint64" + "internalType": "address", + "name": "_owner", + "type": "address" } ], - "name": "uint64SwapEndian", + "name": "balanceOf", "outputs": [ { - "internalType": "uint64", + "internalType": "uint256", "name": "", - "type": "uint64" + "type": "uint256" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" - } - ] - }, - "BitsManipulationLibrary": { - "address": "0x302311FF8A135c0FC8703Cb4769EAa1604A4A515", - "abi": [ + }, { "inputs": [ { - "internalType": "int32", - "name": "number", - "type": "int32" + "internalType": "address", + "name": "_to", + "type": "address" }, { - "internalType": "uint32", - "name": "wordSize", - "type": "uint32" - } - ], - "name": "int32SignExtension", - "outputs": [ - { - "internalType": "int32", - "name": "", - "type": "int32" + "internalType": "uint256", + "name": "_value", + "type": "uint256" } ], - "stateMutability": "pure", + "name": "depositTokens", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "uint32", - "name": "num", - "type": "uint32" - } - ], - "name": "uint32SwapEndian", + "inputs": [], + "name": "getToken", "outputs": [ { - "internalType": "uint32", + "internalType": "contract IERC20", "name": "", - "type": "uint32" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "uint64", - "name": "number", - "type": "uint64" + "internalType": "address", + "name": "_to", + "type": "address" }, { - "internalType": "uint64", - "name": "wordSize", - "type": "uint64" - } - ], - "name": "uint64SignExtension", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "num", - "type": "uint64" - } - ], - "name": "uint64SwapEndian", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" + "internalType": "uint256", + "name": "_value", + "type": "uint256" } ], - "stateMutability": "pure", + "name": "transferTokens", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" } ] }, - "CartesiMathV2": { - "address": "0x7db3A9BdA16D1C295b23B94a61808EFf82288269", + "CartesiDAppFactory": { + "address": "0x6c54AFBaB72Bb8e5439b7268f4dbfba35E4b0A10", "abi": [ { "inputs": [ { - "internalType": "uint256", - "name": "_num", - "type": "uint256" + "components": [ + { + "internalType": "contract IDiamondCut", + "name": "diamondCutFacet", + "type": "address" + }, + { + "internalType": "contract DiamondInit", + "name": "diamondInit", + "type": "address" + }, + { + "internalType": "contract IBank", + "name": "feeManagerBank", + "type": "address" + }, + { + "components": [ + { + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "enum IDiamondCut.FacetCutAction", + "name": "action", + "type": "uint8" + }, + { + "internalType": "bytes4[]", + "name": "functionSelectors", + "type": "bytes4[]" + } + ], + "internalType": "struct IDiamondCut.FacetCut[]", + "name": "diamondCut", + "type": "tuple[]" + } + ], + "internalType": "struct CartesiDAppFactory.FactoryConfig", + "name": "_fConfig", + "type": "tuple" } ], - "name": "clz", - "outputs": [ + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "indexed": true, + "internalType": "contract CartesiDApp", + "name": "application", + "type": "address" + }, + { + "components": [ + { + "internalType": "address", + "name": "diamondOwner", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "templateHash", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "inputDuration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "challengePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputLog2Size", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feePerClaim", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeManagerOwner", + "type": "address" + }, + { + "internalType": "address payable[]", + "name": "validators", + "type": "address[]" + } + ], + "indexed": false, + "internalType": "struct ICartesiDAppFactory.AppConfig", + "name": "config", + "type": "tuple" } ], - "stateMutability": "pure", - "type": "function" + "name": "ApplicationCreated", + "type": "event" }, { "inputs": [ { "internalType": "uint256", - "name": "_num", + "name": "", "type": "uint256" } ], - "name": "ctz", + "name": "diamondCut", "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "enum IDiamondCut.FacetCutAction", + "name": "action", + "type": "uint8" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_num", - "type": "uint256" - } - ], - "name": "getLog2Floor", + "inputs": [], + "name": "diamondCutFacet", "outputs": [ { - "internalType": "uint8", + "internalType": "contract IDiamondCut", "name": "", - "type": "uint8" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_num", - "type": "uint256" - } - ], - "name": "getLog2TableTimes1M", + "inputs": [], + "name": "diamondInit", "outputs": [ { - "internalType": "uint256", + "internalType": "contract DiamondInit", "name": "", - "type": "uint256" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_num", - "type": "uint256" - } - ], - "name": "isPowerOf2", + "inputs": [], + "name": "feeManagerBank", "outputs": [ { - "internalType": "bool", + "internalType": "contract IBank", "name": "", - "type": "bool" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "uint256", - "name": "_num", - "type": "uint256" + "components": [ + { + "internalType": "address", + "name": "diamondOwner", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "templateHash", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "inputDuration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "challengePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputLog2Size", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feePerClaim", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeManagerOwner", + "type": "address" + }, + { + "internalType": "address payable[]", + "name": "validators", + "type": "address[]" + } + ], + "internalType": "struct ICartesiDAppFactory.AppConfig", + "name": "_appConfig", + "type": "tuple" } ], - "name": "log2ApproxTimes1M", + "name": "newApplication", "outputs": [ { - "internalType": "uint256", + "internalType": "contract CartesiDApp", "name": "", - "type": "uint256" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "nonpayable", "type": "function" } ] }, - "Merkle": { - "address": "0x7CD2b2F951BAc762BF7affd73689A3e1198596AB", + "DiamondCutFacet": { + "address": "0x063844eCcAA8ED283c8ef62E287ca5966BDbb039", "abi": [ { + "anonymous": false, "inputs": [ { - "internalType": "bytes32[]", - "name": "hashes", - "type": "bytes32[]" - } - ], - "name": "calculateRootFromPowerOfTwo", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ + "components": [ + { + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "enum IDiamondCut.FacetCutAction", + "name": "action", + "type": "uint8" + }, + { + "internalType": "bytes4[]", + "name": "functionSelectors", + "type": "bytes4[]" + } + ], + "indexed": false, + "internalType": "struct IDiamondCut.FacetCut[]", + "name": "diamondCut", + "type": "tuple[]" + }, { - "internalType": "uint256", - "name": "number", - "type": "uint256" - } - ], - "name": "getLog2Floor", - "outputs": [ + "indexed": false, + "internalType": "address", + "name": "init", + "type": "address" + }, { - "internalType": "uint8", - "name": "", - "type": "uint8" + "indexed": false, + "internalType": "bytes", + "name": "callData", + "type": "bytes" } ], - "stateMutability": "pure", - "type": "function" + "name": "DiamondCut", + "type": "event" }, { "inputs": [ { - "internalType": "uint8", - "name": "_log2Size", - "type": "uint8" - } - ], - "name": "getPristineHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "_position", - "type": "uint64" + "components": [ + { + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "enum IDiamondCut.FacetCutAction", + "name": "action", + "type": "uint8" + }, + { + "internalType": "bytes4[]", + "name": "functionSelectors", + "type": "bytes4[]" + } + ], + "internalType": "struct IDiamondCut.FacetCut[]", + "name": "_diamondCut", + "type": "tuple[]" }, { - "internalType": "bytes8", - "name": "_value", - "type": "bytes8" + "internalType": "address", + "name": "_init", + "type": "address" }, { - "internalType": "bytes32[]", - "name": "proof", - "type": "bytes32[]" - } - ], - "name": "getRoot", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "bytes", + "name": "_calldata", + "type": "bytes" } ], - "stateMutability": "pure", + "name": "diamondCut", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "DiamondInit": { + "address": "0xD37315Dfe5531D05e63CB1681B6ec7B281C084c3", + "abi": [ { + "anonymous": false, "inputs": [ { - "internalType": "uint64", - "name": "_position", - "type": "uint64" - }, - { - "internalType": "uint8", - "name": "_logOfSize", - "type": "uint8" + "indexed": false, + "internalType": "uint256", + "name": "feePerClaim", + "type": "uint256" }, { - "internalType": "bytes32", - "name": "_drive", - "type": "bytes32" + "indexed": false, + "internalType": "address", + "name": "feeManagerBank", + "type": "address" }, { - "internalType": "bytes32[]", - "name": "siblings", - "type": "bytes32[]" - } - ], - "name": "getRootWithDrive", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "indexed": false, + "internalType": "address", + "name": "feeManagerOwner", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" + "name": "FeeManagerInitialized", + "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": false, "internalType": "uint256", - "name": "number", + "name": "inputDuration", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "challengePeriod", "type": "uint256" } ], - "name": "isPowerOf2", - "outputs": [ + "name": "RollupsInitialized", + "type": "event" + }, + { + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "components": [ + { + "internalType": "bytes32", + "name": "templateHash", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "inputDuration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "challengePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputLog2Size", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feePerClaim", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeManagerBank", + "type": "address" + }, + { + "internalType": "address", + "name": "feeManagerOwner", + "type": "address" + }, + { + "internalType": "address payable[]", + "name": "validators", + "type": "address[]" + } + ], + "internalType": "struct DiamondConfig", + "name": "_dConfig", + "type": "tuple" } ], - "stateMutability": "pure", + "name": "init", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" } ] }, - "MerkleV2": { - "address": "0x353439934aCC3C435A2627954835241ab9FacBF8", + "DiamondLoupeFacet": { + "address": "0x54B9605eb908f771Ba652d6350B2e55Cfda33Bf6", "abi": [ { "inputs": [ { - "internalType": "bytes32[]", - "name": "hashes", - "type": "bytes32[]" + "internalType": "bytes4", + "name": "_functionSelector", + "type": "bytes4" } ], - "name": "calculateRootFromPowerOfTwo", + "name": "facetAddress", "outputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "address", + "name": "facetAddress_", + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_index", - "type": "uint256" - } - ], - "name": "getEmptyTreeHashAtIndex", + "inputs": [], + "name": "facetAddresses", "outputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "address[]", + "name": "facetAddresses_", + "type": "address[]" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "bytes", - "name": "_data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "_wordIndex", - "type": "uint256" + "internalType": "address", + "name": "_facet", + "type": "address" } ], - "name": "getHashOfWordAtIndex", + "name": "facetFunctionSelectors", "outputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "bytes4[]", + "name": "facetFunctionSelectors_", + "type": "bytes4[]" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "bytes", - "name": "_data", - "type": "bytes" - }, + "inputs": [], + "name": "facets", + "outputs": [ { - "internalType": "uint256", - "name": "_log2Size", - "type": "uint256" + "components": [ + { + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "bytes4[]", + "name": "functionSelectors", + "type": "bytes4[]" + } + ], + "internalType": "struct IDiamondLoupe.Facet[]", + "name": "facets_", + "type": "tuple[]" } ], - "name": "getMerkleRootFromBytes", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "_interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", "outputs": [ { - "internalType": "bytes32", + "internalType": "bool", "name": "", - "type": "bytes32" + "type": "bool" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" - }, + } + ] + }, + "ERC20PortalFacet": { + "address": "0x43FA3cf46367a12C13D42175611A9d3b1A43440E", + "abi": [ { + "anonymous": false, "inputs": [ { - "internalType": "uint256", - "name": "_position", - "type": "uint256" + "indexed": false, + "internalType": "address", + "name": "ERC20", + "type": "address" }, { - "internalType": "uint256", - "name": "_logSizeOfReplacement", - "type": "uint256" + "indexed": false, + "internalType": "address", + "name": "sender", + "type": "address" }, { + "indexed": false, "internalType": "uint256", - "name": "_logSizeOfFullDrive", + "name": "amount", "type": "uint256" }, { - "internalType": "bytes32", - "name": "_replacement", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "siblings", - "type": "bytes32[]" - } - ], - "name": "getRootAfterReplacementInDrive", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "stateMutability": "pure", - "type": "function" - } - ] - }, - "UnrolledCordic": { - "address": "0x9F7EBA84FfED559c7C63Bdf4DB6a1C6eB763ffb3", - "abi": [ + "name": "ERC20Deposited", + "type": "event" + }, { "inputs": [ + { + "internalType": "address", + "name": "_ERC20", + "type": "address" + }, { "internalType": "uint256", - "name": "val", + "name": "_amount", "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" } ], - "name": "log2Times1e18", + "name": "erc20Deposit", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes32", "name": "", - "type": "uint256" + "type": "bytes32" } ], - "stateMutability": "pure", + "stateMutability": "nonpayable", "type": "function" } ] }, - "WorkerAuthManagerImpl": { - "address": "0x50bEFaEfD3AAaFac11Fd936A8dfEB1050eC5Cf00", + "ERC721PortalFacet": { + "address": "0x7388C1B5de7954c4B1d12B974C5e9669a84D30Ed", "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_workerManager", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, { "anonymous": false, "inputs": [ { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "user", + "name": "ERC721", "type": "address" }, { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "worker", + "name": "operator", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "dapp", - "type": "address" - } - ], - "name": "Authorization", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "user", + "name": "sender", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" }, { - "indexed": true, - "internalType": "address", - "name": "dapp", - "type": "address" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "name": "Deauthorization", + "name": "ERC721Received", "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": false, "internalType": "address", - "name": "_workerAddress", + "name": "ERC721", "type": "address" }, { - "internalType": "address", - "name": "_dappAddress", - "type": "address" - } - ], - "name": "authorize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", + "indexed": false, + "internalType": "address payable", + "name": "receiver", "type": "address" }, { - "internalType": "address", - "name": "_dappAddress", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" } ], - "name": "deauthorize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "ERC721Withdrawn", + "type": "event" }, { "inputs": [ { - "internalType": "address", - "name": "_workerAddress", - "type": "address" + "internalType": "bytes", + "name": "_data", + "type": "bytes" } ], - "name": "getOwner", + "name": "erc721Withdrawal", "outputs": [ { - "internalType": "address", + "internalType": "bool", "name": "", - "type": "address" + "type": "bool" } ], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "_workerAddress", + "name": "_operator", "type": "address" }, { "internalType": "address", - "name": "_dappAddress", + "name": "_from", "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" } ], - "name": "isAuthorized", + "name": "onERC721Received", "outputs": [ { - "internalType": "bool", + "internalType": "bytes4", "name": "", - "type": "bool" + "type": "bytes4" } ], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" } ] }, - "WorkerManagerAuthManagerImpl": { - "address": "0x89f1f1bc37Ef872ff0073bee7eE6d6B0D94Fd166", + "EtherPortalFacet": { + "address": "0x081bD5316a1B9b71fc82e80d181337370C1E585C", "abi": [ { "anonymous": false, "inputs": [ { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "user", + "name": "sender", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" }, { - "indexed": true, - "internalType": "address", - "name": "dapp", - "type": "address" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "name": "Authorization", + "name": "EtherDeposited", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", + "indexed": false, + "internalType": "address payable", + "name": "receiver", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "dapp", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "Deauthorization", + "name": "EtherWithdrawn", "type": "event" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "etherDeposit", + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } ], - "name": "JobAccepted", - "type": "event" + "stateMutability": "payable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "etherWithdrawal", + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "JobOffer", - "type": "event" - }, + "stateMutability": "nonpayable", + "type": "function" + } + ] + }, + "FeeManagerFacet": { + "address": "0xf2e009Bd619Eb8435Ec9e98cF629961133f58959", + "abi": [ { "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" } ], - "name": "JobRejected", + "name": "FeePerClaimReset", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "worker", + "name": "validator", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "claims", + "type": "uint256" } ], - "name": "Retired", + "name": "FeeRedeemed", "type": "event" }, { "inputs": [], - "name": "acceptJob", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - }, + "name": "getFeeManagerBank", + "outputs": [ { - "internalType": "address", - "name": "_dappAddress", + "internalType": "contract IBank", + "name": "", "type": "address" } ], - "name": "authorize", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "_workerAddress", + "name": "_validator", "type": "address" } ], - "name": "cancelHire", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - }, + "name": "getNumClaimsRedeemed", + "outputs": [ { - "internalType": "address", - "name": "_dappAddress", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "deauthorize", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "_workerAddress", + "name": "_validator", "type": "address" } ], - "name": "getOwner", + "name": "numClaimsRedeemable", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "stateMutability": "view", @@ -958,90 +1029,97 @@ "inputs": [ { "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "getUser", - "outputs": [ - { - "internalType": "address", - "name": "", + "name": "_validator", "type": "address" } ], - "stateMutability": "view", + "name": "redeemFee", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" + "internalType": "uint256", + "name": "_value", + "type": "uint256" } ], - "name": "hire", + "name": "resetFeePerClaim", "outputs": [], - "stateMutability": "payable", + "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "InputFacet": { + "address": "0xAeE0f38EC17BbA23fAf79D951D319f2b331eB01b", + "abi": [ { + "anonymous": false, "inputs": [ { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" + "indexed": true, + "internalType": "uint256", + "name": "epochNumber", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" }, { + "indexed": false, "internalType": "address", - "name": "_dappAddress", + "name": "sender", "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "input", + "type": "bytes" } ], - "name": "hireAndAuthorize", - "outputs": [], - "stateMutability": "payable", - "type": "function" + "name": "InputAdded", + "type": "event" }, { "inputs": [ { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_dappAddress", - "type": "address" + "internalType": "bytes", + "name": "_input", + "type": "bytes" } ], - "name": "isAuthorized", + "name": "addInput", "outputs": [ { - "internalType": "bool", + "internalType": "bytes32", "name": "", - "type": "bool" + "type": "bytes32" } ], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "workerAddress", - "type": "address" - } - ], - "name": "isAvailable", + "inputs": [], + "name": "getCurrentInbox", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], "stateMutability": "view", @@ -1050,303 +1128,229 @@ { "inputs": [ { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "isOwned", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "workerAddress", - "type": "address" + "internalType": "uint256", + "name": "_index", + "type": "uint256" } ], - "name": "isPending", + "name": "getInput", "outputs": [ { - "internalType": "bool", + "internalType": "bytes32", "name": "", - "type": "bool" + "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "isRetired", + "inputs": [], + "name": "getNumberOfInputs", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], "stateMutability": "view", "type": "function" - }, - { - "inputs": [], - "name": "rejectJob", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "retire", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" } ] }, - "WorkerManagerImpl": { - "address": "0xdeCac9ff6b588642887414e85dfdDE740A797F56", + "OutputFacet": { + "address": "0xd57A427A795A96Ee857d477D1D990fa54315ef8B", "abi": [ { "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "voucherPosition", + "type": "uint256" } ], - "name": "JobAccepted", + "name": "VoucherExecuted", "type": "event" }, { - "anonymous": false, "inputs": [ { - "indexed": true, "internalType": "address", - "name": "worker", + "name": "_destination", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - } - ], - "name": "JobOffer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" + "internalType": "bytes", + "name": "_payload", + "type": "bytes" }, { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "epochIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "outputIndex", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "outputHashesRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "vouchersEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "noticesEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "machineStateHash", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "keccakInHashesSiblings", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "outputHashesInEpochSiblings", + "type": "bytes32[]" + } + ], + "internalType": "struct OutputValidityProof", + "name": "_v", + "type": "tuple" } ], - "name": "JobRejected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, + "name": "executeVoucher", + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "Retired", - "type": "event" - }, - { - "inputs": [], - "name": "acceptJob", - "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "cancelHire", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "internalType": "uint256", + "name": "_voucher", + "type": "uint256" + }, { - "internalType": "address", - "name": "_workerAddress", - "type": "address" + "internalType": "uint256", + "name": "_input", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_epoch", + "type": "uint256" } ], - "name": "getOwner", + "name": "getBitMaskPosition", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "getUser", + "inputs": [], + "name": "getEpochNoticeLog2Size", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "getEpochVoucherLog2Size", + "outputs": [ { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "hire", - "outputs": [], - "stateMutability": "payable", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "workerAddress", - "type": "address" - } - ], - "name": "isAvailable", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "internalType": "uint256", + "name": "_index", + "type": "uint256" + }, { - "internalType": "address", - "name": "_workerAddress", - "type": "address" + "internalType": "uint256", + "name": "_log2Size", + "type": "uint256" } ], - "name": "isOwned", + "name": "getIntraDrivePosition", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "workerAddress", - "type": "address" - } - ], - "name": "isPending", + "inputs": [], + "name": "getNoticeMetadataLog2Size", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "isRetired", + "inputs": [], + "name": "getNumberOfFinalizedEpochs", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], "stateMutability": "view", @@ -1354,850 +1358,929 @@ }, { "inputs": [], - "name": "rejectJob", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "retire", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] - }, - "CartesiToken": { - "address": "0x0905a95fa1ce6a11bf399c8958fd782bbece8a4d", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "name", + "name": "getVoucherMetadataLog2Size", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "string" + "type": "uint256" } ], - "payable": false, - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "constant": false, "inputs": [ { - "name": "spender", - "type": "address" + "internalType": "bytes", + "name": "_encodedNotice", + "type": "bytes" }, { - "name": "amount", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ + "internalType": "bytes32", + "name": "_epochHash", + "type": "bytes32" + }, { - "name": "", - "type": "bool" + "components": [ + { + "internalType": "uint256", + "name": "epochIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "outputIndex", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "outputHashesRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "vouchersEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "noticesEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "machineStateHash", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "keccakInHashesSiblings", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "outputHashesInEpochSiblings", + "type": "bytes32[]" + } + ], + "internalType": "struct OutputValidityProof", + "name": "_v", + "type": "tuple" } ], - "payable": false, - "stateMutability": "nonpayable", + "name": "isValidNoticeProof", + "outputs": [], + "stateMutability": "pure", "type": "function" }, { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ + "inputs": [ { - "name": "", - "type": "uint256" + "internalType": "bytes", + "name": "_encodedVoucher", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "_epochHash", + "type": "bytes32" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "epochIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "outputIndex", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "outputHashesRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "vouchersEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "noticesEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "machineStateHash", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "keccakInHashesSiblings", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "outputHashesInEpochSiblings", + "type": "bytes32[]" + } + ], + "internalType": "struct OutputValidityProof", + "name": "_v", + "type": "tuple" } ], - "payable": false, - "stateMutability": "view", + "name": "isValidVoucherProof", + "outputs": [], + "stateMutability": "pure", "type": "function" }, { - "constant": false, "inputs": [ { - "name": "sender", - "type": "address" - }, - { - "name": "recipient", - "type": "address" + "internalType": "bytes", + "name": "_notice", + "type": "bytes" }, { - "name": "amount", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "epochIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "outputIndex", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "outputHashesRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "vouchersEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "noticesEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "machineStateHash", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "keccakInHashesSiblings", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "outputHashesInEpochSiblings", + "type": "bytes32[]" + } + ], + "internalType": "struct OutputValidityProof", + "name": "_v", + "type": "tuple" } ], - "name": "transferFrom", + "name": "validateNotice", "outputs": [ { + "internalType": "bool", "name": "", "type": "bool" } ], - "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" - }, + } + ] + }, + "OwnershipFacet": { + "address": "0x418Fa91dA411Ee64495f4af95F7D725fCD7Ea2f3", + "abi": [ { - "constant": true, - "inputs": [], - "name": "DECIMALS", - "outputs": [ + "anonymous": false, + "inputs": [ { - "name": "", - "type": "uint8" + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "OwnershipTransferred", + "type": "event" }, { - "constant": true, "inputs": [], - "name": "INITIAL_SUPPLY", + "name": "owner", "outputs": [ { - "name": "", - "type": "uint256" + "internalType": "address", + "name": "owner_", + "type": "address" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [ + "inputs": [ { - "name": "", - "type": "uint8" + "internalType": "address", + "name": "_newOwner", + "type": "address" } ], - "payable": false, - "stateMutability": "view", + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "RollupsFacet": { + "address": "0xdf3F3aB8357f4c54fBc6574797fAF846a3a7284A", + "abi": [ { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "spender", + "indexed": true, + "internalType": "uint256", + "name": "epochNumber", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "claimer", "type": "address" }, { - "name": "addedValue", + "indexed": false, + "internalType": "bytes32", + "name": "epochHash", + "type": "bytes32" + } + ], + "name": "Claim", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "epochNumber", "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "epochHash", + "type": "bytes32" } ], - "name": "increaseAllowance", - "outputs": [ + "name": "FinalizeEpoch", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "name": "", - "type": "bool" + "indexed": false, + "internalType": "enum Phase", + "name": "newPhase", + "type": "uint8" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "PhaseChange", + "type": "event" }, { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "account", + "indexed": false, + "internalType": "address", + "name": "winner", "type": "address" }, { - "name": "amount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [ + "indexed": false, + "internalType": "address", + "name": "loser", + "type": "address" + }, { - "name": "", - "type": "bool" + "indexed": false, + "internalType": "bytes32", + "name": "winningClaim", + "type": "bytes32" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "ResolveDispute", + "type": "event" }, { - "constant": false, "inputs": [ { - "name": "_extraLockTime", - "type": "uint256" + "internalType": "bytes32", + "name": "_epochHash", + "type": "bytes32" } ], - "name": "extendMintLockTime", + "name": "claim", "outputs": [], - "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": true, - "inputs": [ - { - "name": "account", - "type": "address" - } - ], - "name": "balanceOf", + "inputs": [], + "name": "finalizeEpoch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getChallengePeriod", "outputs": [ { + "internalType": "uint256", "name": "", "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, "inputs": [], - "name": "symbol", + "name": "getCurrentEpoch", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "string" + "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ + "inputs": [], + "name": "getCurrentPhase", + "outputs": [ { - "name": "account", - "type": "address" + "internalType": "enum Phase", + "name": "", + "type": "uint8" } ], - "name": "addMinter", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "constant": false, "inputs": [], - "name": "renounceMinter", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "getInputAccumulationStart", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" }, { - "constant": true, "inputs": [], - "name": "NAME", + "name": "getInputDuration", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "string" + "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "spender", - "type": "address" - }, + "inputs": [], + "name": "getSealingEpochTimestamp", + "outputs": [ { - "name": "subtractedValue", + "internalType": "uint256", + "name": "", "type": "uint256" } ], - "name": "decreaseAllowance", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getTemplateHash", "outputs": [ { + "internalType": "bytes32", "name": "", - "type": "bool" + "type": "bytes32" } ], - "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" - }, + } + ] + }, + "ValidatorManagerFacet": { + "address": "0x4036187D2d3e1753D03644db76bF3453A1f1DeA7", + "abi": [ { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "recipient", - "type": "address" + "indexed": false, + "internalType": "enum Result", + "name": "result", + "type": "uint8" }, { - "name": "amount", - "type": "uint256" + "indexed": false, + "internalType": "bytes32[2]", + "name": "claims", + "type": "bytes32[2]" + }, + { + "indexed": false, + "internalType": "address payable[2]", + "name": "validators", + "type": "address[2]" } ], - "name": "transfer", - "outputs": [ + "name": "ClaimReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "name": "", - "type": "bool" + "indexed": false, + "internalType": "enum Result", + "name": "result", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "bytes32[2]", + "name": "claims", + "type": "bytes32[2]" + }, + { + "indexed": false, + "internalType": "address payable[2]", + "name": "validators", + "type": "address[2]" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "DisputeEnded", + "type": "event" }, { - "constant": true, + "anonymous": false, "inputs": [ { - "name": "account", - "type": "address" + "indexed": false, + "internalType": "bytes32", + "name": "claim", + "type": "bytes32" } ], - "name": "isMinter", + "name": "NewEpoch", + "type": "event" + }, + { + "inputs": [], + "name": "getAgreementMask", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, - "inputs": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "spender", - "type": "address" - } - ], - "name": "allowance", + "inputs": [], + "name": "getConsensusGoalMask", "outputs": [ { + "internalType": "uint256", "name": "", "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, "inputs": [], - "name": "SYMBOL", + "name": "getCurrentClaim", "outputs": [ { + "internalType": "bytes32", "name": "", - "type": "string" + "type": "bytes32" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "extendedBy", - "type": "uint256" - }, + "name": "getMaxNumValidators", + "outputs": [ { - "indexed": false, - "name": "deadline", + "internalType": "uint256", + "name": "", "type": "uint256" } ], - "name": "LocktimeExteded", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "name": "account", + "internalType": "address payable", + "name": "_sender", "type": "address" } ], - "name": "MinterAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "name": "getNumberOfClaimsByAddress", + "outputs": [ { - "indexed": true, - "name": "account", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "MinterRemoved", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "name": "from", - "type": "address" - }, - { - "indexed": true, - "name": "to", - "type": "address" - }, + "internalType": "uint256", + "name": "_index", + "type": "uint256" + } + ], + "name": "getNumberOfClaimsByIndex", + "outputs": [ { - "indexed": false, - "name": "value", + "internalType": "uint256", + "name": "", "type": "uint256" } ], - "name": "Transfer", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "name": "spender", + "internalType": "address", + "name": "_sender", "type": "address" - }, + } + ], + "name": "getValidatorIndex", + "outputs": [ { - "indexed": false, - "name": "value", + "internalType": "uint256", + "name": "", "type": "uint256" } ], - "name": "Approval", - "type": "event" + "stateMutability": "view", + "type": "function" } ] }, - "DiamondCutFacet": { - "address": "0x063844eCcAA8ED283c8ef62E287ca5966BDbb039", + "Bitmask": { + "address": "0x3F62ccC0e41287ea4d28dce6582a215B75bB43fd", + "abi": [] + }, + "BitsManipulation": { + "address": "0x91E780568A1FEdd5d01E1c1E4cAed68E3a849345", "abi": [ { - "anonymous": false, "inputs": [ { - "components": [ - { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "enum IDiamondCut.FacetCutAction", - "name": "action", - "type": "uint8" - }, - { - "internalType": "bytes4[]", - "name": "functionSelectors", - "type": "bytes4[]" - } - ], - "indexed": false, - "internalType": "struct IDiamondCut.FacetCut[]", - "name": "diamondCut", - "type": "tuple[]" + "internalType": "int32", + "name": "number", + "type": "int32" }, { - "indexed": false, - "internalType": "address", - "name": "init", - "type": "address" - }, + "internalType": "uint32", + "name": "wordSize", + "type": "uint32" + } + ], + "name": "int32SignExtension", + "outputs": [ { - "indexed": false, - "internalType": "bytes", - "name": "callData", - "type": "bytes" + "internalType": "int32", + "name": "", + "type": "int32" } ], - "name": "DiamondCut", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { "inputs": [ { - "components": [ - { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "enum IDiamondCut.FacetCutAction", - "name": "action", - "type": "uint8" - }, - { - "internalType": "bytes4[]", - "name": "functionSelectors", - "type": "bytes4[]" - } - ], - "internalType": "struct IDiamondCut.FacetCut[]", - "name": "_diamondCut", - "type": "tuple[]" - }, + "internalType": "uint32", + "name": "num", + "type": "uint32" + } + ], + "name": "uint32SwapEndian", + "outputs": [ { - "internalType": "address", - "name": "_init", - "type": "address" + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "number", + "type": "uint64" }, { - "internalType": "bytes", - "name": "_calldata", - "type": "bytes" + "internalType": "uint64", + "name": "wordSize", + "type": "uint64" } ], - "name": "diamondCut", - "outputs": [], - "stateMutability": "nonpayable", + "name": "uint64SignExtension", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "pure", "type": "function" - } - ] - }, - "DiamondLoupeFacet": { - "address": "0x54B9605eb908f771Ba652d6350B2e55Cfda33Bf6", - "abi": [ + }, { "inputs": [ { - "internalType": "bytes4", - "name": "_functionSelector", - "type": "bytes4" + "internalType": "uint64", + "name": "num", + "type": "uint64" } ], - "name": "facetAddress", + "name": "uint64SwapEndian", "outputs": [ { - "internalType": "address", - "name": "facetAddress_", - "type": "address" + "internalType": "uint64", + "name": "", + "type": "uint64" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" - }, + } + ] + }, + "BitsManipulationLibrary": { + "address": "0x302311FF8A135c0FC8703Cb4769EAa1604A4A515", + "abi": [ { - "inputs": [], - "name": "facetAddresses", + "inputs": [ + { + "internalType": "int32", + "name": "number", + "type": "int32" + }, + { + "internalType": "uint32", + "name": "wordSize", + "type": "uint32" + } + ], + "name": "int32SignExtension", "outputs": [ { - "internalType": "address[]", - "name": "facetAddresses_", - "type": "address[]" + "internalType": "int32", + "name": "", + "type": "int32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_facet", - "type": "address" + "internalType": "uint32", + "name": "num", + "type": "uint32" } ], - "name": "facetFunctionSelectors", + "name": "uint32SwapEndian", "outputs": [ { - "internalType": "bytes4[]", - "name": "facetFunctionSelectors_", - "type": "bytes4[]" + "internalType": "uint32", + "name": "", + "type": "uint32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [], - "name": "facets", + "inputs": [ + { + "internalType": "uint64", + "name": "number", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "wordSize", + "type": "uint64" + } + ], + "name": "uint64SignExtension", "outputs": [ { - "components": [ - { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "bytes4[]", - "name": "functionSelectors", - "type": "bytes4[]" - } - ], - "internalType": "struct IDiamondLoupe.Facet[]", - "name": "facets_", - "type": "tuple[]" + "internalType": "uint64", + "name": "", + "type": "uint64" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "bytes4", - "name": "_interfaceId", - "type": "bytes4" + "internalType": "uint64", + "name": "num", + "type": "uint64" } ], - "name": "supportsInterface", + "name": "uint64SwapEndian", "outputs": [ { - "internalType": "bool", + "internalType": "uint64", "name": "", - "type": "bool" + "type": "uint64" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" } ] }, - "OwnershipFacet": { - "address": "0x418Fa91dA411Ee64495f4af95F7D725fCD7Ea2f3", + "CartesiMathV2": { + "address": "0x7db3A9BdA16D1C295b23B94a61808EFf82288269", "abi": [ { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" + "internalType": "uint256", + "name": "_num", + "type": "uint256" } ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "owner", + "name": "clz", "outputs": [ { - "internalType": "address", - "name": "owner_", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_newOwner", - "type": "address" + "internalType": "uint256", + "name": "_num", + "type": "uint256" } ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] - }, - "ERC20PortalFacet": { - "address": "0x43FA3cf46367a12C13D42175611A9d3b1A43440E", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "ERC20", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, + "name": "ctz", + "outputs": [ { - "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "", "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" } ], - "name": "ERC20Deposited", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { "inputs": [ - { - "internalType": "address", - "name": "_ERC20", - "type": "address" - }, { "internalType": "uint256", - "name": "_amount", + "name": "_num", "type": "uint256" - }, - { - "internalType": "bytes", - "name": "_data", - "type": "bytes" } ], - "name": "erc20Deposit", + "name": "getLog2Floor", "outputs": [ { - "internalType": "bytes32", + "internalType": "uint8", "name": "", - "type": "bytes32" + "type": "uint8" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" - } - ] - }, - "ERC721PortalFacet": { - "address": "0x7388C1B5de7954c4B1d12B974C5e9669a84D30Ed", - "abi": [ + }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "ERC721", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, "internalType": "uint256", - "name": "tokenId", + "name": "_num", "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" } ], - "name": "ERC721Received", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "ERC721", - "type": "address" - }, - { - "indexed": false, - "internalType": "address payable", - "name": "receiver", - "type": "address" - }, + "name": "getLog2TableTimes1M", + "outputs": [ { - "indexed": false, "internalType": "uint256", - "name": "tokenId", + "name": "", "type": "uint256" } ], - "name": "ERC721Withdrawn", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { "inputs": [ { - "internalType": "bytes", - "name": "_data", - "type": "bytes" + "internalType": "uint256", + "name": "_num", + "type": "uint256" } ], - "name": "erc721Withdrawal", + "name": "isPowerOf2", "outputs": [ { "internalType": "bool", @@ -2205,101 +2288,80 @@ "type": "bool" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" }, { "inputs": [ - { - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { - "internalType": "address", - "name": "_from", - "type": "address" - }, { "internalType": "uint256", - "name": "_tokenId", + "name": "_num", "type": "uint256" - }, - { - "internalType": "bytes", - "name": "_data", - "type": "bytes" } ], - "name": "onERC721Received", + "name": "log2ApproxTimes1M", "outputs": [ { - "internalType": "bytes4", + "internalType": "uint256", "name": "", - "type": "bytes4" + "type": "uint256" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" } ] }, - "EtherPortalFacet": { - "address": "0x081bD5316a1B9b71fc82e80d181337370C1E585C", + "Merkle": { + "address": "0x7CD2b2F951BAc762BF7affd73689A3e1198596AB", "abi": [ { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, + "internalType": "bytes32[]", + "name": "hashes", + "type": "bytes32[]" + } + ], + "name": "calculateRootFromPowerOfTwo", + "outputs": [ { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } ], - "name": "EtherDeposited", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "address payable", - "name": "receiver", - "type": "address" - }, - { - "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "number", "type": "uint256" } ], - "name": "EtherWithdrawn", - "type": "event" + "name": "getLog2Floor", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "pure", + "type": "function" }, { "inputs": [ { - "internalType": "bytes", - "name": "_data", - "type": "bytes" + "internalType": "uint8", + "name": "_log2Size", + "type": "uint8" } ], - "name": "etherDeposit", + "name": "getPristineHash", "outputs": [ { "internalType": "bytes32", @@ -2307,193 +2369,172 @@ "type": "bytes32" } ], - "stateMutability": "payable", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "bytes", - "name": "_data", - "type": "bytes" + "internalType": "uint64", + "name": "_position", + "type": "uint64" + }, + { + "internalType": "bytes8", + "name": "_value", + "type": "bytes8" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" } ], - "name": "etherWithdrawal", + "name": "getRoot", "outputs": [ { - "internalType": "bool", + "internalType": "bytes32", "name": "", - "type": "bool" + "type": "bytes32" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" - } - ] - }, - "FeeManagerFacet": { - "address": "0xf2e009Bd619Eb8435Ec9e98cF629961133f58959", - "abi": [ + }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "FeePerClaimReset", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "internalType": "uint64", + "name": "_position", + "type": "uint64" + }, { - "indexed": false, - "internalType": "address", - "name": "validator", - "type": "address" + "internalType": "uint8", + "name": "_logOfSize", + "type": "uint8" }, { - "indexed": false, - "internalType": "uint256", - "name": "claims", - "type": "uint256" + "internalType": "bytes32", + "name": "_drive", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "siblings", + "type": "bytes32[]" } ], - "name": "FeeRedeemed", - "type": "event" - }, - { - "inputs": [], - "name": "getFeeManagerBank", + "name": "getRootWithDrive", "outputs": [ { - "internalType": "contract IBank", + "internalType": "bytes32", "name": "", - "type": "address" + "type": "bytes32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_validator", - "type": "address" + "internalType": "uint256", + "name": "number", + "type": "uint256" } ], - "name": "getNumClaimsRedeemed", + "name": "isPowerOf2", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" - }, + } + ] + }, + "MerkleV2": { + "address": "0x353439934aCC3C435A2627954835241ab9FacBF8", + "abi": [ { "inputs": [ { - "internalType": "address", - "name": "_validator", - "type": "address" + "internalType": "bytes32[]", + "name": "hashes", + "type": "bytes32[]" } ], - "name": "numClaimsRedeemable", + "name": "calculateRootFromPowerOfTwo", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes32", "name": "", - "type": "uint256" + "type": "bytes32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_validator", - "type": "address" + "internalType": "uint256", + "name": "_index", + "type": "uint256" } ], - "name": "redeemFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "name": "getEmptyTreeHashAtIndex", + "outputs": [ { - "internalType": "uint256", - "name": "_value", - "type": "uint256" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } ], - "name": "resetFeePerClaim", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" - } - ] - }, - "InputFacet": { - "address": "0xAeE0f38EC17BbA23fAf79D951D319f2b331eB01b", - "abi": [ + }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "epochNumber", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" + "internalType": "bytes", + "name": "_data", + "type": "bytes" }, { - "indexed": false, "internalType": "uint256", - "name": "timestamp", + "name": "_wordIndex", "type": "uint256" - }, + } + ], + "name": "getHashOfWordAtIndex", + "outputs": [ { - "indexed": false, - "internalType": "bytes", - "name": "input", - "type": "bytes" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } ], - "name": "InputAdded", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { "inputs": [ { "internalType": "bytes", - "name": "_input", + "name": "_data", "type": "bytes" + }, + { + "internalType": "uint256", + "name": "_log2Size", + "type": "uint256" } ], - "name": "addInput", + "name": "getMerkleRootFromBytes", "outputs": [ { "internalType": "bytes32", @@ -2501,31 +2542,38 @@ "type": "bytes32" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" }, { - "inputs": [], - "name": "getCurrentInbox", - "outputs": [ + "inputs": [ { "internalType": "uint256", - "name": "", + "name": "_position", "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + }, { "internalType": "uint256", - "name": "_index", + "name": "_logSizeOfReplacement", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_logSizeOfFullDrive", "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "_replacement", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "siblings", + "type": "bytes32[]" } ], - "name": "getInput", + "name": "getRootAfterReplacementInDrive", "outputs": [ { "internalType": "bytes32", @@ -2533,12 +2581,23 @@ "type": "bytes32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" - }, + } + ] + }, + "UnrolledCordic": { + "address": "0x9F7EBA84FfED559c7C63Bdf4DB6a1C6eB763ffb3", + "abi": [ { - "inputs": [], - "name": "getNumberOfInputs", + "inputs": [ + { + "internalType": "uint256", + "name": "val", + "type": "uint256" + } + ], + "name": "log2Times1e18", "outputs": [ { "internalType": "uint256", @@ -2546,612 +2605,505 @@ "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" } ] }, - "OutputFacet": { - "address": "0xd57A427A795A96Ee857d477D1D990fa54315ef8B", + "WorkerAuthManagerImpl": { + "address": "0x50bEFaEfD3AAaFac11Fd936A8dfEB1050eC5Cf00", "abi": [ { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "voucherPosition", - "type": "uint256" + "internalType": "address", + "name": "_workerManager", + "type": "address" } ], - "name": "VoucherExecuted", - "type": "event" + "stateMutability": "nonpayable", + "type": "constructor" }, { + "anonymous": false, "inputs": [ { + "indexed": true, "internalType": "address", - "name": "_destination", + "name": "user", "type": "address" }, { - "internalType": "bytes", - "name": "_payload", - "type": "bytes" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "components": [ - { - "internalType": "uint256", - "name": "epochIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "outputIndex", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "outputHashesRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "vouchersEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "noticesEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "machineStateHash", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "keccakInHashesSiblings", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "outputHashesInEpochSiblings", - "type": "bytes32[]" - } - ], - "internalType": "struct OutputValidityProof", - "name": "_v", - "type": "tuple" - } - ], - "name": "executeVoucher", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" + "indexed": true, + "internalType": "address", + "name": "dapp", + "type": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "name": "Authorization", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "uint256", - "name": "_voucher", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" }, { - "internalType": "uint256", - "name": "_input", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "internalType": "uint256", - "name": "_epoch", - "type": "uint256" - } - ], - "name": "getBitMaskPosition", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "dapp", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" + "name": "Deauthorization", + "type": "event" }, { - "inputs": [], - "name": "getEpochNoticeLog2Size", - "outputs": [ + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "stateMutability": "pure", + "name": "authorize", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "getEpochVoucherLog2Size", - "outputs": [ + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "stateMutability": "pure", + "name": "deauthorize", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "uint256", - "name": "_index", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_log2Size", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" } ], - "name": "getIntraDrivePosition", + "name": "getOwner", "outputs": [ { - "internalType": "uint256", + "internalType": "address", "name": "", - "type": "uint256" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getNoticeMetadataLog2Size", - "outputs": [ + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "getNumberOfFinalizedEpochs", + "name": "isAuthorized", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" - }, + } + ] + }, + "WorkerManagerAuthManagerImpl": { + "address": "0x89f1f1bc37Ef872ff0073bee7eE6d6B0D94Fd166", + "abi": [ { - "inputs": [], - "name": "getVoucherMetadataLog2Size", - "outputs": [ + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "dapp", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" + "name": "Authorization", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "bytes", - "name": "_encodedNotice", - "type": "bytes" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" }, { - "internalType": "bytes32", - "name": "_epochHash", - "type": "bytes32" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "components": [ - { - "internalType": "uint256", - "name": "epochIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "outputIndex", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "outputHashesRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "vouchersEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "noticesEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "machineStateHash", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "keccakInHashesSiblings", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "outputHashesInEpochSiblings", - "type": "bytes32[]" - } - ], - "internalType": "struct OutputValidityProof", - "name": "_v", - "type": "tuple" + "indexed": true, + "internalType": "address", + "name": "dapp", + "type": "address" } ], - "name": "isValidNoticeProof", - "outputs": [], - "stateMutability": "pure", - "type": "function" + "name": "Deauthorization", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "bytes", - "name": "_encodedVoucher", - "type": "bytes" - }, - { - "internalType": "bytes32", - "name": "_epochHash", - "type": "bytes32" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "components": [ - { - "internalType": "uint256", - "name": "epochIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "outputIndex", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "outputHashesRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "vouchersEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "noticesEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "machineStateHash", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "keccakInHashesSiblings", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "outputHashesInEpochSiblings", - "type": "bytes32[]" - } - ], - "internalType": "struct OutputValidityProof", - "name": "_v", - "type": "tuple" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "name": "isValidVoucherProof", - "outputs": [], - "stateMutability": "pure", - "type": "function" + "name": "JobAccepted", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "bytes", - "name": "_notice", - "type": "bytes" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "components": [ - { - "internalType": "uint256", - "name": "epochIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "outputIndex", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "outputHashesRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "vouchersEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "noticesEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "machineStateHash", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "keccakInHashesSiblings", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "outputHashesInEpochSiblings", - "type": "bytes32[]" - } - ], - "internalType": "struct OutputValidityProof", - "name": "_v", - "type": "tuple" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "name": "validateNotice", - "outputs": [ + "name": "JobOffer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "stateMutability": "view", - "type": "function" - } - ] - }, - "RollupsFacet": { - "address": "0xdf3F3aB8357f4c54fBc6574797fAF846a3a7284A", - "abi": [ + "name": "JobRejected", + "type": "event" + }, { "anonymous": false, "inputs": [ { "indexed": true, - "internalType": "uint256", - "name": "epochNumber", - "type": "uint256" + "internalType": "address", + "name": "worker", + "type": "address" }, { - "indexed": false, + "indexed": true, "internalType": "address", - "name": "claimer", + "name": "user", + "type": "address" + } + ], + "name": "Retired", + "type": "event" + }, + { + "inputs": [], + "name": "acceptJob", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", "type": "address" }, { - "indexed": false, - "internalType": "bytes32", - "name": "epochHash", - "type": "bytes32" + "internalType": "address", + "name": "_dappAddress", + "type": "address" + } + ], + "name": "authorize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" } ], - "name": "Claim", - "type": "event" + "name": "cancelHire", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "epochNumber", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" }, { - "indexed": false, - "internalType": "bytes32", - "name": "epochHash", - "type": "bytes32" + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "name": "FinalizeEpoch", - "type": "event" + "name": "deauthorize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "enum Phase", - "name": "newPhase", - "type": "uint8" + "internalType": "address", + "name": "_workerAddress", + "type": "address" } ], - "name": "PhaseChange", - "type": "event" + "name": "getOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, "internalType": "address", - "name": "winner", + "name": "_workerAddress", "type": "address" - }, + } + ], + "name": "getUser", + "outputs": [ { - "indexed": false, "internalType": "address", - "name": "loser", + "name": "", "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "winningClaim", - "type": "bytes32" } ], - "name": "ResolveDispute", - "type": "event" + "stateMutability": "view", + "type": "function" }, { "inputs": [ { - "internalType": "bytes32", - "name": "_epochHash", - "type": "bytes32" + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" } ], - "name": "claim", + "name": "hire", "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" }, { - "inputs": [], - "name": "finalizeEpoch", + "inputs": [ + { + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" + } + ], + "name": "hireAndAuthorize", "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" }, { - "inputs": [], - "name": "getChallengePeriod", - "outputs": [ + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getCurrentEpoch", + "name": "isAuthorized", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getCurrentPhase", + "inputs": [ + { + "internalType": "address", + "name": "workerAddress", + "type": "address" + } + ], + "name": "isAvailable", "outputs": [ { - "internalType": "enum Phase", + "internalType": "bool", "name": "", - "type": "uint8" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getInputAccumulationStart", + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "isOwned", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getInputDuration", + "inputs": [ + { + "internalType": "address", + "name": "workerAddress", + "type": "address" + } + ], + "name": "isPending", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getSealingEpochTimestamp", + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "isRetired", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", @@ -3159,132 +3111,190 @@ }, { "inputs": [], - "name": "getTemplateHash", - "outputs": [ + "name": "rejectJob", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" } ], - "stateMutability": "view", + "name": "retire", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" } ] }, - "ValidatorManagerFacet": { - "address": "0x4036187D2d3e1753D03644db76bF3453A1f1DeA7", + "WorkerManagerImpl": { + "address": "0xdeCac9ff6b588642887414e85dfdDE740A797F56", "abi": [ { "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "enum Result", - "name": "result", - "type": "uint8" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "indexed": false, - "internalType": "bytes32[2]", - "name": "claims", - "type": "bytes32[2]" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "JobAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "indexed": false, - "internalType": "address payable[2]", - "name": "validators", - "type": "address[2]" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "JobOffer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "name": "ClaimReceived", + "name": "JobRejected", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "enum Result", - "name": "result", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes32[2]", - "name": "claims", - "type": "bytes32[2]" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "indexed": false, - "internalType": "address payable[2]", - "name": "validators", - "type": "address[2]" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "name": "DisputeEnded", + "name": "Retired", "type": "event" }, { - "anonymous": false, + "inputs": [], + "name": "acceptJob", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { "inputs": [ { - "indexed": false, - "internalType": "bytes32", - "name": "claim", - "type": "bytes32" + "internalType": "address", + "name": "_workerAddress", + "type": "address" } ], - "name": "NewEpoch", - "type": "event" + "name": "cancelHire", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [], - "name": "getAgreementMask", + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "getOwner", "outputs": [ { - "internalType": "uint256", + "internalType": "address", "name": "", - "type": "uint256" + "type": "address" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getConsensusGoalMask", + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "getUser", "outputs": [ { - "internalType": "uint256", + "internalType": "address", "name": "", - "type": "uint256" + "type": "address" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getCurrentClaim", - "outputs": [ + "inputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" } ], - "stateMutability": "view", + "name": "hire", + "outputs": [], + "stateMutability": "payable", "type": "function" }, { - "inputs": [], - "name": "getMaxNumValidators", + "inputs": [ + { + "internalType": "address", + "name": "workerAddress", + "type": "address" + } + ], + "name": "isAvailable", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", @@ -3293,17 +3303,17 @@ { "inputs": [ { - "internalType": "address payable", - "name": "_sender", + "internalType": "address", + "name": "_workerAddress", "type": "address" } ], - "name": "getNumberOfClaimsByAddress", + "name": "isOwned", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", @@ -3312,17 +3322,17 @@ { "inputs": [ { - "internalType": "uint256", - "name": "_index", - "type": "uint256" + "internalType": "address", + "name": "workerAddress", + "type": "address" } ], - "name": "getNumberOfClaimsByIndex", + "name": "isPending", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", @@ -3332,498 +3342,488 @@ "inputs": [ { "internalType": "address", - "name": "_sender", + "name": "_workerAddress", "type": "address" } ], - "name": "getValidatorIndex", + "name": "isRetired", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" + }, + { + "inputs": [], + "name": "rejectJob", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "retire", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } ] }, - "DiamondInit": { - "address": "0xD37315Dfe5531D05e63CB1681B6ec7B281C084c3", + "CartesiToken": { + "address": "0x0905a95fa1ce6a11bf399c8958fd782bbece8a4d", "abi": [ { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "feePerClaim", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "feeManagerBank", - "type": "address" - }, + "constant": true, + "inputs": [], + "name": "name", + "outputs": [ { - "indexed": false, - "internalType": "address", - "name": "feeManagerOwner", - "type": "address" + "name": "", + "type": "string" } ], - "name": "FeeManagerInitialized", - "type": "event" + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "inputDuration", - "type": "uint256" + "name": "spender", + "type": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "challengePeriod", + "name": "amount", "type": "uint256" } ], - "name": "RollupsInitialized", - "type": "event" - }, - { - "inputs": [ + "name": "approve", + "outputs": [ { - "components": [ - { - "internalType": "bytes32", - "name": "templateHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "inputDuration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "challengePeriod", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputLog2Size", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feePerClaim", - "type": "uint256" - }, - { - "internalType": "address", - "name": "feeManagerBank", - "type": "address" - }, - { - "internalType": "address", - "name": "feeManagerOwner", - "type": "address" - }, - { - "internalType": "address payable[]", - "name": "validators", - "type": "address[]" - } - ], - "internalType": "struct DiamondConfig", - "name": "_dConfig", - "type": "tuple" + "name": "", + "type": "bool" } ], - "name": "init", - "outputs": [], + "payable": false, "stateMutability": "nonpayable", "type": "function" - } - ] - }, - "Bank": { - "address": "0x81766c96789Bf68426abd3857596a46dA46a359E", - "abi": [ + }, { - "inputs": [ + "constant": true, + "inputs": [], + "name": "totalSupply", + "outputs": [ { - "internalType": "address", - "name": "_token", - "type": "address" + "name": "", + "type": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "from", + "name": "sender", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "to", + "name": "recipient", "type": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "value", + "name": "amount", "type": "uint256" } ], - "name": "Deposit", - "type": "event" + "name": "transferFrom", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ + "constant": true, + "inputs": [], + "name": "DECIMALS", + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, + "name": "", + "type": "uint8" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "INITIAL_SUPPLY", + "outputs": [ { - "indexed": false, - "internalType": "address", - "name": "to", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "decimals", + "outputs": [ + { + "name": "", + "type": "uint8" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "spender", "type": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "value", + "name": "addedValue", "type": "uint256" } ], - "name": "Transfer", - "type": "event" + "name": "increaseAllowance", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { + "constant": false, "inputs": [ { - "internalType": "address", - "name": "_owner", + "name": "account", "type": "address" + }, + { + "name": "amount", + "type": "uint256" } ], - "name": "balanceOf", + "name": "mint", "outputs": [ { - "internalType": "uint256", "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "_extraLockTime", "type": "uint256" } ], - "stateMutability": "view", + "name": "extendMintLockTime", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", "type": "function" }, { + "constant": true, "inputs": [ { - "internalType": "address", - "name": "_to", + "name": "account", "type": "address" - }, + } + ], + "name": "balanceOf", + "outputs": [ { - "internalType": "uint256", - "name": "_value", + "name": "", "type": "uint256" } ], - "name": "depositTokens", - "outputs": [], - "stateMutability": "nonpayable", + "payable": false, + "stateMutability": "view", "type": "function" }, { + "constant": true, "inputs": [], - "name": "getToken", + "name": "symbol", "outputs": [ { - "internalType": "contract IERC20", "name": "", - "type": "address" + "type": "string" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { + "constant": false, "inputs": [ { - "internalType": "address", - "name": "_to", + "name": "account", "type": "address" - }, - { - "internalType": "uint256", - "name": "_value", - "type": "uint256" } ], - "name": "transferTokens", + "name": "addMinter", "outputs": [], + "payable": false, "stateMutability": "nonpayable", "type": "function" - } - ] - }, - "CartesiDAppFactory": { - "address": "0x6c54AFBaB72Bb8e5439b7268f4dbfba35E4b0A10", - "abi": [ + }, + { + "constant": false, + "inputs": [], + "name": "renounceMinter", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "NAME", + "outputs": [ + { + "name": "", + "type": "string" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { + "constant": false, "inputs": [ { - "components": [ - { - "internalType": "contract IDiamondCut", - "name": "diamondCutFacet", - "type": "address" - }, - { - "internalType": "contract DiamondInit", - "name": "diamondInit", - "type": "address" - }, - { - "internalType": "contract IBank", - "name": "feeManagerBank", - "type": "address" - }, - { - "components": [ - { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "enum IDiamondCut.FacetCutAction", - "name": "action", - "type": "uint8" - }, - { - "internalType": "bytes4[]", - "name": "functionSelectors", - "type": "bytes4[]" - } - ], - "internalType": "struct IDiamondCut.FacetCut[]", - "name": "diamondCut", - "type": "tuple[]" - } - ], - "internalType": "struct CartesiDAppFactory.FactoryConfig", - "name": "_fConfig", - "type": "tuple" + "name": "spender", + "type": "address" + }, + { + "name": "subtractedValue", + "type": "uint256" + } + ], + "name": "decreaseAllowance", + "outputs": [ + { + "name": "", + "type": "bool" } ], + "payable": false, "stateMutability": "nonpayable", - "type": "constructor" + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, - "internalType": "contract CartesiDApp", - "name": "application", + "name": "recipient", "type": "address" }, { - "components": [ - { - "internalType": "address", - "name": "diamondOwner", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "inputDuration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "challengePeriod", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputLog2Size", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feePerClaim", - "type": "uint256" - }, - { - "internalType": "address", - "name": "feeManagerOwner", - "type": "address" - }, - { - "internalType": "address payable[]", - "name": "validators", - "type": "address[]" - } - ], - "indexed": false, - "internalType": "struct ICartesiDAppFactory.AppConfig", - "name": "config", - "type": "tuple" + "name": "amount", + "type": "uint256" } ], - "name": "ApplicationCreated", - "type": "event" + "name": "transfer", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { + "constant": true, "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "account", + "type": "address" } ], - "name": "diamondCut", + "name": "isMinter", "outputs": [ { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "enum IDiamondCut.FacetCutAction", - "name": "action", - "type": "uint8" + "name": "", + "type": "bool" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "diamondCutFacet", + "constant": true, + "inputs": [ + { + "name": "owner", + "type": "address" + }, + { + "name": "spender", + "type": "address" + } + ], + "name": "allowance", "outputs": [ { - "internalType": "contract IDiamondCut", "name": "", - "type": "address" + "type": "uint256" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { + "constant": true, "inputs": [], - "name": "diamondInit", + "name": "SYMBOL", "outputs": [ { - "internalType": "contract DiamondInit", "name": "", - "type": "address" + "type": "string" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [], - "name": "feeManagerBank", - "outputs": [ + "payable": false, + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "contract IBank", - "name": "", + "indexed": false, + "name": "extendedBy", + "type": "uint256" + }, + { + "indexed": false, + "name": "deadline", + "type": "uint256" + } + ], + "name": "LocktimeExteded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "account", "type": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "MinterAdded", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "components": [ - { - "internalType": "address", - "name": "diamondOwner", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "inputDuration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "challengePeriod", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputLog2Size", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feePerClaim", - "type": "uint256" - }, - { - "internalType": "address", - "name": "feeManagerOwner", - "type": "address" - }, - { - "internalType": "address payable[]", - "name": "validators", - "type": "address[]" - } - ], - "internalType": "struct ICartesiDAppFactory.AppConfig", - "name": "_appConfig", - "type": "tuple" + "indexed": true, + "name": "account", + "type": "address" } ], - "name": "newApplication", - "outputs": [ + "name": "MinterRemoved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "contract CartesiDApp", - "name": "", + "indexed": true, + "name": "from", + "type": "address" + }, + { + "indexed": true, + "name": "to", "type": "address" + }, + { + "indexed": false, + "name": "value", + "type": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" } ] } diff --git a/onchain/rollups/export/abi/optimism_goerli.json b/onchain/rollups/export/abi/optimism_goerli.json index 78f74515..1b8a6fef 100644 --- a/onchain/rollups/export/abi/optimism_goerli.json +++ b/onchain/rollups/export/abi/optimism_goerli.json @@ -2,953 +2,1024 @@ "name": "optimism_goerli", "chainId": "420", "contracts": { - "Bitmask": { - "address": "0xdB96468910d81BA6085eb9FE258f0DEF3cA8aA9A", - "abi": [] - }, - "BitsManipulation": { - "address": "0x4F046BE54AA9f542887d504e8EA8551286B7ba31", + "Bank": { + "address": "0xCe9e4841C9d89c126B2B0CB4BE124DDEd3868C88", "abi": [ { "inputs": [ { - "internalType": "int32", - "name": "number", - "type": "int32" - }, - { - "internalType": "uint32", - "name": "wordSize", - "type": "uint32" - } - ], - "name": "int32SignExtension", - "outputs": [ - { - "internalType": "int32", - "name": "", - "type": "int32" + "internalType": "address", + "name": "_token", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" + "stateMutability": "nonpayable", + "type": "constructor" }, { + "anonymous": false, "inputs": [ { - "internalType": "uint32", - "name": "num", - "type": "uint32" - } - ], - "name": "uint32SwapEndian", - "outputs": [ + "indexed": false, + "internalType": "address", + "name": "from", + "type": "address" + }, { - "internalType": "uint32", - "name": "", - "type": "uint32" + "indexed": true, + "internalType": "address", + "name": "to", + "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" } ], - "stateMutability": "pure", - "type": "function" + "name": "Deposit", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "uint64", - "name": "number", - "type": "uint64" + "indexed": true, + "internalType": "address", + "name": "from", + "type": "address" }, { - "internalType": "uint64", - "name": "wordSize", - "type": "uint64" - } - ], - "name": "uint64SignExtension", - "outputs": [ + "indexed": false, + "internalType": "address", + "name": "to", + "type": "address" + }, { - "internalType": "uint64", - "name": "", - "type": "uint64" + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" } ], - "stateMutability": "pure", - "type": "function" + "name": "Transfer", + "type": "event" }, { "inputs": [ { - "internalType": "uint64", - "name": "num", - "type": "uint64" + "internalType": "address", + "name": "_owner", + "type": "address" } ], - "name": "uint64SwapEndian", + "name": "balanceOf", "outputs": [ { - "internalType": "uint64", + "internalType": "uint256", "name": "", - "type": "uint64" + "type": "uint256" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" - } - ] - }, - "BitsManipulationLibrary": { - "address": "0x302311FF8A135c0FC8703Cb4769EAa1604A4A515", - "abi": [ + }, { "inputs": [ { - "internalType": "int32", - "name": "number", - "type": "int32" + "internalType": "address", + "name": "_to", + "type": "address" }, { - "internalType": "uint32", - "name": "wordSize", - "type": "uint32" - } - ], - "name": "int32SignExtension", - "outputs": [ - { - "internalType": "int32", - "name": "", - "type": "int32" + "internalType": "uint256", + "name": "_value", + "type": "uint256" } ], - "stateMutability": "pure", + "name": "depositTokens", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "uint32", - "name": "num", - "type": "uint32" - } - ], - "name": "uint32SwapEndian", + "inputs": [], + "name": "getToken", "outputs": [ { - "internalType": "uint32", + "internalType": "contract IERC20", "name": "", - "type": "uint32" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "uint64", - "name": "number", - "type": "uint64" + "internalType": "address", + "name": "_to", + "type": "address" }, { - "internalType": "uint64", - "name": "wordSize", - "type": "uint64" - } - ], - "name": "uint64SignExtension", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "num", - "type": "uint64" - } - ], - "name": "uint64SwapEndian", - "outputs": [ - { - "internalType": "uint64", - "name": "", - "type": "uint64" + "internalType": "uint256", + "name": "_value", + "type": "uint256" } ], - "stateMutability": "pure", + "name": "transferTokens", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" } ] }, - "CartesiMathV2": { - "address": "0x63065568DceFf08e02f99534cabaBaC1B301766b", + "CartesiDAppFactory": { + "address": "0xB1c76f573FC27D71b4E9f2BD9353D8a2D7ec4255", "abi": [ { "inputs": [ { - "internalType": "uint256", - "name": "_num", - "type": "uint256" + "components": [ + { + "internalType": "contract IDiamondCut", + "name": "diamondCutFacet", + "type": "address" + }, + { + "internalType": "contract DiamondInit", + "name": "diamondInit", + "type": "address" + }, + { + "internalType": "contract IBank", + "name": "feeManagerBank", + "type": "address" + }, + { + "components": [ + { + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "enum IDiamondCut.FacetCutAction", + "name": "action", + "type": "uint8" + }, + { + "internalType": "bytes4[]", + "name": "functionSelectors", + "type": "bytes4[]" + } + ], + "internalType": "struct IDiamondCut.FacetCut[]", + "name": "diamondCut", + "type": "tuple[]" + } + ], + "internalType": "struct CartesiDAppFactory.FactoryConfig", + "name": "_fConfig", + "type": "tuple" } ], - "name": "clz", - "outputs": [ + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "indexed": true, + "internalType": "contract CartesiDApp", + "name": "application", + "type": "address" + }, + { + "components": [ + { + "internalType": "address", + "name": "diamondOwner", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "templateHash", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "inputDuration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "challengePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputLog2Size", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feePerClaim", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeManagerOwner", + "type": "address" + }, + { + "internalType": "address payable[]", + "name": "validators", + "type": "address[]" + } + ], + "indexed": false, + "internalType": "struct ICartesiDAppFactory.AppConfig", + "name": "config", + "type": "tuple" } ], - "stateMutability": "pure", - "type": "function" + "name": "ApplicationCreated", + "type": "event" }, { "inputs": [ { "internalType": "uint256", - "name": "_num", + "name": "", "type": "uint256" } ], - "name": "ctz", + "name": "diamondCut", "outputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "enum IDiamondCut.FacetCutAction", + "name": "action", + "type": "uint8" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_num", - "type": "uint256" - } - ], - "name": "getLog2Floor", + "inputs": [], + "name": "diamondCutFacet", "outputs": [ { - "internalType": "uint8", + "internalType": "contract IDiamondCut", "name": "", - "type": "uint8" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_num", - "type": "uint256" - } - ], - "name": "getLog2TableTimes1M", + "inputs": [], + "name": "diamondInit", "outputs": [ { - "internalType": "uint256", + "internalType": "contract DiamondInit", "name": "", - "type": "uint256" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_num", - "type": "uint256" - } - ], - "name": "isPowerOf2", + "inputs": [], + "name": "feeManagerBank", "outputs": [ { - "internalType": "bool", + "internalType": "contract IBank", "name": "", - "type": "bool" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "uint256", - "name": "_num", - "type": "uint256" + "components": [ + { + "internalType": "address", + "name": "diamondOwner", + "type": "address" + }, + { + "internalType": "bytes32", + "name": "templateHash", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "inputDuration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "challengePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputLog2Size", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feePerClaim", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeManagerOwner", + "type": "address" + }, + { + "internalType": "address payable[]", + "name": "validators", + "type": "address[]" + } + ], + "internalType": "struct ICartesiDAppFactory.AppConfig", + "name": "_appConfig", + "type": "tuple" } ], - "name": "log2ApproxTimes1M", + "name": "newApplication", "outputs": [ { - "internalType": "uint256", + "internalType": "contract CartesiDApp", "name": "", - "type": "uint256" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "nonpayable", "type": "function" } ] }, - "Merkle": { - "address": "0x7CD2b2F951BAc762BF7affd73689A3e1198596AB", + "DiamondCutFacet": { + "address": "0x063844eCcAA8ED283c8ef62E287ca5966BDbb039", "abi": [ { + "anonymous": false, "inputs": [ { - "internalType": "bytes32[]", - "name": "hashes", - "type": "bytes32[]" - } - ], - "name": "calculateRootFromPowerOfTwo", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ + "components": [ + { + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "enum IDiamondCut.FacetCutAction", + "name": "action", + "type": "uint8" + }, + { + "internalType": "bytes4[]", + "name": "functionSelectors", + "type": "bytes4[]" + } + ], + "indexed": false, + "internalType": "struct IDiamondCut.FacetCut[]", + "name": "diamondCut", + "type": "tuple[]" + }, { - "internalType": "uint256", - "name": "number", - "type": "uint256" - } - ], - "name": "getLog2Floor", - "outputs": [ + "indexed": false, + "internalType": "address", + "name": "init", + "type": "address" + }, { - "internalType": "uint8", - "name": "", - "type": "uint8" + "indexed": false, + "internalType": "bytes", + "name": "callData", + "type": "bytes" } ], - "stateMutability": "pure", - "type": "function" + "name": "DiamondCut", + "type": "event" }, { "inputs": [ { - "internalType": "uint8", - "name": "_log2Size", - "type": "uint8" - } - ], - "name": "getPristineHash", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" - } - ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "uint64", - "name": "_position", - "type": "uint64" + "components": [ + { + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "enum IDiamondCut.FacetCutAction", + "name": "action", + "type": "uint8" + }, + { + "internalType": "bytes4[]", + "name": "functionSelectors", + "type": "bytes4[]" + } + ], + "internalType": "struct IDiamondCut.FacetCut[]", + "name": "_diamondCut", + "type": "tuple[]" }, { - "internalType": "bytes8", - "name": "_value", - "type": "bytes8" + "internalType": "address", + "name": "_init", + "type": "address" }, { - "internalType": "bytes32[]", - "name": "proof", - "type": "bytes32[]" - } - ], - "name": "getRoot", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "bytes", + "name": "_calldata", + "type": "bytes" } ], - "stateMutability": "pure", + "name": "diamondCut", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "DiamondInit": { + "address": "0xD37315Dfe5531D05e63CB1681B6ec7B281C084c3", + "abi": [ { + "anonymous": false, "inputs": [ { - "internalType": "uint64", - "name": "_position", - "type": "uint64" - }, - { - "internalType": "uint8", - "name": "_logOfSize", - "type": "uint8" + "indexed": false, + "internalType": "uint256", + "name": "feePerClaim", + "type": "uint256" }, { - "internalType": "bytes32", - "name": "_drive", - "type": "bytes32" + "indexed": false, + "internalType": "address", + "name": "feeManagerBank", + "type": "address" }, { - "internalType": "bytes32[]", - "name": "siblings", - "type": "bytes32[]" - } - ], - "name": "getRootWithDrive", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "indexed": false, + "internalType": "address", + "name": "feeManagerOwner", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" + "name": "FeeManagerInitialized", + "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": false, "internalType": "uint256", - "name": "number", + "name": "inputDuration", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "challengePeriod", "type": "uint256" } ], - "name": "isPowerOf2", - "outputs": [ + "name": "RollupsInitialized", + "type": "event" + }, + { + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "components": [ + { + "internalType": "bytes32", + "name": "templateHash", + "type": "bytes32" + }, + { + "internalType": "uint256", + "name": "inputDuration", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "challengePeriod", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputLog2Size", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "feePerClaim", + "type": "uint256" + }, + { + "internalType": "address", + "name": "feeManagerBank", + "type": "address" + }, + { + "internalType": "address", + "name": "feeManagerOwner", + "type": "address" + }, + { + "internalType": "address payable[]", + "name": "validators", + "type": "address[]" + } + ], + "internalType": "struct DiamondConfig", + "name": "_dConfig", + "type": "tuple" } ], - "stateMutability": "pure", + "name": "init", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" } ] }, - "MerkleV2": { - "address": "0x5eacED599B1cDfc5D7b119Fc52cA1B13396861f9", + "DiamondLoupeFacet": { + "address": "0x54B9605eb908f771Ba652d6350B2e55Cfda33Bf6", "abi": [ { "inputs": [ { - "internalType": "bytes32[]", - "name": "hashes", - "type": "bytes32[]" + "internalType": "bytes4", + "name": "_functionSelector", + "type": "bytes4" } ], - "name": "calculateRootFromPowerOfTwo", + "name": "facetAddress", "outputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "address", + "name": "facetAddress_", + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "uint256", - "name": "_index", - "type": "uint256" - } - ], - "name": "getEmptyTreeHashAtIndex", + "inputs": [], + "name": "facetAddresses", "outputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "address[]", + "name": "facetAddresses_", + "type": "address[]" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { "inputs": [ { - "internalType": "bytes", - "name": "_data", - "type": "bytes" - }, - { - "internalType": "uint256", - "name": "_wordIndex", - "type": "uint256" + "internalType": "address", + "name": "_facet", + "type": "address" } ], - "name": "getHashOfWordAtIndex", + "name": "facetFunctionSelectors", "outputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "bytes4[]", + "name": "facetFunctionSelectors_", + "type": "bytes4[]" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "bytes", - "name": "_data", - "type": "bytes" - }, + "inputs": [], + "name": "facets", + "outputs": [ { - "internalType": "uint256", - "name": "_log2Size", - "type": "uint256" + "components": [ + { + "internalType": "address", + "name": "facetAddress", + "type": "address" + }, + { + "internalType": "bytes4[]", + "name": "functionSelectors", + "type": "bytes4[]" + } + ], + "internalType": "struct IDiamondLoupe.Facet[]", + "name": "facets_", + "type": "tuple[]" } ], - "name": "getMerkleRootFromBytes", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "bytes4", + "name": "_interfaceId", + "type": "bytes4" + } + ], + "name": "supportsInterface", "outputs": [ { - "internalType": "bytes32", + "internalType": "bool", "name": "", - "type": "bytes32" + "type": "bool" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" - }, + } + ] + }, + "ERC20PortalFacet": { + "address": "0x43FA3cf46367a12C13D42175611A9d3b1A43440E", + "abi": [ { + "anonymous": false, "inputs": [ { - "internalType": "uint256", - "name": "_position", - "type": "uint256" + "indexed": false, + "internalType": "address", + "name": "ERC20", + "type": "address" }, { - "internalType": "uint256", - "name": "_logSizeOfReplacement", - "type": "uint256" + "indexed": false, + "internalType": "address", + "name": "sender", + "type": "address" }, { + "indexed": false, "internalType": "uint256", - "name": "_logSizeOfFullDrive", + "name": "amount", "type": "uint256" }, { - "internalType": "bytes32", - "name": "_replacement", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "siblings", - "type": "bytes32[]" - } - ], - "name": "getRootAfterReplacementInDrive", - "outputs": [ - { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "stateMutability": "pure", - "type": "function" - } - ] - }, - "UnrolledCordic": { - "address": "0x15F864DF20E87D7c2fb8004d2cFa53A5BD570E2a", - "abi": [ + "name": "ERC20Deposited", + "type": "event" + }, { "inputs": [ + { + "internalType": "address", + "name": "_ERC20", + "type": "address" + }, { "internalType": "uint256", - "name": "val", + "name": "_amount", "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" } ], - "name": "log2Times1e18", + "name": "erc20Deposit", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes32", "name": "", - "type": "uint256" + "type": "bytes32" } ], - "stateMutability": "pure", + "stateMutability": "nonpayable", "type": "function" } ] }, - "WorkerAuthManagerImpl": { - "address": "0x50bEFaEfD3AAaFac11Fd936A8dfEB1050eC5Cf00", + "ERC721PortalFacet": { + "address": "0x7388C1B5de7954c4B1d12B974C5e9669a84D30Ed", "abi": [ - { - "inputs": [ - { - "internalType": "address", - "name": "_workerManager", - "type": "address" - } - ], - "stateMutability": "nonpayable", - "type": "constructor" - }, { "anonymous": false, "inputs": [ { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "user", + "name": "ERC721", "type": "address" }, { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "worker", + "name": "operator", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "dapp", - "type": "address" - } - ], - "name": "Authorization", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "user", + "name": "sender", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" }, { - "indexed": true, - "internalType": "address", - "name": "dapp", - "type": "address" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "name": "Deauthorization", + "name": "ERC721Received", "type": "event" }, { + "anonymous": false, "inputs": [ { + "indexed": false, "internalType": "address", - "name": "_workerAddress", + "name": "ERC721", "type": "address" }, { - "internalType": "address", - "name": "_dappAddress", - "type": "address" - } - ], - "name": "authorize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", + "indexed": false, + "internalType": "address payable", + "name": "receiver", "type": "address" }, { - "internalType": "address", - "name": "_dappAddress", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "tokenId", + "type": "uint256" } ], - "name": "deauthorize", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" + "name": "ERC721Withdrawn", + "type": "event" }, { "inputs": [ { - "internalType": "address", - "name": "_workerAddress", - "type": "address" + "internalType": "bytes", + "name": "_data", + "type": "bytes" } ], - "name": "getOwner", + "name": "erc721Withdrawal", "outputs": [ { - "internalType": "address", + "internalType": "bool", "name": "", - "type": "address" + "type": "bool" } ], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "_workerAddress", + "name": "_operator", "type": "address" }, { "internalType": "address", - "name": "_dappAddress", + "name": "_from", "type": "address" + }, + { + "internalType": "uint256", + "name": "_tokenId", + "type": "uint256" + }, + { + "internalType": "bytes", + "name": "_data", + "type": "bytes" } ], - "name": "isAuthorized", + "name": "onERC721Received", "outputs": [ { - "internalType": "bool", + "internalType": "bytes4", "name": "", - "type": "bool" + "type": "bytes4" } ], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" } ] }, - "WorkerManagerAuthManagerImpl": { - "address": "0x89f1f1bc37Ef872ff0073bee7eE6d6B0D94Fd166", + "EtherPortalFacet": { + "address": "0x081bD5316a1B9b71fc82e80d181337370C1E585C", "abi": [ { "anonymous": false, "inputs": [ { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "user", + "name": "sender", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" }, { - "indexed": true, - "internalType": "address", - "name": "dapp", - "type": "address" + "indexed": false, + "internalType": "bytes", + "name": "data", + "type": "bytes" } ], - "name": "Authorization", + "name": "EtherDeposited", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", + "indexed": false, + "internalType": "address payable", + "name": "receiver", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "dapp", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "amount", + "type": "uint256" } ], - "name": "Deauthorization", + "name": "EtherWithdrawn", "type": "event" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "etherDeposit", + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } ], - "name": "JobAccepted", - "type": "event" + "stateMutability": "payable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, + "internalType": "bytes", + "name": "_data", + "type": "bytes" + } + ], + "name": "etherWithdrawal", + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "JobOffer", - "type": "event" - }, + "stateMutability": "nonpayable", + "type": "function" + } + ] + }, + "FeeManagerFacet": { + "address": "0xf2e009Bd619Eb8435Ec9e98cF629961133f58959", + "abi": [ { "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "value", + "type": "uint256" } ], - "name": "JobRejected", + "name": "FeePerClaimReset", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": true, + "indexed": false, "internalType": "address", - "name": "worker", + "name": "validator", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "claims", + "type": "uint256" } ], - "name": "Retired", + "name": "FeeRedeemed", "type": "event" }, { "inputs": [], - "name": "acceptJob", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - }, + "name": "getFeeManagerBank", + "outputs": [ { - "internalType": "address", - "name": "_dappAddress", + "internalType": "contract IBank", + "name": "", "type": "address" } ], - "name": "authorize", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "_workerAddress", + "name": "_validator", "type": "address" } ], - "name": "cancelHire", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - }, + "name": "getNumClaimsRedeemed", + "outputs": [ { - "internalType": "address", - "name": "_dappAddress", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "deauthorize", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", - "name": "_workerAddress", + "name": "_validator", "type": "address" } ], - "name": "getOwner", + "name": "numClaimsRedeemable", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], "stateMutability": "view", @@ -958,90 +1029,97 @@ "inputs": [ { "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "getUser", - "outputs": [ - { - "internalType": "address", - "name": "", + "name": "_validator", "type": "address" } ], - "stateMutability": "view", + "name": "redeemFee", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" + "internalType": "uint256", + "name": "_value", + "type": "uint256" } ], - "name": "hire", + "name": "resetFeePerClaim", "outputs": [], - "stateMutability": "payable", + "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "InputFacet": { + "address": "0xAeE0f38EC17BbA23fAf79D951D319f2b331eB01b", + "abi": [ { + "anonymous": false, "inputs": [ { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" + "indexed": true, + "internalType": "uint256", + "name": "epochNumber", + "type": "uint256" + }, + { + "indexed": true, + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" }, { + "indexed": false, "internalType": "address", - "name": "_dappAddress", + "name": "sender", "type": "address" + }, + { + "indexed": false, + "internalType": "uint256", + "name": "timestamp", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes", + "name": "input", + "type": "bytes" } ], - "name": "hireAndAuthorize", - "outputs": [], - "stateMutability": "payable", - "type": "function" + "name": "InputAdded", + "type": "event" }, { "inputs": [ { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - }, - { - "internalType": "address", - "name": "_dappAddress", - "type": "address" + "internalType": "bytes", + "name": "_input", + "type": "bytes" } ], - "name": "isAuthorized", + "name": "addInput", "outputs": [ { - "internalType": "bool", + "internalType": "bytes32", "name": "", - "type": "bool" + "type": "bytes32" } ], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "workerAddress", - "type": "address" - } - ], - "name": "isAvailable", + "inputs": [], + "name": "getCurrentInbox", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], "stateMutability": "view", @@ -1050,303 +1128,229 @@ { "inputs": [ { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "isOwned", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address", - "name": "workerAddress", - "type": "address" + "internalType": "uint256", + "name": "_index", + "type": "uint256" } ], - "name": "isPending", + "name": "getInput", "outputs": [ { - "internalType": "bool", + "internalType": "bytes32", "name": "", - "type": "bool" + "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "isRetired", + "inputs": [], + "name": "getNumberOfInputs", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], "stateMutability": "view", "type": "function" - }, - { - "inputs": [], - "name": "rejectJob", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "retire", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" } ] }, - "WorkerManagerImpl": { - "address": "0xdeCac9ff6b588642887414e85dfdDE740A797F56", + "OutputFacet": { + "address": "0x36bc418503815884389B8A77451091e0E4bA3ae9", "abi": [ { "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "indexed": false, + "internalType": "uint256", + "name": "voucherPosition", + "type": "uint256" } ], - "name": "JobAccepted", + "name": "VoucherExecuted", "type": "event" }, { - "anonymous": false, "inputs": [ { - "indexed": true, "internalType": "address", - "name": "worker", + "name": "_destination", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" - } - ], - "name": "JobOffer", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" + "internalType": "bytes", + "name": "_payload", + "type": "bytes" }, { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "components": [ + { + "internalType": "uint256", + "name": "epochIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "outputIndex", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "outputHashesRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "vouchersEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "noticesEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "machineStateHash", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "keccakInHashesSiblings", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "outputHashesInEpochSiblings", + "type": "bytes32[]" + } + ], + "internalType": "struct OutputValidityProof", + "name": "_v", + "type": "tuple" } ], - "name": "JobRejected", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": true, - "internalType": "address", - "name": "worker", - "type": "address" - }, + "name": "executeVoucher", + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "user", - "type": "address" + "internalType": "bool", + "name": "", + "type": "bool" } ], - "name": "Retired", - "type": "event" - }, - { - "inputs": [], - "name": "acceptJob", - "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "cancelHire", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "internalType": "uint256", + "name": "_voucher", + "type": "uint256" + }, { - "internalType": "address", - "name": "_workerAddress", - "type": "address" + "internalType": "uint256", + "name": "_input", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_epoch", + "type": "uint256" } ], - "name": "getOwner", + "name": "getBitMaskPosition", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "getUser", + "inputs": [], + "name": "getEpochNoticeLog2Size", "outputs": [ { - "internalType": "address", + "internalType": "uint256", "name": "", - "type": "address" + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [ + "inputs": [], + "name": "getEpochVoucherLog2Size", + "outputs": [ { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "hire", - "outputs": [], - "stateMutability": "payable", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "workerAddress", - "type": "address" - } - ], - "name": "isAvailable", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + "internalType": "uint256", + "name": "_index", + "type": "uint256" + }, { - "internalType": "address", - "name": "_workerAddress", - "type": "address" + "internalType": "uint256", + "name": "_log2Size", + "type": "uint256" } ], - "name": "isOwned", + "name": "getIntraDrivePosition", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "workerAddress", - "type": "address" - } - ], - "name": "isPending", + "inputs": [], + "name": "getNoticeMetadataLog2Size", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [ - { - "internalType": "address", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "isRetired", + "inputs": [], + "name": "getNumberOfFinalizedEpochs", "outputs": [ { - "internalType": "bool", + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], "stateMutability": "view", @@ -1354,850 +1358,929 @@ }, { "inputs": [], - "name": "rejectJob", - "outputs": [], - "stateMutability": "payable", - "type": "function" - }, - { - "inputs": [ - { - "internalType": "address payable", - "name": "_workerAddress", - "type": "address" - } - ], - "name": "retire", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] - }, - "CartesiToken": { - "address": "0x3bB4445D30AC020a84c1b5A8A2C6248ebC9779D0", - "abi": [ - { - "constant": true, - "inputs": [], - "name": "name", + "name": "getVoucherMetadataLog2Size", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "string" + "type": "uint256" } ], - "payable": false, - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "constant": false, "inputs": [ { - "name": "spender", - "type": "address" + "internalType": "bytes", + "name": "_encodedNotice", + "type": "bytes" }, { - "name": "amount", - "type": "uint256" - } - ], - "name": "approve", - "outputs": [ + "internalType": "bytes32", + "name": "_epochHash", + "type": "bytes32" + }, { - "name": "", - "type": "bool" + "components": [ + { + "internalType": "uint256", + "name": "epochIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "outputIndex", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "outputHashesRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "vouchersEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "noticesEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "machineStateHash", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "keccakInHashesSiblings", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "outputHashesInEpochSiblings", + "type": "bytes32[]" + } + ], + "internalType": "struct OutputValidityProof", + "name": "_v", + "type": "tuple" } ], - "payable": false, - "stateMutability": "nonpayable", + "name": "isValidNoticeProof", + "outputs": [], + "stateMutability": "pure", "type": "function" }, { - "constant": true, - "inputs": [], - "name": "totalSupply", - "outputs": [ + "inputs": [ { - "name": "", - "type": "uint256" + "internalType": "bytes", + "name": "_encodedVoucher", + "type": "bytes" + }, + { + "internalType": "bytes32", + "name": "_epochHash", + "type": "bytes32" + }, + { + "components": [ + { + "internalType": "uint256", + "name": "epochIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "outputIndex", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "outputHashesRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "vouchersEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "noticesEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "machineStateHash", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "keccakInHashesSiblings", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "outputHashesInEpochSiblings", + "type": "bytes32[]" + } + ], + "internalType": "struct OutputValidityProof", + "name": "_v", + "type": "tuple" } ], - "payable": false, - "stateMutability": "view", + "name": "isValidVoucherProof", + "outputs": [], + "stateMutability": "pure", "type": "function" }, { - "constant": false, "inputs": [ { - "name": "sender", - "type": "address" - }, - { - "name": "recipient", - "type": "address" + "internalType": "bytes", + "name": "_notice", + "type": "bytes" }, { - "name": "amount", - "type": "uint256" + "components": [ + { + "internalType": "uint256", + "name": "epochIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "inputIndex", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "outputIndex", + "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "outputHashesRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "vouchersEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "noticesEpochRootHash", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "machineStateHash", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "keccakInHashesSiblings", + "type": "bytes32[]" + }, + { + "internalType": "bytes32[]", + "name": "outputHashesInEpochSiblings", + "type": "bytes32[]" + } + ], + "internalType": "struct OutputValidityProof", + "name": "_v", + "type": "tuple" } ], - "name": "transferFrom", + "name": "validateNotice", "outputs": [ { + "internalType": "bool", "name": "", "type": "bool" } ], - "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" - }, + } + ] + }, + "OwnershipFacet": { + "address": "0x418Fa91dA411Ee64495f4af95F7D725fCD7Ea2f3", + "abi": [ { - "constant": true, - "inputs": [], - "name": "DECIMALS", - "outputs": [ + "anonymous": false, + "inputs": [ { - "name": "", - "type": "uint8" + "indexed": true, + "internalType": "address", + "name": "previousOwner", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "newOwner", + "type": "address" } ], - "payable": false, - "stateMutability": "view", - "type": "function" + "name": "OwnershipTransferred", + "type": "event" }, { - "constant": true, "inputs": [], - "name": "INITIAL_SUPPLY", + "name": "owner", "outputs": [ { - "name": "", - "type": "uint256" + "internalType": "address", + "name": "owner_", + "type": "address" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, - "inputs": [], - "name": "decimals", - "outputs": [ + "inputs": [ { - "name": "", - "type": "uint8" + "internalType": "address", + "name": "_newOwner", + "type": "address" } ], - "payable": false, - "stateMutability": "view", + "name": "transferOwnership", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" - }, + } + ] + }, + "RollupsFacet": { + "address": "0xdf3F3aB8357f4c54fBc6574797fAF846a3a7284A", + "abi": [ { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "spender", + "indexed": true, + "internalType": "uint256", + "name": "epochNumber", + "type": "uint256" + }, + { + "indexed": false, + "internalType": "address", + "name": "claimer", "type": "address" }, { - "name": "addedValue", + "indexed": false, + "internalType": "bytes32", + "name": "epochHash", + "type": "bytes32" + } + ], + "name": "Claim", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "uint256", + "name": "epochNumber", "type": "uint256" + }, + { + "indexed": false, + "internalType": "bytes32", + "name": "epochHash", + "type": "bytes32" } ], - "name": "increaseAllowance", - "outputs": [ + "name": "FinalizeEpoch", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "name": "", - "type": "bool" + "indexed": false, + "internalType": "enum Phase", + "name": "newPhase", + "type": "uint8" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "PhaseChange", + "type": "event" }, { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "account", + "indexed": false, + "internalType": "address", + "name": "winner", "type": "address" }, { - "name": "amount", - "type": "uint256" - } - ], - "name": "mint", - "outputs": [ + "indexed": false, + "internalType": "address", + "name": "loser", + "type": "address" + }, { - "name": "", - "type": "bool" + "indexed": false, + "internalType": "bytes32", + "name": "winningClaim", + "type": "bytes32" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "ResolveDispute", + "type": "event" }, { - "constant": false, "inputs": [ { - "name": "_extraLockTime", - "type": "uint256" + "internalType": "bytes32", + "name": "_epochHash", + "type": "bytes32" } ], - "name": "extendMintLockTime", + "name": "claim", "outputs": [], - "payable": false, "stateMutability": "nonpayable", "type": "function" }, { - "constant": true, - "inputs": [ - { - "name": "account", - "type": "address" - } - ], - "name": "balanceOf", + "inputs": [], + "name": "finalizeEpoch", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [], + "name": "getChallengePeriod", "outputs": [ { + "internalType": "uint256", "name": "", "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, "inputs": [], - "name": "symbol", + "name": "getCurrentEpoch", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "string" + "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ + "inputs": [], + "name": "getCurrentPhase", + "outputs": [ { - "name": "account", - "type": "address" + "internalType": "enum Phase", + "name": "", + "type": "uint8" } ], - "name": "addMinter", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" }, { - "constant": false, "inputs": [], - "name": "renounceMinter", - "outputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "getInputAccumulationStart", + "outputs": [ + { + "internalType": "uint256", + "name": "", + "type": "uint256" + } + ], + "stateMutability": "view", + "type": "function" }, { - "constant": true, "inputs": [], - "name": "NAME", + "name": "getInputDuration", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "string" + "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": false, - "inputs": [ - { - "name": "spender", - "type": "address" - }, + "inputs": [], + "name": "getSealingEpochTimestamp", + "outputs": [ { - "name": "subtractedValue", + "internalType": "uint256", + "name": "", "type": "uint256" } ], - "name": "decreaseAllowance", + "stateMutability": "view", + "type": "function" + }, + { + "inputs": [], + "name": "getTemplateHash", "outputs": [ { + "internalType": "bytes32", "name": "", - "type": "bool" + "type": "bytes32" } ], - "payable": false, - "stateMutability": "nonpayable", + "stateMutability": "view", "type": "function" - }, + } + ] + }, + "ValidatorManagerFacet": { + "address": "0x4036187D2d3e1753D03644db76bF3453A1f1DeA7", + "abi": [ { - "constant": false, + "anonymous": false, "inputs": [ { - "name": "recipient", - "type": "address" + "indexed": false, + "internalType": "enum Result", + "name": "result", + "type": "uint8" }, { - "name": "amount", - "type": "uint256" + "indexed": false, + "internalType": "bytes32[2]", + "name": "claims", + "type": "bytes32[2]" + }, + { + "indexed": false, + "internalType": "address payable[2]", + "name": "validators", + "type": "address[2]" } ], - "name": "transfer", - "outputs": [ + "name": "ClaimReceived", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "name": "", - "type": "bool" + "indexed": false, + "internalType": "enum Result", + "name": "result", + "type": "uint8" + }, + { + "indexed": false, + "internalType": "bytes32[2]", + "name": "claims", + "type": "bytes32[2]" + }, + { + "indexed": false, + "internalType": "address payable[2]", + "name": "validators", + "type": "address[2]" } ], - "payable": false, - "stateMutability": "nonpayable", - "type": "function" + "name": "DisputeEnded", + "type": "event" }, { - "constant": true, + "anonymous": false, "inputs": [ { - "name": "account", - "type": "address" + "indexed": false, + "internalType": "bytes32", + "name": "claim", + "type": "bytes32" } ], - "name": "isMinter", + "name": "NewEpoch", + "type": "event" + }, + { + "inputs": [], + "name": "getAgreementMask", "outputs": [ { + "internalType": "uint256", "name": "", - "type": "bool" + "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, - "inputs": [ - { - "name": "owner", - "type": "address" - }, - { - "name": "spender", - "type": "address" - } - ], - "name": "allowance", + "inputs": [], + "name": "getConsensusGoalMask", "outputs": [ { + "internalType": "uint256", "name": "", "type": "uint256" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { - "constant": true, "inputs": [], - "name": "SYMBOL", + "name": "getCurrentClaim", "outputs": [ { + "internalType": "bytes32", "name": "", - "type": "string" + "type": "bytes32" } ], - "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [], - "payable": false, - "stateMutability": "nonpayable", - "type": "constructor" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "name": "extendedBy", - "type": "uint256" - }, + "name": "getMaxNumValidators", + "outputs": [ { - "indexed": false, - "name": "deadline", + "internalType": "uint256", + "name": "", "type": "uint256" } ], - "name": "LocktimeExteded", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "name": "account", + "internalType": "address payable", + "name": "_sender", "type": "address" } ], - "name": "MinterAdded", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "name": "getNumberOfClaimsByAddress", + "outputs": [ { - "indexed": true, - "name": "account", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "name": "MinterRemoved", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "name": "from", - "type": "address" - }, - { - "indexed": true, - "name": "to", - "type": "address" - }, + "internalType": "uint256", + "name": "_index", + "type": "uint256" + } + ], + "name": "getNumberOfClaimsByIndex", + "outputs": [ { - "indexed": false, - "name": "value", + "internalType": "uint256", + "name": "", "type": "uint256" } ], - "name": "Transfer", - "type": "event" + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "name": "owner", - "type": "address" - }, - { - "indexed": true, - "name": "spender", + "internalType": "address", + "name": "_sender", "type": "address" - }, + } + ], + "name": "getValidatorIndex", + "outputs": [ { - "indexed": false, - "name": "value", + "internalType": "uint256", + "name": "", "type": "uint256" } ], - "name": "Approval", - "type": "event" + "stateMutability": "view", + "type": "function" } ] }, - "DiamondCutFacet": { - "address": "0x063844eCcAA8ED283c8ef62E287ca5966BDbb039", + "Bitmask": { + "address": "0xdB96468910d81BA6085eb9FE258f0DEF3cA8aA9A", + "abi": [] + }, + "BitsManipulation": { + "address": "0x4F046BE54AA9f542887d504e8EA8551286B7ba31", "abi": [ { - "anonymous": false, "inputs": [ { - "components": [ - { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "enum IDiamondCut.FacetCutAction", - "name": "action", - "type": "uint8" - }, - { - "internalType": "bytes4[]", - "name": "functionSelectors", - "type": "bytes4[]" - } - ], - "indexed": false, - "internalType": "struct IDiamondCut.FacetCut[]", - "name": "diamondCut", - "type": "tuple[]" + "internalType": "int32", + "name": "number", + "type": "int32" }, { - "indexed": false, - "internalType": "address", - "name": "init", - "type": "address" - }, + "internalType": "uint32", + "name": "wordSize", + "type": "uint32" + } + ], + "name": "int32SignExtension", + "outputs": [ { - "indexed": false, - "internalType": "bytes", - "name": "callData", - "type": "bytes" + "internalType": "int32", + "name": "", + "type": "int32" } ], - "name": "DiamondCut", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { "inputs": [ { - "components": [ - { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "enum IDiamondCut.FacetCutAction", - "name": "action", - "type": "uint8" - }, - { - "internalType": "bytes4[]", - "name": "functionSelectors", - "type": "bytes4[]" - } - ], - "internalType": "struct IDiamondCut.FacetCut[]", - "name": "_diamondCut", - "type": "tuple[]" - }, + "internalType": "uint32", + "name": "num", + "type": "uint32" + } + ], + "name": "uint32SwapEndian", + "outputs": [ { - "internalType": "address", - "name": "_init", - "type": "address" + "internalType": "uint32", + "name": "", + "type": "uint32" + } + ], + "stateMutability": "pure", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "uint64", + "name": "number", + "type": "uint64" }, { - "internalType": "bytes", - "name": "_calldata", - "type": "bytes" + "internalType": "uint64", + "name": "wordSize", + "type": "uint64" } ], - "name": "diamondCut", - "outputs": [], - "stateMutability": "nonpayable", + "name": "uint64SignExtension", + "outputs": [ + { + "internalType": "uint64", + "name": "", + "type": "uint64" + } + ], + "stateMutability": "pure", "type": "function" - } - ] - }, - "DiamondLoupeFacet": { - "address": "0x54B9605eb908f771Ba652d6350B2e55Cfda33Bf6", - "abi": [ + }, { "inputs": [ { - "internalType": "bytes4", - "name": "_functionSelector", - "type": "bytes4" + "internalType": "uint64", + "name": "num", + "type": "uint64" } ], - "name": "facetAddress", + "name": "uint64SwapEndian", "outputs": [ { - "internalType": "address", - "name": "facetAddress_", - "type": "address" + "internalType": "uint64", + "name": "", + "type": "uint64" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" - }, + } + ] + }, + "BitsManipulationLibrary": { + "address": "0x302311FF8A135c0FC8703Cb4769EAa1604A4A515", + "abi": [ { - "inputs": [], - "name": "facetAddresses", + "inputs": [ + { + "internalType": "int32", + "name": "number", + "type": "int32" + }, + { + "internalType": "uint32", + "name": "wordSize", + "type": "uint32" + } + ], + "name": "int32SignExtension", "outputs": [ { - "internalType": "address[]", - "name": "facetAddresses_", - "type": "address[]" + "internalType": "int32", + "name": "", + "type": "int32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_facet", - "type": "address" + "internalType": "uint32", + "name": "num", + "type": "uint32" } ], - "name": "facetFunctionSelectors", + "name": "uint32SwapEndian", "outputs": [ { - "internalType": "bytes4[]", - "name": "facetFunctionSelectors_", - "type": "bytes4[]" + "internalType": "uint32", + "name": "", + "type": "uint32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { - "inputs": [], - "name": "facets", + "inputs": [ + { + "internalType": "uint64", + "name": "number", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "wordSize", + "type": "uint64" + } + ], + "name": "uint64SignExtension", "outputs": [ { - "components": [ - { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "bytes4[]", - "name": "functionSelectors", - "type": "bytes4[]" - } - ], - "internalType": "struct IDiamondLoupe.Facet[]", - "name": "facets_", - "type": "tuple[]" + "internalType": "uint64", + "name": "", + "type": "uint64" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "bytes4", - "name": "_interfaceId", - "type": "bytes4" + "internalType": "uint64", + "name": "num", + "type": "uint64" } ], - "name": "supportsInterface", + "name": "uint64SwapEndian", "outputs": [ { - "internalType": "bool", + "internalType": "uint64", "name": "", - "type": "bool" + "type": "uint64" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" } ] }, - "OwnershipFacet": { - "address": "0x418Fa91dA411Ee64495f4af95F7D725fCD7Ea2f3", + "CartesiMathV2": { + "address": "0x63065568DceFf08e02f99534cabaBaC1B301766b", "abi": [ { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "address", - "name": "previousOwner", - "type": "address" - }, - { - "indexed": true, - "internalType": "address", - "name": "newOwner", - "type": "address" + "internalType": "uint256", + "name": "_num", + "type": "uint256" } ], - "name": "OwnershipTransferred", - "type": "event" - }, - { - "inputs": [], - "name": "owner", + "name": "clz", "outputs": [ { - "internalType": "address", - "name": "owner_", - "type": "address" + "internalType": "uint256", + "name": "", + "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_newOwner", - "type": "address" + "internalType": "uint256", + "name": "_num", + "type": "uint256" } ], - "name": "transferOwnership", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - } - ] - }, - "ERC20PortalFacet": { - "address": "0x43FA3cf46367a12C13D42175611A9d3b1A43440E", - "abi": [ - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "ERC20", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, + "name": "ctz", + "outputs": [ { - "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "", "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" } ], - "name": "ERC20Deposited", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { "inputs": [ - { - "internalType": "address", - "name": "_ERC20", - "type": "address" - }, { "internalType": "uint256", - "name": "_amount", + "name": "_num", "type": "uint256" - }, - { - "internalType": "bytes", - "name": "_data", - "type": "bytes" } ], - "name": "erc20Deposit", + "name": "getLog2Floor", "outputs": [ { - "internalType": "bytes32", + "internalType": "uint8", "name": "", - "type": "bytes32" + "type": "uint8" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" - } - ] - }, - "ERC721PortalFacet": { - "address": "0x7388C1B5de7954c4B1d12B974C5e9669a84D30Ed", - "abi": [ + }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "ERC721", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "operator", - "type": "address" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, "internalType": "uint256", - "name": "tokenId", + "name": "_num", "type": "uint256" - }, - { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" } ], - "name": "ERC721Received", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "address", - "name": "ERC721", - "type": "address" - }, - { - "indexed": false, - "internalType": "address payable", - "name": "receiver", - "type": "address" - }, + "name": "getLog2TableTimes1M", + "outputs": [ { - "indexed": false, "internalType": "uint256", - "name": "tokenId", + "name": "", "type": "uint256" } ], - "name": "ERC721Withdrawn", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { "inputs": [ { - "internalType": "bytes", - "name": "_data", - "type": "bytes" + "internalType": "uint256", + "name": "_num", + "type": "uint256" } ], - "name": "erc721Withdrawal", + "name": "isPowerOf2", "outputs": [ { "internalType": "bool", @@ -2205,101 +2288,80 @@ "type": "bool" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" }, { "inputs": [ - { - "internalType": "address", - "name": "_operator", - "type": "address" - }, - { - "internalType": "address", - "name": "_from", - "type": "address" - }, { "internalType": "uint256", - "name": "_tokenId", + "name": "_num", "type": "uint256" - }, - { - "internalType": "bytes", - "name": "_data", - "type": "bytes" } ], - "name": "onERC721Received", + "name": "log2ApproxTimes1M", "outputs": [ { - "internalType": "bytes4", + "internalType": "uint256", "name": "", - "type": "bytes4" + "type": "uint256" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" } ] }, - "EtherPortalFacet": { - "address": "0x081bD5316a1B9b71fc82e80d181337370C1E585C", + "Merkle": { + "address": "0x7CD2b2F951BAc762BF7affd73689A3e1198596AB", "abi": [ { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" - }, - { - "indexed": false, - "internalType": "uint256", - "name": "amount", - "type": "uint256" - }, + "internalType": "bytes32[]", + "name": "hashes", + "type": "bytes32[]" + } + ], + "name": "calculateRootFromPowerOfTwo", + "outputs": [ { - "indexed": false, - "internalType": "bytes", - "name": "data", - "type": "bytes" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } ], - "name": "EtherDeposited", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "address payable", - "name": "receiver", - "type": "address" - }, - { - "indexed": false, "internalType": "uint256", - "name": "amount", + "name": "number", "type": "uint256" } ], - "name": "EtherWithdrawn", - "type": "event" + "name": "getLog2Floor", + "outputs": [ + { + "internalType": "uint8", + "name": "", + "type": "uint8" + } + ], + "stateMutability": "pure", + "type": "function" }, { "inputs": [ { - "internalType": "bytes", - "name": "_data", - "type": "bytes" + "internalType": "uint8", + "name": "_log2Size", + "type": "uint8" } ], - "name": "etherDeposit", + "name": "getPristineHash", "outputs": [ { "internalType": "bytes32", @@ -2307,193 +2369,172 @@ "type": "bytes32" } ], - "stateMutability": "payable", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "bytes", - "name": "_data", - "type": "bytes" + "internalType": "uint64", + "name": "_position", + "type": "uint64" + }, + { + "internalType": "bytes8", + "name": "_value", + "type": "bytes8" + }, + { + "internalType": "bytes32[]", + "name": "proof", + "type": "bytes32[]" } ], - "name": "etherWithdrawal", + "name": "getRoot", "outputs": [ { - "internalType": "bool", + "internalType": "bytes32", "name": "", - "type": "bool" + "type": "bytes32" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" - } - ] - }, - "FeeManagerFacet": { - "address": "0xf2e009Bd619Eb8435Ec9e98cF629961133f58959", - "abi": [ + }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "value", - "type": "uint256" - } - ], - "name": "FeePerClaimReset", - "type": "event" - }, - { - "anonymous": false, - "inputs": [ + "internalType": "uint64", + "name": "_position", + "type": "uint64" + }, { - "indexed": false, - "internalType": "address", - "name": "validator", - "type": "address" + "internalType": "uint8", + "name": "_logOfSize", + "type": "uint8" }, { - "indexed": false, - "internalType": "uint256", - "name": "claims", - "type": "uint256" + "internalType": "bytes32", + "name": "_drive", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "siblings", + "type": "bytes32[]" } ], - "name": "FeeRedeemed", - "type": "event" - }, - { - "inputs": [], - "name": "getFeeManagerBank", + "name": "getRootWithDrive", "outputs": [ { - "internalType": "contract IBank", + "internalType": "bytes32", "name": "", - "type": "address" + "type": "bytes32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_validator", - "type": "address" + "internalType": "uint256", + "name": "number", + "type": "uint256" } ], - "name": "getNumClaimsRedeemed", + "name": "isPowerOf2", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" - }, + } + ] + }, + "MerkleV2": { + "address": "0x5eacED599B1cDfc5D7b119Fc52cA1B13396861f9", + "abi": [ { "inputs": [ { - "internalType": "address", - "name": "_validator", - "type": "address" + "internalType": "bytes32[]", + "name": "hashes", + "type": "bytes32[]" } ], - "name": "numClaimsRedeemable", + "name": "calculateRootFromPowerOfTwo", "outputs": [ { - "internalType": "uint256", + "internalType": "bytes32", "name": "", - "type": "uint256" + "type": "bytes32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" }, { "inputs": [ { - "internalType": "address", - "name": "_validator", - "type": "address" + "internalType": "uint256", + "name": "_index", + "type": "uint256" } ], - "name": "redeemFee", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [ + "name": "getEmptyTreeHashAtIndex", + "outputs": [ { - "internalType": "uint256", - "name": "_value", - "type": "uint256" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } ], - "name": "resetFeePerClaim", - "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" - } - ] - }, - "InputFacet": { - "address": "0xAeE0f38EC17BbA23fAf79D951D319f2b331eB01b", - "abi": [ + }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "epochNumber", - "type": "uint256" - }, - { - "indexed": true, - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "sender", - "type": "address" + "internalType": "bytes", + "name": "_data", + "type": "bytes" }, { - "indexed": false, "internalType": "uint256", - "name": "timestamp", + "name": "_wordIndex", "type": "uint256" - }, + } + ], + "name": "getHashOfWordAtIndex", + "outputs": [ { - "indexed": false, - "internalType": "bytes", - "name": "input", - "type": "bytes" + "internalType": "bytes32", + "name": "", + "type": "bytes32" } ], - "name": "InputAdded", - "type": "event" + "stateMutability": "pure", + "type": "function" }, { "inputs": [ { "internalType": "bytes", - "name": "_input", + "name": "_data", "type": "bytes" + }, + { + "internalType": "uint256", + "name": "_log2Size", + "type": "uint256" } ], - "name": "addInput", + "name": "getMerkleRootFromBytes", "outputs": [ { "internalType": "bytes32", @@ -2501,31 +2542,38 @@ "type": "bytes32" } ], - "stateMutability": "nonpayable", + "stateMutability": "pure", "type": "function" }, { - "inputs": [], - "name": "getCurrentInbox", - "outputs": [ + "inputs": [ { "internalType": "uint256", - "name": "", + "name": "_position", "type": "uint256" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [ + }, { "internalType": "uint256", - "name": "_index", + "name": "_logSizeOfReplacement", + "type": "uint256" + }, + { + "internalType": "uint256", + "name": "_logSizeOfFullDrive", "type": "uint256" + }, + { + "internalType": "bytes32", + "name": "_replacement", + "type": "bytes32" + }, + { + "internalType": "bytes32[]", + "name": "siblings", + "type": "bytes32[]" } ], - "name": "getInput", + "name": "getRootAfterReplacementInDrive", "outputs": [ { "internalType": "bytes32", @@ -2533,12 +2581,23 @@ "type": "bytes32" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" - }, + } + ] + }, + "UnrolledCordic": { + "address": "0x15F864DF20E87D7c2fb8004d2cFa53A5BD570E2a", + "abi": [ { - "inputs": [], - "name": "getNumberOfInputs", + "inputs": [ + { + "internalType": "uint256", + "name": "val", + "type": "uint256" + } + ], + "name": "log2Times1e18", "outputs": [ { "internalType": "uint256", @@ -2546,612 +2605,505 @@ "type": "uint256" } ], - "stateMutability": "view", + "stateMutability": "pure", "type": "function" } ] }, - "OutputFacet": { - "address": "0x36bc418503815884389B8A77451091e0E4bA3ae9", + "WorkerAuthManagerImpl": { + "address": "0x50bEFaEfD3AAaFac11Fd936A8dfEB1050eC5Cf00", "abi": [ { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "voucherPosition", - "type": "uint256" + "internalType": "address", + "name": "_workerManager", + "type": "address" } ], - "name": "VoucherExecuted", - "type": "event" + "stateMutability": "nonpayable", + "type": "constructor" }, { + "anonymous": false, "inputs": [ { + "indexed": true, "internalType": "address", - "name": "_destination", + "name": "user", "type": "address" }, { - "internalType": "bytes", - "name": "_payload", - "type": "bytes" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "components": [ - { - "internalType": "uint256", - "name": "epochIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "outputIndex", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "outputHashesRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "vouchersEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "noticesEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "machineStateHash", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "keccakInHashesSiblings", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "outputHashesInEpochSiblings", - "type": "bytes32[]" - } - ], - "internalType": "struct OutputValidityProof", - "name": "_v", - "type": "tuple" - } - ], - "name": "executeVoucher", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" + "indexed": true, + "internalType": "address", + "name": "dapp", + "type": "address" } ], - "stateMutability": "nonpayable", - "type": "function" + "name": "Authorization", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "uint256", - "name": "_voucher", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" }, { - "internalType": "uint256", - "name": "_input", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "internalType": "uint256", - "name": "_epoch", - "type": "uint256" - } - ], - "name": "getBitMaskPosition", - "outputs": [ - { - "internalType": "uint256", - "name": "", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "dapp", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" + "name": "Deauthorization", + "type": "event" }, { - "inputs": [], - "name": "getEpochNoticeLog2Size", - "outputs": [ + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "stateMutability": "pure", + "name": "authorize", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { - "inputs": [], - "name": "getEpochVoucherLog2Size", - "outputs": [ + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "stateMutability": "pure", + "name": "deauthorize", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { - "internalType": "uint256", - "name": "_index", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "_log2Size", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" } ], - "name": "getIntraDrivePosition", + "name": "getOwner", "outputs": [ { - "internalType": "uint256", + "internalType": "address", "name": "", - "type": "uint256" + "type": "address" } ], - "stateMutability": "pure", + "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getNoticeMetadataLog2Size", - "outputs": [ + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" - }, - { - "inputs": [], - "name": "getNumberOfFinalizedEpochs", + "name": "isAuthorized", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" - }, + } + ] + }, + "WorkerManagerAuthManagerImpl": { + "address": "0x89f1f1bc37Ef872ff0073bee7eE6d6B0D94Fd166", + "abi": [ { - "inputs": [], - "name": "getVoucherMetadataLog2Size", - "outputs": [ + "anonymous": false, + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "dapp", + "type": "address" } ], - "stateMutability": "pure", - "type": "function" + "name": "Authorization", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "bytes", - "name": "_encodedNotice", - "type": "bytes" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" }, { - "internalType": "bytes32", - "name": "_epochHash", - "type": "bytes32" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "components": [ - { - "internalType": "uint256", - "name": "epochIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "outputIndex", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "outputHashesRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "vouchersEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "noticesEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "machineStateHash", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "keccakInHashesSiblings", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "outputHashesInEpochSiblings", - "type": "bytes32[]" - } - ], - "internalType": "struct OutputValidityProof", - "name": "_v", - "type": "tuple" + "indexed": true, + "internalType": "address", + "name": "dapp", + "type": "address" } ], - "name": "isValidNoticeProof", - "outputs": [], - "stateMutability": "pure", - "type": "function" + "name": "Deauthorization", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "bytes", - "name": "_encodedVoucher", - "type": "bytes" - }, - { - "internalType": "bytes32", - "name": "_epochHash", - "type": "bytes32" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "components": [ - { - "internalType": "uint256", - "name": "epochIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "outputIndex", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "outputHashesRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "vouchersEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "noticesEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "machineStateHash", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "keccakInHashesSiblings", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "outputHashesInEpochSiblings", - "type": "bytes32[]" - } - ], - "internalType": "struct OutputValidityProof", - "name": "_v", - "type": "tuple" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "name": "isValidVoucherProof", - "outputs": [], - "stateMutability": "pure", - "type": "function" + "name": "JobAccepted", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "internalType": "bytes", - "name": "_notice", - "type": "bytes" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "components": [ - { - "internalType": "uint256", - "name": "epochIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputIndex", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "outputIndex", - "type": "uint256" - }, - { - "internalType": "bytes32", - "name": "outputHashesRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "vouchersEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "noticesEpochRootHash", - "type": "bytes32" - }, - { - "internalType": "bytes32", - "name": "machineStateHash", - "type": "bytes32" - }, - { - "internalType": "bytes32[]", - "name": "keccakInHashesSiblings", - "type": "bytes32[]" - }, - { - "internalType": "bytes32[]", - "name": "outputHashesInEpochSiblings", - "type": "bytes32[]" - } - ], - "internalType": "struct OutputValidityProof", - "name": "_v", - "type": "tuple" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "name": "validateNotice", - "outputs": [ + "name": "JobOffer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "bool", - "name": "", - "type": "bool" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "stateMutability": "view", - "type": "function" - } - ] - }, - "RollupsFacet": { - "address": "0xdf3F3aB8357f4c54fBc6574797fAF846a3a7284A", - "abi": [ + "name": "JobRejected", + "type": "event" + }, { "anonymous": false, "inputs": [ { "indexed": true, - "internalType": "uint256", - "name": "epochNumber", - "type": "uint256" + "internalType": "address", + "name": "worker", + "type": "address" }, { - "indexed": false, + "indexed": true, "internalType": "address", - "name": "claimer", + "name": "user", + "type": "address" + } + ], + "name": "Retired", + "type": "event" + }, + { + "inputs": [], + "name": "acceptJob", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", "type": "address" }, { - "indexed": false, - "internalType": "bytes32", - "name": "epochHash", - "type": "bytes32" + "internalType": "address", + "name": "_dappAddress", + "type": "address" + } + ], + "name": "authorize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" } ], - "name": "Claim", - "type": "event" + "name": "cancelHire", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": true, - "internalType": "uint256", - "name": "epochNumber", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" }, { - "indexed": false, - "internalType": "bytes32", - "name": "epochHash", - "type": "bytes32" + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "name": "FinalizeEpoch", - "type": "event" + "name": "deauthorize", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "enum Phase", - "name": "newPhase", - "type": "uint8" + "internalType": "address", + "name": "_workerAddress", + "type": "address" } ], - "name": "PhaseChange", - "type": "event" + "name": "getOwner", + "outputs": [ + { + "internalType": "address", + "name": "", + "type": "address" + } + ], + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, "inputs": [ { - "indexed": false, "internalType": "address", - "name": "winner", + "name": "_workerAddress", "type": "address" - }, + } + ], + "name": "getUser", + "outputs": [ { - "indexed": false, "internalType": "address", - "name": "loser", + "name": "", "type": "address" - }, - { - "indexed": false, - "internalType": "bytes32", - "name": "winningClaim", - "type": "bytes32" } ], - "name": "ResolveDispute", - "type": "event" + "stateMutability": "view", + "type": "function" }, { "inputs": [ { - "internalType": "bytes32", - "name": "_epochHash", - "type": "bytes32" + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" } ], - "name": "claim", + "name": "hire", "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" }, { - "inputs": [], - "name": "finalizeEpoch", + "inputs": [ + { + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" + } + ], + "name": "hireAndAuthorize", "outputs": [], - "stateMutability": "nonpayable", + "stateMutability": "payable", "type": "function" }, { - "inputs": [], - "name": "getChallengePeriod", - "outputs": [ + "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "internalType": "address", + "name": "_workerAddress", + "type": "address" + }, + { + "internalType": "address", + "name": "_dappAddress", + "type": "address" } ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "getCurrentEpoch", + "name": "isAuthorized", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getCurrentPhase", + "inputs": [ + { + "internalType": "address", + "name": "workerAddress", + "type": "address" + } + ], + "name": "isAvailable", "outputs": [ { - "internalType": "enum Phase", + "internalType": "bool", "name": "", - "type": "uint8" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getInputAccumulationStart", + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "isOwned", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getInputDuration", + "inputs": [ + { + "internalType": "address", + "name": "workerAddress", + "type": "address" + } + ], + "name": "isPending", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getSealingEpochTimestamp", + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "isRetired", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", @@ -3159,132 +3111,190 @@ }, { "inputs": [], - "name": "getTemplateHash", - "outputs": [ + "name": "rejectJob", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" } ], - "stateMutability": "view", + "name": "retire", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" } ] }, - "ValidatorManagerFacet": { - "address": "0x4036187D2d3e1753D03644db76bF3453A1f1DeA7", + "WorkerManagerImpl": { + "address": "0xdeCac9ff6b588642887414e85dfdDE740A797F56", "abi": [ { "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "enum Result", - "name": "result", - "type": "uint8" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "indexed": false, - "internalType": "bytes32[2]", - "name": "claims", - "type": "bytes32[2]" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "JobAccepted", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "indexed": false, - "internalType": "address payable[2]", - "name": "validators", - "type": "address[2]" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" + } + ], + "name": "JobOffer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" + }, + { + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "name": "ClaimReceived", + "name": "JobRejected", "type": "event" }, { "anonymous": false, "inputs": [ { - "indexed": false, - "internalType": "enum Result", - "name": "result", - "type": "uint8" - }, - { - "indexed": false, - "internalType": "bytes32[2]", - "name": "claims", - "type": "bytes32[2]" + "indexed": true, + "internalType": "address", + "name": "worker", + "type": "address" }, { - "indexed": false, - "internalType": "address payable[2]", - "name": "validators", - "type": "address[2]" + "indexed": true, + "internalType": "address", + "name": "user", + "type": "address" } ], - "name": "DisputeEnded", + "name": "Retired", "type": "event" }, { - "anonymous": false, + "inputs": [], + "name": "acceptJob", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { "inputs": [ { - "indexed": false, - "internalType": "bytes32", - "name": "claim", - "type": "bytes32" + "internalType": "address", + "name": "_workerAddress", + "type": "address" } ], - "name": "NewEpoch", - "type": "event" + "name": "cancelHire", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" }, { - "inputs": [], - "name": "getAgreementMask", + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "getOwner", "outputs": [ { - "internalType": "uint256", + "internalType": "address", "name": "", - "type": "uint256" + "type": "address" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getConsensusGoalMask", + "inputs": [ + { + "internalType": "address", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "getUser", "outputs": [ { - "internalType": "uint256", + "internalType": "address", "name": "", - "type": "uint256" + "type": "address" } ], "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "getCurrentClaim", - "outputs": [ + "inputs": [ { - "internalType": "bytes32", - "name": "", - "type": "bytes32" + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" } ], - "stateMutability": "view", + "name": "hire", + "outputs": [], + "stateMutability": "payable", "type": "function" }, { - "inputs": [], - "name": "getMaxNumValidators", + "inputs": [ + { + "internalType": "address", + "name": "workerAddress", + "type": "address" + } + ], + "name": "isAvailable", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", @@ -3293,17 +3303,17 @@ { "inputs": [ { - "internalType": "address payable", - "name": "_sender", + "internalType": "address", + "name": "_workerAddress", "type": "address" } ], - "name": "getNumberOfClaimsByAddress", + "name": "isOwned", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", @@ -3312,17 +3322,17 @@ { "inputs": [ { - "internalType": "uint256", - "name": "_index", - "type": "uint256" + "internalType": "address", + "name": "workerAddress", + "type": "address" } ], - "name": "getNumberOfClaimsByIndex", + "name": "isPending", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", @@ -3332,498 +3342,488 @@ "inputs": [ { "internalType": "address", - "name": "_sender", + "name": "_workerAddress", "type": "address" } ], - "name": "getValidatorIndex", + "name": "isRetired", "outputs": [ { - "internalType": "uint256", + "internalType": "bool", "name": "", - "type": "uint256" + "type": "bool" } ], "stateMutability": "view", "type": "function" + }, + { + "inputs": [], + "name": "rejectJob", + "outputs": [], + "stateMutability": "payable", + "type": "function" + }, + { + "inputs": [ + { + "internalType": "address payable", + "name": "_workerAddress", + "type": "address" + } + ], + "name": "retire", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" } ] }, - "DiamondInit": { - "address": "0xD37315Dfe5531D05e63CB1681B6ec7B281C084c3", + "CartesiToken": { + "address": "0x3bB4445D30AC020a84c1b5A8A2C6248ebC9779D0", "abi": [ { - "anonymous": false, - "inputs": [ - { - "indexed": false, - "internalType": "uint256", - "name": "feePerClaim", - "type": "uint256" - }, - { - "indexed": false, - "internalType": "address", - "name": "feeManagerBank", - "type": "address" - }, + "constant": true, + "inputs": [], + "name": "name", + "outputs": [ { - "indexed": false, - "internalType": "address", - "name": "feeManagerOwner", - "type": "address" + "name": "", + "type": "string" } ], - "name": "FeeManagerInitialized", - "type": "event" + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": false, - "internalType": "uint256", - "name": "inputDuration", - "type": "uint256" + "name": "spender", + "type": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "challengePeriod", + "name": "amount", "type": "uint256" } ], - "name": "RollupsInitialized", - "type": "event" - }, - { - "inputs": [ + "name": "approve", + "outputs": [ { - "components": [ - { - "internalType": "bytes32", - "name": "templateHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "inputDuration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "challengePeriod", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputLog2Size", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feePerClaim", - "type": "uint256" - }, - { - "internalType": "address", - "name": "feeManagerBank", - "type": "address" - }, - { - "internalType": "address", - "name": "feeManagerOwner", - "type": "address" - }, - { - "internalType": "address payable[]", - "name": "validators", - "type": "address[]" - } - ], - "internalType": "struct DiamondConfig", - "name": "_dConfig", - "type": "tuple" + "name": "", + "type": "bool" } ], - "name": "init", - "outputs": [], + "payable": false, "stateMutability": "nonpayable", "type": "function" - } - ] - }, - "Bank": { - "address": "0xCe9e4841C9d89c126B2B0CB4BE124DDEd3868C88", - "abi": [ + }, { - "inputs": [ + "constant": true, + "inputs": [], + "name": "totalSupply", + "outputs": [ { - "internalType": "address", - "name": "_token", - "type": "address" + "name": "", + "type": "uint256" } ], - "stateMutability": "nonpayable", - "type": "constructor" + "payable": false, + "stateMutability": "view", + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": false, - "internalType": "address", - "name": "from", + "name": "sender", "type": "address" }, { - "indexed": true, - "internalType": "address", - "name": "to", + "name": "recipient", "type": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "value", + "name": "amount", "type": "uint256" } ], - "name": "Deposit", - "type": "event" + "name": "transferFrom", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { - "anonymous": false, - "inputs": [ + "constant": true, + "inputs": [], + "name": "DECIMALS", + "outputs": [ { - "indexed": true, - "internalType": "address", - "name": "from", - "type": "address" - }, + "name": "", + "type": "uint8" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "INITIAL_SUPPLY", + "outputs": [ { - "indexed": false, - "internalType": "address", - "name": "to", + "name": "", + "type": "uint256" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "decimals", + "outputs": [ + { + "name": "", + "type": "uint8" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "spender", "type": "address" }, { - "indexed": false, - "internalType": "uint256", - "name": "value", + "name": "addedValue", "type": "uint256" } ], - "name": "Transfer", - "type": "event" + "name": "increaseAllowance", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { + "constant": false, "inputs": [ { - "internalType": "address", - "name": "_owner", + "name": "account", "type": "address" + }, + { + "name": "amount", + "type": "uint256" } ], - "name": "balanceOf", + "name": "mint", "outputs": [ { - "internalType": "uint256", "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": false, + "inputs": [ + { + "name": "_extraLockTime", "type": "uint256" } ], - "stateMutability": "view", + "name": "extendMintLockTime", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", "type": "function" }, { + "constant": true, "inputs": [ { - "internalType": "address", - "name": "_to", + "name": "account", "type": "address" - }, + } + ], + "name": "balanceOf", + "outputs": [ { - "internalType": "uint256", - "name": "_value", + "name": "", "type": "uint256" } ], - "name": "depositTokens", - "outputs": [], - "stateMutability": "nonpayable", + "payable": false, + "stateMutability": "view", "type": "function" }, { + "constant": true, "inputs": [], - "name": "getToken", + "name": "symbol", "outputs": [ { - "internalType": "contract IERC20", "name": "", - "type": "address" + "type": "string" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { + "constant": false, "inputs": [ { - "internalType": "address", - "name": "_to", + "name": "account", "type": "address" - }, - { - "internalType": "uint256", - "name": "_value", - "type": "uint256" } ], - "name": "transferTokens", + "name": "addMinter", "outputs": [], + "payable": false, "stateMutability": "nonpayable", "type": "function" - } - ] - }, - "CartesiDAppFactory": { - "address": "0xB1c76f573FC27D71b4E9f2BD9353D8a2D7ec4255", - "abi": [ + }, + { + "constant": false, + "inputs": [], + "name": "renounceMinter", + "outputs": [], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" + }, + { + "constant": true, + "inputs": [], + "name": "NAME", + "outputs": [ + { + "name": "", + "type": "string" + } + ], + "payable": false, + "stateMutability": "view", + "type": "function" + }, { + "constant": false, "inputs": [ { - "components": [ - { - "internalType": "contract IDiamondCut", - "name": "diamondCutFacet", - "type": "address" - }, - { - "internalType": "contract DiamondInit", - "name": "diamondInit", - "type": "address" - }, - { - "internalType": "contract IBank", - "name": "feeManagerBank", - "type": "address" - }, - { - "components": [ - { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "enum IDiamondCut.FacetCutAction", - "name": "action", - "type": "uint8" - }, - { - "internalType": "bytes4[]", - "name": "functionSelectors", - "type": "bytes4[]" - } - ], - "internalType": "struct IDiamondCut.FacetCut[]", - "name": "diamondCut", - "type": "tuple[]" - } - ], - "internalType": "struct CartesiDAppFactory.FactoryConfig", - "name": "_fConfig", - "type": "tuple" + "name": "spender", + "type": "address" + }, + { + "name": "subtractedValue", + "type": "uint256" + } + ], + "name": "decreaseAllowance", + "outputs": [ + { + "name": "", + "type": "bool" } ], + "payable": false, "stateMutability": "nonpayable", - "type": "constructor" + "type": "function" }, { - "anonymous": false, + "constant": false, "inputs": [ { - "indexed": true, - "internalType": "contract CartesiDApp", - "name": "application", + "name": "recipient", "type": "address" }, { - "components": [ - { - "internalType": "address", - "name": "diamondOwner", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "inputDuration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "challengePeriod", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputLog2Size", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feePerClaim", - "type": "uint256" - }, - { - "internalType": "address", - "name": "feeManagerOwner", - "type": "address" - }, - { - "internalType": "address payable[]", - "name": "validators", - "type": "address[]" - } - ], - "indexed": false, - "internalType": "struct ICartesiDAppFactory.AppConfig", - "name": "config", - "type": "tuple" + "name": "amount", + "type": "uint256" } ], - "name": "ApplicationCreated", - "type": "event" + "name": "transfer", + "outputs": [ + { + "name": "", + "type": "bool" + } + ], + "payable": false, + "stateMutability": "nonpayable", + "type": "function" }, { + "constant": true, "inputs": [ { - "internalType": "uint256", - "name": "", - "type": "uint256" + "name": "account", + "type": "address" } ], - "name": "diamondCut", + "name": "isMinter", "outputs": [ { - "internalType": "address", - "name": "facetAddress", - "type": "address" - }, - { - "internalType": "enum IDiamondCut.FacetCutAction", - "name": "action", - "type": "uint8" + "name": "", + "type": "bool" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { - "inputs": [], - "name": "diamondCutFacet", + "constant": true, + "inputs": [ + { + "name": "owner", + "type": "address" + }, + { + "name": "spender", + "type": "address" + } + ], + "name": "allowance", "outputs": [ { - "internalType": "contract IDiamondCut", "name": "", - "type": "address" + "type": "uint256" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { + "constant": true, "inputs": [], - "name": "diamondInit", + "name": "SYMBOL", "outputs": [ { - "internalType": "contract DiamondInit", "name": "", - "type": "address" + "type": "string" } ], + "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [], - "name": "feeManagerBank", - "outputs": [ + "payable": false, + "stateMutability": "nonpayable", + "type": "constructor" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "contract IBank", - "name": "", + "indexed": false, + "name": "extendedBy", + "type": "uint256" + }, + { + "indexed": false, + "name": "deadline", + "type": "uint256" + } + ], + "name": "LocktimeExteded", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "account", "type": "address" } ], - "stateMutability": "view", - "type": "function" + "name": "MinterAdded", + "type": "event" }, { + "anonymous": false, "inputs": [ { - "components": [ - { - "internalType": "address", - "name": "diamondOwner", - "type": "address" - }, - { - "internalType": "bytes32", - "name": "templateHash", - "type": "bytes32" - }, - { - "internalType": "uint256", - "name": "inputDuration", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "challengePeriod", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "inputLog2Size", - "type": "uint256" - }, - { - "internalType": "uint256", - "name": "feePerClaim", - "type": "uint256" - }, - { - "internalType": "address", - "name": "feeManagerOwner", - "type": "address" - }, - { - "internalType": "address payable[]", - "name": "validators", - "type": "address[]" - } - ], - "internalType": "struct ICartesiDAppFactory.AppConfig", - "name": "_appConfig", - "type": "tuple" + "indexed": true, + "name": "account", + "type": "address" } ], - "name": "newApplication", - "outputs": [ + "name": "MinterRemoved", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ { - "internalType": "contract CartesiDApp", - "name": "", + "indexed": true, + "name": "from", + "type": "address" + }, + { + "indexed": true, + "name": "to", "type": "address" + }, + { + "indexed": false, + "name": "value", + "type": "uint256" } ], - "stateMutability": "nonpayable", - "type": "function" + "name": "Transfer", + "type": "event" + }, + { + "anonymous": false, + "inputs": [ + { + "indexed": true, + "name": "owner", + "type": "address" + }, + { + "indexed": true, + "name": "spender", + "type": "address" + }, + { + "indexed": false, + "name": "value", + "type": "uint256" + } + ], + "name": "Approval", + "type": "event" } ] }