@zkp2p/contracts-v2 0.3.0 → 0.3.1-rc.1
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/AddressGroupRegistry.js +480 -0
- package/_cjs/abis/baseStaging/AddressGroupRegistry.json +478 -0
- 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 +1942 -0
- package/_cjs/abis/baseStaging/RiskManager.json +1940 -0
- package/_cjs/abis/baseStaging/RiskSettlementExecutor.js +106 -0
- package/_cjs/abis/baseStaging/RiskSettlementExecutor.json +104 -0
- package/_cjs/abis/baseStaging/StakeVault.js +1453 -0
- package/_cjs/abis/baseStaging/StakeVault.json +1451 -0
- package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.js +1453 -0
- package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.json +1451 -0
- package/_cjs/abis/baseStaging/UnifiedPaymentVerifierV3.js +366 -0
- package/_cjs/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
- package/_cjs/abis/baseStaging/WhitelistPreIntentHookV2.js +558 -0
- package/_cjs/abis/baseStaging/WhitelistPreIntentHookV2.json +556 -0
- package/_cjs/abis/baseStaging/index.js +80 -23
- package/_cjs/abis/baseStaging.cjs +15 -1
- package/_cjs/abis/baseStaging.mjs +14 -0
- package/_cjs/abis/contracts/AddressGroupRegistry.js +480 -0
- package/_cjs/abis/contracts/AddressGroupRegistry.json +478 -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 +1942 -0
- package/_cjs/abis/contracts/RiskManager.json +1940 -0
- package/_cjs/abis/contracts/StakeVault.js +1453 -0
- package/_cjs/abis/contracts/StakeVault.json +1451 -0
- package/_cjs/abis/contracts/UnifiedPaymentVerifierV3.js +366 -0
- package/_cjs/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
- package/_cjs/abis/contracts/WhitelistPreIntentHookV2.js +558 -0
- package/_cjs/abis/contracts/WhitelistPreIntentHookV2.json +556 -0
- package/_cjs/abis/contracts/index.js +22 -0
- package/_cjs/abis/contracts.cjs +11 -0
- package/_cjs/abis/contracts.mjs +9 -0
- package/_cjs/abis/index.js +39 -2
- package/_cjs/addresses/base.js +16 -2
- package/_cjs/addresses/base.json +16 -2
- package/_cjs/addresses/baseStaging.js +16 -2
- package/_cjs/addresses/baseStaging.json +16 -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/WhitelistPreIntentHookV2.js +2 -0
- package/_cjs/types/contracts/hooks/index.js +2 -8
- package/_cjs/types/contracts/index.js +2 -27
- package/_cjs/types/contracts/interfaces/IAddressGroupRegistry.js +2 -0
- 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/IWhitelistResolver.js +2 -0
- 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/AddressGroupRegistry.js +2 -0
- 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/risk/ChargebackManager.js +2 -0
- package/_cjs/types/contracts/risk/IntentExtensionManager.js +2 -0
- package/_cjs/types/contracts/risk/index.js +2 -0
- 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 +68 -0
- package/_esm/abis/base/index.js +23 -23
- package/_esm/abis/baseStaging/AddressGroupRegistry.js +479 -0
- package/_esm/abis/baseStaging/AddressGroupRegistry.json +478 -0
- 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 +1941 -0
- package/_esm/abis/baseStaging/RiskManager.json +1940 -0
- package/_esm/abis/baseStaging/RiskSettlementExecutor.js +105 -0
- package/_esm/abis/baseStaging/RiskSettlementExecutor.json +104 -0
- package/_esm/abis/baseStaging/StakeVault.js +1452 -0
- package/_esm/abis/baseStaging/StakeVault.json +1451 -0
- package/_esm/abis/baseStaging/StakeVaultRiskSettlement.js +1452 -0
- package/_esm/abis/baseStaging/StakeVaultRiskSettlement.json +1451 -0
- package/_esm/abis/baseStaging/UnifiedPaymentVerifierV3.js +365 -0
- package/_esm/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
- package/_esm/abis/baseStaging/WhitelistPreIntentHookV2.js +557 -0
- package/_esm/abis/baseStaging/WhitelistPreIntentHookV2.json +556 -0
- package/_esm/abis/baseStaging/index.js +37 -23
- package/_esm/abis/baseStaging.cjs +15 -1
- package/_esm/abis/baseStaging.mjs +14 -0
- package/_esm/abis/contracts/AddressGroupRegistry.js +479 -0
- package/_esm/abis/contracts/AddressGroupRegistry.json +478 -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 +1941 -0
- package/_esm/abis/contracts/RiskManager.json +1940 -0
- package/_esm/abis/contracts/StakeVault.js +1452 -0
- package/_esm/abis/contracts/StakeVault.json +1451 -0
- package/_esm/abis/contracts/UnifiedPaymentVerifierV3.js +365 -0
- package/_esm/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
- package/_esm/abis/contracts/WhitelistPreIntentHookV2.js +557 -0
- package/_esm/abis/contracts/WhitelistPreIntentHookV2.json +556 -0
- package/_esm/abis/contracts/index.js +8 -0
- package/_esm/abis/contracts.cjs +11 -0
- package/_esm/abis/contracts.mjs +9 -0
- package/_esm/abis/index.js +1 -0
- package/_esm/addresses/base.js +16 -2
- package/_esm/addresses/base.json +16 -2
- package/_esm/addresses/baseStaging.js +16 -2
- package/_esm/addresses/baseStaging.json +16 -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/WhitelistPreIntentHookV2.js +1 -0
- package/_esm/types/contracts/hooks/index.js +1 -8
- package/_esm/types/contracts/index.js +1 -27
- package/_esm/types/contracts/interfaces/IAddressGroupRegistry.js +1 -0
- 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/IWhitelistResolver.js +1 -0
- 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/AddressGroupRegistry.js +1 -0
- 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/risk/ChargebackManager.js +1 -0
- package/_esm/types/contracts/risk/IntentExtensionManager.js +1 -0
- package/_esm/types/contracts/risk/index.js +1 -0
- 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 +60 -0
- package/_types/abis/base/index.d.ts +23 -0
- package/_types/abis/baseStaging/index.d.ts +37 -0
- package/_types/abis/baseStaging.d.ts +14 -0
- package/_types/abis/contracts/index.d.ts +8 -0
- package/_types/abis/contracts.d.ts +10 -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 +1018 -0
- package/_types/types/contracts/StakeVault.d.ts +838 -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/WhitelistPreIntentHookV2.d.ts +311 -0
- package/_types/types/contracts/hooks/index.d.ts +5 -0
- package/_types/types/contracts/index.d.ts +26 -0
- package/_types/types/contracts/interfaces/IAddressGroupRegistry.d.ts +208 -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 +791 -0
- package/_types/types/contracts/interfaces/IStakeVault.d.ts +740 -0
- package/_types/types/contracts/interfaces/IWhitelistResolver.d.ts +42 -0
- package/_types/types/contracts/interfaces/index.d.ts +29 -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/AddressGroupRegistry.d.ts +325 -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 +8 -0
- package/_types/types/contracts/risk/ChargebackManager.d.ts +880 -0
- package/_types/types/contracts/risk/IntentExtensionManager.d.ts +831 -0
- package/_types/types/contracts/risk/index.d.ts +2 -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 +22 -0
- package/abis/base/index.d.ts +23 -0
- package/abis/baseStaging/AddressGroupRegistry.json +478 -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 +1940 -0
- package/abis/baseStaging/RiskSettlementExecutor.json +104 -0
- package/abis/baseStaging/StakeVault.json +1451 -0
- package/abis/baseStaging/StakeVaultRiskSettlement.json +1451 -0
- package/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
- package/abis/baseStaging/WhitelistPreIntentHookV2.json +556 -0
- package/abis/baseStaging/index.d.ts +37 -0
- package/abis/baseStaging/index.ts +14 -0
- package/abis/baseStaging.cjs +15 -1
- package/abis/baseStaging.d.ts +14 -0
- package/abis/baseStaging.mjs +14 -0
- package/abis/contracts/AddressGroupRegistry.json +478 -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 +1940 -0
- package/abis/contracts/StakeVault.json +1451 -0
- package/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
- package/abis/contracts/WhitelistPreIntentHookV2.json +556 -0
- package/abis/contracts/index.d.ts +8 -0
- package/abis/contracts/index.ts +8 -0
- package/abis/contracts.cjs +11 -0
- package/abis/contracts.d.ts +10 -0
- package/abis/contracts.mjs +9 -0
- package/abis/index.d.ts +3 -0
- package/abis/index.ts +1 -0
- package/addresses/base.json +16 -2
- package/addresses/baseStaging.json +16 -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 +1018 -0
- package/{_cjs/types/contracts/RiskTierManager.js → types/contracts/RiskManager.ts} +889 -999
- package/types/contracts/StakeVault.d.ts +838 -0
- package/types/contracts/StakeVault.ts +684 -1756
- 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/WhitelistPreIntentHookV2.d.ts +311 -0
- package/types/contracts/hooks/WhitelistPreIntentHookV2.ts +761 -0
- package/types/contracts/hooks/index.d.ts +5 -0
- package/types/contracts/hooks/index.ts +1 -1
- package/types/contracts/index.d.ts +26 -0
- package/types/contracts/index.ts +3 -1
- package/types/contracts/interfaces/IAddressGroupRegistry.d.ts +208 -0
- package/types/contracts/interfaces/IAddressGroupRegistry.ts +478 -0
- 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 +791 -0
- package/types/contracts/interfaces/{IRiskTierManager.ts → IRiskManager.ts} +722 -845
- package/types/contracts/interfaces/IStakeVault.d.ts +740 -0
- package/types/contracts/interfaces/IStakeVault.ts +661 -1626
- package/types/contracts/interfaces/IWhitelistResolver.d.ts +42 -0
- package/types/contracts/interfaces/IWhitelistResolver.ts +106 -0
- package/types/contracts/interfaces/index.d.ts +29 -0
- package/types/contracts/interfaces/index.ts +4 -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/AddressGroupRegistry.d.ts +325 -0
- package/types/contracts/registries/AddressGroupRegistry.ts +716 -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 +8 -0
- package/types/contracts/registries/index.ts +2 -0
- package/types/contracts/risk/ChargebackManager.d.ts +880 -0
- package/{_cjs/types/contracts/interfaces/IRiskTierManager.js → types/contracts/risk/ChargebackManager.ts} +860 -845
- package/types/contracts/risk/IntentExtensionManager.d.ts +831 -0
- package/{_esm/types/contracts/interfaces/IRiskTierManager.js → types/contracts/risk/IntentExtensionManager.ts} +830 -847
- package/types/contracts/risk/index.d.ts +2 -0
- package/types/contracts/risk/index.ts +5 -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 +22 -0
- package/utils/riskMath.ts +93 -0
- package/_cjs/types/contracts/hooks/DeferredPayoutHook.js +0 -288
- package/_cjs/types/contracts/interfaces/IDeferredPayoutHook.js +0 -206
- 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/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,22 @@
|
|
|
1
|
+
/** Exact client-side counterparts of RiskManager's integer formulas. */
|
|
2
|
+
export type IntegerLike = bigint | number | string | {
|
|
3
|
+
toString(): string;
|
|
4
|
+
};
|
|
5
|
+
export type RiskMode = "UNBONDED" | "STAKE_BACKED" | "DEFERRED_PAYOUT";
|
|
6
|
+
export interface IntentExtensionPenalty {
|
|
7
|
+
penalty: bigint;
|
|
8
|
+
chargeableTime: bigint;
|
|
9
|
+
}
|
|
10
|
+
export declare const RISK_BPS_DENOMINATOR = 10000n;
|
|
11
|
+
export declare const RISK_SECONDS_PER_HOUR = 3600n;
|
|
12
|
+
export declare const RISK_EXTENSION_DENOMINATOR: bigint;
|
|
13
|
+
/** ceil(A * s * T / (10_000 * 1 hour)); returns zero when the curve is disabled. */
|
|
14
|
+
export declare function calculateIntentExtensionCost(intentAmount: IntegerLike, extensionTime: IntegerLike, extensionPenaltyBpsPerHour: IntegerLike): bigint;
|
|
15
|
+
/** Charges elapsed post-expiry time, capped by the exact duration purchased. */
|
|
16
|
+
export declare function calculateIntentExtensionPenalty(intentAmount: IntegerLike, baseIntentExpiry: IntegerLike, terminalAt: IntegerLike, totalExtensionTime: IntegerLike, extensionPenaltyBpsPerHour: IntegerLike): IntentExtensionPenalty;
|
|
17
|
+
/** Full-gross coverage required at admission; zero when chargebacks are disabled. */
|
|
18
|
+
export declare function calculateRequiredCoverage(amount: IntegerLike, chargebackable: boolean): bigint;
|
|
19
|
+
/** Maximum chargebackable intent amount that can use existing stake. */
|
|
20
|
+
export declare function calculateStakeBackedCapacity(freeStake: IntegerLike): bigint;
|
|
21
|
+
/** Exact admission mode selected by RiskManager's full-gross policy. */
|
|
22
|
+
export declare function selectRiskMode(amount: IntegerLike, freeStake: IntegerLike, chargebackable: boolean, deferredPayoutEnabled: boolean): RiskMode;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/** Exact client-side counterparts of RiskManager's integer formulas. */
|
|
2
|
+
|
|
3
|
+
export type IntegerLike = bigint | number | string | { toString(): string };
|
|
4
|
+
|
|
5
|
+
export type RiskMode = "UNBONDED" | "STAKE_BACKED" | "DEFERRED_PAYOUT";
|
|
6
|
+
|
|
7
|
+
export interface IntentExtensionPenalty {
|
|
8
|
+
penalty: bigint;
|
|
9
|
+
chargeableTime: bigint;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export const RISK_BPS_DENOMINATOR = 10_000n;
|
|
13
|
+
export const RISK_SECONDS_PER_HOUR = 3_600n;
|
|
14
|
+
export const RISK_EXTENSION_DENOMINATOR = RISK_BPS_DENOMINATOR * RISK_SECONDS_PER_HOUR;
|
|
15
|
+
|
|
16
|
+
function integer(value: IntegerLike, label: string): bigint {
|
|
17
|
+
if (typeof value === "number" && (!Number.isSafeInteger(value) || value < 0)) {
|
|
18
|
+
throw new RangeError(`${label} must be a non-negative safe integer`);
|
|
19
|
+
}
|
|
20
|
+
const parsed = BigInt(value.toString());
|
|
21
|
+
if (parsed < 0n) throw new RangeError(`${label} must be non-negative`);
|
|
22
|
+
return parsed;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
function ceilDiv(numerator: bigint, denominator: bigint): bigint {
|
|
26
|
+
if (denominator <= 0n) throw new RangeError("denominator must be positive");
|
|
27
|
+
if (numerator === 0n) return 0n;
|
|
28
|
+
return ((numerator - 1n) / denominator) + 1n;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/** ceil(A * s * T / (10_000 * 1 hour)); returns zero when the curve is disabled. */
|
|
32
|
+
export function calculateIntentExtensionCost(
|
|
33
|
+
intentAmount: IntegerLike,
|
|
34
|
+
extensionTime: IntegerLike,
|
|
35
|
+
extensionPenaltyBpsPerHour: IntegerLike,
|
|
36
|
+
): bigint {
|
|
37
|
+
const amount = integer(intentAmount, "intentAmount");
|
|
38
|
+
const duration = integer(extensionTime, "extensionTime");
|
|
39
|
+
const slope = integer(extensionPenaltyBpsPerHour, "extensionPenaltyBpsPerHour");
|
|
40
|
+
return ceilDiv(amount * slope * duration, RISK_EXTENSION_DENOMINATOR);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/** Charges elapsed post-expiry time, capped by the exact duration purchased. */
|
|
44
|
+
export function calculateIntentExtensionPenalty(
|
|
45
|
+
intentAmount: IntegerLike,
|
|
46
|
+
baseIntentExpiry: IntegerLike,
|
|
47
|
+
terminalAt: IntegerLike,
|
|
48
|
+
totalExtensionTime: IntegerLike,
|
|
49
|
+
extensionPenaltyBpsPerHour: IntegerLike,
|
|
50
|
+
): IntentExtensionPenalty {
|
|
51
|
+
const baseExpiry = integer(baseIntentExpiry, "baseIntentExpiry");
|
|
52
|
+
const terminal = integer(terminalAt, "terminalAt");
|
|
53
|
+
const purchasedTime = integer(totalExtensionTime, "totalExtensionTime");
|
|
54
|
+
if (terminal <= baseExpiry || purchasedTime === 0n) return { penalty: 0n, chargeableTime: 0n };
|
|
55
|
+
|
|
56
|
+
const elapsed = terminal - baseExpiry;
|
|
57
|
+
const chargeableTime = elapsed < purchasedTime ? elapsed : purchasedTime;
|
|
58
|
+
return {
|
|
59
|
+
penalty: calculateIntentExtensionCost(
|
|
60
|
+
intentAmount,
|
|
61
|
+
chargeableTime,
|
|
62
|
+
extensionPenaltyBpsPerHour,
|
|
63
|
+
),
|
|
64
|
+
chargeableTime,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** Full-gross coverage required at admission; zero when chargebacks are disabled. */
|
|
69
|
+
export function calculateRequiredCoverage(
|
|
70
|
+
amount: IntegerLike,
|
|
71
|
+
chargebackable: boolean,
|
|
72
|
+
): bigint {
|
|
73
|
+
return chargebackable ? integer(amount, "amount") : 0n;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** Maximum chargebackable intent amount that can use existing stake. */
|
|
77
|
+
export function calculateStakeBackedCapacity(freeStake: IntegerLike): bigint {
|
|
78
|
+
return integer(freeStake, "freeStake");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/** Exact admission mode selected by RiskManager's full-gross policy. */
|
|
82
|
+
export function selectRiskMode(
|
|
83
|
+
amount: IntegerLike,
|
|
84
|
+
freeStake: IntegerLike,
|
|
85
|
+
chargebackable: boolean,
|
|
86
|
+
deferredPayoutEnabled: boolean,
|
|
87
|
+
): RiskMode {
|
|
88
|
+
const required = calculateRequiredCoverage(amount, chargebackable);
|
|
89
|
+
if (!chargebackable) return "UNBONDED";
|
|
90
|
+
if (integer(freeStake, "freeStake") >= required) return "STAKE_BACKED";
|
|
91
|
+
if (deferredPayoutEnabled) return "DEFERRED_PAYOUT";
|
|
92
|
+
throw new RangeError("insufficient collateral and deferred payout is disabled");
|
|
93
|
+
}
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import type {
|
|
5
|
-
BaseContract,
|
|
6
|
-
BigNumber,
|
|
7
|
-
BigNumberish,
|
|
8
|
-
BytesLike,
|
|
9
|
-
CallOverrides,
|
|
10
|
-
ContractTransaction,
|
|
11
|
-
Overrides,
|
|
12
|
-
PopulatedTransaction,
|
|
13
|
-
Signer,
|
|
14
|
-
utils,
|
|
15
|
-
} from "ethers";
|
|
16
|
-
import type {
|
|
17
|
-
FunctionFragment,
|
|
18
|
-
Result,
|
|
19
|
-
EventFragment,
|
|
20
|
-
} from "@ethersproject/abi";
|
|
21
|
-
import type { Listener, Provider } from "@ethersproject/providers";
|
|
22
|
-
import type {
|
|
23
|
-
TypedEventFilter,
|
|
24
|
-
TypedEvent,
|
|
25
|
-
TypedListener,
|
|
26
|
-
OnEvent,
|
|
27
|
-
PromiseOrValue,
|
|
28
|
-
} from "../../common";
|
|
29
|
-
|
|
30
|
-
export declare namespace IPostIntentHookV2 {
|
|
31
|
-
export type HookIntentContextStruct = {
|
|
32
|
-
owner: PromiseOrValue<string>;
|
|
33
|
-
to: PromiseOrValue<string>;
|
|
34
|
-
escrow: PromiseOrValue<string>;
|
|
35
|
-
depositId: PromiseOrValue<BigNumberish>;
|
|
36
|
-
amount: PromiseOrValue<BigNumberish>;
|
|
37
|
-
timestamp: PromiseOrValue<BigNumberish>;
|
|
38
|
-
paymentMethod: PromiseOrValue<BytesLike>;
|
|
39
|
-
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
40
|
-
conversionRate: PromiseOrValue<BigNumberish>;
|
|
41
|
-
payeeId: PromiseOrValue<BytesLike>;
|
|
42
|
-
signalHookData: PromiseOrValue<BytesLike>;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export type HookIntentContextStructOutput = [
|
|
46
|
-
string,
|
|
47
|
-
string,
|
|
48
|
-
string,
|
|
49
|
-
BigNumber,
|
|
50
|
-
BigNumber,
|
|
51
|
-
BigNumber,
|
|
52
|
-
string,
|
|
53
|
-
string,
|
|
54
|
-
BigNumber,
|
|
55
|
-
string,
|
|
56
|
-
string
|
|
57
|
-
] & {
|
|
58
|
-
owner: string;
|
|
59
|
-
to: string;
|
|
60
|
-
escrow: string;
|
|
61
|
-
depositId: BigNumber;
|
|
62
|
-
amount: BigNumber;
|
|
63
|
-
timestamp: BigNumber;
|
|
64
|
-
paymentMethod: string;
|
|
65
|
-
fiatCurrency: string;
|
|
66
|
-
conversionRate: BigNumber;
|
|
67
|
-
payeeId: string;
|
|
68
|
-
signalHookData: string;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export type HookExecutionContextStruct = {
|
|
72
|
-
intentHash: PromiseOrValue<BytesLike>;
|
|
73
|
-
token: PromiseOrValue<string>;
|
|
74
|
-
executableAmount: PromiseOrValue<BigNumberish>;
|
|
75
|
-
intent: IPostIntentHookV2.HookIntentContextStruct;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export type HookExecutionContextStructOutput = [
|
|
79
|
-
string,
|
|
80
|
-
string,
|
|
81
|
-
BigNumber,
|
|
82
|
-
IPostIntentHookV2.HookIntentContextStructOutput
|
|
83
|
-
] & {
|
|
84
|
-
intentHash: string;
|
|
85
|
-
token: string;
|
|
86
|
-
executableAmount: BigNumber;
|
|
87
|
-
intent: IPostIntentHookV2.HookIntentContextStructOutput;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface DeferredPayoutHookInterface extends utils.Interface {
|
|
92
|
-
functions: {
|
|
93
|
-
"execute((bytes32,address,uint256,(address,address,address,uint256,uint256,uint256,bytes32,bytes32,uint256,bytes32,bytes)),bytes)": FunctionFragment;
|
|
94
|
-
"orchestratorRegistry()": FunctionFragment;
|
|
95
|
-
"payoutToken()": FunctionFragment;
|
|
96
|
-
"riskTierManager()": FunctionFragment;
|
|
97
|
-
"stakeVault()": FunctionFragment;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
getFunction(
|
|
101
|
-
nameOrSignatureOrTopic:
|
|
102
|
-
| "execute"
|
|
103
|
-
| "orchestratorRegistry"
|
|
104
|
-
| "payoutToken"
|
|
105
|
-
| "riskTierManager"
|
|
106
|
-
| "stakeVault"
|
|
107
|
-
): FunctionFragment;
|
|
108
|
-
|
|
109
|
-
encodeFunctionData(
|
|
110
|
-
functionFragment: "execute",
|
|
111
|
-
values: [
|
|
112
|
-
IPostIntentHookV2.HookExecutionContextStruct,
|
|
113
|
-
PromiseOrValue<BytesLike>
|
|
114
|
-
]
|
|
115
|
-
): string;
|
|
116
|
-
encodeFunctionData(
|
|
117
|
-
functionFragment: "orchestratorRegistry",
|
|
118
|
-
values?: undefined
|
|
119
|
-
): string;
|
|
120
|
-
encodeFunctionData(
|
|
121
|
-
functionFragment: "payoutToken",
|
|
122
|
-
values?: undefined
|
|
123
|
-
): string;
|
|
124
|
-
encodeFunctionData(
|
|
125
|
-
functionFragment: "riskTierManager",
|
|
126
|
-
values?: undefined
|
|
127
|
-
): string;
|
|
128
|
-
encodeFunctionData(
|
|
129
|
-
functionFragment: "stakeVault",
|
|
130
|
-
values?: undefined
|
|
131
|
-
): string;
|
|
132
|
-
|
|
133
|
-
decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result;
|
|
134
|
-
decodeFunctionResult(
|
|
135
|
-
functionFragment: "orchestratorRegistry",
|
|
136
|
-
data: BytesLike
|
|
137
|
-
): Result;
|
|
138
|
-
decodeFunctionResult(
|
|
139
|
-
functionFragment: "payoutToken",
|
|
140
|
-
data: BytesLike
|
|
141
|
-
): Result;
|
|
142
|
-
decodeFunctionResult(
|
|
143
|
-
functionFragment: "riskTierManager",
|
|
144
|
-
data: BytesLike
|
|
145
|
-
): Result;
|
|
146
|
-
decodeFunctionResult(functionFragment: "stakeVault", data: BytesLike): Result;
|
|
147
|
-
|
|
148
|
-
events: {
|
|
149
|
-
"PayoutDeferred(bytes32,address,address,uint256)": EventFragment;
|
|
150
|
-
};
|
|
151
|
-
|
|
152
|
-
getEvent(nameOrSignatureOrTopic: "PayoutDeferred"): EventFragment;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
export interface PayoutDeferredEventObject {
|
|
156
|
-
intentHash: string;
|
|
157
|
-
beneficiary: string;
|
|
158
|
-
vault: string;
|
|
159
|
-
amount: BigNumber;
|
|
160
|
-
}
|
|
161
|
-
export type PayoutDeferredEvent = TypedEvent<
|
|
162
|
-
[string, string, string, BigNumber],
|
|
163
|
-
PayoutDeferredEventObject
|
|
164
|
-
>;
|
|
165
|
-
|
|
166
|
-
export type PayoutDeferredEventFilter = TypedEventFilter<PayoutDeferredEvent>;
|
|
167
|
-
|
|
168
|
-
export interface DeferredPayoutHook extends BaseContract {
|
|
169
|
-
connect(signerOrProvider: Signer | Provider | string): this;
|
|
170
|
-
attach(addressOrName: string): this;
|
|
171
|
-
deployed(): Promise<this>;
|
|
172
|
-
|
|
173
|
-
interface: DeferredPayoutHookInterface;
|
|
174
|
-
|
|
175
|
-
queryFilter<TEvent extends TypedEvent>(
|
|
176
|
-
event: TypedEventFilter<TEvent>,
|
|
177
|
-
fromBlockOrBlockhash?: string | number | undefined,
|
|
178
|
-
toBlock?: string | number | undefined
|
|
179
|
-
): Promise<Array<TEvent>>;
|
|
180
|
-
|
|
181
|
-
listeners<TEvent extends TypedEvent>(
|
|
182
|
-
eventFilter?: TypedEventFilter<TEvent>
|
|
183
|
-
): Array<TypedListener<TEvent>>;
|
|
184
|
-
listeners(eventName?: string): Array<Listener>;
|
|
185
|
-
removeAllListeners<TEvent extends TypedEvent>(
|
|
186
|
-
eventFilter: TypedEventFilter<TEvent>
|
|
187
|
-
): this;
|
|
188
|
-
removeAllListeners(eventName?: string): this;
|
|
189
|
-
off: OnEvent<this>;
|
|
190
|
-
on: OnEvent<this>;
|
|
191
|
-
once: OnEvent<this>;
|
|
192
|
-
removeListener: OnEvent<this>;
|
|
193
|
-
|
|
194
|
-
functions: {
|
|
195
|
-
execute(
|
|
196
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
197
|
-
arg1: PromiseOrValue<BytesLike>,
|
|
198
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
199
|
-
): Promise<ContractTransaction>;
|
|
200
|
-
|
|
201
|
-
orchestratorRegistry(overrides?: CallOverrides): Promise<[string]>;
|
|
202
|
-
|
|
203
|
-
payoutToken(overrides?: CallOverrides): Promise<[string]>;
|
|
204
|
-
|
|
205
|
-
riskTierManager(overrides?: CallOverrides): Promise<[string]>;
|
|
206
|
-
|
|
207
|
-
stakeVault(overrides?: CallOverrides): Promise<[string]>;
|
|
208
|
-
};
|
|
209
|
-
|
|
210
|
-
execute(
|
|
211
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
212
|
-
arg1: PromiseOrValue<BytesLike>,
|
|
213
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
214
|
-
): Promise<ContractTransaction>;
|
|
215
|
-
|
|
216
|
-
orchestratorRegistry(overrides?: CallOverrides): Promise<string>;
|
|
217
|
-
|
|
218
|
-
payoutToken(overrides?: CallOverrides): Promise<string>;
|
|
219
|
-
|
|
220
|
-
riskTierManager(overrides?: CallOverrides): Promise<string>;
|
|
221
|
-
|
|
222
|
-
stakeVault(overrides?: CallOverrides): Promise<string>;
|
|
223
|
-
|
|
224
|
-
callStatic: {
|
|
225
|
-
execute(
|
|
226
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
227
|
-
arg1: PromiseOrValue<BytesLike>,
|
|
228
|
-
overrides?: CallOverrides
|
|
229
|
-
): Promise<void>;
|
|
230
|
-
|
|
231
|
-
orchestratorRegistry(overrides?: CallOverrides): Promise<string>;
|
|
232
|
-
|
|
233
|
-
payoutToken(overrides?: CallOverrides): Promise<string>;
|
|
234
|
-
|
|
235
|
-
riskTierManager(overrides?: CallOverrides): Promise<string>;
|
|
236
|
-
|
|
237
|
-
stakeVault(overrides?: CallOverrides): Promise<string>;
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
filters: {
|
|
241
|
-
"PayoutDeferred(bytes32,address,address,uint256)"(
|
|
242
|
-
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
243
|
-
beneficiary?: PromiseOrValue<string> | null,
|
|
244
|
-
vault?: PromiseOrValue<string> | null,
|
|
245
|
-
amount?: null
|
|
246
|
-
): PayoutDeferredEventFilter;
|
|
247
|
-
PayoutDeferred(
|
|
248
|
-
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
249
|
-
beneficiary?: PromiseOrValue<string> | null,
|
|
250
|
-
vault?: PromiseOrValue<string> | null,
|
|
251
|
-
amount?: null
|
|
252
|
-
): PayoutDeferredEventFilter;
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
estimateGas: {
|
|
256
|
-
execute(
|
|
257
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
258
|
-
arg1: PromiseOrValue<BytesLike>,
|
|
259
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
260
|
-
): Promise<BigNumber>;
|
|
261
|
-
|
|
262
|
-
orchestratorRegistry(overrides?: CallOverrides): Promise<BigNumber>;
|
|
263
|
-
|
|
264
|
-
payoutToken(overrides?: CallOverrides): Promise<BigNumber>;
|
|
265
|
-
|
|
266
|
-
riskTierManager(overrides?: CallOverrides): Promise<BigNumber>;
|
|
267
|
-
|
|
268
|
-
stakeVault(overrides?: CallOverrides): Promise<BigNumber>;
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
populateTransaction: {
|
|
272
|
-
execute(
|
|
273
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
274
|
-
arg1: PromiseOrValue<BytesLike>,
|
|
275
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
276
|
-
): Promise<PopulatedTransaction>;
|
|
277
|
-
|
|
278
|
-
orchestratorRegistry(
|
|
279
|
-
overrides?: CallOverrides
|
|
280
|
-
): Promise<PopulatedTransaction>;
|
|
281
|
-
|
|
282
|
-
payoutToken(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
283
|
-
|
|
284
|
-
riskTierManager(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
285
|
-
|
|
286
|
-
stakeVault(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
287
|
-
};
|
|
288
|
-
}
|
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
/* Autogenerated file. Do not edit manually. */
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
import type {
|
|
5
|
-
BaseContract,
|
|
6
|
-
BigNumber,
|
|
7
|
-
BigNumberish,
|
|
8
|
-
BytesLike,
|
|
9
|
-
CallOverrides,
|
|
10
|
-
ContractTransaction,
|
|
11
|
-
Overrides,
|
|
12
|
-
PopulatedTransaction,
|
|
13
|
-
Signer,
|
|
14
|
-
utils,
|
|
15
|
-
} from "ethers";
|
|
16
|
-
import type {
|
|
17
|
-
FunctionFragment,
|
|
18
|
-
Result,
|
|
19
|
-
EventFragment,
|
|
20
|
-
} from "@ethersproject/abi";
|
|
21
|
-
import type { Listener, Provider } from "@ethersproject/providers";
|
|
22
|
-
import type {
|
|
23
|
-
TypedEventFilter,
|
|
24
|
-
TypedEvent,
|
|
25
|
-
TypedListener,
|
|
26
|
-
OnEvent,
|
|
27
|
-
PromiseOrValue,
|
|
28
|
-
} from "../../common";
|
|
29
|
-
|
|
30
|
-
export declare namespace IPostIntentHookV2 {
|
|
31
|
-
export type HookIntentContextStruct = {
|
|
32
|
-
owner: PromiseOrValue<string>;
|
|
33
|
-
to: PromiseOrValue<string>;
|
|
34
|
-
escrow: PromiseOrValue<string>;
|
|
35
|
-
depositId: PromiseOrValue<BigNumberish>;
|
|
36
|
-
amount: PromiseOrValue<BigNumberish>;
|
|
37
|
-
timestamp: PromiseOrValue<BigNumberish>;
|
|
38
|
-
paymentMethod: PromiseOrValue<BytesLike>;
|
|
39
|
-
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
40
|
-
conversionRate: PromiseOrValue<BigNumberish>;
|
|
41
|
-
payeeId: PromiseOrValue<BytesLike>;
|
|
42
|
-
signalHookData: PromiseOrValue<BytesLike>;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
export type HookIntentContextStructOutput = [
|
|
46
|
-
string,
|
|
47
|
-
string,
|
|
48
|
-
string,
|
|
49
|
-
BigNumber,
|
|
50
|
-
BigNumber,
|
|
51
|
-
BigNumber,
|
|
52
|
-
string,
|
|
53
|
-
string,
|
|
54
|
-
BigNumber,
|
|
55
|
-
string,
|
|
56
|
-
string
|
|
57
|
-
] & {
|
|
58
|
-
owner: string;
|
|
59
|
-
to: string;
|
|
60
|
-
escrow: string;
|
|
61
|
-
depositId: BigNumber;
|
|
62
|
-
amount: BigNumber;
|
|
63
|
-
timestamp: BigNumber;
|
|
64
|
-
paymentMethod: string;
|
|
65
|
-
fiatCurrency: string;
|
|
66
|
-
conversionRate: BigNumber;
|
|
67
|
-
payeeId: string;
|
|
68
|
-
signalHookData: string;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
export type HookExecutionContextStruct = {
|
|
72
|
-
intentHash: PromiseOrValue<BytesLike>;
|
|
73
|
-
token: PromiseOrValue<string>;
|
|
74
|
-
executableAmount: PromiseOrValue<BigNumberish>;
|
|
75
|
-
intent: IPostIntentHookV2.HookIntentContextStruct;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export type HookExecutionContextStructOutput = [
|
|
79
|
-
string,
|
|
80
|
-
string,
|
|
81
|
-
BigNumber,
|
|
82
|
-
IPostIntentHookV2.HookIntentContextStructOutput
|
|
83
|
-
] & {
|
|
84
|
-
intentHash: string;
|
|
85
|
-
token: string;
|
|
86
|
-
executableAmount: BigNumber;
|
|
87
|
-
intent: IPostIntentHookV2.HookIntentContextStructOutput;
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface IDeferredPayoutHookInterface extends utils.Interface {
|
|
92
|
-
functions: {
|
|
93
|
-
"execute((bytes32,address,uint256,(address,address,address,uint256,uint256,uint256,bytes32,bytes32,uint256,bytes32,bytes)),bytes)": FunctionFragment;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
getFunction(nameOrSignatureOrTopic: "execute"): FunctionFragment;
|
|
97
|
-
|
|
98
|
-
encodeFunctionData(
|
|
99
|
-
functionFragment: "execute",
|
|
100
|
-
values: [
|
|
101
|
-
IPostIntentHookV2.HookExecutionContextStruct,
|
|
102
|
-
PromiseOrValue<BytesLike>
|
|
103
|
-
]
|
|
104
|
-
): string;
|
|
105
|
-
|
|
106
|
-
decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result;
|
|
107
|
-
|
|
108
|
-
events: {
|
|
109
|
-
"PayoutDeferred(bytes32,address,address,uint256)": EventFragment;
|
|
110
|
-
};
|
|
111
|
-
|
|
112
|
-
getEvent(nameOrSignatureOrTopic: "PayoutDeferred"): EventFragment;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
export interface PayoutDeferredEventObject {
|
|
116
|
-
intentHash: string;
|
|
117
|
-
beneficiary: string;
|
|
118
|
-
vault: string;
|
|
119
|
-
amount: BigNumber;
|
|
120
|
-
}
|
|
121
|
-
export type PayoutDeferredEvent = TypedEvent<
|
|
122
|
-
[string, string, string, BigNumber],
|
|
123
|
-
PayoutDeferredEventObject
|
|
124
|
-
>;
|
|
125
|
-
|
|
126
|
-
export type PayoutDeferredEventFilter = TypedEventFilter<PayoutDeferredEvent>;
|
|
127
|
-
|
|
128
|
-
export interface IDeferredPayoutHook extends BaseContract {
|
|
129
|
-
connect(signerOrProvider: Signer | Provider | string): this;
|
|
130
|
-
attach(addressOrName: string): this;
|
|
131
|
-
deployed(): Promise<this>;
|
|
132
|
-
|
|
133
|
-
interface: IDeferredPayoutHookInterface;
|
|
134
|
-
|
|
135
|
-
queryFilter<TEvent extends TypedEvent>(
|
|
136
|
-
event: TypedEventFilter<TEvent>,
|
|
137
|
-
fromBlockOrBlockhash?: string | number | undefined,
|
|
138
|
-
toBlock?: string | number | undefined
|
|
139
|
-
): Promise<Array<TEvent>>;
|
|
140
|
-
|
|
141
|
-
listeners<TEvent extends TypedEvent>(
|
|
142
|
-
eventFilter?: TypedEventFilter<TEvent>
|
|
143
|
-
): Array<TypedListener<TEvent>>;
|
|
144
|
-
listeners(eventName?: string): Array<Listener>;
|
|
145
|
-
removeAllListeners<TEvent extends TypedEvent>(
|
|
146
|
-
eventFilter: TypedEventFilter<TEvent>
|
|
147
|
-
): this;
|
|
148
|
-
removeAllListeners(eventName?: string): this;
|
|
149
|
-
off: OnEvent<this>;
|
|
150
|
-
on: OnEvent<this>;
|
|
151
|
-
once: OnEvent<this>;
|
|
152
|
-
removeListener: OnEvent<this>;
|
|
153
|
-
|
|
154
|
-
functions: {
|
|
155
|
-
execute(
|
|
156
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
157
|
-
_fulfillHookData: PromiseOrValue<BytesLike>,
|
|
158
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
159
|
-
): Promise<ContractTransaction>;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
|
-
execute(
|
|
163
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
164
|
-
_fulfillHookData: PromiseOrValue<BytesLike>,
|
|
165
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
166
|
-
): Promise<ContractTransaction>;
|
|
167
|
-
|
|
168
|
-
callStatic: {
|
|
169
|
-
execute(
|
|
170
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
171
|
-
_fulfillHookData: PromiseOrValue<BytesLike>,
|
|
172
|
-
overrides?: CallOverrides
|
|
173
|
-
): Promise<void>;
|
|
174
|
-
};
|
|
175
|
-
|
|
176
|
-
filters: {
|
|
177
|
-
"PayoutDeferred(bytes32,address,address,uint256)"(
|
|
178
|
-
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
179
|
-
beneficiary?: PromiseOrValue<string> | null,
|
|
180
|
-
vault?: PromiseOrValue<string> | null,
|
|
181
|
-
amount?: null
|
|
182
|
-
): PayoutDeferredEventFilter;
|
|
183
|
-
PayoutDeferred(
|
|
184
|
-
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
185
|
-
beneficiary?: PromiseOrValue<string> | null,
|
|
186
|
-
vault?: PromiseOrValue<string> | null,
|
|
187
|
-
amount?: null
|
|
188
|
-
): PayoutDeferredEventFilter;
|
|
189
|
-
};
|
|
190
|
-
|
|
191
|
-
estimateGas: {
|
|
192
|
-
execute(
|
|
193
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
194
|
-
_fulfillHookData: PromiseOrValue<BytesLike>,
|
|
195
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
196
|
-
): Promise<BigNumber>;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
populateTransaction: {
|
|
200
|
-
execute(
|
|
201
|
-
_ctx: IPostIntentHookV2.HookExecutionContextStruct,
|
|
202
|
-
_fulfillHookData: PromiseOrValue<BytesLike>,
|
|
203
|
-
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
204
|
-
): Promise<PopulatedTransaction>;
|
|
205
|
-
};
|
|
206
|
-
}
|