The ABI of the ReturnERC20Loans contract.
Generated from the compiled source of the deployed contract. The verified source on the block explorer gives the same ABI.
[
{
"type": "constructor",
"inputs": [
{
"name": "treasury_",
"type": "address",
"internalType": "address"
},
{
"name": "owner_",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "nonpayable"
},
{
"type": "receive",
"stateMutability": "payable"
},
{
"type": "function",
"name": "FEE_BPS",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "GRACE_PERIOD",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "MAX_REPAYMENT_EXTENSION",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ORDER_TYPEHASH",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "REPAYMENT_GAS",
"inputs": [],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "approve",
"inputs": [
{
"name": "account",
"type": "address",
"internalType": "address"
},
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "art",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "contract NoteArt"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "assetAllowed",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "assets",
"inputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "balanceOf",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "result",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "cancel",
"inputs": [
{
"name": "order",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Order",
"components": [
{
"name": "side",
"type": "uint8",
"internalType": "enum ReturnERC20Loans.Side"
},
{
"name": "maker",
"type": "address",
"internalType": "address"
},
{
"name": "taker",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "validUntil",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "counter",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "salt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minFill",
"type": "uint96",
"internalType": "uint96"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "cancelOwnershipHandover",
"inputs": [],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "collectRepayment",
"inputs": [
{
"name": "loan",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "completeOwnershipHandover",
"inputs": [
{
"name": "pendingOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "counters",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "eip712Domain",
"inputs": [],
"outputs": [
{
"name": "fields",
"type": "bytes1",
"internalType": "bytes1"
},
{
"name": "name",
"type": "string",
"internalType": "string"
},
{
"name": "version",
"type": "string",
"internalType": "string"
},
{
"name": "chainId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "verifyingContract",
"type": "address",
"internalType": "address"
},
{
"name": "salt",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "extensions",
"type": "uint256[]",
"internalType": "uint256[]"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "extendRepaymentWindow",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "until",
"type": "uint40",
"internalType": "uint40"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "fill",
"inputs": [
{
"name": "order",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Order",
"components": [
{
"name": "side",
"type": "uint8",
"internalType": "enum ReturnERC20Loans.Side"
},
{
"name": "maker",
"type": "address",
"internalType": "address"
},
{
"name": "taker",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "validUntil",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "counter",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "salt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minFill",
"type": "uint96",
"internalType": "uint96"
}
]
},
{
"name": "amount",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "foreclose",
"inputs": [
{
"name": "loan",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getApproved",
"inputs": [
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "result",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "heldRepayment",
"inputs": [
{
"name": "loan",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "incrementCounter",
"inputs": [],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "isApprovedForAll",
"inputs": [
{
"name": "owner",
"type": "address",
"internalType": "address"
},
{
"name": "operator",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "result",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "loanDigest",
"inputs": [
{
"name": "loan",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "loanState",
"inputs": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "maturity",
"type": "uint40",
"internalType": "uint40"
},
{
"name": "repaid",
"type": "bool",
"internalType": "bool"
},
{
"name": "collateralReleased",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "loanTerms",
"inputs": [
{
"name": "order",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Order",
"components": [
{
"name": "side",
"type": "uint8",
"internalType": "enum ReturnERC20Loans.Side"
},
{
"name": "maker",
"type": "address",
"internalType": "address"
},
{
"name": "taker",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "validUntil",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "counter",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "salt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minFill",
"type": "uint96",
"internalType": "uint96"
}
]
},
{
"name": "amount",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "taker",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "loan",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "name",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "newLoansPaused",
"inputs": [],
"outputs": [
{
"name": "",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "orderDigest",
"inputs": [
{
"name": "order",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Order",
"components": [
{
"name": "side",
"type": "uint8",
"internalType": "enum ReturnERC20Loans.Side"
},
{
"name": "maker",
"type": "address",
"internalType": "address"
},
{
"name": "taker",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "validUntil",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "counter",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "salt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minFill",
"type": "uint96",
"internalType": "uint96"
}
]
}
],
"outputs": [
{
"name": "",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "orderState",
"inputs": [
{
"name": "id",
"type": "bytes32",
"internalType": "bytes32"
}
],
"outputs": [
{
"name": "filled",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "cancelled",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "owner",
"inputs": [],
"outputs": [
{
"name": "result",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ownerOf",
"inputs": [
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "result",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "ownershipHandoverExpiresAt",
"inputs": [
{
"name": "pendingOwner",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "result",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "post",
"inputs": [
{
"name": "order",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Order",
"components": [
{
"name": "side",
"type": "uint8",
"internalType": "enum ReturnERC20Loans.Side"
},
{
"name": "maker",
"type": "address",
"internalType": "address"
},
{
"name": "taker",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "validUntil",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "counter",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "salt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minFill",
"type": "uint96",
"internalType": "uint96"
}
]
},
{
"name": "signature",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "previewFill",
"inputs": [
{
"name": "order",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Order",
"components": [
{
"name": "side",
"type": "uint8",
"internalType": "enum ReturnERC20Loans.Side"
},
{
"name": "maker",
"type": "address",
"internalType": "address"
},
{
"name": "taker",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "validUntil",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "counter",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "salt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minFill",
"type": "uint96",
"internalType": "uint96"
}
]
},
{
"name": "amount",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "taker",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "loan",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
},
{
"name": "fee",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "protocolFee",
"inputs": [
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "reclaimCollateral",
"inputs": [
{
"name": "loan",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "renounceOwnership",
"inputs": [],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "repay",
"inputs": [
{
"name": "loan",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "repaymentDeadline",
"inputs": [
{
"name": "loan",
"type": "tuple",
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "repaymentWindow",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint40",
"internalType": "uint40"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "repaymentWindowSetAt",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint40",
"internalType": "uint40"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "requestOwnershipHandover",
"inputs": [],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "reserved",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "safeTransferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "safeTransferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "data",
"type": "bytes",
"internalType": "bytes"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "setApprovalForAll",
"inputs": [
{
"name": "operator",
"type": "address",
"internalType": "address"
},
{
"name": "isApproved",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setAsset",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "allowed",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setNewLoansPaused",
"inputs": [
{
"name": "paused",
"type": "bool",
"internalType": "bool"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "setTreasury",
"inputs": [
{
"name": "treasury_",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "supportsInterface",
"inputs": [
{
"name": "interfaceId",
"type": "bytes4",
"internalType": "bytes4"
}
],
"outputs": [
{
"name": "result",
"type": "bool",
"internalType": "bool"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "symbol",
"inputs": [],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "pure"
},
{
"type": "function",
"name": "tokenURI",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "",
"type": "string",
"internalType": "string"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "transferFrom",
"inputs": [
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "id",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "transferOwnership",
"inputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "payable"
},
{
"type": "function",
"name": "transferRepayment",
"inputs": [
{
"name": "tokenId",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "token",
"type": "address",
"internalType": "address"
},
{
"name": "from",
"type": "address",
"internalType": "address"
},
{
"name": "to",
"type": "address",
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "treasury",
"inputs": [],
"outputs": [
{
"name": "",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "withdrawSurplus",
"inputs": [
{
"name": "token",
"type": "address",
"internalType": "address"
}
],
"outputs": [],
"stateMutability": "nonpayable"
},
{
"type": "event",
"name": "Approval",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "account",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "id",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "ApprovalForAll",
"inputs": [
{
"name": "owner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "operator",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "isApproved",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"type": "event",
"name": "AssetConfigured",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "allowed",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"type": "event",
"name": "CollateralReclaimed",
"inputs": [
{
"name": "id",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "timestamp",
"type": "uint40",
"indexed": false,
"internalType": "uint40"
}
],
"anonymous": false
},
{
"type": "event",
"name": "CounterIncremented",
"inputs": [
{
"name": "maker",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "counter",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Foreclosed",
"inputs": [
{
"name": "id",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "noteHolder",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "timestamp",
"type": "uint40",
"indexed": false,
"internalType": "uint40"
}
],
"anonymous": false
},
{
"type": "event",
"name": "NewLoansPauseSet",
"inputs": [
{
"name": "paused",
"type": "bool",
"indexed": false,
"internalType": "bool"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Opened",
"inputs": [
{
"name": "id",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "lender",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "loan",
"type": "tuple",
"indexed": false,
"internalType": "struct ReturnERC20Loans.Loan",
"components": [
{
"name": "orderId",
"type": "bytes32",
"internalType": "bytes32"
},
{
"name": "borrower",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "offset",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
}
]
},
{
"name": "maturity",
"type": "uint40",
"indexed": false,
"internalType": "uint40"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OrderCancelled",
"inputs": [
{
"name": "id",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "maker",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipHandoverCanceled",
"inputs": [
{
"name": "pendingOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipHandoverRequested",
"inputs": [
{
"name": "pendingOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "OwnershipTransferred",
"inputs": [
{
"name": "oldOwner",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "newOwner",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Posted",
"inputs": [
{
"name": "id",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "maker",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "loanToken",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "order",
"type": "tuple",
"indexed": false,
"internalType": "struct ReturnERC20Loans.Order",
"components": [
{
"name": "side",
"type": "uint8",
"internalType": "enum ReturnERC20Loans.Side"
},
{
"name": "maker",
"type": "address",
"internalType": "address"
},
{
"name": "taker",
"type": "address",
"internalType": "address"
},
{
"name": "collateral",
"type": "address",
"internalType": "address"
},
{
"name": "collateralAmount",
"type": "uint128",
"internalType": "uint128"
},
{
"name": "loanToken",
"type": "address",
"internalType": "address"
},
{
"name": "principal",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "repayment",
"type": "uint96",
"internalType": "uint96"
},
{
"name": "duration",
"type": "uint32",
"internalType": "uint32"
},
{
"name": "validUntil",
"type": "uint64",
"internalType": "uint64"
},
{
"name": "counter",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "salt",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "minFill",
"type": "uint96",
"internalType": "uint96"
}
]
},
{
"name": "signature",
"type": "bytes",
"indexed": false,
"internalType": "bytes"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Repaid",
"inputs": [
{
"name": "id",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "payer",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "noteHolderPaid",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "collateralReleased",
"type": "bool",
"indexed": false,
"internalType": "bool"
},
{
"name": "timestamp",
"type": "uint40",
"indexed": false,
"internalType": "uint40"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RepaymentCollected",
"inputs": [
{
"name": "id",
"type": "bytes32",
"indexed": true,
"internalType": "bytes32"
},
{
"name": "noteHolder",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "timestamp",
"type": "uint40",
"indexed": false,
"internalType": "uint40"
}
],
"anonymous": false
},
{
"type": "event",
"name": "RepaymentWindowExtended",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "until",
"type": "uint40",
"indexed": false,
"internalType": "uint40"
}
],
"anonymous": false
},
{
"type": "event",
"name": "SurplusWithdrawn",
"inputs": [
{
"name": "token",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "treasury",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "amount",
"type": "uint256",
"indexed": false,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "Transfer",
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "to",
"type": "address",
"indexed": true,
"internalType": "address"
},
{
"name": "id",
"type": "uint256",
"indexed": true,
"internalType": "uint256"
}
],
"anonymous": false
},
{
"type": "event",
"name": "TreasurySet",
"inputs": [
{
"name": "treasury",
"type": "address",
"indexed": true,
"internalType": "address"
}
],
"anonymous": false
},
{
"type": "error",
"name": "AccountBalanceOverflow",
"inputs": []
},
{
"type": "error",
"name": "AlreadyInitialized",
"inputs": []
},
{
"type": "error",
"name": "AssetNotAllowed",
"inputs": []
},
{
"type": "error",
"name": "AssetShortfall",
"inputs": []
},
{
"type": "error",
"name": "BalanceQueryForZeroAddress",
"inputs": []
},
{
"type": "error",
"name": "ClaimUnavailable",
"inputs": []
},
{
"type": "error",
"name": "GracePeriodExpired",
"inputs": []
},
{
"type": "error",
"name": "InexactTransfer",
"inputs": []
},
{
"type": "error",
"name": "InsufficientGas",
"inputs": []
},
{
"type": "error",
"name": "InvalidConfiguration",
"inputs": []
},
{
"type": "error",
"name": "InvalidSignature",
"inputs": []
},
{
"type": "error",
"name": "InvalidTerms",
"inputs": []
},
{
"type": "error",
"name": "NativeCurrencyNotAccepted",
"inputs": []
},
{
"type": "error",
"name": "NewLoansPaused",
"inputs": []
},
{
"type": "error",
"name": "NewOwnerIsZeroAddress",
"inputs": []
},
{
"type": "error",
"name": "NoHandoverRequest",
"inputs": []
},
{
"type": "error",
"name": "NotActive",
"inputs": []
},
{
"type": "error",
"name": "NotInDefault",
"inputs": []
},
{
"type": "error",
"name": "NotOwnerNorApproved",
"inputs": []
},
{
"type": "error",
"name": "OrderUnavailable",
"inputs": []
},
{
"type": "error",
"name": "Reentrancy",
"inputs": []
},
{
"type": "error",
"name": "TokenAlreadyExists",
"inputs": []
},
{
"type": "error",
"name": "TokenDoesNotExist",
"inputs": []
},
{
"type": "error",
"name": "TransferFromIncorrectOwner",
"inputs": []
},
{
"type": "error",
"name": "TransferToNonERC721ReceiverImplementer",
"inputs": []
},
{
"type": "error",
"name": "TransferToZeroAddress",
"inputs": []
},
{
"type": "error",
"name": "Unauthorized",
"inputs": []
}
]Last updated