@lukso/lsp-smart-contracts 0.15.0 → 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 (94) hide show
  1. package/README.md +8 -2
  2. package/artifacts/LSP0ERC725Account.json +2 -2
  3. package/artifacts/LSP0ERC725AccountInit.json +2 -2
  4. package/artifacts/LSP11SocialRecovery.json +1171 -0
  5. package/artifacts/LSP1UniversalReceiverDelegateUP.json +2 -2
  6. package/artifacts/LSP1UniversalReceiverDelegateVault.json +2 -2
  7. package/artifacts/LSP23LinkedContractsFactory.json +2 -2
  8. package/artifacts/LSP26FollowerSystem.json +248 -0
  9. package/artifacts/LSP4DigitalAssetMetadata.json +0 -11
  10. package/artifacts/LSP4DigitalAssetMetadataInitAbstract.json +0 -16
  11. package/artifacts/LSP6KeyManager.json +2 -2
  12. package/artifacts/LSP6KeyManagerInit.json +2 -2
  13. package/artifacts/LSP7CappedSupply.json +0 -11
  14. package/artifacts/LSP7CappedSupplyInitAbstract.json +0 -16
  15. package/artifacts/LSP7DigitalAsset.json +0 -11
  16. package/artifacts/LSP7DigitalAssetInitAbstract.json +0 -16
  17. package/artifacts/LSP7Mintable.json +2 -13
  18. package/artifacts/LSP7MintableInit.json +2 -13
  19. package/artifacts/LSP7Votes.json +1154 -0
  20. package/artifacts/LSP8Burnable.json +943 -0
  21. package/artifacts/LSP8BurnableInitAbstract.json +951 -0
  22. package/artifacts/LSP8CappedSupply.json +0 -11
  23. package/artifacts/LSP8CappedSupplyInitAbstract.json +0 -16
  24. package/artifacts/LSP8Enumerable.json +944 -0
  25. package/artifacts/LSP8EnumerableInitAbstract.json +952 -0
  26. package/artifacts/LSP8IdentifiableDigitalAsset.json +0 -11
  27. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +0 -16
  28. package/artifacts/LSP8Mintable.json +2 -13
  29. package/artifacts/LSP8MintableInit.json +2 -13
  30. package/artifacts/LSP8Votes.json +1230 -0
  31. package/artifacts/LSP8VotesInitAbstract.json +1222 -0
  32. package/artifacts/LSP9Vault.json +2 -2
  33. package/artifacts/LSP9VaultInit.json +2 -2
  34. package/artifacts/UniversalProfile.json +2 -2
  35. package/artifacts/UniversalProfileInit.json +2 -2
  36. package/contracts/LSP11SocialRecovery/ILSP11SocialRecovery.sol +4 -0
  37. package/contracts/LSP11SocialRecovery/LSP11Constants.sol +4 -0
  38. package/contracts/LSP11SocialRecovery/LSP11Errors.sol +4 -0
  39. package/contracts/LSP11SocialRecovery/LSP11SocialRecovery.sol +4 -0
  40. package/contracts/LSP26FollowerSystem/ILSP26FollowerSystem.sol +4 -0
  41. package/contracts/LSP26FollowerSystem/LSP26Constants.sol +4 -0
  42. package/contracts/LSP26FollowerSystem/LSP26Errors.sol +4 -0
  43. package/contracts/LSP26FollowerSystem/LSP26FollowerSystem.sol +4 -0
  44. package/contracts/LSP4DigitalAssetMetadata/LSP4Utils.sol +1 -1
  45. package/contracts/LSP7DigitalAsset/{LSP7DigitalAssetCore.sol → extensions/LSP7Votes.sol} +1 -1
  46. package/contracts/LSP7DigitalAsset/extensions/LSP7VotesInitAbstract.sol +4 -0
  47. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Votes.sol +4 -0
  48. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8VotesInitAbstract.sol +4 -0
  49. package/dist/constants.cjs +20689 -10211
  50. package/dist/constants.d.cts +17476 -6994
  51. package/dist/constants.d.mts +17476 -6994
  52. package/dist/constants.d.ts +17476 -6994
  53. package/dist/constants.mjs +20689 -10211
  54. package/package.json +11 -9
  55. package/types/index.ts +11332 -4386
  56. package/artifacts/LSP11BasicSocialRecovery.json +0 -509
  57. package/artifacts/LSP11BasicSocialRecoveryInit.json +0 -529
  58. package/contracts/LSP11BasicSocialRecovery/ILSP11BasicSocialRecovery.sol +0 -179
  59. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.sol +0 -25
  60. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryCore.sol +0 -340
  61. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.sol +0 -30
  62. package/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInitAbstract.sol +0 -29
  63. package/contracts/LSP11BasicSocialRecovery/LSP11Constants.sol +0 -6
  64. package/contracts/LSP11BasicSocialRecovery/LSP11Errors.sol +0 -63
  65. package/contracts/LSP4DigitalAssetMetadata/LSP4DigitalAssetMetadataCore.sol +0 -4
  66. package/contracts/LSP8IdentifiableDigitalAsset/LSP8IdentifiableDigitalAssetCore.sol +0 -4
  67. package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725Account.ts +0 -694
  68. package/types/@lukso/lsp0-contracts/contracts/LSP0ERC725AccountInit.ts +0 -740
  69. package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateUP.ts +0 -139
  70. package/types/@lukso/lsp1delegate-contracts/contracts/LSP1UniversalReceiverDelegateVault.ts +0 -139
  71. package/types/@lukso/lsp23-contracts/contracts/LSP23LinkedContractsFactory.ts +0 -448
  72. package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadata.ts +0 -274
  73. package/types/@lukso/lsp4-contracts/contracts/LSP4DigitalAssetMetadataInitAbstract.ts +0 -309
  74. package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManager.ts +0 -355
  75. package/types/@lukso/lsp6-contracts/contracts/LSP6KeyManagerInit.ts +0 -398
  76. package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAsset.ts +0 -698
  77. package/types/@lukso/lsp7-contracts/contracts/LSP7DigitalAssetInitAbstract.ts +0 -729
  78. package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupply.ts +0 -712
  79. package/types/@lukso/lsp7-contracts/contracts/extensions/LSP7CappedSupplyInitAbstract.ts +0 -743
  80. package/types/@lukso/lsp7-contracts/contracts/presets/LSP7Mintable.ts +0 -717
  81. package/types/@lukso/lsp7-contracts/contracts/presets/LSP7MintableInit.ts +0 -779
  82. package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAsset.ts +0 -778
  83. package/types/@lukso/lsp8-contracts/contracts/LSP8IdentifiableDigitalAssetInitAbstract.ts +0 -813
  84. package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupply.ts +0 -792
  85. package/types/@lukso/lsp8-contracts/contracts/extensions/LSP8CappedSupplyInitAbstract.ts +0 -824
  86. package/types/@lukso/lsp8-contracts/contracts/presets/LSP8Mintable.ts +0 -797
  87. package/types/@lukso/lsp8-contracts/contracts/presets/LSP8MintableInit.ts +0 -860
  88. package/types/@lukso/lsp9-contracts/contracts/LSP9Vault.ts +0 -672
  89. package/types/@lukso/lsp9-contracts/contracts/LSP9VaultInit.ts +0 -714
  90. package/types/@lukso/universalprofile-contracts/contracts/UniversalProfile.ts +0 -694
  91. package/types/@lukso/universalprofile-contracts/contracts/UniversalProfileInit.ts +0 -740
  92. package/types/common.ts +0 -131
  93. package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecovery.ts +0 -596
  94. package/types/contracts/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.ts +0 -646
@@ -1,398 +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 LSP6KeyManagerInitInterface extends Interface {
27
- getFunction(
28
- nameOrSignature:
29
- | "VERSION"
30
- | "execute"
31
- | "executeBatch"
32
- | "executeRelayCall"
33
- | "executeRelayCallBatch"
34
- | "getNonce"
35
- | "initialize"
36
- | "isValidSignature"
37
- | "lsp20VerifyCall"
38
- | "lsp20VerifyCallResult"
39
- | "supportsInterface"
40
- | "target"
41
- ): FunctionFragment;
42
-
43
- getEvent(
44
- nameOrSignatureOrTopic: "Initialized" | "PermissionsVerified"
45
- ): EventFragment;
46
-
47
- encodeFunctionData(functionFragment: "VERSION", values?: undefined): string;
48
- encodeFunctionData(functionFragment: "execute", values: [BytesLike]): string;
49
- encodeFunctionData(
50
- functionFragment: "executeBatch",
51
- values: [BigNumberish[], BytesLike[]]
52
- ): string;
53
- encodeFunctionData(
54
- functionFragment: "executeRelayCall",
55
- values: [BytesLike, BigNumberish, BigNumberish, BytesLike]
56
- ): string;
57
- encodeFunctionData(
58
- functionFragment: "executeRelayCallBatch",
59
- values: [
60
- BytesLike[],
61
- BigNumberish[],
62
- BigNumberish[],
63
- BigNumberish[],
64
- BytesLike[]
65
- ]
66
- ): string;
67
- encodeFunctionData(
68
- functionFragment: "getNonce",
69
- values: [AddressLike, BigNumberish]
70
- ): string;
71
- encodeFunctionData(
72
- functionFragment: "initialize",
73
- values: [AddressLike]
74
- ): string;
75
- encodeFunctionData(
76
- functionFragment: "isValidSignature",
77
- values: [BytesLike, BytesLike]
78
- ): string;
79
- encodeFunctionData(
80
- functionFragment: "lsp20VerifyCall",
81
- values: [AddressLike, AddressLike, AddressLike, BigNumberish, BytesLike]
82
- ): string;
83
- encodeFunctionData(
84
- functionFragment: "lsp20VerifyCallResult",
85
- values: [BytesLike, BytesLike]
86
- ): string;
87
- encodeFunctionData(
88
- functionFragment: "supportsInterface",
89
- values: [BytesLike]
90
- ): string;
91
- encodeFunctionData(functionFragment: "target", values?: undefined): string;
92
-
93
- decodeFunctionResult(functionFragment: "VERSION", data: BytesLike): Result;
94
- decodeFunctionResult(functionFragment: "execute", data: BytesLike): Result;
95
- decodeFunctionResult(
96
- functionFragment: "executeBatch",
97
- data: BytesLike
98
- ): Result;
99
- decodeFunctionResult(
100
- functionFragment: "executeRelayCall",
101
- data: BytesLike
102
- ): Result;
103
- decodeFunctionResult(
104
- functionFragment: "executeRelayCallBatch",
105
- data: BytesLike
106
- ): Result;
107
- decodeFunctionResult(functionFragment: "getNonce", data: BytesLike): Result;
108
- decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
109
- decodeFunctionResult(
110
- functionFragment: "isValidSignature",
111
- data: BytesLike
112
- ): Result;
113
- decodeFunctionResult(
114
- functionFragment: "lsp20VerifyCall",
115
- data: BytesLike
116
- ): Result;
117
- decodeFunctionResult(
118
- functionFragment: "lsp20VerifyCallResult",
119
- data: BytesLike
120
- ): Result;
121
- decodeFunctionResult(
122
- functionFragment: "supportsInterface",
123
- data: BytesLike
124
- ): Result;
125
- decodeFunctionResult(functionFragment: "target", data: BytesLike): Result;
126
- }
127
-
128
- export namespace InitializedEvent {
129
- export type InputTuple = [version: BigNumberish];
130
- export type OutputTuple = [version: bigint];
131
- export interface OutputObject {
132
- version: bigint;
133
- }
134
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
135
- export type Filter = TypedDeferredTopicFilter<Event>;
136
- export type Log = TypedEventLog<Event>;
137
- export type LogDescription = TypedLogDescription<Event>;
138
- }
139
-
140
- export namespace PermissionsVerifiedEvent {
141
- export type InputTuple = [
142
- signer: AddressLike,
143
- value: BigNumberish,
144
- selector: BytesLike
145
- ];
146
- export type OutputTuple = [signer: string, value: bigint, selector: string];
147
- export interface OutputObject {
148
- signer: string;
149
- value: bigint;
150
- selector: string;
151
- }
152
- export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
153
- export type Filter = TypedDeferredTopicFilter<Event>;
154
- export type Log = TypedEventLog<Event>;
155
- export type LogDescription = TypedLogDescription<Event>;
156
- }
157
-
158
- export interface LSP6KeyManagerInit extends BaseContract {
159
- connect(runner?: ContractRunner | null): LSP6KeyManagerInit;
160
- waitForDeployment(): Promise<this>;
161
-
162
- interface: LSP6KeyManagerInitInterface;
163
-
164
- queryFilter<TCEvent extends TypedContractEvent>(
165
- event: TCEvent,
166
- fromBlockOrBlockhash?: string | number | undefined,
167
- toBlock?: string | number | undefined
168
- ): Promise<Array<TypedEventLog<TCEvent>>>;
169
- queryFilter<TCEvent extends TypedContractEvent>(
170
- filter: TypedDeferredTopicFilter<TCEvent>,
171
- fromBlockOrBlockhash?: string | number | undefined,
172
- toBlock?: string | number | undefined
173
- ): Promise<Array<TypedEventLog<TCEvent>>>;
174
-
175
- on<TCEvent extends TypedContractEvent>(
176
- event: TCEvent,
177
- listener: TypedListener<TCEvent>
178
- ): Promise<this>;
179
- on<TCEvent extends TypedContractEvent>(
180
- filter: TypedDeferredTopicFilter<TCEvent>,
181
- listener: TypedListener<TCEvent>
182
- ): Promise<this>;
183
-
184
- once<TCEvent extends TypedContractEvent>(
185
- event: TCEvent,
186
- listener: TypedListener<TCEvent>
187
- ): Promise<this>;
188
- once<TCEvent extends TypedContractEvent>(
189
- filter: TypedDeferredTopicFilter<TCEvent>,
190
- listener: TypedListener<TCEvent>
191
- ): Promise<this>;
192
-
193
- listeners<TCEvent extends TypedContractEvent>(
194
- event: TCEvent
195
- ): Promise<Array<TypedListener<TCEvent>>>;
196
- listeners(eventName?: string): Promise<Array<Listener>>;
197
- removeAllListeners<TCEvent extends TypedContractEvent>(
198
- event?: TCEvent
199
- ): Promise<this>;
200
-
201
- VERSION: TypedContractMethod<[], [string], "view">;
202
-
203
- execute: TypedContractMethod<[payload: BytesLike], [string], "payable">;
204
-
205
- executeBatch: TypedContractMethod<
206
- [values: BigNumberish[], payloads: BytesLike[]],
207
- [string[]],
208
- "payable"
209
- >;
210
-
211
- executeRelayCall: TypedContractMethod<
212
- [
213
- signature: BytesLike,
214
- nonce: BigNumberish,
215
- validityTimestamps: BigNumberish,
216
- payload: BytesLike
217
- ],
218
- [string],
219
- "payable"
220
- >;
221
-
222
- executeRelayCallBatch: TypedContractMethod<
223
- [
224
- signatures: BytesLike[],
225
- nonces: BigNumberish[],
226
- validityTimestamps: BigNumberish[],
227
- values: BigNumberish[],
228
- payloads: BytesLike[]
229
- ],
230
- [string[]],
231
- "payable"
232
- >;
233
-
234
- getNonce: TypedContractMethod<
235
- [from: AddressLike, channelId: BigNumberish],
236
- [bigint],
237
- "view"
238
- >;
239
-
240
- initialize: TypedContractMethod<[target_: AddressLike], [void], "nonpayable">;
241
-
242
- isValidSignature: TypedContractMethod<
243
- [dataHash: BytesLike, signature: BytesLike],
244
- [string],
245
- "view"
246
- >;
247
-
248
- lsp20VerifyCall: TypedContractMethod<
249
- [
250
- arg0: AddressLike,
251
- targetContract: AddressLike,
252
- caller: AddressLike,
253
- msgValue: BigNumberish,
254
- callData: BytesLike
255
- ],
256
- [string],
257
- "nonpayable"
258
- >;
259
-
260
- lsp20VerifyCallResult: TypedContractMethod<
261
- [arg0: BytesLike, arg1: BytesLike],
262
- [string],
263
- "nonpayable"
264
- >;
265
-
266
- supportsInterface: TypedContractMethod<
267
- [interfaceId: BytesLike],
268
- [boolean],
269
- "view"
270
- >;
271
-
272
- target: TypedContractMethod<[], [string], "view">;
273
-
274
- getFunction<T extends ContractMethod = ContractMethod>(
275
- key: string | FunctionFragment
276
- ): T;
277
-
278
- getFunction(
279
- nameOrSignature: "VERSION"
280
- ): TypedContractMethod<[], [string], "view">;
281
- getFunction(
282
- nameOrSignature: "execute"
283
- ): TypedContractMethod<[payload: BytesLike], [string], "payable">;
284
- getFunction(
285
- nameOrSignature: "executeBatch"
286
- ): TypedContractMethod<
287
- [values: BigNumberish[], payloads: BytesLike[]],
288
- [string[]],
289
- "payable"
290
- >;
291
- getFunction(
292
- nameOrSignature: "executeRelayCall"
293
- ): TypedContractMethod<
294
- [
295
- signature: BytesLike,
296
- nonce: BigNumberish,
297
- validityTimestamps: BigNumberish,
298
- payload: BytesLike
299
- ],
300
- [string],
301
- "payable"
302
- >;
303
- getFunction(
304
- nameOrSignature: "executeRelayCallBatch"
305
- ): TypedContractMethod<
306
- [
307
- signatures: BytesLike[],
308
- nonces: BigNumberish[],
309
- validityTimestamps: BigNumberish[],
310
- values: BigNumberish[],
311
- payloads: BytesLike[]
312
- ],
313
- [string[]],
314
- "payable"
315
- >;
316
- getFunction(
317
- nameOrSignature: "getNonce"
318
- ): TypedContractMethod<
319
- [from: AddressLike, channelId: BigNumberish],
320
- [bigint],
321
- "view"
322
- >;
323
- getFunction(
324
- nameOrSignature: "initialize"
325
- ): TypedContractMethod<[target_: AddressLike], [void], "nonpayable">;
326
- getFunction(
327
- nameOrSignature: "isValidSignature"
328
- ): TypedContractMethod<
329
- [dataHash: BytesLike, signature: BytesLike],
330
- [string],
331
- "view"
332
- >;
333
- getFunction(
334
- nameOrSignature: "lsp20VerifyCall"
335
- ): TypedContractMethod<
336
- [
337
- arg0: AddressLike,
338
- targetContract: AddressLike,
339
- caller: AddressLike,
340
- msgValue: BigNumberish,
341
- callData: BytesLike
342
- ],
343
- [string],
344
- "nonpayable"
345
- >;
346
- getFunction(
347
- nameOrSignature: "lsp20VerifyCallResult"
348
- ): TypedContractMethod<
349
- [arg0: BytesLike, arg1: BytesLike],
350
- [string],
351
- "nonpayable"
352
- >;
353
- getFunction(
354
- nameOrSignature: "supportsInterface"
355
- ): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
356
- getFunction(
357
- nameOrSignature: "target"
358
- ): TypedContractMethod<[], [string], "view">;
359
-
360
- getEvent(
361
- key: "Initialized"
362
- ): TypedContractEvent<
363
- InitializedEvent.InputTuple,
364
- InitializedEvent.OutputTuple,
365
- InitializedEvent.OutputObject
366
- >;
367
- getEvent(
368
- key: "PermissionsVerified"
369
- ): TypedContractEvent<
370
- PermissionsVerifiedEvent.InputTuple,
371
- PermissionsVerifiedEvent.OutputTuple,
372
- PermissionsVerifiedEvent.OutputObject
373
- >;
374
-
375
- filters: {
376
- "Initialized(uint8)": TypedContractEvent<
377
- InitializedEvent.InputTuple,
378
- InitializedEvent.OutputTuple,
379
- InitializedEvent.OutputObject
380
- >;
381
- Initialized: TypedContractEvent<
382
- InitializedEvent.InputTuple,
383
- InitializedEvent.OutputTuple,
384
- InitializedEvent.OutputObject
385
- >;
386
-
387
- "PermissionsVerified(address,uint256,bytes4)": TypedContractEvent<
388
- PermissionsVerifiedEvent.InputTuple,
389
- PermissionsVerifiedEvent.OutputTuple,
390
- PermissionsVerifiedEvent.OutputObject
391
- >;
392
- PermissionsVerified: TypedContractEvent<
393
- PermissionsVerifiedEvent.InputTuple,
394
- PermissionsVerifiedEvent.OutputTuple,
395
- PermissionsVerifiedEvent.OutputObject
396
- >;
397
- };
398
- }