@merkl/contracts 1.4.44 → 1.4.46
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/dist/src/MerklVerifier.d.ts +285 -0
- package/dist/src/MerklVerifier.js +2 -0
- package/dist/src/MerklVerifier.js.map +1 -0
- package/dist/src/factories/MerklVerifier__factory.d.ts +353 -0
- package/dist/src/factories/MerklVerifier__factory.js +465 -0
- package/dist/src/factories/MerklVerifier__factory.js.map +1 -0
- package/dist/src/factories/index.d.ts +1 -0
- package/dist/src/factories/index.js +1 -0
- package/dist/src/factories/index.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.js +2 -0
- package/dist/src/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result, EventFragment } 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 SelfUtils {
|
|
6
|
+
type UnformattedVerificationConfigV2Struct = {
|
|
7
|
+
olderThan: PromiseOrValue<BigNumberish>;
|
|
8
|
+
forbiddenCountries: PromiseOrValue<string>[];
|
|
9
|
+
ofacEnabled: PromiseOrValue<boolean>;
|
|
10
|
+
};
|
|
11
|
+
type UnformattedVerificationConfigV2StructOutput = [
|
|
12
|
+
BigNumber,
|
|
13
|
+
string[],
|
|
14
|
+
boolean
|
|
15
|
+
] & {
|
|
16
|
+
olderThan: BigNumber;
|
|
17
|
+
forbiddenCountries: string[];
|
|
18
|
+
ofacEnabled: boolean;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface MerklVerifierInterface extends utils.Interface {
|
|
22
|
+
functions: {
|
|
23
|
+
"DOMAIN_SEPARATOR()": FunctionFragment;
|
|
24
|
+
"VERIFY_IDENTITY_TYPEHASH()": FunctionFragment;
|
|
25
|
+
"getConfigId(bytes32,bytes32,bytes)": FunctionFragment;
|
|
26
|
+
"getUserForNullifier(uint256)": FunctionFragment;
|
|
27
|
+
"isVerified(bytes32,address)": FunctionFragment;
|
|
28
|
+
"nullifierToUser(uint256)": FunctionFragment;
|
|
29
|
+
"onVerificationSuccess(bytes,bytes)": FunctionFragment;
|
|
30
|
+
"owner()": FunctionFragment;
|
|
31
|
+
"renounceOwnership()": FunctionFragment;
|
|
32
|
+
"revokeVerification(bytes32,address)": FunctionFragment;
|
|
33
|
+
"scope()": FunctionFragment;
|
|
34
|
+
"transferOwnership(address)": FunctionFragment;
|
|
35
|
+
"verificationConfig()": FunctionFragment;
|
|
36
|
+
"verifications(bytes32,address)": FunctionFragment;
|
|
37
|
+
"verifySelfProof(bytes,bytes)": FunctionFragment;
|
|
38
|
+
};
|
|
39
|
+
getFunction(nameOrSignatureOrTopic: "DOMAIN_SEPARATOR" | "VERIFY_IDENTITY_TYPEHASH" | "getConfigId" | "getUserForNullifier" | "isVerified" | "nullifierToUser" | "onVerificationSuccess" | "owner" | "renounceOwnership" | "revokeVerification" | "scope" | "transferOwnership" | "verificationConfig" | "verifications" | "verifySelfProof"): FunctionFragment;
|
|
40
|
+
encodeFunctionData(functionFragment: "DOMAIN_SEPARATOR", values?: undefined): string;
|
|
41
|
+
encodeFunctionData(functionFragment: "VERIFY_IDENTITY_TYPEHASH", values?: undefined): string;
|
|
42
|
+
encodeFunctionData(functionFragment: "getConfigId", values: [
|
|
43
|
+
PromiseOrValue<BytesLike>,
|
|
44
|
+
PromiseOrValue<BytesLike>,
|
|
45
|
+
PromiseOrValue<BytesLike>
|
|
46
|
+
]): string;
|
|
47
|
+
encodeFunctionData(functionFragment: "getUserForNullifier", values: [PromiseOrValue<BigNumberish>]): string;
|
|
48
|
+
encodeFunctionData(functionFragment: "isVerified", values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]): string;
|
|
49
|
+
encodeFunctionData(functionFragment: "nullifierToUser", values: [PromiseOrValue<BigNumberish>]): string;
|
|
50
|
+
encodeFunctionData(functionFragment: "onVerificationSuccess", values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]): string;
|
|
51
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
52
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
53
|
+
encodeFunctionData(functionFragment: "revokeVerification", values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]): string;
|
|
54
|
+
encodeFunctionData(functionFragment: "scope", values?: undefined): string;
|
|
55
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [PromiseOrValue<string>]): string;
|
|
56
|
+
encodeFunctionData(functionFragment: "verificationConfig", values?: undefined): string;
|
|
57
|
+
encodeFunctionData(functionFragment: "verifications", values: [PromiseOrValue<BytesLike>, PromiseOrValue<string>]): string;
|
|
58
|
+
encodeFunctionData(functionFragment: "verifySelfProof", values: [PromiseOrValue<BytesLike>, PromiseOrValue<BytesLike>]): string;
|
|
59
|
+
decodeFunctionResult(functionFragment: "DOMAIN_SEPARATOR", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: "VERIFY_IDENTITY_TYPEHASH", data: BytesLike): Result;
|
|
61
|
+
decodeFunctionResult(functionFragment: "getConfigId", data: BytesLike): Result;
|
|
62
|
+
decodeFunctionResult(functionFragment: "getUserForNullifier", data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: "isVerified", data: BytesLike): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: "nullifierToUser", data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: "onVerificationSuccess", data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
67
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
68
|
+
decodeFunctionResult(functionFragment: "revokeVerification", data: BytesLike): Result;
|
|
69
|
+
decodeFunctionResult(functionFragment: "scope", data: BytesLike): Result;
|
|
70
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
71
|
+
decodeFunctionResult(functionFragment: "verificationConfig", data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(functionFragment: "verifications", data: BytesLike): Result;
|
|
73
|
+
decodeFunctionResult(functionFragment: "verifySelfProof", data: BytesLike): Result;
|
|
74
|
+
events: {
|
|
75
|
+
"OwnershipTransferred(address,address)": EventFragment;
|
|
76
|
+
"VerificationRevoked(bytes32,address)": EventFragment;
|
|
77
|
+
"Verified(bytes32,address,uint256)": EventFragment;
|
|
78
|
+
};
|
|
79
|
+
getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
|
|
80
|
+
getEvent(nameOrSignatureOrTopic: "VerificationRevoked"): EventFragment;
|
|
81
|
+
getEvent(nameOrSignatureOrTopic: "Verified"): EventFragment;
|
|
82
|
+
}
|
|
83
|
+
export interface OwnershipTransferredEventObject {
|
|
84
|
+
previousOwner: string;
|
|
85
|
+
newOwner: string;
|
|
86
|
+
}
|
|
87
|
+
export type OwnershipTransferredEvent = TypedEvent<[
|
|
88
|
+
string,
|
|
89
|
+
string
|
|
90
|
+
], OwnershipTransferredEventObject>;
|
|
91
|
+
export type OwnershipTransferredEventFilter = TypedEventFilter<OwnershipTransferredEvent>;
|
|
92
|
+
export interface VerificationRevokedEventObject {
|
|
93
|
+
verificationId: string;
|
|
94
|
+
user: string;
|
|
95
|
+
}
|
|
96
|
+
export type VerificationRevokedEvent = TypedEvent<[
|
|
97
|
+
string,
|
|
98
|
+
string
|
|
99
|
+
], VerificationRevokedEventObject>;
|
|
100
|
+
export type VerificationRevokedEventFilter = TypedEventFilter<VerificationRevokedEvent>;
|
|
101
|
+
export interface VerifiedEventObject {
|
|
102
|
+
verificationId: string;
|
|
103
|
+
user: string;
|
|
104
|
+
nullifier: BigNumber;
|
|
105
|
+
}
|
|
106
|
+
export type VerifiedEvent = TypedEvent<[
|
|
107
|
+
string,
|
|
108
|
+
string,
|
|
109
|
+
BigNumber
|
|
110
|
+
], VerifiedEventObject>;
|
|
111
|
+
export type VerifiedEventFilter = TypedEventFilter<VerifiedEvent>;
|
|
112
|
+
export interface MerklVerifier extends BaseContract {
|
|
113
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
114
|
+
attach(addressOrName: string): this;
|
|
115
|
+
deployed(): Promise<this>;
|
|
116
|
+
interface: MerklVerifierInterface;
|
|
117
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
118
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
119
|
+
listeners(eventName?: string): Array<Listener>;
|
|
120
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
121
|
+
removeAllListeners(eventName?: string): this;
|
|
122
|
+
off: OnEvent<this>;
|
|
123
|
+
on: OnEvent<this>;
|
|
124
|
+
once: OnEvent<this>;
|
|
125
|
+
removeListener: OnEvent<this>;
|
|
126
|
+
functions: {
|
|
127
|
+
DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<[string]>;
|
|
128
|
+
VERIFY_IDENTITY_TYPEHASH(overrides?: CallOverrides): Promise<[string]>;
|
|
129
|
+
getConfigId(arg0: PromiseOrValue<BytesLike>, arg1: PromiseOrValue<BytesLike>, userDefinedData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<[string]>;
|
|
130
|
+
getUserForNullifier(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string]>;
|
|
131
|
+
isVerified(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean]>;
|
|
132
|
+
nullifierToUser(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<[string] & {
|
|
133
|
+
user: string;
|
|
134
|
+
}>;
|
|
135
|
+
onVerificationSuccess(output: PromiseOrValue<BytesLike>, userData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
136
|
+
from?: PromiseOrValue<string>;
|
|
137
|
+
}): Promise<ContractTransaction>;
|
|
138
|
+
owner(overrides?: CallOverrides): Promise<[string]>;
|
|
139
|
+
renounceOwnership(overrides?: Overrides & {
|
|
140
|
+
from?: PromiseOrValue<string>;
|
|
141
|
+
}): Promise<ContractTransaction>;
|
|
142
|
+
revokeVerification(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: Overrides & {
|
|
143
|
+
from?: PromiseOrValue<string>;
|
|
144
|
+
}): Promise<ContractTransaction>;
|
|
145
|
+
scope(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
146
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
147
|
+
from?: PromiseOrValue<string>;
|
|
148
|
+
}): Promise<ContractTransaction>;
|
|
149
|
+
verificationConfig(overrides?: CallOverrides): Promise<[
|
|
150
|
+
boolean,
|
|
151
|
+
BigNumber,
|
|
152
|
+
boolean
|
|
153
|
+
] & {
|
|
154
|
+
olderThanEnabled: boolean;
|
|
155
|
+
olderThan: BigNumber;
|
|
156
|
+
forbiddenCountriesEnabled: boolean;
|
|
157
|
+
}>;
|
|
158
|
+
verifications(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<[boolean] & {
|
|
159
|
+
isVerified: boolean;
|
|
160
|
+
}>;
|
|
161
|
+
verifySelfProof(proofPayload: PromiseOrValue<BytesLike>, userContextData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
162
|
+
from?: PromiseOrValue<string>;
|
|
163
|
+
}): Promise<ContractTransaction>;
|
|
164
|
+
};
|
|
165
|
+
DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<string>;
|
|
166
|
+
VERIFY_IDENTITY_TYPEHASH(overrides?: CallOverrides): Promise<string>;
|
|
167
|
+
getConfigId(arg0: PromiseOrValue<BytesLike>, arg1: PromiseOrValue<BytesLike>, userDefinedData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
|
|
168
|
+
getUserForNullifier(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
169
|
+
isVerified(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
170
|
+
nullifierToUser(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
171
|
+
onVerificationSuccess(output: PromiseOrValue<BytesLike>, userData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
172
|
+
from?: PromiseOrValue<string>;
|
|
173
|
+
}): Promise<ContractTransaction>;
|
|
174
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
175
|
+
renounceOwnership(overrides?: Overrides & {
|
|
176
|
+
from?: PromiseOrValue<string>;
|
|
177
|
+
}): Promise<ContractTransaction>;
|
|
178
|
+
revokeVerification(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: Overrides & {
|
|
179
|
+
from?: PromiseOrValue<string>;
|
|
180
|
+
}): Promise<ContractTransaction>;
|
|
181
|
+
scope(overrides?: CallOverrides): Promise<BigNumber>;
|
|
182
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
183
|
+
from?: PromiseOrValue<string>;
|
|
184
|
+
}): Promise<ContractTransaction>;
|
|
185
|
+
verificationConfig(overrides?: CallOverrides): Promise<[
|
|
186
|
+
boolean,
|
|
187
|
+
BigNumber,
|
|
188
|
+
boolean
|
|
189
|
+
] & {
|
|
190
|
+
olderThanEnabled: boolean;
|
|
191
|
+
olderThan: BigNumber;
|
|
192
|
+
forbiddenCountriesEnabled: boolean;
|
|
193
|
+
}>;
|
|
194
|
+
verifications(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
195
|
+
verifySelfProof(proofPayload: PromiseOrValue<BytesLike>, userContextData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
196
|
+
from?: PromiseOrValue<string>;
|
|
197
|
+
}): Promise<ContractTransaction>;
|
|
198
|
+
callStatic: {
|
|
199
|
+
DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<string>;
|
|
200
|
+
VERIFY_IDENTITY_TYPEHASH(overrides?: CallOverrides): Promise<string>;
|
|
201
|
+
getConfigId(arg0: PromiseOrValue<BytesLike>, arg1: PromiseOrValue<BytesLike>, userDefinedData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<string>;
|
|
202
|
+
getUserForNullifier(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
203
|
+
isVerified(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
204
|
+
nullifierToUser(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<string>;
|
|
205
|
+
onVerificationSuccess(output: PromiseOrValue<BytesLike>, userData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
|
|
206
|
+
owner(overrides?: CallOverrides): Promise<string>;
|
|
207
|
+
renounceOwnership(overrides?: CallOverrides): Promise<void>;
|
|
208
|
+
revokeVerification(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
209
|
+
scope(overrides?: CallOverrides): Promise<BigNumber>;
|
|
210
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: CallOverrides): Promise<void>;
|
|
211
|
+
verificationConfig(overrides?: CallOverrides): Promise<[
|
|
212
|
+
boolean,
|
|
213
|
+
BigNumber,
|
|
214
|
+
boolean
|
|
215
|
+
] & {
|
|
216
|
+
olderThanEnabled: boolean;
|
|
217
|
+
olderThan: BigNumber;
|
|
218
|
+
forbiddenCountriesEnabled: boolean;
|
|
219
|
+
}>;
|
|
220
|
+
verifications(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<boolean>;
|
|
221
|
+
verifySelfProof(proofPayload: PromiseOrValue<BytesLike>, userContextData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<void>;
|
|
222
|
+
};
|
|
223
|
+
filters: {
|
|
224
|
+
"OwnershipTransferred(address,address)"(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
|
|
225
|
+
OwnershipTransferred(previousOwner?: PromiseOrValue<string> | null, newOwner?: PromiseOrValue<string> | null): OwnershipTransferredEventFilter;
|
|
226
|
+
"VerificationRevoked(bytes32,address)"(verificationId?: PromiseOrValue<BytesLike> | null, user?: PromiseOrValue<string> | null): VerificationRevokedEventFilter;
|
|
227
|
+
VerificationRevoked(verificationId?: PromiseOrValue<BytesLike> | null, user?: PromiseOrValue<string> | null): VerificationRevokedEventFilter;
|
|
228
|
+
"Verified(bytes32,address,uint256)"(verificationId?: PromiseOrValue<BytesLike> | null, user?: PromiseOrValue<string> | null, nullifier?: PromiseOrValue<BigNumberish> | null): VerifiedEventFilter;
|
|
229
|
+
Verified(verificationId?: PromiseOrValue<BytesLike> | null, user?: PromiseOrValue<string> | null, nullifier?: PromiseOrValue<BigNumberish> | null): VerifiedEventFilter;
|
|
230
|
+
};
|
|
231
|
+
estimateGas: {
|
|
232
|
+
DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<BigNumber>;
|
|
233
|
+
VERIFY_IDENTITY_TYPEHASH(overrides?: CallOverrides): Promise<BigNumber>;
|
|
234
|
+
getConfigId(arg0: PromiseOrValue<BytesLike>, arg1: PromiseOrValue<BytesLike>, userDefinedData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
235
|
+
getUserForNullifier(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
236
|
+
isVerified(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
237
|
+
nullifierToUser(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
238
|
+
onVerificationSuccess(output: PromiseOrValue<BytesLike>, userData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
239
|
+
from?: PromiseOrValue<string>;
|
|
240
|
+
}): Promise<BigNumber>;
|
|
241
|
+
owner(overrides?: CallOverrides): Promise<BigNumber>;
|
|
242
|
+
renounceOwnership(overrides?: Overrides & {
|
|
243
|
+
from?: PromiseOrValue<string>;
|
|
244
|
+
}): Promise<BigNumber>;
|
|
245
|
+
revokeVerification(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: Overrides & {
|
|
246
|
+
from?: PromiseOrValue<string>;
|
|
247
|
+
}): Promise<BigNumber>;
|
|
248
|
+
scope(overrides?: CallOverrides): Promise<BigNumber>;
|
|
249
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
250
|
+
from?: PromiseOrValue<string>;
|
|
251
|
+
}): Promise<BigNumber>;
|
|
252
|
+
verificationConfig(overrides?: CallOverrides): Promise<BigNumber>;
|
|
253
|
+
verifications(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<BigNumber>;
|
|
254
|
+
verifySelfProof(proofPayload: PromiseOrValue<BytesLike>, userContextData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
255
|
+
from?: PromiseOrValue<string>;
|
|
256
|
+
}): Promise<BigNumber>;
|
|
257
|
+
};
|
|
258
|
+
populateTransaction: {
|
|
259
|
+
DOMAIN_SEPARATOR(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
260
|
+
VERIFY_IDENTITY_TYPEHASH(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
261
|
+
getConfigId(arg0: PromiseOrValue<BytesLike>, arg1: PromiseOrValue<BytesLike>, userDefinedData: PromiseOrValue<BytesLike>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
262
|
+
getUserForNullifier(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
263
|
+
isVerified(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
264
|
+
nullifierToUser(nullifier: PromiseOrValue<BigNumberish>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
265
|
+
onVerificationSuccess(output: PromiseOrValue<BytesLike>, userData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
266
|
+
from?: PromiseOrValue<string>;
|
|
267
|
+
}): Promise<PopulatedTransaction>;
|
|
268
|
+
owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
269
|
+
renounceOwnership(overrides?: Overrides & {
|
|
270
|
+
from?: PromiseOrValue<string>;
|
|
271
|
+
}): Promise<PopulatedTransaction>;
|
|
272
|
+
revokeVerification(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: Overrides & {
|
|
273
|
+
from?: PromiseOrValue<string>;
|
|
274
|
+
}): Promise<PopulatedTransaction>;
|
|
275
|
+
scope(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
276
|
+
transferOwnership(newOwner: PromiseOrValue<string>, overrides?: Overrides & {
|
|
277
|
+
from?: PromiseOrValue<string>;
|
|
278
|
+
}): Promise<PopulatedTransaction>;
|
|
279
|
+
verificationConfig(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
280
|
+
verifications(verificationId: PromiseOrValue<BytesLike>, user: PromiseOrValue<string>, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
281
|
+
verifySelfProof(proofPayload: PromiseOrValue<BytesLike>, userContextData: PromiseOrValue<BytesLike>, overrides?: Overrides & {
|
|
282
|
+
from?: PromiseOrValue<string>;
|
|
283
|
+
}): Promise<PopulatedTransaction>;
|
|
284
|
+
};
|
|
285
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MerklVerifier.js","sourceRoot":"","sources":["../../src/MerklVerifier.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { MerklVerifier, MerklVerifierInterface } from "../MerklVerifier";
|
|
4
|
+
export declare class MerklVerifier__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [{
|
|
7
|
+
readonly internalType: "address";
|
|
8
|
+
readonly name: "_identityVerificationHubAddress";
|
|
9
|
+
readonly type: "address";
|
|
10
|
+
}, {
|
|
11
|
+
readonly internalType: "string";
|
|
12
|
+
readonly name: "scope";
|
|
13
|
+
readonly type: "string";
|
|
14
|
+
}, {
|
|
15
|
+
readonly internalType: "address";
|
|
16
|
+
readonly name: "_owner";
|
|
17
|
+
readonly type: "address";
|
|
18
|
+
}, {
|
|
19
|
+
readonly components: readonly [{
|
|
20
|
+
readonly internalType: "uint256";
|
|
21
|
+
readonly name: "olderThan";
|
|
22
|
+
readonly type: "uint256";
|
|
23
|
+
}, {
|
|
24
|
+
readonly internalType: "string[]";
|
|
25
|
+
readonly name: "forbiddenCountries";
|
|
26
|
+
readonly type: "string[]";
|
|
27
|
+
}, {
|
|
28
|
+
readonly internalType: "bool";
|
|
29
|
+
readonly name: "ofacEnabled";
|
|
30
|
+
readonly type: "bool";
|
|
31
|
+
}];
|
|
32
|
+
readonly internalType: "struct SelfUtils.UnformattedVerificationConfigV2";
|
|
33
|
+
readonly name: "_verificationConfig";
|
|
34
|
+
readonly type: "tuple";
|
|
35
|
+
}];
|
|
36
|
+
readonly stateMutability: "nonpayable";
|
|
37
|
+
readonly type: "constructor";
|
|
38
|
+
}, {
|
|
39
|
+
readonly inputs: readonly [];
|
|
40
|
+
readonly name: "ECDSAInvalidSignature";
|
|
41
|
+
readonly type: "error";
|
|
42
|
+
}, {
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly internalType: "uint256";
|
|
45
|
+
readonly name: "length";
|
|
46
|
+
readonly type: "uint256";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "ECDSAInvalidSignatureLength";
|
|
49
|
+
readonly type: "error";
|
|
50
|
+
}, {
|
|
51
|
+
readonly inputs: readonly [{
|
|
52
|
+
readonly internalType: "bytes32";
|
|
53
|
+
readonly name: "s";
|
|
54
|
+
readonly type: "bytes32";
|
|
55
|
+
}];
|
|
56
|
+
readonly name: "ECDSAInvalidSignatureS";
|
|
57
|
+
readonly type: "error";
|
|
58
|
+
}, {
|
|
59
|
+
readonly inputs: readonly [];
|
|
60
|
+
readonly name: "InvalidDataFormat";
|
|
61
|
+
readonly type: "error";
|
|
62
|
+
}, {
|
|
63
|
+
readonly inputs: readonly [];
|
|
64
|
+
readonly name: "InvalidReceiver";
|
|
65
|
+
readonly type: "error";
|
|
66
|
+
}, {
|
|
67
|
+
readonly inputs: readonly [];
|
|
68
|
+
readonly name: "InvalidSignature";
|
|
69
|
+
readonly type: "error";
|
|
70
|
+
}, {
|
|
71
|
+
readonly inputs: readonly [];
|
|
72
|
+
readonly name: "InvalidUserData";
|
|
73
|
+
readonly type: "error";
|
|
74
|
+
}, {
|
|
75
|
+
readonly inputs: readonly [];
|
|
76
|
+
readonly name: "NullifierAlreadyUsedByDifferentUser";
|
|
77
|
+
readonly type: "error";
|
|
78
|
+
}, {
|
|
79
|
+
readonly inputs: readonly [{
|
|
80
|
+
readonly internalType: "address";
|
|
81
|
+
readonly name: "owner";
|
|
82
|
+
readonly type: "address";
|
|
83
|
+
}];
|
|
84
|
+
readonly name: "OwnableInvalidOwner";
|
|
85
|
+
readonly type: "error";
|
|
86
|
+
}, {
|
|
87
|
+
readonly inputs: readonly [{
|
|
88
|
+
readonly internalType: "address";
|
|
89
|
+
readonly name: "account";
|
|
90
|
+
readonly type: "address";
|
|
91
|
+
}];
|
|
92
|
+
readonly name: "OwnableUnauthorizedAccount";
|
|
93
|
+
readonly type: "error";
|
|
94
|
+
}, {
|
|
95
|
+
readonly inputs: readonly [];
|
|
96
|
+
readonly name: "UnauthorizedCaller";
|
|
97
|
+
readonly type: "error";
|
|
98
|
+
}, {
|
|
99
|
+
readonly anonymous: false;
|
|
100
|
+
readonly inputs: readonly [{
|
|
101
|
+
readonly indexed: true;
|
|
102
|
+
readonly internalType: "address";
|
|
103
|
+
readonly name: "previousOwner";
|
|
104
|
+
readonly type: "address";
|
|
105
|
+
}, {
|
|
106
|
+
readonly indexed: true;
|
|
107
|
+
readonly internalType: "address";
|
|
108
|
+
readonly name: "newOwner";
|
|
109
|
+
readonly type: "address";
|
|
110
|
+
}];
|
|
111
|
+
readonly name: "OwnershipTransferred";
|
|
112
|
+
readonly type: "event";
|
|
113
|
+
}, {
|
|
114
|
+
readonly anonymous: false;
|
|
115
|
+
readonly inputs: readonly [{
|
|
116
|
+
readonly indexed: true;
|
|
117
|
+
readonly internalType: "bytes32";
|
|
118
|
+
readonly name: "verificationId";
|
|
119
|
+
readonly type: "bytes32";
|
|
120
|
+
}, {
|
|
121
|
+
readonly indexed: true;
|
|
122
|
+
readonly internalType: "address";
|
|
123
|
+
readonly name: "user";
|
|
124
|
+
readonly type: "address";
|
|
125
|
+
}];
|
|
126
|
+
readonly name: "VerificationRevoked";
|
|
127
|
+
readonly type: "event";
|
|
128
|
+
}, {
|
|
129
|
+
readonly anonymous: false;
|
|
130
|
+
readonly inputs: readonly [{
|
|
131
|
+
readonly indexed: true;
|
|
132
|
+
readonly internalType: "bytes32";
|
|
133
|
+
readonly name: "verificationId";
|
|
134
|
+
readonly type: "bytes32";
|
|
135
|
+
}, {
|
|
136
|
+
readonly indexed: true;
|
|
137
|
+
readonly internalType: "address";
|
|
138
|
+
readonly name: "user";
|
|
139
|
+
readonly type: "address";
|
|
140
|
+
}, {
|
|
141
|
+
readonly indexed: true;
|
|
142
|
+
readonly internalType: "uint256";
|
|
143
|
+
readonly name: "nullifier";
|
|
144
|
+
readonly type: "uint256";
|
|
145
|
+
}];
|
|
146
|
+
readonly name: "Verified";
|
|
147
|
+
readonly type: "event";
|
|
148
|
+
}, {
|
|
149
|
+
readonly inputs: readonly [];
|
|
150
|
+
readonly name: "DOMAIN_SEPARATOR";
|
|
151
|
+
readonly outputs: readonly [{
|
|
152
|
+
readonly internalType: "bytes32";
|
|
153
|
+
readonly name: "";
|
|
154
|
+
readonly type: "bytes32";
|
|
155
|
+
}];
|
|
156
|
+
readonly stateMutability: "view";
|
|
157
|
+
readonly type: "function";
|
|
158
|
+
}, {
|
|
159
|
+
readonly inputs: readonly [];
|
|
160
|
+
readonly name: "VERIFY_IDENTITY_TYPEHASH";
|
|
161
|
+
readonly outputs: readonly [{
|
|
162
|
+
readonly internalType: "bytes32";
|
|
163
|
+
readonly name: "";
|
|
164
|
+
readonly type: "bytes32";
|
|
165
|
+
}];
|
|
166
|
+
readonly stateMutability: "view";
|
|
167
|
+
readonly type: "function";
|
|
168
|
+
}, {
|
|
169
|
+
readonly inputs: readonly [{
|
|
170
|
+
readonly internalType: "bytes32";
|
|
171
|
+
readonly name: "";
|
|
172
|
+
readonly type: "bytes32";
|
|
173
|
+
}, {
|
|
174
|
+
readonly internalType: "bytes32";
|
|
175
|
+
readonly name: "";
|
|
176
|
+
readonly type: "bytes32";
|
|
177
|
+
}, {
|
|
178
|
+
readonly internalType: "bytes";
|
|
179
|
+
readonly name: "userDefinedData";
|
|
180
|
+
readonly type: "bytes";
|
|
181
|
+
}];
|
|
182
|
+
readonly name: "getConfigId";
|
|
183
|
+
readonly outputs: readonly [{
|
|
184
|
+
readonly internalType: "bytes32";
|
|
185
|
+
readonly name: "";
|
|
186
|
+
readonly type: "bytes32";
|
|
187
|
+
}];
|
|
188
|
+
readonly stateMutability: "pure";
|
|
189
|
+
readonly type: "function";
|
|
190
|
+
}, {
|
|
191
|
+
readonly inputs: readonly [{
|
|
192
|
+
readonly internalType: "uint256";
|
|
193
|
+
readonly name: "nullifier";
|
|
194
|
+
readonly type: "uint256";
|
|
195
|
+
}];
|
|
196
|
+
readonly name: "getUserForNullifier";
|
|
197
|
+
readonly outputs: readonly [{
|
|
198
|
+
readonly internalType: "address";
|
|
199
|
+
readonly name: "";
|
|
200
|
+
readonly type: "address";
|
|
201
|
+
}];
|
|
202
|
+
readonly stateMutability: "view";
|
|
203
|
+
readonly type: "function";
|
|
204
|
+
}, {
|
|
205
|
+
readonly inputs: readonly [{
|
|
206
|
+
readonly internalType: "bytes32";
|
|
207
|
+
readonly name: "verificationId";
|
|
208
|
+
readonly type: "bytes32";
|
|
209
|
+
}, {
|
|
210
|
+
readonly internalType: "address";
|
|
211
|
+
readonly name: "user";
|
|
212
|
+
readonly type: "address";
|
|
213
|
+
}];
|
|
214
|
+
readonly name: "isVerified";
|
|
215
|
+
readonly outputs: readonly [{
|
|
216
|
+
readonly internalType: "bool";
|
|
217
|
+
readonly name: "";
|
|
218
|
+
readonly type: "bool";
|
|
219
|
+
}];
|
|
220
|
+
readonly stateMutability: "view";
|
|
221
|
+
readonly type: "function";
|
|
222
|
+
}, {
|
|
223
|
+
readonly inputs: readonly [{
|
|
224
|
+
readonly internalType: "uint256";
|
|
225
|
+
readonly name: "nullifier";
|
|
226
|
+
readonly type: "uint256";
|
|
227
|
+
}];
|
|
228
|
+
readonly name: "nullifierToUser";
|
|
229
|
+
readonly outputs: readonly [{
|
|
230
|
+
readonly internalType: "address";
|
|
231
|
+
readonly name: "user";
|
|
232
|
+
readonly type: "address";
|
|
233
|
+
}];
|
|
234
|
+
readonly stateMutability: "view";
|
|
235
|
+
readonly type: "function";
|
|
236
|
+
}, {
|
|
237
|
+
readonly inputs: readonly [{
|
|
238
|
+
readonly internalType: "bytes";
|
|
239
|
+
readonly name: "output";
|
|
240
|
+
readonly type: "bytes";
|
|
241
|
+
}, {
|
|
242
|
+
readonly internalType: "bytes";
|
|
243
|
+
readonly name: "userData";
|
|
244
|
+
readonly type: "bytes";
|
|
245
|
+
}];
|
|
246
|
+
readonly name: "onVerificationSuccess";
|
|
247
|
+
readonly outputs: readonly [];
|
|
248
|
+
readonly stateMutability: "nonpayable";
|
|
249
|
+
readonly type: "function";
|
|
250
|
+
}, {
|
|
251
|
+
readonly inputs: readonly [];
|
|
252
|
+
readonly name: "owner";
|
|
253
|
+
readonly outputs: readonly [{
|
|
254
|
+
readonly internalType: "address";
|
|
255
|
+
readonly name: "";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
}];
|
|
258
|
+
readonly stateMutability: "view";
|
|
259
|
+
readonly type: "function";
|
|
260
|
+
}, {
|
|
261
|
+
readonly inputs: readonly [];
|
|
262
|
+
readonly name: "renounceOwnership";
|
|
263
|
+
readonly outputs: readonly [];
|
|
264
|
+
readonly stateMutability: "nonpayable";
|
|
265
|
+
readonly type: "function";
|
|
266
|
+
}, {
|
|
267
|
+
readonly inputs: readonly [{
|
|
268
|
+
readonly internalType: "bytes32";
|
|
269
|
+
readonly name: "verificationId";
|
|
270
|
+
readonly type: "bytes32";
|
|
271
|
+
}, {
|
|
272
|
+
readonly internalType: "address";
|
|
273
|
+
readonly name: "user";
|
|
274
|
+
readonly type: "address";
|
|
275
|
+
}];
|
|
276
|
+
readonly name: "revokeVerification";
|
|
277
|
+
readonly outputs: readonly [];
|
|
278
|
+
readonly stateMutability: "nonpayable";
|
|
279
|
+
readonly type: "function";
|
|
280
|
+
}, {
|
|
281
|
+
readonly inputs: readonly [];
|
|
282
|
+
readonly name: "scope";
|
|
283
|
+
readonly outputs: readonly [{
|
|
284
|
+
readonly internalType: "uint256";
|
|
285
|
+
readonly name: "";
|
|
286
|
+
readonly type: "uint256";
|
|
287
|
+
}];
|
|
288
|
+
readonly stateMutability: "view";
|
|
289
|
+
readonly type: "function";
|
|
290
|
+
}, {
|
|
291
|
+
readonly inputs: readonly [{
|
|
292
|
+
readonly internalType: "address";
|
|
293
|
+
readonly name: "newOwner";
|
|
294
|
+
readonly type: "address";
|
|
295
|
+
}];
|
|
296
|
+
readonly name: "transferOwnership";
|
|
297
|
+
readonly outputs: readonly [];
|
|
298
|
+
readonly stateMutability: "nonpayable";
|
|
299
|
+
readonly type: "function";
|
|
300
|
+
}, {
|
|
301
|
+
readonly inputs: readonly [];
|
|
302
|
+
readonly name: "verificationConfig";
|
|
303
|
+
readonly outputs: readonly [{
|
|
304
|
+
readonly internalType: "bool";
|
|
305
|
+
readonly name: "olderThanEnabled";
|
|
306
|
+
readonly type: "bool";
|
|
307
|
+
}, {
|
|
308
|
+
readonly internalType: "uint256";
|
|
309
|
+
readonly name: "olderThan";
|
|
310
|
+
readonly type: "uint256";
|
|
311
|
+
}, {
|
|
312
|
+
readonly internalType: "bool";
|
|
313
|
+
readonly name: "forbiddenCountriesEnabled";
|
|
314
|
+
readonly type: "bool";
|
|
315
|
+
}];
|
|
316
|
+
readonly stateMutability: "view";
|
|
317
|
+
readonly type: "function";
|
|
318
|
+
}, {
|
|
319
|
+
readonly inputs: readonly [{
|
|
320
|
+
readonly internalType: "bytes32";
|
|
321
|
+
readonly name: "verificationId";
|
|
322
|
+
readonly type: "bytes32";
|
|
323
|
+
}, {
|
|
324
|
+
readonly internalType: "address";
|
|
325
|
+
readonly name: "user";
|
|
326
|
+
readonly type: "address";
|
|
327
|
+
}];
|
|
328
|
+
readonly name: "verifications";
|
|
329
|
+
readonly outputs: readonly [{
|
|
330
|
+
readonly internalType: "bool";
|
|
331
|
+
readonly name: "isVerified";
|
|
332
|
+
readonly type: "bool";
|
|
333
|
+
}];
|
|
334
|
+
readonly stateMutability: "view";
|
|
335
|
+
readonly type: "function";
|
|
336
|
+
}, {
|
|
337
|
+
readonly inputs: readonly [{
|
|
338
|
+
readonly internalType: "bytes";
|
|
339
|
+
readonly name: "proofPayload";
|
|
340
|
+
readonly type: "bytes";
|
|
341
|
+
}, {
|
|
342
|
+
readonly internalType: "bytes";
|
|
343
|
+
readonly name: "userContextData";
|
|
344
|
+
readonly type: "bytes";
|
|
345
|
+
}];
|
|
346
|
+
readonly name: "verifySelfProof";
|
|
347
|
+
readonly outputs: readonly [];
|
|
348
|
+
readonly stateMutability: "nonpayable";
|
|
349
|
+
readonly type: "function";
|
|
350
|
+
}];
|
|
351
|
+
static createInterface(): MerklVerifierInterface;
|
|
352
|
+
static connect(address: string, signerOrProvider: Signer | Provider): MerklVerifier;
|
|
353
|
+
}
|