@lukso/lsp23-contracts 0.15.0 → 0.15.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.
@@ -1,448 +0,0 @@
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 declare namespace ILSP23LinkedContractsFactory {
27
- export type PrimaryContractDeploymentStruct = {
28
- salt: BytesLike;
29
- fundingAmount: BigNumberish;
30
- creationBytecode: BytesLike;
31
- };
32
-
33
- export type PrimaryContractDeploymentStructOutput = [
34
- salt: string,
35
- fundingAmount: bigint,
36
- creationBytecode: string
37
- ] & { salt: string; fundingAmount: bigint; creationBytecode: string };
38
-
39
- export type SecondaryContractDeploymentStruct = {
40
- fundingAmount: BigNumberish;
41
- creationBytecode: BytesLike;
42
- addPrimaryContractAddress: boolean;
43
- extraConstructorParams: BytesLike;
44
- };
45
-
46
- export type SecondaryContractDeploymentStructOutput = [
47
- fundingAmount: bigint,
48
- creationBytecode: string,
49
- addPrimaryContractAddress: boolean,
50
- extraConstructorParams: string
51
- ] & {
52
- fundingAmount: bigint;
53
- creationBytecode: string;
54
- addPrimaryContractAddress: boolean;
55
- extraConstructorParams: string;
56
- };
57
-
58
- export type PrimaryContractDeploymentInitStruct = {
59
- salt: BytesLike;
60
- fundingAmount: BigNumberish;
61
- implementationContract: AddressLike;
62
- initializationCalldata: BytesLike;
63
- };
64
-
65
- export type PrimaryContractDeploymentInitStructOutput = [
66
- salt: string,
67
- fundingAmount: bigint,
68
- implementationContract: string,
69
- initializationCalldata: string
70
- ] & {
71
- salt: string;
72
- fundingAmount: bigint;
73
- implementationContract: string;
74
- initializationCalldata: string;
75
- };
76
-
77
- export type SecondaryContractDeploymentInitStruct = {
78
- fundingAmount: BigNumberish;
79
- implementationContract: AddressLike;
80
- initializationCalldata: BytesLike;
81
- addPrimaryContractAddress: boolean;
82
- extraInitializationParams: BytesLike;
83
- };
84
-
85
- export type SecondaryContractDeploymentInitStructOutput = [
86
- fundingAmount: bigint,
87
- implementationContract: string,
88
- initializationCalldata: string,
89
- addPrimaryContractAddress: boolean,
90
- extraInitializationParams: string
91
- ] & {
92
- fundingAmount: bigint;
93
- implementationContract: string;
94
- initializationCalldata: string;
95
- addPrimaryContractAddress: boolean;
96
- extraInitializationParams: string;
97
- };
98
- }
99
-
100
- export interface LSP23LinkedContractsFactoryInterface extends Interface {
101
- getFunction(
102
- nameOrSignature:
103
- | "computeAddresses"
104
- | "computeERC1167Addresses"
105
- | "deployContracts"
106
- | "deployERC1167Proxies"
107
- ): FunctionFragment;
108
-
109
- getEvent(
110
- nameOrSignatureOrTopic: "DeployedContracts" | "DeployedERC1167Proxies"
111
- ): EventFragment;
112
-
113
- encodeFunctionData(
114
- functionFragment: "computeAddresses",
115
- values: [
116
- ILSP23LinkedContractsFactory.PrimaryContractDeploymentStruct,
117
- ILSP23LinkedContractsFactory.SecondaryContractDeploymentStruct,
118
- AddressLike,
119
- BytesLike
120
- ]
121
- ): string;
122
- encodeFunctionData(
123
- functionFragment: "computeERC1167Addresses",
124
- values: [
125
- ILSP23LinkedContractsFactory.PrimaryContractDeploymentInitStruct,
126
- ILSP23LinkedContractsFactory.SecondaryContractDeploymentInitStruct,
127
- AddressLike,
128
- BytesLike
129
- ]
130
- ): string;
131
- encodeFunctionData(
132
- functionFragment: "deployContracts",
133
- values: [
134
- ILSP23LinkedContractsFactory.PrimaryContractDeploymentStruct,
135
- ILSP23LinkedContractsFactory.SecondaryContractDeploymentStruct,
136
- AddressLike,
137
- BytesLike
138
- ]
139
- ): string;
140
- encodeFunctionData(
141
- functionFragment: "deployERC1167Proxies",
142
- values: [
143
- ILSP23LinkedContractsFactory.PrimaryContractDeploymentInitStruct,
144
- ILSP23LinkedContractsFactory.SecondaryContractDeploymentInitStruct,
145
- AddressLike,
146
- BytesLike
147
- ]
148
- ): string;
149
-
150
- decodeFunctionResult(
151
- functionFragment: "computeAddresses",
152
- data: BytesLike
153
- ): Result;
154
- decodeFunctionResult(
155
- functionFragment: "computeERC1167Addresses",
156
- data: BytesLike
157
- ): Result;
158
- decodeFunctionResult(
159
- functionFragment: "deployContracts",
160
- data: BytesLike
161
- ): Result;
162
- decodeFunctionResult(
163
- functionFragment: "deployERC1167Proxies",
164
- data: BytesLike
165
- ): Result;
166
- }
167
-
168
- export namespace DeployedContractsEvent {
169
- export type InputTuple = [
170
- primaryContract: AddressLike,
171
- secondaryContract: AddressLike,
172
- primaryContractDeployment: ILSP23LinkedContractsFactory.PrimaryContractDeploymentStruct,
173
- secondaryContractDeployment: ILSP23LinkedContractsFactory.SecondaryContractDeploymentStruct,
174
- postDeploymentModule: AddressLike,
175
- postDeploymentModuleCalldata: BytesLike
176
- ];
177
- export type OutputTuple = [
178
- primaryContract: string,
179
- secondaryContract: string,
180
- primaryContractDeployment: ILSP23LinkedContractsFactory.PrimaryContractDeploymentStructOutput,
181
- secondaryContractDeployment: ILSP23LinkedContractsFactory.SecondaryContractDeploymentStructOutput,
182
- postDeploymentModule: string,
183
- postDeploymentModuleCalldata: string
184
- ];
185
- export interface OutputObject {
186
- primaryContract: string;
187
- secondaryContract: string;
188
- primaryContractDeployment: ILSP23LinkedContractsFactory.PrimaryContractDeploymentStructOutput;
189
- secondaryContractDeployment: ILSP23LinkedContractsFactory.SecondaryContractDeploymentStructOutput;
190
- postDeploymentModule: string;
191
- postDeploymentModuleCalldata: string;
192
- }
193
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
194
- export type Filter = TypedDeferredTopicFilter<Event>;
195
- export type Log = TypedEventLog<Event>;
196
- export type LogDescription = TypedLogDescription<Event>;
197
- }
198
-
199
- export namespace DeployedERC1167ProxiesEvent {
200
- export type InputTuple = [
201
- primaryContract: AddressLike,
202
- secondaryContract: AddressLike,
203
- primaryContractDeploymentInit: ILSP23LinkedContractsFactory.PrimaryContractDeploymentInitStruct,
204
- secondaryContractDeploymentInit: ILSP23LinkedContractsFactory.SecondaryContractDeploymentInitStruct,
205
- postDeploymentModule: AddressLike,
206
- postDeploymentModuleCalldata: BytesLike
207
- ];
208
- export type OutputTuple = [
209
- primaryContract: string,
210
- secondaryContract: string,
211
- primaryContractDeploymentInit: ILSP23LinkedContractsFactory.PrimaryContractDeploymentInitStructOutput,
212
- secondaryContractDeploymentInit: ILSP23LinkedContractsFactory.SecondaryContractDeploymentInitStructOutput,
213
- postDeploymentModule: string,
214
- postDeploymentModuleCalldata: string
215
- ];
216
- export interface OutputObject {
217
- primaryContract: string;
218
- secondaryContract: string;
219
- primaryContractDeploymentInit: ILSP23LinkedContractsFactory.PrimaryContractDeploymentInitStructOutput;
220
- secondaryContractDeploymentInit: ILSP23LinkedContractsFactory.SecondaryContractDeploymentInitStructOutput;
221
- postDeploymentModule: string;
222
- postDeploymentModuleCalldata: string;
223
- }
224
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
225
- export type Filter = TypedDeferredTopicFilter<Event>;
226
- export type Log = TypedEventLog<Event>;
227
- export type LogDescription = TypedLogDescription<Event>;
228
- }
229
-
230
- export interface LSP23LinkedContractsFactory extends BaseContract {
231
- connect(runner?: ContractRunner | null): LSP23LinkedContractsFactory;
232
- waitForDeployment(): Promise<this>;
233
-
234
- interface: LSP23LinkedContractsFactoryInterface;
235
-
236
- queryFilter<TCEvent extends TypedContractEvent>(
237
- event: TCEvent,
238
- fromBlockOrBlockhash?: string | number | undefined,
239
- toBlock?: string | number | undefined
240
- ): Promise<Array<TypedEventLog<TCEvent>>>;
241
- queryFilter<TCEvent extends TypedContractEvent>(
242
- filter: TypedDeferredTopicFilter<TCEvent>,
243
- fromBlockOrBlockhash?: string | number | undefined,
244
- toBlock?: string | number | undefined
245
- ): Promise<Array<TypedEventLog<TCEvent>>>;
246
-
247
- on<TCEvent extends TypedContractEvent>(
248
- event: TCEvent,
249
- listener: TypedListener<TCEvent>
250
- ): Promise<this>;
251
- on<TCEvent extends TypedContractEvent>(
252
- filter: TypedDeferredTopicFilter<TCEvent>,
253
- listener: TypedListener<TCEvent>
254
- ): Promise<this>;
255
-
256
- once<TCEvent extends TypedContractEvent>(
257
- event: TCEvent,
258
- listener: TypedListener<TCEvent>
259
- ): Promise<this>;
260
- once<TCEvent extends TypedContractEvent>(
261
- filter: TypedDeferredTopicFilter<TCEvent>,
262
- listener: TypedListener<TCEvent>
263
- ): Promise<this>;
264
-
265
- listeners<TCEvent extends TypedContractEvent>(
266
- event: TCEvent
267
- ): Promise<Array<TypedListener<TCEvent>>>;
268
- listeners(eventName?: string): Promise<Array<Listener>>;
269
- removeAllListeners<TCEvent extends TypedContractEvent>(
270
- event?: TCEvent
271
- ): Promise<this>;
272
-
273
- computeAddresses: TypedContractMethod<
274
- [
275
- primaryContractDeployment: ILSP23LinkedContractsFactory.PrimaryContractDeploymentStruct,
276
- secondaryContractDeployment: ILSP23LinkedContractsFactory.SecondaryContractDeploymentStruct,
277
- postDeploymentModule: AddressLike,
278
- postDeploymentModuleCalldata: BytesLike
279
- ],
280
- [
281
- [string, string] & {
282
- primaryContractAddress: string;
283
- secondaryContractAddress: string;
284
- }
285
- ],
286
- "view"
287
- >;
288
-
289
- computeERC1167Addresses: TypedContractMethod<
290
- [
291
- primaryContractDeploymentInit: ILSP23LinkedContractsFactory.PrimaryContractDeploymentInitStruct,
292
- secondaryContractDeploymentInit: ILSP23LinkedContractsFactory.SecondaryContractDeploymentInitStruct,
293
- postDeploymentModule: AddressLike,
294
- postDeploymentModuleCalldata: BytesLike
295
- ],
296
- [
297
- [string, string] & {
298
- primaryContractAddress: string;
299
- secondaryContractAddress: string;
300
- }
301
- ],
302
- "view"
303
- >;
304
-
305
- deployContracts: TypedContractMethod<
306
- [
307
- primaryContractDeployment: ILSP23LinkedContractsFactory.PrimaryContractDeploymentStruct,
308
- secondaryContractDeployment: ILSP23LinkedContractsFactory.SecondaryContractDeploymentStruct,
309
- postDeploymentModule: AddressLike,
310
- postDeploymentModuleCalldata: BytesLike
311
- ],
312
- [
313
- [string, string] & {
314
- primaryContractAddress: string;
315
- secondaryContractAddress: string;
316
- }
317
- ],
318
- "payable"
319
- >;
320
-
321
- deployERC1167Proxies: TypedContractMethod<
322
- [
323
- primaryContractDeploymentInit: ILSP23LinkedContractsFactory.PrimaryContractDeploymentInitStruct,
324
- secondaryContractDeploymentInit: ILSP23LinkedContractsFactory.SecondaryContractDeploymentInitStruct,
325
- postDeploymentModule: AddressLike,
326
- postDeploymentModuleCalldata: BytesLike
327
- ],
328
- [
329
- [string, string] & {
330
- primaryContractAddress: string;
331
- secondaryContractAddress: string;
332
- }
333
- ],
334
- "payable"
335
- >;
336
-
337
- getFunction<T extends ContractMethod = ContractMethod>(
338
- key: string | FunctionFragment
339
- ): T;
340
-
341
- getFunction(
342
- nameOrSignature: "computeAddresses"
343
- ): TypedContractMethod<
344
- [
345
- primaryContractDeployment: ILSP23LinkedContractsFactory.PrimaryContractDeploymentStruct,
346
- secondaryContractDeployment: ILSP23LinkedContractsFactory.SecondaryContractDeploymentStruct,
347
- postDeploymentModule: AddressLike,
348
- postDeploymentModuleCalldata: BytesLike
349
- ],
350
- [
351
- [string, string] & {
352
- primaryContractAddress: string;
353
- secondaryContractAddress: string;
354
- }
355
- ],
356
- "view"
357
- >;
358
- getFunction(
359
- nameOrSignature: "computeERC1167Addresses"
360
- ): TypedContractMethod<
361
- [
362
- primaryContractDeploymentInit: ILSP23LinkedContractsFactory.PrimaryContractDeploymentInitStruct,
363
- secondaryContractDeploymentInit: ILSP23LinkedContractsFactory.SecondaryContractDeploymentInitStruct,
364
- postDeploymentModule: AddressLike,
365
- postDeploymentModuleCalldata: BytesLike
366
- ],
367
- [
368
- [string, string] & {
369
- primaryContractAddress: string;
370
- secondaryContractAddress: string;
371
- }
372
- ],
373
- "view"
374
- >;
375
- getFunction(
376
- nameOrSignature: "deployContracts"
377
- ): TypedContractMethod<
378
- [
379
- primaryContractDeployment: ILSP23LinkedContractsFactory.PrimaryContractDeploymentStruct,
380
- secondaryContractDeployment: ILSP23LinkedContractsFactory.SecondaryContractDeploymentStruct,
381
- postDeploymentModule: AddressLike,
382
- postDeploymentModuleCalldata: BytesLike
383
- ],
384
- [
385
- [string, string] & {
386
- primaryContractAddress: string;
387
- secondaryContractAddress: string;
388
- }
389
- ],
390
- "payable"
391
- >;
392
- getFunction(
393
- nameOrSignature: "deployERC1167Proxies"
394
- ): TypedContractMethod<
395
- [
396
- primaryContractDeploymentInit: ILSP23LinkedContractsFactory.PrimaryContractDeploymentInitStruct,
397
- secondaryContractDeploymentInit: ILSP23LinkedContractsFactory.SecondaryContractDeploymentInitStruct,
398
- postDeploymentModule: AddressLike,
399
- postDeploymentModuleCalldata: BytesLike
400
- ],
401
- [
402
- [string, string] & {
403
- primaryContractAddress: string;
404
- secondaryContractAddress: string;
405
- }
406
- ],
407
- "payable"
408
- >;
409
-
410
- getEvent(
411
- key: "DeployedContracts"
412
- ): TypedContractEvent<
413
- DeployedContractsEvent.InputTuple,
414
- DeployedContractsEvent.OutputTuple,
415
- DeployedContractsEvent.OutputObject
416
- >;
417
- getEvent(
418
- key: "DeployedERC1167Proxies"
419
- ): TypedContractEvent<
420
- DeployedERC1167ProxiesEvent.InputTuple,
421
- DeployedERC1167ProxiesEvent.OutputTuple,
422
- DeployedERC1167ProxiesEvent.OutputObject
423
- >;
424
-
425
- filters: {
426
- "DeployedContracts(address,address,tuple,tuple,address,bytes)": TypedContractEvent<
427
- DeployedContractsEvent.InputTuple,
428
- DeployedContractsEvent.OutputTuple,
429
- DeployedContractsEvent.OutputObject
430
- >;
431
- DeployedContracts: TypedContractEvent<
432
- DeployedContractsEvent.InputTuple,
433
- DeployedContractsEvent.OutputTuple,
434
- DeployedContractsEvent.OutputObject
435
- >;
436
-
437
- "DeployedERC1167Proxies(address,address,tuple,tuple,address,bytes)": TypedContractEvent<
438
- DeployedERC1167ProxiesEvent.InputTuple,
439
- DeployedERC1167ProxiesEvent.OutputTuple,
440
- DeployedERC1167ProxiesEvent.OutputObject
441
- >;
442
- DeployedERC1167Proxies: TypedContractEvent<
443
- DeployedERC1167ProxiesEvent.InputTuple,
444
- DeployedERC1167ProxiesEvent.OutputTuple,
445
- DeployedERC1167ProxiesEvent.OutputObject
446
- >;
447
- };
448
- }