@cofhe/mock-contracts 0.6.1 → 0.7.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.
@@ -23,23 +23,41 @@ import type {
23
23
  TypedContractMethod,
24
24
  } from './common';
25
25
 
26
- export type PermissionStruct = {
26
+ export type UnsignedEncryptedInputStruct = {
27
+ ctHash: BigNumberish;
28
+ securityZone: BigNumberish;
29
+ utype: BigNumberish;
30
+ };
31
+
32
+ export type UnsignedEncryptedInputStructOutput = [ctHash: bigint, securityZone: bigint, utype: bigint] & {
33
+ ctHash: bigint;
34
+ securityZone: bigint;
35
+ utype: bigint;
36
+ };
37
+
38
+ export type ACPStruct = {
27
39
  issuer: AddressLike;
28
40
  expiration: BigNumberish;
29
41
  recipient: AddressLike;
30
- validatorId: BigNumberish;
31
- validatorContract: AddressLike;
42
+ revokerData: BigNumberish;
43
+ revokerContract: AddressLike;
44
+ scope: BigNumberish;
45
+ contracts: AddressLike[];
46
+ handles: BytesLike[];
32
47
  sealingKey: BytesLike;
33
48
  issuerSignature: BytesLike;
34
49
  recipientSignature: BytesLike;
35
50
  };
36
51
 
37
- export type PermissionStructOutput = [
52
+ export type ACPStructOutput = [
38
53
  issuer: string,
39
54
  expiration: bigint,
40
55
  recipient: string,
41
- validatorId: bigint,
42
- validatorContract: string,
56
+ revokerData: bigint,
57
+ revokerContract: string,
58
+ scope: bigint,
59
+ contracts: string[],
60
+ handles: string[],
43
61
  sealingKey: string,
44
62
  issuerSignature: string,
45
63
  recipientSignature: string,
@@ -47,27 +65,16 @@ export type PermissionStructOutput = [
47
65
  issuer: string;
48
66
  expiration: bigint;
49
67
  recipient: string;
50
- validatorId: bigint;
51
- validatorContract: string;
68
+ revokerData: bigint;
69
+ revokerContract: string;
70
+ scope: bigint;
71
+ contracts: string[];
72
+ handles: string[];
52
73
  sealingKey: string;
53
74
  issuerSignature: string;
54
75
  recipientSignature: string;
55
76
  };
56
77
 
57
- export type EncryptedInputStruct = {
58
- ctHash: BigNumberish;
59
- securityZone: BigNumberish;
60
- utype: BigNumberish;
61
- signature: BytesLike;
62
- };
63
-
64
- export type EncryptedInputStructOutput = [ctHash: bigint, securityZone: bigint, utype: bigint, signature: string] & {
65
- ctHash: bigint;
66
- securityZone: bigint;
67
- utype: bigint;
68
- signature: string;
69
- };
70
-
71
78
  export interface MockTaskManagerInterface extends Interface {
72
79
  getFunction(
73
80
  nameOrSignature:
@@ -79,6 +86,7 @@ export interface MockTaskManagerInterface extends Interface {
79
86
  | 'allowForDecryption'
80
87
  | 'allowGlobal'
81
88
  | 'allowTransient'
89
+ | 'batchVerifyInputs'
82
90
  | 'createDecryptTask'
83
91
  | 'createRandomTask'
84
92
  | 'createTask'
@@ -98,6 +106,7 @@ export interface MockTaskManagerInterface extends Interface {
98
106
  | 'mockStorage'
99
107
  | 'publishDecryptResult'
100
108
  | 'publishDecryptResultBatch'
109
+ | 'receiveCtHash'
101
110
  | 'removeFirstLetter'
102
111
  | 'setACLContract'
103
112
  | 'setAggregator'
@@ -107,12 +116,12 @@ export interface MockTaskManagerInterface extends Interface {
107
116
  | 'setSecurityZoneMin'
108
117
  | 'setSecurityZones'
109
118
  | 'setVerifierSigner'
119
+ | 'shareCtHash'
110
120
  | 'sliceString'
111
121
  | 'verifyDecryptResult'
112
122
  | 'verifyDecryptResultBatch'
113
123
  | 'verifyDecryptResultBatchSafe'
114
124
  | 'verifyDecryptResultSafe'
115
- | 'verifyInput'
116
125
  ): FunctionFragment;
117
126
 
118
127
  getEvent(nameOrSignatureOrTopic: 'DecryptionResult' | 'ProtocolNotification' | 'TaskCreated'): EventFragment;
@@ -125,6 +134,10 @@ export interface MockTaskManagerInterface extends Interface {
125
134
  encodeFunctionData(functionFragment: 'allowForDecryption', values: [BigNumberish]): string;
126
135
  encodeFunctionData(functionFragment: 'allowGlobal', values: [BigNumberish]): string;
127
136
  encodeFunctionData(functionFragment: 'allowTransient', values: [BigNumberish, AddressLike]): string;
137
+ encodeFunctionData(
138
+ functionFragment: 'batchVerifyInputs',
139
+ values: [UnsignedEncryptedInputStruct[], AddressLike, BytesLike]
140
+ ): string;
128
141
  encodeFunctionData(functionFragment: 'createDecryptTask', values: [BigNumberish, AddressLike]): string;
129
142
  encodeFunctionData(functionFragment: 'createRandomTask', values: [BigNumberish, BigNumberish, BigNumberish]): string;
130
143
  encodeFunctionData(
@@ -143,7 +156,7 @@ export interface MockTaskManagerInterface extends Interface {
143
156
  encodeFunctionData(functionFragment: 'inMockStorage', values: [BigNumberish]): string;
144
157
  encodeFunctionData(functionFragment: 'initialize', values: [AddressLike]): string;
145
158
  encodeFunctionData(functionFragment: 'isAllowed', values: [BigNumberish, AddressLike]): string;
146
- encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [PermissionStruct, BigNumberish]): string;
159
+ encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [ACPStruct, BigNumberish]): string;
147
160
  encodeFunctionData(functionFragment: 'isInitialized', values?: undefined): string;
148
161
  encodeFunctionData(functionFragment: 'isPubliclyAllowed', values: [BigNumberish]): string;
149
162
  encodeFunctionData(functionFragment: 'logOps', values?: undefined): string;
@@ -153,6 +166,7 @@ export interface MockTaskManagerInterface extends Interface {
153
166
  functionFragment: 'publishDecryptResultBatch',
154
167
  values: [BigNumberish[], BigNumberish[], BytesLike[]]
155
168
  ): string;
169
+ encodeFunctionData(functionFragment: 'receiveCtHash', values: [BigNumberish, AddressLike]): string;
156
170
  encodeFunctionData(functionFragment: 'removeFirstLetter', values: [string]): string;
157
171
  encodeFunctionData(functionFragment: 'setACLContract', values: [AddressLike]): string;
158
172
  encodeFunctionData(functionFragment: 'setAggregator', values: [AddressLike]): string;
@@ -162,6 +176,7 @@ export interface MockTaskManagerInterface extends Interface {
162
176
  encodeFunctionData(functionFragment: 'setSecurityZoneMin', values: [BigNumberish]): string;
163
177
  encodeFunctionData(functionFragment: 'setSecurityZones', values: [BigNumberish, BigNumberish]): string;
164
178
  encodeFunctionData(functionFragment: 'setVerifierSigner', values: [AddressLike]): string;
179
+ encodeFunctionData(functionFragment: 'shareCtHash', values: [BigNumberish, AddressLike]): string;
165
180
  encodeFunctionData(functionFragment: 'sliceString', values: [string, BigNumberish, BigNumberish]): string;
166
181
  encodeFunctionData(functionFragment: 'verifyDecryptResult', values: [BigNumberish, BigNumberish, BytesLike]): string;
167
182
  encodeFunctionData(
@@ -176,7 +191,6 @@ export interface MockTaskManagerInterface extends Interface {
176
191
  functionFragment: 'verifyDecryptResultSafe',
177
192
  values: [BigNumberish, BigNumberish, BytesLike]
178
193
  ): string;
179
- encodeFunctionData(functionFragment: 'verifyInput', values: [EncryptedInputStruct, AddressLike]): string;
180
194
 
181
195
  decodeFunctionResult(functionFragment: 'MOCK_logAllow', data: BytesLike): Result;
182
196
  decodeFunctionResult(functionFragment: 'MOCK_setInEuintKey', data: BytesLike): Result;
@@ -186,6 +200,7 @@ export interface MockTaskManagerInterface extends Interface {
186
200
  decodeFunctionResult(functionFragment: 'allowForDecryption', data: BytesLike): Result;
187
201
  decodeFunctionResult(functionFragment: 'allowGlobal', data: BytesLike): Result;
188
202
  decodeFunctionResult(functionFragment: 'allowTransient', data: BytesLike): Result;
203
+ decodeFunctionResult(functionFragment: 'batchVerifyInputs', data: BytesLike): Result;
189
204
  decodeFunctionResult(functionFragment: 'createDecryptTask', data: BytesLike): Result;
190
205
  decodeFunctionResult(functionFragment: 'createRandomTask', data: BytesLike): Result;
191
206
  decodeFunctionResult(functionFragment: 'createTask', data: BytesLike): Result;
@@ -205,6 +220,7 @@ export interface MockTaskManagerInterface extends Interface {
205
220
  decodeFunctionResult(functionFragment: 'mockStorage', data: BytesLike): Result;
206
221
  decodeFunctionResult(functionFragment: 'publishDecryptResult', data: BytesLike): Result;
207
222
  decodeFunctionResult(functionFragment: 'publishDecryptResultBatch', data: BytesLike): Result;
223
+ decodeFunctionResult(functionFragment: 'receiveCtHash', data: BytesLike): Result;
208
224
  decodeFunctionResult(functionFragment: 'removeFirstLetter', data: BytesLike): Result;
209
225
  decodeFunctionResult(functionFragment: 'setACLContract', data: BytesLike): Result;
210
226
  decodeFunctionResult(functionFragment: 'setAggregator', data: BytesLike): Result;
@@ -214,12 +230,12 @@ export interface MockTaskManagerInterface extends Interface {
214
230
  decodeFunctionResult(functionFragment: 'setSecurityZoneMin', data: BytesLike): Result;
215
231
  decodeFunctionResult(functionFragment: 'setSecurityZones', data: BytesLike): Result;
216
232
  decodeFunctionResult(functionFragment: 'setVerifierSigner', data: BytesLike): Result;
233
+ decodeFunctionResult(functionFragment: 'shareCtHash', data: BytesLike): Result;
217
234
  decodeFunctionResult(functionFragment: 'sliceString', data: BytesLike): Result;
218
235
  decodeFunctionResult(functionFragment: 'verifyDecryptResult', data: BytesLike): Result;
219
236
  decodeFunctionResult(functionFragment: 'verifyDecryptResultBatch', data: BytesLike): Result;
220
237
  decodeFunctionResult(functionFragment: 'verifyDecryptResultBatchSafe', data: BytesLike): Result;
221
238
  decodeFunctionResult(functionFragment: 'verifyDecryptResultSafe', data: BytesLike): Result;
222
- decodeFunctionResult(functionFragment: 'verifyInput', data: BytesLike): Result;
223
239
  }
224
240
 
225
241
  export namespace DecryptionResultEvent {
@@ -321,6 +337,12 @@ export interface MockTaskManager extends BaseContract {
321
337
 
322
338
  allowTransient: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
323
339
 
340
+ batchVerifyInputs: TypedContractMethod<
341
+ [inputs: UnsignedEncryptedInputStruct[], sender: AddressLike, signature: BytesLike],
342
+ [bigint[]],
343
+ 'nonpayable'
344
+ >;
345
+
324
346
  createDecryptTask: TypedContractMethod<[ctHash: BigNumberish, arg1: AddressLike], [void], 'nonpayable'>;
325
347
 
326
348
  createRandomTask: TypedContractMethod<
@@ -365,7 +387,7 @@ export interface MockTaskManager extends BaseContract {
365
387
 
366
388
  isAllowed: TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [boolean], 'view'>;
367
389
 
368
- isAllowedWithPermission: TypedContractMethod<[permission: PermissionStruct, handle: BigNumberish], [boolean], 'view'>;
390
+ isAllowedWithPermission: TypedContractMethod<[acp: ACPStruct, handle: BigNumberish], [boolean], 'view'>;
369
391
 
370
392
  isInitialized: TypedContractMethod<[], [boolean], 'view'>;
371
393
 
@@ -387,6 +409,8 @@ export interface MockTaskManager extends BaseContract {
387
409
  'nonpayable'
388
410
  >;
389
411
 
412
+ receiveCtHash: TypedContractMethod<[ctHash: BigNumberish, expectedSharer: AddressLike], [void], 'nonpayable'>;
413
+
390
414
  removeFirstLetter: TypedContractMethod<[str: string], [string], 'view'>;
391
415
 
392
416
  setACLContract: TypedContractMethod<[_aclAddress: AddressLike], [void], 'nonpayable'>;
@@ -405,6 +429,8 @@ export interface MockTaskManager extends BaseContract {
405
429
 
406
430
  setVerifierSigner: TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
407
431
 
432
+ shareCtHash: TypedContractMethod<[ctHash: BigNumberish, receiver: AddressLike], [void], 'nonpayable'>;
433
+
408
434
  sliceString: TypedContractMethod<[str: string, start: BigNumberish, length: BigNumberish], [string], 'view'>;
409
435
 
410
436
  verifyDecryptResult: TypedContractMethod<
@@ -431,8 +457,6 @@ export interface MockTaskManager extends BaseContract {
431
457
  'view'
432
458
  >;
433
459
 
434
- verifyInput: TypedContractMethod<[input: EncryptedInputStruct, sender: AddressLike], [bigint], 'nonpayable'>;
435
-
436
460
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
437
461
 
438
462
  getFunction(
@@ -451,6 +475,13 @@ export interface MockTaskManager extends BaseContract {
451
475
  getFunction(
452
476
  nameOrSignature: 'allowTransient'
453
477
  ): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [void], 'nonpayable'>;
478
+ getFunction(
479
+ nameOrSignature: 'batchVerifyInputs'
480
+ ): TypedContractMethod<
481
+ [inputs: UnsignedEncryptedInputStruct[], sender: AddressLike, signature: BytesLike],
482
+ [bigint[]],
483
+ 'nonpayable'
484
+ >;
454
485
  getFunction(
455
486
  nameOrSignature: 'createDecryptTask'
456
487
  ): TypedContractMethod<[ctHash: BigNumberish, arg1: AddressLike], [void], 'nonpayable'>;
@@ -487,7 +518,7 @@ export interface MockTaskManager extends BaseContract {
487
518
  ): TypedContractMethod<[ctHash: BigNumberish, account: AddressLike], [boolean], 'view'>;
488
519
  getFunction(
489
520
  nameOrSignature: 'isAllowedWithPermission'
490
- ): TypedContractMethod<[permission: PermissionStruct, handle: BigNumberish], [boolean], 'view'>;
521
+ ): TypedContractMethod<[acp: ACPStruct, handle: BigNumberish], [boolean], 'view'>;
491
522
  getFunction(nameOrSignature: 'isInitialized'): TypedContractMethod<[], [boolean], 'view'>;
492
523
  getFunction(nameOrSignature: 'isPubliclyAllowed'): TypedContractMethod<[ctHash: BigNumberish], [boolean], 'view'>;
493
524
  getFunction(nameOrSignature: 'logOps'): TypedContractMethod<[], [boolean], 'view'>;
@@ -502,6 +533,9 @@ export interface MockTaskManager extends BaseContract {
502
533
  [void],
503
534
  'nonpayable'
504
535
  >;
536
+ getFunction(
537
+ nameOrSignature: 'receiveCtHash'
538
+ ): TypedContractMethod<[ctHash: BigNumberish, expectedSharer: AddressLike], [void], 'nonpayable'>;
505
539
  getFunction(nameOrSignature: 'removeFirstLetter'): TypedContractMethod<[str: string], [string], 'view'>;
506
540
  getFunction(nameOrSignature: 'setACLContract'): TypedContractMethod<[_aclAddress: AddressLike], [void], 'nonpayable'>;
507
541
  getFunction(
@@ -521,6 +555,9 @@ export interface MockTaskManager extends BaseContract {
521
555
  nameOrSignature: 'setSecurityZones'
522
556
  ): TypedContractMethod<[minSZ: BigNumberish, maxSZ: BigNumberish], [void], 'nonpayable'>;
523
557
  getFunction(nameOrSignature: 'setVerifierSigner'): TypedContractMethod<[signer: AddressLike], [void], 'nonpayable'>;
558
+ getFunction(
559
+ nameOrSignature: 'shareCtHash'
560
+ ): TypedContractMethod<[ctHash: BigNumberish, receiver: AddressLike], [void], 'nonpayable'>;
524
561
  getFunction(
525
562
  nameOrSignature: 'sliceString'
526
563
  ): TypedContractMethod<[str: string, start: BigNumberish, length: BigNumberish], [string], 'view'>;
@@ -544,9 +581,6 @@ export interface MockTaskManager extends BaseContract {
544
581
  getFunction(
545
582
  nameOrSignature: 'verifyDecryptResultSafe'
546
583
  ): TypedContractMethod<[ctHash: BigNumberish, result: BigNumberish, signature: BytesLike], [boolean], 'view'>;
547
- getFunction(
548
- nameOrSignature: 'verifyInput'
549
- ): TypedContractMethod<[input: EncryptedInputStruct, sender: AddressLike], [bigint], 'nonpayable'>;
550
584
 
551
585
  getEvent(
552
586
  key: 'DecryptionResult'
@@ -21,23 +21,29 @@ import type {
21
21
  TypedContractMethod,
22
22
  } from './common';
23
23
 
24
- export type PermissionStruct = {
24
+ export type ACPStruct = {
25
25
  issuer: AddressLike;
26
26
  expiration: BigNumberish;
27
27
  recipient: AddressLike;
28
- validatorId: BigNumberish;
29
- validatorContract: AddressLike;
28
+ revokerData: BigNumberish;
29
+ revokerContract: AddressLike;
30
+ scope: BigNumberish;
31
+ contracts: AddressLike[];
32
+ handles: BytesLike[];
30
33
  sealingKey: BytesLike;
31
34
  issuerSignature: BytesLike;
32
35
  recipientSignature: BytesLike;
33
36
  };
34
37
 
35
- export type PermissionStructOutput = [
38
+ export type ACPStructOutput = [
36
39
  issuer: string,
37
40
  expiration: bigint,
38
41
  recipient: string,
39
- validatorId: bigint,
40
- validatorContract: string,
42
+ revokerData: bigint,
43
+ revokerContract: string,
44
+ scope: bigint,
45
+ contracts: string[],
46
+ handles: string[],
41
47
  sealingKey: string,
42
48
  issuerSignature: string,
43
49
  recipientSignature: string,
@@ -45,8 +51,11 @@ export type PermissionStructOutput = [
45
51
  issuer: string;
46
52
  expiration: bigint;
47
53
  recipient: string;
48
- validatorId: bigint;
49
- validatorContract: string;
54
+ revokerData: bigint;
55
+ revokerContract: string;
56
+ scope: bigint;
57
+ contracts: string[];
58
+ handles: string[];
50
59
  sealingKey: string;
51
60
  issuerSignature: string;
52
61
  recipientSignature: string;
@@ -56,8 +65,8 @@ export interface MockThresholdNetworkInterface extends Interface {
56
65
  getFunction(
57
66
  nameOrSignature:
58
67
  | 'decodeLowLevelReversion'
59
- | 'decryptForTxWithPermit'
60
- | 'decryptForTxWithoutPermit'
68
+ | 'decryptForTxWithACP'
69
+ | 'decryptForTxWithoutACP'
61
70
  | 'exists'
62
71
  | 'initialize'
63
72
  | 'mockAcl'
@@ -70,24 +79,21 @@ export interface MockThresholdNetworkInterface extends Interface {
70
79
  ): FunctionFragment;
71
80
 
72
81
  encodeFunctionData(functionFragment: 'decodeLowLevelReversion', values: [BytesLike]): string;
73
- encodeFunctionData(functionFragment: 'decryptForTxWithPermit', values: [BigNumberish, PermissionStruct]): string;
74
- encodeFunctionData(functionFragment: 'decryptForTxWithoutPermit', values: [BigNumberish]): string;
82
+ encodeFunctionData(functionFragment: 'decryptForTxWithACP', values: [BigNumberish, ACPStruct]): string;
83
+ encodeFunctionData(functionFragment: 'decryptForTxWithoutACP', values: [BigNumberish]): string;
75
84
  encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
76
85
  encodeFunctionData(functionFragment: 'initialize', values: [AddressLike, AddressLike]): string;
77
86
  encodeFunctionData(functionFragment: 'mockAcl', values?: undefined): string;
78
87
  encodeFunctionData(functionFragment: 'mockQueryDecrypt', values: [BigNumberish, BigNumberish, AddressLike]): string;
79
88
  encodeFunctionData(functionFragment: 'mockTaskManager', values?: undefined): string;
80
- encodeFunctionData(functionFragment: 'queryDecrypt', values: [BigNumberish, BigNumberish, PermissionStruct]): string;
81
- encodeFunctionData(
82
- functionFragment: 'querySealOutput',
83
- values: [BigNumberish, BigNumberish, PermissionStruct]
84
- ): string;
89
+ encodeFunctionData(functionFragment: 'queryDecrypt', values: [BigNumberish, BigNumberish, ACPStruct]): string;
90
+ encodeFunctionData(functionFragment: 'querySealOutput', values: [BigNumberish, BigNumberish, ACPStruct]): string;
85
91
  encodeFunctionData(functionFragment: 'seal', values: [BigNumberish, BytesLike]): string;
86
92
  encodeFunctionData(functionFragment: 'unseal', values: [BytesLike, BytesLike]): string;
87
93
 
88
94
  decodeFunctionResult(functionFragment: 'decodeLowLevelReversion', data: BytesLike): Result;
89
- decodeFunctionResult(functionFragment: 'decryptForTxWithPermit', data: BytesLike): Result;
90
- decodeFunctionResult(functionFragment: 'decryptForTxWithoutPermit', data: BytesLike): Result;
95
+ decodeFunctionResult(functionFragment: 'decryptForTxWithACP', data: BytesLike): Result;
96
+ decodeFunctionResult(functionFragment: 'decryptForTxWithoutACP', data: BytesLike): Result;
91
97
  decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
92
98
  decodeFunctionResult(functionFragment: 'initialize', data: BytesLike): Result;
93
99
  decodeFunctionResult(functionFragment: 'mockAcl', data: BytesLike): Result;
@@ -134,8 +140,8 @@ export interface MockThresholdNetwork extends BaseContract {
134
140
 
135
141
  decodeLowLevelReversion: TypedContractMethod<[data: BytesLike], [string], 'view'>;
136
142
 
137
- decryptForTxWithPermit: TypedContractMethod<
138
- [ctHash: BigNumberish, permission: PermissionStruct],
143
+ decryptForTxWithACP: TypedContractMethod<
144
+ [ctHash: BigNumberish, acp: ACPStruct],
139
145
  [
140
146
  [boolean, string, bigint] & {
141
147
  allowed: boolean;
@@ -146,7 +152,7 @@ export interface MockThresholdNetwork extends BaseContract {
146
152
  'view'
147
153
  >;
148
154
 
149
- decryptForTxWithoutPermit: TypedContractMethod<
155
+ decryptForTxWithoutACP: TypedContractMethod<
150
156
  [ctHash: BigNumberish],
151
157
  [
152
158
  [boolean, string, bigint] & {
@@ -173,13 +179,13 @@ export interface MockThresholdNetwork extends BaseContract {
173
179
  mockTaskManager: TypedContractMethod<[], [string], 'view'>;
174
180
 
175
181
  queryDecrypt: TypedContractMethod<
176
- [ctHash: BigNumberish, arg1: BigNumberish, permission: PermissionStruct],
182
+ [ctHash: BigNumberish, arg1: BigNumberish, acp: ACPStruct],
177
183
  [[boolean, string, bigint] & { allowed: boolean; error: string }],
178
184
  'view'
179
185
  >;
180
186
 
181
187
  querySealOutput: TypedContractMethod<
182
- [ctHash: BigNumberish, arg1: BigNumberish, permission: PermissionStruct],
188
+ [ctHash: BigNumberish, arg1: BigNumberish, acp: ACPStruct],
183
189
  [[boolean, string, string] & { allowed: boolean; error: string }],
184
190
  'view'
185
191
  >;
@@ -191,8 +197,8 @@ export interface MockThresholdNetwork extends BaseContract {
191
197
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
192
198
 
193
199
  getFunction(nameOrSignature: 'decodeLowLevelReversion'): TypedContractMethod<[data: BytesLike], [string], 'view'>;
194
- getFunction(nameOrSignature: 'decryptForTxWithPermit'): TypedContractMethod<
195
- [ctHash: BigNumberish, permission: PermissionStruct],
200
+ getFunction(nameOrSignature: 'decryptForTxWithACP'): TypedContractMethod<
201
+ [ctHash: BigNumberish, acp: ACPStruct],
196
202
  [
197
203
  [boolean, string, bigint] & {
198
204
  allowed: boolean;
@@ -202,7 +208,7 @@ export interface MockThresholdNetwork extends BaseContract {
202
208
  ],
203
209
  'view'
204
210
  >;
205
- getFunction(nameOrSignature: 'decryptForTxWithoutPermit'): TypedContractMethod<
211
+ getFunction(nameOrSignature: 'decryptForTxWithoutACP'): TypedContractMethod<
206
212
  [ctHash: BigNumberish],
207
213
  [
208
214
  [boolean, string, bigint] & {
@@ -229,14 +235,14 @@ export interface MockThresholdNetwork extends BaseContract {
229
235
  getFunction(
230
236
  nameOrSignature: 'queryDecrypt'
231
237
  ): TypedContractMethod<
232
- [ctHash: BigNumberish, arg1: BigNumberish, permission: PermissionStruct],
238
+ [ctHash: BigNumberish, arg1: BigNumberish, acp: ACPStruct],
233
239
  [[boolean, string, bigint] & { allowed: boolean; error: string }],
234
240
  'view'
235
241
  >;
236
242
  getFunction(
237
243
  nameOrSignature: 'querySealOutput'
238
244
  ): TypedContractMethod<
239
- [ctHash: BigNumberish, arg1: BigNumberish, permission: PermissionStruct],
245
+ [ctHash: BigNumberish, arg1: BigNumberish, acp: ACPStruct],
240
246
  [[boolean, string, string] & { allowed: boolean; error: string }],
241
247
  'view'
242
248
  >;
@@ -1,6 +1,8 @@
1
1
  /* Autogenerated file. Do not edit manually. */
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
+ export type { ACPShareRegistry } from './ACPShareRegistry';
5
+ export type { ACPTimestampRevoker } from './ACPTimestampRevoker';
4
6
  export type { MockACL } from './MockACL';
5
7
  export type { MockTaskManager } from './MockTaskManager';
6
8
  export type { MockThresholdNetwork } from './MockThresholdNetwork';