Expand description
Generated by the following Solidity interface…
interface OneInchFusionSettlement {
error AccessDenied();
error FailedExternalCall();
error ForceApproveFailed();
error IncorrectCalldataParams();
error NotEnoughCredit();
error OnlyFeeBankAccess();
error ResolverIsNotWhitelisted();
error SafeTransferFailed();
error WrongInteractionTarget();
constructor(address limitOrderProtocol, address token);
function availableCredit(address account) external view returns (uint256);
function decreaseAvailableCredit(address account, uint256 amount) external returns (uint256 allowance);
function feeBank() external view returns (address);
function fillOrderInteraction(address taker, uint256, uint256 takingAmount, bytes memory interactiveData) external returns (uint256 result);
function increaseAvailableCredit(address account, uint256 amount) external returns (uint256 allowance);
function settleOrders(bytes memory data) external;
}
…which was generated by the following JSON ABI:
[
{
"type": "constructor",
"inputs": [
{
"name": "limitOrderProtocol",
"type": "address",
"internalType": "contract IOrderMixin"
},
{
"name": "token",
"type": "address",
"internalType": "contract IERC20"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "availableCredit",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "decreaseAvailableCredit",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "allowance",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "feeBank",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract IFeeBank"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "fillOrderInteraction",
"inputs": [
{
"name": "taker",
"type": "address",
"internalType": "address"
},
{
"name": "",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "takingAmount",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "interactiveData",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "result",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "increaseAvailableCredit",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "allowance",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "settleOrders",
"inputs": [
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "error",
"name": "AccessDenied",
"inputs": []
},
{
"type": "error",
"name": "FailedExternalCall",
"inputs": []
},
{
"type": "error",
"name": "ForceApproveFailed",
"inputs": []
},
{
"type": "error",
"name": "IncorrectCalldataParams",
"inputs": []
},
{
"type": "error",
"name": "NotEnoughCredit",
"inputs": []
},
{
"type": "error",
"name": "OnlyFeeBankAccess",
"inputs": []
},
{
"type": "error",
"name": "ResolverIsNotWhitelisted",
"inputs": []
},
{
"type": "error",
"name": "SafeTransferFailed",
"inputs": []
},
{
"type": "error",
"name": "WrongInteractionTarget",
"inputs": []
}
]
Structs§
- Custom error with signature
AccessDenied()and selector0x4ca88867. - Custom error with signature
FailedExternalCall()and selector0x1d6d30e8. - Custom error with signature
ForceApproveFailed()and selector0x19be9a90. - Custom error with signature
IncorrectCalldataParams()and selector0x969d9818. - Custom error with signature
NotEnoughCredit()and selector0xa7fd3792. - Custom error with signature
OnlyFeeBankAccess()and selector0xa4544199. - Custom error with signature
ResolverIsNotWhitelisted()and selector0x4b576069. - Custom error with signature
SafeTransferFailed()and selector0xfb7f5079. - Custom error with signature
WrongInteractionTarget()and selector0x5b34bf89. - Function with signature
availableCredit(address)and selector0x5886216f. - Container type for the return parameters of the
availableCredit(address)function. - Constructor`.
- Function with signature
decreaseAvailableCredit(address,uint256)and selector0x85eda2de. - Container type for the return parameters of the
decreaseAvailableCredit(address,uint256)function. - Function with signature
feeBank()and selector0xaf15d786. - Container type for the return parameters of the
feeBank()function. - Function with signature
fillOrderInteraction(address,uint256,uint256,bytes)and selector0xccee33d7. - Container type for the return parameters of the
fillOrderInteraction(address,uint256,uint256,bytes)function. - Function with signature
increaseAvailableCredit(address,uint256)and selector0x3ee5ef1f. - Container type for the return parameters of the
increaseAvailableCredit(address,uint256)function. - Function with signature
settleOrders(bytes)and selector0x0965d04b. - Container type for the return parameters of the
settleOrders(bytes)function.
Enums§
- Container for all the
OneInchFusionSettlementfunction calls. - Container for all the
OneInchFusionSettlementcustom errors.