@provex/abis 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/index.d.ts +48 -0
  2. package/dist/index.d.ts.map +1 -0
  3. package/dist/index.js +48 -0
  4. package/dist/messaging/MessageBus.d.ts +289 -0
  5. package/dist/messaging/MessageBus.d.ts.map +1 -0
  6. package/dist/messaging/MessageBus.js +363 -0
  7. package/dist/messaging/index.d.ts +8 -0
  8. package/dist/messaging/index.d.ts.map +1 -0
  9. package/dist/messaging/index.js +7 -0
  10. package/dist/v2/Escrow.d.ts +425 -0
  11. package/dist/v2/Escrow.d.ts.map +1 -0
  12. package/dist/v2/Escrow.js +38 -0
  13. package/dist/v2/Verifiers.d.ts +22 -0
  14. package/dist/v2/Verifiers.d.ts.map +1 -0
  15. package/dist/v2/Verifiers.js +10 -0
  16. package/dist/v2/index.d.ts +8 -0
  17. package/dist/v2/index.d.ts.map +1 -0
  18. package/dist/v2/index.js +7 -0
  19. package/dist/v3/Escrow.d.ts +1725 -0
  20. package/dist/v3/Escrow.d.ts.map +1 -0
  21. package/dist/v3/Escrow.js +15 -0
  22. package/dist/v3/NullifierRegistry.d.ts +26 -0
  23. package/dist/v3/NullifierRegistry.d.ts.map +1 -0
  24. package/dist/v3/NullifierRegistry.js +20 -0
  25. package/dist/v3/Orchestrator.d.ts +883 -0
  26. package/dist/v3/Orchestrator.d.ts.map +1 -0
  27. package/dist/v3/Orchestrator.js +13 -0
  28. package/dist/v3/PaymentVerifierRegistry.d.ts +262 -0
  29. package/dist/v3/PaymentVerifierRegistry.d.ts.map +1 -0
  30. package/dist/v3/PaymentVerifierRegistry.js +7 -0
  31. package/dist/v3/UnifiedPaymentVerifier.d.ts +294 -0
  32. package/dist/v3/UnifiedPaymentVerifier.d.ts.map +1 -0
  33. package/dist/v3/UnifiedPaymentVerifier.js +12 -0
  34. package/dist/v3/index.d.ts +15 -0
  35. package/dist/v3/index.d.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posits and fund locking
7
+ * - Orchestrator: Handles intent signaling and fulfillment coordination
8
+ *
9
+ * Key differences from V2:
10
+ * - Uses paymentMethod (bytes32) instead of verifier address
11
+ * - Supports delegate addresses for deposit management
12
+ * - Has intent guardian for additional security
13
+ * - Dust collection for small remaining balances
14
+ */
15
+ export const EscrowAbi = [{ "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" }];
@@ -0,0 +1,26 @@
1
+ /**
2
+ * V3 NullifierRegistry ABI
3
+ *
4
+ * The NullifierRegistry prevents double-spending by tracking which nullifiers
5
+ * have been used. Each payment attestation includes a unique nullifier that
6
+ * can only be used once.
7
+ *
8
+ * Standard nullifier registry interface:
9
+ * - isNullified(bytes32) - Check if a nullifier has been used
10
+ * - addNullifier(bytes32) - Mark a nullifier as used (called by verifier)
11
+ */
12
+ export declare const NullifierRegistryAbi: readonly [{
13
+ readonly inputs: readonly [{
14
+ readonly name: "_nullifier";
15
+ readonly type: "bytes32";
16
+ }];
17
+ readonly name: "isNullified";
18
+ readonly outputs: readonly [{
19
+ readonly name: "";
20
+ readonly type: "bool";
21
+ }];
22
+ readonly stateMutability: "view";
23
+ readonly type: "function";
24
+ }];
25
+ export type NullifierRegistryAbi = typeof NullifierRegistryAbi;
26
+ //# sourceMappingURL=NullifierRegistry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NullifierRegistry.d.ts","sourceRoot":"","sources":["../../src/v3/NullifierRegistry.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAQT,CAAC;AAEzB,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * V3 NullifierRegistry ABI
3
+ *
4
+ * The NullifierRegistry prevents double-spending by tracking which nullifiers
5
+ * have been used. Each payment attestation includes a unique nullifier that
6
+ * can only be used once.
7
+ *
8
+ * Standard nullifier registry interface:
9
+ * - isNullified(bytes32) - Check if a nullifier has been used
10
+ * - addNullifier(bytes32) - Mark a nullifier as used (called by verifier)
11
+ */
12
+ export const NullifierRegistryAbi = [
13
+ {
14
+ inputs: [{ name: '_nullifier', type: 'bytes32' }],
15
+ name: 'isNullified',
16
+ outputs: [{ name: '', type: 'bool' }],
17
+ stateMutability: 'view',
18
+ type: 'function',
19
+ },
20
+ ];