@cofhe/mock-contracts 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -10,14 +10,123 @@ type MockArtifact = {
10
10
  isFixed: false;
11
11
  });
12
12
 
13
+ declare const MockCoFHEAddressBookArtifact: {
14
+ readonly contractName: "MockCoFHEAddressBook";
15
+ readonly isFixed: true;
16
+ readonly fixedAddress: "0xC0F4e00E531a2B086492Ae3DCC1515038307196b";
17
+ readonly abi: readonly [{
18
+ readonly type: "function";
19
+ readonly name: "exists";
20
+ readonly inputs: readonly [];
21
+ readonly outputs: readonly [{
22
+ readonly name: "";
23
+ readonly type: "bool";
24
+ readonly internalType: "bool";
25
+ }];
26
+ readonly stateMutability: "pure";
27
+ }, {
28
+ readonly type: "function";
29
+ readonly name: "getTm";
30
+ readonly inputs: readonly [{
31
+ readonly name: "id";
32
+ readonly type: "uint256";
33
+ readonly internalType: "uint256";
34
+ }];
35
+ readonly outputs: readonly [{
36
+ readonly name: "tm";
37
+ readonly type: "address";
38
+ readonly internalType: "address";
39
+ }];
40
+ readonly stateMutability: "view";
41
+ }, {
42
+ readonly type: "function";
43
+ readonly name: "setTm";
44
+ readonly inputs: readonly [{
45
+ readonly name: "id";
46
+ readonly type: "uint256";
47
+ readonly internalType: "uint256";
48
+ }, {
49
+ readonly name: "tm";
50
+ readonly type: "address";
51
+ readonly internalType: "address";
52
+ }];
53
+ readonly outputs: readonly [];
54
+ readonly stateMutability: "nonpayable";
55
+ }, {
56
+ readonly type: "function";
57
+ readonly name: "unsetTm";
58
+ readonly inputs: readonly [{
59
+ readonly name: "id";
60
+ readonly type: "uint256";
61
+ readonly internalType: "uint256";
62
+ }];
63
+ readonly outputs: readonly [];
64
+ readonly stateMutability: "nonpayable";
65
+ }, {
66
+ readonly type: "event";
67
+ readonly name: "TaskManagerSet";
68
+ readonly inputs: readonly [{
69
+ readonly name: "id";
70
+ readonly type: "uint256";
71
+ readonly indexed: true;
72
+ readonly internalType: "uint256";
73
+ }, {
74
+ readonly name: "previous";
75
+ readonly type: "address";
76
+ readonly indexed: true;
77
+ readonly internalType: "address";
78
+ }, {
79
+ readonly name: "current";
80
+ readonly type: "address";
81
+ readonly indexed: true;
82
+ readonly internalType: "address";
83
+ }];
84
+ readonly anonymous: false;
85
+ }, {
86
+ readonly type: "error";
87
+ readonly name: "InvalidAddress";
88
+ readonly inputs: readonly [];
89
+ }, {
90
+ readonly type: "error";
91
+ readonly name: "TaskManagerNotSet";
92
+ readonly inputs: readonly [{
93
+ readonly name: "id";
94
+ readonly type: "uint256";
95
+ readonly internalType: "uint256";
96
+ }];
97
+ }];
98
+ };
99
+
13
100
  declare const MockTaskManagerArtifact: {
14
101
  readonly contractName: "MockTaskManager";
15
102
  readonly isFixed: true;
16
- readonly fixedAddress: "0xeA30c4B8b44078Bbf8a6ef5b9f1eC1626C7848D9";
103
+ readonly fixedAddress: "0x0000000000000000000000000000000000005000";
17
104
  readonly abi: readonly [{
18
105
  readonly type: "constructor";
19
106
  readonly inputs: readonly [];
20
107
  readonly stateMutability: "nonpayable";
108
+ }, {
109
+ readonly type: "function";
110
+ readonly name: "MOCK_dispatchOperation";
111
+ readonly inputs: readonly [{
112
+ readonly name: "ctHash";
113
+ readonly type: "uint256";
114
+ readonly internalType: "uint256";
115
+ }, {
116
+ readonly name: "funcId";
117
+ readonly type: "uint8";
118
+ readonly internalType: "enum FunctionId";
119
+ }, {
120
+ readonly name: "inputs";
121
+ readonly type: "uint256[]";
122
+ readonly internalType: "uint256[]";
123
+ }, {
124
+ readonly name: "arity";
125
+ readonly type: "uint8";
126
+ readonly internalType: "uint8";
127
+ }];
128
+ readonly outputs: readonly [];
129
+ readonly stateMutability: "nonpayable";
21
130
  }, {
22
131
  readonly type: "function";
23
132
  readonly name: "MOCK_logAllow";
@@ -442,6 +551,16 @@ declare const MockTaskManagerArtifact: {
442
551
  readonly internalType: "bool";
443
552
  }];
444
553
  readonly stateMutability: "view";
554
+ }, {
555
+ readonly type: "function";
556
+ readonly name: "mockGasExcluded";
557
+ readonly inputs: readonly [];
558
+ readonly outputs: readonly [{
559
+ readonly name: "";
560
+ readonly type: "bool";
561
+ readonly internalType: "bool";
562
+ }];
563
+ readonly stateMutability: "view";
445
564
  }, {
446
565
  readonly type: "function";
447
566
  readonly name: "mockStorage";
@@ -560,6 +679,16 @@ declare const MockTaskManagerArtifact: {
560
679
  }];
561
680
  readonly outputs: readonly [];
562
681
  readonly stateMutability: "nonpayable";
682
+ }, {
683
+ readonly type: "function";
684
+ readonly name: "setMockGasExcluded";
685
+ readonly inputs: readonly [{
686
+ readonly name: "_mockGasExcluded";
687
+ readonly type: "bool";
688
+ readonly internalType: "bool";
689
+ }];
690
+ readonly outputs: readonly [];
691
+ readonly stateMutability: "nonpayable";
563
692
  }, {
564
693
  readonly type: "function";
565
694
  readonly name: "setSecurityZoneMax";
@@ -748,6 +877,16 @@ declare const MockTaskManagerArtifact: {
748
877
  readonly internalType: "address";
749
878
  }];
750
879
  readonly anonymous: false;
880
+ }, {
881
+ readonly type: "event";
882
+ readonly name: "MockGasConsumed";
883
+ readonly inputs: readonly [{
884
+ readonly name: "gas";
885
+ readonly type: "uint256";
886
+ readonly indexed: false;
887
+ readonly internalType: "uint256";
888
+ }];
889
+ readonly anonymous: false;
751
890
  }, {
752
891
  readonly type: "event";
753
892
  readonly name: "ProtocolNotification";
@@ -982,6 +1121,10 @@ declare const MockTaskManagerArtifact: {
982
1121
  readonly type: "address";
983
1122
  readonly internalType: "address";
984
1123
  }];
1124
+ }, {
1125
+ readonly type: "error";
1126
+ readonly name: "OnlySelf";
1127
+ readonly inputs: readonly [];
985
1128
  }, {
986
1129
  readonly type: "error";
987
1130
  readonly name: "RandomFunctionNotSupported";
@@ -1024,16 +1167,6 @@ declare const MockACLArtifact: {
1024
1167
  readonly type: "constructor";
1025
1168
  readonly inputs: readonly [];
1026
1169
  readonly stateMutability: "nonpayable";
1027
- }, {
1028
- readonly type: "function";
1029
- readonly name: "TASK_MANAGER_ADDRESS_";
1030
- readonly inputs: readonly [];
1031
- readonly outputs: readonly [{
1032
- readonly name: "";
1033
- readonly type: "address";
1034
- readonly internalType: "address";
1035
- }];
1036
- readonly stateMutability: "view";
1037
1170
  }, {
1038
1171
  readonly type: "function";
1039
1172
  readonly name: "allow";
@@ -1474,6 +1607,16 @@ declare const MockACLArtifact: {
1474
1607
  }];
1475
1608
  readonly outputs: readonly [];
1476
1609
  readonly stateMutability: "nonpayable";
1610
+ }, {
1611
+ readonly type: "function";
1612
+ readonly name: "setTaskManager";
1613
+ readonly inputs: readonly [{
1614
+ readonly name: "newAddress";
1615
+ readonly type: "address";
1616
+ readonly internalType: "address";
1617
+ }];
1618
+ readonly outputs: readonly [];
1619
+ readonly stateMutability: "nonpayable";
1477
1620
  }, {
1478
1621
  readonly type: "function";
1479
1622
  readonly name: "shareCtHash";
@@ -1567,6 +1710,21 @@ declare const MockACLArtifact: {
1567
1710
  readonly internalType: "address";
1568
1711
  }];
1569
1712
  readonly anonymous: false;
1713
+ }, {
1714
+ readonly type: "event";
1715
+ readonly name: "TaskManagerUpdated";
1716
+ readonly inputs: readonly [{
1717
+ readonly name: "oldAddress";
1718
+ readonly type: "address";
1719
+ readonly indexed: false;
1720
+ readonly internalType: "address";
1721
+ }, {
1722
+ readonly name: "newAddress";
1723
+ readonly type: "address";
1724
+ readonly indexed: false;
1725
+ readonly internalType: "address";
1726
+ }];
1727
+ readonly anonymous: false;
1570
1728
  }, {
1571
1729
  readonly type: "error";
1572
1730
  readonly name: "AlreadyDelegated";
@@ -1583,6 +1741,10 @@ declare const MockACLArtifact: {
1583
1741
  readonly type: "error";
1584
1742
  readonly name: "InvalidShortString";
1585
1743
  readonly inputs: readonly [];
1744
+ }, {
1745
+ readonly type: "error";
1746
+ readonly name: "InvalidTaskManagerAddress";
1747
+ readonly inputs: readonly [];
1586
1748
  }, {
1587
1749
  readonly type: "error";
1588
1750
  readonly name: "NotShared";
@@ -2854,9 +3016,8 @@ type ACPStruct$2 = {
2854
3016
  recipientSignature: BytesLike;
2855
3017
  };
2856
3018
  interface MockACLInterface extends Interface {
2857
- getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'allowedOnBehalf' | 'allowedTransient' | 'checkPermissionValidity' | 'cleanTransientStorage' | 'defaultRevokerContract' | 'delegateAccount' | 'eip712Domain' | 'exists' | 'getTaskManagerAddress' | 'getVersion' | 'globalAllowed' | 'hashTypedDataV4' | 'isAllowed' | 'isAllowedForDecryption' | 'isAllowedWithPermission' | 'persistAllowed' | 'receiveCtHash' | 'setDefaultRevokerContract' | 'setShareRegistry' | 'shareCtHash' | 'shareRegistry'): FunctionFragment;
2858
- getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'DefaultRevokerContractUpdated' | 'EIP712DomainChanged' | 'NewDelegation' | 'ShareRegistryUpdated'): EventFragment;
2859
- encodeFunctionData(functionFragment: 'TASK_MANAGER_ADDRESS_', values?: undefined): string;
3019
+ getFunction(nameOrSignature: 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'allowedOnBehalf' | 'allowedTransient' | 'checkPermissionValidity' | 'cleanTransientStorage' | 'defaultRevokerContract' | 'delegateAccount' | 'eip712Domain' | 'exists' | 'getTaskManagerAddress' | 'getVersion' | 'globalAllowed' | 'hashTypedDataV4' | 'isAllowed' | 'isAllowedForDecryption' | 'isAllowedWithPermission' | 'persistAllowed' | 'receiveCtHash' | 'setDefaultRevokerContract' | 'setShareRegistry' | 'setTaskManager' | 'shareCtHash' | 'shareRegistry'): FunctionFragment;
3020
+ getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'DefaultRevokerContractUpdated' | 'EIP712DomainChanged' | 'NewDelegation' | 'ShareRegistryUpdated' | 'TaskManagerUpdated'): EventFragment;
2860
3021
  encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike, AddressLike]): string;
2861
3022
  encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish[], AddressLike]): string;
2862
3023
  encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish, AddressLike]): string;
@@ -2880,9 +3041,9 @@ interface MockACLInterface extends Interface {
2880
3041
  encodeFunctionData(functionFragment: 'receiveCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
2881
3042
  encodeFunctionData(functionFragment: 'setDefaultRevokerContract', values: [AddressLike]): string;
2882
3043
  encodeFunctionData(functionFragment: 'setShareRegistry', values: [AddressLike]): string;
3044
+ encodeFunctionData(functionFragment: 'setTaskManager', values: [AddressLike]): string;
2883
3045
  encodeFunctionData(functionFragment: 'shareCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
2884
3046
  encodeFunctionData(functionFragment: 'shareRegistry', values?: undefined): string;
2885
- decodeFunctionResult(functionFragment: 'TASK_MANAGER_ADDRESS_', data: BytesLike): Result;
2886
3047
  decodeFunctionResult(functionFragment: 'allow', data: BytesLike): Result;
2887
3048
  decodeFunctionResult(functionFragment: 'allowForDecryption', data: BytesLike): Result;
2888
3049
  decodeFunctionResult(functionFragment: 'allowGlobal', data: BytesLike): Result;
@@ -2906,6 +3067,7 @@ interface MockACLInterface extends Interface {
2906
3067
  decodeFunctionResult(functionFragment: 'receiveCtHash', data: BytesLike): Result;
2907
3068
  decodeFunctionResult(functionFragment: 'setDefaultRevokerContract', data: BytesLike): Result;
2908
3069
  decodeFunctionResult(functionFragment: 'setShareRegistry', data: BytesLike): Result;
3070
+ decodeFunctionResult(functionFragment: 'setTaskManager', data: BytesLike): Result;
2909
3071
  decodeFunctionResult(functionFragment: 'shareCtHash', data: BytesLike): Result;
2910
3072
  decodeFunctionResult(functionFragment: 'shareRegistry', data: BytesLike): Result;
2911
3073
  }
@@ -2967,6 +3129,18 @@ declare namespace ShareRegistryUpdatedEvent {
2967
3129
  type Log = TypedEventLog<Event>;
2968
3130
  type LogDescription = TypedLogDescription<Event>;
2969
3131
  }
3132
+ declare namespace TaskManagerUpdatedEvent {
3133
+ type InputTuple = [oldAddress: AddressLike, newAddress: AddressLike];
3134
+ type OutputTuple = [oldAddress: string, newAddress: string];
3135
+ interface OutputObject {
3136
+ oldAddress: string;
3137
+ newAddress: string;
3138
+ }
3139
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
3140
+ type Filter = TypedDeferredTopicFilter<Event>;
3141
+ type Log = TypedEventLog<Event>;
3142
+ type LogDescription = TypedLogDescription<Event>;
3143
+ }
2970
3144
  interface MockACL extends BaseContract {
2971
3145
  connect(runner?: ContractRunner | null): MockACL;
2972
3146
  waitForDeployment(): Promise<this>;
@@ -2980,7 +3154,6 @@ interface MockACL extends BaseContract {
2980
3154
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
2981
3155
  listeners(eventName?: string): Promise<Array<Listener>>;
2982
3156
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
2983
- TASK_MANAGER_ADDRESS_: TypedContractMethod<[], [string], 'view'>;
2984
3157
  allow: TypedContractMethod<[
2985
3158
  handle: BigNumberish,
2986
3159
  account: AddressLike,
@@ -3048,6 +3221,7 @@ interface MockACL extends BaseContract {
3048
3221
  ], 'nonpayable'>;
3049
3222
  setDefaultRevokerContract: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3050
3223
  setShareRegistry: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3224
+ setTaskManager: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3051
3225
  shareCtHash: TypedContractMethod<[
3052
3226
  handle: BigNumberish,
3053
3227
  sharer: AddressLike,
@@ -3057,7 +3231,6 @@ interface MockACL extends BaseContract {
3057
3231
  ], 'nonpayable'>;
3058
3232
  shareRegistry: TypedContractMethod<[], [string], 'view'>;
3059
3233
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
3060
- getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_'): TypedContractMethod<[], [string], 'view'>;
3061
3234
  getFunction(nameOrSignature: 'allow'): TypedContractMethod<[handle: BigNumberish, account: AddressLike, requester: AddressLike], [void], 'nonpayable'>;
3062
3235
  getFunction(nameOrSignature: 'allowForDecryption'): TypedContractMethod<[handlesList: BigNumberish[], requester: AddressLike], [void], 'nonpayable'>;
3063
3236
  getFunction(nameOrSignature: 'allowGlobal'): TypedContractMethod<[handle: BigNumberish, requester: AddressLike], [void], 'nonpayable'>;
@@ -3113,6 +3286,7 @@ interface MockACL extends BaseContract {
3113
3286
  ], 'nonpayable'>;
3114
3287
  getFunction(nameOrSignature: 'setDefaultRevokerContract'): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3115
3288
  getFunction(nameOrSignature: 'setShareRegistry'): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3289
+ getFunction(nameOrSignature: 'setTaskManager'): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
3116
3290
  getFunction(nameOrSignature: 'shareCtHash'): TypedContractMethod<[handle: BigNumberish, sharer: AddressLike, receiver: AddressLike], [void], 'nonpayable'>;
3117
3291
  getFunction(nameOrSignature: 'shareRegistry'): TypedContractMethod<[], [string], 'view'>;
3118
3292
  getEvent(key: 'AllowedForDecryption'): TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
@@ -3120,6 +3294,7 @@ interface MockACL extends BaseContract {
3120
3294
  getEvent(key: 'EIP712DomainChanged'): TypedContractEvent<EIP712DomainChangedEvent.InputTuple, EIP712DomainChangedEvent.OutputTuple, EIP712DomainChangedEvent.OutputObject>;
3121
3295
  getEvent(key: 'NewDelegation'): TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
3122
3296
  getEvent(key: 'ShareRegistryUpdated'): TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
3297
+ getEvent(key: 'TaskManagerUpdated'): TypedContractEvent<TaskManagerUpdatedEvent.InputTuple, TaskManagerUpdatedEvent.OutputTuple, TaskManagerUpdatedEvent.OutputObject>;
3123
3298
  filters: {
3124
3299
  'AllowedForDecryption(uint256[])': TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
3125
3300
  AllowedForDecryption: TypedContractEvent<AllowedForDecryptionEvent.InputTuple, AllowedForDecryptionEvent.OutputTuple, AllowedForDecryptionEvent.OutputObject>;
@@ -3131,6 +3306,62 @@ interface MockACL extends BaseContract {
3131
3306
  NewDelegation: TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
3132
3307
  'ShareRegistryUpdated(address,address)': TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
3133
3308
  ShareRegistryUpdated: TypedContractEvent<ShareRegistryUpdatedEvent.InputTuple, ShareRegistryUpdatedEvent.OutputTuple, ShareRegistryUpdatedEvent.OutputObject>;
3309
+ 'TaskManagerUpdated(address,address)': TypedContractEvent<TaskManagerUpdatedEvent.InputTuple, TaskManagerUpdatedEvent.OutputTuple, TaskManagerUpdatedEvent.OutputObject>;
3310
+ TaskManagerUpdated: TypedContractEvent<TaskManagerUpdatedEvent.InputTuple, TaskManagerUpdatedEvent.OutputTuple, TaskManagerUpdatedEvent.OutputObject>;
3311
+ };
3312
+ }
3313
+
3314
+ interface MockCoFHEAddressBookInterface extends Interface {
3315
+ getFunction(nameOrSignature: 'exists' | 'getTm' | 'setTm' | 'unsetTm'): FunctionFragment;
3316
+ getEvent(nameOrSignatureOrTopic: 'TaskManagerSet'): EventFragment;
3317
+ encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
3318
+ encodeFunctionData(functionFragment: 'getTm', values: [BigNumberish]): string;
3319
+ encodeFunctionData(functionFragment: 'setTm', values: [BigNumberish, AddressLike]): string;
3320
+ encodeFunctionData(functionFragment: 'unsetTm', values: [BigNumberish]): string;
3321
+ decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
3322
+ decodeFunctionResult(functionFragment: 'getTm', data: BytesLike): Result;
3323
+ decodeFunctionResult(functionFragment: 'setTm', data: BytesLike): Result;
3324
+ decodeFunctionResult(functionFragment: 'unsetTm', data: BytesLike): Result;
3325
+ }
3326
+ declare namespace TaskManagerSetEvent {
3327
+ type InputTuple = [id: BigNumberish, previous: AddressLike, current: AddressLike];
3328
+ type OutputTuple = [id: bigint, previous: string, current: string];
3329
+ interface OutputObject {
3330
+ id: bigint;
3331
+ previous: string;
3332
+ current: string;
3333
+ }
3334
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
3335
+ type Filter = TypedDeferredTopicFilter<Event>;
3336
+ type Log = TypedEventLog<Event>;
3337
+ type LogDescription = TypedLogDescription<Event>;
3338
+ }
3339
+ interface MockCoFHEAddressBook extends BaseContract {
3340
+ connect(runner?: ContractRunner | null): MockCoFHEAddressBook;
3341
+ waitForDeployment(): Promise<this>;
3342
+ interface: MockCoFHEAddressBookInterface;
3343
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
3344
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
3345
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
3346
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
3347
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
3348
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
3349
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
3350
+ listeners(eventName?: string): Promise<Array<Listener>>;
3351
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
3352
+ exists: TypedContractMethod<[], [boolean], 'view'>;
3353
+ getTm: TypedContractMethod<[id: BigNumberish], [string], 'view'>;
3354
+ setTm: TypedContractMethod<[id: BigNumberish, tm: AddressLike], [void], 'nonpayable'>;
3355
+ unsetTm: TypedContractMethod<[id: BigNumberish], [void], 'nonpayable'>;
3356
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
3357
+ getFunction(nameOrSignature: 'exists'): TypedContractMethod<[], [boolean], 'view'>;
3358
+ getFunction(nameOrSignature: 'getTm'): TypedContractMethod<[id: BigNumberish], [string], 'view'>;
3359
+ getFunction(nameOrSignature: 'setTm'): TypedContractMethod<[id: BigNumberish, tm: AddressLike], [void], 'nonpayable'>;
3360
+ getFunction(nameOrSignature: 'unsetTm'): TypedContractMethod<[id: BigNumberish], [void], 'nonpayable'>;
3361
+ getEvent(key: 'TaskManagerSet'): TypedContractEvent<TaskManagerSetEvent.InputTuple, TaskManagerSetEvent.OutputTuple, TaskManagerSetEvent.OutputObject>;
3362
+ filters: {
3363
+ 'TaskManagerSet(uint256,address,address)': TypedContractEvent<TaskManagerSetEvent.InputTuple, TaskManagerSetEvent.OutputTuple, TaskManagerSetEvent.OutputObject>;
3364
+ TaskManagerSet: TypedContractEvent<TaskManagerSetEvent.InputTuple, TaskManagerSetEvent.OutputTuple, TaskManagerSetEvent.OutputObject>;
3134
3365
  };
3135
3366
  }
3136
3367
 
@@ -3153,8 +3384,9 @@ type ACPStruct$1 = {
3153
3384
  recipientSignature: BytesLike;
3154
3385
  };
3155
3386
  interface MockTaskManagerInterface extends Interface {
3156
- getFunction(nameOrSignature: 'MOCK_logAllow' | 'MOCK_setInEuintKey' | 'acl' | 'aggregator' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'batchVerifyInputs' | 'createDecryptTask' | 'createRandomTask' | 'createTask' | 'decryptResultSigner' | 'exists' | 'getDecryptResult' | 'getDecryptResultSafe' | 'handleDecryptResult' | 'handleError' | 'inMockStorage' | 'initialize' | 'isAllowed' | 'isAllowedWithPermission' | 'isInitialized' | 'isPubliclyAllowed' | 'logOps' | 'mockStorage' | 'publishDecryptResult' | 'publishDecryptResultBatch' | 'receiveCtHash' | 'removeFirstLetter' | 'setACLContract' | 'setAggregator' | 'setDecryptResultSigner' | 'setLogOps' | 'setSecurityZoneMax' | 'setSecurityZoneMin' | 'setSecurityZones' | 'setVerifierSigner' | 'shareCtHash' | 'sliceString' | 'verifyDecryptResult' | 'verifyDecryptResultBatch' | 'verifyDecryptResultBatchSafe' | 'verifyDecryptResultSafe'): FunctionFragment;
3157
- getEvent(nameOrSignatureOrTopic: 'DecryptionResult' | 'ProtocolNotification' | 'TaskCreated'): EventFragment;
3387
+ getFunction(nameOrSignature: 'MOCK_dispatchOperation' | 'MOCK_logAllow' | 'MOCK_setInEuintKey' | 'acl' | 'aggregator' | 'allow' | 'allowForDecryption' | 'allowGlobal' | 'allowTransient' | 'batchVerifyInputs' | 'createDecryptTask' | 'createRandomTask' | 'createTask' | 'decryptResultSigner' | 'exists' | 'getDecryptResult' | 'getDecryptResultSafe' | 'handleDecryptResult' | 'handleError' | 'inMockStorage' | 'initialize' | 'isAllowed' | 'isAllowedWithPermission' | 'isInitialized' | 'isPubliclyAllowed' | 'logOps' | 'mockGasExcluded' | 'mockStorage' | 'publishDecryptResult' | 'publishDecryptResultBatch' | 'receiveCtHash' | 'removeFirstLetter' | 'setACLContract' | 'setAggregator' | 'setDecryptResultSigner' | 'setLogOps' | 'setMockGasExcluded' | 'setSecurityZoneMax' | 'setSecurityZoneMin' | 'setSecurityZones' | 'setVerifierSigner' | 'shareCtHash' | 'sliceString' | 'verifyDecryptResult' | 'verifyDecryptResultBatch' | 'verifyDecryptResultBatchSafe' | 'verifyDecryptResultSafe'): FunctionFragment;
3388
+ getEvent(nameOrSignatureOrTopic: 'DecryptionResult' | 'MockGasConsumed' | 'ProtocolNotification' | 'TaskCreated'): EventFragment;
3389
+ encodeFunctionData(functionFragment: 'MOCK_dispatchOperation', values: [BigNumberish, BigNumberish, BigNumberish[], BigNumberish]): string;
3158
3390
  encodeFunctionData(functionFragment: 'MOCK_logAllow', values: [string, BigNumberish, AddressLike]): string;
3159
3391
  encodeFunctionData(functionFragment: 'MOCK_setInEuintKey', values: [BigNumberish, BigNumberish]): string;
3160
3392
  encodeFunctionData(functionFragment: 'acl', values?: undefined): string;
@@ -3180,6 +3412,7 @@ interface MockTaskManagerInterface extends Interface {
3180
3412
  encodeFunctionData(functionFragment: 'isInitialized', values?: undefined): string;
3181
3413
  encodeFunctionData(functionFragment: 'isPubliclyAllowed', values: [BigNumberish]): string;
3182
3414
  encodeFunctionData(functionFragment: 'logOps', values?: undefined): string;
3415
+ encodeFunctionData(functionFragment: 'mockGasExcluded', values?: undefined): string;
3183
3416
  encodeFunctionData(functionFragment: 'mockStorage', values: [BigNumberish]): string;
3184
3417
  encodeFunctionData(functionFragment: 'publishDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
3185
3418
  encodeFunctionData(functionFragment: 'publishDecryptResultBatch', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
@@ -3189,6 +3422,7 @@ interface MockTaskManagerInterface extends Interface {
3189
3422
  encodeFunctionData(functionFragment: 'setAggregator', values: [AddressLike]): string;
3190
3423
  encodeFunctionData(functionFragment: 'setDecryptResultSigner', values: [AddressLike]): string;
3191
3424
  encodeFunctionData(functionFragment: 'setLogOps', values: [boolean]): string;
3425
+ encodeFunctionData(functionFragment: 'setMockGasExcluded', values: [boolean]): string;
3192
3426
  encodeFunctionData(functionFragment: 'setSecurityZoneMax', values: [BigNumberish]): string;
3193
3427
  encodeFunctionData(functionFragment: 'setSecurityZoneMin', values: [BigNumberish]): string;
3194
3428
  encodeFunctionData(functionFragment: 'setSecurityZones', values: [BigNumberish, BigNumberish]): string;
@@ -3199,6 +3433,7 @@ interface MockTaskManagerInterface extends Interface {
3199
3433
  encodeFunctionData(functionFragment: 'verifyDecryptResultBatch', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
3200
3434
  encodeFunctionData(functionFragment: 'verifyDecryptResultBatchSafe', values: [BigNumberish[], BigNumberish[], BytesLike[]]): string;
3201
3435
  encodeFunctionData(functionFragment: 'verifyDecryptResultSafe', values: [BigNumberish, BigNumberish, BytesLike]): string;
3436
+ decodeFunctionResult(functionFragment: 'MOCK_dispatchOperation', data: BytesLike): Result;
3202
3437
  decodeFunctionResult(functionFragment: 'MOCK_logAllow', data: BytesLike): Result;
3203
3438
  decodeFunctionResult(functionFragment: 'MOCK_setInEuintKey', data: BytesLike): Result;
3204
3439
  decodeFunctionResult(functionFragment: 'acl', data: BytesLike): Result;
@@ -3224,6 +3459,7 @@ interface MockTaskManagerInterface extends Interface {
3224
3459
  decodeFunctionResult(functionFragment: 'isInitialized', data: BytesLike): Result;
3225
3460
  decodeFunctionResult(functionFragment: 'isPubliclyAllowed', data: BytesLike): Result;
3226
3461
  decodeFunctionResult(functionFragment: 'logOps', data: BytesLike): Result;
3462
+ decodeFunctionResult(functionFragment: 'mockGasExcluded', data: BytesLike): Result;
3227
3463
  decodeFunctionResult(functionFragment: 'mockStorage', data: BytesLike): Result;
3228
3464
  decodeFunctionResult(functionFragment: 'publishDecryptResult', data: BytesLike): Result;
3229
3465
  decodeFunctionResult(functionFragment: 'publishDecryptResultBatch', data: BytesLike): Result;
@@ -3233,6 +3469,7 @@ interface MockTaskManagerInterface extends Interface {
3233
3469
  decodeFunctionResult(functionFragment: 'setAggregator', data: BytesLike): Result;
3234
3470
  decodeFunctionResult(functionFragment: 'setDecryptResultSigner', data: BytesLike): Result;
3235
3471
  decodeFunctionResult(functionFragment: 'setLogOps', data: BytesLike): Result;
3472
+ decodeFunctionResult(functionFragment: 'setMockGasExcluded', data: BytesLike): Result;
3236
3473
  decodeFunctionResult(functionFragment: 'setSecurityZoneMax', data: BytesLike): Result;
3237
3474
  decodeFunctionResult(functionFragment: 'setSecurityZoneMin', data: BytesLike): Result;
3238
3475
  decodeFunctionResult(functionFragment: 'setSecurityZones', data: BytesLike): Result;
@@ -3257,6 +3494,17 @@ declare namespace DecryptionResultEvent {
3257
3494
  type Log = TypedEventLog<Event>;
3258
3495
  type LogDescription = TypedLogDescription<Event>;
3259
3496
  }
3497
+ declare namespace MockGasConsumedEvent {
3498
+ type InputTuple = [gas: BigNumberish];
3499
+ type OutputTuple = [gas: bigint];
3500
+ interface OutputObject {
3501
+ gas: bigint;
3502
+ }
3503
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
3504
+ type Filter = TypedDeferredTopicFilter<Event>;
3505
+ type Log = TypedEventLog<Event>;
3506
+ type LogDescription = TypedLogDescription<Event>;
3507
+ }
3260
3508
  declare namespace ProtocolNotificationEvent {
3261
3509
  type InputTuple = [ctHash: BigNumberish, operation: string, errorMessage: string];
3262
3510
  type OutputTuple = [ctHash: bigint, operation: string, errorMessage: string];
@@ -3304,6 +3552,14 @@ interface MockTaskManager extends BaseContract {
3304
3552
  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
3305
3553
  listeners(eventName?: string): Promise<Array<Listener>>;
3306
3554
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
3555
+ MOCK_dispatchOperation: TypedContractMethod<[
3556
+ ctHash: BigNumberish,
3557
+ funcId: BigNumberish,
3558
+ inputs: BigNumberish[],
3559
+ arity: BigNumberish
3560
+ ], [
3561
+ void
3562
+ ], 'nonpayable'>;
3307
3563
  MOCK_logAllow: TypedContractMethod<[operation: string, ctHash: BigNumberish, account: AddressLike], [void], 'view'>;
3308
3564
  MOCK_setInEuintKey: TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
3309
3565
  acl: TypedContractMethod<[], [string], 'view'>;
@@ -3367,6 +3623,7 @@ interface MockTaskManager extends BaseContract {
3367
3623
  isInitialized: TypedContractMethod<[], [boolean], 'view'>;
3368
3624
  isPubliclyAllowed: TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
3369
3625
  logOps: TypedContractMethod<[], [boolean], 'view'>;
3626
+ mockGasExcluded: TypedContractMethod<[], [boolean], 'view'>;
3370
3627
  mockStorage: TypedContractMethod<[arg0: BigNumberish], [bigint], 'view'>;
3371
3628
  publishDecryptResult: TypedContractMethod<[
3372
3629
  ctHash: BigNumberish,
@@ -3388,6 +3645,7 @@ interface MockTaskManager extends BaseContract {
3388
3645
  setAggregator: TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
3389
3646
  setDecryptResultSigner: TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
3390
3647
  setLogOps: TypedContractMethod<[_logOps: boolean], [void], 'nonpayable'>;
3648
+ setMockGasExcluded: TypedContractMethod<[_mockGasExcluded: boolean], [void], 'nonpayable'>;
3391
3649
  setSecurityZoneMax: TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
3392
3650
  setSecurityZoneMin: TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
3393
3651
  setSecurityZones: TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
@@ -3423,6 +3681,14 @@ interface MockTaskManager extends BaseContract {
3423
3681
  boolean
3424
3682
  ], 'view'>;
3425
3683
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
3684
+ getFunction(nameOrSignature: 'MOCK_dispatchOperation'): TypedContractMethod<[
3685
+ ctHash: BigNumberish,
3686
+ funcId: BigNumberish,
3687
+ inputs: BigNumberish[],
3688
+ arity: BigNumberish
3689
+ ], [
3690
+ void
3691
+ ], 'nonpayable'>;
3426
3692
  getFunction(nameOrSignature: 'MOCK_logAllow'): TypedContractMethod<[operation: string, ctHash: BigNumberish, account: AddressLike], [void], 'view'>;
3427
3693
  getFunction(nameOrSignature: 'MOCK_setInEuintKey'): TypedContractMethod<[ctHash: BigNumberish, value: BigNumberish], [void], 'nonpayable'>;
3428
3694
  getFunction(nameOrSignature: 'acl'): TypedContractMethod<[], [string], 'view'>;
@@ -3470,6 +3736,7 @@ interface MockTaskManager extends BaseContract {
3470
3736
  getFunction(nameOrSignature: 'isInitialized'): TypedContractMethod<[], [boolean], 'view'>;
3471
3737
  getFunction(nameOrSignature: 'isPubliclyAllowed'): TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
3472
3738
  getFunction(nameOrSignature: 'logOps'): TypedContractMethod<[], [boolean], 'view'>;
3739
+ getFunction(nameOrSignature: 'mockGasExcluded'): TypedContractMethod<[], [boolean], 'view'>;
3473
3740
  getFunction(nameOrSignature: 'mockStorage'): TypedContractMethod<[arg0: BigNumberish], [bigint], 'view'>;
3474
3741
  getFunction(nameOrSignature: 'publishDecryptResult'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [void], 'nonpayable'>;
3475
3742
  getFunction(nameOrSignature: 'publishDecryptResultBatch'): TypedContractMethod<[
@@ -3485,6 +3752,7 @@ interface MockTaskManager extends BaseContract {
3485
3752
  getFunction(nameOrSignature: 'setAggregator'): TypedContractMethod<[_aggregatorAddress: AddressLike], [void], 'nonpayable'>;
3486
3753
  getFunction(nameOrSignature: 'setDecryptResultSigner'): TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
3487
3754
  getFunction(nameOrSignature: 'setLogOps'): TypedContractMethod<[_logOps: boolean], [void], 'nonpayable'>;
3755
+ getFunction(nameOrSignature: 'setMockGasExcluded'): TypedContractMethod<[_mockGasExcluded: boolean], [void], 'nonpayable'>;
3488
3756
  getFunction(nameOrSignature: 'setSecurityZoneMax'): TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
3489
3757
  getFunction(nameOrSignature: 'setSecurityZoneMin'): TypedContractMethod<[securityZone: BigNumberish], [void], 'nonpayable'>;
3490
3758
  getFunction(nameOrSignature: 'setSecurityZones'): TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
@@ -3508,11 +3776,14 @@ interface MockTaskManager extends BaseContract {
3508
3776
  ], 'view'>;
3509
3777
  getFunction(nameOrSignature: 'verifyDecryptResultSafe'): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
3510
3778
  getEvent(key: 'DecryptionResult'): TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
3779
+ getEvent(key: 'MockGasConsumed'): TypedContractEvent<MockGasConsumedEvent.InputTuple, MockGasConsumedEvent.OutputTuple, MockGasConsumedEvent.OutputObject>;
3511
3780
  getEvent(key: 'ProtocolNotification'): TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
3512
3781
  getEvent(key: 'TaskCreated'): TypedContractEvent<TaskCreatedEvent.InputTuple, TaskCreatedEvent.OutputTuple, TaskCreatedEvent.OutputObject>;
3513
3782
  filters: {
3514
3783
  'DecryptionResult(uint256,uint256,address)': TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
3515
3784
  DecryptionResult: TypedContractEvent<DecryptionResultEvent.InputTuple, DecryptionResultEvent.OutputTuple, DecryptionResultEvent.OutputObject>;
3785
+ 'MockGasConsumed(uint256)': TypedContractEvent<MockGasConsumedEvent.InputTuple, MockGasConsumedEvent.OutputTuple, MockGasConsumedEvent.OutputObject>;
3786
+ MockGasConsumed: TypedContractEvent<MockGasConsumedEvent.InputTuple, MockGasConsumedEvent.OutputTuple, MockGasConsumedEvent.OutputObject>;
3516
3787
  'ProtocolNotification(uint256,string,string)': TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
3517
3788
  ProtocolNotification: TypedContractEvent<ProtocolNotificationEvent.InputTuple, ProtocolNotificationEvent.OutputTuple, ProtocolNotificationEvent.OutputObject>;
3518
3789
  'TaskCreated(uint256,string,uint256,uint256,uint256)': TypedContractEvent<TaskCreatedEvent.InputTuple, TaskCreatedEvent.OutputTuple, TaskCreatedEvent.OutputObject>;
@@ -3823,4 +4094,4 @@ interface MockZkVerifier extends BaseContract {
3823
4094
  filters: {};
3824
4095
  }
3825
4096
 
3826
- export { type ACPShareRegistry, ACPShareRegistryArtifact, type ACPTimestampRevoker, ACPTimestampRevokerArtifact, type MockACL, MockACLArtifact, type MockArtifact, type MockTaskManager, MockTaskManagerArtifact, type MockThresholdNetwork, MockThresholdNetworkArtifact, type MockZkVerifier, MockZkVerifierArtifact };
4097
+ export { type ACPShareRegistry, ACPShareRegistryArtifact, type ACPTimestampRevoker, ACPTimestampRevokerArtifact, type MockACL, MockACLArtifact, type MockArtifact, type MockCoFHEAddressBook, MockCoFHEAddressBookArtifact, type MockTaskManager, MockTaskManagerArtifact, type MockThresholdNetwork, MockThresholdNetworkArtifact, type MockZkVerifier, MockZkVerifierArtifact };