@zkp2p/contracts-v2 0.0.1-rc4 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +92 -32
- package/_cjs/abis/index.js +2 -0
- package/{dist → _cjs}/addresses/base.json +1 -1
- package/{dist → _cjs}/addresses/baseSepolia.json +1 -1
- package/_cjs/addresses/index.js +2 -0
- package/_cjs/constants/index.js +3 -0
- package/_cjs/index.js +2 -0
- package/{dist → _cjs}/paymentMethods/baseSepolia.json +1 -1
- package/_cjs/paymentMethods/index.js +23 -0
- package/_cjs/paymentMethods/index.json +6 -0
- package/_cjs/types/index.js +4 -0
- package/_cjs/utils/index.js +7 -0
- package/_esm/addresses/base.json +20 -0
- package/_esm/addresses/baseSepolia.json +20 -0
- package/_esm/constants/base.json +13 -0
- package/_esm/constants/baseSepolia.json +12 -0
- package/_esm/constants/baseStaging.json +13 -0
- package/_esm/index.js +2 -0
- package/_esm/paymentMethods/baseSepolia.json +234 -0
- package/_esm/paymentMethods/index.json +6 -0
- package/_esm/types/common.js +46 -0
- package/_esm/utils/protocolUtils.js +57 -0
- package/_types/index.d.ts +2 -0
- package/addresses/base.json +20 -0
- package/addresses/baseSepolia.json +20 -0
- package/constants/base.json +13 -0
- package/constants/baseSepolia.json +12 -0
- package/constants/baseStaging.json +13 -0
- package/package.json +38 -27
- package/paymentMethods/baseSepolia.json +234 -0
- package/paymentMethods/index.json +6 -0
- package/paymentMethods/index.ts +23 -0
- package/paymentMethods/types.d.ts +15 -0
- package/types/common.ts +46 -0
- package/types/index.ts +4 -0
- package/utils/index.ts +12 -0
- package/utils/protocolUtils.ts +57 -0
- package/dist/abis/base/index.d.ts +0 -11
- package/dist/abis/baseSepolia/index.d.ts +0 -11
- package/dist/index.esm.js +0 -4
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -6
- package/dist/index.js.map +0 -1
- package/dist/paymentMethods/index.d.ts +0 -7
- package/dist/paymentMethods/index.json +0 -6
- package/dist/types/common.d.ts +0 -22
- package/dist/types/contracts/Escrow.d.ts +0 -1277
- package/dist/types/contracts/Orchestrator.d.ts +0 -661
- package/dist/types/contracts/ProtocolViewer.d.ts +0 -300
- package/dist/types/contracts/index.d.ts +0 -9
- package/dist/types/contracts/interfaces/IAttestationVerifier.d.ts +0 -48
- package/dist/types/contracts/interfaces/IEscrow.d.ts +0 -697
- package/dist/types/contracts/interfaces/IEscrowRegistry.d.ts +0 -58
- package/dist/types/contracts/interfaces/INullifierRegistry.d.ts +0 -58
- package/dist/types/contracts/interfaces/IOrchestrator.d.ts +0 -382
- package/dist/types/contracts/interfaces/IPaymentVerifier.d.ts +0 -98
- package/dist/types/contracts/interfaces/IPaymentVerifierRegistry.d.ts +0 -74
- package/dist/types/contracts/interfaces/IPostIntentHook.d.ts +0 -100
- package/dist/types/contracts/interfaces/IPostIntentHookRegistry.d.ts +0 -50
- package/dist/types/contracts/interfaces/IProtocolViewer.d.ts +0 -232
- package/dist/types/contracts/interfaces/IRelayerRegistry.d.ts +0 -50
- package/dist/types/contracts/interfaces/index.d.ts +0 -11
- package/dist/types/contracts/registries/EscrowRegistry.d.ts +0 -206
- package/dist/types/contracts/registries/NullifierRegistry.d.ts +0 -200
- package/dist/types/contracts/registries/PaymentVerifierRegistry.d.ts +0 -270
- package/dist/types/contracts/registries/PostIntentHookRegistry.d.ts +0 -175
- package/dist/types/contracts/registries/RelayerRegistry.d.ts +0 -165
- package/dist/types/contracts/registries/index.d.ts +0 -5
- package/dist/types/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.d.ts +0 -357
- package/dist/types/contracts/unifiedVerifier/SimpleAttestationVerifier.d.ts +0 -196
- package/dist/types/contracts/unifiedVerifier/UnifiedPaymentVerifier.d.ts +0 -429
- package/dist/types/contracts/unifiedVerifier/index.d.ts +0 -3
- package/dist/types/index.d.ts +0 -1
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/protocolUtils.d.ts +0 -30
- /package/{dist → _cjs}/constants/base.json +0 -0
- /package/{dist → _cjs}/constants/baseSepolia.json +0 -0
- /package/{dist → _cjs}/constants/baseStaging.json +0 -0
- /package/{dist/types/common.ts → _cjs/types/common.js} +0 -0
- /package/{dist/utils/protocolUtils.ts → _cjs/utils/protocolUtils.js} +0 -0
- /package/{dist/abis/index.d.ts → _esm/abis/index.js} +0 -0
- /package/{dist/addresses/index.d.ts → _esm/addresses/index.js} +0 -0
- /package/{dist/constants/index.d.ts → _esm/constants/index.js} +0 -0
- /package/{dist/paymentMethods/index.ts → _esm/paymentMethods/index.js} +0 -0
- /package/{dist/types/index.ts → _esm/types/index.js} +0 -0
- /package/{dist/utils/index.ts → _esm/utils/index.js} +0 -0
- /package/{dist → _types}/paymentMethods/types.d.ts +0 -0
- /package/{dist/abis → abis}/base/CashappReclaimVerifier.json +0 -0
- /package/{dist/abis → abis}/base/Escrow.json +0 -0
- /package/{dist/abis → abis}/base/MercadoPagoReclaimVerifier.json +0 -0
- /package/{dist/abis → abis}/base/NullifierRegistry.json +0 -0
- /package/{dist/abis → abis}/base/RevolutReclaimVerifier.json +0 -0
- /package/{dist/abis → abis}/base/VenmoReclaimVerifier.json +0 -0
- /package/{dist/abis → abis}/base/WiseReclaimVerifier.json +0 -0
- /package/{dist/abis → abis}/base/ZelleBaseVerifier.json +0 -0
- /package/{dist/abis → abis}/base/ZelleBoAReclaimVerifier.json +0 -0
- /package/{dist/abis → abis}/base/ZelleChaseReclaimVerifier.json +0 -0
- /package/{dist/abis → abis}/base/ZelleCitiReclaimVerifier.json +0 -0
- /package/{dist/abis → abis}/base/index.ts +0 -0
- /package/{dist/abis → abis}/baseSepolia/Escrow.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/EscrowRegistry.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/NullifierRegistry.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/Orchestrator.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/PaymentVerifierRegistry.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/PostIntentHookRegistry.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/ProtocolViewer.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/RelayerRegistry.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/SimpleAttestationVerifier.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/USDCMock.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/UnifiedPaymentVerifier.json +0 -0
- /package/{dist/abis → abis}/baseSepolia/index.ts +0 -0
- /package/{dist/abis → abis}/index.ts +0 -0
- /package/{dist/addresses → addresses}/index.ts +0 -0
- /package/{dist/constants → constants}/index.ts +0 -0
- /package/{dist/types → types}/contracts/Escrow.ts +0 -0
- /package/{dist/types → types}/contracts/Orchestrator.ts +0 -0
- /package/{dist/types → types}/contracts/ProtocolViewer.ts +0 -0
- /package/{dist/types → types}/contracts/index.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IAttestationVerifier.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IEscrow.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IEscrowRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/INullifierRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IOrchestrator.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IPaymentVerifier.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IPaymentVerifierRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IPostIntentHook.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IPostIntentHookRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IProtocolViewer.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/IRelayerRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/interfaces/index.ts +0 -0
- /package/{dist/types → types}/contracts/registries/EscrowRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/registries/NullifierRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/registries/PaymentVerifierRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/registries/PostIntentHookRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/registries/RelayerRegistry.ts +0 -0
- /package/{dist/types → types}/contracts/registries/index.ts +0 -0
- /package/{dist/types → types}/contracts/unifiedVerifier/BaseUnifiedPaymentVerifier.ts +0 -0
- /package/{dist/types → types}/contracts/unifiedVerifier/SimpleAttestationVerifier.ts +0 -0
- /package/{dist/types → types}/contracts/unifiedVerifier/UnifiedPaymentVerifier.ts +0 -0
- /package/{dist/types → types}/contracts/unifiedVerifier/index.ts +0 -0
|
@@ -1,300 +0,0 @@
|
|
|
1
|
-
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
-
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
|
-
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../common";
|
|
5
|
-
export declare namespace IEscrow {
|
|
6
|
-
type RangeStruct = {
|
|
7
|
-
min: PromiseOrValue<BigNumberish>;
|
|
8
|
-
max: PromiseOrValue<BigNumberish>;
|
|
9
|
-
};
|
|
10
|
-
type RangeStructOutput = [BigNumber, BigNumber] & {
|
|
11
|
-
min: BigNumber;
|
|
12
|
-
max: BigNumber;
|
|
13
|
-
};
|
|
14
|
-
type DepositStruct = {
|
|
15
|
-
depositor: PromiseOrValue<string>;
|
|
16
|
-
delegate: PromiseOrValue<string>;
|
|
17
|
-
token: PromiseOrValue<string>;
|
|
18
|
-
amount: PromiseOrValue<BigNumberish>;
|
|
19
|
-
intentAmountRange: IEscrow.RangeStruct;
|
|
20
|
-
acceptingIntents: PromiseOrValue<boolean>;
|
|
21
|
-
remainingDeposits: PromiseOrValue<BigNumberish>;
|
|
22
|
-
outstandingIntentAmount: PromiseOrValue<BigNumberish>;
|
|
23
|
-
makerProtocolFee: PromiseOrValue<BigNumberish>;
|
|
24
|
-
reservedMakerFees: PromiseOrValue<BigNumberish>;
|
|
25
|
-
accruedMakerFees: PromiseOrValue<BigNumberish>;
|
|
26
|
-
accruedReferrerFees: PromiseOrValue<BigNumberish>;
|
|
27
|
-
intentGuardian: PromiseOrValue<string>;
|
|
28
|
-
referrer: PromiseOrValue<string>;
|
|
29
|
-
referrerFee: PromiseOrValue<BigNumberish>;
|
|
30
|
-
};
|
|
31
|
-
type DepositStructOutput = [
|
|
32
|
-
string,
|
|
33
|
-
string,
|
|
34
|
-
string,
|
|
35
|
-
BigNumber,
|
|
36
|
-
IEscrow.RangeStructOutput,
|
|
37
|
-
boolean,
|
|
38
|
-
BigNumber,
|
|
39
|
-
BigNumber,
|
|
40
|
-
BigNumber,
|
|
41
|
-
BigNumber,
|
|
42
|
-
BigNumber,
|
|
43
|
-
BigNumber,
|
|
44
|
-
string,
|
|
45
|
-
string,
|
|
46
|
-
BigNumber
|
|
47
|
-
] & {
|
|
48
|
-
depositor: string;
|
|
49
|
-
delegate: string;
|
|
50
|
-
token: string;
|
|
51
|
-
amount: BigNumber;
|
|
52
|
-
intentAmountRange: IEscrow.RangeStructOutput;
|
|
53
|
-
acceptingIntents: boolean;
|
|
54
|
-
remainingDeposits: BigNumber;
|
|
55
|
-
outstandingIntentAmount: BigNumber;
|
|
56
|
-
makerProtocolFee: BigNumber;
|
|
57
|
-
reservedMakerFees: BigNumber;
|
|
58
|
-
accruedMakerFees: BigNumber;
|
|
59
|
-
accruedReferrerFees: BigNumber;
|
|
60
|
-
intentGuardian: string;
|
|
61
|
-
referrer: string;
|
|
62
|
-
referrerFee: BigNumber;
|
|
63
|
-
};
|
|
64
|
-
type DepositPaymentMethodDataStruct = {
|
|
65
|
-
intentGatingService: PromiseOrValue<string>;
|
|
66
|
-
payeeDetails: PromiseOrValue<BytesLike>;
|
|
67
|
-
data: PromiseOrValue<BytesLike>;
|
|
68
|
-
};
|
|
69
|
-
type DepositPaymentMethodDataStructOutput = [
|
|
70
|
-
string,
|
|
71
|
-
string,
|
|
72
|
-
string
|
|
73
|
-
] & {
|
|
74
|
-
intentGatingService: string;
|
|
75
|
-
payeeDetails: string;
|
|
76
|
-
data: string;
|
|
77
|
-
};
|
|
78
|
-
type CurrencyStruct = {
|
|
79
|
-
code: PromiseOrValue<BytesLike>;
|
|
80
|
-
minConversionRate: PromiseOrValue<BigNumberish>;
|
|
81
|
-
};
|
|
82
|
-
type CurrencyStructOutput = [string, BigNumber] & {
|
|
83
|
-
code: string;
|
|
84
|
-
minConversionRate: BigNumber;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
export declare namespace IProtocolViewer {
|
|
88
|
-
type PaymentMethodDataViewStruct = {
|
|
89
|
-
paymentMethod: PromiseOrValue<BytesLike>;
|
|
90
|
-
verificationData: IEscrow.DepositPaymentMethodDataStruct;
|
|
91
|
-
currencies: IEscrow.CurrencyStruct[];
|
|
92
|
-
};
|
|
93
|
-
type PaymentMethodDataViewStructOutput = [
|
|
94
|
-
string,
|
|
95
|
-
IEscrow.DepositPaymentMethodDataStructOutput,
|
|
96
|
-
IEscrow.CurrencyStructOutput[]
|
|
97
|
-
] & {
|
|
98
|
-
paymentMethod: string;
|
|
99
|
-
verificationData: IEscrow.DepositPaymentMethodDataStructOutput;
|
|
100
|
-
currencies: IEscrow.CurrencyStructOutput[];
|
|
101
|
-
};
|
|
102
|
-
type DepositViewStruct = {
|
|
103
|
-
depositId: PromiseOrValue<BigNumberish>;
|
|
104
|
-
deposit: IEscrow.DepositStruct;
|
|
105
|
-
availableLiquidity: PromiseOrValue<BigNumberish>;
|
|
106
|
-
paymentMethods: IProtocolViewer.PaymentMethodDataViewStruct[];
|
|
107
|
-
intentHashes: PromiseOrValue<BytesLike>[];
|
|
108
|
-
};
|
|
109
|
-
type DepositViewStructOutput = [
|
|
110
|
-
BigNumber,
|
|
111
|
-
IEscrow.DepositStructOutput,
|
|
112
|
-
BigNumber,
|
|
113
|
-
IProtocolViewer.PaymentMethodDataViewStructOutput[],
|
|
114
|
-
string[]
|
|
115
|
-
] & {
|
|
116
|
-
depositId: BigNumber;
|
|
117
|
-
deposit: IEscrow.DepositStructOutput;
|
|
118
|
-
availableLiquidity: BigNumber;
|
|
119
|
-
paymentMethods: IProtocolViewer.PaymentMethodDataViewStructOutput[];
|
|
120
|
-
intentHashes: string[];
|
|
121
|
-
};
|
|
122
|
-
type IntentViewStruct = {
|
|
123
|
-
intentHash: PromiseOrValue<BytesLike>;
|
|
124
|
-
intent: IOrchestrator.IntentStruct;
|
|
125
|
-
deposit: IProtocolViewer.DepositViewStruct;
|
|
126
|
-
};
|
|
127
|
-
type IntentViewStructOutput = [
|
|
128
|
-
string,
|
|
129
|
-
IOrchestrator.IntentStructOutput,
|
|
130
|
-
IProtocolViewer.DepositViewStructOutput
|
|
131
|
-
] & {
|
|
132
|
-
intentHash: string;
|
|
133
|
-
intent: IOrchestrator.IntentStructOutput;
|
|
134
|
-
deposit: IProtocolViewer.DepositViewStructOutput;
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
export declare namespace IOrchestrator {
|
|
138
|
-
type IntentStruct = {
|
|
139
|
-
owner: PromiseOrValue<string>;
|
|
140
|
-
to: PromiseOrValue<string>;
|
|
141
|
-
escrow: PromiseOrValue<string>;
|
|
142
|
-
depositId: PromiseOrValue<BigNumberish>;
|
|
143
|
-
amount: PromiseOrValue<BigNumberish>;
|
|
144
|
-
timestamp: PromiseOrValue<BigNumberish>;
|
|
145
|
-
paymentMethod: PromiseOrValue<BytesLike>;
|
|
146
|
-
fiatCurrency: PromiseOrValue<BytesLike>;
|
|
147
|
-
conversionRate: PromiseOrValue<BigNumberish>;
|
|
148
|
-
referrer: PromiseOrValue<string>;
|
|
149
|
-
referrerFee: PromiseOrValue<BigNumberish>;
|
|
150
|
-
postIntentHook: PromiseOrValue<string>;
|
|
151
|
-
data: PromiseOrValue<BytesLike>;
|
|
152
|
-
};
|
|
153
|
-
type IntentStructOutput = [
|
|
154
|
-
string,
|
|
155
|
-
string,
|
|
156
|
-
string,
|
|
157
|
-
BigNumber,
|
|
158
|
-
BigNumber,
|
|
159
|
-
BigNumber,
|
|
160
|
-
string,
|
|
161
|
-
string,
|
|
162
|
-
BigNumber,
|
|
163
|
-
string,
|
|
164
|
-
BigNumber,
|
|
165
|
-
string,
|
|
166
|
-
string
|
|
167
|
-
] & {
|
|
168
|
-
owner: string;
|
|
169
|
-
to: string;
|
|
170
|
-
escrow: string;
|
|
171
|
-
depositId: BigNumber;
|
|
172
|
-
amount: BigNumber;
|
|
173
|
-
timestamp: BigNumber;
|
|
174
|
-
paymentMethod: string;
|
|
175
|
-
fiatCurrency: string;
|
|
176
|
-
conversionRate: BigNumber;
|
|
177
|
-
referrer: string;
|
|
178
|
-
referrerFee: BigNumber;
|
|
179
|
-
postIntentHook: string;
|
|
180
|
-
data: string;
|
|
181
|
-
};
|
|
182
|
-
}
|
|
183
|
-
export interface ProtocolViewerInterface extends utils.Interface {
|
|
184
|
-
functions: {
|
|
185
|
-
"escrowContract()": FunctionFragment;
|
|
186
|
-
"getAccountDeposits(address)": FunctionFragment;
|
|
187
|
-
"getAccountIntents(address)": FunctionFragment;
|
|
188
|
-
"getDeposit(uint256)": FunctionFragment;
|
|
189
|
-
"getDepositFromIds(uint256[])": FunctionFragment;
|
|
190
|
-
"getIntent(bytes32)": FunctionFragment;
|
|
191
|
-
"getIntents(bytes32[])": FunctionFragment;
|
|
192
|
-
"orchestrator()": FunctionFragment;
|
|
193
|
-
};
|
|
194
|
-
getFunction(nameOrSignatureOrTopic: "escrowContract" | "getAccountDeposits" | "getAccountIntents" | "getDeposit" | "getDepositFromIds" | "getIntent" | "getIntents" | "orchestrator"): FunctionFragment;
|
|
195
|
-
encodeFunctionData(functionFragment: "escrowContract", values?: undefined): string;
|
|
196
|
-
encodeFunctionData(functionFragment: "getAccountDeposits", values: [PromiseOrValue<string>]): string;
|
|
197
|
-
encodeFunctionData(functionFragment: "getAccountIntents", values: [PromiseOrValue<string>]): string;
|
|
198
|
-
encodeFunctionData(functionFragment: "getDeposit", values: [PromiseOrValue<BigNumberish>]): string;
|
|
199
|
-
encodeFunctionData(functionFragment: "getDepositFromIds", values: [PromiseOrValue<BigNumberish>[]]): string;
|
|
200
|
-
encodeFunctionData(functionFragment: "getIntent", values: [PromiseOrValue<BytesLike>]): string;
|
|
201
|
-
encodeFunctionData(functionFragment: "getIntents", values: [PromiseOrValue<BytesLike>[]]): string;
|
|
202
|
-
encodeFunctionData(functionFragment: "orchestrator", values?: undefined): string;
|
|
203
|
-
decodeFunctionResult(functionFragment: "escrowContract", data: BytesLike): Result;
|
|
204
|
-
decodeFunctionResult(functionFragment: "getAccountDeposits", data: BytesLike): Result;
|
|
205
|
-
decodeFunctionResult(functionFragment: "getAccountIntents", data: BytesLike): Result;
|
|
206
|
-
decodeFunctionResult(functionFragment: "getDeposit", data: BytesLike): Result;
|
|
207
|
-
decodeFunctionResult(functionFragment: "getDepositFromIds", data: BytesLike): Result;
|
|
208
|
-
decodeFunctionResult(functionFragment: "getIntent", data: BytesLike): Result;
|
|
209
|
-
decodeFunctionResult(functionFragment: "getIntents", data: BytesLike): Result;
|
|
210
|
-
decodeFunctionResult(functionFragment: "orchestrator", data: BytesLike): Result;
|
|
211
|
-
events: {};
|
|
212
|
-
}
|
|
213
|
-
export interface ProtocolViewer extends BaseContract {
|
|
214
|
-
connect(signerOrProvider: Signer | Provider | string): this;
|
|
215
|
-
attach(addressOrName: string): this;
|
|
216
|
-
deployed(): Promise<this>;
|
|
217
|
-
interface: ProtocolViewerInterface;
|
|
218
|
-
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
219
|
-
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
220
|
-
listeners(eventName?: string): Array<Listener>;
|
|
221
|
-
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
222
|
-
removeAllListeners(eventName?: string): this;
|
|
223
|
-
off: OnEvent<this>;
|
|
224
|
-
on: OnEvent<this>;
|
|
225
|
-
once: OnEvent<this>;
|
|
226
|
-
removeListener: OnEvent<this>;
|
|
227
|
-
functions: {
|
|
228
|
-
escrowContract(overrides?: CallOverrides): Promise<[string]>;
|
|
229
|
-
getAccountDeposits(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
|
|
230
|
-
IProtocolViewer.DepositViewStructOutput[]
|
|
231
|
-
] & {
|
|
232
|
-
depositArray: IProtocolViewer.DepositViewStructOutput[];
|
|
233
|
-
}>;
|
|
234
|
-
getAccountIntents(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[
|
|
235
|
-
IProtocolViewer.IntentViewStructOutput[]
|
|
236
|
-
] & {
|
|
237
|
-
intentViews: IProtocolViewer.IntentViewStructOutput[];
|
|
238
|
-
}>;
|
|
239
|
-
getDeposit(_depositId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[
|
|
240
|
-
IProtocolViewer.DepositViewStructOutput
|
|
241
|
-
] & {
|
|
242
|
-
depositView: IProtocolViewer.DepositViewStructOutput;
|
|
243
|
-
}>;
|
|
244
|
-
getDepositFromIds(_depositIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<[
|
|
245
|
-
IProtocolViewer.DepositViewStructOutput[]
|
|
246
|
-
] & {
|
|
247
|
-
depositArray: IProtocolViewer.DepositViewStructOutput[];
|
|
248
|
-
}>;
|
|
249
|
-
getIntent(_intentHash: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[
|
|
250
|
-
IProtocolViewer.IntentViewStructOutput
|
|
251
|
-
] & {
|
|
252
|
-
intentView: IProtocolViewer.IntentViewStructOutput;
|
|
253
|
-
}>;
|
|
254
|
-
getIntents(_intentHashes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<[
|
|
255
|
-
IProtocolViewer.IntentViewStructOutput[]
|
|
256
|
-
] & {
|
|
257
|
-
intentArray: IProtocolViewer.IntentViewStructOutput[];
|
|
258
|
-
}>;
|
|
259
|
-
orchestrator(overrides?: CallOverrides): Promise<[string]>;
|
|
260
|
-
};
|
|
261
|
-
escrowContract(overrides?: CallOverrides): Promise<string>;
|
|
262
|
-
getAccountDeposits(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<IProtocolViewer.DepositViewStructOutput[]>;
|
|
263
|
-
getAccountIntents(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<IProtocolViewer.IntentViewStructOutput[]>;
|
|
264
|
-
getDeposit(_depositId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<IProtocolViewer.DepositViewStructOutput>;
|
|
265
|
-
getDepositFromIds(_depositIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<IProtocolViewer.DepositViewStructOutput[]>;
|
|
266
|
-
getIntent(_intentHash: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<IProtocolViewer.IntentViewStructOutput>;
|
|
267
|
-
getIntents(_intentHashes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<IProtocolViewer.IntentViewStructOutput[]>;
|
|
268
|
-
orchestrator(overrides?: CallOverrides): Promise<string>;
|
|
269
|
-
callStatic: {
|
|
270
|
-
escrowContract(overrides?: CallOverrides): Promise<string>;
|
|
271
|
-
getAccountDeposits(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<IProtocolViewer.DepositViewStructOutput[]>;
|
|
272
|
-
getAccountIntents(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<IProtocolViewer.IntentViewStructOutput[]>;
|
|
273
|
-
getDeposit(_depositId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<IProtocolViewer.DepositViewStructOutput>;
|
|
274
|
-
getDepositFromIds(_depositIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<IProtocolViewer.DepositViewStructOutput[]>;
|
|
275
|
-
getIntent(_intentHash: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<IProtocolViewer.IntentViewStructOutput>;
|
|
276
|
-
getIntents(_intentHashes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<IProtocolViewer.IntentViewStructOutput[]>;
|
|
277
|
-
orchestrator(overrides?: CallOverrides): Promise<string>;
|
|
278
|
-
};
|
|
279
|
-
filters: {};
|
|
280
|
-
estimateGas: {
|
|
281
|
-
escrowContract(overrides?: CallOverrides): Promise<BigNumber>;
|
|
282
|
-
getAccountDeposits(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
283
|
-
getAccountIntents(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
284
|
-
getDeposit(_depositId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
285
|
-
getDepositFromIds(_depositIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<BigNumber>;
|
|
286
|
-
getIntent(_intentHash: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
287
|
-
getIntents(_intentHashes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<BigNumber>;
|
|
288
|
-
orchestrator(overrides?: CallOverrides): Promise<BigNumber>;
|
|
289
|
-
};
|
|
290
|
-
populateTransaction: {
|
|
291
|
-
escrowContract(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
292
|
-
getAccountDeposits(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
293
|
-
getAccountIntents(_account: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
294
|
-
getDeposit(_depositId: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
295
|
-
getDepositFromIds(_depositIds: PromiseOrValue<BigNumberish>[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
296
|
-
getIntent(_intentHash: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
297
|
-
getIntents(_intentHashes: PromiseOrValue<BytesLike>[], overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
298
|
-
orchestrator(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
299
|
-
};
|
|
300
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type * as interfaces from "./interfaces";
|
|
2
|
-
export type { interfaces };
|
|
3
|
-
import type * as registries from "./registries";
|
|
4
|
-
export type { registries };
|
|
5
|
-
import type * as unifiedVerifier from "./unifiedVerifier";
|
|
6
|
-
export type { unifiedVerifier };
|
|
7
|
-
export type { Escrow } from "./Escrow";
|
|
8
|
-
export type { Orchestrator } from "./Orchestrator";
|
|
9
|
-
export type { ProtocolViewer } from "./ProtocolViewer";
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import type { BaseContract, BigNumber, BytesLike, CallOverrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
-
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
|
-
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent, PromiseOrValue } from "../../common";
|
|
5
|
-
export interface IAttestationVerifierInterface extends utils.Interface {
|
|
6
|
-
functions: {
|
|
7
|
-
"verify(bytes32,bytes[],bytes)": FunctionFragment;
|
|
8
|
-
};
|
|
9
|
-
getFunction(nameOrSignatureOrTopic: "verify"): FunctionFragment;
|
|
10
|
-
encodeFunctionData(functionFragment: "verify", values: [
|
|
11
|
-
PromiseOrValue<BytesLike>,
|
|
12
|
-
PromiseOrValue<BytesLike>[],
|
|
13
|
-
PromiseOrValue<BytesLike>
|
|
14
|
-
]): string;
|
|
15
|
-
decodeFunctionResult(functionFragment: "verify", data: BytesLike): Result;
|
|
16
|
-
events: {};
|
|
17
|
-
}
|
|
18
|
-
export interface IAttestationVerifier extends BaseContract {
|
|
19
|
-
connect(signerOrProvider: Signer | Provider | string): this;
|
|
20
|
-
attach(addressOrName: string): this;
|
|
21
|
-
deployed(): Promise<this>;
|
|
22
|
-
interface: IAttestationVerifierInterface;
|
|
23
|
-
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
24
|
-
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
25
|
-
listeners(eventName?: string): Array<Listener>;
|
|
26
|
-
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
27
|
-
removeAllListeners(eventName?: string): this;
|
|
28
|
-
off: OnEvent<this>;
|
|
29
|
-
on: OnEvent<this>;
|
|
30
|
-
once: OnEvent<this>;
|
|
31
|
-
removeListener: OnEvent<this>;
|
|
32
|
-
functions: {
|
|
33
|
-
verify(_digest: PromiseOrValue<BytesLike>, _sigs: PromiseOrValue<BytesLike>[], _data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[boolean] & {
|
|
34
|
-
isValid: boolean;
|
|
35
|
-
}>;
|
|
36
|
-
};
|
|
37
|
-
verify(_digest: PromiseOrValue<BytesLike>, _sigs: PromiseOrValue<BytesLike>[], _data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
|
|
38
|
-
callStatic: {
|
|
39
|
-
verify(_digest: PromiseOrValue<BytesLike>, _sigs: PromiseOrValue<BytesLike>[], _data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<boolean>;
|
|
40
|
-
};
|
|
41
|
-
filters: {};
|
|
42
|
-
estimateGas: {
|
|
43
|
-
verify(_digest: PromiseOrValue<BytesLike>, _sigs: PromiseOrValue<BytesLike>[], _data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
44
|
-
};
|
|
45
|
-
populateTransaction: {
|
|
46
|
-
verify(_digest: PromiseOrValue<BytesLike>, _sigs: PromiseOrValue<BytesLike>[], _data: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
47
|
-
};
|
|
48
|
-
}
|