@cofhe/mock-contracts 0.3.1 → 0.3.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/CHANGELOG.md +11 -0
- package/contracts/MockTaskManager.sol +31 -33
- package/dist/index.d.mts +988 -1
- package/dist/index.d.ts +988 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -4
- package/src/MockTaskManager.ts +1 -1
- package/src/MockThresholdNetwork.ts +1 -1
- package/src/MockZkVerifier.ts +1 -1
- package/src/index.ts +1 -0
- package/src/typechain-types/MockACL.ts +382 -0
- package/src/typechain-types/MockTaskManager.ts +565 -0
- package/src/typechain-types/MockThresholdNetwork.ts +247 -0
- package/src/typechain-types/MockZkVerifier.ts +205 -0
- package/src/typechain-types/TestBed.ts +172 -0
- package/src/typechain-types/common.ts +92 -0
- package/src/typechain-types/index.ts +8 -0
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import type {
|
|
5
|
+
BaseContract,
|
|
6
|
+
BigNumberish,
|
|
7
|
+
BytesLike,
|
|
8
|
+
FunctionFragment,
|
|
9
|
+
Result,
|
|
10
|
+
Interface,
|
|
11
|
+
EventFragment,
|
|
12
|
+
AddressLike,
|
|
13
|
+
ContractRunner,
|
|
14
|
+
ContractMethod,
|
|
15
|
+
Listener,
|
|
16
|
+
} from 'ethers';
|
|
17
|
+
import type {
|
|
18
|
+
TypedContractEvent,
|
|
19
|
+
TypedDeferredTopicFilter,
|
|
20
|
+
TypedEventLog,
|
|
21
|
+
TypedLogDescription,
|
|
22
|
+
TypedListener,
|
|
23
|
+
TypedContractMethod,
|
|
24
|
+
} from './common';
|
|
25
|
+
|
|
26
|
+
export type PermissionStruct = {
|
|
27
|
+
issuer: AddressLike;
|
|
28
|
+
expiration: BigNumberish;
|
|
29
|
+
recipient: AddressLike;
|
|
30
|
+
validatorId: BigNumberish;
|
|
31
|
+
validatorContract: AddressLike;
|
|
32
|
+
sealingKey: BytesLike;
|
|
33
|
+
issuerSignature: BytesLike;
|
|
34
|
+
recipientSignature: BytesLike;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type PermissionStructOutput = [
|
|
38
|
+
issuer: string,
|
|
39
|
+
expiration: bigint,
|
|
40
|
+
recipient: string,
|
|
41
|
+
validatorId: bigint,
|
|
42
|
+
validatorContract: string,
|
|
43
|
+
sealingKey: string,
|
|
44
|
+
issuerSignature: string,
|
|
45
|
+
recipientSignature: string,
|
|
46
|
+
] & {
|
|
47
|
+
issuer: string;
|
|
48
|
+
expiration: bigint;
|
|
49
|
+
recipient: string;
|
|
50
|
+
validatorId: bigint;
|
|
51
|
+
validatorContract: string;
|
|
52
|
+
sealingKey: string;
|
|
53
|
+
issuerSignature: string;
|
|
54
|
+
recipientSignature: string;
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type EncryptedInputStruct = {
|
|
58
|
+
ctHash: BigNumberish;
|
|
59
|
+
securityZone: BigNumberish;
|
|
60
|
+
utype: BigNumberish;
|
|
61
|
+
signature: BytesLike;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type EncryptedInputStructOutput = [ctHash: bigint, securityZone: bigint, utype: bigint, signature: string] & {
|
|
65
|
+
ctHash: bigint;
|
|
66
|
+
securityZone: bigint;
|
|
67
|
+
utype: bigint;
|
|
68
|
+
signature: string;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export interface MockTaskManagerInterface extends Interface {
|
|
72
|
+
getFunction(
|
|
73
|
+
nameOrSignature:
|
|
74
|
+
| 'MOCK_logAllow'
|
|
75
|
+
| 'MOCK_setInEuintKey'
|
|
76
|
+
| 'acl'
|
|
77
|
+
| 'aggregator'
|
|
78
|
+
| 'allow'
|
|
79
|
+
| 'allowForDecryption'
|
|
80
|
+
| 'allowGlobal'
|
|
81
|
+
| 'allowTransient'
|
|
82
|
+
| 'createDecryptTask'
|
|
83
|
+
| 'createRandomTask'
|
|
84
|
+
| 'createTask'
|
|
85
|
+
| 'decryptResultSigner'
|
|
86
|
+
| 'exists'
|
|
87
|
+
| 'getDecryptResult'
|
|
88
|
+
| 'getDecryptResultSafe'
|
|
89
|
+
| 'handleDecryptResult'
|
|
90
|
+
| 'handleError'
|
|
91
|
+
| 'inMockStorage'
|
|
92
|
+
| 'initialize'
|
|
93
|
+
| 'isAllowed'
|
|
94
|
+
| 'isAllowedWithPermission'
|
|
95
|
+
| 'isInitialized'
|
|
96
|
+
| 'isPubliclyAllowed'
|
|
97
|
+
| 'logOps'
|
|
98
|
+
| 'mockStorage'
|
|
99
|
+
| 'publishDecryptResult'
|
|
100
|
+
| 'publishDecryptResultBatch'
|
|
101
|
+
| 'removeFirstLetter'
|
|
102
|
+
| 'setACLContract'
|
|
103
|
+
| 'setAggregator'
|
|
104
|
+
| 'setDecryptResultSigner'
|
|
105
|
+
| 'setLogOps'
|
|
106
|
+
| 'setSecurityZoneMax'
|
|
107
|
+
| 'setSecurityZoneMin'
|
|
108
|
+
| 'setSecurityZones'
|
|
109
|
+
| 'setVerifierSigner'
|
|
110
|
+
| 'sliceString'
|
|
111
|
+
| 'verifyDecryptResult'
|
|
112
|
+
| 'verifyDecryptResultSafe'
|
|
113
|
+
| 'verifyInput'
|
|
114
|
+
): FunctionFragment;
|
|
115
|
+
|
|
116
|
+
getEvent(nameOrSignatureOrTopic: 'DecryptionResult' | 'ProtocolNotification' | 'TaskCreated'): EventFragment;
|
|
117
|
+
|
|
118
|
+
encodeFunctionData(functionFragment: 'MOCK_logAllow', values: [string, BigNumberish, AddressLike]): string;
|
|
119
|
+
encodeFunctionData(functionFragment: 'MOCK_setInEuintKey', values: [BigNumberish, BigNumberish]): string;
|
|
120
|
+
encodeFunctionData(functionFragment: 'acl', values?: undefined): string;
|
|
121
|
+
encodeFunctionData(functionFragment: 'aggregator', values?: undefined): string;
|
|
122
|
+
encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike]): string;
|
|
123
|
+
encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish]): string;
|
|
124
|
+
encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish]): string;
|
|
125
|
+
encodeFunctionData(functionFragment: 'allowTransient', values: [BigNumberish, AddressLike]): string;
|
|
126
|
+
encodeFunctionData(functionFragment: 'createDecryptTask', values: [BigNumberish, AddressLike]): string;
|
|
127
|
+
encodeFunctionData(functionFragment: 'createRandomTask', values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
128
|
+
encodeFunctionData(
|
|
129
|
+
functionFragment: 'createTask',
|
|
130
|
+
values: [BigNumberish, BigNumberish, BigNumberish[], BigNumberish[]]
|
|
131
|
+
): string;
|
|
132
|
+
encodeFunctionData(functionFragment: 'decryptResultSigner', values?: undefined): string;
|
|
133
|
+
encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
|
|
134
|
+
encodeFunctionData(functionFragment: 'getDecryptResult', values: [BigNumberish]): string;
|
|
135
|
+
encodeFunctionData(functionFragment: 'getDecryptResultSafe', values: [BigNumberish]): string;
|
|
136
|
+
encodeFunctionData(
|
|
137
|
+
functionFragment: 'handleDecryptResult',
|
|
138
|
+
values: [BigNumberish, BigNumberish, AddressLike[]]
|
|
139
|
+
): string;
|
|
140
|
+
encodeFunctionData(functionFragment: 'handleError', values: [BigNumberish, string, string]): string;
|
|
141
|
+
encodeFunctionData(functionFragment: 'inMockStorage', values: [BigNumberish]): string;
|
|
142
|
+
encodeFunctionData(functionFragment: 'initialize', values: [AddressLike]): string;
|
|
143
|
+
encodeFunctionData(functionFragment: 'isAllowed', values: [BigNumberish, AddressLike]): string;
|
|
144
|
+
encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [PermissionStruct, BigNumberish]): string;
|
|
145
|
+
encodeFunctionData(functionFragment: 'isInitialized', values?: undefined): string;
|
|
146
|
+
encodeFunctionData(functionFragment: 'isPubliclyAllowed', values: [BigNumberish]): string;
|
|
147
|
+
encodeFunctionData(functionFragment: 'logOps', values?: undefined): string;
|
|
148
|
+
encodeFunctionData(functionFragment: 'mockStorage', values: [BigNumberish]): string;
|
|
149
|
+
encodeFunctionData(functionFragment: 'publishDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
150
|
+
encodeFunctionData(
|
|
151
|
+
functionFragment: 'publishDecryptResultBatch',
|
|
152
|
+
values: [BigNumberish[], BigNumberish[], BytesLike[]]
|
|
153
|
+
): string;
|
|
154
|
+
encodeFunctionData(functionFragment: 'removeFirstLetter', values: [string]): string;
|
|
155
|
+
encodeFunctionData(functionFragment: 'setACLContract', values: [AddressLike]): string;
|
|
156
|
+
encodeFunctionData(functionFragment: 'setAggregator', values: [AddressLike]): string;
|
|
157
|
+
encodeFunctionData(functionFragment: 'setDecryptResultSigner', values: [AddressLike]): string;
|
|
158
|
+
encodeFunctionData(functionFragment: 'setLogOps', values: [boolean]): string;
|
|
159
|
+
encodeFunctionData(functionFragment: 'setSecurityZoneMax', values: [BigNumberish]): string;
|
|
160
|
+
encodeFunctionData(functionFragment: 'setSecurityZoneMin', values: [BigNumberish]): string;
|
|
161
|
+
encodeFunctionData(functionFragment: 'setSecurityZones', values: [BigNumberish, BigNumberish]): string;
|
|
162
|
+
encodeFunctionData(functionFragment: 'setVerifierSigner', values: [AddressLike]): string;
|
|
163
|
+
encodeFunctionData(functionFragment: 'sliceString', values: [string, BigNumberish, BigNumberish]): string;
|
|
164
|
+
encodeFunctionData(functionFragment: 'verifyDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
165
|
+
encodeFunctionData(
|
|
166
|
+
functionFragment: 'verifyDecryptResultSafe',
|
|
167
|
+
values: [BigNumberish, BigNumberish, BytesLike]
|
|
168
|
+
): string;
|
|
169
|
+
encodeFunctionData(functionFragment: 'verifyInput', values: [EncryptedInputStruct, AddressLike]): string;
|
|
170
|
+
|
|
171
|
+
decodeFunctionResult(functionFragment: 'MOCK_logAllow', data: BytesLike): Result;
|
|
172
|
+
decodeFunctionResult(functionFragment: 'MOCK_setInEuintKey', data: BytesLike): Result;
|
|
173
|
+
decodeFunctionResult(functionFragment: 'acl', data: BytesLike): Result;
|
|
174
|
+
decodeFunctionResult(functionFragment: 'aggregator', data: BytesLike): Result;
|
|
175
|
+
decodeFunctionResult(functionFragment: 'allow', data: BytesLike): Result;
|
|
176
|
+
decodeFunctionResult(functionFragment: 'allowForDecryption', data: BytesLike): Result;
|
|
177
|
+
decodeFunctionResult(functionFragment: 'allowGlobal', data: BytesLike): Result;
|
|
178
|
+
decodeFunctionResult(functionFragment: 'allowTransient', data: BytesLike): Result;
|
|
179
|
+
decodeFunctionResult(functionFragment: 'createDecryptTask', data: BytesLike): Result;
|
|
180
|
+
decodeFunctionResult(functionFragment: 'createRandomTask', data: BytesLike): Result;
|
|
181
|
+
decodeFunctionResult(functionFragment: 'createTask', data: BytesLike): Result;
|
|
182
|
+
decodeFunctionResult(functionFragment: 'decryptResultSigner', data: BytesLike): Result;
|
|
183
|
+
decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
|
|
184
|
+
decodeFunctionResult(functionFragment: 'getDecryptResult', data: BytesLike): Result;
|
|
185
|
+
decodeFunctionResult(functionFragment: 'getDecryptResultSafe', data: BytesLike): Result;
|
|
186
|
+
decodeFunctionResult(functionFragment: 'handleDecryptResult', data: BytesLike): Result;
|
|
187
|
+
decodeFunctionResult(functionFragment: 'handleError', data: BytesLike): Result;
|
|
188
|
+
decodeFunctionResult(functionFragment: 'inMockStorage', data: BytesLike): Result;
|
|
189
|
+
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
|
190
|
+
decodeFunctionResult(functionFragment: 'isAllowed', data: BytesLike): Result;
|
|
191
|
+
decodeFunctionResult(functionFragment: 'isAllowedWithPermission', data: BytesLike): Result;
|
|
192
|
+
decodeFunctionResult(functionFragment: 'isInitialized', data: BytesLike): Result;
|
|
193
|
+
decodeFunctionResult(functionFragment: 'isPubliclyAllowed', data: BytesLike): Result;
|
|
194
|
+
decodeFunctionResult(functionFragment: 'logOps', data: BytesLike): Result;
|
|
195
|
+
decodeFunctionResult(functionFragment: 'mockStorage', data: BytesLike): Result;
|
|
196
|
+
decodeFunctionResult(functionFragment: 'publishDecryptResult', data: BytesLike): Result;
|
|
197
|
+
decodeFunctionResult(functionFragment: 'publishDecryptResultBatch', data: BytesLike): Result;
|
|
198
|
+
decodeFunctionResult(functionFragment: 'removeFirstLetter', data: BytesLike): Result;
|
|
199
|
+
decodeFunctionResult(functionFragment: 'setACLContract', data: BytesLike): Result;
|
|
200
|
+
decodeFunctionResult(functionFragment: 'setAggregator', data: BytesLike): Result;
|
|
201
|
+
decodeFunctionResult(functionFragment: 'setDecryptResultSigner', data: BytesLike): Result;
|
|
202
|
+
decodeFunctionResult(functionFragment: 'setLogOps', data: BytesLike): Result;
|
|
203
|
+
decodeFunctionResult(functionFragment: 'setSecurityZoneMax', data: BytesLike): Result;
|
|
204
|
+
decodeFunctionResult(functionFragment: 'setSecurityZoneMin', data: BytesLike): Result;
|
|
205
|
+
decodeFunctionResult(functionFragment: 'setSecurityZones', data: BytesLike): Result;
|
|
206
|
+
decodeFunctionResult(functionFragment: 'setVerifierSigner', data: BytesLike): Result;
|
|
207
|
+
decodeFunctionResult(functionFragment: 'sliceString', data: BytesLike): Result;
|
|
208
|
+
decodeFunctionResult(functionFragment: 'verifyDecryptResult', data: BytesLike): Result;
|
|
209
|
+
decodeFunctionResult(functionFragment: 'verifyDecryptResultSafe', data: BytesLike): Result;
|
|
210
|
+
decodeFunctionResult(functionFragment: 'verifyInput', data: BytesLike): Result;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export namespace DecryptionResultEvent {
|
|
214
|
+
export type InputTuple = [ctHash: BigNumberish, result: BigNumberish, requestor: AddressLike];
|
|
215
|
+
export type OutputTuple = [ctHash: bigint, result: bigint, requestor: string];
|
|
216
|
+
export interface OutputObject {
|
|
217
|
+
ctHash: bigint;
|
|
218
|
+
result: bigint;
|
|
219
|
+
requestor: string;
|
|
220
|
+
}
|
|
221
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
222
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
223
|
+
export type Log = TypedEventLog<Event>;
|
|
224
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
export namespace ProtocolNotificationEvent {
|
|
228
|
+
export type InputTuple = [ctHash: BigNumberish, operation: string, errorMessage: string];
|
|
229
|
+
export type OutputTuple = [ctHash: bigint, operation: string, errorMessage: string];
|
|
230
|
+
export interface OutputObject {
|
|
231
|
+
ctHash: bigint;
|
|
232
|
+
operation: string;
|
|
233
|
+
errorMessage: string;
|
|
234
|
+
}
|
|
235
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
236
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
237
|
+
export type Log = TypedEventLog<Event>;
|
|
238
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export namespace TaskCreatedEvent {
|
|
242
|
+
export type InputTuple = [
|
|
243
|
+
ctHash: BigNumberish,
|
|
244
|
+
operation: string,
|
|
245
|
+
input1: BigNumberish,
|
|
246
|
+
input2: BigNumberish,
|
|
247
|
+
input3: BigNumberish,
|
|
248
|
+
];
|
|
249
|
+
export type OutputTuple = [ctHash: bigint, operation: string, input1: bigint, input2: bigint, input3: bigint];
|
|
250
|
+
export interface OutputObject {
|
|
251
|
+
ctHash: bigint;
|
|
252
|
+
operation: string;
|
|
253
|
+
input1: bigint;
|
|
254
|
+
input2: bigint;
|
|
255
|
+
input3: bigint;
|
|
256
|
+
}
|
|
257
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
258
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
|
259
|
+
export type Log = TypedEventLog<Event>;
|
|
260
|
+
export type LogDescription = TypedLogDescription<Event>;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
export interface MockTaskManager extends BaseContract {
|
|
264
|
+
connect(runner?: ContractRunner | null): MockTaskManager;
|
|
265
|
+
waitForDeployment(): Promise<this>;
|
|
266
|
+
|
|
267
|
+
interface: MockTaskManagerInterface;
|
|
268
|
+
|
|
269
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
270
|
+
event: TCEvent,
|
|
271
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
272
|
+
toBlock?: string | number | undefined
|
|
273
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
274
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
|
275
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
276
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
277
|
+
toBlock?: string | number | undefined
|
|
278
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
279
|
+
|
|
280
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
281
|
+
on<TCEvent extends TypedContractEvent>(
|
|
282
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
283
|
+
listener: TypedListener<TCEvent>
|
|
284
|
+
): Promise<this>;
|
|
285
|
+
|
|
286
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
287
|
+
once<TCEvent extends TypedContractEvent>(
|
|
288
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
|
289
|
+
listener: TypedListener<TCEvent>
|
|
290
|
+
): Promise<this>;
|
|
291
|
+
|
|
292
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
293
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
294
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
295
|
+
|
|
296
|
+
MOCK_logAllow: TypedContractMethod<[operation: string, ctHash: BigNumberish, account: AddressLike], [void], 'view'>;
|
|
297
|
+
|
|
298
|
+
MOCK_setInEuintKey: TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
|
|
299
|
+
|
|
300
|
+
acl: TypedContractMethod<[], [string], 'view'>;
|
|
301
|
+
|
|
302
|
+
aggregator: TypedContractMethod<[], [string], 'view'>;
|
|
303
|
+
|
|
304
|
+
allow: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
|
|
305
|
+
|
|
306
|
+
allowForDecryption: TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
|
|
307
|
+
|
|
308
|
+
allowGlobal: TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
|
|
309
|
+
|
|
310
|
+
allowTransient: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
|
|
311
|
+
|
|
312
|
+
createDecryptTask: TypedContractMethod<[ctHash: BigNumberish, arg1: AddressLike], [void], 'nonpayable'>;
|
|
313
|
+
|
|
314
|
+
createRandomTask: TypedContractMethod<
|
|
315
|
+
[returnType: BigNumberish, seed: BigNumberish, securityZone: BigNumberish],
|
|
316
|
+
[bigint],
|
|
317
|
+
'nonpayable'
|
|
318
|
+
>;
|
|
319
|
+
|
|
320
|
+
createTask: TypedContractMethod<
|
|
321
|
+
[returnType: BigNumberish, funcId: BigNumberish, encryptedHashes: BigNumberish[], extraInputs: BigNumberish[]],
|
|
322
|
+
[bigint],
|
|
323
|
+
'nonpayable'
|
|
324
|
+
>;
|
|
325
|
+
|
|
326
|
+
decryptResultSigner: TypedContractMethod<[], [string], 'view'>;
|
|
327
|
+
|
|
328
|
+
exists: TypedContractMethod<[], [boolean], 'view'>;
|
|
329
|
+
|
|
330
|
+
getDecryptResult: TypedContractMethod<[ctHash: BigNumberish], [bigint], 'view'>;
|
|
331
|
+
|
|
332
|
+
getDecryptResultSafe: TypedContractMethod<
|
|
333
|
+
[ctHash: BigNumberish],
|
|
334
|
+
[[bigint, boolean] & { result: bigint; decrypted: boolean }],
|
|
335
|
+
'view'
|
|
336
|
+
>;
|
|
337
|
+
|
|
338
|
+
handleDecryptResult: TypedContractMethod<
|
|
339
|
+
[ctHash: BigNumberish, result: BigNumberish, arg2: AddressLike[]],
|
|
340
|
+
[void],
|
|
341
|
+
'nonpayable'
|
|
342
|
+
>;
|
|
343
|
+
|
|
344
|
+
handleError: TypedContractMethod<
|
|
345
|
+
[ctHash: BigNumberish, operation: string, errorMessage: string],
|
|
346
|
+
[void],
|
|
347
|
+
'nonpayable'
|
|
348
|
+
>;
|
|
349
|
+
|
|
350
|
+
inMockStorage: TypedContractMethod<[arg0: BigNumberish], [boolean], 'view'>;
|
|
351
|
+
|
|
352
|
+
initialize: TypedContractMethod<[initialOwner: AddressLike], [void], 'nonpayable'>;
|
|
353
|
+
|
|
354
|
+
isAllowed: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
355
|
+
|
|
356
|
+
isAllowedWithPermission: TypedContractMethod<[permission: PermissionStruct, handle: BigNumberish], [boolean], 'view'>;
|
|
357
|
+
|
|
358
|
+
isInitialized: TypedContractMethod<[], [boolean], 'view'>;
|
|
359
|
+
|
|
360
|
+
isPubliclyAllowed: TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
|
|
361
|
+
|
|
362
|
+
logOps: TypedContractMethod<[], [boolean], 'view'>;
|
|
363
|
+
|
|
364
|
+
mockStorage: TypedContractMethod<[arg0: BigNumberish], [bigint], 'view'>;
|
|
365
|
+
|
|
366
|
+
publishDecryptResult: TypedContractMethod<
|
|
367
|
+
[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike],
|
|
368
|
+
[void],
|
|
369
|
+
'nonpayable'
|
|
370
|
+
>;
|
|
371
|
+
|
|
372
|
+
publishDecryptResultBatch: TypedContractMethod<
|
|
373
|
+
[ctHashes: BigNumberish[], results: BigNumberish[], signatures: BytesLike[]],
|
|
374
|
+
[void],
|
|
375
|
+
'nonpayable'
|
|
376
|
+
>;
|
|
377
|
+
|
|
378
|
+
removeFirstLetter: TypedContractMethod<[str: string], [string], 'view'>;
|
|
379
|
+
|
|
380
|
+
setACLContract: TypedContractMethod<[_aclAddress: AddressLike], [void], 'nonpayable'>;
|
|
381
|
+
|
|
382
|
+
setAggregator: TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
|
|
383
|
+
|
|
384
|
+
setDecryptResultSigner: TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
385
|
+
|
|
386
|
+
setLogOps: TypedContractMethod<[_logOps: boolean], [void], 'nonpayable'>;
|
|
387
|
+
|
|
388
|
+
setSecurityZoneMax: TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
389
|
+
|
|
390
|
+
setSecurityZoneMin: TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
391
|
+
|
|
392
|
+
setSecurityZones: TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
|
|
393
|
+
|
|
394
|
+
setVerifierSigner: TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
395
|
+
|
|
396
|
+
sliceString: TypedContractMethod<[str: string, start: BigNumberish, length: BigNumberish], [string], 'view'>;
|
|
397
|
+
|
|
398
|
+
verifyDecryptResult: TypedContractMethod<
|
|
399
|
+
[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike],
|
|
400
|
+
[boolean],
|
|
401
|
+
'view'
|
|
402
|
+
>;
|
|
403
|
+
|
|
404
|
+
verifyDecryptResultSafe: TypedContractMethod<
|
|
405
|
+
[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike],
|
|
406
|
+
[boolean],
|
|
407
|
+
'view'
|
|
408
|
+
>;
|
|
409
|
+
|
|
410
|
+
verifyInput: TypedContractMethod<[input: EncryptedInputStruct, sender: AddressLike], [bigint], 'nonpayable'>;
|
|
411
|
+
|
|
412
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
413
|
+
|
|
414
|
+
getFunction(
|
|
415
|
+
nameOrSignature: 'MOCK_logAllow'
|
|
416
|
+
): TypedContractMethod<[operation: string, ctHash: BigNumberish, account: AddressLike], [void], 'view'>;
|
|
417
|
+
getFunction(
|
|
418
|
+
nameOrSignature: 'MOCK_setInEuintKey'
|
|
419
|
+
): TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
|
|
420
|
+
getFunction(nameOrSignature: 'acl'): TypedContractMethod<[], [string], 'view'>;
|
|
421
|
+
getFunction(nameOrSignature: 'aggregator'): TypedContractMethod<[], [string], 'view'>;
|
|
422
|
+
getFunction(
|
|
423
|
+
nameOrSignature: 'allow'
|
|
424
|
+
): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
|
|
425
|
+
getFunction(nameOrSignature: 'allowForDecryption'): TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
|
|
426
|
+
getFunction(nameOrSignature: 'allowGlobal'): TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
|
|
427
|
+
getFunction(
|
|
428
|
+
nameOrSignature: 'allowTransient'
|
|
429
|
+
): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
|
|
430
|
+
getFunction(
|
|
431
|
+
nameOrSignature: 'createDecryptTask'
|
|
432
|
+
): TypedContractMethod<[ctHash: BigNumberish, arg1: AddressLike], [void], 'nonpayable'>;
|
|
433
|
+
getFunction(
|
|
434
|
+
nameOrSignature: 'createRandomTask'
|
|
435
|
+
): TypedContractMethod<
|
|
436
|
+
[returnType: BigNumberish, seed: BigNumberish, securityZone: BigNumberish],
|
|
437
|
+
[bigint],
|
|
438
|
+
'nonpayable'
|
|
439
|
+
>;
|
|
440
|
+
getFunction(
|
|
441
|
+
nameOrSignature: 'createTask'
|
|
442
|
+
): TypedContractMethod<
|
|
443
|
+
[returnType: BigNumberish, funcId: BigNumberish, encryptedHashes: BigNumberish[], extraInputs: BigNumberish[]],
|
|
444
|
+
[bigint],
|
|
445
|
+
'nonpayable'
|
|
446
|
+
>;
|
|
447
|
+
getFunction(nameOrSignature: 'decryptResultSigner'): TypedContractMethod<[], [string], 'view'>;
|
|
448
|
+
getFunction(nameOrSignature: 'exists'): TypedContractMethod<[], [boolean], 'view'>;
|
|
449
|
+
getFunction(nameOrSignature: 'getDecryptResult'): TypedContractMethod<[ctHash: BigNumberish], [bigint], 'view'>;
|
|
450
|
+
getFunction(
|
|
451
|
+
nameOrSignature: 'getDecryptResultSafe'
|
|
452
|
+
): TypedContractMethod<[ctHash: BigNumberish], [[bigint, boolean] & { result: bigint; decrypted: boolean }], 'view'>;
|
|
453
|
+
getFunction(
|
|
454
|
+
nameOrSignature: 'handleDecryptResult'
|
|
455
|
+
): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, arg2: AddressLike[]], [void], 'nonpayable'>;
|
|
456
|
+
getFunction(
|
|
457
|
+
nameOrSignature: 'handleError'
|
|
458
|
+
): TypedContractMethod<[ctHash: BigNumberish, operation: string, errorMessage: string], [void], 'nonpayable'>;
|
|
459
|
+
getFunction(nameOrSignature: 'inMockStorage'): TypedContractMethod<[arg0: BigNumberish], [boolean], 'view'>;
|
|
460
|
+
getFunction(nameOrSignature: 'initialize'): TypedContractMethod<[initialOwner: AddressLike], [void], 'nonpayable'>;
|
|
461
|
+
getFunction(
|
|
462
|
+
nameOrSignature: 'isAllowed'
|
|
463
|
+
): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
464
|
+
getFunction(
|
|
465
|
+
nameOrSignature: 'isAllowedWithPermission'
|
|
466
|
+
): TypedContractMethod<[permission: PermissionStruct, handle: BigNumberish], [boolean], 'view'>;
|
|
467
|
+
getFunction(nameOrSignature: 'isInitialized'): TypedContractMethod<[], [boolean], 'view'>;
|
|
468
|
+
getFunction(nameOrSignature: 'isPubliclyAllowed'): TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
|
|
469
|
+
getFunction(nameOrSignature: 'logOps'): TypedContractMethod<[], [boolean], 'view'>;
|
|
470
|
+
getFunction(nameOrSignature: 'mockStorage'): TypedContractMethod<[arg0: BigNumberish], [bigint], 'view'>;
|
|
471
|
+
getFunction(
|
|
472
|
+
nameOrSignature: 'publishDecryptResult'
|
|
473
|
+
): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [void], 'nonpayable'>;
|
|
474
|
+
getFunction(
|
|
475
|
+
nameOrSignature: 'publishDecryptResultBatch'
|
|
476
|
+
): TypedContractMethod<
|
|
477
|
+
[ctHashes: BigNumberish[], results: BigNumberish[], signatures: BytesLike[]],
|
|
478
|
+
[void],
|
|
479
|
+
'nonpayable'
|
|
480
|
+
>;
|
|
481
|
+
getFunction(nameOrSignature: 'removeFirstLetter'): TypedContractMethod<[str: string], [string], 'view'>;
|
|
482
|
+
getFunction(nameOrSignature: 'setACLContract'): TypedContractMethod<[_aclAddress: AddressLike], [void], 'nonpayable'>;
|
|
483
|
+
getFunction(
|
|
484
|
+
nameOrSignature: 'setAggregator'
|
|
485
|
+
): TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
|
|
486
|
+
getFunction(
|
|
487
|
+
nameOrSignature: 'setDecryptResultSigner'
|
|
488
|
+
): TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
489
|
+
getFunction(nameOrSignature: 'setLogOps'): TypedContractMethod<[_logOps: boolean], [void], 'nonpayable'>;
|
|
490
|
+
getFunction(
|
|
491
|
+
nameOrSignature: 'setSecurityZoneMax'
|
|
492
|
+
): TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
493
|
+
getFunction(
|
|
494
|
+
nameOrSignature: 'setSecurityZoneMin'
|
|
495
|
+
): TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
496
|
+
getFunction(
|
|
497
|
+
nameOrSignature: 'setSecurityZones'
|
|
498
|
+
): TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
|
|
499
|
+
getFunction(nameOrSignature: 'setVerifierSigner'): TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
500
|
+
getFunction(
|
|
501
|
+
nameOrSignature: 'sliceString'
|
|
502
|
+
): TypedContractMethod<[str: string, start: BigNumberish, length: BigNumberish], [string], 'view'>;
|
|
503
|
+
getFunction(
|
|
504
|
+
nameOrSignature: 'verifyDecryptResult'
|
|
505
|
+
): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
|
|
506
|
+
getFunction(
|
|
507
|
+
nameOrSignature: 'verifyDecryptResultSafe'
|
|
508
|
+
): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
|
|
509
|
+
getFunction(
|
|
510
|
+
nameOrSignature: 'verifyInput'
|
|
511
|
+
): TypedContractMethod<[input: EncryptedInputStruct, sender: AddressLike], [bigint], 'nonpayable'>;
|
|
512
|
+
|
|
513
|
+
getEvent(
|
|
514
|
+
key: 'DecryptionResult'
|
|
515
|
+
): TypedContractEvent<
|
|
516
|
+
DecryptionResultEvent.InputTuple,
|
|
517
|
+
DecryptionResultEvent.OutputTuple,
|
|
518
|
+
DecryptionResultEvent.OutputObject
|
|
519
|
+
>;
|
|
520
|
+
getEvent(
|
|
521
|
+
key: 'ProtocolNotification'
|
|
522
|
+
): TypedContractEvent<
|
|
523
|
+
ProtocolNotificationEvent.InputTuple,
|
|
524
|
+
ProtocolNotificationEvent.OutputTuple,
|
|
525
|
+
ProtocolNotificationEvent.OutputObject
|
|
526
|
+
>;
|
|
527
|
+
getEvent(
|
|
528
|
+
key: 'TaskCreated'
|
|
529
|
+
): TypedContractEvent<TaskCreatedEvent.InputTuple, TaskCreatedEvent.OutputTuple, TaskCreatedEvent.OutputObject>;
|
|
530
|
+
|
|
531
|
+
filters: {
|
|
532
|
+
'DecryptionResult(uint256,uint256,address)': TypedContractEvent<
|
|
533
|
+
DecryptionResultEvent.InputTuple,
|
|
534
|
+
DecryptionResultEvent.OutputTuple,
|
|
535
|
+
DecryptionResultEvent.OutputObject
|
|
536
|
+
>;
|
|
537
|
+
DecryptionResult: TypedContractEvent<
|
|
538
|
+
DecryptionResultEvent.InputTuple,
|
|
539
|
+
DecryptionResultEvent.OutputTuple,
|
|
540
|
+
DecryptionResultEvent.OutputObject
|
|
541
|
+
>;
|
|
542
|
+
|
|
543
|
+
'ProtocolNotification(uint256,string,string)': TypedContractEvent<
|
|
544
|
+
ProtocolNotificationEvent.InputTuple,
|
|
545
|
+
ProtocolNotificationEvent.OutputTuple,
|
|
546
|
+
ProtocolNotificationEvent.OutputObject
|
|
547
|
+
>;
|
|
548
|
+
ProtocolNotification: TypedContractEvent<
|
|
549
|
+
ProtocolNotificationEvent.InputTuple,
|
|
550
|
+
ProtocolNotificationEvent.OutputTuple,
|
|
551
|
+
ProtocolNotificationEvent.OutputObject
|
|
552
|
+
>;
|
|
553
|
+
|
|
554
|
+
'TaskCreated(uint256,string,uint256,uint256,uint256)': TypedContractEvent<
|
|
555
|
+
TaskCreatedEvent.InputTuple,
|
|
556
|
+
TaskCreatedEvent.OutputTuple,
|
|
557
|
+
TaskCreatedEvent.OutputObject
|
|
558
|
+
>;
|
|
559
|
+
TaskCreated: TypedContractEvent<
|
|
560
|
+
TaskCreatedEvent.InputTuple,
|
|
561
|
+
TaskCreatedEvent.OutputTuple,
|
|
562
|
+
TaskCreatedEvent.OutputObject
|
|
563
|
+
>;
|
|
564
|
+
};
|
|
565
|
+
}
|