UNPKG

@zkp2p/contracts-v2

Version:

ZKP2P V2 smart contract interfaces and utilities

2,210 lines 45.1 kB
[ { "inputs": [ { "internalType": "address", "name": "_owner", "type": "address" }, { "internalType": "uint256", "name": "_chainId", "type": "uint256" }, { "internalType": "address", "name": "_paymentVerifierRegistry", "type": "address" }, { "internalType": "address", "name": "_dustRecipient", "type": "address" }, { "internalType": "uint256", "name": "_dustThreshold", "type": "uint256" }, { "internalType": "uint256", "name": "_maxIntentsPerDeposit", "type": "uint256" }, { "internalType": "uint256", "name": "_intentExpirationPeriod", "type": "uint256" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "max", "type": "uint256" } ], "name": "AmountAboveMax", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "min", "type": "uint256" } ], "name": "AmountBelowMin", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "requested", "type": "uint256" }, { "internalType": "uint256", "name": "available", "type": "uint256" } ], "name": "AmountExceedsAvailable", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "length1", "type": "uint256" }, { "internalType": "uint256", "name": "length2", "type": "uint256" } ], "name": "ArrayLengthMismatch", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" }, { "internalType": "bytes32", "name": "currency", "type": "bytes32" } ], "name": "CurrencyAlreadyExists", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" }, { "internalType": "bytes32", "name": "currency", "type": "bytes32" } ], "name": "CurrencyNotFound", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" }, { "internalType": "bytes32", "name": "currency", "type": "bytes32" } ], "name": "CurrencyNotSupported", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" } ], "name": "DelegateNotFound", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "internalType": "bool", "name": "currentState", "type": "bool" } ], "name": "DepositAlreadyInState", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" } ], "name": "DepositNotAcceptingIntents", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" } ], "name": "DepositNotFound", "type": "error" }, { "inputs": [], "name": "EmptyPayeeDetails", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "internalType": "uint256", "name": "available", "type": "uint256" }, { "internalType": "uint256", "name": "required", "type": "uint256" } ], "name": "InsufficientDepositLiquidity", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "intentHash", "type": "bytes32" } ], "name": "IntentAlreadyExists", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "intentHash", "type": "bytes32" } ], "name": "IntentNotFound", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "min", "type": "uint256" }, { "internalType": "uint256", "name": "max", "type": "uint256" } ], "name": "InvalidRange", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "internalType": "uint256", "name": "current", "type": "uint256" }, { "internalType": "uint256", "name": "max", "type": "uint256" } ], "name": "MaxIntentsExceeded", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" } ], "name": "PaymentMethodAlreadyExists", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" } ], "name": "PaymentMethodNotActive", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" } ], "name": "PaymentMethodNotListed", "type": "error" }, { "inputs": [ { "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" } ], "name": "PaymentMethodNotWhitelisted", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "caller", "type": "address" }, { "internalType": "address", "name": "authorized", "type": "address" } ], "name": "UnauthorizedCaller", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "caller", "type": "address" }, { "internalType": "address", "name": "owner", "type": "address" }, { "internalType": "address", "name": "delegate", "type": "address" } ], "name": "UnauthorizedCallerOrDelegate", "type": "error" }, { "inputs": [], "name": "ZeroAddress", "type": "error" }, { "inputs": [], "name": "ZeroConversionRate", "type": "error" }, { "inputs": [], "name": "ZeroMinValue", "type": "error" }, { "inputs": [], "name": "ZeroValue", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "acceptingIntents", "type": "bool" } ], "name": "DepositAcceptingIntentsUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "depositor", "type": "address" } ], "name": "DepositClosed", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "currency", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "minConversionRate", "type": "uint256" } ], "name": "DepositCurrencyAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "depositor", "type": "address" } ], "name": "DepositDelegateRemoved", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "depositor", "type": "address" }, { "indexed": true, "internalType": "address", "name": "delegate", "type": "address" } ], "name": "DepositDelegateSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "depositor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "DepositFundsAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "components": [ { "internalType": "uint256", "name": "min", "type": "uint256" }, { "internalType": "uint256", "name": "max", "type": "uint256" } ], "indexed": false, "internalType": "struct IEscrow.Range", "name": "intentAmountRange", "type": "tuple" } ], "name": "DepositIntentAmountRangeUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "currency", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "newMinConversionRate", "type": "uint256" } ], "name": "DepositMinConversionRateUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" }, { "indexed": false, "internalType": "bool", "name": "active", "type": "bool" } ], "name": "DepositPaymentMethodActiveUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "paymentMethod", "type": "bytes32" }, { "indexed": true, "internalType": "bytes32", "name": "payeeDetails", "type": "bytes32" }, { "indexed": false, "internalType": "address", "name": "intentGatingService", "type": "address" } ], "name": "DepositPaymentMethodAdded", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "depositor", "type": "address" }, { "indexed": true, "internalType": "contract IERC20", "name": "token", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "components": [ { "internalType": "uint256", "name": "min", "type": "uint256" }, { "internalType": "uint256", "name": "max", "type": "uint256" } ], "indexed": false, "internalType": "struct IEscrow.Range", "name": "intentAmountRange", "type": "tuple" }, { "indexed": false, "internalType": "address", "name": "delegate", "type": "address" }, { "indexed": false, "internalType": "address", "name": "intentGuardian", "type": "address" } ], "name": "DepositReceived", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": false, "internalType": "bool", "name": "retainOnEmpty", "type": "bool" } ], "name": "DepositRetainOnEmptyUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "depositor", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "DepositWithdrawn", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "dustAmount", "type": "uint256" }, { "indexed": true, "internalType": "address", "name": "dustRecipient", "type": "address" } ], "name": "DustCollected", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "dustRecipient", "type": "address" } ], "name": "DustRecipientUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "dustThreshold", "type": "uint256" } ], "name": "DustThresholdUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "expiryTime", "type": "uint256" } ], "name": "FundsLocked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "FundsUnlocked", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "unlockedAmount", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "transferredAmount", "type": "uint256" }, { "indexed": false, "internalType": "address", "name": "to", "type": "address" } ], "name": "FundsUnlockedAndTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "intentExpirationPeriod", "type": "uint256" } ], "name": "IntentExpirationPeriodUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "uint256", "name": "depositId", "type": "uint256" }, { "indexed": true, "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "indexed": false, "internalType": "uint256", "name": "newExpiryTime", "type": "uint256" } ], "name": "IntentExpiryExtended", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "maxIntentsPerDeposit", "type": "uint256" } ], "name": "MaxIntentsPerDepositUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "uint256", "name": "minDepositAmount", "type": "uint256" } ], "name": "MinDepositAmountSet", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "orchestrator", "type": "address" } ], "name": "OrchestratorUpdated", "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": true, "internalType": "address", "name": "paymentVerifierRegistry", "type": "address" } ], "name": "PaymentVerifierRegistryUpdated", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "address", "name": "account", "type": "address" } ], "name": "Unpaused", "type": "event" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" }, { "components": [ { "internalType": "bytes32", "name": "code", "type": "bytes32" }, { "internalType": "uint256", "name": "minConversionRate", "type": "uint256" } ], "internalType": "struct IEscrow.Currency[]", "name": "_currencies", "type": "tuple[]" } ], "name": "addCurrencies", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "addFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32[]", "name": "_paymentMethods", "type": "bytes32[]" }, { "components": [ { "internalType": "address", "name": "intentGatingService", "type": "address" }, { "internalType": "bytes32", "name": "payeeDetails", "type": "bytes32" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct IEscrow.DepositPaymentMethodData[]", "name": "_paymentMethodData", "type": "tuple[]" }, { "components": [ { "internalType": "bytes32", "name": "code", "type": "bytes32" }, { "internalType": "uint256", "name": "minConversionRate", "type": "uint256" } ], "internalType": "struct IEscrow.Currency[][]", "name": "_currencies", "type": "tuple[][]" } ], "name": "addPaymentMethods", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "chainId", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "components": [ { "internalType": "contract IERC20", "name": "token", "type": "address" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "components": [ { "internalType": "uint256", "name": "min", "type": "uint256" }, { "internalType": "uint256", "name": "max", "type": "uint256" } ], "internalType": "struct IEscrow.Range", "name": "intentAmountRange", "type": "tuple" }, { "internalType": "bytes32[]", "name": "paymentMethods", "type": "bytes32[]" }, { "components": [ { "internalType": "address", "name": "intentGatingService", "type": "address" }, { "internalType": "bytes32", "name": "payeeDetails", "type": "bytes32" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct IEscrow.DepositPaymentMethodData[]", "name": "paymentMethodData", "type": "tuple[]" }, { "components": [ { "internalType": "bytes32", "name": "code", "type": "bytes32" }, { "internalType": "uint256", "name": "minConversionRate", "type": "uint256" } ], "internalType": "struct IEscrow.Currency[][]", "name": "currencies", "type": "tuple[][]" }, { "internalType": "address", "name": "delegate", "type": "address" }, { "internalType": "address", "name": "intentGuardian", "type": "address" }, { "internalType": "bool", "name": "retainOnEmpty", "type": "bool" } ], "internalType": "struct IEscrow.CreateDepositParams", "name": "_params", "type": "tuple" } ], "name": "createDeposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" }, { "internalType": "bytes32", "name": "_currencyCode", "type": "bytes32" } ], "name": "deactivateCurrency", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "depositCounter", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "dustRecipient", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "dustThreshold", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_intentHash", "type": "bytes32" }, { "internalType": "uint256", "name": "_additionalTime", "type": "uint256" } ], "name": "extendIntentExpiry", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_account", "type": "address" } ], "name": "getAccountDeposits", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" } ], "name": "getDeposit", "outputs": [ { "components": [ { "internalType": "address", "name": "depositor", "type": "address" }, { "internalType": "address", "name": "delegate", "type": "address" }, { "internalType": "contract IERC20", "name": "token", "type": "address" }, { "components": [ { "internalType": "uint256", "name": "min", "type": "uint256" }, { "internalType": "uint256", "name": "max", "type": "uint256" } ], "internalType": "struct IEscrow.Range", "name": "intentAmountRange", "type": "tuple" }, { "internalType": "bool", "name": "acceptingIntents", "type": "bool" }, { "internalType": "uint256", "name": "remainingDeposits", "type": "uint256" }, { "internalType": "uint256", "name": "outstandingIntentAmount", "type": "uint256" }, { "internalType": "address", "name": "intentGuardian", "type": "address" }, { "internalType": "bool", "name": "retainOnEmpty", "type": "bool" } ], "internalType": "struct IEscrow.Deposit", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" } ], "name": "getDepositCurrencies", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" }, { "internalType": "bytes32", "name": "_currencyCode", "type": "bytes32" } ], "name": "getDepositCurrencyListed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" }, { "internalType": "bytes32", "name": "_currencyCode", "type": "bytes32" } ], "name": "getDepositCurrencyMinRate", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" } ], "name": "getDepositGatingService", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_intentHash", "type": "bytes32" } ], "name": "getDepositIntent", "outputs": [ { "components": [ { "internalType": "bytes32", "name": "intentHash", "type": "bytes32" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "uint256", "name": "timestamp", "type": "uint256" }, { "internalType": "uint256", "name": "expiryTime", "type": "uint256" } ], "internalType": "struct IEscrow.Intent", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" } ], "name": "getDepositIntentHashes", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" } ], "name": "getDepositPaymentMethodActive", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" } ], "name": "getDepositPaymentMethodData", "outputs": [ { "components": [ { "internalType": "address", "name": "intentGatingService", "type": "address" }, { "internalType": "bytes32", "name": "payeeDetails", "type": "bytes32" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "internalType": "struct IEscrow.DepositPaymentMethodData", "name": "", "type": "tuple" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" } ], "name": "getDepositPaymentMethodListed", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" } ], "name": "getDepositPaymentMethods", "outputs": [ { "internalType": "bytes32[]", "name": "", "type": "bytes32[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" } ], "name": "getExpiredIntents", "outputs": [ { "internalType": "bytes32[]", "name": "expiredIntents", "type": "bytes32[]" }, { "internalType": "uint256", "name": "reclaimableAmount", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "intentExpirationPeriod", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_intentHash", "type": "bytes32" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "lockFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "maxIntentsPerDeposit", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "orchestrator", "outputs": [ { "internalType": "contract IOrchestrator", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "pauseEscrow", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "paused", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "paymentVerifierRegistry", "outputs": [ { "internalType": "contract IPaymentVerifierRegistry", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" } ], "name": "pruneExpiredIntents", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" } ], "name": "removeDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "uint256", "name": "_amount", "type": "uint256" } ], "name": "removeFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "renounceOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bool", "name": "_acceptingIntents", "type": "bool" } ], "name": "setAcceptingIntents", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" }, { "internalType": "bytes32", "name": "_fiatCurrency", "type": "bytes32" }, { "internalType": "uint256", "name": "_newMinConversionRate", "type": "uint256" } ], "name": "setCurrencyMinRate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "address", "name": "_delegate", "type": "address" } ], "name": "setDelegate", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_dustRecipient", "type": "address" } ], "name": "setDustRecipient", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_dustThreshold", "type": "uint256" } ], "name": "setDustThreshold", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_intentExpirationPeriod", "type": "uint256" } ], "name": "setIntentExpirationPeriod", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "components": [ { "internalType": "uint256", "name": "min", "type": "uint256" }, { "internalType": "uint256", "name": "max", "type": "uint256" } ], "internalType": "struct IEscrow.Range", "name": "_intentAmountRange", "type": "tuple" } ], "name": "setIntentRange", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_maxIntentsPerDeposit", "type": "uint256" } ], "name": "setMaxIntentsPerDeposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_orchestrator", "type": "address" } ], "name": "setOrchestrator", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_paymentMethod", "type": "bytes32" }, { "internalType": "bool", "name": "_isActive", "type": "bool" } ], "name": "setPaymentMethodActive", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "_paymentVerifierRegistry", "type": "address" } ], "name": "setPaymentVerifierRegistry", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bool", "name": "_retainOnEmpty", "type": "bool" } ], "name": "setRetainOnEmpty", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_intentHash", "type": "bytes32" }, { "internalType": "uint256", "name": "_transferAmount", "type": "uint256" }, { "internalType": "address", "name": "_to", "type": "address" } ], "name": "unlockAndTransferFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" }, { "internalType": "bytes32", "name": "_intentHash", "type": "bytes32" } ], "name": "unlockFunds", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "unpauseEscrow", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "_depositId", "type": "uint256" } ], "name": "withdrawDeposit", "outputs": [], "stateMutability": "nonpayable", "type": "function" } ]