@zkp2p/contracts-v2 0.3.0 → 0.3.1-rc.0
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.
- package/README.md +6 -0
- package/_cjs/abis/base/index.js +52 -23
- package/_cjs/abis/baseStaging/BoundedCall.js +93 -0
- package/_cjs/abis/baseStaging/BoundedCall.json +91 -0
- package/_cjs/abis/baseStaging/DeferredPayoutHook.js +247 -0
- package/_cjs/abis/baseStaging/DeferredPayoutHook.json +245 -0
- package/_cjs/abis/baseStaging/FeeSettlementLib.js +35 -0
- package/_cjs/abis/baseStaging/FeeSettlementLib.json +33 -0
- package/_cjs/abis/baseStaging/NullifierRegistryV2.js +339 -0
- package/_cjs/abis/baseStaging/NullifierRegistryV2.json +337 -0
- package/_cjs/abis/baseStaging/OrchestratorV3.js +1857 -0
- package/_cjs/abis/baseStaging/OrchestratorV3.json +1855 -0
- package/_cjs/abis/baseStaging/PostIntentHookExecutor.js +3 -0
- package/_cjs/abis/baseStaging/PostIntentHookExecutor.json +1 -0
- package/_cjs/abis/baseStaging/RiskAttestationVerifier.js +243 -0
- package/_cjs/abis/baseStaging/RiskAttestationVerifier.json +241 -0
- package/_cjs/abis/baseStaging/RiskManager.js +2043 -0
- package/_cjs/abis/baseStaging/RiskManager.json +2041 -0
- package/_cjs/abis/baseStaging/RiskSettlementExecutor.js +106 -0
- package/_cjs/abis/baseStaging/RiskSettlementExecutor.json +104 -0
- package/_cjs/abis/baseStaging/StakeVault.js +2397 -0
- package/_cjs/abis/baseStaging/StakeVault.json +2395 -0
- package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.js +2397 -0
- package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.json +2395 -0
- package/_cjs/abis/baseStaging/UnifiedPaymentVerifierV3.js +366 -0
- package/_cjs/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
- package/_cjs/abis/baseStaging/index.js +76 -23
- package/_cjs/abis/baseStaging.cjs +12 -0
- package/_cjs/abis/baseStaging.mjs +12 -0
- package/_cjs/abis/contracts/IIntentRiskHook.js +97 -0
- package/_cjs/abis/contracts/IIntentRiskHook.json +95 -0
- package/_cjs/abis/contracts/NullifierRegistryV2.js +339 -0
- package/_cjs/abis/contracts/NullifierRegistryV2.json +337 -0
- package/_cjs/abis/contracts/OrchestratorV3.js +1857 -0
- package/_cjs/abis/contracts/OrchestratorV3.json +1855 -0
- package/_cjs/abis/contracts/RiskManager.js +2043 -0
- package/_cjs/abis/contracts/RiskManager.json +2041 -0
- package/_cjs/abis/contracts/StakeVault.js +2397 -0
- package/_cjs/abis/contracts/StakeVault.json +2395 -0
- package/_cjs/abis/contracts/UnifiedPaymentVerifierV3.js +366 -0
- package/_cjs/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
- package/_cjs/abis/contracts/index.js +18 -0
- package/_cjs/abis/contracts.cjs +9 -0
- package/_cjs/abis/contracts.mjs +7 -0
- package/_cjs/abis/index.js +39 -2
- package/_cjs/addresses/base.js +14 -2
- package/_cjs/addresses/base.json +14 -2
- package/_cjs/addresses/baseStaging.js +14 -2
- package/_cjs/addresses/baseStaging.json +14 -2
- package/_cjs/addresses/index.js +10 -2
- package/_cjs/addresses/index.json +1 -1
- package/_cjs/constants/index.js +10 -2
- package/_cjs/constants/index.json +1 -1
- package/_cjs/currencies/currencies.js +1 -1
- package/_cjs/currencies/currencies.json +1 -1
- package/_cjs/currencies/index.js +8 -5
- package/_cjs/oracleFeeds/chainlink.js +1 -1
- package/_cjs/oracleFeeds/chainlink.json +1 -1
- package/_cjs/oracleFeeds/index.js +8 -5
- package/_cjs/paymentMethods/base.js +1 -1
- package/_cjs/paymentMethods/base.json +1 -1
- package/_cjs/paymentMethods/baseStaging.js +1 -1
- package/_cjs/paymentMethods/baseStaging.json +1 -1
- package/_cjs/paymentMethods/index.js +24 -20
- package/_cjs/paymentMethods/index.json +1 -1
- package/_cjs/paymentMethods/lookups.js +1 -1
- package/_cjs/paymentMethods/lookups.json +1 -1
- package/_cjs/types/common.js +2 -46
- package/_cjs/types/contracts/Escrow.js +2 -2748
- package/_cjs/types/contracts/EscrowV2.js +2 -3449
- package/_cjs/types/contracts/Orchestrator.js +2 -1328
- package/_cjs/types/contracts/OrchestratorV2.js +2 -1585
- package/_cjs/types/contracts/OrchestratorV3.js +2 -2136
- package/_cjs/types/contracts/ProtocolViewer.js +2 -473
- package/_cjs/types/contracts/ProtocolViewerV2.js +2 -467
- package/_cjs/types/contracts/RateManagerV1.js +2 -1010
- package/_cjs/types/contracts/RiskManager.js +2 -0
- package/_cjs/types/contracts/StakeVault.js +2 -2901
- package/_cjs/types/contracts/external/Interfaces/IAcrossSpokePool.js +2 -165
- package/_cjs/types/contracts/external/Interfaces/index.js +2 -4
- package/_cjs/types/contracts/external/index.js +2 -5
- package/_cjs/types/contracts/hooks/AcrossBridgeHook.js +2 -547
- package/_cjs/types/contracts/hooks/AcrossBridgeHookV2.js +2 -553
- package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.js +2 -360
- package/_cjs/types/contracts/hooks/WhitelistPreIntentHook.js +2 -433
- package/_cjs/types/contracts/hooks/index.js +2 -8
- package/_cjs/types/contracts/index.js +2 -27
- package/_cjs/types/contracts/interfaces/IAttestationVerifier.js +2 -114
- package/_cjs/types/contracts/interfaces/IChainlinkAggregatorV3.js +2 -132
- package/_cjs/types/contracts/interfaces/IEscrow.js +2 -1382
- package/_cjs/types/contracts/interfaces/IEscrowRegistry.js +2 -150
- package/_cjs/types/contracts/interfaces/IEscrowV2.js +2 -2195
- package/_cjs/types/contracts/interfaces/IIntentRiskHook.js +2 -224
- package/_cjs/types/contracts/interfaces/INullifierRegistry.js +2 -141
- package/_cjs/types/contracts/interfaces/INullifierRegistryV2.js +2 -0
- package/_cjs/types/contracts/interfaces/IOracleAdapter.js +2 -154
- package/_cjs/types/contracts/interfaces/IOrchestrator.js +2 -707
- package/_cjs/types/contracts/interfaces/IOrchestratorRegistry.js +2 -178
- package/_cjs/types/contracts/interfaces/IOrchestratorV2.js +2 -1021
- package/_cjs/types/contracts/interfaces/IOrchestratorV3.js +2 -1494
- package/_cjs/types/contracts/interfaces/IPaymentVerifier.js +2 -132
- package/_cjs/types/contracts/interfaces/IPaymentVerifierRegistry.js +2 -233
- package/_cjs/types/contracts/interfaces/IPostIntentHook.js +2 -168
- package/_cjs/types/contracts/interfaces/IPostIntentHookRegistry.js +2 -126
- package/_cjs/types/contracts/interfaces/IPostIntentHookV2.js +2 -172
- package/_cjs/types/contracts/interfaces/IPreIntentHook.js +2 -157
- package/_cjs/types/contracts/interfaces/IProtocolViewer.js +2 -319
- package/_cjs/types/contracts/interfaces/IProtocolViewerV2.js +2 -467
- package/_cjs/types/contracts/interfaces/IPyth.js +2 -195
- package/_cjs/types/contracts/interfaces/IRateManager.js +2 -239
- package/_cjs/types/contracts/interfaces/IReferralFee.js +2 -55
- package/_cjs/types/contracts/interfaces/IRelayerRegistry.js +2 -126
- package/_cjs/types/contracts/interfaces/IRiskManager.js +2 -0
- package/_cjs/types/contracts/interfaces/IStakeVault.js +2 -2587
- package/_cjs/types/contracts/interfaces/index.js +2 -30
- package/_cjs/types/contracts/lib/BoundedCall.js +2 -87
- package/_cjs/types/contracts/lib/FeeSettlementLib.js +2 -0
- package/_cjs/types/contracts/lib/RiskSettlementExecutor.js +2 -0
- package/_cjs/types/contracts/lib/index.js +2 -4
- package/_cjs/types/contracts/oracles/ChainlinkOracleAdapter.js +2 -154
- package/_cjs/types/contracts/oracles/PythOracleAdapter.js +2 -167
- package/_cjs/types/contracts/oracles/index.js +2 -5
- package/_cjs/types/contracts/registries/EscrowRegistry.js +2 -463
- package/_cjs/types/contracts/registries/NullifierRegistry.js +2 -447
- package/_cjs/types/contracts/registries/NullifierRegistryV2.js +2 -0
- package/_cjs/types/contracts/registries/OrchestratorRegistry.js +2 -324
- package/_cjs/types/contracts/registries/PaymentVerifierRegistry.js +2 -657
- package/_cjs/types/contracts/registries/PostIntentHookRegistry.js +2 -414
- package/_cjs/types/contracts/registries/RelayerRegistry.js +2 -371
- package/_cjs/types/contracts/registries/index.js +2 -9
- package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +2 -502
- package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.js +2 -0
- package/_cjs/types/contracts/unifiedVerifier/MultiAttestationVerifier.js +2 -474
- package/_cjs/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +2 -315
- package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +2 -620
- package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.js +2 -0
- package/_cjs/types/contracts/unifiedVerifier/index.js +2 -7
- package/_cjs/types/index.js +37 -1
- package/_cjs/utils/index.js +24 -4
- package/_cjs/utils/protocolUtils.js +60 -70
- package/_cjs/utils/riskMath.js +72 -0
- package/_esm/abis/base/index.js +23 -23
- package/_esm/abis/baseStaging/BoundedCall.js +92 -0
- package/_esm/abis/baseStaging/BoundedCall.json +91 -0
- package/_esm/abis/baseStaging/DeferredPayoutHook.js +246 -0
- package/_esm/abis/baseStaging/DeferredPayoutHook.json +245 -0
- package/_esm/abis/baseStaging/FeeSettlementLib.js +34 -0
- package/_esm/abis/baseStaging/FeeSettlementLib.json +33 -0
- package/_esm/abis/baseStaging/NullifierRegistryV2.js +338 -0
- package/_esm/abis/baseStaging/NullifierRegistryV2.json +337 -0
- package/_esm/abis/baseStaging/OrchestratorV3.js +1856 -0
- package/_esm/abis/baseStaging/OrchestratorV3.json +1855 -0
- package/_esm/abis/baseStaging/PostIntentHookExecutor.js +2 -0
- package/_esm/abis/baseStaging/PostIntentHookExecutor.json +1 -0
- package/_esm/abis/baseStaging/RiskAttestationVerifier.js +242 -0
- package/_esm/abis/baseStaging/RiskAttestationVerifier.json +241 -0
- package/_esm/abis/baseStaging/RiskManager.js +2042 -0
- package/_esm/abis/baseStaging/RiskManager.json +2041 -0
- package/_esm/abis/baseStaging/RiskSettlementExecutor.js +105 -0
- package/_esm/abis/baseStaging/RiskSettlementExecutor.json +104 -0
- package/_esm/abis/baseStaging/StakeVault.js +2396 -0
- package/_esm/abis/baseStaging/StakeVault.json +2395 -0
- package/_esm/abis/baseStaging/StakeVaultRiskSettlement.js +2396 -0
- package/_esm/abis/baseStaging/StakeVaultRiskSettlement.json +2395 -0
- package/_esm/abis/baseStaging/UnifiedPaymentVerifierV3.js +365 -0
- package/_esm/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
- package/_esm/abis/baseStaging/index.js +35 -23
- package/_esm/abis/baseStaging.cjs +12 -0
- package/_esm/abis/baseStaging.mjs +12 -0
- package/_esm/abis/contracts/IIntentRiskHook.js +96 -0
- package/_esm/abis/contracts/IIntentRiskHook.json +95 -0
- package/_esm/abis/contracts/NullifierRegistryV2.js +338 -0
- package/_esm/abis/contracts/NullifierRegistryV2.json +337 -0
- package/_esm/abis/contracts/OrchestratorV3.js +1856 -0
- package/_esm/abis/contracts/OrchestratorV3.json +1855 -0
- package/_esm/abis/contracts/RiskManager.js +2042 -0
- package/_esm/abis/contracts/RiskManager.json +2041 -0
- package/_esm/abis/contracts/StakeVault.js +2396 -0
- package/_esm/abis/contracts/StakeVault.json +2395 -0
- package/_esm/abis/contracts/UnifiedPaymentVerifierV3.js +365 -0
- package/_esm/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
- package/_esm/abis/contracts/index.js +6 -0
- package/_esm/abis/contracts.cjs +9 -0
- package/_esm/abis/contracts.mjs +7 -0
- package/_esm/abis/index.js +1 -0
- package/_esm/addresses/base.js +14 -2
- package/_esm/addresses/base.json +14 -2
- package/_esm/addresses/baseStaging.js +14 -2
- package/_esm/addresses/baseStaging.json +14 -2
- package/_esm/addresses/index.js +2 -2
- package/_esm/addresses/index.json +1 -1
- package/_esm/constants/index.js +2 -2
- package/_esm/constants/index.json +1 -1
- package/_esm/currencies/currencies.js +1 -1
- package/_esm/currencies/currencies.json +1 -1
- package/_esm/currencies/index.js +1 -5
- package/_esm/oracleFeeds/chainlink.js +1 -1
- package/_esm/oracleFeeds/chainlink.json +1 -1
- package/_esm/oracleFeeds/index.js +1 -5
- package/_esm/paymentMethods/base.js +1 -1
- package/_esm/paymentMethods/base.json +1 -1
- package/_esm/paymentMethods/baseStaging.js +1 -1
- package/_esm/paymentMethods/baseStaging.json +1 -1
- package/_esm/paymentMethods/index.js +13 -19
- package/_esm/paymentMethods/index.json +1 -1
- package/_esm/paymentMethods/lookups.js +1 -1
- package/_esm/paymentMethods/lookups.json +1 -1
- package/_esm/types/common.js +1 -46
- package/_esm/types/contracts/Escrow.js +1 -2748
- package/_esm/types/contracts/EscrowV2.js +1 -3449
- package/_esm/types/contracts/Orchestrator.js +1 -1328
- package/_esm/types/contracts/OrchestratorV2.js +1 -1585
- package/_esm/types/contracts/OrchestratorV3.js +1 -2136
- package/_esm/types/contracts/ProtocolViewer.js +1 -473
- package/_esm/types/contracts/ProtocolViewerV2.js +1 -467
- package/_esm/types/contracts/RateManagerV1.js +1 -1010
- package/_esm/types/contracts/RiskManager.js +1 -0
- package/_esm/types/contracts/StakeVault.js +1 -2901
- package/_esm/types/contracts/external/Interfaces/IAcrossSpokePool.js +1 -165
- package/_esm/types/contracts/external/Interfaces/index.js +1 -4
- package/_esm/types/contracts/external/index.js +1 -5
- package/_esm/types/contracts/hooks/AcrossBridgeHook.js +1 -547
- package/_esm/types/contracts/hooks/AcrossBridgeHookV2.js +1 -553
- package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.js +1 -360
- package/_esm/types/contracts/hooks/WhitelistPreIntentHook.js +1 -433
- package/_esm/types/contracts/hooks/index.js +1 -8
- package/_esm/types/contracts/index.js +1 -27
- package/_esm/types/contracts/interfaces/IAttestationVerifier.js +1 -114
- package/_esm/types/contracts/interfaces/IChainlinkAggregatorV3.js +1 -132
- package/_esm/types/contracts/interfaces/IEscrow.js +1 -1382
- package/_esm/types/contracts/interfaces/IEscrowRegistry.js +1 -150
- package/_esm/types/contracts/interfaces/IEscrowV2.js +1 -2195
- package/_esm/types/contracts/interfaces/IIntentRiskHook.js +1 -224
- package/_esm/types/contracts/interfaces/INullifierRegistry.js +1 -141
- package/_esm/types/contracts/interfaces/INullifierRegistryV2.js +1 -0
- package/_esm/types/contracts/interfaces/IOracleAdapter.js +1 -154
- package/_esm/types/contracts/interfaces/IOrchestrator.js +1 -707
- package/_esm/types/contracts/interfaces/IOrchestratorRegistry.js +1 -178
- package/_esm/types/contracts/interfaces/IOrchestratorV2.js +1 -1021
- package/_esm/types/contracts/interfaces/IOrchestratorV3.js +1 -1494
- package/_esm/types/contracts/interfaces/IPaymentVerifier.js +1 -132
- package/_esm/types/contracts/interfaces/IPaymentVerifierRegistry.js +1 -233
- package/_esm/types/contracts/interfaces/IPostIntentHook.js +1 -168
- package/_esm/types/contracts/interfaces/IPostIntentHookRegistry.js +1 -126
- package/_esm/types/contracts/interfaces/IPostIntentHookV2.js +1 -172
- package/_esm/types/contracts/interfaces/IPreIntentHook.js +1 -157
- package/_esm/types/contracts/interfaces/IProtocolViewer.js +1 -319
- package/_esm/types/contracts/interfaces/IProtocolViewerV2.js +1 -467
- package/_esm/types/contracts/interfaces/IPyth.js +1 -195
- package/_esm/types/contracts/interfaces/IRateManager.js +1 -239
- package/_esm/types/contracts/interfaces/IReferralFee.js +1 -55
- package/_esm/types/contracts/interfaces/IRelayerRegistry.js +1 -126
- package/_esm/types/contracts/interfaces/IRiskManager.js +1 -0
- package/_esm/types/contracts/interfaces/IStakeVault.js +1 -2587
- package/_esm/types/contracts/interfaces/index.js +1 -30
- package/_esm/types/contracts/lib/BoundedCall.js +1 -87
- package/_esm/types/contracts/lib/FeeSettlementLib.js +1 -0
- package/_esm/types/contracts/lib/RiskSettlementExecutor.js +1 -0
- package/_esm/types/contracts/lib/index.js +1 -4
- package/_esm/types/contracts/oracles/ChainlinkOracleAdapter.js +1 -154
- package/_esm/types/contracts/oracles/PythOracleAdapter.js +1 -167
- package/_esm/types/contracts/oracles/index.js +1 -5
- package/_esm/types/contracts/registries/EscrowRegistry.js +1 -463
- package/_esm/types/contracts/registries/NullifierRegistry.js +1 -447
- package/_esm/types/contracts/registries/NullifierRegistryV2.js +1 -0
- package/_esm/types/contracts/registries/OrchestratorRegistry.js +1 -324
- package/_esm/types/contracts/registries/PaymentVerifierRegistry.js +1 -657
- package/_esm/types/contracts/registries/PostIntentHookRegistry.js +1 -414
- package/_esm/types/contracts/registries/RelayerRegistry.js +1 -371
- package/_esm/types/contracts/registries/index.js +1 -9
- package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +1 -502
- package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.js +1 -0
- package/_esm/types/contracts/unifiedVerifier/MultiAttestationVerifier.js +1 -474
- package/_esm/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +1 -315
- package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +1 -620
- package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.js +1 -0
- package/_esm/types/contracts/unifiedVerifier/index.js +1 -7
- package/_esm/utils/index.js +2 -8
- package/_esm/utils/protocolUtils.js +49 -66
- package/_esm/utils/riskMath.js +64 -0
- package/_types/abis/base/index.d.ts +23 -0
- package/_types/abis/baseStaging/index.d.ts +35 -0
- package/_types/abis/baseStaging.d.ts +12 -0
- package/_types/abis/contracts/index.d.ts +6 -0
- package/_types/abis/contracts.d.ts +8 -0
- package/_types/abis/index.d.ts +3 -0
- package/_types/addresses/index.d.ts +2 -3
- package/_types/constants/index.d.ts +2 -3
- package/_types/currencies/index.d.ts +3 -3
- package/_types/oracleFeeds/index.d.ts +3 -3
- package/_types/paymentMethods/index.d.ts +10 -4
- package/_types/types/common.d.ts +22 -0
- package/_types/types/contracts/Escrow.d.ts +1241 -0
- package/_types/types/contracts/EscrowV2.d.ts +1570 -0
- package/_types/types/contracts/Orchestrator.d.ts +672 -0
- package/_types/types/contracts/OrchestratorV2.d.ts +780 -0
- package/_types/types/contracts/OrchestratorV3.d.ts +951 -0
- package/_types/types/contracts/ProtocolViewer.d.ts +273 -0
- package/_types/types/contracts/ProtocolViewerV2.d.ts +264 -0
- package/_types/types/contracts/RateManagerV1.d.ts +447 -0
- package/_types/types/contracts/RiskManager.d.ts +1031 -0
- package/_types/types/contracts/StakeVault.d.ts +1357 -0
- package/_types/types/contracts/external/Interfaces/IAcrossSpokePool.d.ts +62 -0
- package/_types/types/contracts/external/Interfaces/index.d.ts +1 -0
- package/_types/types/contracts/external/index.d.ts +2 -0
- package/_types/types/contracts/hooks/AcrossBridgeHook.d.ts +290 -0
- package/_types/types/contracts/hooks/AcrossBridgeHookV2.d.ts +297 -0
- package/_types/types/contracts/hooks/SignatureGatingPreIntentHook.d.ts +160 -0
- package/_types/types/contracts/hooks/WhitelistPreIntentHook.d.ts +193 -0
- package/_types/types/contracts/hooks/index.d.ts +4 -0
- package/_types/types/contracts/index.d.ts +24 -0
- package/_types/types/contracts/interfaces/IAttestationVerifier.d.ts +48 -0
- package/_types/types/contracts/interfaces/IChainlinkAggregatorV3.d.ts +86 -0
- package/_types/types/contracts/interfaces/IEscrow.d.ts +640 -0
- package/_types/types/contracts/interfaces/IEscrowRegistry.d.ts +58 -0
- package/_types/types/contracts/interfaces/IEscrowV2.d.ts +1041 -0
- package/_types/types/contracts/interfaces/IIntentRiskHook.d.ts +120 -0
- package/_types/types/contracts/interfaces/INullifierRegistry.d.ts +58 -0
- package/_types/types/contracts/interfaces/INullifierRegistryV2.d.ts +165 -0
- package/_types/types/contracts/interfaces/IOracleAdapter.d.ts +76 -0
- package/_types/types/contracts/interfaces/IOrchestrator.d.ts +385 -0
- package/_types/types/contracts/interfaces/IOrchestratorRegistry.d.ts +76 -0
- package/_types/types/contracts/interfaces/IOrchestratorV2.d.ts +517 -0
- package/_types/types/contracts/interfaces/IOrchestratorV3.d.ts +716 -0
- package/_types/types/contracts/interfaces/IPaymentVerifier.d.ts +76 -0
- package/_types/types/contracts/interfaces/IPaymentVerifierRegistry.d.ts +74 -0
- package/_types/types/contracts/interfaces/IPostIntentHook.d.ts +103 -0
- package/_types/types/contracts/interfaces/IPostIntentHookRegistry.d.ts +50 -0
- package/_types/types/contracts/interfaces/IPostIntentHookV2.d.ts +110 -0
- package/_types/types/contracts/interfaces/IPreIntentHook.d.ts +97 -0
- package/_types/types/contracts/interfaces/IProtocolViewer.d.ts +217 -0
- package/_types/types/contracts/interfaces/IProtocolViewerV2.d.ts +264 -0
- package/_types/types/contracts/interfaces/IPyth.d.ts +84 -0
- package/_types/types/contracts/interfaces/IRateManager.d.ts +93 -0
- package/_types/types/contracts/interfaces/IReferralFee.d.ts +27 -0
- package/_types/types/contracts/interfaces/IRelayerRegistry.d.ts +50 -0
- package/_types/types/contracts/interfaces/IRiskManager.d.ts +825 -0
- package/_types/types/contracts/interfaces/IStakeVault.d.ts +1232 -0
- package/_types/types/contracts/interfaces/index.d.ts +27 -0
- package/_types/types/contracts/lib/BoundedCall.d.ts +47 -0
- package/_types/types/contracts/lib/FeeSettlementLib.d.ts +47 -0
- package/_types/types/contracts/lib/RiskSettlementExecutor.d.ts +53 -0
- package/_types/types/contracts/lib/index.d.ts +3 -0
- package/_types/types/contracts/oracles/ChainlinkOracleAdapter.d.ts +76 -0
- package/_types/types/contracts/oracles/PythOracleAdapter.d.ts +84 -0
- package/_types/types/contracts/oracles/index.d.ts +2 -0
- package/_types/types/contracts/registries/EscrowRegistry.d.ts +206 -0
- package/_types/types/contracts/registries/NullifierRegistry.d.ts +200 -0
- package/_types/types/contracts/registries/NullifierRegistryV2.d.ts +218 -0
- package/_types/types/contracts/registries/OrchestratorRegistry.d.ts +151 -0
- package/_types/types/contracts/registries/PaymentVerifierRegistry.d.ts +270 -0
- package/_types/types/contracts/registries/PostIntentHookRegistry.d.ts +175 -0
- package/_types/types/contracts/registries/RelayerRegistry.d.ts +165 -0
- package/_types/types/contracts/registries/index.d.ts +7 -0
- package/_types/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.d.ts +220 -0
- package/_types/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.d.ts +220 -0
- package/_types/types/contracts/unifiedVerifier/MultiAttestationVerifier.d.ts +216 -0
- package/_types/types/contracts/unifiedVerifier/SimpleAttestationVerifier.d.ts +148 -0
- package/_types/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.d.ts +293 -0
- package/_types/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.d.ts +293 -0
- package/_types/types/contracts/unifiedVerifier/index.d.ts +6 -0
- package/_types/types/index.d.ts +1 -0
- package/_types/utils/index.d.ts +3 -0
- package/_types/utils/protocolUtils.d.ts +40 -0
- package/_types/utils/riskMath.d.ts +30 -0
- package/abis/base/index.d.ts +23 -0
- package/abis/baseStaging/BoundedCall.json +91 -0
- package/abis/baseStaging/DeferredPayoutHook.json +245 -0
- package/abis/baseStaging/FeeSettlementLib.json +33 -0
- package/abis/baseStaging/NullifierRegistryV2.json +337 -0
- package/abis/baseStaging/OrchestratorV3.json +1855 -0
- package/abis/baseStaging/PostIntentHookExecutor.json +1 -0
- package/abis/baseStaging/RiskAttestationVerifier.json +241 -0
- package/abis/baseStaging/RiskManager.json +2041 -0
- package/abis/baseStaging/RiskSettlementExecutor.json +104 -0
- package/abis/baseStaging/StakeVault.json +2395 -0
- package/abis/baseStaging/StakeVaultRiskSettlement.json +2395 -0
- package/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
- package/abis/baseStaging/index.d.ts +35 -0
- package/abis/baseStaging/index.ts +12 -0
- package/abis/baseStaging.cjs +12 -0
- package/abis/baseStaging.d.ts +12 -0
- package/abis/baseStaging.mjs +12 -0
- package/abis/contracts/IIntentRiskHook.json +95 -0
- package/abis/contracts/NullifierRegistryV2.json +337 -0
- package/abis/contracts/OrchestratorV3.json +1855 -0
- package/abis/contracts/RiskManager.json +2041 -0
- package/abis/contracts/StakeVault.json +2395 -0
- package/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
- package/abis/contracts/index.d.ts +6 -0
- package/abis/contracts/index.ts +6 -0
- package/abis/contracts.cjs +9 -0
- package/abis/contracts.d.ts +8 -0
- package/abis/contracts.mjs +7 -0
- package/abis/index.d.ts +3 -0
- package/abis/index.ts +1 -0
- package/addresses/base.json +14 -2
- package/addresses/baseStaging.json +14 -2
- package/addresses/index.d.ts +2 -3
- package/addresses/index.json +1 -1
- package/constants/index.d.ts +2 -3
- package/constants/index.json +1 -1
- package/currencies/currencies.json +1 -1
- package/currencies/index.d.ts +3 -3
- package/oracleFeeds/chainlink.json +1 -1
- package/oracleFeeds/index.d.ts +3 -3
- package/package.json +16 -1
- package/paymentMethods/base.json +1 -1
- package/paymentMethods/baseStaging.json +1 -1
- package/paymentMethods/index.json +1 -1
- package/paymentMethods/lookups.json +1 -1
- package/types/common.d.ts +22 -0
- package/types/contracts/Escrow.d.ts +1241 -0
- package/types/contracts/EscrowV2.d.ts +1570 -0
- package/types/contracts/Orchestrator.d.ts +672 -0
- package/types/contracts/OrchestratorV2.d.ts +780 -0
- package/types/contracts/OrchestratorV3.d.ts +951 -0
- package/types/contracts/OrchestratorV3.ts +243 -403
- package/types/contracts/ProtocolViewer.d.ts +273 -0
- package/types/contracts/ProtocolViewerV2.d.ts +264 -0
- package/types/contracts/RateManagerV1.d.ts +447 -0
- package/types/contracts/RiskManager.d.ts +1031 -0
- package/{_cjs/types/contracts/RiskTierManager.js → types/contracts/RiskManager.ts} +802 -923
- package/types/contracts/StakeVault.d.ts +1357 -0
- package/types/contracts/StakeVault.ts +488 -406
- package/types/contracts/external/Interfaces/IAcrossSpokePool.d.ts +62 -0
- package/types/contracts/external/Interfaces/index.d.ts +1 -0
- package/types/contracts/external/index.d.ts +2 -0
- package/types/contracts/hooks/AcrossBridgeHook.d.ts +290 -0
- package/types/contracts/hooks/AcrossBridgeHookV2.d.ts +297 -0
- package/types/contracts/hooks/SignatureGatingPreIntentHook.d.ts +160 -0
- package/types/contracts/hooks/WhitelistPreIntentHook.d.ts +193 -0
- package/types/contracts/hooks/index.d.ts +4 -0
- package/types/contracts/hooks/index.ts +0 -1
- package/types/contracts/index.d.ts +24 -0
- package/types/contracts/index.ts +1 -1
- package/types/contracts/interfaces/IAttestationVerifier.d.ts +48 -0
- package/types/contracts/interfaces/IChainlinkAggregatorV3.d.ts +86 -0
- package/types/contracts/interfaces/IEscrow.d.ts +640 -0
- package/types/contracts/interfaces/IEscrowRegistry.d.ts +58 -0
- package/types/contracts/interfaces/IEscrowV2.d.ts +1041 -0
- package/types/contracts/interfaces/IEscrowV2.ts +22 -0
- package/types/contracts/interfaces/IIntentRiskHook.d.ts +120 -0
- package/types/contracts/interfaces/IIntentRiskHook.ts +57 -60
- package/types/contracts/interfaces/INullifierRegistry.d.ts +58 -0
- package/types/contracts/interfaces/INullifierRegistryV2.d.ts +165 -0
- package/types/contracts/interfaces/INullifierRegistryV2.ts +420 -0
- package/types/contracts/interfaces/IOracleAdapter.d.ts +76 -0
- package/types/contracts/interfaces/IOrchestrator.d.ts +385 -0
- package/types/contracts/interfaces/IOrchestratorRegistry.d.ts +76 -0
- package/types/contracts/interfaces/IOrchestratorV2.d.ts +517 -0
- package/types/contracts/interfaces/IOrchestratorV3.d.ts +716 -0
- package/types/contracts/interfaces/IOrchestratorV3.ts +214 -245
- package/types/contracts/interfaces/IPaymentVerifier.d.ts +76 -0
- package/types/contracts/interfaces/IPaymentVerifierRegistry.d.ts +74 -0
- package/types/contracts/interfaces/IPostIntentHook.d.ts +103 -0
- package/types/contracts/interfaces/IPostIntentHookRegistry.d.ts +50 -0
- package/types/contracts/interfaces/IPostIntentHookV2.d.ts +110 -0
- package/types/contracts/interfaces/IPreIntentHook.d.ts +97 -0
- package/types/contracts/interfaces/IProtocolViewer.d.ts +217 -0
- package/types/contracts/interfaces/IProtocolViewerV2.d.ts +264 -0
- package/types/contracts/interfaces/IPyth.d.ts +84 -0
- package/types/contracts/interfaces/IRateManager.d.ts +93 -0
- package/types/contracts/interfaces/IReferralFee.d.ts +27 -0
- package/types/contracts/interfaces/IRelayerRegistry.d.ts +50 -0
- package/types/contracts/interfaces/IRiskManager.d.ts +825 -0
- package/types/contracts/interfaces/{IRiskTierManager.ts → IRiskManager.ts} +664 -788
- package/types/contracts/interfaces/IStakeVault.d.ts +1232 -0
- package/types/contracts/interfaces/IStakeVault.ts +501 -397
- package/types/contracts/interfaces/index.d.ts +27 -0
- package/types/contracts/interfaces/index.ts +2 -2
- package/types/contracts/lib/BoundedCall.d.ts +47 -0
- package/types/contracts/lib/FeeSettlementLib.d.ts +47 -0
- package/types/contracts/lib/FeeSettlementLib.ts +87 -0
- package/types/contracts/lib/RiskSettlementExecutor.d.ts +53 -0
- package/types/contracts/lib/RiskSettlementExecutor.ts +98 -0
- package/types/contracts/lib/index.d.ts +3 -0
- package/types/contracts/lib/index.ts +2 -0
- package/types/contracts/oracles/ChainlinkOracleAdapter.d.ts +76 -0
- package/types/contracts/oracles/PythOracleAdapter.d.ts +84 -0
- package/types/contracts/oracles/index.d.ts +2 -0
- package/types/contracts/registries/EscrowRegistry.d.ts +206 -0
- package/types/contracts/registries/NullifierRegistry.d.ts +200 -0
- package/types/contracts/registries/NullifierRegistryV2.d.ts +218 -0
- package/types/contracts/registries/NullifierRegistryV2.ts +520 -0
- package/types/contracts/registries/OrchestratorRegistry.d.ts +151 -0
- package/types/contracts/registries/PaymentVerifierRegistry.d.ts +270 -0
- package/types/contracts/registries/PostIntentHookRegistry.d.ts +175 -0
- package/types/contracts/registries/RelayerRegistry.d.ts +165 -0
- package/types/contracts/registries/index.d.ts +7 -0
- package/types/contracts/registries/index.ts +1 -0
- package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.d.ts +220 -0
- package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.d.ts +220 -0
- package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.ts +502 -0
- package/types/contracts/unifiedVerifier/MultiAttestationVerifier.d.ts +216 -0
- package/types/contracts/unifiedVerifier/SimpleAttestationVerifier.d.ts +148 -0
- package/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.d.ts +293 -0
- package/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.d.ts +293 -0
- package/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.ts +620 -0
- package/types/contracts/unifiedVerifier/index.d.ts +6 -0
- package/types/contracts/unifiedVerifier/index.ts +2 -0
- package/types/index.d.ts +1 -0
- package/utils/index.d.ts +3 -0
- package/utils/index.ts +1 -0
- package/utils/protocolUtils.d.ts +40 -0
- package/utils/riskMath.d.ts +30 -0
- package/utils/riskMath.ts +103 -0
- package/_cjs/types/contracts/hooks/DeferredPayoutHook.js +0 -288
- package/_cjs/types/contracts/interfaces/IDeferredPayoutHook.js +0 -206
- package/_cjs/types/contracts/interfaces/IRiskTierManager.js +0 -1704
- package/_esm/types/contracts/RiskTierManager.js +0 -2126
- package/_esm/types/contracts/hooks/DeferredPayoutHook.js +0 -288
- package/_esm/types/contracts/interfaces/IDeferredPayoutHook.js +0 -206
- package/_esm/types/contracts/interfaces/IRiskTierManager.js +0 -1704
- package/types/contracts/RiskTierManager.ts +0 -2126
- package/types/contracts/hooks/DeferredPayoutHook.ts +0 -288
- package/types/contracts/interfaces/IDeferredPayoutHook.ts +0 -206
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "contract IOrchestratorRegistry",
|
|
6
|
+
"name": "_orchestratorRegistry",
|
|
7
|
+
"type": "address"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "contract INullifierRegistryV2",
|
|
11
|
+
"name": "_nullifierRegistry",
|
|
12
|
+
"type": "address"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"internalType": "contract IAttestationVerifier",
|
|
16
|
+
"name": "_attestationVerifier",
|
|
17
|
+
"type": "address"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
"stateMutability": "nonpayable",
|
|
21
|
+
"type": "constructor"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"anonymous": false,
|
|
25
|
+
"inputs": [
|
|
26
|
+
{
|
|
27
|
+
"indexed": true,
|
|
28
|
+
"internalType": "address",
|
|
29
|
+
"name": "oldVerifier",
|
|
30
|
+
"type": "address"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"indexed": true,
|
|
34
|
+
"internalType": "address",
|
|
35
|
+
"name": "newVerifier",
|
|
36
|
+
"type": "address"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"name": "AttestationVerifierUpdated",
|
|
40
|
+
"type": "event"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"anonymous": false,
|
|
44
|
+
"inputs": [
|
|
45
|
+
{
|
|
46
|
+
"indexed": true,
|
|
47
|
+
"internalType": "address",
|
|
48
|
+
"name": "previousOwner",
|
|
49
|
+
"type": "address"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"indexed": true,
|
|
53
|
+
"internalType": "address",
|
|
54
|
+
"name": "newOwner",
|
|
55
|
+
"type": "address"
|
|
56
|
+
}
|
|
57
|
+
],
|
|
58
|
+
"name": "OwnershipTransferred",
|
|
59
|
+
"type": "event"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"anonymous": false,
|
|
63
|
+
"inputs": [
|
|
64
|
+
{
|
|
65
|
+
"indexed": true,
|
|
66
|
+
"internalType": "bytes32",
|
|
67
|
+
"name": "paymentMethod",
|
|
68
|
+
"type": "bytes32"
|
|
69
|
+
}
|
|
70
|
+
],
|
|
71
|
+
"name": "PaymentMethodAdded",
|
|
72
|
+
"type": "event"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"anonymous": false,
|
|
76
|
+
"inputs": [
|
|
77
|
+
{
|
|
78
|
+
"indexed": true,
|
|
79
|
+
"internalType": "bytes32",
|
|
80
|
+
"name": "paymentMethod",
|
|
81
|
+
"type": "bytes32"
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"name": "PaymentMethodRemoved",
|
|
85
|
+
"type": "event"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"anonymous": false,
|
|
89
|
+
"inputs": [
|
|
90
|
+
{
|
|
91
|
+
"indexed": true,
|
|
92
|
+
"internalType": "bytes32",
|
|
93
|
+
"name": "intentHash",
|
|
94
|
+
"type": "bytes32"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"indexed": true,
|
|
98
|
+
"internalType": "bytes32",
|
|
99
|
+
"name": "method",
|
|
100
|
+
"type": "bytes32"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"indexed": true,
|
|
104
|
+
"internalType": "bytes32",
|
|
105
|
+
"name": "currency",
|
|
106
|
+
"type": "bytes32"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"indexed": false,
|
|
110
|
+
"internalType": "uint256",
|
|
111
|
+
"name": "amount",
|
|
112
|
+
"type": "uint256"
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"indexed": false,
|
|
116
|
+
"internalType": "uint256",
|
|
117
|
+
"name": "timestamp",
|
|
118
|
+
"type": "uint256"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"indexed": false,
|
|
122
|
+
"internalType": "bytes32",
|
|
123
|
+
"name": "paymentId",
|
|
124
|
+
"type": "bytes32"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"indexed": false,
|
|
128
|
+
"internalType": "bytes32",
|
|
129
|
+
"name": "payeeId",
|
|
130
|
+
"type": "bytes32"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"name": "PaymentVerified",
|
|
134
|
+
"type": "event"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"inputs": [],
|
|
138
|
+
"name": "DOMAIN_SEPARATOR",
|
|
139
|
+
"outputs": [
|
|
140
|
+
{
|
|
141
|
+
"internalType": "bytes32",
|
|
142
|
+
"name": "",
|
|
143
|
+
"type": "bytes32"
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"stateMutability": "view",
|
|
147
|
+
"type": "function"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"inputs": [
|
|
151
|
+
{
|
|
152
|
+
"internalType": "bytes32",
|
|
153
|
+
"name": "_paymentMethod",
|
|
154
|
+
"type": "bytes32"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"name": "addPaymentMethod",
|
|
158
|
+
"outputs": [],
|
|
159
|
+
"stateMutability": "nonpayable",
|
|
160
|
+
"type": "function"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"inputs": [],
|
|
164
|
+
"name": "attestationVerifier",
|
|
165
|
+
"outputs": [
|
|
166
|
+
{
|
|
167
|
+
"internalType": "contract IAttestationVerifier",
|
|
168
|
+
"name": "",
|
|
169
|
+
"type": "address"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"stateMutability": "view",
|
|
173
|
+
"type": "function"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"inputs": [],
|
|
177
|
+
"name": "getPaymentMethods",
|
|
178
|
+
"outputs": [
|
|
179
|
+
{
|
|
180
|
+
"internalType": "bytes32[]",
|
|
181
|
+
"name": "",
|
|
182
|
+
"type": "bytes32[]"
|
|
183
|
+
}
|
|
184
|
+
],
|
|
185
|
+
"stateMutability": "view",
|
|
186
|
+
"type": "function"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"inputs": [
|
|
190
|
+
{
|
|
191
|
+
"internalType": "bytes32",
|
|
192
|
+
"name": "",
|
|
193
|
+
"type": "bytes32"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"name": "isPaymentMethod",
|
|
197
|
+
"outputs": [
|
|
198
|
+
{
|
|
199
|
+
"internalType": "bool",
|
|
200
|
+
"name": "",
|
|
201
|
+
"type": "bool"
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"stateMutability": "view",
|
|
205
|
+
"type": "function"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"inputs": [],
|
|
209
|
+
"name": "nullifierRegistry",
|
|
210
|
+
"outputs": [
|
|
211
|
+
{
|
|
212
|
+
"internalType": "contract INullifierRegistryV2",
|
|
213
|
+
"name": "",
|
|
214
|
+
"type": "address"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"stateMutability": "view",
|
|
218
|
+
"type": "function"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"inputs": [],
|
|
222
|
+
"name": "orchestratorRegistry",
|
|
223
|
+
"outputs": [
|
|
224
|
+
{
|
|
225
|
+
"internalType": "contract IOrchestratorRegistry",
|
|
226
|
+
"name": "",
|
|
227
|
+
"type": "address"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"stateMutability": "view",
|
|
231
|
+
"type": "function"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"inputs": [],
|
|
235
|
+
"name": "owner",
|
|
236
|
+
"outputs": [
|
|
237
|
+
{
|
|
238
|
+
"internalType": "address",
|
|
239
|
+
"name": "",
|
|
240
|
+
"type": "address"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"stateMutability": "view",
|
|
244
|
+
"type": "function"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"inputs": [
|
|
248
|
+
{
|
|
249
|
+
"internalType": "uint256",
|
|
250
|
+
"name": "",
|
|
251
|
+
"type": "uint256"
|
|
252
|
+
}
|
|
253
|
+
],
|
|
254
|
+
"name": "paymentMethods",
|
|
255
|
+
"outputs": [
|
|
256
|
+
{
|
|
257
|
+
"internalType": "bytes32",
|
|
258
|
+
"name": "",
|
|
259
|
+
"type": "bytes32"
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"stateMutability": "view",
|
|
263
|
+
"type": "function"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"inputs": [
|
|
267
|
+
{
|
|
268
|
+
"internalType": "bytes32",
|
|
269
|
+
"name": "_paymentMethod",
|
|
270
|
+
"type": "bytes32"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"name": "removePaymentMethod",
|
|
274
|
+
"outputs": [],
|
|
275
|
+
"stateMutability": "nonpayable",
|
|
276
|
+
"type": "function"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"inputs": [],
|
|
280
|
+
"name": "renounceOwnership",
|
|
281
|
+
"outputs": [],
|
|
282
|
+
"stateMutability": "nonpayable",
|
|
283
|
+
"type": "function"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"inputs": [
|
|
287
|
+
{
|
|
288
|
+
"internalType": "address",
|
|
289
|
+
"name": "_newVerifier",
|
|
290
|
+
"type": "address"
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"name": "setAttestationVerifier",
|
|
294
|
+
"outputs": [],
|
|
295
|
+
"stateMutability": "nonpayable",
|
|
296
|
+
"type": "function"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"inputs": [
|
|
300
|
+
{
|
|
301
|
+
"internalType": "address",
|
|
302
|
+
"name": "newOwner",
|
|
303
|
+
"type": "address"
|
|
304
|
+
}
|
|
305
|
+
],
|
|
306
|
+
"name": "transferOwnership",
|
|
307
|
+
"outputs": [],
|
|
308
|
+
"stateMutability": "nonpayable",
|
|
309
|
+
"type": "function"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"inputs": [
|
|
313
|
+
{
|
|
314
|
+
"components": [
|
|
315
|
+
{
|
|
316
|
+
"internalType": "bytes32",
|
|
317
|
+
"name": "intentHash",
|
|
318
|
+
"type": "bytes32"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"internalType": "bytes",
|
|
322
|
+
"name": "paymentProof",
|
|
323
|
+
"type": "bytes"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"internalType": "bytes",
|
|
327
|
+
"name": "data",
|
|
328
|
+
"type": "bytes"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"internalType": "struct IPaymentVerifier.VerifyPaymentData",
|
|
332
|
+
"name": "_verifyPaymentData",
|
|
333
|
+
"type": "tuple"
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
"name": "verifyPayment",
|
|
337
|
+
"outputs": [
|
|
338
|
+
{
|
|
339
|
+
"components": [
|
|
340
|
+
{
|
|
341
|
+
"internalType": "bool",
|
|
342
|
+
"name": "success",
|
|
343
|
+
"type": "bool"
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"internalType": "bytes32",
|
|
347
|
+
"name": "intentHash",
|
|
348
|
+
"type": "bytes32"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
"internalType": "uint256",
|
|
352
|
+
"name": "releaseAmount",
|
|
353
|
+
"type": "uint256"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"internalType": "struct IPaymentVerifier.PaymentVerificationResult",
|
|
357
|
+
"name": "result",
|
|
358
|
+
"type": "tuple"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"stateMutability": "nonpayable",
|
|
362
|
+
"type": "function"
|
|
363
|
+
}
|
|
364
|
+
]
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as RiskManager } from './RiskManager.json';
|
|
2
|
+
export { default as StakeVault } from './StakeVault.json';
|
|
3
|
+
export { default as OrchestratorV3 } from './OrchestratorV3.json';
|
|
4
|
+
export { default as IIntentRiskHook } from './IIntentRiskHook.json';
|
|
5
|
+
export { default as NullifierRegistryV2 } from './NullifierRegistryV2.json';
|
|
6
|
+
export { default as UnifiedPaymentVerifierV3 } from './UnifiedPaymentVerifierV3.json';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Auto-generated CommonJS wrapper for contracts ABIs
|
|
2
|
+
module.exports = {
|
|
3
|
+
IIntentRiskHook: require('../_cjs/abis/contracts/IIntentRiskHook.js'),
|
|
4
|
+
NullifierRegistryV2: require('../_cjs/abis/contracts/NullifierRegistryV2.js'),
|
|
5
|
+
OrchestratorV3: require('../_cjs/abis/contracts/OrchestratorV3.js'),
|
|
6
|
+
RiskManager: require('../_cjs/abis/contracts/RiskManager.js'),
|
|
7
|
+
StakeVault: require('../_cjs/abis/contracts/StakeVault.js'),
|
|
8
|
+
UnifiedPaymentVerifierV3: require('../_cjs/abis/contracts/UnifiedPaymentVerifierV3.js')
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Auto-generated ESM wrapper for contracts ABIs
|
|
2
|
+
export { default as IIntentRiskHook } from '../_esm/abis/contracts/IIntentRiskHook.js';
|
|
3
|
+
export { default as NullifierRegistryV2 } from '../_esm/abis/contracts/NullifierRegistryV2.js';
|
|
4
|
+
export { default as OrchestratorV3 } from '../_esm/abis/contracts/OrchestratorV3.js';
|
|
5
|
+
export { default as RiskManager } from '../_esm/abis/contracts/RiskManager.js';
|
|
6
|
+
export { default as StakeVault } from '../_esm/abis/contracts/StakeVault.js';
|
|
7
|
+
export { default as UnifiedPaymentVerifierV3 } from '../_esm/abis/contracts/UnifiedPaymentVerifierV3.js';
|
package/_esm/abis/index.js
CHANGED
package/_esm/addresses/base.js
CHANGED
|
@@ -24,10 +24,22 @@ const data = {
|
|
|
24
24
|
"SimpleAttestationVerifier": "0xED6C0C34c3964D239e7a315C55E620fafE5Ae3AC",
|
|
25
25
|
"UnifiedPaymentVerifier": "0x16b3e4a3CA36D3A4bCA281767f15C7ADeF4ab163",
|
|
26
26
|
"UnifiedPaymentVerifierV2": "0x46A58Dc65587D4D7B8198C6A25eEdf5b2535Da94",
|
|
27
|
-
"WhitelistPreIntentHook": "0xda023Ea0d789A41BcF5866F7B6BBd2CaDF9b79B8"
|
|
27
|
+
"WhitelistPreIntentHook": "0xda023Ea0d789A41BcF5866F7B6BBd2CaDF9b79B8",
|
|
28
|
+
"BoundedCall": "0x0000000000000000000000000000000000000000",
|
|
29
|
+
"DeferredPayoutHook": "0x0000000000000000000000000000000000000000",
|
|
30
|
+
"FeeSettlementLib": "0x0000000000000000000000000000000000000000",
|
|
31
|
+
"NullifierRegistryV2": "0x0000000000000000000000000000000000000000",
|
|
32
|
+
"OrchestratorV3": "0x0000000000000000000000000000000000000000",
|
|
33
|
+
"PostIntentHookExecutor": "0x0000000000000000000000000000000000000000",
|
|
34
|
+
"RiskAttestationVerifier": "0x0000000000000000000000000000000000000000",
|
|
35
|
+
"RiskManager": "0x0000000000000000000000000000000000000000",
|
|
36
|
+
"RiskSettlementExecutor": "0x0000000000000000000000000000000000000000",
|
|
37
|
+
"StakeVault": "0x0000000000000000000000000000000000000000",
|
|
38
|
+
"StakeVaultRiskSettlement": "0x0000000000000000000000000000000000000000",
|
|
39
|
+
"UnifiedPaymentVerifierV3": "0x0000000000000000000000000000000000000000"
|
|
28
40
|
},
|
|
29
41
|
"meta": {
|
|
30
|
-
"generatedAt": "2026-07-
|
|
42
|
+
"generatedAt": "2026-07-22T12:33:01.532Z"
|
|
31
43
|
}
|
|
32
44
|
};
|
|
33
45
|
export default data;
|
package/_esm/addresses/base.json
CHANGED
|
@@ -24,9 +24,21 @@
|
|
|
24
24
|
"SimpleAttestationVerifier": "0xED6C0C34c3964D239e7a315C55E620fafE5Ae3AC",
|
|
25
25
|
"UnifiedPaymentVerifier": "0x16b3e4a3CA36D3A4bCA281767f15C7ADeF4ab163",
|
|
26
26
|
"UnifiedPaymentVerifierV2": "0x46A58Dc65587D4D7B8198C6A25eEdf5b2535Da94",
|
|
27
|
-
"WhitelistPreIntentHook": "0xda023Ea0d789A41BcF5866F7B6BBd2CaDF9b79B8"
|
|
27
|
+
"WhitelistPreIntentHook": "0xda023Ea0d789A41BcF5866F7B6BBd2CaDF9b79B8",
|
|
28
|
+
"BoundedCall": "0x0000000000000000000000000000000000000000",
|
|
29
|
+
"DeferredPayoutHook": "0x0000000000000000000000000000000000000000",
|
|
30
|
+
"FeeSettlementLib": "0x0000000000000000000000000000000000000000",
|
|
31
|
+
"NullifierRegistryV2": "0x0000000000000000000000000000000000000000",
|
|
32
|
+
"OrchestratorV3": "0x0000000000000000000000000000000000000000",
|
|
33
|
+
"PostIntentHookExecutor": "0x0000000000000000000000000000000000000000",
|
|
34
|
+
"RiskAttestationVerifier": "0x0000000000000000000000000000000000000000",
|
|
35
|
+
"RiskManager": "0x0000000000000000000000000000000000000000",
|
|
36
|
+
"RiskSettlementExecutor": "0x0000000000000000000000000000000000000000",
|
|
37
|
+
"StakeVault": "0x0000000000000000000000000000000000000000",
|
|
38
|
+
"StakeVaultRiskSettlement": "0x0000000000000000000000000000000000000000",
|
|
39
|
+
"UnifiedPaymentVerifierV3": "0x0000000000000000000000000000000000000000"
|
|
28
40
|
},
|
|
29
41
|
"meta": {
|
|
30
|
-
"generatedAt": "2026-07-
|
|
42
|
+
"generatedAt": "2026-07-22T12:33:01.532Z"
|
|
31
43
|
}
|
|
32
44
|
}
|
|
@@ -24,10 +24,22 @@ const data = {
|
|
|
24
24
|
"SimpleAttestationVerifier": "0x1540c12858Ad8D45EE9DAF8DFf2f28B28F047772",
|
|
25
25
|
"UnifiedPaymentVerifier": "0xfFf74adAE1fb470d49cA37772C9859C4a6dBcc03",
|
|
26
26
|
"UnifiedPaymentVerifierV2": "0x7750f8Cc276f21B7Db1477FA044Bf3FD4951Bf20",
|
|
27
|
-
"WhitelistPreIntentHook": "0xABE7AFC4C7bE9c4Eed5F465a98e124ee7860C005"
|
|
27
|
+
"WhitelistPreIntentHook": "0xABE7AFC4C7bE9c4Eed5F465a98e124ee7860C005",
|
|
28
|
+
"BoundedCall": "0xAc2495fbfa858cb19AcCc62427523271E695077F",
|
|
29
|
+
"DeferredPayoutHook": "0xd279997e057b22ecC4660C7bBaD82FF0017B08A9",
|
|
30
|
+
"FeeSettlementLib": "0x23faa442d81f96ADB506D03E121300b9c5FF7092",
|
|
31
|
+
"NullifierRegistryV2": "0x2eb43d6C7c7Ec4220Aa6B8735BC053824a71778C",
|
|
32
|
+
"OrchestratorV3": "0x7E07c999eb44008babC5cdaC317bCDCA90696Eb3",
|
|
33
|
+
"PostIntentHookExecutor": "0x78c5579910A253e525727c5AEA763e6cF37F6e57",
|
|
34
|
+
"RiskAttestationVerifier": "0x33d8ca52ECF07b4F3c8eAB9a3d9B67FEb78e80Df",
|
|
35
|
+
"RiskManager": "0x3AC412E433D28a3D7Adb961A1F25146C93F8fC54",
|
|
36
|
+
"RiskSettlementExecutor": "0x07a38dd0F5b3745B42bec6552bcc02415e4F0Ff9",
|
|
37
|
+
"StakeVault": "0xD7c468ABbc5e265EDdc362F8858C34CaC1c14A62",
|
|
38
|
+
"StakeVaultRiskSettlement": "0xD7c468ABbc5e265EDdc362F8858C34CaC1c14A62",
|
|
39
|
+
"UnifiedPaymentVerifierV3": "0x4c62E99649c8Ba745E67018f5c8a483D77c429C4"
|
|
28
40
|
},
|
|
29
41
|
"meta": {
|
|
30
|
-
"generatedAt": "2026-07-
|
|
42
|
+
"generatedAt": "2026-07-22T12:33:01.533Z"
|
|
31
43
|
}
|
|
32
44
|
};
|
|
33
45
|
export default data;
|
|
@@ -24,9 +24,21 @@
|
|
|
24
24
|
"SimpleAttestationVerifier": "0x1540c12858Ad8D45EE9DAF8DFf2f28B28F047772",
|
|
25
25
|
"UnifiedPaymentVerifier": "0xfFf74adAE1fb470d49cA37772C9859C4a6dBcc03",
|
|
26
26
|
"UnifiedPaymentVerifierV2": "0x7750f8Cc276f21B7Db1477FA044Bf3FD4951Bf20",
|
|
27
|
-
"WhitelistPreIntentHook": "0xABE7AFC4C7bE9c4Eed5F465a98e124ee7860C005"
|
|
27
|
+
"WhitelistPreIntentHook": "0xABE7AFC4C7bE9c4Eed5F465a98e124ee7860C005",
|
|
28
|
+
"BoundedCall": "0xAc2495fbfa858cb19AcCc62427523271E695077F",
|
|
29
|
+
"DeferredPayoutHook": "0xd279997e057b22ecC4660C7bBaD82FF0017B08A9",
|
|
30
|
+
"FeeSettlementLib": "0x23faa442d81f96ADB506D03E121300b9c5FF7092",
|
|
31
|
+
"NullifierRegistryV2": "0x2eb43d6C7c7Ec4220Aa6B8735BC053824a71778C",
|
|
32
|
+
"OrchestratorV3": "0x7E07c999eb44008babC5cdaC317bCDCA90696Eb3",
|
|
33
|
+
"PostIntentHookExecutor": "0x78c5579910A253e525727c5AEA763e6cF37F6e57",
|
|
34
|
+
"RiskAttestationVerifier": "0x33d8ca52ECF07b4F3c8eAB9a3d9B67FEb78e80Df",
|
|
35
|
+
"RiskManager": "0x3AC412E433D28a3D7Adb961A1F25146C93F8fC54",
|
|
36
|
+
"RiskSettlementExecutor": "0x07a38dd0F5b3745B42bec6552bcc02415e4F0Ff9",
|
|
37
|
+
"StakeVault": "0xD7c468ABbc5e265EDdc362F8858C34CaC1c14A62",
|
|
38
|
+
"StakeVaultRiskSettlement": "0xD7c468ABbc5e265EDdc362F8858C34CaC1c14A62",
|
|
39
|
+
"UnifiedPaymentVerifierV3": "0x4c62E99649c8Ba745E67018f5c8a483D77c429C4"
|
|
28
40
|
},
|
|
29
41
|
"meta": {
|
|
30
|
-
"generatedAt": "2026-07-
|
|
42
|
+
"generatedAt": "2026-07-22T12:33:01.533Z"
|
|
31
43
|
}
|
|
32
44
|
}
|
package/_esm/addresses/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as base } from './base.
|
|
2
|
-
export { default as baseStaging } from './baseStaging.
|
|
1
|
+
export { default as base } from './base.json';
|
|
2
|
+
export { default as baseStaging } from './baseStaging.json';
|
package/_esm/constants/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as base } from './base.
|
|
2
|
-
export { default as baseStaging } from './baseStaging.
|
|
1
|
+
export { default as base } from './base.json';
|
|
2
|
+
export { default as baseStaging } from './baseStaging.json';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const data = {
|
|
2
|
-
"generatedAt": "2026-07-
|
|
2
|
+
"generatedAt": "2026-07-22T12:33:01.633Z",
|
|
3
3
|
"codeToHash": {
|
|
4
4
|
"AED": "0x4dab77a640748de8588de6834d814a344372b205265984b969f3e97060955bfa",
|
|
5
5
|
"ARS": "0x8fd50654b7dd2dc839f7cab32800ba0c6f7f66e1ccf89b21c09405469c2175ec",
|
package/_esm/currencies/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
// Auto-generated by extract-all.ts
|
|
2
2
|
// Currency code <-> keccak256 hash lookups
|
|
3
|
-
|
|
4
|
-
import type { CurrencyLookups } from './types';
|
|
5
|
-
export type { CurrencyLookups };
|
|
6
|
-
|
|
7
|
-
export { default as currencies } from './currencies.js';
|
|
3
|
+
export { default as currencies } from './currencies.json';
|
|
@@ -1,7 +1,3 @@
|
|
|
1
1
|
// Auto-generated by extract-all.ts
|
|
2
2
|
// Oracle feed configurations (Chainlink only — Pyth removed 2026-03-17)
|
|
3
|
-
|
|
4
|
-
import type { ChainlinkFeed, ChainlinkFeeds } from './types';
|
|
5
|
-
export type { ChainlinkFeed, ChainlinkFeeds };
|
|
6
|
-
|
|
7
|
-
export { default as chainlink } from './chainlink.js';
|
|
3
|
+
export { default as chainlink } from './chainlink.json';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const data = {
|
|
2
2
|
"network": "base",
|
|
3
3
|
"chainId": "8453",
|
|
4
|
-
"generatedAt": "2026-07-
|
|
4
|
+
"generatedAt": "2026-07-22T12:33:01.625Z",
|
|
5
5
|
"methods": {
|
|
6
6
|
"venmo": {
|
|
7
7
|
"paymentMethodHash": "0x90262a3db0edd0be2369c6b28f9e8511ec0bac7136cefbada0880602f87e7268",
|
|
@@ -1,28 +1,22 @@
|
|
|
1
1
|
// Auto-generated by extract-all.ts
|
|
2
2
|
// Unified payment method configurations per network
|
|
3
|
-
|
|
4
|
-
import type { PaymentMethodConfig, NetworkPaymentMethods } from './types';
|
|
5
|
-
export type { PaymentMethodConfig, NetworkPaymentMethods };
|
|
6
|
-
|
|
7
3
|
// Network-specific payment method exports
|
|
8
|
-
export { default as base } from './base.
|
|
9
|
-
export { default as baseStaging } from './baseStaging.
|
|
10
|
-
|
|
4
|
+
export { default as base } from './base.json';
|
|
5
|
+
export { default as baseStaging } from './baseStaging.json';
|
|
11
6
|
// Cross-network name-to-hash and hash-to-name lookups
|
|
12
|
-
export { default as lookups } from './lookups.
|
|
13
|
-
|
|
7
|
+
export { default as lookups } from './lookups.json';
|
|
14
8
|
// Helper function to get payment method config for a specific network and method
|
|
15
|
-
export function getPaymentMethodConfig(network
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
9
|
+
export function getPaymentMethodConfig(network, paymentMethod) {
|
|
10
|
+
try {
|
|
11
|
+
const networkModule = require(`./${network}.json`);
|
|
12
|
+
return networkModule.methods?.[paymentMethod];
|
|
13
|
+
}
|
|
14
|
+
catch {
|
|
15
|
+
return undefined;
|
|
16
|
+
}
|
|
22
17
|
}
|
|
23
|
-
|
|
24
18
|
// Export all networks as a single object for convenience
|
|
25
19
|
export const paymentMethods = {
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
base: require('./base.json'),
|
|
21
|
+
baseStaging: require('./baseStaging.json')
|
|
28
22
|
};
|