@bronlabs/intents-sdk
Version:
SDK for Intents DeFi smart contracts
794 lines (793 loc) • 16.7 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_INVALID_PRICE",
"type": "error"
},
{
"inputs": [],
"name": "BC_NOT_ENOUGH_OPERATION_AMOUNT",
"type": "error"
},
{
"inputs": [],
"name": "BC_TIMEOUT",
"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": [
{
"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"
}
],
"name": "createOrder",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [],
"name": "defaultSolverSettlementTime",
"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": "executeUserTimeout",
"outputs": [],
"stateMutability": "nonpayable",
"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": "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": [],
"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": "string",
"name": "_orderId",
"type": "string"
},
{
"internalType": "string",
"name": "_newTxHash",
"type": "string"
}
],
"name": "replaceSolverTransaction",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "_orderId",
"type": "string"
},
{
"internalType": "string",
"name": "_newTxHash",
"type": "string"
}
],
"name": "replaceUserTransaction",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "_broadcaster",
"type": "address"
},
{
"internalType": "bool",
"name": "_isBroadcaster",
"type": "bool"
}
],
"name": "setBroadcaster",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_defaultSolverSettlementTime",
"type": "uint256"
}
],
"name": "setDefaultSolverSettlementTime",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "_defaultUserSettlementTime",
"type": "uint256"
}
],
"name": "setDefaultUserSettlementTime",
"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": "address",
"name": "_oracleAggregator",
"type": "address"
}
],
"name": "setOracleAggregator",
"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": "address",
"name": "_solverRegister",
"type": "address"
}
],
"name": "setSolverRegister",
"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"
}
]