{ "_format": "hh-sol-artifact-1", "contractName": "BaseUtils", "sourceName": "contracts/core/BaseUtils.sol", "abi": [ { "inputs": [], "name": "AddressDenied", "type": "error" }, { "inputs": [], "name": "AlreadyReleased", "type": "error" }, { "inputs": [], "name": "AmountNotAllowed", "type": "error" }, { "inputs": [], "name": "DecOverflow", "type": "error" }, { "inputs": [], "name": "EmptyPixTarget", "type": "error" }, { "inputs": [], "name": "InvalidDeposit", "type": "error" }, { "inputs": [], "name": "InvalidSigner", "type": "error" }, { "inputs": [], "name": "LengthMismatch", "type": "error" }, { "inputs": [], "name": "LockExpired", "type": "error" }, { "inputs": [], "name": "LoopOverflow", "type": "error" }, { "inputs": [], "name": "MaxBalExceeded", "type": "error" }, { "inputs": [], "name": "NoTokens", "type": "error" }, { "inputs": [], "name": "NotEnoughTokens", "type": "error" }, { "inputs": [], "name": "NotExpired", "type": "error" }, { "inputs": [], "name": "NotInitialized", "type": "error" }, { "inputs": [], "name": "OnlySeller", "type": "error" }, { "inputs": [], "name": "StaticCallFailed", "type": "error" }, { "inputs": [], "name": "TokenDenied", "type": "error" }, { "inputs": [], "name": "TxAlreadyUsed", "type": "error" }, { "inputs": [], "name": "Unauthorized", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "token", "type": "address" }, { "indexed": true, "internalType": "bool", "name": "state", "type": "bool" } ], "name": "AllowedERC20Updated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "seller", "type": "address" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "DepositAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "seller", "type": "address" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "DepositWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "owner", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "FundsWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "buyer", "type": "address" }, { "indexed": true, "internalType": "uint256", "name": "lockID", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "seller", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LockAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "blocks", "type": "uint256" } ], "name": "LockBlocksUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "buyer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "lockId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "LockReleased", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "buyer", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "lockId", "type": "uint256" } ], "name": "LockReturned", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "user", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnerUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "reputation", "type": "address" } ], "name": "ReputationUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "seller", "type": "address" }, { "indexed": true, "internalType": "bytes32", "name": "merkleRoot", "type": "bytes32" } ], "name": "RootUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "seller", "type": "address" }, { "indexed": false, "internalType": "address", "name": "token", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "state", "type": "bool" } ], "name": "ValidSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address[]", "name": "signers", "type": "address[]" } ], "name": "ValidSignersUpdated", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "_addr", "type": "address" } ], "name": "_castAddrToKey", "outputs": [ { "internalType": "uint256", "name": "_key", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_key", "type": "uint256" } ], "name": "_castKeyToAddr", "outputs": [ { "internalType": "address", "name": "_addr", "type": "address" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "contract ERC20", "name": "erc20", "type": "address" } ], "name": "allowedERC20s", "outputs": [ { "internalType": "bool", "name": "state", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "defaultLockBlocks", "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": "reputation", "outputs": [ { "internalType": "contract IReputation", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "sellerKey", "type": "uint256" } ], "name": "sellerAllowList", "outputs": [ { "internalType": "bytes32", "name": "root", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_blocks", "type": "uint256" } ], "name": "setDefaultLockBlocks", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "setOwner", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IReputation", "name": "_reputation", "type": "address" } ], "name": "setReputation", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "_validSigners", "type": "address[]" } ], "name": "setValidSigners", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "_tokens", "type": "address[]" }, { "internalType": "bool[]", "name": "_states", "type": "bool[]" } ], "name": "tokenSettings", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes32", "name": "message", "type": "bytes32" } ], "name": "usedTransactions", "outputs": [ { "internalType": "bool", "name": "used", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "signer", "type": "uint256" } ], "name": "validBacenSigners", "outputs": [ { "internalType": "bool", "name": "valid", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "withdrawBalance", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ], "bytecode": "0x", "deployedBytecode": "0x", "linkReferences": {}, "deployedLinkReferences": {} }