@cofhe/mock-contracts 0.8.0 → 1.0.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/src/MockACL.ts CHANGED
@@ -668,6 +668,19 @@ export const MockACLArtifact = {
668
668
  inputs: [],
669
669
  anonymous: false,
670
670
  },
671
+ {
672
+ type: 'event',
673
+ name: 'Initialized',
674
+ inputs: [
675
+ {
676
+ name: 'version',
677
+ type: 'uint64',
678
+ indexed: false,
679
+ internalType: 'uint64',
680
+ },
681
+ ],
682
+ anonymous: false,
683
+ },
671
684
  {
672
685
  type: 'event',
673
686
  name: 'NewDelegation',
@@ -749,7 +762,7 @@ export const MockACLArtifact = {
749
762
  },
750
763
  {
751
764
  type: 'error',
752
- name: 'InvalidShortString',
765
+ name: 'InvalidInitialization',
753
766
  inputs: [],
754
767
  },
755
768
  {
@@ -757,6 +770,11 @@ export const MockACLArtifact = {
757
770
  name: 'InvalidTaskManagerAddress',
758
771
  inputs: [],
759
772
  },
773
+ {
774
+ type: 'error',
775
+ name: 'NotInitializing',
776
+ inputs: [],
777
+ },
760
778
  {
761
779
  type: 'error',
762
780
  name: 'NotShared',
@@ -809,17 +827,6 @@ export const MockACLArtifact = {
809
827
  },
810
828
  ],
811
829
  },
812
- {
813
- type: 'error',
814
- name: 'StringTooLong',
815
- inputs: [
816
- {
817
- name: 'str',
818
- type: 'string',
819
- internalType: 'string',
820
- },
821
- ],
822
- },
823
830
  {
824
831
  type: 'error',
825
832
  name: 'UnexpectedSharer',
@@ -0,0 +1,74 @@
1
+ // This file is auto-generated by build-artifacts.ts
2
+ import { type MockArtifact } from './types';
3
+
4
+ export const MockERC1967ProxyArtifact = {
5
+ contractName: 'MockERC1967Proxy',
6
+ isFixed: false,
7
+ abi: [
8
+ {
9
+ type: 'constructor',
10
+ inputs: [
11
+ {
12
+ name: 'implementation',
13
+ type: 'address',
14
+ internalType: 'address',
15
+ },
16
+ {
17
+ name: 'data',
18
+ type: 'bytes',
19
+ internalType: 'bytes',
20
+ },
21
+ ],
22
+ stateMutability: 'payable',
23
+ },
24
+ {
25
+ type: 'fallback',
26
+ stateMutability: 'payable',
27
+ },
28
+ {
29
+ type: 'event',
30
+ name: 'Upgraded',
31
+ inputs: [
32
+ {
33
+ name: 'implementation',
34
+ type: 'address',
35
+ indexed: true,
36
+ internalType: 'address',
37
+ },
38
+ ],
39
+ anonymous: false,
40
+ },
41
+ {
42
+ type: 'error',
43
+ name: 'AddressEmptyCode',
44
+ inputs: [
45
+ {
46
+ name: 'target',
47
+ type: 'address',
48
+ internalType: 'address',
49
+ },
50
+ ],
51
+ },
52
+ {
53
+ type: 'error',
54
+ name: 'ERC1967InvalidImplementation',
55
+ inputs: [
56
+ {
57
+ name: 'implementation',
58
+ type: 'address',
59
+ internalType: 'address',
60
+ },
61
+ ],
62
+ },
63
+ {
64
+ type: 'error',
65
+ name: 'ERC1967NonPayable',
66
+ inputs: [],
67
+ },
68
+ {
69
+ type: 'error',
70
+ name: 'FailedCall',
71
+ inputs: [],
72
+ },
73
+ ],
74
+ } as const satisfies MockArtifact;
@@ -1314,7 +1314,7 @@ export const MockTaskManagerArtifact = {
1314
1314
  },
1315
1315
  {
1316
1316
  type: 'error',
1317
- name: 'NotImplemented',
1317
+ name: 'LengthMismatch',
1318
1318
  inputs: [],
1319
1319
  },
1320
1320
  {
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ export * from './MockTaskManager';
4
4
  export * from './MockACL';
5
5
  export * from './ACPTimestampRevoker';
6
6
  export * from './ACPShareRegistry';
7
+ export * from './MockERC1967Proxy';
7
8
  export * from './MockZkVerifier';
8
9
  export * from './MockThresholdNetwork';
9
10
  export type {
@@ -14,4 +15,5 @@ export type {
14
15
  MockZkVerifier,
15
16
  ACPTimestampRevoker,
16
17
  ACPShareRegistry,
18
+ MockERC1967Proxy,
17
19
  } from './typechain-types';
@@ -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
  }
@@ -99,6 +99,7 @@ export interface MockACLInterface extends Interface {
99
99
  | 'AllowedForDecryption'
100
100
  | 'DefaultRevokerContractUpdated'
101
101
  | 'EIP712DomainChanged'
102
+ | 'Initialized'
102
103
  | 'NewDelegation'
103
104
  | 'ShareRegistryUpdated'
104
105
  | 'TaskManagerUpdated'
@@ -197,6 +198,18 @@ export namespace EIP712DomainChangedEvent {
197
198
  export type LogDescription = TypedLogDescription<Event>;
198
199
  }
199
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
+
200
213
  export namespace NewDelegationEvent {
201
214
  export type InputTuple = [sender: AddressLike, delegatee: AddressLike, contractAddress: AddressLike];
202
215
  export type OutputTuple = [sender: string, delegatee: string, contractAddress: string];
@@ -458,6 +471,9 @@ export interface MockACL extends BaseContract {
458
471
  EIP712DomainChangedEvent.OutputTuple,
459
472
  EIP712DomainChangedEvent.OutputObject
460
473
  >;
474
+ getEvent(
475
+ key: 'Initialized'
476
+ ): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
461
477
  getEvent(
462
478
  key: 'NewDelegation'
463
479
  ): TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
@@ -510,6 +526,17 @@ export interface MockACL extends BaseContract {
510
526
  EIP712DomainChangedEvent.OutputObject
511
527
  >;
512
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
+
513
540
  'NewDelegation(address,address,address)': TypedContractEvent<
514
541
  NewDelegationEvent.InputTuple,
515
542
  NewDelegationEvent.OutputTuple,
@@ -0,0 +1,85 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ FunctionFragment,
7
+ Interface,
8
+ EventFragment,
9
+ AddressLike,
10
+ ContractRunner,
11
+ ContractMethod,
12
+ Listener,
13
+ } from 'ethers';
14
+ import type {
15
+ TypedContractEvent,
16
+ TypedDeferredTopicFilter,
17
+ TypedEventLog,
18
+ TypedLogDescription,
19
+ TypedListener,
20
+ } from './common';
21
+
22
+ export interface MockERC1967ProxyInterface extends Interface {
23
+ getEvent(nameOrSignatureOrTopic: 'Upgraded'): EventFragment;
24
+ }
25
+
26
+ export namespace UpgradedEvent {
27
+ export type InputTuple = [implementation: AddressLike];
28
+ export type OutputTuple = [implementation: string];
29
+ export interface OutputObject {
30
+ implementation: string;
31
+ }
32
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
33
+ export type Filter = TypedDeferredTopicFilter<Event>;
34
+ export type Log = TypedEventLog<Event>;
35
+ export type LogDescription = TypedLogDescription<Event>;
36
+ }
37
+
38
+ export interface MockERC1967Proxy extends BaseContract {
39
+ connect(runner?: ContractRunner | null): MockERC1967Proxy;
40
+ waitForDeployment(): Promise<this>;
41
+
42
+ interface: MockERC1967ProxyInterface;
43
+
44
+ queryFilter<TCEvent extends TypedContractEvent>(
45
+ event: TCEvent,
46
+ fromBlockOrBlockhash?: string | number | undefined,
47
+ toBlock?: string | number | undefined
48
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
49
+ queryFilter<TCEvent extends TypedContractEvent>(
50
+ filter: TypedDeferredTopicFilter<TCEvent>,
51
+ fromBlockOrBlockhash?: string | number | undefined,
52
+ toBlock?: string | number | undefined
53
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
54
+
55
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
56
+ on<TCEvent extends TypedContractEvent>(
57
+ filter: TypedDeferredTopicFilter<TCEvent>,
58
+ listener: TypedListener<TCEvent>
59
+ ): Promise<this>;
60
+
61
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
62
+ once<TCEvent extends TypedContractEvent>(
63
+ filter: TypedDeferredTopicFilter<TCEvent>,
64
+ listener: TypedListener<TCEvent>
65
+ ): Promise<this>;
66
+
67
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
68
+ listeners(eventName?: string): Promise<Array<Listener>>;
69
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
70
+
71
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
72
+
73
+ getEvent(
74
+ key: 'Upgraded'
75
+ ): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
76
+
77
+ filters: {
78
+ 'Upgraded(address)': TypedContractEvent<
79
+ UpgradedEvent.InputTuple,
80
+ UpgradedEvent.OutputTuple,
81
+ UpgradedEvent.OutputObject
82
+ >;
83
+ Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
84
+ };
85
+ }