UNPKG

@cartesi/staking-pool

Version:
2,043 lines 113 kB
{ "name": "mainnet", "chainId": "1", "contracts": { "ChainlinkGasOracle": { "address": "0x778e443DCe627dE31bbc54098cC8153508c27F2E", "abi": [ { "inputs": [ { "internalType": "address", "name": "_oracle", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "getGasPrice", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracle", "outputs": [ { "internalType": "contract AggregatorInterface", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ] }, "ChainlinkPriceOracle": { "address": "0xd092A3611A140Bd4171ad46B5F708593E7fA832a", "abi": [ { "inputs": [ { "internalType": "address", "name": "_oracle", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "getPrice", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oracle", "outputs": [ { "internalType": "contract AggregatorInterface", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" } ] }, "SimpleFaucet": { "address": "0x1d3e16319ea6B93b3404382fBDa4c758a892619E", "abi": [ { "constant": true, "inputs": [ { "name": "_address", "type": "address" } ], "name": "allowedToWithdraw", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": false, "inputs": [], "name": "requestTokens", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function" }, { "constant": true, "inputs": [], "name": "tokenInstance", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "waitTime", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "constant": true, "inputs": [], "name": "tokenAmount", "outputs": [ { "name": "", "type": "uint256" } ], "payable": false, "stateMutability": "view", "type": "function" }, { "inputs": [ { "name": "_tokenInstance", "type": "address" } ], "payable": false, "stateMutability": "nonpayable", "type": "constructor" } ] }, "StakingPoolFactoryImpl": { "address": "0x00B6110c111b626bfC226894992d1A4C4740C4dC", "abi": [ { "inputs": [ { "internalType": "address", "name": "_gasOracle", "type": "address" }, { "internalType": "address", "name": "_priceOracle", "type": "address" }, { "internalType": "address", "name": "_pos", "type": "address" }, { "internalType": "uint256", "name": "_feeRaiseTimeout", "type": "uint256" }, { "internalType": "uint256", "name": "_maxGasRaise", "type": "uint256" }, { "internalType": "uint256", "name": "_maxFeePercentageRaise", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "pool", "type": "address" }, { "indexed": false, "internalType": "address", "name": "fee", "type": "address" } ], "name": "NewFlatRateCommissionStakingPool", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "pool", "type": "address" }, { "indexed": false, "internalType": "address", "name": "fee", "type": "address" } ], "name": "NewGasTaxCommissionStakingPool", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "_pos", "type": "address" } ], "name": "PoSAddressChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "pool", "type": "address" } ], "name": "ReferencePoolChanged", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Unpaused", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "commission", "type": "uint256" } ], "name": "createFlatRateCommission", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "gas", "type": "uint256" } ], "name": "createGasTaxCommission", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "feeRaiseTimeout", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "gasOracle", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getPoS", "outputs": [ { "internalType": "address", "name": "_pos", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "maxFeePercentageRaise", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "maxGasRaise", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pos", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "priceOracle", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "referencePool", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_pos", "type": "address" } ], "name": "setPoSAddress", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_referencePool", "type": "address" } ], "name": "setReferencePool", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "stateMutability": "payable", "type": "receive" } ] }, "StakingPoolImpl": { "address": "0x3F9A0B1A0B81473e051a26a039F730b28f02018B", "abi": [ { "inputs": [ { "internalType": "address", "name": "_ctsi", "type": "address" }, { "internalType": "address", "name": "_staking", "type": "address" }, { "internalType": "address", "name": "_workerManager", "type": "address" }, { "internalType": "address", "name": "_ens", "type": "address" }, { "internalType": "uint256", "name": "_stakeLock", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "reward", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "commission", "type": "uint256" } ], "name": "BlockProduced", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "stakeTimestamp", "type": "uint256" } ], "name": "Deposit", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Paused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "shares", "type": "uint256" } ], "name": "Stake", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "name", "type": "string" } ], "name": "StakingPoolRenamed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Unpaused", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "shares", "type": "uint256" } ], "name": "Unstake", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "Withdraw", "type": "event" }, { "inputs": [], "name": "amount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "amountToShares", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "amounts", "outputs": [ { "internalType": "uint256", "name": "stake", "type": "uint256" }, { "internalType": "uint256", "name": "unstake", "type": "uint256" }, { "internalType": "uint256", "name": "withdraw", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "workerAddress", "type": "address" } ], "name": "cancelHire", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "ctsi", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "deposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "ens", "outputs": [ { "internalType": "contract ENS", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "factory", "outputs": [ { "internalType": "contract StakingPoolFactory", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "fee", "outputs": [ { "internalType": "contract Fee", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getWithdrawBalance", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address payable", "name": "workerAddress", "type": "address" } ], "name": "hire", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_fee", "type": "address" }, { "internalType": "address", "name": "_pos", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "lockTime", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pos", "outputs": [ { "internalType": "contract IPoS", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_index", "type": "uint256" } ], "name": "produceBlock", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "rebalance", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "requiredLiquidity", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address payable", "name": "workerAddress", "type": "address" } ], "name": "retire", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "selfhire", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "name", "type": "string" } ], "name": "setName", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "shares", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_shares", "type": "uint256" } ], "name": "sharesToAmount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "stake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpause", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_shares", "type": "uint256" } ], "name": "unstake", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "update", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "userBalance", "outputs": [ { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "shares", "type": "uint256" }, { "internalType": "uint256", "name": "depositTimestamp", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "withdraw", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "stateMutability": "payable", "type": "receive" } ] }, "Bitmask": { "address": "0x33355945dE3E9CAE870246ae2C4a1f18b8514E27", "abi": [] }, "BitsManipulation": { "address": "0x4022D4bD24ee3920aEC474398AaBA0A3beD555C9", "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" } ] }, "BitsManipulationLibrary": { "address": "0x18e9d6aB59C571Edf1446980b851Cb750a8A8276", "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" } ] }, "CartesiMathV2": { "address": "0x6cc6b038e0c496f07dfd6e27a7e13c6d1a537975", "abi": [ { "inputs": [ { "internalType": "uint256", "name": "_num", "type": "uint256" } ], "name": "clz", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_num", "type": "uint256" } ], "name": "ctz", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_num", "type": "uint256" } ], "name": "getLog2Floor", "outputs": [ { "internalType": "uint8", "name": "", "type": "uint8" } ], "stateMutability": "pure", "type": "function" }, { "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": "isPowerOf2", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "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": "0x79e7c21D530d73C256353eb142e6C745A235C394", "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" } ] }, "MerkleV2": { "address": "0x6c802B9DEe273b2Ecbb8EFD2403b3b485a8cCc00", "abi": [ { "inputs": [ { "internalType": "bytes32[]", "name": "hashes", "type": "bytes32[]" } ], "name": "calculateRootFromPowerOfTwo", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_index", "type": "uint256" } ], "name": "getEmptyTreeHashAtIndex", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "_data", "type": "bytes" }, { "internalType": "uint256", "name": "_wordIndex", "type": "uint256" } ], "name": "getHashOfWordAtIndex", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "_data", "type": "bytes" }, { "internalType": "uint256", "name": "_log2Size", "type": "uint256" } ], "name": "getMerkleRootFromBytes", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_position", "type": "uint256" }, { "internalType": "uint256", "name": "_logSizeOfReplacement", "type": "uint256" }, { "internalType": "uint256", "name": "_logSizeOfFullDrive", "type": "uint256" }, { "internalType": "bytes32", "name": "_replacement", "type": "bytes32" }, { "internalType": "bytes32[]", "name": "siblings", "type": "bytes32[]" } ], "name": "getRootAfterReplacementInDrive", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "pure", "type": "function" } ] }, "UnrolledCordic": { "address": "0x9d77bEAb6EA94A4d801Df94da947f4be2A16ed13", "abi": [ { "inputs": [ { "internalType": "uint256", "name": "val", "type": "uint256" } ], "name": "log2Times1e18", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" } ] }, "WorkerAuthManagerImpl": { "address": "0x7F3A2AB61c0DD79632Eac14F7B160C16060a6DFf", "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": "0x832D9f06970ddAc7BA49Be5a2cCad8f89Df74C13", "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", "