@cartesi/logger
Version:
1,243 lines • 30.6 kB
JSON
{
"name": "avax_testnet",
"chainId": "43113",
"contracts": {
"Logger": {
"address": "0xdB96468910d81BA6085eb9FE258f0DEF3cA8aA9A",
"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": "0xdecac9ff6b588642887414e85dfdde740a797f56",
"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": "0x50bEFaEfD3AAaFac11Fd936A8dfEB1050eC5Cf00",
"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": "0x89f1f1bc37Ef872ff0073bee7eE6d6B0D94Fd166",
"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": "0x3F62ccC0e41287ea4d28dce6582a215B75bB43fd",
"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": "0x7db3A9BdA16D1C295b23B94a61808EFf82288269",
"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": "0x91E780568A1FEdd5d01E1c1E4cAed68E3a849345",
"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"
}
]
}
}
}