@zkp2p/contracts-v2 0.2.4 → 0.3.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -20
- package/_cjs/abis/base/index.js +52 -23
- package/_cjs/abis/baseStaging/BoundedCall.js +93 -0
- package/_cjs/abis/baseStaging/BoundedCall.json +91 -0
- package/_cjs/abis/baseStaging/DeferredPayoutHook.js +247 -0
- package/_cjs/abis/baseStaging/DeferredPayoutHook.json +245 -0
- package/_cjs/abis/baseStaging/FeeSettlementLib.js +35 -0
- package/_cjs/abis/baseStaging/FeeSettlementLib.json +33 -0
- package/_cjs/abis/baseStaging/NullifierRegistryV2.js +339 -0
- package/_cjs/abis/baseStaging/NullifierRegistryV2.json +337 -0
- package/_cjs/abis/baseStaging/OrchestratorV3.js +1857 -0
- package/_cjs/abis/baseStaging/OrchestratorV3.json +1855 -0
- package/_cjs/abis/baseStaging/PostIntentHookExecutor.js +3 -0
- package/_cjs/abis/baseStaging/PostIntentHookExecutor.json +1 -0
- package/_cjs/abis/baseStaging/RiskAttestationVerifier.js +243 -0
- package/_cjs/abis/baseStaging/RiskAttestationVerifier.json +241 -0
- package/_cjs/abis/baseStaging/RiskManager.js +2043 -0
- package/_cjs/abis/baseStaging/RiskManager.json +2041 -0
- package/_cjs/abis/baseStaging/RiskSettlementExecutor.js +106 -0
- package/_cjs/abis/baseStaging/RiskSettlementExecutor.json +104 -0
- package/_cjs/abis/baseStaging/StakeVault.js +2397 -0
- package/_cjs/abis/baseStaging/StakeVault.json +2395 -0
- package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.js +2397 -0
- package/_cjs/abis/baseStaging/StakeVaultRiskSettlement.json +2395 -0
- package/_cjs/abis/baseStaging/UnifiedPaymentVerifierV3.js +366 -0
- package/_cjs/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
- package/_cjs/abis/baseStaging/index.js +76 -23
- package/_cjs/abis/baseStaging.cjs +12 -0
- package/_cjs/abis/baseStaging.mjs +12 -0
- package/_cjs/abis/contracts/IIntentRiskHook.js +97 -0
- package/_cjs/abis/contracts/IIntentRiskHook.json +95 -0
- package/_cjs/abis/contracts/NullifierRegistryV2.js +339 -0
- package/_cjs/abis/contracts/NullifierRegistryV2.json +337 -0
- package/_cjs/abis/contracts/OrchestratorV3.js +1857 -0
- package/_cjs/abis/contracts/OrchestratorV3.json +1855 -0
- package/_cjs/abis/contracts/RiskManager.js +2043 -0
- package/_cjs/abis/contracts/RiskManager.json +2041 -0
- package/_cjs/abis/contracts/StakeVault.js +2397 -0
- package/_cjs/abis/contracts/StakeVault.json +2395 -0
- package/_cjs/abis/contracts/UnifiedPaymentVerifierV3.js +366 -0
- package/_cjs/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
- package/_cjs/abis/contracts/index.js +18 -0
- package/_cjs/abis/contracts.cjs +9 -0
- package/_cjs/abis/contracts.mjs +7 -0
- package/_cjs/abis/index.js +39 -2
- package/_cjs/addresses/base.js +14 -2
- package/_cjs/addresses/base.json +14 -2
- package/_cjs/addresses/baseStaging.js +14 -2
- package/_cjs/addresses/baseStaging.json +14 -2
- package/_cjs/addresses/index.js +10 -2
- package/_cjs/addresses/index.json +1 -1
- package/_cjs/constants/index.js +10 -3
- package/_cjs/constants/index.json +1 -2
- 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 -25
- package/_cjs/paymentMethods/base.json +1 -25
- package/_cjs/paymentMethods/baseStaging.js +1 -25
- package/_cjs/paymentMethods/baseStaging.json +1 -25
- package/_cjs/paymentMethods/index.js +25 -23
- package/_cjs/paymentMethods/index.json +1 -2
- package/_cjs/paymentMethods/lookups.js +2 -14
- package/_cjs/paymentMethods/lookups.json +2 -14
- 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 -0
- 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 -0
- package/_cjs/types/contracts/external/Interfaces/IAcrossSpokePool.js +2 -165
- package/_cjs/types/contracts/external/Interfaces/index.js +2 -4
- package/_cjs/types/contracts/external/index.js +2 -5
- package/_cjs/types/contracts/hooks/AcrossBridgeHook.js +2 -547
- package/_cjs/types/contracts/hooks/AcrossBridgeHookV2.js +2 -553
- package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.js +2 -360
- package/_cjs/types/contracts/hooks/WhitelistPreIntentHook.js +2 -433
- package/_cjs/types/contracts/hooks/index.js +2 -7
- package/_cjs/types/contracts/index.js +2 -22
- 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 -0
- 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 -0
- 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 -0
- package/_cjs/types/contracts/interfaces/index.js +2 -25
- package/_cjs/types/contracts/lib/BoundedCall.js +2 -0
- 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 -0
- package/_cjs/types/contracts/oracles/ChainlinkOracleAdapter.js +2 -154
- package/_cjs/types/contracts/oracles/PythOracleAdapter.js +2 -167
- package/_cjs/types/contracts/oracles/index.js +2 -5
- package/_cjs/types/contracts/registries/EscrowRegistry.js +2 -463
- package/_cjs/types/contracts/registries/NullifierRegistry.js +2 -447
- package/_cjs/types/contracts/registries/NullifierRegistryV2.js +2 -0
- package/_cjs/types/contracts/registries/OrchestratorRegistry.js +2 -324
- package/_cjs/types/contracts/registries/PaymentVerifierRegistry.js +2 -657
- package/_cjs/types/contracts/registries/PostIntentHookRegistry.js +2 -414
- package/_cjs/types/contracts/registries/RelayerRegistry.js +2 -371
- package/_cjs/types/contracts/registries/index.js +2 -9
- package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +2 -502
- package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.js +2 -0
- package/_cjs/types/contracts/unifiedVerifier/MultiAttestationVerifier.js +2 -474
- package/_cjs/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +2 -315
- package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +2 -620
- package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.js +2 -0
- package/_cjs/types/contracts/unifiedVerifier/index.js +2 -7
- package/_cjs/types/index.js +37 -1
- package/_cjs/utils/index.js +24 -4
- package/_cjs/utils/protocolUtils.js +60 -70
- package/_cjs/utils/riskMath.js +72 -0
- package/_esm/abis/base/index.js +23 -23
- package/_esm/abis/baseStaging/BoundedCall.js +92 -0
- package/_esm/abis/baseStaging/BoundedCall.json +91 -0
- package/_esm/abis/baseStaging/DeferredPayoutHook.js +246 -0
- package/_esm/abis/baseStaging/DeferredPayoutHook.json +245 -0
- package/_esm/abis/baseStaging/FeeSettlementLib.js +34 -0
- package/_esm/abis/baseStaging/FeeSettlementLib.json +33 -0
- package/_esm/abis/baseStaging/NullifierRegistryV2.js +338 -0
- package/_esm/abis/baseStaging/NullifierRegistryV2.json +337 -0
- package/_esm/abis/baseStaging/OrchestratorV3.js +1856 -0
- package/_esm/abis/baseStaging/OrchestratorV3.json +1855 -0
- package/_esm/abis/baseStaging/PostIntentHookExecutor.js +2 -0
- package/_esm/abis/baseStaging/PostIntentHookExecutor.json +1 -0
- package/_esm/abis/baseStaging/RiskAttestationVerifier.js +242 -0
- package/_esm/abis/baseStaging/RiskAttestationVerifier.json +241 -0
- package/_esm/abis/baseStaging/RiskManager.js +2042 -0
- package/_esm/abis/baseStaging/RiskManager.json +2041 -0
- package/_esm/abis/baseStaging/RiskSettlementExecutor.js +105 -0
- package/_esm/abis/baseStaging/RiskSettlementExecutor.json +104 -0
- package/_esm/abis/baseStaging/StakeVault.js +2396 -0
- package/_esm/abis/baseStaging/StakeVault.json +2395 -0
- package/_esm/abis/baseStaging/StakeVaultRiskSettlement.js +2396 -0
- package/_esm/abis/baseStaging/StakeVaultRiskSettlement.json +2395 -0
- package/_esm/abis/baseStaging/UnifiedPaymentVerifierV3.js +365 -0
- package/_esm/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
- package/_esm/abis/baseStaging/index.js +35 -23
- package/_esm/abis/baseStaging.cjs +12 -0
- package/_esm/abis/baseStaging.mjs +12 -0
- package/_esm/abis/contracts/IIntentRiskHook.js +96 -0
- package/_esm/abis/contracts/IIntentRiskHook.json +95 -0
- package/_esm/abis/contracts/NullifierRegistryV2.js +338 -0
- package/_esm/abis/contracts/NullifierRegistryV2.json +337 -0
- package/_esm/abis/contracts/OrchestratorV3.js +1856 -0
- package/_esm/abis/contracts/OrchestratorV3.json +1855 -0
- package/_esm/abis/contracts/RiskManager.js +2042 -0
- package/_esm/abis/contracts/RiskManager.json +2041 -0
- package/_esm/abis/contracts/StakeVault.js +2396 -0
- package/_esm/abis/contracts/StakeVault.json +2395 -0
- package/_esm/abis/contracts/UnifiedPaymentVerifierV3.js +365 -0
- package/_esm/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
- package/_esm/abis/contracts/index.js +6 -0
- package/_esm/abis/contracts.cjs +9 -0
- package/_esm/abis/contracts.mjs +7 -0
- package/_esm/abis/index.js +1 -0
- package/_esm/addresses/base.js +14 -2
- package/_esm/addresses/base.json +14 -2
- package/_esm/addresses/baseStaging.js +14 -2
- package/_esm/addresses/baseStaging.json +14 -2
- package/_esm/addresses/index.js +2 -2
- package/_esm/addresses/index.json +1 -1
- package/_esm/constants/index.js +2 -3
- package/_esm/constants/index.json +1 -2
- 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 -25
- package/_esm/paymentMethods/base.json +1 -25
- package/_esm/paymentMethods/baseStaging.js +1 -25
- package/_esm/paymentMethods/baseStaging.json +1 -25
- package/_esm/paymentMethods/index.js +14 -22
- package/_esm/paymentMethods/index.json +1 -2
- package/_esm/paymentMethods/lookups.js +2 -14
- package/_esm/paymentMethods/lookups.json +2 -14
- 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 -0
- 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 -0
- package/_esm/types/contracts/external/Interfaces/IAcrossSpokePool.js +1 -165
- package/_esm/types/contracts/external/Interfaces/index.js +1 -4
- package/_esm/types/contracts/external/index.js +1 -5
- package/_esm/types/contracts/hooks/AcrossBridgeHook.js +1 -547
- package/_esm/types/contracts/hooks/AcrossBridgeHookV2.js +1 -553
- package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.js +1 -360
- package/_esm/types/contracts/hooks/WhitelistPreIntentHook.js +1 -433
- package/_esm/types/contracts/hooks/index.js +1 -7
- package/_esm/types/contracts/index.js +1 -22
- 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 -0
- 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 -0
- 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 -0
- package/_esm/types/contracts/interfaces/index.js +1 -25
- package/_esm/types/contracts/lib/BoundedCall.js +1 -0
- 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 -0
- package/_esm/types/contracts/oracles/ChainlinkOracleAdapter.js +1 -154
- package/_esm/types/contracts/oracles/PythOracleAdapter.js +1 -167
- package/_esm/types/contracts/oracles/index.js +1 -5
- package/_esm/types/contracts/registries/EscrowRegistry.js +1 -463
- package/_esm/types/contracts/registries/NullifierRegistry.js +1 -447
- package/_esm/types/contracts/registries/NullifierRegistryV2.js +1 -0
- package/_esm/types/contracts/registries/OrchestratorRegistry.js +1 -324
- package/_esm/types/contracts/registries/PaymentVerifierRegistry.js +1 -657
- package/_esm/types/contracts/registries/PostIntentHookRegistry.js +1 -414
- package/_esm/types/contracts/registries/RelayerRegistry.js +1 -371
- package/_esm/types/contracts/registries/index.js +1 -9
- package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +1 -502
- package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.js +1 -0
- package/_esm/types/contracts/unifiedVerifier/MultiAttestationVerifier.js +1 -474
- package/_esm/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +1 -315
- package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +1 -620
- package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.js +1 -0
- package/_esm/types/contracts/unifiedVerifier/index.js +1 -7
- package/_esm/utils/index.js +2 -8
- package/_esm/utils/protocolUtils.js +49 -66
- package/_esm/utils/riskMath.js +64 -0
- package/_types/abis/base/index.d.ts +23 -0
- package/_types/abis/baseStaging/index.d.ts +35 -0
- package/_types/abis/baseStaging.d.ts +12 -0
- package/_types/abis/contracts/index.d.ts +6 -0
- package/_types/abis/contracts.d.ts +8 -0
- package/_types/abis/index.d.ts +3 -0
- package/_types/addresses/index.d.ts +2 -3
- package/_types/constants/index.d.ts +2 -4
- package/_types/currencies/index.d.ts +3 -3
- package/_types/oracleFeeds/index.d.ts +3 -3
- package/_types/paymentMethods/index.d.ts +10 -5
- package/_types/paymentMethods/lookups.d.ts +0 -2
- package/_types/types/common.d.ts +22 -0
- package/_types/types/contracts/Escrow.d.ts +1241 -0
- package/_types/types/contracts/EscrowV2.d.ts +1570 -0
- package/_types/types/contracts/Orchestrator.d.ts +672 -0
- package/_types/types/contracts/OrchestratorV2.d.ts +780 -0
- package/_types/types/contracts/OrchestratorV3.d.ts +951 -0
- package/_types/types/contracts/ProtocolViewer.d.ts +273 -0
- package/_types/types/contracts/ProtocolViewerV2.d.ts +264 -0
- package/_types/types/contracts/RateManagerV1.d.ts +447 -0
- package/_types/types/contracts/RiskManager.d.ts +1031 -0
- package/_types/types/contracts/StakeVault.d.ts +1357 -0
- package/_types/types/contracts/external/Interfaces/IAcrossSpokePool.d.ts +62 -0
- package/_types/types/contracts/external/Interfaces/index.d.ts +1 -0
- package/_types/types/contracts/external/index.d.ts +2 -0
- package/_types/types/contracts/hooks/AcrossBridgeHook.d.ts +290 -0
- package/_types/types/contracts/hooks/AcrossBridgeHookV2.d.ts +297 -0
- package/_types/types/contracts/hooks/SignatureGatingPreIntentHook.d.ts +160 -0
- package/_types/types/contracts/hooks/WhitelistPreIntentHook.d.ts +193 -0
- package/_types/types/contracts/hooks/index.d.ts +4 -0
- package/_types/types/contracts/index.d.ts +24 -0
- package/_types/types/contracts/interfaces/IAttestationVerifier.d.ts +48 -0
- package/_types/types/contracts/interfaces/IChainlinkAggregatorV3.d.ts +86 -0
- package/_types/types/contracts/interfaces/IEscrow.d.ts +640 -0
- package/_types/types/contracts/interfaces/IEscrowRegistry.d.ts +58 -0
- package/_types/types/contracts/interfaces/IEscrowV2.d.ts +1041 -0
- package/_types/types/contracts/interfaces/IIntentRiskHook.d.ts +120 -0
- package/_types/types/contracts/interfaces/INullifierRegistry.d.ts +58 -0
- package/_types/types/contracts/interfaces/INullifierRegistryV2.d.ts +165 -0
- package/_types/types/contracts/interfaces/IOracleAdapter.d.ts +76 -0
- package/_types/types/contracts/interfaces/IOrchestrator.d.ts +385 -0
- package/_types/types/contracts/interfaces/IOrchestratorRegistry.d.ts +76 -0
- package/_types/types/contracts/interfaces/IOrchestratorV2.d.ts +517 -0
- package/_types/types/contracts/interfaces/IOrchestratorV3.d.ts +716 -0
- package/_types/types/contracts/interfaces/IPaymentVerifier.d.ts +76 -0
- package/_types/types/contracts/interfaces/IPaymentVerifierRegistry.d.ts +74 -0
- package/_types/types/contracts/interfaces/IPostIntentHook.d.ts +103 -0
- package/_types/types/contracts/interfaces/IPostIntentHookRegistry.d.ts +50 -0
- package/_types/types/contracts/interfaces/IPostIntentHookV2.d.ts +110 -0
- package/_types/types/contracts/interfaces/IPreIntentHook.d.ts +97 -0
- package/_types/types/contracts/interfaces/IProtocolViewer.d.ts +217 -0
- package/_types/types/contracts/interfaces/IProtocolViewerV2.d.ts +264 -0
- package/_types/types/contracts/interfaces/IPyth.d.ts +84 -0
- package/_types/types/contracts/interfaces/IRateManager.d.ts +93 -0
- package/_types/types/contracts/interfaces/IReferralFee.d.ts +27 -0
- package/_types/types/contracts/interfaces/IRelayerRegistry.d.ts +50 -0
- package/_types/types/contracts/interfaces/IRiskManager.d.ts +825 -0
- package/_types/types/contracts/interfaces/IStakeVault.d.ts +1232 -0
- package/_types/types/contracts/interfaces/index.d.ts +27 -0
- package/_types/types/contracts/lib/BoundedCall.d.ts +47 -0
- package/_types/types/contracts/lib/FeeSettlementLib.d.ts +47 -0
- package/_types/types/contracts/lib/RiskSettlementExecutor.d.ts +53 -0
- package/_types/types/contracts/lib/index.d.ts +3 -0
- package/_types/types/contracts/oracles/ChainlinkOracleAdapter.d.ts +76 -0
- package/_types/types/contracts/oracles/PythOracleAdapter.d.ts +84 -0
- package/_types/types/contracts/oracles/index.d.ts +2 -0
- package/_types/types/contracts/registries/EscrowRegistry.d.ts +206 -0
- package/_types/types/contracts/registries/NullifierRegistry.d.ts +200 -0
- package/_types/types/contracts/registries/NullifierRegistryV2.d.ts +218 -0
- package/_types/types/contracts/registries/OrchestratorRegistry.d.ts +151 -0
- package/_types/types/contracts/registries/PaymentVerifierRegistry.d.ts +270 -0
- package/_types/types/contracts/registries/PostIntentHookRegistry.d.ts +175 -0
- package/_types/types/contracts/registries/RelayerRegistry.d.ts +165 -0
- package/_types/types/contracts/registries/index.d.ts +7 -0
- package/_types/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.d.ts +220 -0
- package/_types/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.d.ts +220 -0
- package/_types/types/contracts/unifiedVerifier/MultiAttestationVerifier.d.ts +216 -0
- package/_types/types/contracts/unifiedVerifier/SimpleAttestationVerifier.d.ts +148 -0
- package/_types/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.d.ts +293 -0
- package/_types/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.d.ts +293 -0
- package/_types/types/contracts/unifiedVerifier/index.d.ts +6 -0
- package/_types/types/index.d.ts +1 -0
- package/_types/utils/index.d.ts +3 -0
- package/_types/utils/protocolUtils.d.ts +40 -0
- package/_types/utils/riskMath.d.ts +30 -0
- package/abis/base/index.d.ts +23 -0
- package/abis/baseStaging/BoundedCall.json +91 -0
- package/abis/baseStaging/DeferredPayoutHook.json +245 -0
- package/abis/baseStaging/FeeSettlementLib.json +33 -0
- package/abis/baseStaging/NullifierRegistryV2.json +337 -0
- package/abis/baseStaging/OrchestratorV3.json +1855 -0
- package/abis/baseStaging/PostIntentHookExecutor.json +1 -0
- package/abis/baseStaging/RiskAttestationVerifier.json +241 -0
- package/abis/baseStaging/RiskManager.json +2041 -0
- package/abis/baseStaging/RiskSettlementExecutor.json +104 -0
- package/abis/baseStaging/StakeVault.json +2395 -0
- package/abis/baseStaging/StakeVaultRiskSettlement.json +2395 -0
- package/abis/baseStaging/UnifiedPaymentVerifierV3.json +364 -0
- package/abis/baseStaging/index.d.ts +35 -0
- package/abis/baseStaging/index.ts +12 -0
- package/abis/baseStaging.cjs +12 -0
- package/abis/baseStaging.d.ts +12 -0
- package/abis/baseStaging.mjs +12 -0
- package/abis/contracts/IIntentRiskHook.json +95 -0
- package/abis/contracts/NullifierRegistryV2.json +337 -0
- package/abis/contracts/OrchestratorV3.json +1855 -0
- package/abis/contracts/RiskManager.json +2041 -0
- package/abis/contracts/StakeVault.json +2395 -0
- package/abis/contracts/UnifiedPaymentVerifierV3.json +364 -0
- package/abis/contracts/index.d.ts +6 -0
- package/abis/contracts/index.ts +6 -0
- package/abis/contracts.cjs +9 -0
- package/abis/contracts.d.ts +8 -0
- package/abis/contracts.mjs +7 -0
- package/abis/index.d.ts +3 -0
- package/abis/index.ts +1 -0
- package/addresses/base.json +14 -2
- package/addresses/baseStaging.json +14 -2
- package/addresses/index.d.ts +2 -3
- package/addresses/index.json +1 -1
- package/constants/index.d.ts +2 -4
- package/constants/index.json +1 -2
- package/constants/index.ts +0 -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 -25
- package/paymentMethods/baseStaging.json +1 -25
- package/paymentMethods/index.d.ts +0 -1
- package/paymentMethods/index.json +1 -2
- package/paymentMethods/index.ts +1 -3
- package/paymentMethods/lookups.d.ts +0 -2
- package/paymentMethods/lookups.json +2 -14
- 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 +1976 -0
- package/types/contracts/ProtocolViewer.d.ts +273 -0
- package/types/contracts/ProtocolViewerV2.d.ts +264 -0
- package/types/contracts/RateManagerV1.d.ts +447 -0
- package/types/contracts/RiskManager.d.ts +1031 -0
- package/types/contracts/RiskManager.ts +2005 -0
- package/types/contracts/StakeVault.d.ts +1357 -0
- package/types/contracts/StakeVault.ts +2983 -0
- package/types/contracts/external/Interfaces/IAcrossSpokePool.d.ts +62 -0
- package/types/contracts/external/Interfaces/index.d.ts +1 -0
- package/types/contracts/external/index.d.ts +2 -0
- package/types/contracts/hooks/AcrossBridgeHook.d.ts +290 -0
- package/types/contracts/hooks/AcrossBridgeHookV2.d.ts +297 -0
- package/types/contracts/hooks/SignatureGatingPreIntentHook.d.ts +160 -0
- package/types/contracts/hooks/WhitelistPreIntentHook.d.ts +193 -0
- package/types/contracts/hooks/index.d.ts +4 -0
- package/types/contracts/index.d.ts +24 -0
- package/types/contracts/index.ts +5 -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 +221 -0
- 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 +1463 -0
- package/types/contracts/interfaces/IPaymentVerifier.d.ts +76 -0
- package/types/contracts/interfaces/IPaymentVerifierRegistry.d.ts +74 -0
- package/types/contracts/interfaces/IPostIntentHook.d.ts +103 -0
- package/types/contracts/interfaces/IPostIntentHookRegistry.d.ts +50 -0
- package/types/contracts/interfaces/IPostIntentHookV2.d.ts +110 -0
- package/types/contracts/interfaces/IPreIntentHook.d.ts +97 -0
- package/types/contracts/interfaces/IProtocolViewer.d.ts +217 -0
- package/types/contracts/interfaces/IProtocolViewerV2.d.ts +264 -0
- package/types/contracts/interfaces/IPyth.d.ts +84 -0
- package/types/contracts/interfaces/IRateManager.d.ts +93 -0
- package/types/contracts/interfaces/IReferralFee.d.ts +27 -0
- package/types/contracts/interfaces/IRelayerRegistry.d.ts +50 -0
- package/types/contracts/interfaces/IRiskManager.d.ts +825 -0
- package/types/contracts/interfaces/IRiskManager.ts +1580 -0
- package/types/contracts/interfaces/IStakeVault.d.ts +1232 -0
- package/types/contracts/interfaces/IStakeVault.ts +2691 -0
- package/types/contracts/interfaces/index.d.ts +27 -0
- package/types/contracts/interfaces/index.ts +5 -0
- package/types/contracts/lib/BoundedCall.d.ts +47 -0
- package/types/contracts/lib/BoundedCall.ts +87 -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 +6 -0
- package/types/contracts/oracles/ChainlinkOracleAdapter.d.ts +76 -0
- package/types/contracts/oracles/PythOracleAdapter.d.ts +84 -0
- package/types/contracts/oracles/index.d.ts +2 -0
- package/types/contracts/registries/EscrowRegistry.d.ts +206 -0
- package/types/contracts/registries/NullifierRegistry.d.ts +200 -0
- package/types/contracts/registries/NullifierRegistryV2.d.ts +218 -0
- package/types/contracts/registries/NullifierRegistryV2.ts +520 -0
- package/types/contracts/registries/OrchestratorRegistry.d.ts +151 -0
- package/types/contracts/registries/PaymentVerifierRegistry.d.ts +270 -0
- package/types/contracts/registries/PostIntentHookRegistry.d.ts +175 -0
- package/types/contracts/registries/RelayerRegistry.d.ts +165 -0
- package/types/contracts/registries/index.d.ts +7 -0
- package/types/contracts/registries/index.ts +1 -0
- package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.d.ts +220 -0
- package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.d.ts +220 -0
- package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifierV3.ts +502 -0
- package/types/contracts/unifiedVerifier/MultiAttestationVerifier.d.ts +216 -0
- package/types/contracts/unifiedVerifier/SimpleAttestationVerifier.d.ts +148 -0
- package/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.d.ts +293 -0
- package/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.d.ts +293 -0
- package/types/contracts/unifiedVerifier/UnifiedPaymentVerifierV3.ts +620 -0
- package/types/contracts/unifiedVerifier/index.d.ts +6 -0
- package/types/contracts/unifiedVerifier/index.ts +2 -0
- package/types/index.d.ts +1 -0
- package/utils/index.d.ts +3 -0
- package/utils/index.ts +1 -0
- package/utils/protocolUtils.d.ts +40 -0
- package/utils/riskMath.d.ts +30 -0
- package/utils/riskMath.ts +103 -0
- package/_cjs/constants/baseSepolia.js +0 -12
- package/_cjs/constants/baseSepolia.json +0 -10
- package/_cjs/paymentMethods/baseSepolia.js +0 -139
- package/_cjs/paymentMethods/baseSepolia.json +0 -137
- package/_esm/constants/baseSepolia.js +0 -11
- package/_esm/constants/baseSepolia.json +0 -10
- package/_esm/paymentMethods/baseSepolia.js +0 -138
- package/_esm/paymentMethods/baseSepolia.json +0 -137
- package/_types/constants/baseSepolia.d.ts +0 -4
- package/_types/paymentMethods/baseSepolia.d.ts +0 -4
- package/constants/baseSepolia.d.ts +0 -4
- package/constants/baseSepolia.json +0 -10
- package/paymentMethods/baseSepolia.d.ts +0 -4
- package/paymentMethods/baseSepolia.json +0 -137
package/README.md
CHANGED
|
@@ -16,16 +16,16 @@ pnpm add @zkp2p/contracts-v2
|
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
18
|
// Import addresses for specific networks
|
|
19
|
-
import { base,
|
|
19
|
+
import { base, baseStaging } from "@zkp2p/contracts-v2/addresses"
|
|
20
20
|
|
|
21
21
|
// Import specific contract ABIs from a network
|
|
22
|
-
import { Escrow, Orchestrator } from "@zkp2p/contracts-v2/abis/
|
|
22
|
+
import { Escrow, Orchestrator } from "@zkp2p/contracts-v2/abis/baseStaging"
|
|
23
23
|
|
|
24
24
|
// Import constants
|
|
25
25
|
import { USDC, INTENT_EXPIRATION_PERIOD } from "@zkp2p/contracts-v2/constants/base"
|
|
26
26
|
|
|
27
27
|
// Import payment method configurations
|
|
28
|
-
import {
|
|
28
|
+
import { baseStaging as paymentMethods } from "@zkp2p/contracts-v2/paymentMethods"
|
|
29
29
|
|
|
30
30
|
// Import TypeScript types
|
|
31
31
|
import type { Escrow, Orchestrator } from "@zkp2p/contracts-v2/types"
|
|
@@ -33,6 +33,10 @@ import type { Escrow, Orchestrator } from "@zkp2p/contracts-v2/types"
|
|
|
33
33
|
// Import utility functions
|
|
34
34
|
import { getKeccak256Hash, calculateIntentHash } from "@zkp2p/contracts-v2/utils/protocolUtils"
|
|
35
35
|
|
|
36
|
+
// Import stable source ABIs for the hard-cut risk-settlement boundary and exact bigint math helpers
|
|
37
|
+
import { IIntentRiskHook, OrchestratorV3, RiskManager } from "@zkp2p/contracts-v2/abis/contracts"
|
|
38
|
+
import { calculateRequiredReservation } from "@zkp2p/contracts-v2/utils/riskMath"
|
|
39
|
+
|
|
36
40
|
// Example: Create contract instance with ethers
|
|
37
41
|
import { ethers } from 'ethers';
|
|
38
42
|
|
|
@@ -54,16 +58,16 @@ console.log('Venmo config:', paymentMethods.venmo);
|
|
|
54
58
|
Pre-configured addresses for all deployed networks:
|
|
55
59
|
|
|
56
60
|
```typescript
|
|
57
|
-
import { base,
|
|
61
|
+
import { base, baseStaging } from "@zkp2p/contracts-v2/addresses"
|
|
58
62
|
|
|
59
63
|
console.log(base.Orchestrator);
|
|
60
64
|
console.log(base.Escrow);
|
|
61
|
-
console.log(
|
|
65
|
+
console.log(baseStaging.UnifiedPaymentVerifier);
|
|
62
66
|
```
|
|
63
67
|
|
|
64
68
|
Supported networks:
|
|
65
69
|
- Base (`base`)
|
|
66
|
-
- Base
|
|
70
|
+
- Base staging (`baseStaging`)
|
|
67
71
|
|
|
68
72
|
### 📜 Network-Specific Contract ABIs
|
|
69
73
|
|
|
@@ -71,18 +75,18 @@ Minimal ABIs extracted from on-chain deployments:
|
|
|
71
75
|
|
|
72
76
|
```typescript
|
|
73
77
|
// Import specific contracts from a network
|
|
74
|
-
import { Orchestrator, Escrow } from "@zkp2p/contracts-v2/abis/
|
|
78
|
+
import { Orchestrator, Escrow } from "@zkp2p/contracts-v2/abis/baseStaging"
|
|
75
79
|
|
|
76
80
|
// Use the ABIs directly with ethers or viem
|
|
77
81
|
const orchestratorABI = Orchestrator;
|
|
78
82
|
const escrowABI = Escrow;
|
|
79
83
|
|
|
80
84
|
// Alternative: Import all ABIs for a network
|
|
81
|
-
import * as
|
|
82
|
-
const unifiedVerifierABI =
|
|
85
|
+
import * as baseStagingAbis from "@zkp2p/contracts-v2/abis/baseStaging"
|
|
86
|
+
const unifiedVerifierABI = baseStagingAbis.UnifiedPaymentVerifier;
|
|
83
87
|
|
|
84
88
|
// Also supports direct JSON imports for bundle optimization
|
|
85
|
-
import EscrowABI from "@zkp2p/contracts-v2/abis/
|
|
89
|
+
import EscrowABI from "@zkp2p/contracts-v2/abis/baseStaging/Escrow.json"
|
|
86
90
|
```
|
|
87
91
|
|
|
88
92
|
### 🔧 Network-Specific Protocol Constants
|
|
@@ -91,14 +95,14 @@ All protocol parameters and configurations per network:
|
|
|
91
95
|
|
|
92
96
|
```typescript
|
|
93
97
|
import { INTENT_EXPIRATION_PERIOD, MAX_INTENTS_PER_DEPOSIT, DUST_THRESHOLD } from "@zkp2p/contracts-v2/constants/base"
|
|
94
|
-
import * as
|
|
98
|
+
import * as baseStagingConstants from "@zkp2p/contracts-v2/constants/baseStaging"
|
|
95
99
|
|
|
96
100
|
// Use specific constants
|
|
97
101
|
console.log('Intent expiration:', INTENT_EXPIRATION_PERIOD);
|
|
98
102
|
console.log('Max intents:', MAX_INTENTS_PER_DEPOSIT);
|
|
99
103
|
|
|
100
104
|
// Or access all constants for a network
|
|
101
|
-
console.log('USDC address:',
|
|
105
|
+
console.log('USDC address:', baseStagingConstants.USDC);
|
|
102
106
|
```
|
|
103
107
|
|
|
104
108
|
### 💳 Payment Methods with Provider Hashes
|
|
@@ -106,16 +110,16 @@ console.log('USDC address:', baseSepoliaConstants.USDC);
|
|
|
106
110
|
Unified payment method configurations including provider hashes from deployment:
|
|
107
111
|
|
|
108
112
|
```typescript
|
|
109
|
-
import { base,
|
|
113
|
+
import { base, baseStaging } from "@zkp2p/contracts-v2/paymentMethods"
|
|
110
114
|
|
|
111
115
|
// Access payment method configurations
|
|
112
116
|
const venmoConfig = base.venmo;
|
|
113
117
|
console.log('Payment Method Hash:', venmoConfig.paymentMethodHash);
|
|
114
118
|
console.log('Currencies:', venmoConfig.currencies);
|
|
115
119
|
|
|
116
|
-
// Or use
|
|
117
|
-
const
|
|
118
|
-
console.log('Available methods:', Object.keys(
|
|
120
|
+
// Or use staging configurations
|
|
121
|
+
const stagingPaymentMethods = baseStaging;
|
|
122
|
+
console.log('Available methods:', Object.keys(stagingPaymentMethods));
|
|
119
123
|
```
|
|
120
124
|
|
|
121
125
|
### 🛠️ Utility Functions
|
|
@@ -159,11 +163,13 @@ The package follows modern ESM/CJS patterns with clean subpath exports:
|
|
|
159
163
|
All modules are directly accessible via subpath exports:
|
|
160
164
|
|
|
161
165
|
- `@zkp2p/contracts-v2/addresses` - Contract addresses for all networks
|
|
162
|
-
- `@zkp2p/contracts-v2/abis/<network>` - Contract ABIs per network (e.g., `/abis/
|
|
166
|
+
- `@zkp2p/contracts-v2/abis/<network>` - Contract ABIs per network (e.g., `/abis/baseStaging`)
|
|
167
|
+
- `@zkp2p/contracts-v2/abis/contracts` - Stable source ABIs for approved but not-yet-deployed contracts
|
|
163
168
|
- `@zkp2p/contracts-v2/abis/<network>/<contract>.json` - Direct JSON import for specific contracts
|
|
164
169
|
- `@zkp2p/contracts-v2/constants/<network>` - Constants per network
|
|
165
170
|
- `@zkp2p/contracts-v2/paymentMethods` - Payment method configs
|
|
166
171
|
- `@zkp2p/contracts-v2/utils/protocolUtils` - Protocol utilities
|
|
172
|
+
- `@zkp2p/contracts-v2/utils/riskMath` - Exact bigint capacity, reservation, and penalty formulas
|
|
167
173
|
- `@zkp2p/contracts-v2/types` - TypeScript types
|
|
168
174
|
|
|
169
175
|
### Export Format Details
|
|
@@ -172,13 +178,13 @@ The package now uses explicit wrapper modules for each network to ensure reliabl
|
|
|
172
178
|
|
|
173
179
|
```typescript
|
|
174
180
|
// Recommended: Import from network-specific wrappers
|
|
175
|
-
import { Escrow, Orchestrator } from "@zkp2p/contracts-v2/abis/
|
|
181
|
+
import { Escrow, Orchestrator } from "@zkp2p/contracts-v2/abis/baseStaging"
|
|
176
182
|
|
|
177
183
|
// Alternative: Direct JSON imports for bundle size optimization
|
|
178
|
-
import EscrowABI from "@zkp2p/contracts-v2/abis/
|
|
184
|
+
import EscrowABI from "@zkp2p/contracts-v2/abis/baseStaging/Escrow.json"
|
|
179
185
|
|
|
180
186
|
// CommonJS compatibility
|
|
181
|
-
const { Escrow } = require("@zkp2p/contracts-v2/abis/
|
|
187
|
+
const { Escrow } = require("@zkp2p/contracts-v2/abis/baseStaging")
|
|
182
188
|
```
|
|
183
189
|
|
|
184
190
|
Each network export provides:
|
package/_cjs/abis/base/index.js
CHANGED
|
@@ -1,23 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
exports
|
|
6
|
-
exports.EscrowV2 =
|
|
7
|
-
|
|
8
|
-
exports
|
|
9
|
-
|
|
10
|
-
exports
|
|
11
|
-
|
|
12
|
-
exports
|
|
13
|
-
|
|
14
|
-
exports
|
|
15
|
-
|
|
16
|
-
exports
|
|
17
|
-
|
|
18
|
-
exports
|
|
19
|
-
|
|
20
|
-
exports
|
|
21
|
-
|
|
22
|
-
exports
|
|
23
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.WhitelistPreIntentHook = exports.UnifiedPaymentVerifierV2 = exports.UnifiedPaymentVerifier = exports.SimpleAttestationVerifier = exports.SignatureGatingPreIntentHook = exports.RelayerRegistry = exports.RateManagerV1 = exports.PythOracleAdapter = exports.ProtocolViewerV2 = exports.ProtocolViewer = exports.PostIntentHookRegistry = exports.PaymentVerifierRegistry = exports.OrchestratorV2 = exports.OrchestratorRegistry = exports.Orchestrator = exports.NullifierRegistry = exports.MultiAttestationVerifier = exports.EscrowV2 = exports.EscrowRegistry = exports.Escrow = exports.ChainlinkOracleAdapter = exports.AcrossBridgeHookV2 = exports.AcrossBridgeHook = void 0;
|
|
7
|
+
var AcrossBridgeHook_json_1 = require("./AcrossBridgeHook.json");
|
|
8
|
+
Object.defineProperty(exports, "AcrossBridgeHook", { enumerable: true, get: function () { return __importDefault(AcrossBridgeHook_json_1).default; } });
|
|
9
|
+
var AcrossBridgeHookV2_json_1 = require("./AcrossBridgeHookV2.json");
|
|
10
|
+
Object.defineProperty(exports, "AcrossBridgeHookV2", { enumerable: true, get: function () { return __importDefault(AcrossBridgeHookV2_json_1).default; } });
|
|
11
|
+
var ChainlinkOracleAdapter_json_1 = require("./ChainlinkOracleAdapter.json");
|
|
12
|
+
Object.defineProperty(exports, "ChainlinkOracleAdapter", { enumerable: true, get: function () { return __importDefault(ChainlinkOracleAdapter_json_1).default; } });
|
|
13
|
+
var Escrow_json_1 = require("./Escrow.json");
|
|
14
|
+
Object.defineProperty(exports, "Escrow", { enumerable: true, get: function () { return __importDefault(Escrow_json_1).default; } });
|
|
15
|
+
var EscrowRegistry_json_1 = require("./EscrowRegistry.json");
|
|
16
|
+
Object.defineProperty(exports, "EscrowRegistry", { enumerable: true, get: function () { return __importDefault(EscrowRegistry_json_1).default; } });
|
|
17
|
+
var EscrowV2_json_1 = require("./EscrowV2.json");
|
|
18
|
+
Object.defineProperty(exports, "EscrowV2", { enumerable: true, get: function () { return __importDefault(EscrowV2_json_1).default; } });
|
|
19
|
+
var MultiAttestationVerifier_json_1 = require("./MultiAttestationVerifier.json");
|
|
20
|
+
Object.defineProperty(exports, "MultiAttestationVerifier", { enumerable: true, get: function () { return __importDefault(MultiAttestationVerifier_json_1).default; } });
|
|
21
|
+
var NullifierRegistry_json_1 = require("./NullifierRegistry.json");
|
|
22
|
+
Object.defineProperty(exports, "NullifierRegistry", { enumerable: true, get: function () { return __importDefault(NullifierRegistry_json_1).default; } });
|
|
23
|
+
var Orchestrator_json_1 = require("./Orchestrator.json");
|
|
24
|
+
Object.defineProperty(exports, "Orchestrator", { enumerable: true, get: function () { return __importDefault(Orchestrator_json_1).default; } });
|
|
25
|
+
var OrchestratorRegistry_json_1 = require("./OrchestratorRegistry.json");
|
|
26
|
+
Object.defineProperty(exports, "OrchestratorRegistry", { enumerable: true, get: function () { return __importDefault(OrchestratorRegistry_json_1).default; } });
|
|
27
|
+
var OrchestratorV2_json_1 = require("./OrchestratorV2.json");
|
|
28
|
+
Object.defineProperty(exports, "OrchestratorV2", { enumerable: true, get: function () { return __importDefault(OrchestratorV2_json_1).default; } });
|
|
29
|
+
var PaymentVerifierRegistry_json_1 = require("./PaymentVerifierRegistry.json");
|
|
30
|
+
Object.defineProperty(exports, "PaymentVerifierRegistry", { enumerable: true, get: function () { return __importDefault(PaymentVerifierRegistry_json_1).default; } });
|
|
31
|
+
var PostIntentHookRegistry_json_1 = require("./PostIntentHookRegistry.json");
|
|
32
|
+
Object.defineProperty(exports, "PostIntentHookRegistry", { enumerable: true, get: function () { return __importDefault(PostIntentHookRegistry_json_1).default; } });
|
|
33
|
+
var ProtocolViewer_json_1 = require("./ProtocolViewer.json");
|
|
34
|
+
Object.defineProperty(exports, "ProtocolViewer", { enumerable: true, get: function () { return __importDefault(ProtocolViewer_json_1).default; } });
|
|
35
|
+
var ProtocolViewerV2_json_1 = require("./ProtocolViewerV2.json");
|
|
36
|
+
Object.defineProperty(exports, "ProtocolViewerV2", { enumerable: true, get: function () { return __importDefault(ProtocolViewerV2_json_1).default; } });
|
|
37
|
+
var PythOracleAdapter_json_1 = require("./PythOracleAdapter.json");
|
|
38
|
+
Object.defineProperty(exports, "PythOracleAdapter", { enumerable: true, get: function () { return __importDefault(PythOracleAdapter_json_1).default; } });
|
|
39
|
+
var RateManagerV1_json_1 = require("./RateManagerV1.json");
|
|
40
|
+
Object.defineProperty(exports, "RateManagerV1", { enumerable: true, get: function () { return __importDefault(RateManagerV1_json_1).default; } });
|
|
41
|
+
var RelayerRegistry_json_1 = require("./RelayerRegistry.json");
|
|
42
|
+
Object.defineProperty(exports, "RelayerRegistry", { enumerable: true, get: function () { return __importDefault(RelayerRegistry_json_1).default; } });
|
|
43
|
+
var SignatureGatingPreIntentHook_json_1 = require("./SignatureGatingPreIntentHook.json");
|
|
44
|
+
Object.defineProperty(exports, "SignatureGatingPreIntentHook", { enumerable: true, get: function () { return __importDefault(SignatureGatingPreIntentHook_json_1).default; } });
|
|
45
|
+
var SimpleAttestationVerifier_json_1 = require("./SimpleAttestationVerifier.json");
|
|
46
|
+
Object.defineProperty(exports, "SimpleAttestationVerifier", { enumerable: true, get: function () { return __importDefault(SimpleAttestationVerifier_json_1).default; } });
|
|
47
|
+
var UnifiedPaymentVerifier_json_1 = require("./UnifiedPaymentVerifier.json");
|
|
48
|
+
Object.defineProperty(exports, "UnifiedPaymentVerifier", { enumerable: true, get: function () { return __importDefault(UnifiedPaymentVerifier_json_1).default; } });
|
|
49
|
+
var UnifiedPaymentVerifierV2_json_1 = require("./UnifiedPaymentVerifierV2.json");
|
|
50
|
+
Object.defineProperty(exports, "UnifiedPaymentVerifierV2", { enumerable: true, get: function () { return __importDefault(UnifiedPaymentVerifierV2_json_1).default; } });
|
|
51
|
+
var WhitelistPreIntentHook_json_1 = require("./WhitelistPreIntentHook.json");
|
|
52
|
+
Object.defineProperty(exports, "WhitelistPreIntentHook", { enumerable: true, get: function () { return __importDefault(WhitelistPreIntentHook_json_1).default; } });
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
const data = [
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "uint256",
|
|
6
|
+
"name": "availableGas",
|
|
7
|
+
"type": "uint256"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "uint256",
|
|
11
|
+
"name": "requiredGas",
|
|
12
|
+
"type": "uint256"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"name": "InsufficientGasForRiskCallback",
|
|
16
|
+
"type": "error"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"inputs": [
|
|
20
|
+
{
|
|
21
|
+
"internalType": "bytes32",
|
|
22
|
+
"name": "intentHash",
|
|
23
|
+
"type": "bytes32"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"internalType": "address",
|
|
27
|
+
"name": "hook",
|
|
28
|
+
"type": "address"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"internalType": "bytes",
|
|
32
|
+
"name": "revertData",
|
|
33
|
+
"type": "bytes"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"name": "RiskHookAdmissionFailed",
|
|
37
|
+
"type": "error"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"inputs": [
|
|
41
|
+
{
|
|
42
|
+
"internalType": "bytes32",
|
|
43
|
+
"name": "intentHash",
|
|
44
|
+
"type": "bytes32"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"internalType": "address",
|
|
48
|
+
"name": "hook",
|
|
49
|
+
"type": "address"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"internalType": "bytes",
|
|
53
|
+
"name": "revertData",
|
|
54
|
+
"type": "bytes"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"name": "RiskHookSettlementFailed",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"anonymous": false,
|
|
62
|
+
"inputs": [
|
|
63
|
+
{
|
|
64
|
+
"indexed": true,
|
|
65
|
+
"internalType": "bytes32",
|
|
66
|
+
"name": "intentHash",
|
|
67
|
+
"type": "bytes32"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"indexed": true,
|
|
71
|
+
"internalType": "address",
|
|
72
|
+
"name": "riskHook",
|
|
73
|
+
"type": "address"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"indexed": true,
|
|
77
|
+
"internalType": "bytes4",
|
|
78
|
+
"name": "callbackSelector",
|
|
79
|
+
"type": "bytes4"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"indexed": false,
|
|
83
|
+
"internalType": "bytes",
|
|
84
|
+
"name": "revertData",
|
|
85
|
+
"type": "bytes"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"name": "RiskHookCallbackFailed",
|
|
89
|
+
"type": "event"
|
|
90
|
+
}
|
|
91
|
+
];
|
|
92
|
+
module.exports = data;
|
|
93
|
+
module.exports.default = data;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "uint256",
|
|
6
|
+
"name": "availableGas",
|
|
7
|
+
"type": "uint256"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "uint256",
|
|
11
|
+
"name": "requiredGas",
|
|
12
|
+
"type": "uint256"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"name": "InsufficientGasForRiskCallback",
|
|
16
|
+
"type": "error"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"inputs": [
|
|
20
|
+
{
|
|
21
|
+
"internalType": "bytes32",
|
|
22
|
+
"name": "intentHash",
|
|
23
|
+
"type": "bytes32"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"internalType": "address",
|
|
27
|
+
"name": "hook",
|
|
28
|
+
"type": "address"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"internalType": "bytes",
|
|
32
|
+
"name": "revertData",
|
|
33
|
+
"type": "bytes"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"name": "RiskHookAdmissionFailed",
|
|
37
|
+
"type": "error"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"inputs": [
|
|
41
|
+
{
|
|
42
|
+
"internalType": "bytes32",
|
|
43
|
+
"name": "intentHash",
|
|
44
|
+
"type": "bytes32"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"internalType": "address",
|
|
48
|
+
"name": "hook",
|
|
49
|
+
"type": "address"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"internalType": "bytes",
|
|
53
|
+
"name": "revertData",
|
|
54
|
+
"type": "bytes"
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"name": "RiskHookSettlementFailed",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"anonymous": false,
|
|
62
|
+
"inputs": [
|
|
63
|
+
{
|
|
64
|
+
"indexed": true,
|
|
65
|
+
"internalType": "bytes32",
|
|
66
|
+
"name": "intentHash",
|
|
67
|
+
"type": "bytes32"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"indexed": true,
|
|
71
|
+
"internalType": "address",
|
|
72
|
+
"name": "riskHook",
|
|
73
|
+
"type": "address"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"indexed": true,
|
|
77
|
+
"internalType": "bytes4",
|
|
78
|
+
"name": "callbackSelector",
|
|
79
|
+
"type": "bytes4"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"indexed": false,
|
|
83
|
+
"internalType": "bytes",
|
|
84
|
+
"name": "revertData",
|
|
85
|
+
"type": "bytes"
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"name": "RiskHookCallbackFailed",
|
|
89
|
+
"type": "event"
|
|
90
|
+
}
|
|
91
|
+
]
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
const data = [
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "contract IERC20",
|
|
6
|
+
"name": "_payoutToken",
|
|
7
|
+
"type": "address"
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"internalType": "contract IStakeVault",
|
|
11
|
+
"name": "_stakeVault",
|
|
12
|
+
"type": "address"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"internalType": "contract IRiskManager",
|
|
16
|
+
"name": "_riskManager",
|
|
17
|
+
"type": "address"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"internalType": "contract IOrchestratorRegistry",
|
|
21
|
+
"name": "_orchestratorRegistry",
|
|
22
|
+
"type": "address"
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"stateMutability": "nonpayable",
|
|
26
|
+
"type": "constructor"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"inputs": [
|
|
30
|
+
{
|
|
31
|
+
"internalType": "address",
|
|
32
|
+
"name": "expected",
|
|
33
|
+
"type": "address"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"internalType": "address",
|
|
37
|
+
"name": "actual",
|
|
38
|
+
"type": "address"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"name": "InvalidPayoutToken",
|
|
42
|
+
"type": "error"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"inputs": [
|
|
46
|
+
{
|
|
47
|
+
"internalType": "address",
|
|
48
|
+
"name": "caller",
|
|
49
|
+
"type": "address"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"name": "UnauthorizedOrchestrator",
|
|
53
|
+
"type": "error"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"inputs": [],
|
|
57
|
+
"name": "ZeroAddress",
|
|
58
|
+
"type": "error"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"inputs": [],
|
|
62
|
+
"name": "ZeroAmount",
|
|
63
|
+
"type": "error"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"anonymous": false,
|
|
67
|
+
"inputs": [
|
|
68
|
+
{
|
|
69
|
+
"indexed": true,
|
|
70
|
+
"internalType": "bytes32",
|
|
71
|
+
"name": "intentHash",
|
|
72
|
+
"type": "bytes32"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"indexed": true,
|
|
76
|
+
"internalType": "address",
|
|
77
|
+
"name": "beneficiary",
|
|
78
|
+
"type": "address"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"indexed": true,
|
|
82
|
+
"internalType": "address",
|
|
83
|
+
"name": "vault",
|
|
84
|
+
"type": "address"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"indexed": false,
|
|
88
|
+
"internalType": "uint256",
|
|
89
|
+
"name": "amount",
|
|
90
|
+
"type": "uint256"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"name": "PayoutDeferred",
|
|
94
|
+
"type": "event"
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"inputs": [
|
|
98
|
+
{
|
|
99
|
+
"components": [
|
|
100
|
+
{
|
|
101
|
+
"internalType": "bytes32",
|
|
102
|
+
"name": "intentHash",
|
|
103
|
+
"type": "bytes32"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"internalType": "address",
|
|
107
|
+
"name": "token",
|
|
108
|
+
"type": "address"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"internalType": "uint256",
|
|
112
|
+
"name": "executableAmount",
|
|
113
|
+
"type": "uint256"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"components": [
|
|
117
|
+
{
|
|
118
|
+
"internalType": "address",
|
|
119
|
+
"name": "owner",
|
|
120
|
+
"type": "address"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"internalType": "address",
|
|
124
|
+
"name": "to",
|
|
125
|
+
"type": "address"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"internalType": "address",
|
|
129
|
+
"name": "escrow",
|
|
130
|
+
"type": "address"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"internalType": "uint256",
|
|
134
|
+
"name": "depositId",
|
|
135
|
+
"type": "uint256"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"internalType": "uint256",
|
|
139
|
+
"name": "amount",
|
|
140
|
+
"type": "uint256"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"internalType": "uint256",
|
|
144
|
+
"name": "timestamp",
|
|
145
|
+
"type": "uint256"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"internalType": "bytes32",
|
|
149
|
+
"name": "paymentMethod",
|
|
150
|
+
"type": "bytes32"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"internalType": "bytes32",
|
|
154
|
+
"name": "fiatCurrency",
|
|
155
|
+
"type": "bytes32"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"internalType": "uint256",
|
|
159
|
+
"name": "conversionRate",
|
|
160
|
+
"type": "uint256"
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"internalType": "bytes32",
|
|
164
|
+
"name": "payeeId",
|
|
165
|
+
"type": "bytes32"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"internalType": "bytes",
|
|
169
|
+
"name": "signalHookData",
|
|
170
|
+
"type": "bytes"
|
|
171
|
+
}
|
|
172
|
+
],
|
|
173
|
+
"internalType": "struct IPostIntentHookV2.HookIntentContext",
|
|
174
|
+
"name": "intent",
|
|
175
|
+
"type": "tuple"
|
|
176
|
+
}
|
|
177
|
+
],
|
|
178
|
+
"internalType": "struct IPostIntentHookV2.HookExecutionContext",
|
|
179
|
+
"name": "_ctx",
|
|
180
|
+
"type": "tuple"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"internalType": "bytes",
|
|
184
|
+
"name": "",
|
|
185
|
+
"type": "bytes"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"name": "execute",
|
|
189
|
+
"outputs": [],
|
|
190
|
+
"stateMutability": "nonpayable",
|
|
191
|
+
"type": "function"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"inputs": [],
|
|
195
|
+
"name": "orchestratorRegistry",
|
|
196
|
+
"outputs": [
|
|
197
|
+
{
|
|
198
|
+
"internalType": "contract IOrchestratorRegistry",
|
|
199
|
+
"name": "",
|
|
200
|
+
"type": "address"
|
|
201
|
+
}
|
|
202
|
+
],
|
|
203
|
+
"stateMutability": "view",
|
|
204
|
+
"type": "function"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"inputs": [],
|
|
208
|
+
"name": "payoutToken",
|
|
209
|
+
"outputs": [
|
|
210
|
+
{
|
|
211
|
+
"internalType": "contract IERC20",
|
|
212
|
+
"name": "",
|
|
213
|
+
"type": "address"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"stateMutability": "view",
|
|
217
|
+
"type": "function"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"inputs": [],
|
|
221
|
+
"name": "riskManager",
|
|
222
|
+
"outputs": [
|
|
223
|
+
{
|
|
224
|
+
"internalType": "contract IRiskManager",
|
|
225
|
+
"name": "",
|
|
226
|
+
"type": "address"
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"stateMutability": "view",
|
|
230
|
+
"type": "function"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"inputs": [],
|
|
234
|
+
"name": "stakeVault",
|
|
235
|
+
"outputs": [
|
|
236
|
+
{
|
|
237
|
+
"internalType": "contract IStakeVault",
|
|
238
|
+
"name": "",
|
|
239
|
+
"type": "address"
|
|
240
|
+
}
|
|
241
|
+
],
|
|
242
|
+
"stateMutability": "view",
|
|
243
|
+
"type": "function"
|
|
244
|
+
}
|
|
245
|
+
];
|
|
246
|
+
module.exports = data;
|
|
247
|
+
module.exports.default = data;
|