@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,42 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
|
|
5
|
+
export interface IWhitelistResolverInterface extends utils.Interface {
|
|
6
|
+
functions: {
|
|
7
|
+
"isMember(uint256,address)": FunctionFragment;
|
|
8
|
+
};
|
|
9
|
+
getFunction(nameOrSignatureOrTopic: "isMember"): FunctionFragment;
|
|
10
|
+
encodeFunctionData(functionFragment: "isMember", values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]): string;
|
|
11
|
+
decodeFunctionResult(functionFragment: "isMember", data: BytesLike): Result;
|
|
12
|
+
events: {};
|
|
13
|
+
}
|
|
14
|
+
export interface IWhitelistResolver extends BaseContract {
|
|
15
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
16
|
+
attach(addressOrName: string): this;
|
|
17
|
+
deployed(): Promise<this>;
|
|
18
|
+
interface: IWhitelistResolverInterface;
|
|
19
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
20
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
21
|
+
listeners(eventName?: string): Array<Listener>;
|
|
22
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
23
|
+
removeAllListeners(eventName?: string): this;
|
|
24
|
+
off: OnEvent<this>;
|
|
25
|
+
on: OnEvent<this>;
|
|
26
|
+
once: OnEvent<this>;
|
|
27
|
+
removeListener: OnEvent<this>;
|
|
28
|
+
functions: {
|
|
29
|
+
isMember(_groupId: PromiseOrValue<BigNumberish>, _account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
|
|
30
|
+
};
|
|
31
|
+
isMember(_groupId: PromiseOrValue<BigNumberish>, _account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
32
|
+
callStatic: {
|
|
33
|
+
isMember(_groupId: PromiseOrValue<BigNumberish>, _account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
34
|
+
};
|
|
35
|
+
filters: {};
|
|
36
|
+
estimateGas: {
|
|
37
|
+
isMember(_groupId: PromiseOrValue<BigNumberish>, _account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
38
|
+
};
|
|
39
|
+
populateTransaction: {
|
|
40
|
+
isMember(_groupId: PromiseOrValue<BigNumberish>, _account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
PopulatedTransaction,
|
|
11
|
+
Signer,
|
|
12
|
+
utils,
|
|
13
|
+
} from "ethers";
|
|
14
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
15
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
16
|
+
import type {
|
|
17
|
+
TypedEventFilter,
|
|
18
|
+
TypedEvent,
|
|
19
|
+
TypedListener,
|
|
20
|
+
OnEvent,
|
|
21
|
+
PromiseOrValue,
|
|
22
|
+
} from "../../common";
|
|
23
|
+
|
|
24
|
+
export interface IWhitelistResolverInterface extends utils.Interface {
|
|
25
|
+
functions: {
|
|
26
|
+
"isMember(uint256,address)": FunctionFragment;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
getFunction(nameOrSignatureOrTopic: "isMember"): FunctionFragment;
|
|
30
|
+
|
|
31
|
+
encodeFunctionData(
|
|
32
|
+
functionFragment: "isMember",
|
|
33
|
+
values: [PromiseOrValue<BigNumberish>, PromiseOrValue<string>]
|
|
34
|
+
): string;
|
|
35
|
+
|
|
36
|
+
decodeFunctionResult(functionFragment: "isMember", data: BytesLike): Result;
|
|
37
|
+
|
|
38
|
+
events: {};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface IWhitelistResolver extends BaseContract {
|
|
42
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
43
|
+
attach(addressOrName: string): this;
|
|
44
|
+
deployed(): Promise<this>;
|
|
45
|
+
|
|
46
|
+
interface: IWhitelistResolverInterface;
|
|
47
|
+
|
|
48
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
49
|
+
event: TypedEventFilter<TEvent>,
|
|
50
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
51
|
+
toBlock?: string | number | undefined
|
|
52
|
+
): Promise<Array<TEvent>>;
|
|
53
|
+
|
|
54
|
+
listeners<TEvent extends TypedEvent>(
|
|
55
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
56
|
+
): Array<TypedListener<TEvent>>;
|
|
57
|
+
listeners(eventName?: string): Array<Listener>;
|
|
58
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
59
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
60
|
+
): this;
|
|
61
|
+
removeAllListeners(eventName?: string): this;
|
|
62
|
+
off: OnEvent<this>;
|
|
63
|
+
on: OnEvent<this>;
|
|
64
|
+
once: OnEvent<this>;
|
|
65
|
+
removeListener: OnEvent<this>;
|
|
66
|
+
|
|
67
|
+
functions: {
|
|
68
|
+
isMember(
|
|
69
|
+
_groupId: PromiseOrValue<BigNumberish>,
|
|
70
|
+
_account: PromiseOrValue<string>,
|
|
71
|
+
overrides?: CallOverrides
|
|
72
|
+
): Promise<[boolean]>;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
isMember(
|
|
76
|
+
_groupId: PromiseOrValue<BigNumberish>,
|
|
77
|
+
_account: PromiseOrValue<string>,
|
|
78
|
+
overrides?: CallOverrides
|
|
79
|
+
): Promise<boolean>;
|
|
80
|
+
|
|
81
|
+
callStatic: {
|
|
82
|
+
isMember(
|
|
83
|
+
_groupId: PromiseOrValue<BigNumberish>,
|
|
84
|
+
_account: PromiseOrValue<string>,
|
|
85
|
+
overrides?: CallOverrides
|
|
86
|
+
): Promise<boolean>;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
filters: {};
|
|
90
|
+
|
|
91
|
+
estimateGas: {
|
|
92
|
+
isMember(
|
|
93
|
+
_groupId: PromiseOrValue<BigNumberish>,
|
|
94
|
+
_account: PromiseOrValue<string>,
|
|
95
|
+
overrides?: CallOverrides
|
|
96
|
+
): Promise<BigNumber>;
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
populateTransaction: {
|
|
100
|
+
isMember(
|
|
101
|
+
_groupId: PromiseOrValue<BigNumberish>,
|
|
102
|
+
_account: PromiseOrValue<string>,
|
|
103
|
+
overrides?: CallOverrides
|
|
104
|
+
): Promise<PopulatedTransaction>;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export type { IAddressGroupRegistry } from "./IAddressGroupRegistry";
|
|
2
|
+
export type { IAttestationVerifier } from "./IAttestationVerifier";
|
|
3
|
+
export type { IChainlinkAggregatorV3 } from "./IChainlinkAggregatorV3";
|
|
4
|
+
export type { IEscrow } from "./IEscrow";
|
|
5
|
+
export type { IEscrowRegistry } from "./IEscrowRegistry";
|
|
6
|
+
export type { IEscrowV2 } from "./IEscrowV2";
|
|
7
|
+
export type { IIntentRiskHook } from "./IIntentRiskHook";
|
|
8
|
+
export type { INullifierRegistry } from "./INullifierRegistry";
|
|
9
|
+
export type { INullifierRegistryV2 } from "./INullifierRegistryV2";
|
|
10
|
+
export type { IOracleAdapter } from "./IOracleAdapter";
|
|
11
|
+
export type { IOrchestrator } from "./IOrchestrator";
|
|
12
|
+
export type { IOrchestratorRegistry } from "./IOrchestratorRegistry";
|
|
13
|
+
export type { IOrchestratorV2 } from "./IOrchestratorV2";
|
|
14
|
+
export type { IOrchestratorV3 } from "./IOrchestratorV3";
|
|
15
|
+
export type { IPaymentVerifier } from "./IPaymentVerifier";
|
|
16
|
+
export type { IPaymentVerifierRegistry } from "./IPaymentVerifierRegistry";
|
|
17
|
+
export type { IPostIntentHook } from "./IPostIntentHook";
|
|
18
|
+
export type { IPostIntentHookRegistry } from "./IPostIntentHookRegistry";
|
|
19
|
+
export type { IPostIntentHookV2 } from "./IPostIntentHookV2";
|
|
20
|
+
export type { IPreIntentHook } from "./IPreIntentHook";
|
|
21
|
+
export type { IProtocolViewer } from "./IProtocolViewer";
|
|
22
|
+
export type { IProtocolViewerV2 } from "./IProtocolViewerV2";
|
|
23
|
+
export type { IPyth } from "./IPyth";
|
|
24
|
+
export type { IRateManager } from "./IRateManager";
|
|
25
|
+
export type { IReferralFee } from "./IReferralFee";
|
|
26
|
+
export type { IRelayerRegistry } from "./IRelayerRegistry";
|
|
27
|
+
export type { IRiskManager } from "./IRiskManager";
|
|
28
|
+
export type { IStakeVault } from "./IStakeVault";
|
|
29
|
+
export type { IWhitelistResolver } from "./IWhitelistResolver";
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
+
export type { IAddressGroupRegistry } from "./IAddressGroupRegistry";
|
|
4
5
|
export type { IAttestationVerifier } from "./IAttestationVerifier";
|
|
5
6
|
export type { IChainlinkAggregatorV3 } from "./IChainlinkAggregatorV3";
|
|
6
|
-
export type { IDeferredPayoutHook } from "./IDeferredPayoutHook";
|
|
7
7
|
export type { IEscrow } from "./IEscrow";
|
|
8
8
|
export type { IEscrowRegistry } from "./IEscrowRegistry";
|
|
9
9
|
export type { IEscrowV2 } from "./IEscrowV2";
|
|
10
10
|
export type { IIntentRiskHook } from "./IIntentRiskHook";
|
|
11
11
|
export type { INullifierRegistry } from "./INullifierRegistry";
|
|
12
|
+
export type { INullifierRegistryV2 } from "./INullifierRegistryV2";
|
|
12
13
|
export type { IOracleAdapter } from "./IOracleAdapter";
|
|
13
14
|
export type { IOrchestrator } from "./IOrchestrator";
|
|
14
15
|
export type { IOrchestratorRegistry } from "./IOrchestratorRegistry";
|
|
@@ -26,5 +27,6 @@ export type { IPyth } from "./IPyth";
|
|
|
26
27
|
export type { IRateManager } from "./IRateManager";
|
|
27
28
|
export type { IReferralFee } from "./IReferralFee";
|
|
28
29
|
export type { IRelayerRegistry } from "./IRelayerRegistry";
|
|
29
|
-
export type {
|
|
30
|
+
export type { IRiskManager } from "./IRiskManager";
|
|
30
31
|
export type { IStakeVault } from "./IStakeVault";
|
|
32
|
+
export type { IWhitelistResolver } from "./IWhitelistResolver";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { BaseContract, BytesLike, Signer, utils } from "ethers";
|
|
2
|
+
import type { EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
|
|
5
|
+
export interface BoundedCallInterface extends utils.Interface {
|
|
6
|
+
functions: {};
|
|
7
|
+
events: {
|
|
8
|
+
"RiskHookCallbackFailed(bytes32,address,bytes4,bytes)": EventFragment;
|
|
9
|
+
};
|
|
10
|
+
getEvent(nameOrSignatureOrTopic: "RiskHookCallbackFailed"): EventFragment;
|
|
11
|
+
}
|
|
12
|
+
export interface RiskHookCallbackFailedEventObject {
|
|
13
|
+
intentHash: string;
|
|
14
|
+
riskHook: string;
|
|
15
|
+
callbackSelector: string;
|
|
16
|
+
revertData: string;
|
|
17
|
+
}
|
|
18
|
+
export type RiskHookCallbackFailedEvent = TypedEvent<[
|
|
19
|
+
string,
|
|
20
|
+
string,
|
|
21
|
+
string,
|
|
22
|
+
string
|
|
23
|
+
], RiskHookCallbackFailedEventObject>;
|
|
24
|
+
export type RiskHookCallbackFailedEventFilter = TypedEventFilter<RiskHookCallbackFailedEvent>;
|
|
25
|
+
export interface BoundedCall extends BaseContract {
|
|
26
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
27
|
+
attach(addressOrName: string): this;
|
|
28
|
+
deployed(): Promise<this>;
|
|
29
|
+
interface: BoundedCallInterface;
|
|
30
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
31
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
32
|
+
listeners(eventName?: string): Array<Listener>;
|
|
33
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
34
|
+
removeAllListeners(eventName?: string): this;
|
|
35
|
+
off: OnEvent<this>;
|
|
36
|
+
on: OnEvent<this>;
|
|
37
|
+
once: OnEvent<this>;
|
|
38
|
+
removeListener: OnEvent<this>;
|
|
39
|
+
functions: {};
|
|
40
|
+
callStatic: {};
|
|
41
|
+
filters: {
|
|
42
|
+
"RiskHookCallbackFailed(bytes32,address,bytes4,bytes)"(intentHash?: PromiseOrValue<BytesLike> | null, riskHook?: PromiseOrValue<string> | null, callbackSelector?: PromiseOrValue<BytesLike> | null, revertData?: null): RiskHookCallbackFailedEventFilter;
|
|
43
|
+
RiskHookCallbackFailed(intentHash?: PromiseOrValue<BytesLike> | null, riskHook?: PromiseOrValue<string> | null, callbackSelector?: PromiseOrValue<BytesLike> | null, revertData?: null): RiskHookCallbackFailedEventFilter;
|
|
44
|
+
};
|
|
45
|
+
estimateGas: {};
|
|
46
|
+
populateTransaction: {};
|
|
47
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BytesLike, Signer, utils } from "ethers";
|
|
2
|
+
import type { EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
|
|
5
|
+
export interface FeeSettlementLibInterface extends utils.Interface {
|
|
6
|
+
functions: {};
|
|
7
|
+
events: {
|
|
8
|
+
"IntentFeeDistributed(bytes32,uint8,address,uint256)": EventFragment;
|
|
9
|
+
};
|
|
10
|
+
getEvent(nameOrSignatureOrTopic: "IntentFeeDistributed"): EventFragment;
|
|
11
|
+
}
|
|
12
|
+
export interface IntentFeeDistributedEventObject {
|
|
13
|
+
intentHash: string;
|
|
14
|
+
feeType: number;
|
|
15
|
+
recipient: string;
|
|
16
|
+
amount: BigNumber;
|
|
17
|
+
}
|
|
18
|
+
export type IntentFeeDistributedEvent = TypedEvent<[
|
|
19
|
+
string,
|
|
20
|
+
number,
|
|
21
|
+
string,
|
|
22
|
+
BigNumber
|
|
23
|
+
], IntentFeeDistributedEventObject>;
|
|
24
|
+
export type IntentFeeDistributedEventFilter = TypedEventFilter<IntentFeeDistributedEvent>;
|
|
25
|
+
export interface FeeSettlementLib extends BaseContract {
|
|
26
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
27
|
+
attach(addressOrName: string): this;
|
|
28
|
+
deployed(): Promise<this>;
|
|
29
|
+
interface: FeeSettlementLibInterface;
|
|
30
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
31
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
32
|
+
listeners(eventName?: string): Array<Listener>;
|
|
33
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
34
|
+
removeAllListeners(eventName?: string): this;
|
|
35
|
+
off: OnEvent<this>;
|
|
36
|
+
on: OnEvent<this>;
|
|
37
|
+
once: OnEvent<this>;
|
|
38
|
+
removeListener: OnEvent<this>;
|
|
39
|
+
functions: {};
|
|
40
|
+
callStatic: {};
|
|
41
|
+
filters: {
|
|
42
|
+
"IntentFeeDistributed(bytes32,uint8,address,uint256)"(intentHash?: PromiseOrValue<BytesLike> | null, feeType?: null, recipient?: PromiseOrValue<string> | null, amount?: null): IntentFeeDistributedEventFilter;
|
|
43
|
+
IntentFeeDistributed(intentHash?: PromiseOrValue<BytesLike> | null, feeType?: null, recipient?: PromiseOrValue<string> | null, amount?: null): IntentFeeDistributedEventFilter;
|
|
44
|
+
};
|
|
45
|
+
estimateGas: {};
|
|
46
|
+
populateTransaction: {};
|
|
47
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BaseContract, BigNumber, BytesLike, Signer, utils } from "ethers";
|
|
5
|
+
import type { EventFragment } from "@ethersproject/abi";
|
|
6
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
TypedEventFilter,
|
|
9
|
+
TypedEvent,
|
|
10
|
+
TypedListener,
|
|
11
|
+
OnEvent,
|
|
12
|
+
PromiseOrValue,
|
|
13
|
+
} from "../../common";
|
|
14
|
+
|
|
15
|
+
export interface FeeSettlementLibInterface extends utils.Interface {
|
|
16
|
+
functions: {};
|
|
17
|
+
|
|
18
|
+
events: {
|
|
19
|
+
"IntentFeeDistributed(bytes32,uint8,address,uint256)": EventFragment;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
getEvent(nameOrSignatureOrTopic: "IntentFeeDistributed"): EventFragment;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IntentFeeDistributedEventObject {
|
|
26
|
+
intentHash: string;
|
|
27
|
+
feeType: number;
|
|
28
|
+
recipient: string;
|
|
29
|
+
amount: BigNumber;
|
|
30
|
+
}
|
|
31
|
+
export type IntentFeeDistributedEvent = TypedEvent<
|
|
32
|
+
[string, number, string, BigNumber],
|
|
33
|
+
IntentFeeDistributedEventObject
|
|
34
|
+
>;
|
|
35
|
+
|
|
36
|
+
export type IntentFeeDistributedEventFilter =
|
|
37
|
+
TypedEventFilter<IntentFeeDistributedEvent>;
|
|
38
|
+
|
|
39
|
+
export interface FeeSettlementLib extends BaseContract {
|
|
40
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
41
|
+
attach(addressOrName: string): this;
|
|
42
|
+
deployed(): Promise<this>;
|
|
43
|
+
|
|
44
|
+
interface: FeeSettlementLibInterface;
|
|
45
|
+
|
|
46
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
47
|
+
event: TypedEventFilter<TEvent>,
|
|
48
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
49
|
+
toBlock?: string | number | undefined
|
|
50
|
+
): Promise<Array<TEvent>>;
|
|
51
|
+
|
|
52
|
+
listeners<TEvent extends TypedEvent>(
|
|
53
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
54
|
+
): Array<TypedListener<TEvent>>;
|
|
55
|
+
listeners(eventName?: string): Array<Listener>;
|
|
56
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
57
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
58
|
+
): this;
|
|
59
|
+
removeAllListeners(eventName?: string): this;
|
|
60
|
+
off: OnEvent<this>;
|
|
61
|
+
on: OnEvent<this>;
|
|
62
|
+
once: OnEvent<this>;
|
|
63
|
+
removeListener: OnEvent<this>;
|
|
64
|
+
|
|
65
|
+
functions: {};
|
|
66
|
+
|
|
67
|
+
callStatic: {};
|
|
68
|
+
|
|
69
|
+
filters: {
|
|
70
|
+
"IntentFeeDistributed(bytes32,uint8,address,uint256)"(
|
|
71
|
+
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
72
|
+
feeType?: null,
|
|
73
|
+
recipient?: PromiseOrValue<string> | null,
|
|
74
|
+
amount?: null
|
|
75
|
+
): IntentFeeDistributedEventFilter;
|
|
76
|
+
IntentFeeDistributed(
|
|
77
|
+
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
78
|
+
feeType?: null,
|
|
79
|
+
recipient?: PromiseOrValue<string> | null,
|
|
80
|
+
amount?: null
|
|
81
|
+
): IntentFeeDistributedEventFilter;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
estimateGas: {};
|
|
85
|
+
|
|
86
|
+
populateTransaction: {};
|
|
87
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BytesLike, Signer, utils } from "ethers";
|
|
2
|
+
import type { EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
|
|
5
|
+
export interface RiskSettlementExecutorInterface extends utils.Interface {
|
|
6
|
+
functions: {};
|
|
7
|
+
events: {
|
|
8
|
+
"IntentRiskSettlementExecuted(bytes32,address,address,uint256,uint256,bool,bool)": EventFragment;
|
|
9
|
+
};
|
|
10
|
+
getEvent(nameOrSignatureOrTopic: "IntentRiskSettlementExecuted"): EventFragment;
|
|
11
|
+
}
|
|
12
|
+
export interface IntentRiskSettlementExecutedEventObject {
|
|
13
|
+
intentHash: string;
|
|
14
|
+
riskHook: string;
|
|
15
|
+
token: string;
|
|
16
|
+
grossAmount: BigNumber;
|
|
17
|
+
executableAmount: BigNumber;
|
|
18
|
+
fundsConsumed: boolean;
|
|
19
|
+
isManualRelease: boolean;
|
|
20
|
+
}
|
|
21
|
+
export type IntentRiskSettlementExecutedEvent = TypedEvent<[
|
|
22
|
+
string,
|
|
23
|
+
string,
|
|
24
|
+
string,
|
|
25
|
+
BigNumber,
|
|
26
|
+
BigNumber,
|
|
27
|
+
boolean,
|
|
28
|
+
boolean
|
|
29
|
+
], IntentRiskSettlementExecutedEventObject>;
|
|
30
|
+
export type IntentRiskSettlementExecutedEventFilter = TypedEventFilter<IntentRiskSettlementExecutedEvent>;
|
|
31
|
+
export interface RiskSettlementExecutor extends BaseContract {
|
|
32
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
33
|
+
attach(addressOrName: string): this;
|
|
34
|
+
deployed(): Promise<this>;
|
|
35
|
+
interface: RiskSettlementExecutorInterface;
|
|
36
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
37
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
38
|
+
listeners(eventName?: string): Array<Listener>;
|
|
39
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
40
|
+
removeAllListeners(eventName?: string): this;
|
|
41
|
+
off: OnEvent<this>;
|
|
42
|
+
on: OnEvent<this>;
|
|
43
|
+
once: OnEvent<this>;
|
|
44
|
+
removeListener: OnEvent<this>;
|
|
45
|
+
functions: {};
|
|
46
|
+
callStatic: {};
|
|
47
|
+
filters: {
|
|
48
|
+
"IntentRiskSettlementExecuted(bytes32,address,address,uint256,uint256,bool,bool)"(intentHash?: PromiseOrValue<BytesLike> | null, riskHook?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, grossAmount?: null, executableAmount?: null, fundsConsumed?: null, isManualRelease?: null): IntentRiskSettlementExecutedEventFilter;
|
|
49
|
+
IntentRiskSettlementExecuted(intentHash?: PromiseOrValue<BytesLike> | null, riskHook?: PromiseOrValue<string> | null, token?: PromiseOrValue<string> | null, grossAmount?: null, executableAmount?: null, fundsConsumed?: null, isManualRelease?: null): IntentRiskSettlementExecutedEventFilter;
|
|
50
|
+
};
|
|
51
|
+
estimateGas: {};
|
|
52
|
+
populateTransaction: {};
|
|
53
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type { BaseContract, BigNumber, BytesLike, Signer, utils } from "ethers";
|
|
5
|
+
import type { EventFragment } from "@ethersproject/abi";
|
|
6
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
7
|
+
import type {
|
|
8
|
+
TypedEventFilter,
|
|
9
|
+
TypedEvent,
|
|
10
|
+
TypedListener,
|
|
11
|
+
OnEvent,
|
|
12
|
+
PromiseOrValue,
|
|
13
|
+
} from "../../common";
|
|
14
|
+
|
|
15
|
+
export interface RiskSettlementExecutorInterface extends utils.Interface {
|
|
16
|
+
functions: {};
|
|
17
|
+
|
|
18
|
+
events: {
|
|
19
|
+
"IntentRiskSettlementExecuted(bytes32,address,address,uint256,uint256,bool,bool)": EventFragment;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
getEvent(
|
|
23
|
+
nameOrSignatureOrTopic: "IntentRiskSettlementExecuted"
|
|
24
|
+
): EventFragment;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface IntentRiskSettlementExecutedEventObject {
|
|
28
|
+
intentHash: string;
|
|
29
|
+
riskHook: string;
|
|
30
|
+
token: string;
|
|
31
|
+
grossAmount: BigNumber;
|
|
32
|
+
executableAmount: BigNumber;
|
|
33
|
+
fundsConsumed: boolean;
|
|
34
|
+
isManualRelease: boolean;
|
|
35
|
+
}
|
|
36
|
+
export type IntentRiskSettlementExecutedEvent = TypedEvent<
|
|
37
|
+
[string, string, string, BigNumber, BigNumber, boolean, boolean],
|
|
38
|
+
IntentRiskSettlementExecutedEventObject
|
|
39
|
+
>;
|
|
40
|
+
|
|
41
|
+
export type IntentRiskSettlementExecutedEventFilter =
|
|
42
|
+
TypedEventFilter<IntentRiskSettlementExecutedEvent>;
|
|
43
|
+
|
|
44
|
+
export interface RiskSettlementExecutor extends BaseContract {
|
|
45
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
46
|
+
attach(addressOrName: string): this;
|
|
47
|
+
deployed(): Promise<this>;
|
|
48
|
+
|
|
49
|
+
interface: RiskSettlementExecutorInterface;
|
|
50
|
+
|
|
51
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
52
|
+
event: TypedEventFilter<TEvent>,
|
|
53
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
54
|
+
toBlock?: string | number | undefined
|
|
55
|
+
): Promise<Array<TEvent>>;
|
|
56
|
+
|
|
57
|
+
listeners<TEvent extends TypedEvent>(
|
|
58
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
59
|
+
): Array<TypedListener<TEvent>>;
|
|
60
|
+
listeners(eventName?: string): Array<Listener>;
|
|
61
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
62
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
63
|
+
): this;
|
|
64
|
+
removeAllListeners(eventName?: string): this;
|
|
65
|
+
off: OnEvent<this>;
|
|
66
|
+
on: OnEvent<this>;
|
|
67
|
+
once: OnEvent<this>;
|
|
68
|
+
removeListener: OnEvent<this>;
|
|
69
|
+
|
|
70
|
+
functions: {};
|
|
71
|
+
|
|
72
|
+
callStatic: {};
|
|
73
|
+
|
|
74
|
+
filters: {
|
|
75
|
+
"IntentRiskSettlementExecuted(bytes32,address,address,uint256,uint256,bool,bool)"(
|
|
76
|
+
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
77
|
+
riskHook?: PromiseOrValue<string> | null,
|
|
78
|
+
token?: PromiseOrValue<string> | null,
|
|
79
|
+
grossAmount?: null,
|
|
80
|
+
executableAmount?: null,
|
|
81
|
+
fundsConsumed?: null,
|
|
82
|
+
isManualRelease?: null
|
|
83
|
+
): IntentRiskSettlementExecutedEventFilter;
|
|
84
|
+
IntentRiskSettlementExecuted(
|
|
85
|
+
intentHash?: PromiseOrValue<BytesLike> | null,
|
|
86
|
+
riskHook?: PromiseOrValue<string> | null,
|
|
87
|
+
token?: PromiseOrValue<string> | null,
|
|
88
|
+
grossAmount?: null,
|
|
89
|
+
executableAmount?: null,
|
|
90
|
+
fundsConsumed?: null,
|
|
91
|
+
isManualRelease?: null
|
|
92
|
+
): IntentRiskSettlementExecutedEventFilter;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
estimateGas: {};
|
|
96
|
+
|
|
97
|
+
populateTransaction: {};
|
|
98
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
|
|
5
|
+
export interface ChainlinkOracleAdapterInterface extends utils.Interface {
|
|
6
|
+
functions: {
|
|
7
|
+
"getRate(bytes)": FunctionFragment;
|
|
8
|
+
"validateConfig(bytes)": FunctionFragment;
|
|
9
|
+
};
|
|
10
|
+
getFunction(nameOrSignatureOrTopic: "getRate" | "validateConfig"): FunctionFragment;
|
|
11
|
+
encodeFunctionData(functionFragment: "getRate", values: [PromiseOrValue<BytesLike>]): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "validateConfig", values: [PromiseOrValue<BytesLike>]): string;
|
|
13
|
+
decodeFunctionResult(functionFragment: "getRate", data: BytesLike): Result;
|
|
14
|
+
decodeFunctionResult(functionFragment: "validateConfig", data: BytesLike): Result;
|
|
15
|
+
events: {};
|
|
16
|
+
}
|
|
17
|
+
export interface ChainlinkOracleAdapter extends BaseContract {
|
|
18
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
19
|
+
attach(addressOrName: string): this;
|
|
20
|
+
deployed(): Promise<this>;
|
|
21
|
+
interface: ChainlinkOracleAdapterInterface;
|
|
22
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
23
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
24
|
+
listeners(eventName?: string): Array<Listener>;
|
|
25
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
26
|
+
removeAllListeners(eventName?: string): this;
|
|
27
|
+
off: OnEvent<this>;
|
|
28
|
+
on: OnEvent<this>;
|
|
29
|
+
once: OnEvent<this>;
|
|
30
|
+
removeListener: OnEvent<this>;
|
|
31
|
+
functions: {
|
|
32
|
+
getRate(normalizedConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[
|
|
33
|
+
boolean,
|
|
34
|
+
BigNumber,
|
|
35
|
+
BigNumber
|
|
36
|
+
] & {
|
|
37
|
+
valid: boolean;
|
|
38
|
+
rate: BigNumber;
|
|
39
|
+
updatedAt: BigNumber;
|
|
40
|
+
}>;
|
|
41
|
+
validateConfig(rawConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[string] & {
|
|
42
|
+
normalizedConfig: string;
|
|
43
|
+
}>;
|
|
44
|
+
};
|
|
45
|
+
getRate(normalizedConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[
|
|
46
|
+
boolean,
|
|
47
|
+
BigNumber,
|
|
48
|
+
BigNumber
|
|
49
|
+
] & {
|
|
50
|
+
valid: boolean;
|
|
51
|
+
rate: BigNumber;
|
|
52
|
+
updatedAt: BigNumber;
|
|
53
|
+
}>;
|
|
54
|
+
validateConfig(rawConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
|
|
55
|
+
callStatic: {
|
|
56
|
+
getRate(normalizedConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[
|
|
57
|
+
boolean,
|
|
58
|
+
BigNumber,
|
|
59
|
+
BigNumber
|
|
60
|
+
] & {
|
|
61
|
+
valid: boolean;
|
|
62
|
+
rate: BigNumber;
|
|
63
|
+
updatedAt: BigNumber;
|
|
64
|
+
}>;
|
|
65
|
+
validateConfig(rawConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
|
|
66
|
+
};
|
|
67
|
+
filters: {};
|
|
68
|
+
estimateGas: {
|
|
69
|
+
getRate(normalizedConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
70
|
+
validateConfig(rawConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
71
|
+
};
|
|
72
|
+
populateTransaction: {
|
|
73
|
+
getRate(normalizedConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
74
|
+
validateConfig(rawConfig: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
75
|
+
};
|
|
76
|
+
}
|