@zkp2p/contracts-v2 0.0.1-rc5 → 0.0.2
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 +118 -32
- package/_cjs/abis/base/CashappReclaimVerifier.json +513 -0
- package/_cjs/abis/base/Escrow.json +2315 -0
- package/_cjs/abis/base/MercadoPagoReclaimVerifier.json +539 -0
- package/_cjs/abis/base/NullifierRegistry.json +213 -0
- package/_cjs/abis/base/RevolutReclaimVerifier.json +513 -0
- package/_cjs/abis/base/VenmoReclaimVerifier.json +500 -0
- package/_cjs/abis/base/WiseReclaimVerifier.json +513 -0
- package/_cjs/abis/base/ZelleBaseVerifier.json +377 -0
- package/_cjs/abis/base/ZelleBoAReclaimVerifier.json +424 -0
- package/_cjs/abis/base/ZelleChaseReclaimVerifier.json +437 -0
- package/_cjs/abis/base/ZelleCitiReclaimVerifier.json +424 -0
- package/_cjs/abis/base/index.js +11 -0
- package/_cjs/abis/base.cjs +14 -0
- package/_cjs/abis/base.mjs +16 -0
- package/_cjs/abis/baseSepolia/Escrow.json +2222 -0
- package/_cjs/abis/baseSepolia/EscrowRegistry.json +214 -0
- package/_cjs/abis/baseSepolia/NullifierRegistry.json +213 -0
- package/_cjs/abis/baseSepolia/Orchestrator.json +1121 -0
- package/_cjs/abis/baseSepolia/PaymentVerifierRegistry.json +332 -0
- package/_cjs/abis/baseSepolia/PostIntentHookRegistry.json +181 -0
- package/_cjs/abis/baseSepolia/ProtocolViewer.json +1382 -0
- package/_cjs/abis/baseSepolia/RelayerRegistry.json +162 -0
- package/_cjs/abis/baseSepolia/SimpleAttestationVerifier.json +215 -0
- package/_cjs/abis/baseSepolia/USDCMock.json +293 -0
- package/_cjs/abis/baseSepolia/UnifiedPaymentVerifier.json +545 -0
- package/_cjs/abis/baseSepolia/index.js +11 -0
- package/_cjs/abis/baseSepolia.cjs +14 -0
- package/_cjs/abis/baseSepolia.mjs +16 -0
- package/_cjs/addresses/base.json +1 -1
- package/_cjs/addresses/baseSepolia.json +1 -1
- package/_cjs/paymentMethods/baseSepolia.json +1 -1
- package/_cjs/paymentMethods/index.json +1 -1
- package/_cjs/types/contracts/Escrow.js +2688 -0
- package/_cjs/types/contracts/Orchestrator.js +1290 -0
- package/_cjs/types/contracts/ProtocolViewer.js +527 -0
- package/_cjs/types/contracts/index.js +12 -0
- package/_cjs/types/contracts/interfaces/IAttestationVerifier.js +114 -0
- package/_cjs/types/contracts/interfaces/IEscrow.js +1434 -0
- package/_cjs/types/contracts/interfaces/IEscrowRegistry.js +150 -0
- package/_cjs/types/contracts/interfaces/INullifierRegistry.js +141 -0
- package/_cjs/types/contracts/interfaces/IOrchestrator.js +704 -0
- package/_cjs/types/contracts/interfaces/IPaymentVerifier.js +154 -0
- package/_cjs/types/contracts/interfaces/IPaymentVerifierRegistry.js +233 -0
- package/_cjs/types/contracts/interfaces/IPostIntentHook.js +165 -0
- package/_cjs/types/contracts/interfaces/IPostIntentHookRegistry.js +126 -0
- package/_cjs/types/contracts/interfaces/IProtocolViewer.js +334 -0
- package/_cjs/types/contracts/interfaces/IRelayerRegistry.js +126 -0
- package/_cjs/types/contracts/interfaces/index.js +14 -0
- package/_cjs/types/contracts/registries/EscrowRegistry.js +463 -0
- package/_cjs/types/contracts/registries/NullifierRegistry.js +447 -0
- package/_cjs/types/contracts/registries/PaymentVerifierRegistry.js +657 -0
- package/_cjs/types/contracts/registries/PostIntentHookRegistry.js +414 -0
- package/_cjs/types/contracts/registries/RelayerRegistry.js +371 -0
- package/_cjs/types/contracts/registries/index.js +8 -0
- package/_cjs/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +828 -0
- package/_cjs/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +415 -0
- package/_cjs/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +931 -0
- package/_cjs/types/contracts/unifiedVerifier/index.js +6 -0
- package/_esm/abis/base/CashappReclaimVerifier.json +513 -0
- package/_esm/abis/base/Escrow.json +2315 -0
- package/_esm/abis/base/MercadoPagoReclaimVerifier.json +539 -0
- package/_esm/abis/base/NullifierRegistry.json +213 -0
- package/_esm/abis/base/RevolutReclaimVerifier.json +513 -0
- package/_esm/abis/base/VenmoReclaimVerifier.json +500 -0
- package/_esm/abis/base/WiseReclaimVerifier.json +513 -0
- package/_esm/abis/base/ZelleBaseVerifier.json +377 -0
- package/_esm/abis/base/ZelleBoAReclaimVerifier.json +424 -0
- package/_esm/abis/base/ZelleChaseReclaimVerifier.json +437 -0
- package/_esm/abis/base/ZelleCitiReclaimVerifier.json +424 -0
- package/_esm/abis/base/index.js +11 -0
- package/_esm/abis/base.cjs +14 -0
- package/_esm/abis/base.mjs +16 -0
- package/_esm/abis/baseSepolia/Escrow.json +2222 -0
- package/_esm/abis/baseSepolia/EscrowRegistry.json +214 -0
- package/_esm/abis/baseSepolia/NullifierRegistry.json +213 -0
- package/_esm/abis/baseSepolia/Orchestrator.json +1121 -0
- package/_esm/abis/baseSepolia/PaymentVerifierRegistry.json +332 -0
- package/_esm/abis/baseSepolia/PostIntentHookRegistry.json +181 -0
- package/_esm/abis/baseSepolia/ProtocolViewer.json +1382 -0
- package/_esm/abis/baseSepolia/RelayerRegistry.json +162 -0
- package/_esm/abis/baseSepolia/SimpleAttestationVerifier.json +215 -0
- package/_esm/abis/baseSepolia/USDCMock.json +293 -0
- package/_esm/abis/baseSepolia/UnifiedPaymentVerifier.json +545 -0
- package/_esm/abis/baseSepolia/index.js +11 -0
- package/_esm/abis/baseSepolia.cjs +14 -0
- package/_esm/abis/baseSepolia.mjs +16 -0
- package/_esm/addresses/base.json +1 -1
- package/_esm/addresses/baseSepolia.json +1 -1
- package/_esm/paymentMethods/baseSepolia.json +1 -1
- package/_esm/paymentMethods/index.json +1 -1
- package/_esm/types/contracts/Escrow.js +2688 -0
- package/_esm/types/contracts/Orchestrator.js +1290 -0
- package/_esm/types/contracts/ProtocolViewer.js +527 -0
- package/_esm/types/contracts/index.js +12 -0
- package/_esm/types/contracts/interfaces/IAttestationVerifier.js +114 -0
- package/_esm/types/contracts/interfaces/IEscrow.js +1434 -0
- package/_esm/types/contracts/interfaces/IEscrowRegistry.js +150 -0
- package/_esm/types/contracts/interfaces/INullifierRegistry.js +141 -0
- package/_esm/types/contracts/interfaces/IOrchestrator.js +704 -0
- package/_esm/types/contracts/interfaces/IPaymentVerifier.js +154 -0
- package/_esm/types/contracts/interfaces/IPaymentVerifierRegistry.js +233 -0
- package/_esm/types/contracts/interfaces/IPostIntentHook.js +165 -0
- package/_esm/types/contracts/interfaces/IPostIntentHookRegistry.js +126 -0
- package/_esm/types/contracts/interfaces/IProtocolViewer.js +334 -0
- package/_esm/types/contracts/interfaces/IRelayerRegistry.js +126 -0
- package/_esm/types/contracts/interfaces/index.js +14 -0
- package/_esm/types/contracts/registries/EscrowRegistry.js +463 -0
- package/_esm/types/contracts/registries/NullifierRegistry.js +447 -0
- package/_esm/types/contracts/registries/PaymentVerifierRegistry.js +657 -0
- package/_esm/types/contracts/registries/PostIntentHookRegistry.js +414 -0
- package/_esm/types/contracts/registries/RelayerRegistry.js +371 -0
- package/_esm/types/contracts/registries/index.js +8 -0
- package/_esm/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.js +828 -0
- package/_esm/types/contracts/unifiedVerifier/SimpleAttestationVerifier.js +415 -0
- package/_esm/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.js +931 -0
- package/_esm/types/contracts/unifiedVerifier/index.js +6 -0
- package/_types/abis/base.d.ts +12 -0
- package/_types/abis/baseSepolia.d.ts +12 -0
- package/abis/base.cjs +14 -0
- package/abis/base.d.ts +12 -0
- package/abis/base.mjs +16 -0
- package/abis/baseSepolia.cjs +14 -0
- package/abis/baseSepolia.d.ts +12 -0
- package/abis/baseSepolia.mjs +16 -0
- package/addresses/base.json +1 -1
- package/addresses/baseSepolia.json +1 -1
- package/package.json +23 -6
- package/paymentMethods/baseSepolia.json +1 -1
- package/paymentMethods/index.json +1 -1
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BigNumberish,
|
|
8
|
+
BytesLike,
|
|
9
|
+
CallOverrides,
|
|
10
|
+
PopulatedTransaction,
|
|
11
|
+
Signer,
|
|
12
|
+
utils,
|
|
13
|
+
} from "ethers";
|
|
14
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
15
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
16
|
+
import type {
|
|
17
|
+
TypedEventFilter,
|
|
18
|
+
TypedEvent,
|
|
19
|
+
TypedListener,
|
|
20
|
+
OnEvent,
|
|
21
|
+
PromiseOrValue,
|
|
22
|
+
} from "../../common";
|
|
23
|
+
|
|
24
|
+
export declare namespace IOrchestrator {
|
|
25
|
+
export type IntentStruct = {
|
|
26
|
+
owner: PromiseOrValue<string>;
|
|
27
|
+
to: PromiseOrValue<string>;
|
|
28
|
+
escrow: PromiseOrValue<string>;
|
|
29
|
+
depositId: PromiseOrValue<BigNumberish>;
|
|
30
|
+
amount: PromiseOrValue<BigNumberish>;
|
|
31
|
+
timestamp: PromiseOrValue<BigNumberish>;
|
|
32
|
+
paymentMethod: PromiseOrValue<BytesLike>;
|
|
33
|
+
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
34
|
+
conversionRate: PromiseOrValue<BigNumberish>;
|
|
35
|
+
referrer: PromiseOrValue<string>;
|
|
36
|
+
referrerFee: PromiseOrValue<BigNumberish>;
|
|
37
|
+
postIntentHook: PromiseOrValue<string>;
|
|
38
|
+
data: PromiseOrValue<BytesLike>;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export type IntentStructOutput = [
|
|
42
|
+
string,
|
|
43
|
+
string,
|
|
44
|
+
string,
|
|
45
|
+
BigNumber,
|
|
46
|
+
BigNumber,
|
|
47
|
+
BigNumber,
|
|
48
|
+
string,
|
|
49
|
+
string,
|
|
50
|
+
BigNumber,
|
|
51
|
+
string,
|
|
52
|
+
BigNumber,
|
|
53
|
+
string,
|
|
54
|
+
string
|
|
55
|
+
] & {
|
|
56
|
+
owner: string;
|
|
57
|
+
to: string;
|
|
58
|
+
escrow: string;
|
|
59
|
+
depositId: BigNumber;
|
|
60
|
+
amount: BigNumber;
|
|
61
|
+
timestamp: BigNumber;
|
|
62
|
+
paymentMethod: string;
|
|
63
|
+
fiatCurrency: string;
|
|
64
|
+
conversionRate: BigNumber;
|
|
65
|
+
referrer: string;
|
|
66
|
+
referrerFee: BigNumber;
|
|
67
|
+
postIntentHook: string;
|
|
68
|
+
data: string;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export declare namespace IEscrow {
|
|
73
|
+
export type RangeStruct = {
|
|
74
|
+
min: PromiseOrValue<BigNumberish>;
|
|
75
|
+
max: PromiseOrValue<BigNumberish>;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export type RangeStructOutput = [BigNumber, BigNumber] & {
|
|
79
|
+
min: BigNumber;
|
|
80
|
+
max: BigNumber;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
export type DepositStruct = {
|
|
84
|
+
depositor: PromiseOrValue<string>;
|
|
85
|
+
delegate: PromiseOrValue<string>;
|
|
86
|
+
token: PromiseOrValue<string>;
|
|
87
|
+
amount: PromiseOrValue<BigNumberish>;
|
|
88
|
+
intentAmountRange: IEscrow.RangeStruct;
|
|
89
|
+
acceptingIntents: PromiseOrValue<boolean>;
|
|
90
|
+
remainingDeposits: PromiseOrValue<BigNumberish>;
|
|
91
|
+
outstandingIntentAmount: PromiseOrValue<BigNumberish>;
|
|
92
|
+
makerProtocolFee: PromiseOrValue<BigNumberish>;
|
|
93
|
+
reservedMakerFees: PromiseOrValue<BigNumberish>;
|
|
94
|
+
accruedMakerFees: PromiseOrValue<BigNumberish>;
|
|
95
|
+
accruedReferrerFees: PromiseOrValue<BigNumberish>;
|
|
96
|
+
intentGuardian: PromiseOrValue<string>;
|
|
97
|
+
referrer: PromiseOrValue<string>;
|
|
98
|
+
referrerFee: PromiseOrValue<BigNumberish>;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export type DepositStructOutput = [
|
|
102
|
+
string,
|
|
103
|
+
string,
|
|
104
|
+
string,
|
|
105
|
+
BigNumber,
|
|
106
|
+
IEscrow.RangeStructOutput,
|
|
107
|
+
boolean,
|
|
108
|
+
BigNumber,
|
|
109
|
+
BigNumber,
|
|
110
|
+
BigNumber,
|
|
111
|
+
BigNumber,
|
|
112
|
+
BigNumber,
|
|
113
|
+
BigNumber,
|
|
114
|
+
string,
|
|
115
|
+
string,
|
|
116
|
+
BigNumber
|
|
117
|
+
] & {
|
|
118
|
+
depositor: string;
|
|
119
|
+
delegate: string;
|
|
120
|
+
token: string;
|
|
121
|
+
amount: BigNumber;
|
|
122
|
+
intentAmountRange: IEscrow.RangeStructOutput;
|
|
123
|
+
acceptingIntents: boolean;
|
|
124
|
+
remainingDeposits: BigNumber;
|
|
125
|
+
outstandingIntentAmount: BigNumber;
|
|
126
|
+
makerProtocolFee: BigNumber;
|
|
127
|
+
reservedMakerFees: BigNumber;
|
|
128
|
+
accruedMakerFees: BigNumber;
|
|
129
|
+
accruedReferrerFees: BigNumber;
|
|
130
|
+
intentGuardian: string;
|
|
131
|
+
referrer: string;
|
|
132
|
+
referrerFee: BigNumber;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
export type DepositPaymentMethodDataStruct = {
|
|
136
|
+
intentGatingService: PromiseOrValue<string>;
|
|
137
|
+
payeeDetails: PromiseOrValue<BytesLike>;
|
|
138
|
+
data: PromiseOrValue<BytesLike>;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export type DepositPaymentMethodDataStructOutput = [
|
|
142
|
+
string,
|
|
143
|
+
string,
|
|
144
|
+
string
|
|
145
|
+
] & { intentGatingService: string; payeeDetails: string; data: string };
|
|
146
|
+
|
|
147
|
+
export type CurrencyStruct = {
|
|
148
|
+
code: PromiseOrValue<BytesLike>;
|
|
149
|
+
minConversionRate: PromiseOrValue<BigNumberish>;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export type CurrencyStructOutput = [string, BigNumber] & {
|
|
153
|
+
code: string;
|
|
154
|
+
minConversionRate: BigNumber;
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export declare namespace IProtocolViewer {
|
|
159
|
+
export type PaymentMethodDataViewStruct = {
|
|
160
|
+
paymentMethod: PromiseOrValue<BytesLike>;
|
|
161
|
+
verificationData: IEscrow.DepositPaymentMethodDataStruct;
|
|
162
|
+
currencies: IEscrow.CurrencyStruct[];
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
export type PaymentMethodDataViewStructOutput = [
|
|
166
|
+
string,
|
|
167
|
+
IEscrow.DepositPaymentMethodDataStructOutput,
|
|
168
|
+
IEscrow.CurrencyStructOutput[]
|
|
169
|
+
] & {
|
|
170
|
+
paymentMethod: string;
|
|
171
|
+
verificationData: IEscrow.DepositPaymentMethodDataStructOutput;
|
|
172
|
+
currencies: IEscrow.CurrencyStructOutput[];
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
export type DepositViewStruct = {
|
|
176
|
+
depositId: PromiseOrValue<BigNumberish>;
|
|
177
|
+
deposit: IEscrow.DepositStruct;
|
|
178
|
+
availableLiquidity: PromiseOrValue<BigNumberish>;
|
|
179
|
+
paymentMethods: IProtocolViewer.PaymentMethodDataViewStruct[];
|
|
180
|
+
intentHashes: PromiseOrValue<BytesLike>[];
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export type DepositViewStructOutput = [
|
|
184
|
+
BigNumber,
|
|
185
|
+
IEscrow.DepositStructOutput,
|
|
186
|
+
BigNumber,
|
|
187
|
+
IProtocolViewer.PaymentMethodDataViewStructOutput[],
|
|
188
|
+
string[]
|
|
189
|
+
] & {
|
|
190
|
+
depositId: BigNumber;
|
|
191
|
+
deposit: IEscrow.DepositStructOutput;
|
|
192
|
+
availableLiquidity: BigNumber;
|
|
193
|
+
paymentMethods: IProtocolViewer.PaymentMethodDataViewStructOutput[];
|
|
194
|
+
intentHashes: string[];
|
|
195
|
+
};
|
|
196
|
+
|
|
197
|
+
export type IntentViewStruct = {
|
|
198
|
+
intentHash: PromiseOrValue<BytesLike>;
|
|
199
|
+
intent: IOrchestrator.IntentStruct;
|
|
200
|
+
deposit: IProtocolViewer.DepositViewStruct;
|
|
201
|
+
};
|
|
202
|
+
|
|
203
|
+
export type IntentViewStructOutput = [
|
|
204
|
+
string,
|
|
205
|
+
IOrchestrator.IntentStructOutput,
|
|
206
|
+
IProtocolViewer.DepositViewStructOutput
|
|
207
|
+
] & {
|
|
208
|
+
intentHash: string;
|
|
209
|
+
intent: IOrchestrator.IntentStructOutput;
|
|
210
|
+
deposit: IProtocolViewer.DepositViewStructOutput;
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
export interface IProtocolViewerInterface extends utils.Interface {
|
|
215
|
+
functions: {
|
|
216
|
+
"getAccountIntents(address)": FunctionFragment;
|
|
217
|
+
"getDepositFromIds(uint256[])": FunctionFragment;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
getFunction(
|
|
221
|
+
nameOrSignatureOrTopic: "getAccountIntents" | "getDepositFromIds"
|
|
222
|
+
): FunctionFragment;
|
|
223
|
+
|
|
224
|
+
encodeFunctionData(
|
|
225
|
+
functionFragment: "getAccountIntents",
|
|
226
|
+
values: [PromiseOrValue<string>]
|
|
227
|
+
): string;
|
|
228
|
+
encodeFunctionData(
|
|
229
|
+
functionFragment: "getDepositFromIds",
|
|
230
|
+
values: [PromiseOrValue<BigNumberish>[]]
|
|
231
|
+
): string;
|
|
232
|
+
|
|
233
|
+
decodeFunctionResult(
|
|
234
|
+
functionFragment: "getAccountIntents",
|
|
235
|
+
data: BytesLike
|
|
236
|
+
): Result;
|
|
237
|
+
decodeFunctionResult(
|
|
238
|
+
functionFragment: "getDepositFromIds",
|
|
239
|
+
data: BytesLike
|
|
240
|
+
): Result;
|
|
241
|
+
|
|
242
|
+
events: {};
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export interface IProtocolViewer extends BaseContract {
|
|
246
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
247
|
+
attach(addressOrName: string): this;
|
|
248
|
+
deployed(): Promise<this>;
|
|
249
|
+
|
|
250
|
+
interface: IProtocolViewerInterface;
|
|
251
|
+
|
|
252
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
253
|
+
event: TypedEventFilter<TEvent>,
|
|
254
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
255
|
+
toBlock?: string | number | undefined
|
|
256
|
+
): Promise<Array<TEvent>>;
|
|
257
|
+
|
|
258
|
+
listeners<TEvent extends TypedEvent>(
|
|
259
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
260
|
+
): Array<TypedListener<TEvent>>;
|
|
261
|
+
listeners(eventName?: string): Array<Listener>;
|
|
262
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
263
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
264
|
+
): this;
|
|
265
|
+
removeAllListeners(eventName?: string): this;
|
|
266
|
+
off: OnEvent<this>;
|
|
267
|
+
on: OnEvent<this>;
|
|
268
|
+
once: OnEvent<this>;
|
|
269
|
+
removeListener: OnEvent<this>;
|
|
270
|
+
|
|
271
|
+
functions: {
|
|
272
|
+
getAccountIntents(
|
|
273
|
+
_account: PromiseOrValue<string>,
|
|
274
|
+
overrides?: CallOverrides
|
|
275
|
+
): Promise<
|
|
276
|
+
[IProtocolViewer.IntentViewStructOutput[]] & {
|
|
277
|
+
intentViews: IProtocolViewer.IntentViewStructOutput[];
|
|
278
|
+
}
|
|
279
|
+
>;
|
|
280
|
+
|
|
281
|
+
getDepositFromIds(
|
|
282
|
+
_depositIds: PromiseOrValue<BigNumberish>[],
|
|
283
|
+
overrides?: CallOverrides
|
|
284
|
+
): Promise<[IProtocolViewer.DepositViewStructOutput[]]>;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
getAccountIntents(
|
|
288
|
+
_account: PromiseOrValue<string>,
|
|
289
|
+
overrides?: CallOverrides
|
|
290
|
+
): Promise<IProtocolViewer.IntentViewStructOutput[]>;
|
|
291
|
+
|
|
292
|
+
getDepositFromIds(
|
|
293
|
+
_depositIds: PromiseOrValue<BigNumberish>[],
|
|
294
|
+
overrides?: CallOverrides
|
|
295
|
+
): Promise<IProtocolViewer.DepositViewStructOutput[]>;
|
|
296
|
+
|
|
297
|
+
callStatic: {
|
|
298
|
+
getAccountIntents(
|
|
299
|
+
_account: PromiseOrValue<string>,
|
|
300
|
+
overrides?: CallOverrides
|
|
301
|
+
): Promise<IProtocolViewer.IntentViewStructOutput[]>;
|
|
302
|
+
|
|
303
|
+
getDepositFromIds(
|
|
304
|
+
_depositIds: PromiseOrValue<BigNumberish>[],
|
|
305
|
+
overrides?: CallOverrides
|
|
306
|
+
): Promise<IProtocolViewer.DepositViewStructOutput[]>;
|
|
307
|
+
};
|
|
308
|
+
|
|
309
|
+
filters: {};
|
|
310
|
+
|
|
311
|
+
estimateGas: {
|
|
312
|
+
getAccountIntents(
|
|
313
|
+
_account: PromiseOrValue<string>,
|
|
314
|
+
overrides?: CallOverrides
|
|
315
|
+
): Promise<BigNumber>;
|
|
316
|
+
|
|
317
|
+
getDepositFromIds(
|
|
318
|
+
_depositIds: PromiseOrValue<BigNumberish>[],
|
|
319
|
+
overrides?: CallOverrides
|
|
320
|
+
): Promise<BigNumber>;
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
populateTransaction: {
|
|
324
|
+
getAccountIntents(
|
|
325
|
+
_account: PromiseOrValue<string>,
|
|
326
|
+
overrides?: CallOverrides
|
|
327
|
+
): Promise<PopulatedTransaction>;
|
|
328
|
+
|
|
329
|
+
getDepositFromIds(
|
|
330
|
+
_depositIds: PromiseOrValue<BigNumberish>[],
|
|
331
|
+
overrides?: CallOverrides
|
|
332
|
+
): Promise<PopulatedTransaction>;
|
|
333
|
+
};
|
|
334
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumber,
|
|
7
|
+
BytesLike,
|
|
8
|
+
CallOverrides,
|
|
9
|
+
PopulatedTransaction,
|
|
10
|
+
Signer,
|
|
11
|
+
utils,
|
|
12
|
+
} from "ethers";
|
|
13
|
+
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
TypedEventFilter,
|
|
17
|
+
TypedEvent,
|
|
18
|
+
TypedListener,
|
|
19
|
+
OnEvent,
|
|
20
|
+
PromiseOrValue,
|
|
21
|
+
} from "../../common";
|
|
22
|
+
|
|
23
|
+
export interface IRelayerRegistryInterface extends utils.Interface {
|
|
24
|
+
functions: {
|
|
25
|
+
"getWhitelistedRelayers()": FunctionFragment;
|
|
26
|
+
"isWhitelistedRelayer(address)": FunctionFragment;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
getFunction(
|
|
30
|
+
nameOrSignatureOrTopic: "getWhitelistedRelayers" | "isWhitelistedRelayer"
|
|
31
|
+
): FunctionFragment;
|
|
32
|
+
|
|
33
|
+
encodeFunctionData(
|
|
34
|
+
functionFragment: "getWhitelistedRelayers",
|
|
35
|
+
values?: undefined
|
|
36
|
+
): string;
|
|
37
|
+
encodeFunctionData(
|
|
38
|
+
functionFragment: "isWhitelistedRelayer",
|
|
39
|
+
values: [PromiseOrValue<string>]
|
|
40
|
+
): string;
|
|
41
|
+
|
|
42
|
+
decodeFunctionResult(
|
|
43
|
+
functionFragment: "getWhitelistedRelayers",
|
|
44
|
+
data: BytesLike
|
|
45
|
+
): Result;
|
|
46
|
+
decodeFunctionResult(
|
|
47
|
+
functionFragment: "isWhitelistedRelayer",
|
|
48
|
+
data: BytesLike
|
|
49
|
+
): Result;
|
|
50
|
+
|
|
51
|
+
events: {};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export interface IRelayerRegistry extends BaseContract {
|
|
55
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
56
|
+
attach(addressOrName: string): this;
|
|
57
|
+
deployed(): Promise<this>;
|
|
58
|
+
|
|
59
|
+
interface: IRelayerRegistryInterface;
|
|
60
|
+
|
|
61
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
62
|
+
event: TypedEventFilter<TEvent>,
|
|
63
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
64
|
+
toBlock?: string | number | undefined
|
|
65
|
+
): Promise<Array<TEvent>>;
|
|
66
|
+
|
|
67
|
+
listeners<TEvent extends TypedEvent>(
|
|
68
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
69
|
+
): Array<TypedListener<TEvent>>;
|
|
70
|
+
listeners(eventName?: string): Array<Listener>;
|
|
71
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
72
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
73
|
+
): this;
|
|
74
|
+
removeAllListeners(eventName?: string): this;
|
|
75
|
+
off: OnEvent<this>;
|
|
76
|
+
on: OnEvent<this>;
|
|
77
|
+
once: OnEvent<this>;
|
|
78
|
+
removeListener: OnEvent<this>;
|
|
79
|
+
|
|
80
|
+
functions: {
|
|
81
|
+
getWhitelistedRelayers(overrides?: CallOverrides): Promise<[string[]]>;
|
|
82
|
+
|
|
83
|
+
isWhitelistedRelayer(
|
|
84
|
+
_relayer: PromiseOrValue<string>,
|
|
85
|
+
overrides?: CallOverrides
|
|
86
|
+
): Promise<[boolean]>;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
getWhitelistedRelayers(overrides?: CallOverrides): Promise<string[]>;
|
|
90
|
+
|
|
91
|
+
isWhitelistedRelayer(
|
|
92
|
+
_relayer: PromiseOrValue<string>,
|
|
93
|
+
overrides?: CallOverrides
|
|
94
|
+
): Promise<boolean>;
|
|
95
|
+
|
|
96
|
+
callStatic: {
|
|
97
|
+
getWhitelistedRelayers(overrides?: CallOverrides): Promise<string[]>;
|
|
98
|
+
|
|
99
|
+
isWhitelistedRelayer(
|
|
100
|
+
_relayer: PromiseOrValue<string>,
|
|
101
|
+
overrides?: CallOverrides
|
|
102
|
+
): Promise<boolean>;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
filters: {};
|
|
106
|
+
|
|
107
|
+
estimateGas: {
|
|
108
|
+
getWhitelistedRelayers(overrides?: CallOverrides): Promise<BigNumber>;
|
|
109
|
+
|
|
110
|
+
isWhitelistedRelayer(
|
|
111
|
+
_relayer: PromiseOrValue<string>,
|
|
112
|
+
overrides?: CallOverrides
|
|
113
|
+
): Promise<BigNumber>;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
populateTransaction: {
|
|
117
|
+
getWhitelistedRelayers(
|
|
118
|
+
overrides?: CallOverrides
|
|
119
|
+
): Promise<PopulatedTransaction>;
|
|
120
|
+
|
|
121
|
+
isWhitelistedRelayer(
|
|
122
|
+
_relayer: PromiseOrValue<string>,
|
|
123
|
+
overrides?: CallOverrides
|
|
124
|
+
): Promise<PopulatedTransaction>;
|
|
125
|
+
};
|
|
126
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
from "./IAttestationVerifier";
|
|
5
|
+
from "./IEscrow";
|
|
6
|
+
from "./IEscrowRegistry";
|
|
7
|
+
from "./INullifierRegistry";
|
|
8
|
+
from "./IOrchestrator";
|
|
9
|
+
from "./IPaymentVerifier";
|
|
10
|
+
from "./IPaymentVerifierRegistry";
|
|
11
|
+
from "./IPostIntentHook";
|
|
12
|
+
from "./IPostIntentHookRegistry";
|
|
13
|
+
from "./IProtocolViewer";
|
|
14
|
+
from "./IRelayerRegistry";
|