UNPKG

@cartesi/logger

Version:
1,243 lines 30.6 kB
{ "name": "bsc_testnet", "chainId": "97", "contracts": { "Logger": { "address": "0x1c207Ed29b77641DB12d256Ad55D079d40601e6E", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "_index", "type": "uint256" }, { "indexed": false, "internalType": "bytes8[]", "name": "_data", "type": "bytes8[]" }, { "indexed": true, "internalType": "bytes32", "name": "_root", "type": "bytes32" }, { "indexed": false, "internalType": "uint64", "name": "_log2Size", "type": "uint64" } ], "name": "MerkleRootCalculatedFromData", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "_index", "type": "uint256" }, { "indexed": false, "internalType": "uint256[]", "name": "_indices", "type": "uint256[]" }, { "indexed": true, "internalType": "bytes32", "name": "_root", "type": "bytes32" }, { "indexed": false, "internalType": "uint64", "name": "_log2Size", "type": "uint64" } ], "name": "MerkleRootCalculatedFromHistory", "type": "event" }, { "inputs": [ { "internalType": "uint64", "name": "_log2Size", "type": "uint64" }, { "internalType": "bytes8[]", "name": "_data", "type": "bytes8[]" } ], "name": "calculateMerkleRootFromData", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "_log2Size", "type": "uint64" }, { "internalType": "uint256[]", "name": "_indices", "type": "uint256[]" } ], "name": "calculateMerkleRootFromHistory", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "currentIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_root", "type": "bytes32" } ], "name": "getLogIndex", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_index", "type": "uint256" } ], "name": "getLogRoot", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "_root", "type": "bytes32" }, { "internalType": "uint64", "name": "_log2Size", "type": "uint64" } ], "name": "isLogAvailable", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" } ] }, "BitsManipulationLibrary": { "address": "0xc411FDBCac6537051A4339FD30823467D573bE64", "abi": [ { "inputs": [ { "internalType": "int32", "name": "number", "type": "int32" }, { "internalType": "uint32", "name": "wordSize", "type": "uint32" } ], "name": "int32SignExtension", "outputs": [ { "internalType": "int32", "name": "", "type": "int32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint32", "name": "num", "type": "uint32" } ], "name": "uint32SwapEndian", "outputs": [ { "internalType": "uint32", "name": "", "type": "uint32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "number", "type": "uint64" }, { "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" } ], "stateMutability": "pure", "type": "function" } ] }, "CartesiMath": { "address": "0x0eA9fB188804da5449A424C6cAac3dAA63370E60", "abi": [ { "inputs": [ { "internalType": "uint256", "name": "_num", "type": "uint256" } ], "name": "getLog2TableTimes1M", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_num", "type": "uint256" } ], "name": "log2ApproxTimes1M", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" } ] }, "Merkle": { "address": "0xD47860593fe40b3D0E04460e54bFE0b84E1E6922", "abi": [ { "inputs": [ { "internalType": "bytes32[]", "name": "hashes", "type": "bytes32[]" } ], "name": "calculateRootFromPowerOfTwo", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "number", "type": "uint256" } ], "name": "getLog2Floor", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "pure", "type": "function" }, { "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" }, { "internalType": "bytes8", "name": "_value", "type": "bytes8" }, { "internalType": "bytes32[]", "name": "proof", "type": "bytes32[]" } ], "name": "getRoot", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "_position", "type": "uint64" }, { "internalType": "uint8", "name": "_logOfSize", "type": "uint8" }, { "internalType": "bytes32", "name": "_drive", "type": "bytes32" }, { "internalType": "bytes32[]", "name": "siblings", "type": "bytes32[]" } ], "name": "getRootWithDrive", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "number", "type": "uint256" } ], "name": "isPowerOf2", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "pure", "type": "function" } ] }, "WorkerAuthManagerImpl": { "address": "0x85C1929cC1794dd7c25d16d095a09318Cc57d174", "abi": [ { "inputs": [ { "internalType": "address", "name": "_workerManager", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "address", "name": "worker", "type": "address" }, { "indexed": true, "internalType": "address", "name": "dapp", "type": "address" } ], "name": "Authorization", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "address", "name": "worker", "type": "address" }, { "indexed": true, "internalType": "address", "name": "dapp", "type": "address" } ], "name": "Deauthorization", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" }, { "internalType": "address", "name": "_dappAddress", "type": "address" } ], "name": "authorize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" }, { "internalType": "address", "name": "_dappAddress", "type": "address" } ], "name": "deauthorize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" } ], "name": "getOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" }, { "internalType": "address", "name": "_dappAddress", "type": "address" } ], "name": "isAuthorized", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" } ] }, "WorkerManagerAuthManagerImpl": { "address": "0x4b637E2957C96BA8892A6C51259F35C803Dd913F", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "address", "name": "worker", "type": "address" }, { "indexed": true, "internalType": "address", "name": "dapp", "type": "address" } ], "name": "Authorization", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "address", "name": "worker", "type": "address" }, { "indexed": true, "internalType": "address", "name": "dapp", "type": "address" } ], "name": "Deauthorization", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "worker", "type": "address" }, { "indexed": true, "internalType": "address", "name": "user", "type": "address" } ], "name": "JobAccepted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "worker", "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" }, { "indexed": true, "internalType": "address", "name": "user", "type": "address" } ], "name": "JobRejected", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "worker", "type": "address" }, { "indexed": true, "internalType": "address", "name": "user", "type": "address" } ], "name": "Retired", "type": "event" }, { "inputs": [], "name": "acceptJob", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" }, { "internalType": "address", "name": "_dappAddress", "type": "address" } ], "name": "authorize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" } ], "name": "cancelHire", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" }, { "internalType": "address", "name": "_dappAddress", "type": "address" } ], "name": "deauthorize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" } ], "name": "getOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" } ], "name": "getUser", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address payable", "name": "_workerAddress", "type": "address" } ], "name": "hire", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address payable", "name": "_workerAddress", "type": "address" }, { "internalType": "address", "name": "_dappAddress", "type": "address" } ], "name": "hireAndAuthorize", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" }, { "internalType": "address", "name": "_dappAddress", "type": "address" } ], "name": "isAuthorized", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "workerAddress", "type": "address" } ], "name": "isAvailable", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "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" } ], "name": "isPending", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" } ], "name": "isRetired", "outputs": [ { "internalType": "bool", "name": "", "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" } ] }, "WorkerManagerImpl": { "address": "0x767F4294434be981447B6d23f9565d02A6858fF2", "abi": [ { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "worker", "type": "address" }, { "indexed": true, "internalType": "address", "name": "user", "type": "address" } ], "name": "JobAccepted", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "worker", "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" }, { "indexed": true, "internalType": "address", "name": "user", "type": "address" } ], "name": "JobRejected", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "worker", "type": "address" }, { "indexed": true, "internalType": "address", "name": "user", "type": "address" } ], "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": "address", "name": "_workerAddress", "type": "address" } ], "name": "getOwner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" } ], "name": "getUser", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address payable", "name": "_workerAddress", "type": "address" } ], "name": "hire", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "workerAddress", "type": "address" } ], "name": "isAvailable", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "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" } ], "name": "isPending", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_workerAddress", "type": "address" } ], "name": "isRetired", "outputs": [ { "internalType": "bool", "name": "", "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" } ] } } }