@cofhe/mock-contracts 0.6.1 → 0.7.1

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.
@@ -0,0 +1,189 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ EventFragment,
12
+ AddressLike,
13
+ ContractRunner,
14
+ ContractMethod,
15
+ Listener,
16
+ } from 'ethers';
17
+ import type {
18
+ TypedContractEvent,
19
+ TypedDeferredTopicFilter,
20
+ TypedEventLog,
21
+ TypedLogDescription,
22
+ TypedListener,
23
+ TypedContractMethod,
24
+ } from './common';
25
+
26
+ export type ACPStruct = {
27
+ issuer: AddressLike;
28
+ expiration: BigNumberish;
29
+ recipient: AddressLike;
30
+ revokerData: BigNumberish;
31
+ revokerContract: AddressLike;
32
+ scope: BigNumberish;
33
+ contracts: AddressLike[];
34
+ handles: BytesLike[];
35
+ sealingKey: BytesLike;
36
+ issuerSignature: BytesLike;
37
+ recipientSignature: BytesLike;
38
+ };
39
+
40
+ export type ACPStructOutput = [
41
+ issuer: string,
42
+ expiration: bigint,
43
+ recipient: string,
44
+ revokerData: bigint,
45
+ revokerContract: string,
46
+ scope: bigint,
47
+ contracts: string[],
48
+ handles: string[],
49
+ sealingKey: string,
50
+ issuerSignature: string,
51
+ recipientSignature: string,
52
+ ] & {
53
+ issuer: string;
54
+ expiration: bigint;
55
+ recipient: string;
56
+ revokerData: bigint;
57
+ revokerContract: string;
58
+ scope: bigint;
59
+ contracts: string[];
60
+ handles: string[];
61
+ sealingKey: string;
62
+ issuerSignature: string;
63
+ recipientSignature: string;
64
+ };
65
+
66
+ export interface ACPShareRegistryInterface extends Interface {
67
+ getFunction(nameOrSignature: 'getShare' | 'isShareValid' | 'removeShare' | 'share' | 'sharesFor'): FunctionFragment;
68
+
69
+ getEvent(nameOrSignatureOrTopic: 'ShareRemoved' | 'Shared'): EventFragment;
70
+
71
+ encodeFunctionData(functionFragment: 'getShare', values: [BytesLike]): string;
72
+ encodeFunctionData(functionFragment: 'isShareValid', values: [BytesLike]): string;
73
+ encodeFunctionData(functionFragment: 'removeShare', values: [BytesLike]): string;
74
+ encodeFunctionData(functionFragment: 'share', values: [ACPStruct]): string;
75
+ encodeFunctionData(functionFragment: 'sharesFor', values: [AddressLike]): string;
76
+
77
+ decodeFunctionResult(functionFragment: 'getShare', data: BytesLike): Result;
78
+ decodeFunctionResult(functionFragment: 'isShareValid', data: BytesLike): Result;
79
+ decodeFunctionResult(functionFragment: 'removeShare', data: BytesLike): Result;
80
+ decodeFunctionResult(functionFragment: 'share', data: BytesLike): Result;
81
+ decodeFunctionResult(functionFragment: 'sharesFor', data: BytesLike): Result;
82
+ }
83
+
84
+ export namespace ShareRemovedEvent {
85
+ export type InputTuple = [recipient: AddressLike, issuer: AddressLike, shareId: BytesLike];
86
+ export type OutputTuple = [recipient: string, issuer: string, shareId: string];
87
+ export interface OutputObject {
88
+ recipient: string;
89
+ issuer: string;
90
+ shareId: string;
91
+ }
92
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
93
+ export type Filter = TypedDeferredTopicFilter<Event>;
94
+ export type Log = TypedEventLog<Event>;
95
+ export type LogDescription = TypedLogDescription<Event>;
96
+ }
97
+
98
+ export namespace SharedEvent {
99
+ export type InputTuple = [recipient: AddressLike, issuer: AddressLike, shareId: BytesLike];
100
+ export type OutputTuple = [recipient: string, issuer: string, shareId: string];
101
+ export interface OutputObject {
102
+ recipient: string;
103
+ issuer: string;
104
+ shareId: string;
105
+ }
106
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
107
+ export type Filter = TypedDeferredTopicFilter<Event>;
108
+ export type Log = TypedEventLog<Event>;
109
+ export type LogDescription = TypedLogDescription<Event>;
110
+ }
111
+
112
+ export interface ACPShareRegistry extends BaseContract {
113
+ connect(runner?: ContractRunner | null): ACPShareRegistry;
114
+ waitForDeployment(): Promise<this>;
115
+
116
+ interface: ACPShareRegistryInterface;
117
+
118
+ queryFilter<TCEvent extends TypedContractEvent>(
119
+ event: TCEvent,
120
+ fromBlockOrBlockhash?: string | number | undefined,
121
+ toBlock?: string | number | undefined
122
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
123
+ queryFilter<TCEvent extends TypedContractEvent>(
124
+ filter: TypedDeferredTopicFilter<TCEvent>,
125
+ fromBlockOrBlockhash?: string | number | undefined,
126
+ toBlock?: string | number | undefined
127
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
128
+
129
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
130
+ on<TCEvent extends TypedContractEvent>(
131
+ filter: TypedDeferredTopicFilter<TCEvent>,
132
+ listener: TypedListener<TCEvent>
133
+ ): Promise<this>;
134
+
135
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
136
+ once<TCEvent extends TypedContractEvent>(
137
+ filter: TypedDeferredTopicFilter<TCEvent>,
138
+ listener: TypedListener<TCEvent>
139
+ ): Promise<this>;
140
+
141
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
142
+ listeners(eventName?: string): Promise<Array<Listener>>;
143
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
144
+
145
+ getShare: TypedContractMethod<[shareId: BytesLike], [ACPStructOutput], 'view'>;
146
+
147
+ isShareValid: TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
148
+
149
+ removeShare: TypedContractMethod<[shareId: BytesLike], [void], 'nonpayable'>;
150
+
151
+ share: TypedContractMethod<[acp: ACPStruct], [string], 'nonpayable'>;
152
+
153
+ sharesFor: TypedContractMethod<[recipient: AddressLike], [ACPStructOutput[]], 'view'>;
154
+
155
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
156
+
157
+ getFunction(nameOrSignature: 'getShare'): TypedContractMethod<[shareId: BytesLike], [ACPStructOutput], 'view'>;
158
+ getFunction(nameOrSignature: 'isShareValid'): TypedContractMethod<[shareId: BytesLike], [boolean], 'view'>;
159
+ 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'>;
162
+
163
+ getEvent(
164
+ key: 'ShareRemoved'
165
+ ): TypedContractEvent<ShareRemovedEvent.InputTuple, ShareRemovedEvent.OutputTuple, ShareRemovedEvent.OutputObject>;
166
+ getEvent(
167
+ key: 'Shared'
168
+ ): TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
169
+
170
+ filters: {
171
+ 'ShareRemoved(address,address,bytes32)': TypedContractEvent<
172
+ ShareRemovedEvent.InputTuple,
173
+ ShareRemovedEvent.OutputTuple,
174
+ ShareRemovedEvent.OutputObject
175
+ >;
176
+ ShareRemoved: TypedContractEvent<
177
+ ShareRemovedEvent.InputTuple,
178
+ ShareRemovedEvent.OutputTuple,
179
+ ShareRemovedEvent.OutputObject
180
+ >;
181
+
182
+ 'Shared(address,address,bytes32)': TypedContractEvent<
183
+ SharedEvent.InputTuple,
184
+ SharedEvent.OutputTuple,
185
+ SharedEvent.OutputObject
186
+ >;
187
+ Shared: TypedContractEvent<SharedEvent.InputTuple, SharedEvent.OutputTuple, SharedEvent.OutputObject>;
188
+ };
189
+ }
@@ -0,0 +1,157 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ import type {
5
+ BaseContract,
6
+ BigNumberish,
7
+ BytesLike,
8
+ FunctionFragment,
9
+ Result,
10
+ Interface,
11
+ EventFragment,
12
+ AddressLike,
13
+ ContractRunner,
14
+ ContractMethod,
15
+ Listener,
16
+ } from 'ethers';
17
+ import type {
18
+ TypedContractEvent,
19
+ TypedDeferredTopicFilter,
20
+ TypedEventLog,
21
+ TypedLogDescription,
22
+ TypedListener,
23
+ TypedContractMethod,
24
+ } from './common';
25
+
26
+ export interface ACPTimestampRevokerInterface extends Interface {
27
+ getFunction(
28
+ nameOrSignature: 'disabled' | 'revokeAllAt' | 'revokeAllExisting' | 'revokeSingle' | 'revokedSingle'
29
+ ): FunctionFragment;
30
+
31
+ getEvent(nameOrSignatureOrTopic: 'RevokedAll' | 'RevokedSingle'): EventFragment;
32
+
33
+ encodeFunctionData(functionFragment: 'disabled', values: [AddressLike, BigNumberish]): string;
34
+ encodeFunctionData(functionFragment: 'revokeAllAt', values: [AddressLike]): string;
35
+ encodeFunctionData(functionFragment: 'revokeAllExisting', values?: undefined): string;
36
+ encodeFunctionData(functionFragment: 'revokeSingle', values: [BigNumberish]): string;
37
+ encodeFunctionData(functionFragment: 'revokedSingle', values: [AddressLike, BigNumberish]): string;
38
+
39
+ decodeFunctionResult(functionFragment: 'disabled', data: BytesLike): Result;
40
+ decodeFunctionResult(functionFragment: 'revokeAllAt', data: BytesLike): Result;
41
+ decodeFunctionResult(functionFragment: 'revokeAllExisting', data: BytesLike): Result;
42
+ decodeFunctionResult(functionFragment: 'revokeSingle', data: BytesLike): Result;
43
+ decodeFunctionResult(functionFragment: 'revokedSingle', data: BytesLike): Result;
44
+ }
45
+
46
+ export namespace RevokedAllEvent {
47
+ export type InputTuple = [issuer: AddressLike, at: BigNumberish];
48
+ export type OutputTuple = [issuer: string, at: bigint];
49
+ export interface OutputObject {
50
+ issuer: string;
51
+ at: bigint;
52
+ }
53
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
54
+ export type Filter = TypedDeferredTopicFilter<Event>;
55
+ export type Log = TypedEventLog<Event>;
56
+ export type LogDescription = TypedLogDescription<Event>;
57
+ }
58
+
59
+ export namespace RevokedSingleEvent {
60
+ export type InputTuple = [issuer: AddressLike, id: BigNumberish];
61
+ export type OutputTuple = [issuer: string, id: bigint];
62
+ export interface OutputObject {
63
+ issuer: string;
64
+ id: bigint;
65
+ }
66
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
67
+ export type Filter = TypedDeferredTopicFilter<Event>;
68
+ export type Log = TypedEventLog<Event>;
69
+ export type LogDescription = TypedLogDescription<Event>;
70
+ }
71
+
72
+ export interface ACPTimestampRevoker extends BaseContract {
73
+ connect(runner?: ContractRunner | null): ACPTimestampRevoker;
74
+ waitForDeployment(): Promise<this>;
75
+
76
+ interface: ACPTimestampRevokerInterface;
77
+
78
+ queryFilter<TCEvent extends TypedContractEvent>(
79
+ event: TCEvent,
80
+ fromBlockOrBlockhash?: string | number | undefined,
81
+ toBlock?: string | number | undefined
82
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
83
+ queryFilter<TCEvent extends TypedContractEvent>(
84
+ filter: TypedDeferredTopicFilter<TCEvent>,
85
+ fromBlockOrBlockhash?: string | number | undefined,
86
+ toBlock?: string | number | undefined
87
+ ): Promise<Array<TypedEventLog<TCEvent>>>;
88
+
89
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
90
+ on<TCEvent extends TypedContractEvent>(
91
+ filter: TypedDeferredTopicFilter<TCEvent>,
92
+ listener: TypedListener<TCEvent>
93
+ ): Promise<this>;
94
+
95
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
96
+ once<TCEvent extends TypedContractEvent>(
97
+ filter: TypedDeferredTopicFilter<TCEvent>,
98
+ listener: TypedListener<TCEvent>
99
+ ): Promise<this>;
100
+
101
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
102
+ listeners(eventName?: string): Promise<Array<Listener>>;
103
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
104
+
105
+ disabled: TypedContractMethod<[issuer: AddressLike, id: BigNumberish], [boolean], 'view'>;
106
+
107
+ revokeAllAt: TypedContractMethod<[arg0: AddressLike], [bigint], 'view'>;
108
+
109
+ revokeAllExisting: TypedContractMethod<[], [void], 'nonpayable'>;
110
+
111
+ revokeSingle: TypedContractMethod<[id: BigNumberish], [void], 'nonpayable'>;
112
+
113
+ revokedSingle: TypedContractMethod<[arg0: AddressLike, arg1: BigNumberish], [boolean], 'view'>;
114
+
115
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
116
+
117
+ getFunction(
118
+ nameOrSignature: 'disabled'
119
+ ): TypedContractMethod<[issuer: AddressLike, id: BigNumberish], [boolean], 'view'>;
120
+ getFunction(nameOrSignature: 'revokeAllAt'): TypedContractMethod<[arg0: AddressLike], [bigint], 'view'>;
121
+ getFunction(nameOrSignature: 'revokeAllExisting'): TypedContractMethod<[], [void], 'nonpayable'>;
122
+ getFunction(nameOrSignature: 'revokeSingle'): TypedContractMethod<[id: BigNumberish], [void], 'nonpayable'>;
123
+ getFunction(
124
+ nameOrSignature: 'revokedSingle'
125
+ ): TypedContractMethod<[arg0: AddressLike, arg1: BigNumberish], [boolean], 'view'>;
126
+
127
+ getEvent(
128
+ key: 'RevokedAll'
129
+ ): TypedContractEvent<RevokedAllEvent.InputTuple, RevokedAllEvent.OutputTuple, RevokedAllEvent.OutputObject>;
130
+ getEvent(
131
+ key: 'RevokedSingle'
132
+ ): TypedContractEvent<RevokedSingleEvent.InputTuple, RevokedSingleEvent.OutputTuple, RevokedSingleEvent.OutputObject>;
133
+
134
+ filters: {
135
+ 'RevokedAll(address,uint256)': TypedContractEvent<
136
+ RevokedAllEvent.InputTuple,
137
+ RevokedAllEvent.OutputTuple,
138
+ RevokedAllEvent.OutputObject
139
+ >;
140
+ RevokedAll: TypedContractEvent<
141
+ RevokedAllEvent.InputTuple,
142
+ RevokedAllEvent.OutputTuple,
143
+ RevokedAllEvent.OutputObject
144
+ >;
145
+
146
+ 'RevokedSingle(address,uint256)': TypedContractEvent<
147
+ RevokedSingleEvent.InputTuple,
148
+ RevokedSingleEvent.OutputTuple,
149
+ RevokedSingleEvent.OutputObject
150
+ >;
151
+ RevokedSingle: TypedContractEvent<
152
+ RevokedSingleEvent.InputTuple,
153
+ RevokedSingleEvent.OutputTuple,
154
+ RevokedSingleEvent.OutputObject
155
+ >;
156
+ };
157
+ }
@@ -23,23 +23,29 @@ import type {
23
23
  TypedContractMethod,
24
24
  } from './common';
25
25
 
26
- export type PermissionStruct = {
26
+ export type ACPStruct = {
27
27
  issuer: AddressLike;
28
28
  expiration: BigNumberish;
29
29
  recipient: AddressLike;
30
- validatorId: BigNumberish;
31
- validatorContract: AddressLike;
30
+ revokerData: BigNumberish;
31
+ revokerContract: AddressLike;
32
+ scope: BigNumberish;
33
+ contracts: AddressLike[];
34
+ handles: BytesLike[];
32
35
  sealingKey: BytesLike;
33
36
  issuerSignature: BytesLike;
34
37
  recipientSignature: BytesLike;
35
38
  };
36
39
 
37
- export type PermissionStructOutput = [
40
+ export type ACPStructOutput = [
38
41
  issuer: string,
39
42
  expiration: bigint,
40
43
  recipient: string,
41
- validatorId: bigint,
42
- validatorContract: string,
44
+ revokerData: bigint,
45
+ revokerContract: string,
46
+ scope: bigint,
47
+ contracts: string[],
48
+ handles: string[],
43
49
  sealingKey: string,
44
50
  issuerSignature: string,
45
51
  recipientSignature: string,
@@ -47,8 +53,11 @@ export type PermissionStructOutput = [
47
53
  issuer: string;
48
54
  expiration: bigint;
49
55
  recipient: string;
50
- validatorId: bigint;
51
- validatorContract: string;
56
+ revokerData: bigint;
57
+ revokerContract: string;
58
+ scope: bigint;
59
+ contracts: string[];
60
+ handles: string[];
52
61
  sealingKey: string;
53
62
  issuerSignature: string;
54
63
  recipientSignature: string;
@@ -64,8 +73,9 @@ export interface MockACLInterface extends Interface {
64
73
  | 'allowTransient'
65
74
  | 'allowedOnBehalf'
66
75
  | 'allowedTransient'
67
- | 'checkPermitValidity'
76
+ | 'checkPermissionValidity'
68
77
  | 'cleanTransientStorage'
78
+ | 'defaultRevokerContract'
69
79
  | 'delegateAccount'
70
80
  | 'eip712Domain'
71
81
  | 'exists'
@@ -77,9 +87,21 @@ export interface MockACLInterface extends Interface {
77
87
  | 'isAllowedForDecryption'
78
88
  | 'isAllowedWithPermission'
79
89
  | 'persistAllowed'
90
+ | 'receiveCtHash'
91
+ | 'setDefaultRevokerContract'
92
+ | 'setShareRegistry'
93
+ | 'shareCtHash'
94
+ | 'shareRegistry'
80
95
  ): FunctionFragment;
81
96
 
82
- getEvent(nameOrSignatureOrTopic: 'AllowedForDecryption' | 'EIP712DomainChanged' | 'NewDelegation'): EventFragment;
97
+ getEvent(
98
+ nameOrSignatureOrTopic:
99
+ | 'AllowedForDecryption'
100
+ | 'DefaultRevokerContractUpdated'
101
+ | 'EIP712DomainChanged'
102
+ | 'NewDelegation'
103
+ | 'ShareRegistryUpdated'
104
+ ): EventFragment;
83
105
 
84
106
  encodeFunctionData(functionFragment: 'TASK_MANAGER_ADDRESS_', values?: undefined): string;
85
107
  encodeFunctionData(functionFragment: 'allow', values: [BigNumberish, AddressLike, AddressLike]): string;
@@ -91,8 +113,9 @@ export interface MockACLInterface extends Interface {
91
113
  values: [AddressLike, BigNumberish, AddressLike, AddressLike]
92
114
  ): string;
93
115
  encodeFunctionData(functionFragment: 'allowedTransient', values: [BigNumberish, AddressLike]): string;
94
- encodeFunctionData(functionFragment: 'checkPermitValidity', values: [PermissionStruct]): string;
116
+ encodeFunctionData(functionFragment: 'checkPermissionValidity', values: [ACPStruct]): string;
95
117
  encodeFunctionData(functionFragment: 'cleanTransientStorage', values?: undefined): string;
118
+ encodeFunctionData(functionFragment: 'defaultRevokerContract', values?: undefined): string;
96
119
  encodeFunctionData(functionFragment: 'delegateAccount', values: [AddressLike, AddressLike]): string;
97
120
  encodeFunctionData(functionFragment: 'eip712Domain', values?: undefined): string;
98
121
  encodeFunctionData(functionFragment: 'exists', values?: undefined): string;
@@ -102,8 +125,13 @@ export interface MockACLInterface extends Interface {
102
125
  encodeFunctionData(functionFragment: 'hashTypedDataV4', values: [BytesLike]): string;
103
126
  encodeFunctionData(functionFragment: 'isAllowed', values: [BigNumberish, AddressLike]): string;
104
127
  encodeFunctionData(functionFragment: 'isAllowedForDecryption', values: [BigNumberish]): string;
105
- encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [PermissionStruct, BigNumberish]): string;
128
+ encodeFunctionData(functionFragment: 'isAllowedWithPermission', values: [ACPStruct, BigNumberish]): string;
106
129
  encodeFunctionData(functionFragment: 'persistAllowed', values: [BigNumberish, AddressLike]): string;
130
+ encodeFunctionData(functionFragment: 'receiveCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
131
+ encodeFunctionData(functionFragment: 'setDefaultRevokerContract', values: [AddressLike]): string;
132
+ encodeFunctionData(functionFragment: 'setShareRegistry', values: [AddressLike]): string;
133
+ encodeFunctionData(functionFragment: 'shareCtHash', values: [BigNumberish, AddressLike, AddressLike]): string;
134
+ encodeFunctionData(functionFragment: 'shareRegistry', values?: undefined): string;
107
135
 
108
136
  decodeFunctionResult(functionFragment: 'TASK_MANAGER_ADDRESS_', data: BytesLike): Result;
109
137
  decodeFunctionResult(functionFragment: 'allow', data: BytesLike): Result;
@@ -112,8 +140,9 @@ export interface MockACLInterface extends Interface {
112
140
  decodeFunctionResult(functionFragment: 'allowTransient', data: BytesLike): Result;
113
141
  decodeFunctionResult(functionFragment: 'allowedOnBehalf', data: BytesLike): Result;
114
142
  decodeFunctionResult(functionFragment: 'allowedTransient', data: BytesLike): Result;
115
- decodeFunctionResult(functionFragment: 'checkPermitValidity', data: BytesLike): Result;
143
+ decodeFunctionResult(functionFragment: 'checkPermissionValidity', data: BytesLike): Result;
116
144
  decodeFunctionResult(functionFragment: 'cleanTransientStorage', data: BytesLike): Result;
145
+ decodeFunctionResult(functionFragment: 'defaultRevokerContract', data: BytesLike): Result;
117
146
  decodeFunctionResult(functionFragment: 'delegateAccount', data: BytesLike): Result;
118
147
  decodeFunctionResult(functionFragment: 'eip712Domain', data: BytesLike): Result;
119
148
  decodeFunctionResult(functionFragment: 'exists', data: BytesLike): Result;
@@ -125,6 +154,11 @@ export interface MockACLInterface extends Interface {
125
154
  decodeFunctionResult(functionFragment: 'isAllowedForDecryption', data: BytesLike): Result;
126
155
  decodeFunctionResult(functionFragment: 'isAllowedWithPermission', data: BytesLike): Result;
127
156
  decodeFunctionResult(functionFragment: 'persistAllowed', data: BytesLike): Result;
157
+ decodeFunctionResult(functionFragment: 'receiveCtHash', data: BytesLike): Result;
158
+ decodeFunctionResult(functionFragment: 'setDefaultRevokerContract', data: BytesLike): Result;
159
+ decodeFunctionResult(functionFragment: 'setShareRegistry', data: BytesLike): Result;
160
+ decodeFunctionResult(functionFragment: 'shareCtHash', data: BytesLike): Result;
161
+ decodeFunctionResult(functionFragment: 'shareRegistry', data: BytesLike): Result;
128
162
  }
129
163
 
130
164
  export namespace AllowedForDecryptionEvent {
@@ -139,6 +173,19 @@ export namespace AllowedForDecryptionEvent {
139
173
  export type LogDescription = TypedLogDescription<Event>;
140
174
  }
141
175
 
176
+ export namespace DefaultRevokerContractUpdatedEvent {
177
+ export type InputTuple = [oldAddress: AddressLike, newAddress: AddressLike];
178
+ export type OutputTuple = [oldAddress: string, newAddress: string];
179
+ export interface OutputObject {
180
+ oldAddress: string;
181
+ newAddress: 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
+
142
189
  export namespace EIP712DomainChangedEvent {
143
190
  export type InputTuple = [];
144
191
  export type OutputTuple = [];
@@ -163,6 +210,19 @@ export namespace NewDelegationEvent {
163
210
  export type LogDescription = TypedLogDescription<Event>;
164
211
  }
165
212
 
213
+ export namespace ShareRegistryUpdatedEvent {
214
+ export type InputTuple = [oldAddress: AddressLike, newAddress: AddressLike];
215
+ export type OutputTuple = [oldAddress: string, newAddress: string];
216
+ export interface OutputObject {
217
+ oldAddress: string;
218
+ newAddress: string;
219
+ }
220
+ export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
221
+ export type Filter = TypedDeferredTopicFilter<Event>;
222
+ export type Log = TypedEventLog<Event>;
223
+ export type LogDescription = TypedLogDescription<Event>;
224
+ }
225
+
166
226
  export interface MockACL extends BaseContract {
167
227
  connect(runner?: ContractRunner | null): MockACL;
168
228
  waitForDeployment(): Promise<this>;
@@ -222,10 +282,12 @@ export interface MockACL extends BaseContract {
222
282
 
223
283
  allowedTransient: TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
224
284
 
225
- checkPermitValidity: TypedContractMethod<[permission: PermissionStruct], [boolean], 'view'>;
285
+ checkPermissionValidity: TypedContractMethod<[acp: ACPStruct], [boolean], 'view'>;
226
286
 
227
287
  cleanTransientStorage: TypedContractMethod<[], [void], 'nonpayable'>;
228
288
 
289
+ defaultRevokerContract: TypedContractMethod<[], [string], 'view'>;
290
+
229
291
  delegateAccount: TypedContractMethod<[delegatee: AddressLike, delegateeContract: AddressLike], [void], 'nonpayable'>;
230
292
 
231
293
  eip712Domain: TypedContractMethod<
@@ -258,10 +320,28 @@ export interface MockACL extends BaseContract {
258
320
 
259
321
  isAllowedForDecryption: TypedContractMethod<[handle: BigNumberish], [boolean], 'view'>;
260
322
 
261
- isAllowedWithPermission: TypedContractMethod<[permission: PermissionStruct, handle: BigNumberish], [boolean], 'view'>;
323
+ isAllowedWithPermission: TypedContractMethod<[acp: ACPStruct, handle: BigNumberish], [boolean], 'view'>;
262
324
 
263
325
  persistAllowed: TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
264
326
 
327
+ receiveCtHash: TypedContractMethod<
328
+ [handle: BigNumberish, expectedSharer: AddressLike, receiver: AddressLike],
329
+ [void],
330
+ 'nonpayable'
331
+ >;
332
+
333
+ setDefaultRevokerContract: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
334
+
335
+ setShareRegistry: TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
336
+
337
+ shareCtHash: TypedContractMethod<
338
+ [handle: BigNumberish, sharer: AddressLike, receiver: AddressLike],
339
+ [void],
340
+ 'nonpayable'
341
+ >;
342
+
343
+ shareRegistry: TypedContractMethod<[], [string], 'view'>;
344
+
265
345
  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
266
346
 
267
347
  getFunction(nameOrSignature: 'TASK_MANAGER_ADDRESS_'): TypedContractMethod<[], [string], 'view'>;
@@ -287,10 +367,9 @@ export interface MockACL extends BaseContract {
287
367
  getFunction(
288
368
  nameOrSignature: 'allowedTransient'
289
369
  ): TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
290
- getFunction(
291
- nameOrSignature: 'checkPermitValidity'
292
- ): TypedContractMethod<[permission: PermissionStruct], [boolean], 'view'>;
370
+ getFunction(nameOrSignature: 'checkPermissionValidity'): TypedContractMethod<[acp: ACPStruct], [boolean], 'view'>;
293
371
  getFunction(nameOrSignature: 'cleanTransientStorage'): TypedContractMethod<[], [void], 'nonpayable'>;
372
+ getFunction(nameOrSignature: 'defaultRevokerContract'): TypedContractMethod<[], [string], 'view'>;
294
373
  getFunction(
295
374
  nameOrSignature: 'delegateAccount'
296
375
  ): TypedContractMethod<[delegatee: AddressLike, delegateeContract: AddressLike], [void], 'nonpayable'>;
@@ -322,10 +401,27 @@ export interface MockACL extends BaseContract {
322
401
  ): TypedContractMethod<[handle: BigNumberish], [boolean], 'view'>;
323
402
  getFunction(
324
403
  nameOrSignature: 'isAllowedWithPermission'
325
- ): TypedContractMethod<[permission: PermissionStruct, handle: BigNumberish], [boolean], 'view'>;
404
+ ): TypedContractMethod<[acp: ACPStruct, handle: BigNumberish], [boolean], 'view'>;
326
405
  getFunction(
327
406
  nameOrSignature: 'persistAllowed'
328
407
  ): TypedContractMethod<[handle: BigNumberish, account: AddressLike], [boolean], 'view'>;
408
+ getFunction(
409
+ nameOrSignature: 'receiveCtHash'
410
+ ): TypedContractMethod<
411
+ [handle: BigNumberish, expectedSharer: AddressLike, receiver: AddressLike],
412
+ [void],
413
+ 'nonpayable'
414
+ >;
415
+ getFunction(
416
+ nameOrSignature: 'setDefaultRevokerContract'
417
+ ): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
418
+ getFunction(
419
+ nameOrSignature: 'setShareRegistry'
420
+ ): TypedContractMethod<[newAddress: AddressLike], [void], 'nonpayable'>;
421
+ getFunction(
422
+ nameOrSignature: 'shareCtHash'
423
+ ): TypedContractMethod<[handle: BigNumberish, sharer: AddressLike, receiver: AddressLike], [void], 'nonpayable'>;
424
+ getFunction(nameOrSignature: 'shareRegistry'): TypedContractMethod<[], [string], 'view'>;
329
425
 
330
426
  getEvent(
331
427
  key: 'AllowedForDecryption'
@@ -334,6 +430,13 @@ export interface MockACL extends BaseContract {
334
430
  AllowedForDecryptionEvent.OutputTuple,
335
431
  AllowedForDecryptionEvent.OutputObject
336
432
  >;
433
+ getEvent(
434
+ key: 'DefaultRevokerContractUpdated'
435
+ ): TypedContractEvent<
436
+ DefaultRevokerContractUpdatedEvent.InputTuple,
437
+ DefaultRevokerContractUpdatedEvent.OutputTuple,
438
+ DefaultRevokerContractUpdatedEvent.OutputObject
439
+ >;
337
440
  getEvent(
338
441
  key: 'EIP712DomainChanged'
339
442
  ): TypedContractEvent<
@@ -344,6 +447,13 @@ export interface MockACL extends BaseContract {
344
447
  getEvent(
345
448
  key: 'NewDelegation'
346
449
  ): TypedContractEvent<NewDelegationEvent.InputTuple, NewDelegationEvent.OutputTuple, NewDelegationEvent.OutputObject>;
450
+ getEvent(
451
+ key: 'ShareRegistryUpdated'
452
+ ): TypedContractEvent<
453
+ ShareRegistryUpdatedEvent.InputTuple,
454
+ ShareRegistryUpdatedEvent.OutputTuple,
455
+ ShareRegistryUpdatedEvent.OutputObject
456
+ >;
347
457
 
348
458
  filters: {
349
459
  'AllowedForDecryption(uint256[])': TypedContractEvent<
@@ -357,6 +467,17 @@ export interface MockACL extends BaseContract {
357
467
  AllowedForDecryptionEvent.OutputObject
358
468
  >;
359
469
 
470
+ 'DefaultRevokerContractUpdated(address,address)': TypedContractEvent<
471
+ DefaultRevokerContractUpdatedEvent.InputTuple,
472
+ DefaultRevokerContractUpdatedEvent.OutputTuple,
473
+ DefaultRevokerContractUpdatedEvent.OutputObject
474
+ >;
475
+ DefaultRevokerContractUpdated: TypedContractEvent<
476
+ DefaultRevokerContractUpdatedEvent.InputTuple,
477
+ DefaultRevokerContractUpdatedEvent.OutputTuple,
478
+ DefaultRevokerContractUpdatedEvent.OutputObject
479
+ >;
480
+
360
481
  'EIP712DomainChanged()': TypedContractEvent<
361
482
  EIP712DomainChangedEvent.InputTuple,
362
483
  EIP712DomainChangedEvent.OutputTuple,
@@ -378,5 +499,16 @@ export interface MockACL extends BaseContract {
378
499
  NewDelegationEvent.OutputTuple,
379
500
  NewDelegationEvent.OutputObject
380
501
  >;
502
+
503
+ 'ShareRegistryUpdated(address,address)': TypedContractEvent<
504
+ ShareRegistryUpdatedEvent.InputTuple,
505
+ ShareRegistryUpdatedEvent.OutputTuple,
506
+ ShareRegistryUpdatedEvent.OutputObject
507
+ >;
508
+ ShareRegistryUpdated: TypedContractEvent<
509
+ ShareRegistryUpdatedEvent.InputTuple,
510
+ ShareRegistryUpdatedEvent.OutputTuple,
511
+ ShareRegistryUpdatedEvent.OutputObject
512
+ >;
381
513
  };
382
514
  }