@cofhe/mock-contracts 0.7.1 → 1.0.0-alpha.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.
@@ -63,22 +63,155 @@ export type ACPStructOutput = [
63
63
  recipientSignature: string;
64
64
  };
65
65
 
66
+ export declare namespace ACPShareRegistry {
67
+ export type ShareHeaderStruct = {
68
+ issuer: AddressLike;
69
+ expiration: BigNumberish;
70
+ recipient: AddressLike;
71
+ blockNumber: BigNumberish;
72
+ revokerContract: AddressLike;
73
+ revokerData: BigNumberish;
74
+ };
75
+
76
+ export type ShareHeaderStructOutput = [
77
+ issuer: string,
78
+ expiration: bigint,
79
+ recipient: string,
80
+ blockNumber: bigint,
81
+ revokerContract: string,
82
+ revokerData: bigint,
83
+ ] & {
84
+ issuer: string;
85
+ expiration: bigint;
86
+ recipient: string;
87
+ blockNumber: bigint;
88
+ revokerContract: string;
89
+ revokerData: bigint;
90
+ };
91
+ }
92
+
66
93
  export interface ACPShareRegistryInterface extends Interface {
67
- getFunction(nameOrSignature: 'getShare' | 'isShareValid' | 'removeShare' | 'share' | 'sharesFor'): FunctionFragment;
94
+ getFunction(
95
+ nameOrSignature:
96
+ | 'DEFAULT_ADMIN_ROLE'
97
+ | 'UPGRADER_ROLE'
98
+ | 'UPGRADE_INTERFACE_VERSION'
99
+ | 'getRoleAdmin'
100
+ | 'getShare'
101
+ | 'grantRole'
102
+ | 'hasRole'
103
+ | 'initialize'
104
+ | 'isShareValid'
105
+ | 'proxiableUUID'
106
+ | 'removeShare'
107
+ | 'renounceRole'
108
+ | 'revokeRole'
109
+ | 'share'
110
+ | 'sharesFor'
111
+ | 'supportsInterface'
112
+ | 'upgradeToAndCall'
113
+ ): FunctionFragment;
68
114
 
69
- getEvent(nameOrSignatureOrTopic: 'ShareRemoved' | 'Shared'): EventFragment;
115
+ getEvent(
116
+ nameOrSignatureOrTopic:
117
+ | 'Initialized'
118
+ | 'RoleAdminChanged'
119
+ | 'RoleGranted'
120
+ | 'RoleRevoked'
121
+ | 'ShareRemoved'
122
+ | 'Shared'
123
+ | 'Upgraded'
124
+ ): EventFragment;
70
125
 
126
+ encodeFunctionData(functionFragment: 'DEFAULT_ADMIN_ROLE', values?: undefined): string;
127
+ encodeFunctionData(functionFragment: 'UPGRADER_ROLE', values?: undefined): string;
128
+ encodeFunctionData(functionFragment: 'UPGRADE_INTERFACE_VERSION', values?: undefined): string;
129
+ encodeFunctionData(functionFragment: 'getRoleAdmin', values: [BytesLike]): string;
71
130
  encodeFunctionData(functionFragment: 'getShare', values: [BytesLike]): string;
131
+ encodeFunctionData(functionFragment: 'grantRole', values: [BytesLike, AddressLike]): string;
132
+ encodeFunctionData(functionFragment: 'hasRole', values: [BytesLike, AddressLike]): string;
133
+ encodeFunctionData(functionFragment: 'initialize', values: [AddressLike]): string;
72
134
  encodeFunctionData(functionFragment: 'isShareValid', values: [BytesLike]): string;
135
+ encodeFunctionData(functionFragment: 'proxiableUUID', values?: undefined): string;
73
136
  encodeFunctionData(functionFragment: 'removeShare', values: [BytesLike]): string;
74
- encodeFunctionData(functionFragment: 'share', values: [ACPStruct]): string;
137
+ encodeFunctionData(functionFragment: 'renounceRole', values: [BytesLike, AddressLike]): string;
138
+ encodeFunctionData(functionFragment: 'revokeRole', values: [BytesLike, AddressLike]): string;
139
+ encodeFunctionData(functionFragment: 'share', values: [ACPStruct, BytesLike]): string;
75
140
  encodeFunctionData(functionFragment: 'sharesFor', values: [AddressLike]): string;
141
+ encodeFunctionData(functionFragment: 'supportsInterface', values: [BytesLike]): string;
142
+ encodeFunctionData(functionFragment: 'upgradeToAndCall', values: [AddressLike, BytesLike]): string;
76
143
 
144
+ decodeFunctionResult(functionFragment: 'DEFAULT_ADMIN_ROLE', data: BytesLike): Result;
145
+ decodeFunctionResult(functionFragment: 'UPGRADER_ROLE', data: BytesLike): Result;
146
+ decodeFunctionResult(functionFragment: 'UPGRADE_INTERFACE_VERSION', data: BytesLike): Result;
147
+ decodeFunctionResult(functionFragment: 'getRoleAdmin', data: BytesLike): Result;
77
148
  decodeFunctionResult(functionFragment: 'getShare', data: BytesLike): Result;
149
+ decodeFunctionResult(functionFragment: 'grantRole', data: BytesLike): Result;
150
+ decodeFunctionResult(functionFragment: 'hasRole', data: BytesLike): Result;
151
+ decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
78
152
  decodeFunctionResult(functionFragment: 'isShareValid', data: BytesLike): Result;
153
+ decodeFunctionResult(functionFragment: 'proxiableUUID', data: BytesLike): Result;
79
154
  decodeFunctionResult(functionFragment: 'removeShare', data: BytesLike): Result;
155
+ decodeFunctionResult(functionFragment: 'renounceRole', data: BytesLike): Result;
156
+ decodeFunctionResult(functionFragment: 'revokeRole', data: BytesLike): Result;
80
157
  decodeFunctionResult(functionFragment: 'share', data: BytesLike): Result;
81
158
  decodeFunctionResult(functionFragment: 'sharesFor', data: BytesLike): Result;
159
+ decodeFunctionResult(functionFragment: 'supportsInterface', data: BytesLike): Result;
160
+ decodeFunctionResult(functionFragment: 'upgradeToAndCall', data: BytesLike): Result;
161
+ }
162
+
163
+ export namespace InitializedEvent {
164
+ export type InputTuple = [version: BigNumberish];
165
+ export type OutputTuple = [version: bigint];
166
+ export interface OutputObject {
167
+ version: bigint;
168
+ }
169
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
170
+ export type Filter = TypedDeferredTopicFilter<Event>;
171
+ export type Log = TypedEventLog<Event>;
172
+ export type LogDescription = TypedLogDescription<Event>;
173
+ }
174
+
175
+ export namespace RoleAdminChangedEvent {
176
+ export type InputTuple = [role: BytesLike, previousAdminRole: BytesLike, newAdminRole: BytesLike];
177
+ export type OutputTuple = [role: string, previousAdminRole: string, newAdminRole: string];
178
+ export interface OutputObject {
179
+ role: string;
180
+ previousAdminRole: string;
181
+ newAdminRole: string;
182
+ }
183
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
184
+ export type Filter = TypedDeferredTopicFilter<Event>;
185
+ export type Log = TypedEventLog<Event>;
186
+ export type LogDescription = TypedLogDescription<Event>;
187
+ }
188
+
189
+ export namespace RoleGrantedEvent {
190
+ export type InputTuple = [role: BytesLike, account: AddressLike, sender: AddressLike];
191
+ export type OutputTuple = [role: string, account: string, sender: string];
192
+ export interface OutputObject {
193
+ role: string;
194
+ account: string;
195
+ sender: string;
196
+ }
197
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
198
+ export type Filter = TypedDeferredTopicFilter<Event>;
199
+ export type Log = TypedEventLog<Event>;
200
+ export type LogDescription = TypedLogDescription<Event>;
201
+ }
202
+
203
+ export namespace RoleRevokedEvent {
204
+ export type InputTuple = [role: BytesLike, account: AddressLike, sender: AddressLike];
205
+ export type OutputTuple = [role: string, account: string, sender: string];
206
+ export interface OutputObject {
207
+ role: string;
208
+ account: string;
209
+ sender: string;
210
+ }
211
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
212
+ export type Filter = TypedDeferredTopicFilter<Event>;
213
+ export type Log = TypedEventLog<Event>;
214
+ export type LogDescription = TypedLogDescription<Event>;
82
215
  }
83
216
 
84
217
  export namespace ShareRemovedEvent {
@@ -96,12 +229,38 @@ export namespace ShareRemovedEvent {
96
229
  }
97
230
 
98
231
  export namespace SharedEvent {
99
- export type InputTuple = [recipient: AddressLike, issuer: AddressLike, shareId: BytesLike];
100
- export type OutputTuple = [recipient: string, issuer: string, shareId: string];
232
+ export type InputTuple = [
233
+ recipient: AddressLike,
234
+ issuer: AddressLike,
235
+ shareId: BytesLike,
236
+ acp: ACPStruct,
237
+ metadata: BytesLike,
238
+ ];
239
+ export type OutputTuple = [
240
+ recipient: string,
241
+ issuer: string,
242
+ shareId: string,
243
+ acp: ACPStructOutput,
244
+ metadata: string,
245
+ ];
101
246
  export interface OutputObject {
102
247
  recipient: string;
103
248
  issuer: string;
104
249
  shareId: string;
250
+ acp: ACPStructOutput;
251
+ metadata: string;
252
+ }
253
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
254
+ export type Filter = TypedDeferredTopicFilter<Event>;
255
+ export type Log = TypedEventLog<Event>;
256
+ export type LogDescription = TypedLogDescription<Event>;
257
+ }
258
+
259
+ export namespace UpgradedEvent {
260
+ export type InputTuple = [implementation: AddressLike];
261
+ export type OutputTuple = [implementation: string];
262
+ export interface OutputObject {
263
+ implementation: string;
105
264
  }
106
265
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
107
266
  export type Filter = TypedDeferredTopicFilter<Event>;
@@ -142,32 +301,163 @@ export interface ACPShareRegistry extends BaseContract {
142
301
  listeners(eventName?: string): Promise<Array<Listener>>;
143
302
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
144
303
 
145
- getShare: TypedContractMethod<[shareId: BytesLike], [ACPStructOutput], 'view'>;
304
+ DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], 'view'>;
305
+
306
+ UPGRADER_ROLE: TypedContractMethod<[], [string], 'view'>;
307
+
308
+ UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], 'view'>;
309
+
310
+ getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], 'view'>;
311
+
312
+ getShare: TypedContractMethod<[shareId: BytesLike], [ACPShareRegistry.ShareHeaderStructOutput], 'view'>;
313
+
314
+ grantRole: TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
315
+
316
+ hasRole: TypedContractMethod<[role: BytesLike, account: AddressLike], [boolean], 'view'>;
317
+
318
+ initialize: TypedContractMethod<[initialAdmin: AddressLike], [void], 'nonpayable'>;
146
319
 
147
320
  isShareValid: TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
148
321
 
322
+ proxiableUUID: TypedContractMethod<[], [string], 'view'>;
323
+
149
324
  removeShare: TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
150
325
 
151
- share: TypedContractMethod<[acp: ACPStruct], [string], 'nonpayable'>;
326
+ renounceRole: TypedContractMethod<[role: BytesLike, callerConfirmation: AddressLike], [void], 'nonpayable'>;
327
+
328
+ revokeRole: TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
329
+
330
+ share: TypedContractMethod<[acp: ACPStruct, metadata: BytesLike], [string], 'nonpayable'>;
331
+
332
+ sharesFor: TypedContractMethod<
333
+ [recipient: AddressLike],
334
+ [
335
+ [string[], ACPShareRegistry.ShareHeaderStructOutput[]] & {
336
+ shareIds: string[];
337
+ headers: ACPShareRegistry.ShareHeaderStructOutput[];
338
+ },
339
+ ],
340
+ 'view'
341
+ >;
152
342
 
153
- sharesFor: TypedContractMethod<[recipient: AddressLike], [ACPStructOutput[]], 'view'>;
343
+ supportsInterface: TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'>;
344
+
345
+ upgradeToAndCall: TypedContractMethod<[newImplementation: AddressLike, data: BytesLike], [void], 'payable'>;
154
346
 
155
347
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
156
348
 
157
- getFunction(nameOrSignature: 'getShare'): TypedContractMethod<[shareId: BytesLike], [ACPStructOutput], 'view'>;
349
+ getFunction(nameOrSignature: 'DEFAULT_ADMIN_ROLE'): TypedContractMethod<[], [string], 'view'>;
350
+ getFunction(nameOrSignature: 'UPGRADER_ROLE'): TypedContractMethod<[], [string], 'view'>;
351
+ getFunction(nameOrSignature: 'UPGRADE_INTERFACE_VERSION'): TypedContractMethod<[], [string], 'view'>;
352
+ getFunction(nameOrSignature: 'getRoleAdmin'): TypedContractMethod<[role: BytesLike], [string], 'view'>;
353
+ getFunction(
354
+ nameOrSignature: 'getShare'
355
+ ): TypedContractMethod<[shareId: BytesLike], [ACPShareRegistry.ShareHeaderStructOutput], 'view'>;
356
+ getFunction(
357
+ nameOrSignature: 'grantRole'
358
+ ): TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
359
+ getFunction(
360
+ nameOrSignature: 'hasRole'
361
+ ): TypedContractMethod<[role: BytesLike, account: AddressLike], [boolean], 'view'>;
362
+ getFunction(nameOrSignature: 'initialize'): TypedContractMethod<[initialAdmin: AddressLike], [void], 'nonpayable'>;
158
363
  getFunction(nameOrSignature: 'isShareValid'): TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
364
+ getFunction(nameOrSignature: 'proxiableUUID'): TypedContractMethod<[], [string], 'view'>;
159
365
  getFunction(nameOrSignature: 'removeShare'): TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
160
- getFunction(nameOrSignature: 'share'): TypedContractMethod<[acp: ACPStruct], [string], 'nonpayable'>;
161
- getFunction(nameOrSignature: 'sharesFor'): TypedContractMethod<[recipient: AddressLike], [ACPStructOutput[]], 'view'>;
366
+ getFunction(
367
+ nameOrSignature: 'renounceRole'
368
+ ): TypedContractMethod<[role: BytesLike, callerConfirmation: AddressLike], [void], 'nonpayable'>;
369
+ getFunction(
370
+ nameOrSignature: 'revokeRole'
371
+ ): TypedContractMethod<[role: BytesLike, account: AddressLike], [void], 'nonpayable'>;
372
+ getFunction(
373
+ nameOrSignature: 'share'
374
+ ): TypedContractMethod<[acp: ACPStruct, metadata: BytesLike], [string], 'nonpayable'>;
375
+ getFunction(nameOrSignature: 'sharesFor'): TypedContractMethod<
376
+ [recipient: AddressLike],
377
+ [
378
+ [string[], ACPShareRegistry.ShareHeaderStructOutput[]] & {
379
+ shareIds: string[];
380
+ headers: ACPShareRegistry.ShareHeaderStructOutput[];
381
+ },
382
+ ],
383
+ 'view'
384
+ >;
385
+ getFunction(nameOrSignature: 'supportsInterface'): TypedContractMethod<[interfaceId: BytesLike], [boolean], 'view'>;
386
+ getFunction(
387
+ nameOrSignature: 'upgradeToAndCall'
388
+ ): TypedContractMethod<[newImplementation: AddressLike, data: BytesLike], [void], 'payable'>;
162
389
 
390
+ getEvent(
391
+ key: 'Initialized'
392
+ ): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
393
+ getEvent(
394
+ key: 'RoleAdminChanged'
395
+ ): TypedContractEvent<
396
+ RoleAdminChangedEvent.InputTuple,
397
+ RoleAdminChangedEvent.OutputTuple,
398
+ RoleAdminChangedEvent.OutputObject
399
+ >;
400
+ getEvent(
401
+ key: 'RoleGranted'
402
+ ): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
403
+ getEvent(
404
+ key: 'RoleRevoked'
405
+ ): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
163
406
  getEvent(
164
407
  key: 'ShareRemoved'
165
408
  ): TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
166
409
  getEvent(
167
410
  key: 'Shared'
168
411
  ): TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
412
+ getEvent(
413
+ key: 'Upgraded'
414
+ ): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
169
415
 
170
416
  filters: {
417
+ 'Initialized(uint64)': TypedContractEvent<
418
+ InitializedEvent.InputTuple,
419
+ InitializedEvent.OutputTuple,
420
+ InitializedEvent.OutputObject
421
+ >;
422
+ Initialized: TypedContractEvent<
423
+ InitializedEvent.InputTuple,
424
+ InitializedEvent.OutputTuple,
425
+ InitializedEvent.OutputObject
426
+ >;
427
+
428
+ 'RoleAdminChanged(bytes32,bytes32,bytes32)': TypedContractEvent<
429
+ RoleAdminChangedEvent.InputTuple,
430
+ RoleAdminChangedEvent.OutputTuple,
431
+ RoleAdminChangedEvent.OutputObject
432
+ >;
433
+ RoleAdminChanged: TypedContractEvent<
434
+ RoleAdminChangedEvent.InputTuple,
435
+ RoleAdminChangedEvent.OutputTuple,
436
+ RoleAdminChangedEvent.OutputObject
437
+ >;
438
+
439
+ 'RoleGranted(bytes32,address,address)': TypedContractEvent<
440
+ RoleGrantedEvent.InputTuple,
441
+ RoleGrantedEvent.OutputTuple,
442
+ RoleGrantedEvent.OutputObject
443
+ >;
444
+ RoleGranted: TypedContractEvent<
445
+ RoleGrantedEvent.InputTuple,
446
+ RoleGrantedEvent.OutputTuple,
447
+ RoleGrantedEvent.OutputObject
448
+ >;
449
+
450
+ 'RoleRevoked(bytes32,address,address)': TypedContractEvent<
451
+ RoleRevokedEvent.InputTuple,
452
+ RoleRevokedEvent.OutputTuple,
453
+ RoleRevokedEvent.OutputObject
454
+ >;
455
+ RoleRevoked: TypedContractEvent<
456
+ RoleRevokedEvent.InputTuple,
457
+ RoleRevokedEvent.OutputTuple,
458
+ RoleRevokedEvent.OutputObject
459
+ >;
460
+
171
461
  'ShareRemoved(address,address,bytes32)': TypedContractEvent<
172
462
  ShareRemovedEvent.InputTuple,
173
463
  ShareRemovedEvent.OutputTuple,
@@ -179,11 +469,18 @@ export interface ACPShareRegistry extends BaseContract {
179
469
  ShareRemovedEvent.OutputObject
180
470
  >;
181
471
 
182
- 'Shared(address,address,bytes32)': TypedContractEvent<
472
+ 'Shared(address,address,bytes32,tuple,bytes)': TypedContractEvent<
183
473
  SharedEvent.InputTuple,
184
474
  SharedEvent.OutputTuple,
185
475
  SharedEvent.OutputObject
186
476
  >;
187
477
  Shared: TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
478
+
479
+ 'Upgraded(address)': TypedContractEvent<
480
+ UpgradedEvent.InputTuple,
481
+ UpgradedEvent.OutputTuple,
482
+ UpgradedEvent.OutputObject
483
+ >;
484
+ Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
188
485
  };
189
486
  }
@@ -66,7 +66,6 @@ export type ACPStructOutput = [
66
66
  export interface MockACLInterface extends Interface {
67
67
  getFunction(
68
68
  nameOrSignature:
69
- | 'TASK_MANAGER_ADDRESS_'
70
69
  | 'allow'
71
70
  | 'allowForDecryption'
72
71
  | 'allowGlobal'
@@ -90,6 +89,7 @@ export interface MockACLInterface extends Interface {
90
89
  | 'receiveCtHash'
91
90
  | 'setDefaultRevokerContract'
92
91
  | 'setShareRegistry'
92
+ | 'setTaskManager'
93
93
  | 'shareCtHash'
94
94
  | 'shareRegistry'
95
95
  ): FunctionFragment;
@@ -99,11 +99,12 @@ export interface MockACLInterface extends Interface {
99
99
  | 'AllowedForDecryption'
100
100
  | 'DefaultRevokerContractUpdated'
101
101
  | 'EIP712DomainChanged'
102
+ | 'Initialized'
102
103
  | 'NewDelegation'
103
104
  | 'ShareRegistryUpdated'
105
+ | 'TaskManagerUpdated'
104
106
  ): EventFragment;
105
107
 
106
- encodeFunctionData(functionFragment: 'TASK_MANAGER_ADDRESS_', values?: undefined): string;
107
108
  encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike, AddressLike]): string;
108
109
  encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish[], AddressLike]): string;
109
110
  encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish, AddressLike]): string;
@@ -130,10 +131,10 @@ export interface MockACLInterface extends Interface {
130
131
  encodeFunctionData(functionFragment: 'receiveCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
131
132
  encodeFunctionData(functionFragment: 'setDefaultRevokerContract', values: [AddressLike]): string;
132
133
  encodeFunctionData(functionFragment: 'setShareRegistry', values: [AddressLike]): string;
134
+ encodeFunctionData(functionFragment: 'setTaskManager', values: [AddressLike]): string;
133
135
  encodeFunctionData(functionFragment: 'shareCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
134
136
  encodeFunctionData(functionFragment: 'shareRegistry', values?: undefined): string;
135
137
 
136
- decodeFunctionResult(functionFragment: 'TASK_MANAGER_ADDRESS_', data: BytesLike): Result;
137
138
  decodeFunctionResult(functionFragment: 'allow', data: BytesLike): Result;
138
139
  decodeFunctionResult(functionFragment: 'allowForDecryption', data: BytesLike): Result;
139
140
  decodeFunctionResult(functionFragment: 'allowGlobal', data: BytesLike): Result;
@@ -157,6 +158,7 @@ export interface MockACLInterface extends Interface {
157
158
  decodeFunctionResult(functionFragment: 'receiveCtHash', data: BytesLike): Result;
158
159
  decodeFunctionResult(functionFragment: 'setDefaultRevokerContract', data: BytesLike): Result;
159
160
  decodeFunctionResult(functionFragment: 'setShareRegistry', data: BytesLike): Result;
161
+ decodeFunctionResult(functionFragment: 'setTaskManager', data: BytesLike): Result;
160
162
  decodeFunctionResult(functionFragment: 'shareCtHash', data: BytesLike): Result;
161
163
  decodeFunctionResult(functionFragment: 'shareRegistry', data: BytesLike): Result;
162
164
  }
@@ -196,6 +198,18 @@ export namespace EIP712DomainChangedEvent {
196
198
  export type LogDescription = TypedLogDescription<Event>;
197
199
  }
198
200
 
201
+ export namespace InitializedEvent {
202
+ export type InputTuple = [version: BigNumberish];
203
+ export type OutputTuple = [version: bigint];
204
+ export interface OutputObject {
205
+ version: bigint;
206
+ }
207
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
208
+ export type Filter = TypedDeferredTopicFilter<Event>;
209
+ export type Log = TypedEventLog<Event>;
210
+ export type LogDescription = TypedLogDescription<Event>;
211
+ }
212
+
199
213
  export namespace NewDelegationEvent {
200
214
  export type InputTuple = [sender: AddressLike, delegatee: AddressLike, contractAddress: AddressLike];
201
215
  export type OutputTuple = [sender: string, delegatee: string, contractAddress: string];
@@ -223,6 +237,19 @@ export namespace ShareRegistryUpdatedEvent {
223
237
  export type LogDescription = TypedLogDescription<Event>;
224
238
  }
225
239
 
240
+ export namespace TaskManagerUpdatedEvent {
241
+ export type InputTuple = [oldAddress: AddressLike, newAddress: AddressLike];
242
+ export type OutputTuple = [oldAddress: string, newAddress: string];
243
+ export interface OutputObject {
244
+ oldAddress: string;
245
+ newAddress: string;
246
+ }
247
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
248
+ export type Filter = TypedDeferredTopicFilter<Event>;
249
+ export type Log = TypedEventLog<Event>;
250
+ export type LogDescription = TypedLogDescription<Event>;
251
+ }
252
+
226
253
  export interface MockACL extends BaseContract {
227
254
  connect(runner?: ContractRunner | null): MockACL;
228
255
  waitForDeployment(): Promise<this>;
@@ -256,8 +283,6 @@ export interface MockACL extends BaseContract {
256
283
  listeners(eventName?: string): Promise<Array<Listener>>;
257
284
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
258
285
 
259
- TASK_MANAGER_ADDRESS_: TypedContractMethod<[], [string], 'view'>;
260
-
261
286
  allow: TypedContractMethod<
262
287
  [handle: BigNumberish, account: AddressLike, requester: AddressLike],
263
288
  [void],
@@ -334,6 +359,8 @@ export interface MockACL extends BaseContract {
334
359
 
335
360
  setShareRegistry: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
336
361
 
362
+ setTaskManager: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
363
+
337
364
  shareCtHash: TypedContractMethod<
338
365
  [handle: BigNumberish, sharer: AddressLike, receiver: AddressLike],
339
366
  [void],
@@ -344,7 +371,6 @@ export interface MockACL extends BaseContract {
344
371
 
345
372
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
346
373
 
347
- getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_'): TypedContractMethod<[], [string], 'view'>;
348
374
  getFunction(
349
375
  nameOrSignature: 'allow'
350
376
  ): TypedContractMethod<[handle: BigNumberish, account: AddressLike, requester: AddressLike], [void], 'nonpayable'>;
@@ -418,6 +444,7 @@ export interface MockACL extends BaseContract {
418
444
  getFunction(
419
445
  nameOrSignature: 'setShareRegistry'
420
446
  ): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
447
+ getFunction(nameOrSignature: 'setTaskManager'): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
421
448
  getFunction(
422
449
  nameOrSignature: 'shareCtHash'
423
450
  ): TypedContractMethod<[handle: BigNumberish, sharer: AddressLike, receiver: AddressLike], [void], 'nonpayable'>;
@@ -444,6 +471,9 @@ export interface MockACL extends BaseContract {
444
471
  EIP712DomainChangedEvent.OutputTuple,
445
472
  EIP712DomainChangedEvent.OutputObject
446
473
  >;
474
+ getEvent(
475
+ key: 'Initialized'
476
+ ): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
447
477
  getEvent(
448
478
  key: 'NewDelegation'
449
479
  ): TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
@@ -454,6 +484,13 @@ export interface MockACL extends BaseContract {
454
484
  ShareRegistryUpdatedEvent.OutputTuple,
455
485
  ShareRegistryUpdatedEvent.OutputObject
456
486
  >;
487
+ getEvent(
488
+ key: 'TaskManagerUpdated'
489
+ ): TypedContractEvent<
490
+ TaskManagerUpdatedEvent.InputTuple,
491
+ TaskManagerUpdatedEvent.OutputTuple,
492
+ TaskManagerUpdatedEvent.OutputObject
493
+ >;
457
494
 
458
495
  filters: {
459
496
  'AllowedForDecryption(uint256[])': TypedContractEvent<
@@ -489,6 +526,17 @@ export interface MockACL extends BaseContract {
489
526
  EIP712DomainChangedEvent.OutputObject
490
527
  >;
491
528
 
529
+ 'Initialized(uint64)': TypedContractEvent<
530
+ InitializedEvent.InputTuple,
531
+ InitializedEvent.OutputTuple,
532
+ InitializedEvent.OutputObject
533
+ >;
534
+ Initialized: TypedContractEvent<
535
+ InitializedEvent.InputTuple,
536
+ InitializedEvent.OutputTuple,
537
+ InitializedEvent.OutputObject
538
+ >;
539
+
492
540
  'NewDelegation(address,address,address)': TypedContractEvent<
493
541
  NewDelegationEvent.InputTuple,
494
542
  NewDelegationEvent.OutputTuple,
@@ -510,5 +558,16 @@ export interface MockACL extends BaseContract {
510
558
  ShareRegistryUpdatedEvent.OutputTuple,
511
559
  ShareRegistryUpdatedEvent.OutputObject
512
560
  >;
561
+
562
+ 'TaskManagerUpdated(address,address)': TypedContractEvent<
563
+ TaskManagerUpdatedEvent.InputTuple,
564
+ TaskManagerUpdatedEvent.OutputTuple,
565
+ TaskManagerUpdatedEvent.OutputObject
566
+ >;
567
+ TaskManagerUpdated: TypedContractEvent<
568
+ TaskManagerUpdatedEvent.InputTuple,
569
+ TaskManagerUpdatedEvent.OutputTuple,
570
+ TaskManagerUpdatedEvent.OutputObject
571
+ >;
513
572
  };
514
573
  }