[ { "inputs": [ { "internalType": "contract IERC20", "name": "_GLM", "type": "address" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "spender", "type": "address" } ], "name": "DepositClosed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "spender", "type": "address" } ], "name": "DepositCreated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "spender", "type": "address" } ], "name": "DepositExtended", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" } ], "name": "DepositFeeTransfer", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "spender", "type": "address" } ], "name": "DepositTerminated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "spender", "type": "address" }, { "indexed": false, "internalType": "address", "name": "recipient", "type": "address" }, { "indexed": false, "internalType": "uint128", "name": "amount", "type": "uint128" } ], "name": "DepositTransfer", "type": "event" }, { "inputs": [], "name": "CONTRACT_ID", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "CONTRACT_ID_AND_VERSION", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "CONTRACT_VERSION", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "GLM", "outputs": [ { "internalType": "contract IERC20", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "closeDeposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint128", "name": "amount", "type": "uint128" }, { "internalType": "uint128", "name": "flatFeeAmount", "type": "uint128" }, { "internalType": "uint64", "name": "validToTimestamp", "type": "uint64" } ], "name": "createDeposit", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address", "name": "addr", "type": "address" }, { "internalType": "uint128", "name": "amount", "type": "uint128" } ], "name": "depositSingleTransfer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "address", "name": "addr", "type": "address" }, { "internalType": "uint128", "name": "amount", "type": "uint128" } ], "name": "depositSingleTransferAndClose", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "bytes32[]", "name": "payments", "type": "bytes32[]" } ], "name": "depositTransfer", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "bytes32[]", "name": "payments", "type": "bytes32[]" } ], "name": "depositTransferAndClose", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "name": "deposits", "outputs": [ { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint64", "name": "validTo", "type": "uint64" }, { "internalType": "uint128", "name": "amount", "type": "uint128" }, { "internalType": "uint128", "name": "feeAmount", "type": "uint128" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "internalType": "uint128", "name": "additionalAmount", "type": "uint128" }, { "internalType": "uint128", "name": "additionalFlatFee", "type": "uint128" }, { "internalType": "uint64", "name": "validToTimestamp", "type": "uint64" } ], "name": "extendDeposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "funderFromId", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "getDeposit", "outputs": [ { "components": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "internalType": "address", "name": "funder", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint128", "name": "amount", "type": "uint128" }, { "internalType": "uint64", "name": "validTo", "type": "uint64" } ], "internalType": "struct ILockPayment.DepositView", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "internalType": "address", "name": "funder", "type": "address" } ], "name": "getDepositByNonce", "outputs": [ { "components": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "internalType": "address", "name": "funder", "type": "address" }, { "internalType": "address", "name": "spender", "type": "address" }, { "internalType": "uint128", "name": "amount", "type": "uint128" }, { "internalType": "uint64", "name": "validTo", "type": "uint64" } ], "internalType": "struct ILockPayment.DepositView", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "getValidateDepositSignature", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "nonce", "type": "uint64" } ], "name": "idFromNonce", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "nonce", "type": "uint64" }, { "internalType": "address", "name": "funder", "type": "address" } ], "name": "idFromNonceAndFunder", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "nonceFromId", "outputs": [ { "internalType": "uint64", "name": "", "type": "uint64" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "uint64", "name": "nonce", "type": "uint64" } ], "name": "terminateDeposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint128", "name": "flatFeeAmount", "type": "uint128" } ], "name": "validateDeposit", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" } ]