@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
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { DeferredTopicFilter, EventFragment, EventLog, TransactionRequest, Typed, ContractTransactionResponse, FunctionFragment, ContractTransaction, LogDescription, BaseContract, ContractRunner, Interface, BigNumberish, AddressLike, BytesLike, Result, Listener, ContractMethod } from 'ethers';
|
|
2
|
+
|
|
1
3
|
type MockArtifact = {
|
|
2
4
|
contractName: string;
|
|
3
5
|
abi: any;
|
|
@@ -267,4 +269,989 @@ declare const TestBedArtifact: {
|
|
|
267
269
|
deployedBytecode: string;
|
|
268
270
|
};
|
|
269
271
|
|
|
270
|
-
|
|
272
|
+
interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
|
|
273
|
+
}
|
|
274
|
+
interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
|
|
275
|
+
(...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
|
|
276
|
+
name: string;
|
|
277
|
+
fragment: EventFragment;
|
|
278
|
+
getFragment(...args: Partial<InputTuple>): EventFragment;
|
|
279
|
+
}
|
|
280
|
+
type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
|
|
281
|
+
type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
|
|
282
|
+
interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, 'args'> {
|
|
283
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
284
|
+
}
|
|
285
|
+
interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, 'args'> {
|
|
286
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
287
|
+
}
|
|
288
|
+
type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [...__TypechainAOutputTuple<TCEvent>, TypedEventLog<TCEvent>, ...undefined[]]) => void;
|
|
289
|
+
type StateMutability = 'nonpayable' | 'payable' | 'view';
|
|
290
|
+
type BaseOverrides = Omit<TransactionRequest, 'to' | 'data'>;
|
|
291
|
+
type NonPayableOverrides = Omit<BaseOverrides, 'value' | 'blockTag' | 'enableCcipRead'>;
|
|
292
|
+
type PayableOverrides = Omit<BaseOverrides, 'blockTag' | 'enableCcipRead'>;
|
|
293
|
+
type ViewOverrides = Omit<TransactionRequest, 'to' | 'data'>;
|
|
294
|
+
type Overrides<S extends StateMutability> = S extends 'nonpayable' ? NonPayableOverrides : S extends 'payable' ? PayableOverrides : ViewOverrides;
|
|
295
|
+
type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
|
|
296
|
+
type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
|
|
297
|
+
[I in keyof A]-?: A[I] | Typed;
|
|
298
|
+
}, S>;
|
|
299
|
+
type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
|
|
300
|
+
interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = 'payable'> {
|
|
301
|
+
(...args: ContractMethodArgs<A, S>): S extends 'view' ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
|
|
302
|
+
name: string;
|
|
303
|
+
fragment: FunctionFragment;
|
|
304
|
+
getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
|
|
305
|
+
populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
|
|
306
|
+
staticCall(...args: ContractMethodArgs<A, 'view'>): Promise<DefaultReturnType<R>>;
|
|
307
|
+
send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
|
|
308
|
+
estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
|
|
309
|
+
staticCallResult(...args: ContractMethodArgs<A, 'view'>): Promise<R>;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
type PermissionStruct$2 = {
|
|
313
|
+
issuer: AddressLike;
|
|
314
|
+
expiration: BigNumberish;
|
|
315
|
+
recipient: AddressLike;
|
|
316
|
+
validatorId: BigNumberish;
|
|
317
|
+
validatorContract: AddressLike;
|
|
318
|
+
sealingKey: BytesLike;
|
|
319
|
+
issuerSignature: BytesLike;
|
|
320
|
+
recipientSignature: BytesLike;
|
|
321
|
+
};
|
|
322
|
+
interface MockACLInterface extends Interface {
|
|
323
|
+
getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'allowedOnBehalf' | 'allowedTransient' | 'checkPermitValidity' | 'cleanTransientStorage' | 'delegateAccount' | 'eip712Domain' | 'exists' | 'getTaskManagerAddress' | 'getVersion' | 'globalAllowed' | 'hashTypedDataV4' | 'isAllowed' | 'isAllowedForDecryption' | 'isAllowedWithPermission' | 'persistAllowed'): FunctionFragment;
|
|
324
|
+
getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'EIP712DomainChanged' | 'NewDelegation'): EventFragment;
|
|
325
|
+
encodeFunctionData(functionFragment: 'TASK_MANAGER_ADDRESS_', values?: undefined): string;
|
|
326
|
+
encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike, AddressLike]): string;
|
|
327
|
+
encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish[], AddressLike]): string;
|
|
328
|
+
encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish, AddressLike]): string;
|
|
329
|
+
encodeFunctionData(functionFragment: 'allowTransient', values: [BigNumberish, AddressLike, AddressLike]): string;
|
|
330
|
+
encodeFunctionData(functionFragment: 'allowedOnBehalf', values: [AddressLike, BigNumberish, AddressLike, AddressLike]): string;
|
|
331
|
+
encodeFunctionData(functionFragment: 'allowedTransient', values: [BigNumberish, AddressLike]): string;
|
|
332
|
+
encodeFunctionData(functionFragment: 'checkPermitValidity', values: [PermissionStruct$2]): string;
|
|
333
|
+
encodeFunctionData(functionFragment: 'cleanTransientStorage', values?: undefined): string;
|
|
334
|
+
encodeFunctionData(functionFragment: 'delegateAccount', values: [AddressLike, AddressLike]): string;
|
|
335
|
+
encodeFunctionData(functionFragment: 'eip712Domain', values?: undefined): string;
|
|
336
|
+
encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
|
|
337
|
+
encodeFunctionData(functionFragment: 'getTaskManagerAddress', values?: undefined): string;
|
|
338
|
+
encodeFunctionData(functionFragment: 'getVersion', values?: undefined): string;
|
|
339
|
+
encodeFunctionData(functionFragment: 'globalAllowed', values: [BigNumberish]): string;
|
|
340
|
+
encodeFunctionData(functionFragment: 'hashTypedDataV4', values: [BytesLike]): string;
|
|
341
|
+
encodeFunctionData(functionFragment: 'isAllowed', values: [BigNumberish, AddressLike]): string;
|
|
342
|
+
encodeFunctionData(functionFragment: 'isAllowedForDecryption', values: [BigNumberish]): string;
|
|
343
|
+
encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [PermissionStruct$2, BigNumberish]): string;
|
|
344
|
+
encodeFunctionData(functionFragment: 'persistAllowed', values: [BigNumberish, AddressLike]): string;
|
|
345
|
+
decodeFunctionResult(functionFragment: 'TASK_MANAGER_ADDRESS_', data: BytesLike): Result;
|
|
346
|
+
decodeFunctionResult(functionFragment: 'allow', data: BytesLike): Result;
|
|
347
|
+
decodeFunctionResult(functionFragment: 'allowForDecryption', data: BytesLike): Result;
|
|
348
|
+
decodeFunctionResult(functionFragment: 'allowGlobal', data: BytesLike): Result;
|
|
349
|
+
decodeFunctionResult(functionFragment: 'allowTransient', data: BytesLike): Result;
|
|
350
|
+
decodeFunctionResult(functionFragment: 'allowedOnBehalf', data: BytesLike): Result;
|
|
351
|
+
decodeFunctionResult(functionFragment: 'allowedTransient', data: BytesLike): Result;
|
|
352
|
+
decodeFunctionResult(functionFragment: 'checkPermitValidity', data: BytesLike): Result;
|
|
353
|
+
decodeFunctionResult(functionFragment: 'cleanTransientStorage', data: BytesLike): Result;
|
|
354
|
+
decodeFunctionResult(functionFragment: 'delegateAccount', data: BytesLike): Result;
|
|
355
|
+
decodeFunctionResult(functionFragment: 'eip712Domain', data: BytesLike): Result;
|
|
356
|
+
decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
|
|
357
|
+
decodeFunctionResult(functionFragment: 'getTaskManagerAddress', data: BytesLike): Result;
|
|
358
|
+
decodeFunctionResult(functionFragment: 'getVersion', data: BytesLike): Result;
|
|
359
|
+
decodeFunctionResult(functionFragment: 'globalAllowed', data: BytesLike): Result;
|
|
360
|
+
decodeFunctionResult(functionFragment: 'hashTypedDataV4', data: BytesLike): Result;
|
|
361
|
+
decodeFunctionResult(functionFragment: 'isAllowed', data: BytesLike): Result;
|
|
362
|
+
decodeFunctionResult(functionFragment: 'isAllowedForDecryption', data: BytesLike): Result;
|
|
363
|
+
decodeFunctionResult(functionFragment: 'isAllowedWithPermission', data: BytesLike): Result;
|
|
364
|
+
decodeFunctionResult(functionFragment: 'persistAllowed', data: BytesLike): Result;
|
|
365
|
+
}
|
|
366
|
+
declare namespace AllowedForDecryptionEvent {
|
|
367
|
+
type InputTuple = [handlesList: BigNumberish[]];
|
|
368
|
+
type OutputTuple = [handlesList: bigint[]];
|
|
369
|
+
interface OutputObject {
|
|
370
|
+
handlesList: bigint[];
|
|
371
|
+
}
|
|
372
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
373
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
374
|
+
type Log = TypedEventLog<Event>;
|
|
375
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
376
|
+
}
|
|
377
|
+
declare namespace EIP712DomainChangedEvent {
|
|
378
|
+
type InputTuple = [];
|
|
379
|
+
type OutputTuple = [];
|
|
380
|
+
interface OutputObject {
|
|
381
|
+
}
|
|
382
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
383
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
384
|
+
type Log = TypedEventLog<Event>;
|
|
385
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
386
|
+
}
|
|
387
|
+
declare namespace NewDelegationEvent {
|
|
388
|
+
type InputTuple = [sender: AddressLike, delegatee: AddressLike, contractAddress: AddressLike];
|
|
389
|
+
type OutputTuple = [sender: string, delegatee: string, contractAddress: string];
|
|
390
|
+
interface OutputObject {
|
|
391
|
+
sender: string;
|
|
392
|
+
delegatee: string;
|
|
393
|
+
contractAddress: string;
|
|
394
|
+
}
|
|
395
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
396
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
397
|
+
type Log = TypedEventLog<Event>;
|
|
398
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
399
|
+
}
|
|
400
|
+
interface MockACL extends BaseContract {
|
|
401
|
+
connect(runner?: ContractRunner | null): MockACL;
|
|
402
|
+
waitForDeployment(): Promise<this>;
|
|
403
|
+
interface: MockACLInterface;
|
|
404
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
405
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
406
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
407
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
408
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
409
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
410
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
411
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
412
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
413
|
+
TASK_MANAGER_ADDRESS_: TypedContractMethod<[], [string], 'view'>;
|
|
414
|
+
allow: TypedContractMethod<[
|
|
415
|
+
handle: BigNumberish,
|
|
416
|
+
account: AddressLike,
|
|
417
|
+
requester: AddressLike
|
|
418
|
+
], [
|
|
419
|
+
void
|
|
420
|
+
], 'nonpayable'>;
|
|
421
|
+
allowForDecryption: TypedContractMethod<[handlesList: BigNumberish[], requester: AddressLike], [void], 'nonpayable'>;
|
|
422
|
+
allowGlobal: TypedContractMethod<[handle: BigNumberish, requester: AddressLike], [void], 'nonpayable'>;
|
|
423
|
+
allowTransient: TypedContractMethod<[
|
|
424
|
+
handle: BigNumberish,
|
|
425
|
+
account: AddressLike,
|
|
426
|
+
requester: AddressLike
|
|
427
|
+
], [
|
|
428
|
+
void
|
|
429
|
+
], 'nonpayable'>;
|
|
430
|
+
allowedOnBehalf: TypedContractMethod<[
|
|
431
|
+
delegatee: AddressLike,
|
|
432
|
+
handle: BigNumberish,
|
|
433
|
+
contractAddress: AddressLike,
|
|
434
|
+
account: AddressLike
|
|
435
|
+
], [
|
|
436
|
+
boolean
|
|
437
|
+
], 'view'>;
|
|
438
|
+
allowedTransient: TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
439
|
+
checkPermitValidity: TypedContractMethod<[permission: PermissionStruct$2], [boolean], 'view'>;
|
|
440
|
+
cleanTransientStorage: TypedContractMethod<[], [void], 'nonpayable'>;
|
|
441
|
+
delegateAccount: TypedContractMethod<[delegatee: AddressLike, delegateeContract: AddressLike], [void], 'nonpayable'>;
|
|
442
|
+
eip712Domain: TypedContractMethod<[
|
|
443
|
+
], [
|
|
444
|
+
[
|
|
445
|
+
string,
|
|
446
|
+
string,
|
|
447
|
+
string,
|
|
448
|
+
bigint,
|
|
449
|
+
string,
|
|
450
|
+
string,
|
|
451
|
+
bigint[]
|
|
452
|
+
] & {
|
|
453
|
+
fields: string;
|
|
454
|
+
name: string;
|
|
455
|
+
version: string;
|
|
456
|
+
chainId: bigint;
|
|
457
|
+
verifyingContract: string;
|
|
458
|
+
salt: string;
|
|
459
|
+
extensions: bigint[];
|
|
460
|
+
}
|
|
461
|
+
], 'view'>;
|
|
462
|
+
exists: TypedContractMethod<[], [boolean], 'view'>;
|
|
463
|
+
getTaskManagerAddress: TypedContractMethod<[], [string], 'view'>;
|
|
464
|
+
getVersion: TypedContractMethod<[], [string], 'view'>;
|
|
465
|
+
globalAllowed: TypedContractMethod<[handle: BigNumberish], [boolean], 'view'>;
|
|
466
|
+
hashTypedDataV4: TypedContractMethod<[structHash: BytesLike], [string], 'view'>;
|
|
467
|
+
isAllowed: TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
468
|
+
isAllowedForDecryption: TypedContractMethod<[handle: BigNumberish], [boolean], 'view'>;
|
|
469
|
+
isAllowedWithPermission: TypedContractMethod<[permission: PermissionStruct$2, handle: BigNumberish], [boolean], 'view'>;
|
|
470
|
+
persistAllowed: TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
471
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
472
|
+
getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_'): TypedContractMethod<[], [string], 'view'>;
|
|
473
|
+
getFunction(nameOrSignature: 'allow'): TypedContractMethod<[handle: BigNumberish, account: AddressLike, requester: AddressLike], [void], 'nonpayable'>;
|
|
474
|
+
getFunction(nameOrSignature: 'allowForDecryption'): TypedContractMethod<[handlesList: BigNumberish[], requester: AddressLike], [void], 'nonpayable'>;
|
|
475
|
+
getFunction(nameOrSignature: 'allowGlobal'): TypedContractMethod<[handle: BigNumberish, requester: AddressLike], [void], 'nonpayable'>;
|
|
476
|
+
getFunction(nameOrSignature: 'allowTransient'): TypedContractMethod<[handle: BigNumberish, account: AddressLike, requester: AddressLike], [void], 'nonpayable'>;
|
|
477
|
+
getFunction(nameOrSignature: 'allowedOnBehalf'): TypedContractMethod<[
|
|
478
|
+
delegatee: AddressLike,
|
|
479
|
+
handle: BigNumberish,
|
|
480
|
+
contractAddress: AddressLike,
|
|
481
|
+
account: AddressLike
|
|
482
|
+
], [
|
|
483
|
+
boolean
|
|
484
|
+
], 'view'>;
|
|
485
|
+
getFunction(nameOrSignature: 'allowedTransient'): TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
486
|
+
getFunction(nameOrSignature: 'checkPermitValidity'): TypedContractMethod<[permission: PermissionStruct$2], [boolean], 'view'>;
|
|
487
|
+
getFunction(nameOrSignature: 'cleanTransientStorage'): TypedContractMethod<[], [void], 'nonpayable'>;
|
|
488
|
+
getFunction(nameOrSignature: 'delegateAccount'): TypedContractMethod<[delegatee: AddressLike, delegateeContract: AddressLike], [void], 'nonpayable'>;
|
|
489
|
+
getFunction(nameOrSignature: 'eip712Domain'): TypedContractMethod<[
|
|
490
|
+
], [
|
|
491
|
+
[
|
|
492
|
+
string,
|
|
493
|
+
string,
|
|
494
|
+
string,
|
|
495
|
+
bigint,
|
|
496
|
+
string,
|
|
497
|
+
string,
|
|
498
|
+
bigint[]
|
|
499
|
+
] & {
|
|
500
|
+
fields: string;
|
|
501
|
+
name: string;
|
|
502
|
+
version: string;
|
|
503
|
+
chainId: bigint;
|
|
504
|
+
verifyingContract: string;
|
|
505
|
+
salt: string;
|
|
506
|
+
extensions: bigint[];
|
|
507
|
+
}
|
|
508
|
+
], 'view'>;
|
|
509
|
+
getFunction(nameOrSignature: 'exists'): TypedContractMethod<[], [boolean], 'view'>;
|
|
510
|
+
getFunction(nameOrSignature: 'getTaskManagerAddress'): TypedContractMethod<[], [string], 'view'>;
|
|
511
|
+
getFunction(nameOrSignature: 'getVersion'): TypedContractMethod<[], [string], 'view'>;
|
|
512
|
+
getFunction(nameOrSignature: 'globalAllowed'): TypedContractMethod<[handle: BigNumberish], [boolean], 'view'>;
|
|
513
|
+
getFunction(nameOrSignature: 'hashTypedDataV4'): TypedContractMethod<[structHash: BytesLike], [string], 'view'>;
|
|
514
|
+
getFunction(nameOrSignature: 'isAllowed'): TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
515
|
+
getFunction(nameOrSignature: 'isAllowedForDecryption'): TypedContractMethod<[handle: BigNumberish], [boolean], 'view'>;
|
|
516
|
+
getFunction(nameOrSignature: 'isAllowedWithPermission'): TypedContractMethod<[permission: PermissionStruct$2, handle: BigNumberish], [boolean], 'view'>;
|
|
517
|
+
getFunction(nameOrSignature: 'persistAllowed'): TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
518
|
+
getEvent(key: 'AllowedForDecryption'): TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
|
|
519
|
+
getEvent(key: 'EIP712DomainChanged'): TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
520
|
+
getEvent(key: 'NewDelegation'): TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
|
|
521
|
+
filters: {
|
|
522
|
+
'AllowedForDecryption(uint256[])': TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
|
|
523
|
+
AllowedForDecryption: TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
|
|
524
|
+
'EIP712DomainChanged()': TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
525
|
+
EIP712DomainChanged: TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
|
|
526
|
+
'NewDelegation(address,address,address)': TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
|
|
527
|
+
NewDelegation: TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
type PermissionStruct$1 = {
|
|
532
|
+
issuer: AddressLike;
|
|
533
|
+
expiration: BigNumberish;
|
|
534
|
+
recipient: AddressLike;
|
|
535
|
+
validatorId: BigNumberish;
|
|
536
|
+
validatorContract: AddressLike;
|
|
537
|
+
sealingKey: BytesLike;
|
|
538
|
+
issuerSignature: BytesLike;
|
|
539
|
+
recipientSignature: BytesLike;
|
|
540
|
+
};
|
|
541
|
+
type EncryptedInputStruct = {
|
|
542
|
+
ctHash: BigNumberish;
|
|
543
|
+
securityZone: BigNumberish;
|
|
544
|
+
utype: BigNumberish;
|
|
545
|
+
signature: BytesLike;
|
|
546
|
+
};
|
|
547
|
+
interface MockTaskManagerInterface extends Interface {
|
|
548
|
+
getFunction(nameOrSignature: 'MOCK_logAllow' | 'MOCK_setInEuintKey' | 'acl' | 'aggregator' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'createDecryptTask' | 'createRandomTask' | 'createTask' | 'decryptResultSigner' | 'exists' | 'getDecryptResult' | 'getDecryptResultSafe' | 'handleDecryptResult' | 'handleError' | 'inMockStorage' | 'initialize' | 'isAllowed' | 'isAllowedWithPermission' | 'isInitialized' | 'isPubliclyAllowed' | 'logOps' | 'mockStorage' | 'publishDecryptResult' | 'publishDecryptResultBatch' | 'removeFirstLetter' | 'setACLContract' | 'setAggregator' | 'setDecryptResultSigner' | 'setLogOps' | 'setSecurityZoneMax' | 'setSecurityZoneMin' | 'setSecurityZones' | 'setVerifierSigner' | 'sliceString' | 'verifyDecryptResult' | 'verifyDecryptResultSafe' | 'verifyInput'): FunctionFragment;
|
|
549
|
+
getEvent(nameOrSignatureOrTopic: 'DecryptionResult' | 'ProtocolNotification' | 'TaskCreated'): EventFragment;
|
|
550
|
+
encodeFunctionData(functionFragment: 'MOCK_logAllow', values: [string, BigNumberish, AddressLike]): string;
|
|
551
|
+
encodeFunctionData(functionFragment: 'MOCK_setInEuintKey', values: [BigNumberish, BigNumberish]): string;
|
|
552
|
+
encodeFunctionData(functionFragment: 'acl', values?: undefined): string;
|
|
553
|
+
encodeFunctionData(functionFragment: 'aggregator', values?: undefined): string;
|
|
554
|
+
encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike]): string;
|
|
555
|
+
encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish]): string;
|
|
556
|
+
encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish]): string;
|
|
557
|
+
encodeFunctionData(functionFragment: 'allowTransient', values: [BigNumberish, AddressLike]): string;
|
|
558
|
+
encodeFunctionData(functionFragment: 'createDecryptTask', values: [BigNumberish, AddressLike]): string;
|
|
559
|
+
encodeFunctionData(functionFragment: 'createRandomTask', values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
560
|
+
encodeFunctionData(functionFragment: 'createTask', values: [BigNumberish, BigNumberish, BigNumberish[], BigNumberish[]]): string;
|
|
561
|
+
encodeFunctionData(functionFragment: 'decryptResultSigner', values?: undefined): string;
|
|
562
|
+
encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
|
|
563
|
+
encodeFunctionData(functionFragment: 'getDecryptResult', values: [BigNumberish]): string;
|
|
564
|
+
encodeFunctionData(functionFragment: 'getDecryptResultSafe', values: [BigNumberish]): string;
|
|
565
|
+
encodeFunctionData(functionFragment: 'handleDecryptResult', values: [BigNumberish, BigNumberish, AddressLike[]]): string;
|
|
566
|
+
encodeFunctionData(functionFragment: 'handleError', values: [BigNumberish, string, string]): string;
|
|
567
|
+
encodeFunctionData(functionFragment: 'inMockStorage', values: [BigNumberish]): string;
|
|
568
|
+
encodeFunctionData(functionFragment: 'initialize', values: [AddressLike]): string;
|
|
569
|
+
encodeFunctionData(functionFragment: 'isAllowed', values: [BigNumberish, AddressLike]): string;
|
|
570
|
+
encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [PermissionStruct$1, BigNumberish]): string;
|
|
571
|
+
encodeFunctionData(functionFragment: 'isInitialized', values?: undefined): string;
|
|
572
|
+
encodeFunctionData(functionFragment: 'isPubliclyAllowed', values: [BigNumberish]): string;
|
|
573
|
+
encodeFunctionData(functionFragment: 'logOps', values?: undefined): string;
|
|
574
|
+
encodeFunctionData(functionFragment: 'mockStorage', values: [BigNumberish]): string;
|
|
575
|
+
encodeFunctionData(functionFragment: 'publishDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
576
|
+
encodeFunctionData(functionFragment: 'publishDecryptResultBatch', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
|
|
577
|
+
encodeFunctionData(functionFragment: 'removeFirstLetter', values: [string]): string;
|
|
578
|
+
encodeFunctionData(functionFragment: 'setACLContract', values: [AddressLike]): string;
|
|
579
|
+
encodeFunctionData(functionFragment: 'setAggregator', values: [AddressLike]): string;
|
|
580
|
+
encodeFunctionData(functionFragment: 'setDecryptResultSigner', values: [AddressLike]): string;
|
|
581
|
+
encodeFunctionData(functionFragment: 'setLogOps', values: [boolean]): string;
|
|
582
|
+
encodeFunctionData(functionFragment: 'setSecurityZoneMax', values: [BigNumberish]): string;
|
|
583
|
+
encodeFunctionData(functionFragment: 'setSecurityZoneMin', values: [BigNumberish]): string;
|
|
584
|
+
encodeFunctionData(functionFragment: 'setSecurityZones', values: [BigNumberish, BigNumberish]): string;
|
|
585
|
+
encodeFunctionData(functionFragment: 'setVerifierSigner', values: [AddressLike]): string;
|
|
586
|
+
encodeFunctionData(functionFragment: 'sliceString', values: [string, BigNumberish, BigNumberish]): string;
|
|
587
|
+
encodeFunctionData(functionFragment: 'verifyDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
588
|
+
encodeFunctionData(functionFragment: 'verifyDecryptResultSafe', values: [BigNumberish, BigNumberish, BytesLike]): string;
|
|
589
|
+
encodeFunctionData(functionFragment: 'verifyInput', values: [EncryptedInputStruct, AddressLike]): string;
|
|
590
|
+
decodeFunctionResult(functionFragment: 'MOCK_logAllow', data: BytesLike): Result;
|
|
591
|
+
decodeFunctionResult(functionFragment: 'MOCK_setInEuintKey', data: BytesLike): Result;
|
|
592
|
+
decodeFunctionResult(functionFragment: 'acl', data: BytesLike): Result;
|
|
593
|
+
decodeFunctionResult(functionFragment: 'aggregator', data: BytesLike): Result;
|
|
594
|
+
decodeFunctionResult(functionFragment: 'allow', data: BytesLike): Result;
|
|
595
|
+
decodeFunctionResult(functionFragment: 'allowForDecryption', data: BytesLike): Result;
|
|
596
|
+
decodeFunctionResult(functionFragment: 'allowGlobal', data: BytesLike): Result;
|
|
597
|
+
decodeFunctionResult(functionFragment: 'allowTransient', data: BytesLike): Result;
|
|
598
|
+
decodeFunctionResult(functionFragment: 'createDecryptTask', data: BytesLike): Result;
|
|
599
|
+
decodeFunctionResult(functionFragment: 'createRandomTask', data: BytesLike): Result;
|
|
600
|
+
decodeFunctionResult(functionFragment: 'createTask', data: BytesLike): Result;
|
|
601
|
+
decodeFunctionResult(functionFragment: 'decryptResultSigner', data: BytesLike): Result;
|
|
602
|
+
decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
|
|
603
|
+
decodeFunctionResult(functionFragment: 'getDecryptResult', data: BytesLike): Result;
|
|
604
|
+
decodeFunctionResult(functionFragment: 'getDecryptResultSafe', data: BytesLike): Result;
|
|
605
|
+
decodeFunctionResult(functionFragment: 'handleDecryptResult', data: BytesLike): Result;
|
|
606
|
+
decodeFunctionResult(functionFragment: 'handleError', data: BytesLike): Result;
|
|
607
|
+
decodeFunctionResult(functionFragment: 'inMockStorage', data: BytesLike): Result;
|
|
608
|
+
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
|
609
|
+
decodeFunctionResult(functionFragment: 'isAllowed', data: BytesLike): Result;
|
|
610
|
+
decodeFunctionResult(functionFragment: 'isAllowedWithPermission', data: BytesLike): Result;
|
|
611
|
+
decodeFunctionResult(functionFragment: 'isInitialized', data: BytesLike): Result;
|
|
612
|
+
decodeFunctionResult(functionFragment: 'isPubliclyAllowed', data: BytesLike): Result;
|
|
613
|
+
decodeFunctionResult(functionFragment: 'logOps', data: BytesLike): Result;
|
|
614
|
+
decodeFunctionResult(functionFragment: 'mockStorage', data: BytesLike): Result;
|
|
615
|
+
decodeFunctionResult(functionFragment: 'publishDecryptResult', data: BytesLike): Result;
|
|
616
|
+
decodeFunctionResult(functionFragment: 'publishDecryptResultBatch', data: BytesLike): Result;
|
|
617
|
+
decodeFunctionResult(functionFragment: 'removeFirstLetter', data: BytesLike): Result;
|
|
618
|
+
decodeFunctionResult(functionFragment: 'setACLContract', data: BytesLike): Result;
|
|
619
|
+
decodeFunctionResult(functionFragment: 'setAggregator', data: BytesLike): Result;
|
|
620
|
+
decodeFunctionResult(functionFragment: 'setDecryptResultSigner', data: BytesLike): Result;
|
|
621
|
+
decodeFunctionResult(functionFragment: 'setLogOps', data: BytesLike): Result;
|
|
622
|
+
decodeFunctionResult(functionFragment: 'setSecurityZoneMax', data: BytesLike): Result;
|
|
623
|
+
decodeFunctionResult(functionFragment: 'setSecurityZoneMin', data: BytesLike): Result;
|
|
624
|
+
decodeFunctionResult(functionFragment: 'setSecurityZones', data: BytesLike): Result;
|
|
625
|
+
decodeFunctionResult(functionFragment: 'setVerifierSigner', data: BytesLike): Result;
|
|
626
|
+
decodeFunctionResult(functionFragment: 'sliceString', data: BytesLike): Result;
|
|
627
|
+
decodeFunctionResult(functionFragment: 'verifyDecryptResult', data: BytesLike): Result;
|
|
628
|
+
decodeFunctionResult(functionFragment: 'verifyDecryptResultSafe', data: BytesLike): Result;
|
|
629
|
+
decodeFunctionResult(functionFragment: 'verifyInput', data: BytesLike): Result;
|
|
630
|
+
}
|
|
631
|
+
declare namespace DecryptionResultEvent {
|
|
632
|
+
type InputTuple = [ctHash: BigNumberish, result: BigNumberish, requestor: AddressLike];
|
|
633
|
+
type OutputTuple = [ctHash: bigint, result: bigint, requestor: string];
|
|
634
|
+
interface OutputObject {
|
|
635
|
+
ctHash: bigint;
|
|
636
|
+
result: bigint;
|
|
637
|
+
requestor: string;
|
|
638
|
+
}
|
|
639
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
640
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
641
|
+
type Log = TypedEventLog<Event>;
|
|
642
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
643
|
+
}
|
|
644
|
+
declare namespace ProtocolNotificationEvent {
|
|
645
|
+
type InputTuple = [ctHash: BigNumberish, operation: string, errorMessage: string];
|
|
646
|
+
type OutputTuple = [ctHash: bigint, operation: string, errorMessage: string];
|
|
647
|
+
interface OutputObject {
|
|
648
|
+
ctHash: bigint;
|
|
649
|
+
operation: string;
|
|
650
|
+
errorMessage: string;
|
|
651
|
+
}
|
|
652
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
653
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
654
|
+
type Log = TypedEventLog<Event>;
|
|
655
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
656
|
+
}
|
|
657
|
+
declare namespace TaskCreatedEvent {
|
|
658
|
+
type InputTuple = [
|
|
659
|
+
ctHash: BigNumberish,
|
|
660
|
+
operation: string,
|
|
661
|
+
input1: BigNumberish,
|
|
662
|
+
input2: BigNumberish,
|
|
663
|
+
input3: BigNumberish
|
|
664
|
+
];
|
|
665
|
+
type OutputTuple = [ctHash: bigint, operation: string, input1: bigint, input2: bigint, input3: bigint];
|
|
666
|
+
interface OutputObject {
|
|
667
|
+
ctHash: bigint;
|
|
668
|
+
operation: string;
|
|
669
|
+
input1: bigint;
|
|
670
|
+
input2: bigint;
|
|
671
|
+
input3: bigint;
|
|
672
|
+
}
|
|
673
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
674
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
675
|
+
type Log = TypedEventLog<Event>;
|
|
676
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
677
|
+
}
|
|
678
|
+
interface MockTaskManager extends BaseContract {
|
|
679
|
+
connect(runner?: ContractRunner | null): MockTaskManager;
|
|
680
|
+
waitForDeployment(): Promise<this>;
|
|
681
|
+
interface: MockTaskManagerInterface;
|
|
682
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
683
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
684
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
685
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
686
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
687
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
688
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
689
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
690
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
691
|
+
MOCK_logAllow: TypedContractMethod<[operation: string, ctHash: BigNumberish, account: AddressLike], [void], 'view'>;
|
|
692
|
+
MOCK_setInEuintKey: TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
|
|
693
|
+
acl: TypedContractMethod<[], [string], 'view'>;
|
|
694
|
+
aggregator: TypedContractMethod<[], [string], 'view'>;
|
|
695
|
+
allow: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
|
|
696
|
+
allowForDecryption: TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
|
|
697
|
+
allowGlobal: TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
|
|
698
|
+
allowTransient: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
|
|
699
|
+
createDecryptTask: TypedContractMethod<[ctHash: BigNumberish, arg1: AddressLike], [void], 'nonpayable'>;
|
|
700
|
+
createRandomTask: TypedContractMethod<[
|
|
701
|
+
returnType: BigNumberish,
|
|
702
|
+
seed: BigNumberish,
|
|
703
|
+
securityZone: BigNumberish
|
|
704
|
+
], [
|
|
705
|
+
bigint
|
|
706
|
+
], 'nonpayable'>;
|
|
707
|
+
createTask: TypedContractMethod<[
|
|
708
|
+
returnType: BigNumberish,
|
|
709
|
+
funcId: BigNumberish,
|
|
710
|
+
encryptedHashes: BigNumberish[],
|
|
711
|
+
extraInputs: BigNumberish[]
|
|
712
|
+
], [
|
|
713
|
+
bigint
|
|
714
|
+
], 'nonpayable'>;
|
|
715
|
+
decryptResultSigner: TypedContractMethod<[], [string], 'view'>;
|
|
716
|
+
exists: TypedContractMethod<[], [boolean], 'view'>;
|
|
717
|
+
getDecryptResult: TypedContractMethod<[ctHash: BigNumberish], [bigint], 'view'>;
|
|
718
|
+
getDecryptResultSafe: TypedContractMethod<[
|
|
719
|
+
ctHash: BigNumberish
|
|
720
|
+
], [
|
|
721
|
+
[bigint, boolean] & {
|
|
722
|
+
result: bigint;
|
|
723
|
+
decrypted: boolean;
|
|
724
|
+
}
|
|
725
|
+
], 'view'>;
|
|
726
|
+
handleDecryptResult: TypedContractMethod<[
|
|
727
|
+
ctHash: BigNumberish,
|
|
728
|
+
result: BigNumberish,
|
|
729
|
+
arg2: AddressLike[]
|
|
730
|
+
], [
|
|
731
|
+
void
|
|
732
|
+
], 'nonpayable'>;
|
|
733
|
+
handleError: TypedContractMethod<[
|
|
734
|
+
ctHash: BigNumberish,
|
|
735
|
+
operation: string,
|
|
736
|
+
errorMessage: string
|
|
737
|
+
], [
|
|
738
|
+
void
|
|
739
|
+
], 'nonpayable'>;
|
|
740
|
+
inMockStorage: TypedContractMethod<[arg0: BigNumberish], [boolean], 'view'>;
|
|
741
|
+
initialize: TypedContractMethod<[initialOwner: AddressLike], [void], 'nonpayable'>;
|
|
742
|
+
isAllowed: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
743
|
+
isAllowedWithPermission: TypedContractMethod<[permission: PermissionStruct$1, handle: BigNumberish], [boolean], 'view'>;
|
|
744
|
+
isInitialized: TypedContractMethod<[], [boolean], 'view'>;
|
|
745
|
+
isPubliclyAllowed: TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
|
|
746
|
+
logOps: TypedContractMethod<[], [boolean], 'view'>;
|
|
747
|
+
mockStorage: TypedContractMethod<[arg0: BigNumberish], [bigint], 'view'>;
|
|
748
|
+
publishDecryptResult: TypedContractMethod<[
|
|
749
|
+
ctHash: BigNumberish,
|
|
750
|
+
result: BigNumberish,
|
|
751
|
+
signature: BytesLike
|
|
752
|
+
], [
|
|
753
|
+
void
|
|
754
|
+
], 'nonpayable'>;
|
|
755
|
+
publishDecryptResultBatch: TypedContractMethod<[
|
|
756
|
+
ctHashes: BigNumberish[],
|
|
757
|
+
results: BigNumberish[],
|
|
758
|
+
signatures: BytesLike[]
|
|
759
|
+
], [
|
|
760
|
+
void
|
|
761
|
+
], 'nonpayable'>;
|
|
762
|
+
removeFirstLetter: TypedContractMethod<[str: string], [string], 'view'>;
|
|
763
|
+
setACLContract: TypedContractMethod<[_aclAddress: AddressLike], [void], 'nonpayable'>;
|
|
764
|
+
setAggregator: TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
|
|
765
|
+
setDecryptResultSigner: TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
766
|
+
setLogOps: TypedContractMethod<[_logOps: boolean], [void], 'nonpayable'>;
|
|
767
|
+
setSecurityZoneMax: TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
768
|
+
setSecurityZoneMin: TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
769
|
+
setSecurityZones: TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
|
|
770
|
+
setVerifierSigner: TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
771
|
+
sliceString: TypedContractMethod<[str: string, start: BigNumberish, length: BigNumberish], [string], 'view'>;
|
|
772
|
+
verifyDecryptResult: TypedContractMethod<[
|
|
773
|
+
ctHash: BigNumberish,
|
|
774
|
+
result: BigNumberish,
|
|
775
|
+
signature: BytesLike
|
|
776
|
+
], [
|
|
777
|
+
boolean
|
|
778
|
+
], 'view'>;
|
|
779
|
+
verifyDecryptResultSafe: TypedContractMethod<[
|
|
780
|
+
ctHash: BigNumberish,
|
|
781
|
+
result: BigNumberish,
|
|
782
|
+
signature: BytesLike
|
|
783
|
+
], [
|
|
784
|
+
boolean
|
|
785
|
+
], 'view'>;
|
|
786
|
+
verifyInput: TypedContractMethod<[input: EncryptedInputStruct, sender: AddressLike], [bigint], 'nonpayable'>;
|
|
787
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
788
|
+
getFunction(nameOrSignature: 'MOCK_logAllow'): TypedContractMethod<[operation: string, ctHash: BigNumberish, account: AddressLike], [void], 'view'>;
|
|
789
|
+
getFunction(nameOrSignature: 'MOCK_setInEuintKey'): TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
|
|
790
|
+
getFunction(nameOrSignature: 'acl'): TypedContractMethod<[], [string], 'view'>;
|
|
791
|
+
getFunction(nameOrSignature: 'aggregator'): TypedContractMethod<[], [string], 'view'>;
|
|
792
|
+
getFunction(nameOrSignature: 'allow'): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
|
|
793
|
+
getFunction(nameOrSignature: 'allowForDecryption'): TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
|
|
794
|
+
getFunction(nameOrSignature: 'allowGlobal'): TypedContractMethod<[ctHash: BigNumberish], [void], 'nonpayable'>;
|
|
795
|
+
getFunction(nameOrSignature: 'allowTransient'): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
|
|
796
|
+
getFunction(nameOrSignature: 'createDecryptTask'): TypedContractMethod<[ctHash: BigNumberish, arg1: AddressLike], [void], 'nonpayable'>;
|
|
797
|
+
getFunction(nameOrSignature: 'createRandomTask'): TypedContractMethod<[
|
|
798
|
+
returnType: BigNumberish,
|
|
799
|
+
seed: BigNumberish,
|
|
800
|
+
securityZone: BigNumberish
|
|
801
|
+
], [
|
|
802
|
+
bigint
|
|
803
|
+
], 'nonpayable'>;
|
|
804
|
+
getFunction(nameOrSignature: 'createTask'): TypedContractMethod<[
|
|
805
|
+
returnType: BigNumberish,
|
|
806
|
+
funcId: BigNumberish,
|
|
807
|
+
encryptedHashes: BigNumberish[],
|
|
808
|
+
extraInputs: BigNumberish[]
|
|
809
|
+
], [
|
|
810
|
+
bigint
|
|
811
|
+
], 'nonpayable'>;
|
|
812
|
+
getFunction(nameOrSignature: 'decryptResultSigner'): TypedContractMethod<[], [string], 'view'>;
|
|
813
|
+
getFunction(nameOrSignature: 'exists'): TypedContractMethod<[], [boolean], 'view'>;
|
|
814
|
+
getFunction(nameOrSignature: 'getDecryptResult'): TypedContractMethod<[ctHash: BigNumberish], [bigint], 'view'>;
|
|
815
|
+
getFunction(nameOrSignature: 'getDecryptResultSafe'): TypedContractMethod<[ctHash: BigNumberish], [[bigint, boolean] & {
|
|
816
|
+
result: bigint;
|
|
817
|
+
decrypted: boolean;
|
|
818
|
+
}], 'view'>;
|
|
819
|
+
getFunction(nameOrSignature: 'handleDecryptResult'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, arg2: AddressLike[]], [void], 'nonpayable'>;
|
|
820
|
+
getFunction(nameOrSignature: 'handleError'): TypedContractMethod<[ctHash: BigNumberish, operation: string, errorMessage: string], [void], 'nonpayable'>;
|
|
821
|
+
getFunction(nameOrSignature: 'inMockStorage'): TypedContractMethod<[arg0: BigNumberish], [boolean], 'view'>;
|
|
822
|
+
getFunction(nameOrSignature: 'initialize'): TypedContractMethod<[initialOwner: AddressLike], [void], 'nonpayable'>;
|
|
823
|
+
getFunction(nameOrSignature: 'isAllowed'): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [boolean], 'view'>;
|
|
824
|
+
getFunction(nameOrSignature: 'isAllowedWithPermission'): TypedContractMethod<[permission: PermissionStruct$1, handle: BigNumberish], [boolean], 'view'>;
|
|
825
|
+
getFunction(nameOrSignature: 'isInitialized'): TypedContractMethod<[], [boolean], 'view'>;
|
|
826
|
+
getFunction(nameOrSignature: 'isPubliclyAllowed'): TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
|
|
827
|
+
getFunction(nameOrSignature: 'logOps'): TypedContractMethod<[], [boolean], 'view'>;
|
|
828
|
+
getFunction(nameOrSignature: 'mockStorage'): TypedContractMethod<[arg0: BigNumberish], [bigint], 'view'>;
|
|
829
|
+
getFunction(nameOrSignature: 'publishDecryptResult'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [void], 'nonpayable'>;
|
|
830
|
+
getFunction(nameOrSignature: 'publishDecryptResultBatch'): TypedContractMethod<[
|
|
831
|
+
ctHashes: BigNumberish[],
|
|
832
|
+
results: BigNumberish[],
|
|
833
|
+
signatures: BytesLike[]
|
|
834
|
+
], [
|
|
835
|
+
void
|
|
836
|
+
], 'nonpayable'>;
|
|
837
|
+
getFunction(nameOrSignature: 'removeFirstLetter'): TypedContractMethod<[str: string], [string], 'view'>;
|
|
838
|
+
getFunction(nameOrSignature: 'setACLContract'): TypedContractMethod<[_aclAddress: AddressLike], [void], 'nonpayable'>;
|
|
839
|
+
getFunction(nameOrSignature: 'setAggregator'): TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
|
|
840
|
+
getFunction(nameOrSignature: 'setDecryptResultSigner'): TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
841
|
+
getFunction(nameOrSignature: 'setLogOps'): TypedContractMethod<[_logOps: boolean], [void], 'nonpayable'>;
|
|
842
|
+
getFunction(nameOrSignature: 'setSecurityZoneMax'): TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
843
|
+
getFunction(nameOrSignature: 'setSecurityZoneMin'): TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
|
|
844
|
+
getFunction(nameOrSignature: 'setSecurityZones'): TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
|
|
845
|
+
getFunction(nameOrSignature: 'setVerifierSigner'): TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
|
|
846
|
+
getFunction(nameOrSignature: 'sliceString'): TypedContractMethod<[str: string, start: BigNumberish, length: BigNumberish], [string], 'view'>;
|
|
847
|
+
getFunction(nameOrSignature: 'verifyDecryptResult'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
|
|
848
|
+
getFunction(nameOrSignature: 'verifyDecryptResultSafe'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
|
|
849
|
+
getFunction(nameOrSignature: 'verifyInput'): TypedContractMethod<[input: EncryptedInputStruct, sender: AddressLike], [bigint], 'nonpayable'>;
|
|
850
|
+
getEvent(key: 'DecryptionResult'): TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
|
|
851
|
+
getEvent(key: 'ProtocolNotification'): TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
|
|
852
|
+
getEvent(key: 'TaskCreated'): TypedContractEvent<TaskCreatedEvent.InputTuple, TaskCreatedEvent.OutputTuple, TaskCreatedEvent.OutputObject>;
|
|
853
|
+
filters: {
|
|
854
|
+
'DecryptionResult(uint256,uint256,address)': TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
|
|
855
|
+
DecryptionResult: TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
|
|
856
|
+
'ProtocolNotification(uint256,string,string)': TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
|
|
857
|
+
ProtocolNotification: TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
|
|
858
|
+
'TaskCreated(uint256,string,uint256,uint256,uint256)': TypedContractEvent<TaskCreatedEvent.InputTuple, TaskCreatedEvent.OutputTuple, TaskCreatedEvent.OutputObject>;
|
|
859
|
+
TaskCreated: TypedContractEvent<TaskCreatedEvent.InputTuple, TaskCreatedEvent.OutputTuple, TaskCreatedEvent.OutputObject>;
|
|
860
|
+
};
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
type PermissionStruct = {
|
|
864
|
+
issuer: AddressLike;
|
|
865
|
+
expiration: BigNumberish;
|
|
866
|
+
recipient: AddressLike;
|
|
867
|
+
validatorId: BigNumberish;
|
|
868
|
+
validatorContract: AddressLike;
|
|
869
|
+
sealingKey: BytesLike;
|
|
870
|
+
issuerSignature: BytesLike;
|
|
871
|
+
recipientSignature: BytesLike;
|
|
872
|
+
};
|
|
873
|
+
interface MockThresholdNetworkInterface extends Interface {
|
|
874
|
+
getFunction(nameOrSignature: 'decodeLowLevelReversion' | 'decryptForTxWithPermit' | 'decryptForTxWithoutPermit' | 'exists' | 'initialize' | 'mockAcl' | 'mockQueryDecrypt' | 'mockTaskManager' | 'queryDecrypt' | 'querySealOutput' | 'seal' | 'unseal'): FunctionFragment;
|
|
875
|
+
encodeFunctionData(functionFragment: 'decodeLowLevelReversion', values: [BytesLike]): string;
|
|
876
|
+
encodeFunctionData(functionFragment: 'decryptForTxWithPermit', values: [BigNumberish, PermissionStruct]): string;
|
|
877
|
+
encodeFunctionData(functionFragment: 'decryptForTxWithoutPermit', values: [BigNumberish]): string;
|
|
878
|
+
encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
|
|
879
|
+
encodeFunctionData(functionFragment: 'initialize', values: [AddressLike, AddressLike]): string;
|
|
880
|
+
encodeFunctionData(functionFragment: 'mockAcl', values?: undefined): string;
|
|
881
|
+
encodeFunctionData(functionFragment: 'mockQueryDecrypt', values: [BigNumberish, BigNumberish, AddressLike]): string;
|
|
882
|
+
encodeFunctionData(functionFragment: 'mockTaskManager', values?: undefined): string;
|
|
883
|
+
encodeFunctionData(functionFragment: 'queryDecrypt', values: [BigNumberish, BigNumberish, PermissionStruct]): string;
|
|
884
|
+
encodeFunctionData(functionFragment: 'querySealOutput', values: [BigNumberish, BigNumberish, PermissionStruct]): string;
|
|
885
|
+
encodeFunctionData(functionFragment: 'seal', values: [BigNumberish, BytesLike]): string;
|
|
886
|
+
encodeFunctionData(functionFragment: 'unseal', values: [BytesLike, BytesLike]): string;
|
|
887
|
+
decodeFunctionResult(functionFragment: 'decodeLowLevelReversion', data: BytesLike): Result;
|
|
888
|
+
decodeFunctionResult(functionFragment: 'decryptForTxWithPermit', data: BytesLike): Result;
|
|
889
|
+
decodeFunctionResult(functionFragment: 'decryptForTxWithoutPermit', data: BytesLike): Result;
|
|
890
|
+
decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
|
|
891
|
+
decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
|
|
892
|
+
decodeFunctionResult(functionFragment: 'mockAcl', data: BytesLike): Result;
|
|
893
|
+
decodeFunctionResult(functionFragment: 'mockQueryDecrypt', data: BytesLike): Result;
|
|
894
|
+
decodeFunctionResult(functionFragment: 'mockTaskManager', data: BytesLike): Result;
|
|
895
|
+
decodeFunctionResult(functionFragment: 'queryDecrypt', data: BytesLike): Result;
|
|
896
|
+
decodeFunctionResult(functionFragment: 'querySealOutput', data: BytesLike): Result;
|
|
897
|
+
decodeFunctionResult(functionFragment: 'seal', data: BytesLike): Result;
|
|
898
|
+
decodeFunctionResult(functionFragment: 'unseal', data: BytesLike): Result;
|
|
899
|
+
}
|
|
900
|
+
interface MockThresholdNetwork extends BaseContract {
|
|
901
|
+
connect(runner?: ContractRunner | null): MockThresholdNetwork;
|
|
902
|
+
waitForDeployment(): Promise<this>;
|
|
903
|
+
interface: MockThresholdNetworkInterface;
|
|
904
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
905
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
906
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
907
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
908
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
909
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
910
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
911
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
912
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
913
|
+
decodeLowLevelReversion: TypedContractMethod<[data: BytesLike], [string], 'view'>;
|
|
914
|
+
decryptForTxWithPermit: TypedContractMethod<[
|
|
915
|
+
ctHash: BigNumberish,
|
|
916
|
+
permission: PermissionStruct
|
|
917
|
+
], [
|
|
918
|
+
[
|
|
919
|
+
boolean,
|
|
920
|
+
string,
|
|
921
|
+
bigint
|
|
922
|
+
] & {
|
|
923
|
+
allowed: boolean;
|
|
924
|
+
error: string;
|
|
925
|
+
decryptedValue: bigint;
|
|
926
|
+
}
|
|
927
|
+
], 'view'>;
|
|
928
|
+
decryptForTxWithoutPermit: TypedContractMethod<[
|
|
929
|
+
ctHash: BigNumberish
|
|
930
|
+
], [
|
|
931
|
+
[
|
|
932
|
+
boolean,
|
|
933
|
+
string,
|
|
934
|
+
bigint
|
|
935
|
+
] & {
|
|
936
|
+
allowed: boolean;
|
|
937
|
+
error: string;
|
|
938
|
+
decryptedValue: bigint;
|
|
939
|
+
}
|
|
940
|
+
], 'view'>;
|
|
941
|
+
exists: TypedContractMethod<[], [boolean], 'view'>;
|
|
942
|
+
initialize: TypedContractMethod<[_taskManager: AddressLike, _acl: AddressLike], [void], 'nonpayable'>;
|
|
943
|
+
mockAcl: TypedContractMethod<[], [string], 'view'>;
|
|
944
|
+
mockQueryDecrypt: TypedContractMethod<[
|
|
945
|
+
ctHash: BigNumberish,
|
|
946
|
+
arg1: BigNumberish,
|
|
947
|
+
issuer: AddressLike
|
|
948
|
+
], [
|
|
949
|
+
[boolean, string, bigint] & {
|
|
950
|
+
allowed: boolean;
|
|
951
|
+
error: string;
|
|
952
|
+
}
|
|
953
|
+
], 'view'>;
|
|
954
|
+
mockTaskManager: TypedContractMethod<[], [string], 'view'>;
|
|
955
|
+
queryDecrypt: TypedContractMethod<[
|
|
956
|
+
ctHash: BigNumberish,
|
|
957
|
+
arg1: BigNumberish,
|
|
958
|
+
permission: PermissionStruct
|
|
959
|
+
], [
|
|
960
|
+
[boolean, string, bigint] & {
|
|
961
|
+
allowed: boolean;
|
|
962
|
+
error: string;
|
|
963
|
+
}
|
|
964
|
+
], 'view'>;
|
|
965
|
+
querySealOutput: TypedContractMethod<[
|
|
966
|
+
ctHash: BigNumberish,
|
|
967
|
+
arg1: BigNumberish,
|
|
968
|
+
permission: PermissionStruct
|
|
969
|
+
], [
|
|
970
|
+
[boolean, string, string] & {
|
|
971
|
+
allowed: boolean;
|
|
972
|
+
error: string;
|
|
973
|
+
}
|
|
974
|
+
], 'view'>;
|
|
975
|
+
seal: TypedContractMethod<[input: BigNumberish, key: BytesLike], [string], 'view'>;
|
|
976
|
+
unseal: TypedContractMethod<[hashed: BytesLike, key: BytesLike], [bigint], 'view'>;
|
|
977
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
978
|
+
getFunction(nameOrSignature: 'decodeLowLevelReversion'): TypedContractMethod<[data: BytesLike], [string], 'view'>;
|
|
979
|
+
getFunction(nameOrSignature: 'decryptForTxWithPermit'): TypedContractMethod<[
|
|
980
|
+
ctHash: BigNumberish,
|
|
981
|
+
permission: PermissionStruct
|
|
982
|
+
], [
|
|
983
|
+
[
|
|
984
|
+
boolean,
|
|
985
|
+
string,
|
|
986
|
+
bigint
|
|
987
|
+
] & {
|
|
988
|
+
allowed: boolean;
|
|
989
|
+
error: string;
|
|
990
|
+
decryptedValue: bigint;
|
|
991
|
+
}
|
|
992
|
+
], 'view'>;
|
|
993
|
+
getFunction(nameOrSignature: 'decryptForTxWithoutPermit'): TypedContractMethod<[
|
|
994
|
+
ctHash: BigNumberish
|
|
995
|
+
], [
|
|
996
|
+
[
|
|
997
|
+
boolean,
|
|
998
|
+
string,
|
|
999
|
+
bigint
|
|
1000
|
+
] & {
|
|
1001
|
+
allowed: boolean;
|
|
1002
|
+
error: string;
|
|
1003
|
+
decryptedValue: bigint;
|
|
1004
|
+
}
|
|
1005
|
+
], 'view'>;
|
|
1006
|
+
getFunction(nameOrSignature: 'exists'): TypedContractMethod<[], [boolean], 'view'>;
|
|
1007
|
+
getFunction(nameOrSignature: 'initialize'): TypedContractMethod<[_taskManager: AddressLike, _acl: AddressLike], [void], 'nonpayable'>;
|
|
1008
|
+
getFunction(nameOrSignature: 'mockAcl'): TypedContractMethod<[], [string], 'view'>;
|
|
1009
|
+
getFunction(nameOrSignature: 'mockQueryDecrypt'): TypedContractMethod<[
|
|
1010
|
+
ctHash: BigNumberish,
|
|
1011
|
+
arg1: BigNumberish,
|
|
1012
|
+
issuer: AddressLike
|
|
1013
|
+
], [
|
|
1014
|
+
[boolean, string, bigint] & {
|
|
1015
|
+
allowed: boolean;
|
|
1016
|
+
error: string;
|
|
1017
|
+
}
|
|
1018
|
+
], 'view'>;
|
|
1019
|
+
getFunction(nameOrSignature: 'mockTaskManager'): TypedContractMethod<[], [string], 'view'>;
|
|
1020
|
+
getFunction(nameOrSignature: 'queryDecrypt'): TypedContractMethod<[
|
|
1021
|
+
ctHash: BigNumberish,
|
|
1022
|
+
arg1: BigNumberish,
|
|
1023
|
+
permission: PermissionStruct
|
|
1024
|
+
], [
|
|
1025
|
+
[boolean, string, bigint] & {
|
|
1026
|
+
allowed: boolean;
|
|
1027
|
+
error: string;
|
|
1028
|
+
}
|
|
1029
|
+
], 'view'>;
|
|
1030
|
+
getFunction(nameOrSignature: 'querySealOutput'): TypedContractMethod<[
|
|
1031
|
+
ctHash: BigNumberish,
|
|
1032
|
+
arg1: BigNumberish,
|
|
1033
|
+
permission: PermissionStruct
|
|
1034
|
+
], [
|
|
1035
|
+
[boolean, string, string] & {
|
|
1036
|
+
allowed: boolean;
|
|
1037
|
+
error: string;
|
|
1038
|
+
}
|
|
1039
|
+
], 'view'>;
|
|
1040
|
+
getFunction(nameOrSignature: 'seal'): TypedContractMethod<[input: BigNumberish, key: BytesLike], [string], 'view'>;
|
|
1041
|
+
getFunction(nameOrSignature: 'unseal'): TypedContractMethod<[hashed: BytesLike, key: BytesLike], [bigint], 'view'>;
|
|
1042
|
+
filters: {};
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
type EncryptedInputStructOutput = [ctHash: bigint, securityZone: bigint, utype: bigint, signature: string] & {
|
|
1046
|
+
ctHash: bigint;
|
|
1047
|
+
securityZone: bigint;
|
|
1048
|
+
utype: bigint;
|
|
1049
|
+
signature: string;
|
|
1050
|
+
};
|
|
1051
|
+
interface MockZkVerifierInterface extends Interface {
|
|
1052
|
+
getFunction(nameOrSignature: 'exists' | 'insertCtHash' | 'insertPackedCtHashes' | 'zkVerify' | 'zkVerifyCalcCtHash' | 'zkVerifyCalcCtHashesPacked' | 'zkVerifyPacked'): FunctionFragment;
|
|
1053
|
+
encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
|
|
1054
|
+
encodeFunctionData(functionFragment: 'insertCtHash', values: [BigNumberish, BigNumberish]): string;
|
|
1055
|
+
encodeFunctionData(functionFragment: 'insertPackedCtHashes', values: [BigNumberish[], BigNumberish[]]): string;
|
|
1056
|
+
encodeFunctionData(functionFragment: 'zkVerify', values: [BigNumberish, BigNumberish, AddressLike, BigNumberish, BigNumberish]): string;
|
|
1057
|
+
encodeFunctionData(functionFragment: 'zkVerifyCalcCtHash', values: [BigNumberish, BigNumberish, AddressLike, BigNumberish, BigNumberish]): string;
|
|
1058
|
+
encodeFunctionData(functionFragment: 'zkVerifyCalcCtHashesPacked', values: [BigNumberish[], BigNumberish[], AddressLike, BigNumberish, BigNumberish]): string;
|
|
1059
|
+
encodeFunctionData(functionFragment: 'zkVerifyPacked', values: [BigNumberish[], BigNumberish[], AddressLike, BigNumberish, BigNumberish]): string;
|
|
1060
|
+
decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
|
|
1061
|
+
decodeFunctionResult(functionFragment: 'insertCtHash', data: BytesLike): Result;
|
|
1062
|
+
decodeFunctionResult(functionFragment: 'insertPackedCtHashes', data: BytesLike): Result;
|
|
1063
|
+
decodeFunctionResult(functionFragment: 'zkVerify', data: BytesLike): Result;
|
|
1064
|
+
decodeFunctionResult(functionFragment: 'zkVerifyCalcCtHash', data: BytesLike): Result;
|
|
1065
|
+
decodeFunctionResult(functionFragment: 'zkVerifyCalcCtHashesPacked', data: BytesLike): Result;
|
|
1066
|
+
decodeFunctionResult(functionFragment: 'zkVerifyPacked', data: BytesLike): Result;
|
|
1067
|
+
}
|
|
1068
|
+
interface MockZkVerifier extends BaseContract {
|
|
1069
|
+
connect(runner?: ContractRunner | null): MockZkVerifier;
|
|
1070
|
+
waitForDeployment(): Promise<this>;
|
|
1071
|
+
interface: MockZkVerifierInterface;
|
|
1072
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1073
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1074
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1075
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1076
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1077
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1078
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
1079
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
1080
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
1081
|
+
exists: TypedContractMethod<[], [boolean], 'view'>;
|
|
1082
|
+
insertCtHash: TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
|
|
1083
|
+
insertPackedCtHashes: TypedContractMethod<[ctHashes: BigNumberish[], values: BigNumberish[]], [void], 'nonpayable'>;
|
|
1084
|
+
zkVerify: TypedContractMethod<[
|
|
1085
|
+
value: BigNumberish,
|
|
1086
|
+
utype: BigNumberish,
|
|
1087
|
+
user: AddressLike,
|
|
1088
|
+
securityZone: BigNumberish,
|
|
1089
|
+
arg4: BigNumberish
|
|
1090
|
+
], [
|
|
1091
|
+
EncryptedInputStructOutput
|
|
1092
|
+
], 'nonpayable'>;
|
|
1093
|
+
zkVerifyCalcCtHash: TypedContractMethod<[
|
|
1094
|
+
value: BigNumberish,
|
|
1095
|
+
utype: BigNumberish,
|
|
1096
|
+
user: AddressLike,
|
|
1097
|
+
securityZone: BigNumberish,
|
|
1098
|
+
arg4: BigNumberish
|
|
1099
|
+
], [
|
|
1100
|
+
bigint
|
|
1101
|
+
], 'view'>;
|
|
1102
|
+
zkVerifyCalcCtHashesPacked: TypedContractMethod<[
|
|
1103
|
+
values: BigNumberish[],
|
|
1104
|
+
utypes: BigNumberish[],
|
|
1105
|
+
user: AddressLike,
|
|
1106
|
+
securityZone: BigNumberish,
|
|
1107
|
+
chainId: BigNumberish
|
|
1108
|
+
], [
|
|
1109
|
+
bigint[]
|
|
1110
|
+
], 'view'>;
|
|
1111
|
+
zkVerifyPacked: TypedContractMethod<[
|
|
1112
|
+
values: BigNumberish[],
|
|
1113
|
+
utypes: BigNumberish[],
|
|
1114
|
+
user: AddressLike,
|
|
1115
|
+
securityZone: BigNumberish,
|
|
1116
|
+
chainId: BigNumberish
|
|
1117
|
+
], [
|
|
1118
|
+
EncryptedInputStructOutput[]
|
|
1119
|
+
], 'nonpayable'>;
|
|
1120
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
1121
|
+
getFunction(nameOrSignature: 'exists'): TypedContractMethod<[], [boolean], 'view'>;
|
|
1122
|
+
getFunction(nameOrSignature: 'insertCtHash'): TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
|
|
1123
|
+
getFunction(nameOrSignature: 'insertPackedCtHashes'): TypedContractMethod<[ctHashes: BigNumberish[], values: BigNumberish[]], [void], 'nonpayable'>;
|
|
1124
|
+
getFunction(nameOrSignature: 'zkVerify'): TypedContractMethod<[
|
|
1125
|
+
value: BigNumberish,
|
|
1126
|
+
utype: BigNumberish,
|
|
1127
|
+
user: AddressLike,
|
|
1128
|
+
securityZone: BigNumberish,
|
|
1129
|
+
arg4: BigNumberish
|
|
1130
|
+
], [
|
|
1131
|
+
EncryptedInputStructOutput
|
|
1132
|
+
], 'nonpayable'>;
|
|
1133
|
+
getFunction(nameOrSignature: 'zkVerifyCalcCtHash'): TypedContractMethod<[
|
|
1134
|
+
value: BigNumberish,
|
|
1135
|
+
utype: BigNumberish,
|
|
1136
|
+
user: AddressLike,
|
|
1137
|
+
securityZone: BigNumberish,
|
|
1138
|
+
arg4: BigNumberish
|
|
1139
|
+
], [
|
|
1140
|
+
bigint
|
|
1141
|
+
], 'view'>;
|
|
1142
|
+
getFunction(nameOrSignature: 'zkVerifyCalcCtHashesPacked'): TypedContractMethod<[
|
|
1143
|
+
values: BigNumberish[],
|
|
1144
|
+
utypes: BigNumberish[],
|
|
1145
|
+
user: AddressLike,
|
|
1146
|
+
securityZone: BigNumberish,
|
|
1147
|
+
chainId: BigNumberish
|
|
1148
|
+
], [
|
|
1149
|
+
bigint[]
|
|
1150
|
+
], 'view'>;
|
|
1151
|
+
getFunction(nameOrSignature: 'zkVerifyPacked'): TypedContractMethod<[
|
|
1152
|
+
values: BigNumberish[],
|
|
1153
|
+
utypes: BigNumberish[],
|
|
1154
|
+
user: AddressLike,
|
|
1155
|
+
securityZone: BigNumberish,
|
|
1156
|
+
chainId: BigNumberish
|
|
1157
|
+
], [
|
|
1158
|
+
EncryptedInputStructOutput[]
|
|
1159
|
+
], 'nonpayable'>;
|
|
1160
|
+
filters: {};
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
type InEuint32Struct = {
|
|
1164
|
+
ctHash: BigNumberish;
|
|
1165
|
+
securityZone: BigNumberish;
|
|
1166
|
+
utype: BigNumberish;
|
|
1167
|
+
signature: BytesLike;
|
|
1168
|
+
};
|
|
1169
|
+
interface TestBedInterface extends Interface {
|
|
1170
|
+
getFunction(nameOrSignature: 'add' | 'decrypt' | 'eNumber' | 'exists' | 'getDecryptResult' | 'getDecryptResultSafe' | 'increment' | 'mul' | 'numberHash' | 'publishDecryptResult' | 'setNumber' | 'setNumberTrivial' | 'sub'): FunctionFragment;
|
|
1171
|
+
encodeFunctionData(functionFragment: 'add', values: [InEuint32Struct]): string;
|
|
1172
|
+
encodeFunctionData(functionFragment: 'decrypt', values?: undefined): string;
|
|
1173
|
+
encodeFunctionData(functionFragment: 'eNumber', values?: undefined): string;
|
|
1174
|
+
encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
|
|
1175
|
+
encodeFunctionData(functionFragment: 'getDecryptResult', values: [BytesLike]): string;
|
|
1176
|
+
encodeFunctionData(functionFragment: 'getDecryptResultSafe', values: [BytesLike]): string;
|
|
1177
|
+
encodeFunctionData(functionFragment: 'increment', values?: undefined): string;
|
|
1178
|
+
encodeFunctionData(functionFragment: 'mul', values: [InEuint32Struct]): string;
|
|
1179
|
+
encodeFunctionData(functionFragment: 'numberHash', values?: undefined): string;
|
|
1180
|
+
encodeFunctionData(functionFragment: 'publishDecryptResult', values: [BytesLike, BigNumberish, BytesLike]): string;
|
|
1181
|
+
encodeFunctionData(functionFragment: 'setNumber', values: [InEuint32Struct]): string;
|
|
1182
|
+
encodeFunctionData(functionFragment: 'setNumberTrivial', values: [BigNumberish]): string;
|
|
1183
|
+
encodeFunctionData(functionFragment: 'sub', values: [InEuint32Struct]): string;
|
|
1184
|
+
decodeFunctionResult(functionFragment: 'add', data: BytesLike): Result;
|
|
1185
|
+
decodeFunctionResult(functionFragment: 'decrypt', data: BytesLike): Result;
|
|
1186
|
+
decodeFunctionResult(functionFragment: 'eNumber', data: BytesLike): Result;
|
|
1187
|
+
decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
|
|
1188
|
+
decodeFunctionResult(functionFragment: 'getDecryptResult', data: BytesLike): Result;
|
|
1189
|
+
decodeFunctionResult(functionFragment: 'getDecryptResultSafe', data: BytesLike): Result;
|
|
1190
|
+
decodeFunctionResult(functionFragment: 'increment', data: BytesLike): Result;
|
|
1191
|
+
decodeFunctionResult(functionFragment: 'mul', data: BytesLike): Result;
|
|
1192
|
+
decodeFunctionResult(functionFragment: 'numberHash', data: BytesLike): Result;
|
|
1193
|
+
decodeFunctionResult(functionFragment: 'publishDecryptResult', data: BytesLike): Result;
|
|
1194
|
+
decodeFunctionResult(functionFragment: 'setNumber', data: BytesLike): Result;
|
|
1195
|
+
decodeFunctionResult(functionFragment: 'setNumberTrivial', data: BytesLike): Result;
|
|
1196
|
+
decodeFunctionResult(functionFragment: 'sub', data: BytesLike): Result;
|
|
1197
|
+
}
|
|
1198
|
+
interface TestBed extends BaseContract {
|
|
1199
|
+
connect(runner?: ContractRunner | null): TestBed;
|
|
1200
|
+
waitForDeployment(): Promise<this>;
|
|
1201
|
+
interface: TestBedInterface;
|
|
1202
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1203
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
1204
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1205
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1206
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1207
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
1208
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
1209
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
1210
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
1211
|
+
add: TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
1212
|
+
decrypt: TypedContractMethod<[], [void], 'nonpayable'>;
|
|
1213
|
+
eNumber: TypedContractMethod<[], [string], 'view'>;
|
|
1214
|
+
exists: TypedContractMethod<[], [boolean], 'view'>;
|
|
1215
|
+
getDecryptResult: TypedContractMethod<[input1: BytesLike], [bigint], 'view'>;
|
|
1216
|
+
getDecryptResultSafe: TypedContractMethod<[
|
|
1217
|
+
input1: BytesLike
|
|
1218
|
+
], [
|
|
1219
|
+
[bigint, boolean] & {
|
|
1220
|
+
value: bigint;
|
|
1221
|
+
decrypted: boolean;
|
|
1222
|
+
}
|
|
1223
|
+
], 'view'>;
|
|
1224
|
+
increment: TypedContractMethod<[], [void], 'nonpayable'>;
|
|
1225
|
+
mul: TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
1226
|
+
numberHash: TypedContractMethod<[], [string], 'view'>;
|
|
1227
|
+
publishDecryptResult: TypedContractMethod<[
|
|
1228
|
+
input: BytesLike,
|
|
1229
|
+
result: BigNumberish,
|
|
1230
|
+
signature: BytesLike
|
|
1231
|
+
], [
|
|
1232
|
+
void
|
|
1233
|
+
], 'nonpayable'>;
|
|
1234
|
+
setNumber: TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
1235
|
+
setNumberTrivial: TypedContractMethod<[inNumber: BigNumberish], [void], 'nonpayable'>;
|
|
1236
|
+
sub: TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
1237
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
1238
|
+
getFunction(nameOrSignature: 'add'): TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
1239
|
+
getFunction(nameOrSignature: 'decrypt'): TypedContractMethod<[], [void], 'nonpayable'>;
|
|
1240
|
+
getFunction(nameOrSignature: 'eNumber'): TypedContractMethod<[], [string], 'view'>;
|
|
1241
|
+
getFunction(nameOrSignature: 'exists'): TypedContractMethod<[], [boolean], 'view'>;
|
|
1242
|
+
getFunction(nameOrSignature: 'getDecryptResult'): TypedContractMethod<[input1: BytesLike], [bigint], 'view'>;
|
|
1243
|
+
getFunction(nameOrSignature: 'getDecryptResultSafe'): TypedContractMethod<[input1: BytesLike], [[bigint, boolean] & {
|
|
1244
|
+
value: bigint;
|
|
1245
|
+
decrypted: boolean;
|
|
1246
|
+
}], 'view'>;
|
|
1247
|
+
getFunction(nameOrSignature: 'increment'): TypedContractMethod<[], [void], 'nonpayable'>;
|
|
1248
|
+
getFunction(nameOrSignature: 'mul'): TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
1249
|
+
getFunction(nameOrSignature: 'numberHash'): TypedContractMethod<[], [string], 'view'>;
|
|
1250
|
+
getFunction(nameOrSignature: 'publishDecryptResult'): TypedContractMethod<[input: BytesLike, result: BigNumberish, signature: BytesLike], [void], 'nonpayable'>;
|
|
1251
|
+
getFunction(nameOrSignature: 'setNumber'): TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
1252
|
+
getFunction(nameOrSignature: 'setNumberTrivial'): TypedContractMethod<[inNumber: BigNumberish], [void], 'nonpayable'>;
|
|
1253
|
+
getFunction(nameOrSignature: 'sub'): TypedContractMethod<[inNumber: InEuint32Struct], [void], 'nonpayable'>;
|
|
1254
|
+
filters: {};
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
export { type MockACL, MockACLArtifact, type MockArtifact, type MockTaskManager, MockTaskManagerArtifact, type MockThresholdNetwork, MockThresholdNetworkArtifact, type MockZkVerifier, MockZkVerifierArtifact, type TestBed, TestBedArtifact };
|