@zkp2p/contracts-v2 0.0.11 → 0.1.11-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_cjs/abis/base/index.js +0 -1
- package/_cjs/abis/base.cjs +0 -1
- package/_cjs/abis/base.mjs +0 -1
- package/_cjs/abis/{base/AcrossBridgeHook.js → baseStaging/AcrossBridgeHookV2.js} +78 -65
- package/{abis/base/AcrossBridgeHook.json → _cjs/abis/baseStaging/AcrossBridgeHookV2.json} +78 -65
- package/_cjs/abis/baseStaging/ChainlinkOracleAdapter.js +52 -0
- package/_cjs/abis/baseStaging/ChainlinkOracleAdapter.json +50 -0
- package/_cjs/abis/{baseSepolia/Escrow.js → baseStaging/EscrowV2.js} +969 -384
- package/{abis/baseSepolia/Escrow.json → _cjs/abis/baseStaging/EscrowV2.json} +969 -384
- package/_cjs/abis/{baseSepolia/RelayerRegistry.js → baseStaging/OrchestratorRegistry.js} +40 -50
- package/{abis/baseSepolia/RelayerRegistry.json → _cjs/abis/baseStaging/OrchestratorRegistry.json} +40 -50
- package/_cjs/abis/{baseSepolia/Orchestrator.js → baseStaging/OrchestratorV2.js} +262 -67
- package/{abis/baseSepolia/Orchestrator.json → _cjs/abis/baseStaging/OrchestratorV2.json} +262 -67
- package/_cjs/abis/{baseSepolia/ProtocolViewer.js → baseStaging/ProtocolViewerV2.js} +79 -390
- package/{_esm/abis/baseSepolia/ProtocolViewer.json → _cjs/abis/baseStaging/ProtocolViewerV2.json} +79 -390
- package/_cjs/abis/baseStaging/RateManagerV1.js +1234 -0
- package/_cjs/abis/baseStaging/RateManagerV1.json +1232 -0
- package/_cjs/abis/{baseSepolia/USDCMock.js → baseStaging/SignatureGatingPreIntentHook.js} +146 -149
- package/{abis/baseSepolia/USDCMock.json → _cjs/abis/baseStaging/SignatureGatingPreIntentHook.json} +146 -149
- package/_cjs/abis/{baseSepolia/UnifiedPaymentVerifier.js → baseStaging/UnifiedPaymentVerifierV2.js} +4 -4
- package/{abis/baseSepolia/UnifiedPaymentVerifier.json → _cjs/abis/baseStaging/UnifiedPaymentVerifierV2.json} +4 -4
- package/_cjs/abis/baseStaging/WhitelistPreIntentHook.js +336 -0
- package/_cjs/abis/baseStaging/WhitelistPreIntentHook.json +334 -0
- package/_cjs/abis/baseStaging/index.js +10 -0
- package/_cjs/abis/baseStaging.cjs +11 -1
- package/_cjs/abis/baseStaging.mjs +10 -0
- package/_cjs/abis/index.js +0 -1
- package/_cjs/addresses/base.js +13 -3
- package/_cjs/addresses/base.json +13 -3
- package/_cjs/addresses/baseStaging.js +13 -3
- package/_cjs/addresses/baseStaging.json +13 -3
- package/_cjs/addresses/index.js +0 -1
- package/_cjs/addresses/index.json +1 -2
- package/_cjs/constants/index.json +1 -1
- package/_cjs/paymentMethods/base.js +1 -11
- package/_cjs/paymentMethods/base.json +1 -11
- package/_cjs/paymentMethods/baseSepolia.js +1 -1
- package/_cjs/paymentMethods/baseSepolia.json +1 -1
- package/_cjs/paymentMethods/baseStaging.js +1 -11
- package/_cjs/paymentMethods/baseStaging.json +1 -11
- package/_cjs/paymentMethods/index.json +1 -1
- package/_cjs/types/contracts/EscrowV2.js +3328 -0
- package/_cjs/types/contracts/OrchestratorV2.js +1551 -0
- package/_cjs/types/contracts/ProtocolViewer.js +51 -90
- package/_cjs/types/contracts/ProtocolViewerV2.js +458 -0
- package/_cjs/types/contracts/RateManagerV1.js +1553 -0
- package/_cjs/types/contracts/external/Interfaces/index.js +0 -1
- package/{_esm/types/contracts/hooks/AcrossSwapBridgeHook.js → _cjs/types/contracts/hooks/AcrossBridgeHookV2.js} +56 -86
- package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.js +351 -0
- package/_cjs/types/contracts/hooks/WhitelistPreIntentHook.js +424 -0
- package/_cjs/types/contracts/hooks/index.js +3 -1
- package/_cjs/types/contracts/index.js +6 -0
- package/_cjs/types/contracts/interfaces/IChainlinkAggregatorV3.js +132 -0
- package/_cjs/types/contracts/interfaces/IEscrow.js +0 -35
- package/_cjs/types/contracts/interfaces/IEscrowV2.js +2074 -0
- package/_cjs/types/contracts/interfaces/IOracleAdapter.js +154 -0
- package/_cjs/types/contracts/interfaces/IOrchestratorRegistry.js +178 -0
- package/_cjs/types/contracts/interfaces/IOrchestratorV2.js +987 -0
- package/_cjs/types/contracts/interfaces/IPostIntentHookV2.js +172 -0
- package/_cjs/types/contracts/interfaces/IPreIntentHook.js +148 -0
- package/_cjs/types/contracts/interfaces/IProtocolViewerV2.js +458 -0
- package/_cjs/types/contracts/interfaces/IRateManager.js +239 -0
- package/_cjs/types/contracts/interfaces/index.js +9 -0
- package/_cjs/types/contracts/oracles/ChainlinkOracleAdapter.js +154 -0
- package/_cjs/types/contracts/oracles/index.js +4 -0
- package/_cjs/types/contracts/registries/OrchestratorRegistry.js +324 -0
- package/_cjs/types/contracts/registries/index.js +1 -0
- package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +11 -9
- package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +11 -9
- package/_esm/abis/base/index.js +0 -1
- package/_esm/abis/base.cjs +0 -1
- package/_esm/abis/base.mjs +0 -1
- package/_esm/abis/{base/AcrossBridgeHook.js → baseStaging/AcrossBridgeHookV2.js} +78 -65
- package/{_cjs/abis/base/AcrossBridgeHook.json → _esm/abis/baseStaging/AcrossBridgeHookV2.json} +78 -65
- package/_esm/abis/baseStaging/ChainlinkOracleAdapter.js +51 -0
- package/_esm/abis/baseStaging/ChainlinkOracleAdapter.json +50 -0
- package/_esm/abis/{baseSepolia/Escrow.js → baseStaging/EscrowV2.js} +969 -384
- package/{_cjs/abis/baseSepolia/Escrow.json → _esm/abis/baseStaging/EscrowV2.json} +969 -384
- package/_esm/abis/{baseSepolia/RelayerRegistry.js → baseStaging/OrchestratorRegistry.js} +40 -50
- package/_esm/abis/{baseSepolia/RelayerRegistry.json → baseStaging/OrchestratorRegistry.json} +40 -50
- package/_esm/abis/{baseSepolia/Orchestrator.js → baseStaging/OrchestratorV2.js} +262 -67
- package/_esm/abis/{baseSepolia/Orchestrator.json → baseStaging/OrchestratorV2.json} +262 -67
- package/_esm/abis/{baseSepolia/ProtocolViewer.js → baseStaging/ProtocolViewerV2.js} +79 -390
- package/{abis/baseSepolia/ProtocolViewer.json → _esm/abis/baseStaging/ProtocolViewerV2.json} +79 -390
- package/_esm/abis/baseStaging/RateManagerV1.js +1233 -0
- package/_esm/abis/baseStaging/RateManagerV1.json +1232 -0
- package/_esm/abis/{baseSepolia/USDCMock.js → baseStaging/SignatureGatingPreIntentHook.js} +146 -149
- package/_esm/abis/{baseSepolia/USDCMock.json → baseStaging/SignatureGatingPreIntentHook.json} +146 -149
- package/_esm/abis/{baseSepolia/UnifiedPaymentVerifier.js → baseStaging/UnifiedPaymentVerifierV2.js} +4 -4
- package/{_cjs/abis/baseSepolia/UnifiedPaymentVerifier.json → _esm/abis/baseStaging/UnifiedPaymentVerifierV2.json} +4 -4
- package/_esm/abis/baseStaging/WhitelistPreIntentHook.js +335 -0
- package/_esm/abis/baseStaging/WhitelistPreIntentHook.json +334 -0
- package/_esm/abis/baseStaging/index.js +10 -0
- package/_esm/abis/baseStaging.cjs +11 -1
- package/_esm/abis/baseStaging.mjs +10 -0
- package/_esm/abis/index.js +0 -1
- package/_esm/addresses/base.js +13 -3
- package/_esm/addresses/base.json +13 -3
- package/_esm/addresses/baseStaging.js +13 -3
- package/_esm/addresses/baseStaging.json +13 -3
- package/_esm/addresses/index.js +0 -1
- package/_esm/addresses/index.json +1 -2
- package/_esm/constants/index.json +1 -1
- package/_esm/paymentMethods/base.js +1 -11
- package/_esm/paymentMethods/base.json +1 -11
- package/_esm/paymentMethods/baseSepolia.js +1 -1
- package/_esm/paymentMethods/baseSepolia.json +1 -1
- package/_esm/paymentMethods/baseStaging.js +1 -11
- package/_esm/paymentMethods/baseStaging.json +1 -11
- package/_esm/paymentMethods/index.json +1 -1
- package/_esm/types/contracts/EscrowV2.js +3328 -0
- package/_esm/types/contracts/OrchestratorV2.js +1551 -0
- package/_esm/types/contracts/ProtocolViewer.js +51 -90
- package/_esm/types/contracts/ProtocolViewerV2.js +458 -0
- package/_esm/types/contracts/RateManagerV1.js +1553 -0
- package/_esm/types/contracts/external/Interfaces/index.js +0 -1
- package/{types/contracts/hooks/AcrossSwapBridgeHook.ts → _esm/types/contracts/hooks/AcrossBridgeHookV2.js} +56 -86
- package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.js +351 -0
- package/_esm/types/contracts/hooks/WhitelistPreIntentHook.js +424 -0
- package/_esm/types/contracts/hooks/index.js +3 -1
- package/_esm/types/contracts/index.js +6 -0
- package/_esm/types/contracts/interfaces/IChainlinkAggregatorV3.js +132 -0
- package/_esm/types/contracts/interfaces/IEscrow.js +0 -35
- package/_esm/types/contracts/interfaces/IEscrowV2.js +2074 -0
- package/_esm/types/contracts/interfaces/IOracleAdapter.js +154 -0
- package/_esm/types/contracts/interfaces/IOrchestratorRegistry.js +178 -0
- package/_esm/types/contracts/interfaces/IOrchestratorV2.js +987 -0
- package/_esm/types/contracts/interfaces/IPostIntentHookV2.js +172 -0
- package/_esm/types/contracts/interfaces/IPreIntentHook.js +148 -0
- package/_esm/types/contracts/interfaces/IProtocolViewerV2.js +458 -0
- package/_esm/types/contracts/interfaces/IRateManager.js +239 -0
- package/_esm/types/contracts/interfaces/index.js +9 -0
- package/_esm/types/contracts/oracles/ChainlinkOracleAdapter.js +154 -0
- package/_esm/types/contracts/oracles/index.js +4 -0
- package/_esm/types/contracts/registries/OrchestratorRegistry.js +324 -0
- package/_esm/types/contracts/registries/index.js +1 -0
- package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +11 -9
- package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +11 -9
- package/_types/abis/base.d.ts +0 -1
- package/_types/abis/baseStaging.d.ts +10 -0
- package/_types/addresses/index.d.ts +0 -1
- package/abis/base/index.ts +0 -1
- package/abis/base.cjs +0 -1
- package/abis/base.d.ts +0 -1
- package/abis/base.mjs +0 -1
- package/{_esm/abis/base/AcrossBridgeHook.json → abis/baseStaging/AcrossBridgeHookV2.json} +78 -65
- package/abis/baseStaging/ChainlinkOracleAdapter.json +50 -0
- package/{_esm/abis/baseSepolia/Escrow.json → abis/baseStaging/EscrowV2.json} +969 -384
- package/{_cjs/abis/baseSepolia/RelayerRegistry.json → abis/baseStaging/OrchestratorRegistry.json} +40 -50
- package/{_cjs/abis/baseSepolia/Orchestrator.json → abis/baseStaging/OrchestratorV2.json} +262 -67
- package/{_cjs/abis/baseSepolia/ProtocolViewer.json → abis/baseStaging/ProtocolViewerV2.json} +79 -390
- package/abis/baseStaging/RateManagerV1.json +1232 -0
- package/{_cjs/abis/baseSepolia/USDCMock.json → abis/baseStaging/SignatureGatingPreIntentHook.json} +146 -149
- package/{_esm/abis/baseSepolia/UnifiedPaymentVerifier.json → abis/baseStaging/UnifiedPaymentVerifierV2.json} +4 -4
- package/abis/baseStaging/WhitelistPreIntentHook.json +334 -0
- package/abis/baseStaging/index.ts +10 -0
- package/abis/baseStaging.cjs +11 -1
- package/abis/baseStaging.d.ts +10 -0
- package/abis/baseStaging.mjs +10 -0
- package/abis/index.ts +0 -1
- package/addresses/base.json +13 -3
- package/addresses/baseStaging.json +13 -3
- package/addresses/index.d.ts +0 -1
- package/addresses/index.json +1 -2
- package/addresses/index.ts +0 -1
- package/constants/index.json +1 -1
- package/package.json +1 -16
- package/paymentMethods/base.json +1 -11
- package/paymentMethods/baseSepolia.json +1 -1
- package/paymentMethods/baseStaging.json +1 -11
- package/paymentMethods/index.json +1 -1
- package/types/contracts/EscrowV2.ts +3328 -0
- package/types/contracts/OrchestratorV2.ts +1551 -0
- package/types/contracts/ProtocolViewer.ts +51 -90
- package/types/contracts/ProtocolViewerV2.ts +458 -0
- package/types/contracts/RateManagerV1.ts +1553 -0
- package/types/contracts/external/Interfaces/index.ts +0 -1
- package/{_cjs/types/contracts/hooks/AcrossSwapBridgeHook.js → types/contracts/hooks/AcrossBridgeHookV2.ts} +56 -86
- package/types/contracts/hooks/SignatureGatingPreIntentHook.ts +351 -0
- package/types/contracts/hooks/WhitelistPreIntentHook.ts +424 -0
- package/types/contracts/hooks/index.ts +3 -1
- package/types/contracts/index.ts +6 -0
- package/types/contracts/interfaces/IChainlinkAggregatorV3.ts +132 -0
- package/types/contracts/interfaces/IEscrow.ts +0 -35
- package/types/contracts/interfaces/IEscrowV2.ts +2074 -0
- package/types/contracts/interfaces/IOracleAdapter.ts +154 -0
- package/types/contracts/interfaces/IOrchestratorRegistry.ts +178 -0
- package/types/contracts/interfaces/IOrchestratorV2.ts +987 -0
- package/types/contracts/interfaces/IPostIntentHookV2.ts +172 -0
- package/types/contracts/interfaces/IPreIntentHook.ts +148 -0
- package/types/contracts/interfaces/IProtocolViewerV2.ts +458 -0
- package/types/contracts/interfaces/IRateManager.ts +239 -0
- package/types/contracts/interfaces/index.ts +9 -0
- package/types/contracts/oracles/ChainlinkOracleAdapter.ts +154 -0
- package/types/contracts/oracles/index.ts +4 -0
- package/types/contracts/registries/OrchestratorRegistry.ts +324 -0
- package/types/contracts/registries/index.ts +1 -0
- package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.ts +11 -9
- package/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.ts +11 -9
- package/_cjs/abis/baseSepolia/EscrowRegistry.js +0 -216
- package/_cjs/abis/baseSepolia/EscrowRegistry.json +0 -214
- package/_cjs/abis/baseSepolia/NullifierRegistry.js +0 -215
- package/_cjs/abis/baseSepolia/NullifierRegistry.json +0 -213
- package/_cjs/abis/baseSepolia/PaymentVerifierRegistry.js +0 -334
- package/_cjs/abis/baseSepolia/PaymentVerifierRegistry.json +0 -332
- package/_cjs/abis/baseSepolia/PostIntentHookRegistry.js +0 -183
- package/_cjs/abis/baseSepolia/PostIntentHookRegistry.json +0 -181
- package/_cjs/abis/baseSepolia/SimpleAttestationVerifier.js +0 -154
- package/_cjs/abis/baseSepolia/SimpleAttestationVerifier.json +0 -152
- package/_cjs/abis/baseSepolia/index.js +0 -11
- package/_cjs/abis/baseSepolia.cjs +0 -14
- package/_cjs/abis/baseSepolia.mjs +0 -12
- package/_cjs/addresses/baseSepolia.js +0 -22
- package/_cjs/addresses/baseSepolia.json +0 -20
- package/_cjs/networks/baseSepolia.cjs +0 -5
- package/_cjs/networks/baseSepolia.mjs +0 -5
- package/_cjs/types/contracts/external/Interfaces/IAcrossSpokePoolPeriphery.js +0 -198
- package/_esm/abis/baseSepolia/EscrowRegistry.js +0 -215
- package/_esm/abis/baseSepolia/EscrowRegistry.json +0 -214
- package/_esm/abis/baseSepolia/NullifierRegistry.js +0 -214
- package/_esm/abis/baseSepolia/NullifierRegistry.json +0 -213
- package/_esm/abis/baseSepolia/PaymentVerifierRegistry.js +0 -333
- package/_esm/abis/baseSepolia/PaymentVerifierRegistry.json +0 -332
- package/_esm/abis/baseSepolia/PostIntentHookRegistry.js +0 -182
- package/_esm/abis/baseSepolia/PostIntentHookRegistry.json +0 -181
- package/_esm/abis/baseSepolia/SimpleAttestationVerifier.js +0 -153
- package/_esm/abis/baseSepolia/SimpleAttestationVerifier.json +0 -152
- package/_esm/abis/baseSepolia/index.js +0 -11
- package/_esm/abis/baseSepolia.cjs +0 -14
- package/_esm/abis/baseSepolia.mjs +0 -12
- package/_esm/addresses/baseSepolia.js +0 -21
- package/_esm/addresses/baseSepolia.json +0 -20
- package/_esm/networks/baseSepolia.cjs +0 -5
- package/_esm/networks/baseSepolia.mjs +0 -5
- package/_esm/types/contracts/external/Interfaces/IAcrossSpokePoolPeriphery.js +0 -198
- package/_types/abis/baseSepolia.d.ts +0 -13
- package/_types/addresses/baseSepolia.d.ts +0 -4
- package/_types/networks/baseSepolia.d.ts +0 -5
- package/abis/baseSepolia/EscrowRegistry.json +0 -214
- package/abis/baseSepolia/NullifierRegistry.json +0 -213
- package/abis/baseSepolia/PaymentVerifierRegistry.json +0 -332
- package/abis/baseSepolia/PostIntentHookRegistry.json +0 -181
- package/abis/baseSepolia/SimpleAttestationVerifier.json +0 -152
- package/abis/baseSepolia/index.ts +0 -11
- package/abis/baseSepolia.cjs +0 -14
- package/abis/baseSepolia.d.ts +0 -13
- package/abis/baseSepolia.mjs +0 -12
- package/addresses/baseSepolia.d.ts +0 -4
- package/addresses/baseSepolia.json +0 -20
- package/networks/baseSepolia.cjs +0 -5
- package/networks/baseSepolia.d.ts +0 -5
- package/networks/baseSepolia.mjs +0 -5
- package/types/contracts/external/Interfaces/IAcrossSpokePoolPeriphery.ts +0 -198
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
// Auto-generated TypeScript definitions for baseStaging ABIs
|
|
2
2
|
import type { Abi } from 'abitype';
|
|
3
3
|
export declare const AcrossBridgeHook: Abi;
|
|
4
|
+
export declare const AcrossBridgeHookV2: Abi;
|
|
5
|
+
export declare const ChainlinkOracleAdapter: Abi;
|
|
4
6
|
export declare const Escrow: Abi;
|
|
5
7
|
export declare const EscrowRegistry: Abi;
|
|
8
|
+
export declare const EscrowV2: Abi;
|
|
6
9
|
export declare const NullifierRegistry: Abi;
|
|
7
10
|
export declare const Orchestrator: Abi;
|
|
11
|
+
export declare const OrchestratorRegistry: Abi;
|
|
12
|
+
export declare const OrchestratorV2: Abi;
|
|
8
13
|
export declare const PaymentVerifierRegistry: Abi;
|
|
9
14
|
export declare const PostIntentHookRegistry: Abi;
|
|
10
15
|
export declare const ProtocolViewer: Abi;
|
|
16
|
+
export declare const ProtocolViewerV2: Abi;
|
|
17
|
+
export declare const RateManagerV1: Abi;
|
|
11
18
|
export declare const RelayerRegistry: Abi;
|
|
19
|
+
export declare const SignatureGatingPreIntentHook: Abi;
|
|
12
20
|
export declare const SimpleAttestationVerifier: Abi;
|
|
13
21
|
export declare const UnifiedPaymentVerifier: Abi;
|
|
22
|
+
export declare const UnifiedPaymentVerifierV2: Abi;
|
|
23
|
+
export declare const WhitelistPreIntentHook: Abi;
|
package/abis/base/index.ts
CHANGED
package/abis/base.cjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// Auto-generated CommonJS wrapper for base ABIs
|
|
2
2
|
module.exports = {
|
|
3
|
-
AcrossBridgeHook: require('../_cjs/abis/base/AcrossBridgeHook.js'),
|
|
4
3
|
Escrow: require('../_cjs/abis/base/Escrow.js'),
|
|
5
4
|
EscrowRegistry: require('../_cjs/abis/base/EscrowRegistry.js'),
|
|
6
5
|
NullifierRegistry: require('../_cjs/abis/base/NullifierRegistry.js'),
|
package/abis/base.d.ts
CHANGED
package/abis/base.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// Auto-generated ESM wrapper for base ABIs
|
|
2
|
-
export { default as AcrossBridgeHook } from '../_esm/abis/base/AcrossBridgeHook.js';
|
|
3
2
|
export { default as Escrow } from '../_esm/abis/base/Escrow.js';
|
|
4
3
|
export { default as EscrowRegistry } from '../_esm/abis/base/EscrowRegistry.js';
|
|
5
4
|
export { default as NullifierRegistry } from '../_esm/abis/base/NullifierRegistry.js';
|
|
@@ -31,6 +31,17 @@
|
|
|
31
31
|
"name": "InvalidDestinationChainId",
|
|
32
32
|
"type": "error"
|
|
33
33
|
},
|
|
34
|
+
{
|
|
35
|
+
"inputs": [
|
|
36
|
+
{
|
|
37
|
+
"internalType": "uint256",
|
|
38
|
+
"name": "dataLength",
|
|
39
|
+
"type": "uint256"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"name": "InvalidFulfillHookDataLength",
|
|
43
|
+
"type": "error"
|
|
44
|
+
},
|
|
34
45
|
{
|
|
35
46
|
"inputs": [
|
|
36
47
|
{
|
|
@@ -169,7 +180,7 @@
|
|
|
169
180
|
},
|
|
170
181
|
{
|
|
171
182
|
"indexed": false,
|
|
172
|
-
"internalType": "enum
|
|
183
|
+
"internalType": "enum AcrossBridgeHookV2.FallbackReason",
|
|
173
184
|
"name": "reason",
|
|
174
185
|
"type": "uint8"
|
|
175
186
|
}
|
|
@@ -244,89 +255,91 @@
|
|
|
244
255
|
"inputs": [
|
|
245
256
|
{
|
|
246
257
|
"components": [
|
|
247
|
-
{
|
|
248
|
-
"internalType": "address",
|
|
249
|
-
"name": "owner",
|
|
250
|
-
"type": "address"
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
"internalType": "address",
|
|
254
|
-
"name": "to",
|
|
255
|
-
"type": "address"
|
|
256
|
-
},
|
|
257
|
-
{
|
|
258
|
-
"internalType": "address",
|
|
259
|
-
"name": "escrow",
|
|
260
|
-
"type": "address"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"internalType": "uint256",
|
|
264
|
-
"name": "depositId",
|
|
265
|
-
"type": "uint256"
|
|
266
|
-
},
|
|
267
|
-
{
|
|
268
|
-
"internalType": "uint256",
|
|
269
|
-
"name": "amount",
|
|
270
|
-
"type": "uint256"
|
|
271
|
-
},
|
|
272
|
-
{
|
|
273
|
-
"internalType": "uint256",
|
|
274
|
-
"name": "timestamp",
|
|
275
|
-
"type": "uint256"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"internalType": "bytes32",
|
|
279
|
-
"name": "paymentMethod",
|
|
280
|
-
"type": "bytes32"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"internalType": "bytes32",
|
|
284
|
-
"name": "fiatCurrency",
|
|
285
|
-
"type": "bytes32"
|
|
286
|
-
},
|
|
287
|
-
{
|
|
288
|
-
"internalType": "uint256",
|
|
289
|
-
"name": "conversionRate",
|
|
290
|
-
"type": "uint256"
|
|
291
|
-
},
|
|
292
258
|
{
|
|
293
259
|
"internalType": "bytes32",
|
|
294
|
-
"name": "
|
|
260
|
+
"name": "intentHash",
|
|
295
261
|
"type": "bytes32"
|
|
296
262
|
},
|
|
297
263
|
{
|
|
298
264
|
"internalType": "address",
|
|
299
|
-
"name": "
|
|
265
|
+
"name": "token",
|
|
300
266
|
"type": "address"
|
|
301
267
|
},
|
|
302
268
|
{
|
|
303
269
|
"internalType": "uint256",
|
|
304
|
-
"name": "
|
|
270
|
+
"name": "executableAmount",
|
|
305
271
|
"type": "uint256"
|
|
306
272
|
},
|
|
307
273
|
{
|
|
308
|
-
"
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
274
|
+
"components": [
|
|
275
|
+
{
|
|
276
|
+
"internalType": "address",
|
|
277
|
+
"name": "owner",
|
|
278
|
+
"type": "address"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"internalType": "address",
|
|
282
|
+
"name": "to",
|
|
283
|
+
"type": "address"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"internalType": "address",
|
|
287
|
+
"name": "escrow",
|
|
288
|
+
"type": "address"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"internalType": "uint256",
|
|
292
|
+
"name": "depositId",
|
|
293
|
+
"type": "uint256"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"internalType": "uint256",
|
|
297
|
+
"name": "amount",
|
|
298
|
+
"type": "uint256"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"internalType": "uint256",
|
|
302
|
+
"name": "timestamp",
|
|
303
|
+
"type": "uint256"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"internalType": "bytes32",
|
|
307
|
+
"name": "paymentMethod",
|
|
308
|
+
"type": "bytes32"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"internalType": "bytes32",
|
|
312
|
+
"name": "fiatCurrency",
|
|
313
|
+
"type": "bytes32"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
"internalType": "uint256",
|
|
317
|
+
"name": "conversionRate",
|
|
318
|
+
"type": "uint256"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"internalType": "bytes32",
|
|
322
|
+
"name": "payeeId",
|
|
323
|
+
"type": "bytes32"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"internalType": "bytes",
|
|
327
|
+
"name": "signalHookData",
|
|
328
|
+
"type": "bytes"
|
|
329
|
+
}
|
|
330
|
+
],
|
|
331
|
+
"internalType": "struct IPostIntentHookV2.HookIntentContext",
|
|
332
|
+
"name": "intent",
|
|
333
|
+
"type": "tuple"
|
|
316
334
|
}
|
|
317
335
|
],
|
|
318
|
-
"internalType": "struct
|
|
319
|
-
"name": "
|
|
336
|
+
"internalType": "struct IPostIntentHookV2.HookExecutionContext",
|
|
337
|
+
"name": "_ctx",
|
|
320
338
|
"type": "tuple"
|
|
321
339
|
},
|
|
322
|
-
{
|
|
323
|
-
"internalType": "uint256",
|
|
324
|
-
"name": "_amountNetFees",
|
|
325
|
-
"type": "uint256"
|
|
326
|
-
},
|
|
327
340
|
{
|
|
328
341
|
"internalType": "bytes",
|
|
329
|
-
"name": "
|
|
342
|
+
"name": "_fulfillHookData",
|
|
330
343
|
"type": "bytes"
|
|
331
344
|
}
|
|
332
345
|
],
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"inputs": [
|
|
4
|
+
{
|
|
5
|
+
"internalType": "bytes",
|
|
6
|
+
"name": "normalizedConfig",
|
|
7
|
+
"type": "bytes"
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"name": "getRate",
|
|
11
|
+
"outputs": [
|
|
12
|
+
{
|
|
13
|
+
"internalType": "bool",
|
|
14
|
+
"name": "valid",
|
|
15
|
+
"type": "bool"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"internalType": "uint256",
|
|
19
|
+
"name": "rate",
|
|
20
|
+
"type": "uint256"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"internalType": "uint256",
|
|
24
|
+
"name": "updatedAt",
|
|
25
|
+
"type": "uint256"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"stateMutability": "view",
|
|
29
|
+
"type": "function"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"inputs": [
|
|
33
|
+
{
|
|
34
|
+
"internalType": "bytes",
|
|
35
|
+
"name": "rawConfig",
|
|
36
|
+
"type": "bytes"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"name": "validateConfig",
|
|
40
|
+
"outputs": [
|
|
41
|
+
{
|
|
42
|
+
"internalType": "bytes",
|
|
43
|
+
"name": "normalizedConfig",
|
|
44
|
+
"type": "bytes"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"stateMutability": "view",
|
|
48
|
+
"type": "function"
|
|
49
|
+
}
|
|
50
|
+
]
|