@zkp2p/contracts-v2 0.0.9 → 0.0.11-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/_cjs/abis/baseStaging/AcrossBridgeHook.js +155 -100
- package/_cjs/abis/baseStaging/AcrossBridgeHook.json +155 -100
- package/_cjs/abis/baseStaging/ChainlinkOracleAdapter.js +52 -0
- package/_cjs/abis/baseStaging/ChainlinkOracleAdapter.json +50 -0
- package/_cjs/abis/baseStaging/DepositRateManagerController.js +257 -0
- package/_cjs/abis/baseStaging/DepositRateManagerController.json +255 -0
- package/_cjs/abis/baseStaging/DepositRateManagerHookV1.js +149 -0
- package/_cjs/abis/baseStaging/DepositRateManagerHookV1.json +147 -0
- package/_cjs/abis/baseStaging/DepositRateManagerRegistryV1.js +486 -0
- package/_cjs/abis/baseStaging/DepositRateManagerRegistryV1.json +484 -0
- package/_cjs/abis/baseStaging/ManualRateManagerRegistry.js +486 -0
- package/_cjs/abis/baseStaging/ManualRateManagerRegistry.json +484 -0
- package/_cjs/abis/baseStaging/OracleRateManagerRegistry.js +569 -0
- package/_cjs/abis/baseStaging/OracleRateManagerRegistry.json +567 -0
- package/_cjs/abis/baseStaging/Orchestrator.js +277 -46
- package/_cjs/abis/baseStaging/Orchestrator.json +277 -46
- package/_cjs/abis/baseStaging/ProtocolViewer.js +116 -0
- package/_cjs/abis/baseStaging/ProtocolViewer.json +116 -0
- package/_cjs/abis/baseStaging/UnifiedPaymentVerifier.js +32 -0
- package/_cjs/abis/baseStaging/UnifiedPaymentVerifier.json +32 -0
- package/_cjs/abis/baseStaging/WhitelistPreIntentHook.js +315 -0
- package/_cjs/abis/baseStaging/WhitelistPreIntentHook.json +313 -0
- package/_cjs/abis/baseStaging/index.js +7 -1
- package/_cjs/abis/baseStaging.cjs +8 -2
- package/_cjs/abis/baseStaging.mjs +7 -1
- package/_cjs/addresses/base.js +1 -1
- package/_cjs/addresses/base.json +1 -1
- package/_cjs/addresses/baseSepolia.js +1 -1
- package/_cjs/addresses/baseSepolia.json +1 -1
- package/_cjs/addresses/baseStaging.js +17 -11
- package/_cjs/addresses/baseStaging.json +17 -11
- package/_cjs/addresses/index.json +1 -1
- package/_cjs/constants/index.json +1 -1
- package/_cjs/paymentMethods/base.js +1 -1
- package/_cjs/paymentMethods/base.json +1 -1
- package/_cjs/paymentMethods/baseSepolia.js +1 -1
- package/_cjs/paymentMethods/baseSepolia.json +1 -1
- package/_cjs/paymentMethods/baseStaging.js +1 -1
- package/_cjs/paymentMethods/baseStaging.json +1 -1
- package/_cjs/paymentMethods/index.json +1 -1
- package/_cjs/types/contracts/DepositRateManagerController.sol/DepositRateManagerController.js +368 -0
- package/_cjs/types/contracts/DepositRateManagerController.sol/IPausable.js +81 -0
- package/_cjs/types/contracts/DepositRateManagerController.sol/index.js +5 -0
- package/_cjs/types/contracts/Orchestrator.js +373 -71
- package/_cjs/types/contracts/ProtocolViewer.js +227 -3
- package/_cjs/types/contracts/external/Interfaces/IAcrossSpokePool.js +44 -117
- package/_cjs/types/contracts/hooks/AcrossBridgeHook.js +145 -41
- package/_cjs/types/contracts/hooks/DepositRateManagerHookV1.js +256 -0
- package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.sol/IOrchestratorChainIdReader.js +81 -0
- package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.sol/SignatureGatingPreIntentHook.js +349 -0
- package/_cjs/types/contracts/hooks/SignatureGatingPreIntentHook.sol/index.js +5 -0
- package/_cjs/types/contracts/hooks/WhitelistPreIntentHook.js +422 -0
- package/_cjs/types/contracts/hooks/index.js +4 -0
- package/_cjs/types/contracts/index.js +4 -0
- package/_cjs/types/contracts/interfaces/IBaseRateManagerRegistry.js +534 -0
- package/_cjs/types/contracts/interfaces/IChainlinkAggregatorV3.js +132 -0
- package/_cjs/types/contracts/interfaces/IDepositRateManagerController.js +369 -0
- package/_cjs/types/contracts/interfaces/IDepositRateManagerHook.js +130 -0
- package/_cjs/types/contracts/interfaces/IDepositRateManagerRegistryV1.js +696 -0
- package/_cjs/types/contracts/interfaces/IManualRateManagerRegistry.js +695 -0
- package/_cjs/types/contracts/interfaces/IOracleAdapter.js +154 -0
- package/_cjs/types/contracts/interfaces/IOracleRateManagerRegistry.js +797 -0
- package/_cjs/types/contracts/interfaces/IOrchestrator.js +290 -23
- package/_cjs/types/contracts/interfaces/IPostIntentHook.js +36 -32
- package/_cjs/types/contracts/interfaces/IPreIntentHook.js +148 -0
- package/_cjs/types/contracts/interfaces/IProtocolViewer.js +75 -1
- package/_cjs/types/contracts/interfaces/index.js +8 -1
- package/_cjs/types/contracts/oracles/ChainlinkOracleAdapter.js +154 -0
- package/_cjs/types/contracts/oracles/index.js +4 -0
- package/_cjs/types/contracts/registries/BaseRateManagerRegistry.js +534 -0
- package/_cjs/types/contracts/registries/DepositRateManagerRegistryV1.js +695 -0
- package/_cjs/types/contracts/registries/ManualRateManagerRegistry.js +695 -0
- package/_cjs/types/contracts/registries/OracleRateManagerRegistry.js +797 -0
- package/_cjs/types/contracts/registries/index.js +3 -1
- package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +58 -0
- package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +58 -0
- package/_esm/abis/baseStaging/AcrossBridgeHook.js +155 -100
- package/_esm/abis/baseStaging/AcrossBridgeHook.json +155 -100
- package/_esm/abis/baseStaging/ChainlinkOracleAdapter.js +51 -0
- package/_esm/abis/baseStaging/ChainlinkOracleAdapter.json +50 -0
- package/_esm/abis/baseStaging/DepositRateManagerController.js +256 -0
- package/_esm/abis/baseStaging/DepositRateManagerController.json +255 -0
- package/_esm/abis/baseStaging/DepositRateManagerHookV1.js +148 -0
- package/_esm/abis/baseStaging/DepositRateManagerHookV1.json +147 -0
- package/_esm/abis/baseStaging/DepositRateManagerRegistryV1.js +485 -0
- package/_esm/abis/baseStaging/DepositRateManagerRegistryV1.json +484 -0
- package/_esm/abis/baseStaging/ManualRateManagerRegistry.js +485 -0
- package/_esm/abis/baseStaging/ManualRateManagerRegistry.json +484 -0
- package/_esm/abis/baseStaging/OracleRateManagerRegistry.js +568 -0
- package/_esm/abis/baseStaging/OracleRateManagerRegistry.json +567 -0
- package/_esm/abis/baseStaging/Orchestrator.js +277 -46
- package/_esm/abis/baseStaging/Orchestrator.json +277 -46
- package/_esm/abis/baseStaging/ProtocolViewer.js +116 -0
- package/_esm/abis/baseStaging/ProtocolViewer.json +116 -0
- package/_esm/abis/baseStaging/UnifiedPaymentVerifier.js +32 -0
- package/_esm/abis/baseStaging/UnifiedPaymentVerifier.json +32 -0
- package/_esm/abis/baseStaging/WhitelistPreIntentHook.js +314 -0
- package/_esm/abis/baseStaging/WhitelistPreIntentHook.json +313 -0
- package/_esm/abis/baseStaging/index.js +7 -1
- package/_esm/abis/baseStaging.cjs +8 -2
- package/_esm/abis/baseStaging.mjs +7 -1
- package/_esm/addresses/base.js +1 -1
- package/_esm/addresses/base.json +1 -1
- package/_esm/addresses/baseSepolia.js +1 -1
- package/_esm/addresses/baseSepolia.json +1 -1
- package/_esm/addresses/baseStaging.js +17 -11
- package/_esm/addresses/baseStaging.json +17 -11
- package/_esm/addresses/index.json +1 -1
- package/_esm/constants/index.json +1 -1
- package/_esm/paymentMethods/base.js +1 -1
- package/_esm/paymentMethods/base.json +1 -1
- package/_esm/paymentMethods/baseSepolia.js +1 -1
- package/_esm/paymentMethods/baseSepolia.json +1 -1
- package/_esm/paymentMethods/baseStaging.js +1 -1
- package/_esm/paymentMethods/baseStaging.json +1 -1
- package/_esm/paymentMethods/index.json +1 -1
- package/_esm/types/contracts/DepositRateManagerController.sol/DepositRateManagerController.js +368 -0
- package/_esm/types/contracts/DepositRateManagerController.sol/IPausable.js +81 -0
- package/_esm/types/contracts/DepositRateManagerController.sol/index.js +5 -0
- package/_esm/types/contracts/Orchestrator.js +373 -71
- package/_esm/types/contracts/ProtocolViewer.js +227 -3
- package/_esm/types/contracts/external/Interfaces/IAcrossSpokePool.js +44 -117
- package/_esm/types/contracts/hooks/AcrossBridgeHook.js +145 -41
- package/_esm/types/contracts/hooks/DepositRateManagerHookV1.js +256 -0
- package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.sol/IOrchestratorChainIdReader.js +81 -0
- package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.sol/SignatureGatingPreIntentHook.js +349 -0
- package/_esm/types/contracts/hooks/SignatureGatingPreIntentHook.sol/index.js +5 -0
- package/_esm/types/contracts/hooks/WhitelistPreIntentHook.js +422 -0
- package/_esm/types/contracts/hooks/index.js +4 -0
- package/_esm/types/contracts/index.js +4 -0
- package/_esm/types/contracts/interfaces/IBaseRateManagerRegistry.js +534 -0
- package/_esm/types/contracts/interfaces/IChainlinkAggregatorV3.js +132 -0
- package/_esm/types/contracts/interfaces/IDepositRateManagerController.js +369 -0
- package/_esm/types/contracts/interfaces/IDepositRateManagerHook.js +130 -0
- package/_esm/types/contracts/interfaces/IDepositRateManagerRegistryV1.js +696 -0
- package/_esm/types/contracts/interfaces/IManualRateManagerRegistry.js +695 -0
- package/_esm/types/contracts/interfaces/IOracleAdapter.js +154 -0
- package/_esm/types/contracts/interfaces/IOracleRateManagerRegistry.js +797 -0
- package/_esm/types/contracts/interfaces/IOrchestrator.js +290 -23
- package/_esm/types/contracts/interfaces/IPostIntentHook.js +36 -32
- package/_esm/types/contracts/interfaces/IPreIntentHook.js +148 -0
- package/_esm/types/contracts/interfaces/IProtocolViewer.js +75 -1
- package/_esm/types/contracts/interfaces/index.js +8 -1
- package/_esm/types/contracts/oracles/ChainlinkOracleAdapter.js +154 -0
- package/_esm/types/contracts/oracles/index.js +4 -0
- package/_esm/types/contracts/registries/BaseRateManagerRegistry.js +534 -0
- package/_esm/types/contracts/registries/DepositRateManagerRegistryV1.js +695 -0
- package/_esm/types/contracts/registries/ManualRateManagerRegistry.js +695 -0
- package/_esm/types/contracts/registries/OracleRateManagerRegistry.js +797 -0
- package/_esm/types/contracts/registries/index.js +3 -1
- package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +58 -0
- package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +58 -0
- package/_types/abis/baseStaging.d.ts +7 -1
- package/abis/baseStaging/AcrossBridgeHook.json +155 -100
- package/abis/baseStaging/ChainlinkOracleAdapter.json +50 -0
- package/abis/baseStaging/DepositRateManagerController.json +255 -0
- package/abis/baseStaging/DepositRateManagerHookV1.json +147 -0
- package/abis/baseStaging/DepositRateManagerRegistryV1.json +484 -0
- package/abis/baseStaging/ManualRateManagerRegistry.json +484 -0
- package/abis/baseStaging/OracleRateManagerRegistry.json +567 -0
- package/abis/baseStaging/Orchestrator.json +277 -46
- package/abis/baseStaging/ProtocolViewer.json +116 -0
- package/abis/baseStaging/UnifiedPaymentVerifier.json +32 -0
- package/abis/baseStaging/WhitelistPreIntentHook.json +313 -0
- package/abis/baseStaging/index.ts +7 -1
- package/abis/baseStaging.cjs +8 -2
- package/abis/baseStaging.d.ts +7 -1
- package/abis/baseStaging.mjs +7 -1
- package/addresses/base.json +1 -1
- package/addresses/baseSepolia.json +1 -1
- package/addresses/baseStaging.json +17 -11
- package/addresses/index.json +1 -1
- package/constants/index.json +1 -1
- package/package.json +1 -1
- package/paymentMethods/base.json +1 -1
- package/paymentMethods/baseSepolia.json +1 -1
- package/paymentMethods/baseStaging.json +1 -1
- package/paymentMethods/index.json +1 -1
- package/types/contracts/DepositRateManagerController.sol/DepositRateManagerController.ts +368 -0
- package/types/contracts/DepositRateManagerController.sol/IPausable.ts +81 -0
- package/types/contracts/DepositRateManagerController.sol/index.ts +5 -0
- package/types/contracts/Orchestrator.ts +373 -71
- package/types/contracts/ProtocolViewer.ts +227 -3
- package/types/contracts/external/Interfaces/IAcrossSpokePool.ts +44 -117
- package/types/contracts/hooks/AcrossBridgeHook.ts +145 -41
- package/types/contracts/hooks/DepositRateManagerHookV1.ts +256 -0
- package/types/contracts/hooks/SignatureGatingPreIntentHook.sol/IOrchestratorChainIdReader.ts +81 -0
- package/types/contracts/hooks/SignatureGatingPreIntentHook.sol/SignatureGatingPreIntentHook.ts +349 -0
- package/types/contracts/hooks/SignatureGatingPreIntentHook.sol/index.ts +5 -0
- package/types/contracts/hooks/WhitelistPreIntentHook.ts +422 -0
- package/types/contracts/hooks/index.ts +4 -0
- package/types/contracts/index.ts +4 -0
- package/types/contracts/interfaces/IBaseRateManagerRegistry.ts +534 -0
- package/types/contracts/interfaces/IChainlinkAggregatorV3.ts +132 -0
- package/types/contracts/interfaces/IDepositRateManagerController.ts +369 -0
- package/types/contracts/interfaces/IDepositRateManagerHook.ts +130 -0
- package/types/contracts/interfaces/IDepositRateManagerRegistryV1.ts +696 -0
- package/types/contracts/interfaces/IManualRateManagerRegistry.ts +695 -0
- package/types/contracts/interfaces/IOracleAdapter.ts +154 -0
- package/types/contracts/interfaces/IOracleRateManagerRegistry.ts +797 -0
- package/types/contracts/interfaces/IOrchestrator.ts +290 -23
- package/types/contracts/interfaces/IPostIntentHook.ts +36 -32
- package/types/contracts/interfaces/IPreIntentHook.ts +148 -0
- package/types/contracts/interfaces/IProtocolViewer.ts +75 -1
- package/types/contracts/interfaces/index.ts +8 -1
- package/types/contracts/oracles/ChainlinkOracleAdapter.ts +154 -0
- package/types/contracts/oracles/index.ts +4 -0
- package/types/contracts/registries/BaseRateManagerRegistry.ts +534 -0
- package/types/contracts/registries/DepositRateManagerRegistryV1.ts +695 -0
- package/types/contracts/registries/ManualRateManagerRegistry.ts +695 -0
- package/types/contracts/registries/OracleRateManagerRegistry.ts +797 -0
- package/types/contracts/registries/index.ts +3 -1
- package/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.ts +58 -0
- package/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.ts +58 -0
- package/_cjs/abis/baseStaging/PostIntentHookRegistry.js +0 -183
- package/_cjs/abis/baseStaging/PostIntentHookRegistry.json +0 -181
- package/_esm/abis/baseStaging/PostIntentHookRegistry.js +0 -182
- package/_esm/abis/baseStaging/PostIntentHookRegistry.json +0 -181
- package/abis/baseStaging/PostIntentHookRegistry.json +0 -181
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
ContractTransaction,
|
|
11
|
+
Overrides,
|
|
12
|
+
PopulatedTransaction,
|
|
13
|
+
Signer,
|
|
14
|
+
utils,
|
|
15
|
+
} from "ethers";
|
|
16
|
+
import type {
|
|
17
|
+
FunctionFragment,
|
|
18
|
+
Result,
|
|
19
|
+
EventFragment,
|
|
20
|
+
} from "@ethersproject/abi";
|
|
21
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
22
|
+
import type {
|
|
23
|
+
TypedEventFilter,
|
|
24
|
+
TypedEvent,
|
|
25
|
+
TypedListener,
|
|
26
|
+
OnEvent,
|
|
27
|
+
PromiseOrValue,
|
|
28
|
+
} from "../../common";
|
|
29
|
+
|
|
30
|
+
export declare namespace IPreIntentHook {
|
|
31
|
+
export type PreIntentContextStruct = {
|
|
32
|
+
taker: PromiseOrValue<string>;
|
|
33
|
+
escrow: PromiseOrValue<string>;
|
|
34
|
+
depositId: PromiseOrValue<BigNumberish>;
|
|
35
|
+
amount: PromiseOrValue<BigNumberish>;
|
|
36
|
+
to: PromiseOrValue<string>;
|
|
37
|
+
paymentMethod: PromiseOrValue<BytesLike>;
|
|
38
|
+
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
39
|
+
conversionRate: PromiseOrValue<BigNumberish>;
|
|
40
|
+
referrer: PromiseOrValue<string>;
|
|
41
|
+
referrerFee: PromiseOrValue<BigNumberish>;
|
|
42
|
+
preIntentHookData: PromiseOrValue<BytesLike>;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
export type PreIntentContextStructOutput = [
|
|
46
|
+
string,
|
|
47
|
+
string,
|
|
48
|
+
BigNumber,
|
|
49
|
+
BigNumber,
|
|
50
|
+
string,
|
|
51
|
+
string,
|
|
52
|
+
string,
|
|
53
|
+
BigNumber,
|
|
54
|
+
string,
|
|
55
|
+
BigNumber,
|
|
56
|
+
string
|
|
57
|
+
] & {
|
|
58
|
+
taker: string;
|
|
59
|
+
escrow: string;
|
|
60
|
+
depositId: BigNumber;
|
|
61
|
+
amount: BigNumber;
|
|
62
|
+
to: string;
|
|
63
|
+
paymentMethod: string;
|
|
64
|
+
fiatCurrency: string;
|
|
65
|
+
conversionRate: BigNumber;
|
|
66
|
+
referrer: string;
|
|
67
|
+
referrerFee: BigNumber;
|
|
68
|
+
preIntentHookData: string;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface WhitelistPreIntentHookInterface extends utils.Interface {
|
|
73
|
+
functions: {
|
|
74
|
+
"addToWhitelist(address,uint256,address[])": FunctionFragment;
|
|
75
|
+
"isWhitelisted(address,uint256,address)": FunctionFragment;
|
|
76
|
+
"orchestrator()": FunctionFragment;
|
|
77
|
+
"removeFromWhitelist(address,uint256,address[])": FunctionFragment;
|
|
78
|
+
"validateSignalIntent((address,address,uint256,uint256,address,bytes32,bytes32,uint256,address,uint256,bytes))": FunctionFragment;
|
|
79
|
+
"whitelist(address,uint256,address)": FunctionFragment;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
getFunction(
|
|
83
|
+
nameOrSignatureOrTopic:
|
|
84
|
+
| "addToWhitelist"
|
|
85
|
+
| "isWhitelisted"
|
|
86
|
+
| "orchestrator"
|
|
87
|
+
| "removeFromWhitelist"
|
|
88
|
+
| "validateSignalIntent"
|
|
89
|
+
| "whitelist"
|
|
90
|
+
): FunctionFragment;
|
|
91
|
+
|
|
92
|
+
encodeFunctionData(
|
|
93
|
+
functionFragment: "addToWhitelist",
|
|
94
|
+
values: [
|
|
95
|
+
PromiseOrValue<string>,
|
|
96
|
+
PromiseOrValue<BigNumberish>,
|
|
97
|
+
PromiseOrValue<string>[]
|
|
98
|
+
]
|
|
99
|
+
): string;
|
|
100
|
+
encodeFunctionData(
|
|
101
|
+
functionFragment: "isWhitelisted",
|
|
102
|
+
values: [
|
|
103
|
+
PromiseOrValue<string>,
|
|
104
|
+
PromiseOrValue<BigNumberish>,
|
|
105
|
+
PromiseOrValue<string>
|
|
106
|
+
]
|
|
107
|
+
): string;
|
|
108
|
+
encodeFunctionData(
|
|
109
|
+
functionFragment: "orchestrator",
|
|
110
|
+
values?: undefined
|
|
111
|
+
): string;
|
|
112
|
+
encodeFunctionData(
|
|
113
|
+
functionFragment: "removeFromWhitelist",
|
|
114
|
+
values: [
|
|
115
|
+
PromiseOrValue<string>,
|
|
116
|
+
PromiseOrValue<BigNumberish>,
|
|
117
|
+
PromiseOrValue<string>[]
|
|
118
|
+
]
|
|
119
|
+
): string;
|
|
120
|
+
encodeFunctionData(
|
|
121
|
+
functionFragment: "validateSignalIntent",
|
|
122
|
+
values: [IPreIntentHook.PreIntentContextStruct]
|
|
123
|
+
): string;
|
|
124
|
+
encodeFunctionData(
|
|
125
|
+
functionFragment: "whitelist",
|
|
126
|
+
values: [
|
|
127
|
+
PromiseOrValue<string>,
|
|
128
|
+
PromiseOrValue<BigNumberish>,
|
|
129
|
+
PromiseOrValue<string>
|
|
130
|
+
]
|
|
131
|
+
): string;
|
|
132
|
+
|
|
133
|
+
decodeFunctionResult(
|
|
134
|
+
functionFragment: "addToWhitelist",
|
|
135
|
+
data: BytesLike
|
|
136
|
+
): Result;
|
|
137
|
+
decodeFunctionResult(
|
|
138
|
+
functionFragment: "isWhitelisted",
|
|
139
|
+
data: BytesLike
|
|
140
|
+
): Result;
|
|
141
|
+
decodeFunctionResult(
|
|
142
|
+
functionFragment: "orchestrator",
|
|
143
|
+
data: BytesLike
|
|
144
|
+
): Result;
|
|
145
|
+
decodeFunctionResult(
|
|
146
|
+
functionFragment: "removeFromWhitelist",
|
|
147
|
+
data: BytesLike
|
|
148
|
+
): Result;
|
|
149
|
+
decodeFunctionResult(
|
|
150
|
+
functionFragment: "validateSignalIntent",
|
|
151
|
+
data: BytesLike
|
|
152
|
+
): Result;
|
|
153
|
+
decodeFunctionResult(functionFragment: "whitelist", data: BytesLike): Result;
|
|
154
|
+
|
|
155
|
+
events: {
|
|
156
|
+
"TakerRemovedFromWhitelist(address,uint256,address)": EventFragment;
|
|
157
|
+
"TakerWhitelisted(address,uint256,address)": EventFragment;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
getEvent(nameOrSignatureOrTopic: "TakerRemovedFromWhitelist"): EventFragment;
|
|
161
|
+
getEvent(nameOrSignatureOrTopic: "TakerWhitelisted"): EventFragment;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface TakerRemovedFromWhitelistEventObject {
|
|
165
|
+
escrow: string;
|
|
166
|
+
depositId: BigNumber;
|
|
167
|
+
taker: string;
|
|
168
|
+
}
|
|
169
|
+
export type TakerRemovedFromWhitelistEvent = TypedEvent<
|
|
170
|
+
[string, BigNumber, string],
|
|
171
|
+
TakerRemovedFromWhitelistEventObject
|
|
172
|
+
>;
|
|
173
|
+
|
|
174
|
+
export type TakerRemovedFromWhitelistEventFilter =
|
|
175
|
+
TypedEventFilter<TakerRemovedFromWhitelistEvent>;
|
|
176
|
+
|
|
177
|
+
export interface TakerWhitelistedEventObject {
|
|
178
|
+
escrow: string;
|
|
179
|
+
depositId: BigNumber;
|
|
180
|
+
taker: string;
|
|
181
|
+
}
|
|
182
|
+
export type TakerWhitelistedEvent = TypedEvent<
|
|
183
|
+
[string, BigNumber, string],
|
|
184
|
+
TakerWhitelistedEventObject
|
|
185
|
+
>;
|
|
186
|
+
|
|
187
|
+
export type TakerWhitelistedEventFilter =
|
|
188
|
+
TypedEventFilter<TakerWhitelistedEvent>;
|
|
189
|
+
|
|
190
|
+
export interface WhitelistPreIntentHook extends BaseContract {
|
|
191
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
192
|
+
attach(addressOrName: string): this;
|
|
193
|
+
deployed(): Promise<this>;
|
|
194
|
+
|
|
195
|
+
interface: WhitelistPreIntentHookInterface;
|
|
196
|
+
|
|
197
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
198
|
+
event: TypedEventFilter<TEvent>,
|
|
199
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
200
|
+
toBlock?: string | number | undefined
|
|
201
|
+
): Promise<Array<TEvent>>;
|
|
202
|
+
|
|
203
|
+
listeners<TEvent extends TypedEvent>(
|
|
204
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
205
|
+
): Array<TypedListener<TEvent>>;
|
|
206
|
+
listeners(eventName?: string): Array<Listener>;
|
|
207
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
208
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
209
|
+
): this;
|
|
210
|
+
removeAllListeners(eventName?: string): this;
|
|
211
|
+
off: OnEvent<this>;
|
|
212
|
+
on: OnEvent<this>;
|
|
213
|
+
once: OnEvent<this>;
|
|
214
|
+
removeListener: OnEvent<this>;
|
|
215
|
+
|
|
216
|
+
functions: {
|
|
217
|
+
addToWhitelist(
|
|
218
|
+
_escrow: PromiseOrValue<string>,
|
|
219
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
220
|
+
_takers: PromiseOrValue<string>[],
|
|
221
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
222
|
+
): Promise<ContractTransaction>;
|
|
223
|
+
|
|
224
|
+
isWhitelisted(
|
|
225
|
+
_escrow: PromiseOrValue<string>,
|
|
226
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
227
|
+
_taker: PromiseOrValue<string>,
|
|
228
|
+
overrides?: CallOverrides
|
|
229
|
+
): Promise<[boolean]>;
|
|
230
|
+
|
|
231
|
+
orchestrator(overrides?: CallOverrides): Promise<[string]>;
|
|
232
|
+
|
|
233
|
+
removeFromWhitelist(
|
|
234
|
+
_escrow: PromiseOrValue<string>,
|
|
235
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
236
|
+
_takers: PromiseOrValue<string>[],
|
|
237
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
238
|
+
): Promise<ContractTransaction>;
|
|
239
|
+
|
|
240
|
+
validateSignalIntent(
|
|
241
|
+
_ctx: IPreIntentHook.PreIntentContextStruct,
|
|
242
|
+
overrides?: CallOverrides
|
|
243
|
+
): Promise<[void]>;
|
|
244
|
+
|
|
245
|
+
whitelist(
|
|
246
|
+
arg0: PromiseOrValue<string>,
|
|
247
|
+
arg1: PromiseOrValue<BigNumberish>,
|
|
248
|
+
arg2: PromiseOrValue<string>,
|
|
249
|
+
overrides?: CallOverrides
|
|
250
|
+
): Promise<[boolean]>;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
addToWhitelist(
|
|
254
|
+
_escrow: PromiseOrValue<string>,
|
|
255
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
256
|
+
_takers: PromiseOrValue<string>[],
|
|
257
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
258
|
+
): Promise<ContractTransaction>;
|
|
259
|
+
|
|
260
|
+
isWhitelisted(
|
|
261
|
+
_escrow: PromiseOrValue<string>,
|
|
262
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
263
|
+
_taker: PromiseOrValue<string>,
|
|
264
|
+
overrides?: CallOverrides
|
|
265
|
+
): Promise<boolean>;
|
|
266
|
+
|
|
267
|
+
orchestrator(overrides?: CallOverrides): Promise<string>;
|
|
268
|
+
|
|
269
|
+
removeFromWhitelist(
|
|
270
|
+
_escrow: PromiseOrValue<string>,
|
|
271
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
272
|
+
_takers: PromiseOrValue<string>[],
|
|
273
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
274
|
+
): Promise<ContractTransaction>;
|
|
275
|
+
|
|
276
|
+
validateSignalIntent(
|
|
277
|
+
_ctx: IPreIntentHook.PreIntentContextStruct,
|
|
278
|
+
overrides?: CallOverrides
|
|
279
|
+
): Promise<void>;
|
|
280
|
+
|
|
281
|
+
whitelist(
|
|
282
|
+
arg0: PromiseOrValue<string>,
|
|
283
|
+
arg1: PromiseOrValue<BigNumberish>,
|
|
284
|
+
arg2: PromiseOrValue<string>,
|
|
285
|
+
overrides?: CallOverrides
|
|
286
|
+
): Promise<boolean>;
|
|
287
|
+
|
|
288
|
+
callStatic: {
|
|
289
|
+
addToWhitelist(
|
|
290
|
+
_escrow: PromiseOrValue<string>,
|
|
291
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
292
|
+
_takers: PromiseOrValue<string>[],
|
|
293
|
+
overrides?: CallOverrides
|
|
294
|
+
): Promise<void>;
|
|
295
|
+
|
|
296
|
+
isWhitelisted(
|
|
297
|
+
_escrow: PromiseOrValue<string>,
|
|
298
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
299
|
+
_taker: PromiseOrValue<string>,
|
|
300
|
+
overrides?: CallOverrides
|
|
301
|
+
): Promise<boolean>;
|
|
302
|
+
|
|
303
|
+
orchestrator(overrides?: CallOverrides): Promise<string>;
|
|
304
|
+
|
|
305
|
+
removeFromWhitelist(
|
|
306
|
+
_escrow: PromiseOrValue<string>,
|
|
307
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
308
|
+
_takers: PromiseOrValue<string>[],
|
|
309
|
+
overrides?: CallOverrides
|
|
310
|
+
): Promise<void>;
|
|
311
|
+
|
|
312
|
+
validateSignalIntent(
|
|
313
|
+
_ctx: IPreIntentHook.PreIntentContextStruct,
|
|
314
|
+
overrides?: CallOverrides
|
|
315
|
+
): Promise<void>;
|
|
316
|
+
|
|
317
|
+
whitelist(
|
|
318
|
+
arg0: PromiseOrValue<string>,
|
|
319
|
+
arg1: PromiseOrValue<BigNumberish>,
|
|
320
|
+
arg2: PromiseOrValue<string>,
|
|
321
|
+
overrides?: CallOverrides
|
|
322
|
+
): Promise<boolean>;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
filters: {
|
|
326
|
+
"TakerRemovedFromWhitelist(address,uint256,address)"(
|
|
327
|
+
escrow?: PromiseOrValue<string> | null,
|
|
328
|
+
depositId?: PromiseOrValue<BigNumberish> | null,
|
|
329
|
+
taker?: PromiseOrValue<string> | null
|
|
330
|
+
): TakerRemovedFromWhitelistEventFilter;
|
|
331
|
+
TakerRemovedFromWhitelist(
|
|
332
|
+
escrow?: PromiseOrValue<string> | null,
|
|
333
|
+
depositId?: PromiseOrValue<BigNumberish> | null,
|
|
334
|
+
taker?: PromiseOrValue<string> | null
|
|
335
|
+
): TakerRemovedFromWhitelistEventFilter;
|
|
336
|
+
|
|
337
|
+
"TakerWhitelisted(address,uint256,address)"(
|
|
338
|
+
escrow?: PromiseOrValue<string> | null,
|
|
339
|
+
depositId?: PromiseOrValue<BigNumberish> | null,
|
|
340
|
+
taker?: PromiseOrValue<string> | null
|
|
341
|
+
): TakerWhitelistedEventFilter;
|
|
342
|
+
TakerWhitelisted(
|
|
343
|
+
escrow?: PromiseOrValue<string> | null,
|
|
344
|
+
depositId?: PromiseOrValue<BigNumberish> | null,
|
|
345
|
+
taker?: PromiseOrValue<string> | null
|
|
346
|
+
): TakerWhitelistedEventFilter;
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
estimateGas: {
|
|
350
|
+
addToWhitelist(
|
|
351
|
+
_escrow: PromiseOrValue<string>,
|
|
352
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
353
|
+
_takers: PromiseOrValue<string>[],
|
|
354
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
355
|
+
): Promise<BigNumber>;
|
|
356
|
+
|
|
357
|
+
isWhitelisted(
|
|
358
|
+
_escrow: PromiseOrValue<string>,
|
|
359
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
360
|
+
_taker: PromiseOrValue<string>,
|
|
361
|
+
overrides?: CallOverrides
|
|
362
|
+
): Promise<BigNumber>;
|
|
363
|
+
|
|
364
|
+
orchestrator(overrides?: CallOverrides): Promise<BigNumber>;
|
|
365
|
+
|
|
366
|
+
removeFromWhitelist(
|
|
367
|
+
_escrow: PromiseOrValue<string>,
|
|
368
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
369
|
+
_takers: PromiseOrValue<string>[],
|
|
370
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
371
|
+
): Promise<BigNumber>;
|
|
372
|
+
|
|
373
|
+
validateSignalIntent(
|
|
374
|
+
_ctx: IPreIntentHook.PreIntentContextStruct,
|
|
375
|
+
overrides?: CallOverrides
|
|
376
|
+
): Promise<BigNumber>;
|
|
377
|
+
|
|
378
|
+
whitelist(
|
|
379
|
+
arg0: PromiseOrValue<string>,
|
|
380
|
+
arg1: PromiseOrValue<BigNumberish>,
|
|
381
|
+
arg2: PromiseOrValue<string>,
|
|
382
|
+
overrides?: CallOverrides
|
|
383
|
+
): Promise<BigNumber>;
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
populateTransaction: {
|
|
387
|
+
addToWhitelist(
|
|
388
|
+
_escrow: PromiseOrValue<string>,
|
|
389
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
390
|
+
_takers: PromiseOrValue<string>[],
|
|
391
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
392
|
+
): Promise<PopulatedTransaction>;
|
|
393
|
+
|
|
394
|
+
isWhitelisted(
|
|
395
|
+
_escrow: PromiseOrValue<string>,
|
|
396
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
397
|
+
_taker: PromiseOrValue<string>,
|
|
398
|
+
overrides?: CallOverrides
|
|
399
|
+
): Promise<PopulatedTransaction>;
|
|
400
|
+
|
|
401
|
+
orchestrator(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
402
|
+
|
|
403
|
+
removeFromWhitelist(
|
|
404
|
+
_escrow: PromiseOrValue<string>,
|
|
405
|
+
_depositId: PromiseOrValue<BigNumberish>,
|
|
406
|
+
_takers: PromiseOrValue<string>[],
|
|
407
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
408
|
+
): Promise<PopulatedTransaction>;
|
|
409
|
+
|
|
410
|
+
validateSignalIntent(
|
|
411
|
+
_ctx: IPreIntentHook.PreIntentContextStruct,
|
|
412
|
+
overrides?: CallOverrides
|
|
413
|
+
): Promise<PopulatedTransaction>;
|
|
414
|
+
|
|
415
|
+
whitelist(
|
|
416
|
+
arg0: PromiseOrValue<string>,
|
|
417
|
+
arg1: PromiseOrValue<BigNumberish>,
|
|
418
|
+
arg2: PromiseOrValue<string>,
|
|
419
|
+
overrides?: CallOverrides
|
|
420
|
+
): Promise<PopulatedTransaction>;
|
|
421
|
+
};
|
|
422
|
+
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
+
import type * as signatureGatingPreIntentHookSol from "./SignatureGatingPreIntentHook.sol";
|
|
5
|
+
;
|
|
4
6
|
from "./AcrossBridgeHook";
|
|
7
|
+
from "./DepositRateManagerHookV1";
|
|
8
|
+
from "./WhitelistPreIntentHook";
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
/* Autogenerated file. Do not edit manually. */
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
+
import type * as depositRateManagerControllerSol from "./DepositRateManagerController.sol";
|
|
5
|
+
;
|
|
4
6
|
import type * as external from "./external";
|
|
5
7
|
;
|
|
6
8
|
import type * as hooks from "./hooks";
|
|
7
9
|
;
|
|
8
10
|
import type * as interfaces from "./interfaces";
|
|
9
11
|
;
|
|
12
|
+
import type * as oracles from "./oracles";
|
|
13
|
+
;
|
|
10
14
|
import type * as registries from "./registries";
|
|
11
15
|
;
|
|
12
16
|
import type * as unifiedVerifier from "./unifiedVerifier";
|