@lukso/lsp7-contracts 0.15.0-rc.5 → 0.16.2

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.
Files changed (42) hide show
  1. package/README.md +13 -1
  2. package/artifacts/ILSP7DigitalAsset.json +0 -112
  3. package/artifacts/LSP7Burnable.json +0 -11
  4. package/artifacts/LSP7BurnableInitAbstract.json +0 -16
  5. package/artifacts/LSP7CappedSupply.json +0 -11
  6. package/artifacts/LSP7CappedSupplyInitAbstract.json +0 -16
  7. package/artifacts/LSP7DigitalAsset.json +0 -11
  8. package/artifacts/LSP7DigitalAssetInitAbstract.json +0 -16
  9. package/artifacts/LSP7Mintable.json +2 -13
  10. package/artifacts/LSP7MintableInit.json +2 -13
  11. package/{compatibility-abis/LSP7DigitalAsset-v0.13.0.json → artifacts/LSP7Votes.json} +411 -15
  12. package/artifacts/LSP7VotesInitAbstract.json +1146 -0
  13. package/compatibility-abis/LSP7DigitalAsset-v0.12.0.json +727 -736
  14. package/compatibility-abis/LSP7DigitalAsset-v0.14.0.json +749 -758
  15. package/compatibility-abis/README.md +22 -5
  16. package/contracts/ILSP7DigitalAsset.sol +2 -9
  17. package/contracts/LSP7Constants.sol +10 -0
  18. package/contracts/LSP7DigitalAsset.sol +780 -27
  19. package/contracts/LSP7DigitalAssetInitAbstract.sol +784 -14
  20. package/contracts/extensions/LSP7CappedSupply.sol +1 -1
  21. package/contracts/extensions/LSP7CappedSupplyInitAbstract.sol +1 -1
  22. package/contracts/extensions/LSP7Votes.sol +416 -0
  23. package/contracts/extensions/LSP7VotesConstants.sol +8 -0
  24. package/contracts/extensions/LSP7VotesInitAbstract.sol +443 -0
  25. package/dist/index.cjs +10 -1
  26. package/dist/index.d.cts +10 -4
  27. package/dist/index.d.mts +10 -4
  28. package/dist/index.d.ts +10 -4
  29. package/dist/index.mjs +10 -2
  30. package/package.json +7 -6
  31. package/types/index.ts +3488 -1480
  32. package/contracts/LSP7DigitalAssetCore.sol +0 -744
  33. package/types/common.ts +0 -131
  34. package/types/contracts/ILSP7DigitalAsset.ts +0 -626
  35. package/types/contracts/LSP7DigitalAsset.ts +0 -698
  36. package/types/contracts/LSP7DigitalAssetInitAbstract.ts +0 -729
  37. package/types/contracts/extensions/LSP7Burnable.ts +0 -717
  38. package/types/contracts/extensions/LSP7BurnableInitAbstract.ts +0 -748
  39. package/types/contracts/extensions/LSP7CappedSupply.ts +0 -712
  40. package/types/contracts/extensions/LSP7CappedSupplyInitAbstract.ts +0 -743
  41. package/types/contracts/presets/LSP7Mintable.ts +0 -717
  42. package/types/contracts/presets/LSP7MintableInit.ts +0 -779
@@ -1,626 +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 interface ILSP7DigitalAssetInterface extends Interface {
27
- getFunction(
28
- nameOrSignature:
29
- | "authorizeOperator"
30
- | "authorizedAmountFor"
31
- | "balanceOf"
32
- | "batchCalls"
33
- | "decimals"
34
- | "decreaseAllowance"
35
- | "getData"
36
- | "getDataBatch"
37
- | "getOperatorsOf"
38
- | "increaseAllowance"
39
- | "revokeOperator"
40
- | "setData"
41
- | "setDataBatch"
42
- | "supportsInterface"
43
- | "totalSupply"
44
- | "transfer"
45
- | "transferBatch"
46
- ): FunctionFragment;
47
-
48
- getEvent(
49
- nameOrSignatureOrTopic:
50
- | "DataChanged"
51
- | "OperatorAuthorizationChanged"
52
- | "OperatorRevoked"
53
- | "Transfer"
54
- ): EventFragment;
55
-
56
- encodeFunctionData(
57
- functionFragment: "authorizeOperator",
58
- values: [AddressLike, BigNumberish, BytesLike]
59
- ): string;
60
- encodeFunctionData(
61
- functionFragment: "authorizedAmountFor",
62
- values: [AddressLike, AddressLike]
63
- ): string;
64
- encodeFunctionData(
65
- functionFragment: "balanceOf",
66
- values: [AddressLike]
67
- ): string;
68
- encodeFunctionData(
69
- functionFragment: "batchCalls",
70
- values: [BytesLike[]]
71
- ): string;
72
- encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
73
- encodeFunctionData(
74
- functionFragment: "decreaseAllowance",
75
- values: [AddressLike, AddressLike, BigNumberish, BytesLike]
76
- ): string;
77
- encodeFunctionData(functionFragment: "getData", values: [BytesLike]): string;
78
- encodeFunctionData(
79
- functionFragment: "getDataBatch",
80
- values: [BytesLike[]]
81
- ): string;
82
- encodeFunctionData(
83
- functionFragment: "getOperatorsOf",
84
- values: [AddressLike]
85
- ): string;
86
- encodeFunctionData(
87
- functionFragment: "increaseAllowance",
88
- values: [AddressLike, BigNumberish, BytesLike]
89
- ): string;
90
- encodeFunctionData(
91
- functionFragment: "revokeOperator",
92
- values: [AddressLike, AddressLike, boolean, BytesLike]
93
- ): string;
94
- encodeFunctionData(
95
- functionFragment: "setData",
96
- values: [BytesLike, BytesLike]
97
- ): string;
98
- encodeFunctionData(
99
- functionFragment: "setDataBatch",
100
- values: [BytesLike[], BytesLike[]]
101
- ): string;
102
- encodeFunctionData(
103
- functionFragment: "supportsInterface",
104
- values: [BytesLike]
105
- ): string;
106
- encodeFunctionData(
107
- functionFragment: "totalSupply",
108
- values?: undefined
109
- ): string;
110
- encodeFunctionData(
111
- functionFragment: "transfer",
112
- values: [AddressLike, AddressLike, BigNumberish, boolean, BytesLike]
113
- ): string;
114
- encodeFunctionData(
115
- functionFragment: "transferBatch",
116
- values: [
117
- AddressLike[],
118
- AddressLike[],
119
- BigNumberish[],
120
- boolean[],
121
- BytesLike[]
122
- ]
123
- ): string;
124
-
125
- decodeFunctionResult(
126
- functionFragment: "authorizeOperator",
127
- data: BytesLike
128
- ): Result;
129
- decodeFunctionResult(
130
- functionFragment: "authorizedAmountFor",
131
- data: BytesLike
132
- ): Result;
133
- decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
134
- decodeFunctionResult(functionFragment: "batchCalls", data: BytesLike): Result;
135
- decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
136
- decodeFunctionResult(
137
- functionFragment: "decreaseAllowance",
138
- data: BytesLike
139
- ): Result;
140
- decodeFunctionResult(functionFragment: "getData", data: BytesLike): Result;
141
- decodeFunctionResult(
142
- functionFragment: "getDataBatch",
143
- data: BytesLike
144
- ): Result;
145
- decodeFunctionResult(
146
- functionFragment: "getOperatorsOf",
147
- data: BytesLike
148
- ): Result;
149
- decodeFunctionResult(
150
- functionFragment: "increaseAllowance",
151
- data: BytesLike
152
- ): Result;
153
- decodeFunctionResult(
154
- functionFragment: "revokeOperator",
155
- data: BytesLike
156
- ): Result;
157
- decodeFunctionResult(functionFragment: "setData", data: BytesLike): Result;
158
- decodeFunctionResult(
159
- functionFragment: "setDataBatch",
160
- data: BytesLike
161
- ): Result;
162
- decodeFunctionResult(
163
- functionFragment: "supportsInterface",
164
- data: BytesLike
165
- ): Result;
166
- decodeFunctionResult(
167
- functionFragment: "totalSupply",
168
- data: BytesLike
169
- ): Result;
170
- decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
171
- decodeFunctionResult(
172
- functionFragment: "transferBatch",
173
- data: BytesLike
174
- ): Result;
175
- }
176
-
177
- export namespace DataChangedEvent {
178
- export type InputTuple = [dataKey: BytesLike, dataValue: BytesLike];
179
- export type OutputTuple = [dataKey: string, dataValue: string];
180
- export interface OutputObject {
181
- dataKey: string;
182
- dataValue: string;
183
- }
184
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
185
- export type Filter = TypedDeferredTopicFilter<Event>;
186
- export type Log = TypedEventLog<Event>;
187
- export type LogDescription = TypedLogDescription<Event>;
188
- }
189
-
190
- export namespace OperatorAuthorizationChangedEvent {
191
- export type InputTuple = [
192
- operator: AddressLike,
193
- tokenOwner: AddressLike,
194
- amount: BigNumberish,
195
- operatorNotificationData: BytesLike
196
- ];
197
- export type OutputTuple = [
198
- operator: string,
199
- tokenOwner: string,
200
- amount: bigint,
201
- operatorNotificationData: string
202
- ];
203
- export interface OutputObject {
204
- operator: string;
205
- tokenOwner: string;
206
- amount: bigint;
207
- operatorNotificationData: string;
208
- }
209
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
210
- export type Filter = TypedDeferredTopicFilter<Event>;
211
- export type Log = TypedEventLog<Event>;
212
- export type LogDescription = TypedLogDescription<Event>;
213
- }
214
-
215
- export namespace OperatorRevokedEvent {
216
- export type InputTuple = [
217
- operator: AddressLike,
218
- tokenOwner: AddressLike,
219
- notified: boolean,
220
- operatorNotificationData: BytesLike
221
- ];
222
- export type OutputTuple = [
223
- operator: string,
224
- tokenOwner: string,
225
- notified: boolean,
226
- operatorNotificationData: string
227
- ];
228
- export interface OutputObject {
229
- operator: string;
230
- tokenOwner: string;
231
- notified: boolean;
232
- operatorNotificationData: string;
233
- }
234
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
235
- export type Filter = TypedDeferredTopicFilter<Event>;
236
- export type Log = TypedEventLog<Event>;
237
- export type LogDescription = TypedLogDescription<Event>;
238
- }
239
-
240
- export namespace TransferEvent {
241
- export type InputTuple = [
242
- operator: AddressLike,
243
- from: AddressLike,
244
- to: AddressLike,
245
- amount: BigNumberish,
246
- force: boolean,
247
- data: BytesLike
248
- ];
249
- export type OutputTuple = [
250
- operator: string,
251
- from: string,
252
- to: string,
253
- amount: bigint,
254
- force: boolean,
255
- data: string
256
- ];
257
- export interface OutputObject {
258
- operator: string;
259
- from: string;
260
- to: string;
261
- amount: bigint;
262
- force: boolean;
263
- data: string;
264
- }
265
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
266
- export type Filter = TypedDeferredTopicFilter<Event>;
267
- export type Log = TypedEventLog<Event>;
268
- export type LogDescription = TypedLogDescription<Event>;
269
- }
270
-
271
- export interface ILSP7DigitalAsset extends BaseContract {
272
- connect(runner?: ContractRunner | null): ILSP7DigitalAsset;
273
- waitForDeployment(): Promise<this>;
274
-
275
- interface: ILSP7DigitalAssetInterface;
276
-
277
- queryFilter<TCEvent extends TypedContractEvent>(
278
- event: TCEvent,
279
- fromBlockOrBlockhash?: string | number | undefined,
280
- toBlock?: string | number | undefined
281
- ): Promise<Array<TypedEventLog<TCEvent>>>;
282
- queryFilter<TCEvent extends TypedContractEvent>(
283
- filter: TypedDeferredTopicFilter<TCEvent>,
284
- fromBlockOrBlockhash?: string | number | undefined,
285
- toBlock?: string | number | undefined
286
- ): Promise<Array<TypedEventLog<TCEvent>>>;
287
-
288
- on<TCEvent extends TypedContractEvent>(
289
- event: TCEvent,
290
- listener: TypedListener<TCEvent>
291
- ): Promise<this>;
292
- on<TCEvent extends TypedContractEvent>(
293
- filter: TypedDeferredTopicFilter<TCEvent>,
294
- listener: TypedListener<TCEvent>
295
- ): Promise<this>;
296
-
297
- once<TCEvent extends TypedContractEvent>(
298
- event: TCEvent,
299
- listener: TypedListener<TCEvent>
300
- ): Promise<this>;
301
- once<TCEvent extends TypedContractEvent>(
302
- filter: TypedDeferredTopicFilter<TCEvent>,
303
- listener: TypedListener<TCEvent>
304
- ): Promise<this>;
305
-
306
- listeners<TCEvent extends TypedContractEvent>(
307
- event: TCEvent
308
- ): Promise<Array<TypedListener<TCEvent>>>;
309
- listeners(eventName?: string): Promise<Array<Listener>>;
310
- removeAllListeners<TCEvent extends TypedContractEvent>(
311
- event?: TCEvent
312
- ): Promise<this>;
313
-
314
- authorizeOperator: TypedContractMethod<
315
- [
316
- operator: AddressLike,
317
- amount: BigNumberish,
318
- operatorNotificationData: BytesLike
319
- ],
320
- [void],
321
- "nonpayable"
322
- >;
323
-
324
- authorizedAmountFor: TypedContractMethod<
325
- [operator: AddressLike, tokenOwner: AddressLike],
326
- [bigint],
327
- "view"
328
- >;
329
-
330
- balanceOf: TypedContractMethod<[tokenOwner: AddressLike], [bigint], "view">;
331
-
332
- batchCalls: TypedContractMethod<
333
- [data: BytesLike[]],
334
- [string[]],
335
- "nonpayable"
336
- >;
337
-
338
- decimals: TypedContractMethod<[], [bigint], "view">;
339
-
340
- decreaseAllowance: TypedContractMethod<
341
- [
342
- operator: AddressLike,
343
- tokenOwner: AddressLike,
344
- subtractedAmount: BigNumberish,
345
- operatorNotificationData: BytesLike
346
- ],
347
- [void],
348
- "nonpayable"
349
- >;
350
-
351
- getData: TypedContractMethod<[dataKey: BytesLike], [string], "view">;
352
-
353
- getDataBatch: TypedContractMethod<
354
- [dataKeys: BytesLike[]],
355
- [string[]],
356
- "view"
357
- >;
358
-
359
- getOperatorsOf: TypedContractMethod<
360
- [tokenOwner: AddressLike],
361
- [string[]],
362
- "view"
363
- >;
364
-
365
- increaseAllowance: TypedContractMethod<
366
- [
367
- operator: AddressLike,
368
- addedAmount: BigNumberish,
369
- operatorNotificationData: BytesLike
370
- ],
371
- [void],
372
- "nonpayable"
373
- >;
374
-
375
- revokeOperator: TypedContractMethod<
376
- [
377
- operator: AddressLike,
378
- tokenOwner: AddressLike,
379
- notify: boolean,
380
- operatorNotificationData: BytesLike
381
- ],
382
- [void],
383
- "nonpayable"
384
- >;
385
-
386
- setData: TypedContractMethod<
387
- [dataKey: BytesLike, dataValue: BytesLike],
388
- [void],
389
- "payable"
390
- >;
391
-
392
- setDataBatch: TypedContractMethod<
393
- [dataKeys: BytesLike[], dataValues: BytesLike[]],
394
- [void],
395
- "payable"
396
- >;
397
-
398
- supportsInterface: TypedContractMethod<
399
- [interfaceId: BytesLike],
400
- [boolean],
401
- "view"
402
- >;
403
-
404
- totalSupply: TypedContractMethod<[], [bigint], "view">;
405
-
406
- transfer: TypedContractMethod<
407
- [
408
- from: AddressLike,
409
- to: AddressLike,
410
- amount: BigNumberish,
411
- force: boolean,
412
- data: BytesLike
413
- ],
414
- [void],
415
- "nonpayable"
416
- >;
417
-
418
- transferBatch: TypedContractMethod<
419
- [
420
- from: AddressLike[],
421
- to: AddressLike[],
422
- amount: BigNumberish[],
423
- force: boolean[],
424
- data: BytesLike[]
425
- ],
426
- [void],
427
- "nonpayable"
428
- >;
429
-
430
- getFunction<T extends ContractMethod = ContractMethod>(
431
- key: string | FunctionFragment
432
- ): T;
433
-
434
- getFunction(
435
- nameOrSignature: "authorizeOperator"
436
- ): TypedContractMethod<
437
- [
438
- operator: AddressLike,
439
- amount: BigNumberish,
440
- operatorNotificationData: BytesLike
441
- ],
442
- [void],
443
- "nonpayable"
444
- >;
445
- getFunction(
446
- nameOrSignature: "authorizedAmountFor"
447
- ): TypedContractMethod<
448
- [operator: AddressLike, tokenOwner: AddressLike],
449
- [bigint],
450
- "view"
451
- >;
452
- getFunction(
453
- nameOrSignature: "balanceOf"
454
- ): TypedContractMethod<[tokenOwner: AddressLike], [bigint], "view">;
455
- getFunction(
456
- nameOrSignature: "batchCalls"
457
- ): TypedContractMethod<[data: BytesLike[]], [string[]], "nonpayable">;
458
- getFunction(
459
- nameOrSignature: "decimals"
460
- ): TypedContractMethod<[], [bigint], "view">;
461
- getFunction(
462
- nameOrSignature: "decreaseAllowance"
463
- ): TypedContractMethod<
464
- [
465
- operator: AddressLike,
466
- tokenOwner: AddressLike,
467
- subtractedAmount: BigNumberish,
468
- operatorNotificationData: BytesLike
469
- ],
470
- [void],
471
- "nonpayable"
472
- >;
473
- getFunction(
474
- nameOrSignature: "getData"
475
- ): TypedContractMethod<[dataKey: BytesLike], [string], "view">;
476
- getFunction(
477
- nameOrSignature: "getDataBatch"
478
- ): TypedContractMethod<[dataKeys: BytesLike[]], [string[]], "view">;
479
- getFunction(
480
- nameOrSignature: "getOperatorsOf"
481
- ): TypedContractMethod<[tokenOwner: AddressLike], [string[]], "view">;
482
- getFunction(
483
- nameOrSignature: "increaseAllowance"
484
- ): TypedContractMethod<
485
- [
486
- operator: AddressLike,
487
- addedAmount: BigNumberish,
488
- operatorNotificationData: BytesLike
489
- ],
490
- [void],
491
- "nonpayable"
492
- >;
493
- getFunction(
494
- nameOrSignature: "revokeOperator"
495
- ): TypedContractMethod<
496
- [
497
- operator: AddressLike,
498
- tokenOwner: AddressLike,
499
- notify: boolean,
500
- operatorNotificationData: BytesLike
501
- ],
502
- [void],
503
- "nonpayable"
504
- >;
505
- getFunction(
506
- nameOrSignature: "setData"
507
- ): TypedContractMethod<
508
- [dataKey: BytesLike, dataValue: BytesLike],
509
- [void],
510
- "payable"
511
- >;
512
- getFunction(
513
- nameOrSignature: "setDataBatch"
514
- ): TypedContractMethod<
515
- [dataKeys: BytesLike[], dataValues: BytesLike[]],
516
- [void],
517
- "payable"
518
- >;
519
- getFunction(
520
- nameOrSignature: "supportsInterface"
521
- ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
522
- getFunction(
523
- nameOrSignature: "totalSupply"
524
- ): TypedContractMethod<[], [bigint], "view">;
525
- getFunction(
526
- nameOrSignature: "transfer"
527
- ): TypedContractMethod<
528
- [
529
- from: AddressLike,
530
- to: AddressLike,
531
- amount: BigNumberish,
532
- force: boolean,
533
- data: BytesLike
534
- ],
535
- [void],
536
- "nonpayable"
537
- >;
538
- getFunction(
539
- nameOrSignature: "transferBatch"
540
- ): TypedContractMethod<
541
- [
542
- from: AddressLike[],
543
- to: AddressLike[],
544
- amount: BigNumberish[],
545
- force: boolean[],
546
- data: BytesLike[]
547
- ],
548
- [void],
549
- "nonpayable"
550
- >;
551
-
552
- getEvent(
553
- key: "DataChanged"
554
- ): TypedContractEvent<
555
- DataChangedEvent.InputTuple,
556
- DataChangedEvent.OutputTuple,
557
- DataChangedEvent.OutputObject
558
- >;
559
- getEvent(
560
- key: "OperatorAuthorizationChanged"
561
- ): TypedContractEvent<
562
- OperatorAuthorizationChangedEvent.InputTuple,
563
- OperatorAuthorizationChangedEvent.OutputTuple,
564
- OperatorAuthorizationChangedEvent.OutputObject
565
- >;
566
- getEvent(
567
- key: "OperatorRevoked"
568
- ): TypedContractEvent<
569
- OperatorRevokedEvent.InputTuple,
570
- OperatorRevokedEvent.OutputTuple,
571
- OperatorRevokedEvent.OutputObject
572
- >;
573
- getEvent(
574
- key: "Transfer"
575
- ): TypedContractEvent<
576
- TransferEvent.InputTuple,
577
- TransferEvent.OutputTuple,
578
- TransferEvent.OutputObject
579
- >;
580
-
581
- filters: {
582
- "DataChanged(bytes32,bytes)": TypedContractEvent<
583
- DataChangedEvent.InputTuple,
584
- DataChangedEvent.OutputTuple,
585
- DataChangedEvent.OutputObject
586
- >;
587
- DataChanged: TypedContractEvent<
588
- DataChangedEvent.InputTuple,
589
- DataChangedEvent.OutputTuple,
590
- DataChangedEvent.OutputObject
591
- >;
592
-
593
- "OperatorAuthorizationChanged(address,address,uint256,bytes)": TypedContractEvent<
594
- OperatorAuthorizationChangedEvent.InputTuple,
595
- OperatorAuthorizationChangedEvent.OutputTuple,
596
- OperatorAuthorizationChangedEvent.OutputObject
597
- >;
598
- OperatorAuthorizationChanged: TypedContractEvent<
599
- OperatorAuthorizationChangedEvent.InputTuple,
600
- OperatorAuthorizationChangedEvent.OutputTuple,
601
- OperatorAuthorizationChangedEvent.OutputObject
602
- >;
603
-
604
- "OperatorRevoked(address,address,bool,bytes)": TypedContractEvent<
605
- OperatorRevokedEvent.InputTuple,
606
- OperatorRevokedEvent.OutputTuple,
607
- OperatorRevokedEvent.OutputObject
608
- >;
609
- OperatorRevoked: TypedContractEvent<
610
- OperatorRevokedEvent.InputTuple,
611
- OperatorRevokedEvent.OutputTuple,
612
- OperatorRevokedEvent.OutputObject
613
- >;
614
-
615
- "Transfer(address,address,address,uint256,bool,bytes)": TypedContractEvent<
616
- TransferEvent.InputTuple,
617
- TransferEvent.OutputTuple,
618
- TransferEvent.OutputObject
619
- >;
620
- Transfer: TypedContractEvent<
621
- TransferEvent.InputTuple,
622
- TransferEvent.OutputTuple,
623
- TransferEvent.OutputObject
624
- >;
625
- };
626
- }