@bronlabs/intents-sdk
Version:
SDK for Intents DeFi smart contracts
981 lines (980 loc) • 20.4 kB
JSON
[
{
"inputs": [],
"name": "BC_INVALID_CALLER",
"type": "error"
},
{
"inputs": [],
"name": "BC_INVALID_ORDER_STATUS",
"type": "error"
},
{
"inputs": [],
"name": "BC_INVALID_PARAMS",
"type": "error"
},
{
"inputs": [],
"name": "BC_TX_ALREADY_USED",
"type": "error"
},
{
"inputs": [],
"name": "EnforcedPause",
"type": "error"
},
{
"inputs": [],
"name": "ExpectedPause",
"type": "error"
},
{
"inputs": [],
"name": "InvalidInitialization",
"type": "error"
},
{
"inputs": [],
"name": "NotInitializing",
"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": false,
"internalType": "string",
"name": "orderId",
"type": "string"
},
{
"indexed": false,
"internalType": "enum IOrderEngine.OrderStatus",
"name": "status",
"type": "uint8"
}
],
"name": "OrderStatusChanged",
"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": false,
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "Unpaused",
"type": "event"
},
{
"inputs": [],
"name": "broadcasterRegister",
"outputs": [
{
"internalType": "contract IBroadcasterRegister",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
},
{
"internalType": "string",
"name": "_solverAddressOnBaseChain",
"type": "string"
}
],
"name": "completeDelayedSlashSolver",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "confirmationNetworkSettings",
"outputs": [
{
"internalType": "uint256",
"name": "userConfirmationTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "solverConfirmationTime",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "string",
"name": "orderId",
"type": "string"
},
{
"internalType": "string",
"name": "baseNetworkId",
"type": "string"
},
{
"internalType": "string",
"name": "baseTokenAddress",
"type": "string"
},
{
"internalType": "string",
"name": "quoteNetworkId",
"type": "string"
},
{
"internalType": "string",
"name": "quoteTokenAddress",
"type": "string"
},
{
"internalType": "string",
"name": "userAddress",
"type": "string"
},
{
"internalType": "uint256",
"name": "baseAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quoteAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "orderValueInUSD_e18",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPrice_e18",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auctionDuration",
"type": "uint256"
},
{
"internalType": "address",
"name": "liquidationReceiver",
"type": "address"
}
],
"internalType": "struct IOrderEngine.CreateOrderParams",
"name": "_create",
"type": "tuple"
},
{
"internalType": "uint256",
"name": "_frontEndFee",
"type": "uint256"
}
],
"name": "createOrder",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "defaultSolverConfirmationTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "defaultSolverSettlementTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "defaultUserConfirmationTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "defaultUserSettlementTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
}
],
"name": "executeSolverTimeout",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
}
],
"name": "executeUserConfirmationTimeout",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkId",
"type": "string"
}
],
"name": "getNetworkSettings",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "userSettlementTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "solverSettlementTime",
"type": "uint256"
}
],
"internalType": "struct IOrderEngine.NetworkSettings",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
}
],
"name": "getOrder",
"outputs": [
{
"components": [
{
"internalType": "enum IOrderEngine.OrderStatus",
"name": "status",
"type": "uint8"
},
{
"internalType": "address",
"name": "user",
"type": "address"
},
{
"internalType": "address",
"name": "solver",
"type": "address"
},
{
"components": [
{
"internalType": "string",
"name": "networkId",
"type": "string"
},
{
"internalType": "string",
"name": "tokenAddress",
"type": "string"
},
{
"internalType": "string",
"name": "solverAddress",
"type": "string"
},
{
"internalType": "string",
"name": "userTxHash",
"type": "string"
}
],
"internalType": "struct IOrderEngine.BaseParams",
"name": "baseParams",
"type": "tuple"
},
{
"components": [
{
"internalType": "string",
"name": "networkId",
"type": "string"
},
{
"internalType": "string",
"name": "tokenAddress",
"type": "string"
},
{
"internalType": "string",
"name": "userAddress",
"type": "string"
},
{
"internalType": "string",
"name": "solverTxHash",
"type": "string"
}
],
"internalType": "struct IOrderEngine.QuoteParams",
"name": "quoteParams",
"type": "tuple"
},
{
"components": [
{
"internalType": "uint256",
"name": "baseAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "quoteAmount",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "price_e18",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "maxPrice_e18",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "auctionDuration",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "orderValueInUSD_e18",
"type": "uint256"
},
{
"internalType": "address",
"name": "liquidationReceiver",
"type": "address"
}
],
"internalType": "struct IOrderEngine.PricingParams",
"name": "pricingParams",
"type": "tuple"
},
{
"internalType": "uint64",
"name": "updatedAt",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "createdAt",
"type": "uint64"
}
],
"internalType": "struct IOrderEngine.Order",
"name": "",
"type": "tuple"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkId",
"type": "string"
}
],
"name": "getSolverConfirmationTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkId",
"type": "string"
}
],
"name": "getSolverSettlementTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkId",
"type": "string"
},
{
"internalType": "string",
"name": "_txHash",
"type": "string"
}
],
"name": "getUsedTxHashes",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkId",
"type": "string"
}
],
"name": "getUserConfirmationTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkId",
"type": "string"
}
],
"name": "getUserSettlementTime",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_oracleAggregator",
"type": "address"
},
{
"internalType": "address",
"name": "_solverRegister",
"type": "address"
},
{
"internalType": "uint256",
"name": "_defaultUserSettlementTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_defaultSolverSettlementTime",
"type": "uint256"
},
{
"internalType": "address",
"name": "_owner",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"name": "isBroadcaster",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "oracleAggregator",
"outputs": [
{
"internalType": "address",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"name": "ordersFrontEndFee",
"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": "renounceOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_broadcasterRegister",
"type": "address"
}
],
"name": "setBroadcasterRegister",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkId",
"type": "string"
},
{
"internalType": "uint256",
"name": "_userConfirmationTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_solverConfirmationTime",
"type": "uint256"
}
],
"name": "setConfirmationNetworkSettings",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_userConfirmationTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_solverConfirmationTime",
"type": "uint256"
}
],
"name": "setDefaultConfirmationTime",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_userSettlementTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_solverSettlementTime",
"type": "uint256"
}
],
"name": "setDefaultSettlementTime",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_networkId",
"type": "string"
},
{
"internalType": "uint256",
"name": "_userSettlementTime",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "_solverSettlementTime",
"type": "uint256"
}
],
"name": "setNetworkSettings",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
},
{
"internalType": "bool",
"name": "_isConfirmed",
"type": "bool"
}
],
"name": "setOracleConfirmSolverTx",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
},
{
"internalType": "bool",
"name": "_isConfirmed",
"type": "bool"
}
],
"name": "setOracleConfirmUserTx",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
},
{
"internalType": "string",
"name": "_solverTxHash",
"type": "string"
}
],
"name": "setSolverTxOnQuoteNetwork",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
},
{
"internalType": "string",
"name": "_userTxHash",
"type": "string"
}
],
"name": "setUserTxOnBaseNetwork",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
},
{
"internalType": "string",
"name": "_solverAddressOnBaseChain",
"type": "string"
},
{
"internalType": "uint256",
"name": "_price_e18",
"type": "uint256"
}
],
"name": "solverReact",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "solverRegister",
"outputs": [
{
"internalType": "contract ISolverRegister",
"name": "",
"type": "address"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "unpause",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]