UNPKG

@bronlabs/intents-sdk

Version:
340 lines (339 loc) 6.29 kB
[ { "inputs": [], "name": "InvalidInitialization", "type": "error" }, { "inputs": [], "name": "NotInitializing", "type": "error" }, { "inputs": [], "name": "OA_INVALID_CALL", "type": "error" }, { "inputs": [], "name": "OA_INVALID_ORDER_STATUS", "type": "error" }, { "inputs": [], "name": "OA_ONLY_ORACLE_OR_OWNER", "type": "error" }, { "inputs": [], "name": "OA_ORACLE_ALREADY_INACTIVE", "type": "error" }, { "inputs": [], "name": "OA_ORACLE_ALREADY_REGISTERED", "type": "error" }, { "inputs": [], "name": "OA_ORACLE_ALREADY_VOTED", "type": "error" }, { "inputs": [], "name": "OA_ORACLE_NOT_ACTIVE", "type": "error" }, { "inputs": [], "name": "OA_ORACLE_NOT_PENDING", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "owner", "type": "address" } ], "name": "OwnableInvalidOwner", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" } ], "name": "OwnableUnauthorizedAccount", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint64", "name": "version", "type": "uint64" } ], "name": "Initialized", "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" }, { "inputs": [ { "internalType": "address", "name": "_oracle", "type": "address" } ], "name": "deactivateOracle", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_oracle", "type": "address" } ], "name": "getOracleStatus", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getTotalOraclesCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "contract IOrderEngine", "name": "_orderEngine", "type": "address" }, { "internalType": "address", "name": "_owner", "type": "address" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "_orderId", "type": "string" }, { "internalType": "bool", "name": "_isConfirmed", "type": "bool" } ], "name": "oracleConfirmSolverTx", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "_orderId", "type": "string" }, { "internalType": "bool", "name": "_isConfirmed", "type": "bool" } ], "name": "oracleConfirmUserTx", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "oracles", "outputs": [ { "internalType": "enum IOracleAggregator.OracleStatus", "name": "", "type": "uint8" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "oraclesCount", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "orderEngine", "outputs": [ { "internalType": "contract IOrderEngine", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "_orderId", "type": "string" }, { "internalType": "bool", "name": "_isUserTx", "type": "bool" } ], "name": "reconcileOracleConsensus", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "registerOracle", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_oracle", "type": "address" }, { "internalType": "bool", "name": "_isAccepted", "type": "bool" } ], "name": "registerOracleResponse", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "contract IOrderEngine", "name": "_orderEngine", "type": "address" } ], "name": "setOrderEngine", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]