@lukso/universalprofile-contracts 0.15.0-rc.5 → 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.
package/README.md CHANGED
@@ -10,7 +10,7 @@ npm i @lukso/universalprofile-contracts
10
10
 
11
11
  ## Solidity constants
12
12
 
13
- The constants related to LSP3 Profile Metadata can be directly imported from the `Constants.sol` file.
13
+ The constants related to LSP3 Profile Metadata can be directly imported from the Solidity `Constants.sol` file.
14
14
 
15
15
  <!-- prettier-ignore -->
16
16
  ```solidity
@@ -18,5 +18,16 @@ import {
18
18
  _LSP3_SUPPORTED_STANDARDS_KEY,
19
19
  _LSP3_SUPPORTED_STANDARDS_VALUE,
20
20
  _LSP3_PROFILE_KEY
21
- } from "universalprofile/contracts/Constants.sol";
21
+ } from "@lukso/universalprofile-contracts/contracts/Constants.sol";
22
+ ```
23
+
24
+ ## Typescript types
25
+
26
+ You can also import the [type-safe ABI](https://abitype.dev/) of each LSP smart contracts from the `/abi` path.
27
+
28
+ ```ts
29
+ import {
30
+ universalProfileAbi,
31
+ universalProfileInitAbi,
32
+ } from "@lukso/universalprofile-contracts/abi";
22
33
  ```
@@ -0,0 +1,5 @@
1
+ # Compatibility ABIs for UniversalProfile
2
+
3
+ This folder contains historical ABIs from previous release versions.
4
+
5
+ This is to enable dApps and projects to be backward compatible in their interfaces to display and interact with UnviersalProfile token contracts deployed with these old versions, by consuming their old ABIs.
@@ -0,0 +1,667 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ {
5
+ "internalType": "address",
6
+ "name": "initialOwner",
7
+ "type": "address"
8
+ }
9
+ ],
10
+ "stateMutability": "payable",
11
+ "type": "constructor"
12
+ },
13
+ {
14
+ "inputs": [],
15
+ "name": "ERC725X_ContractDeploymentFailed",
16
+ "type": "error"
17
+ },
18
+ {
19
+ "inputs": [],
20
+ "name": "ERC725X_CreateOperationsRequireEmptyRecipientAddress",
21
+ "type": "error"
22
+ },
23
+ {
24
+ "inputs": [],
25
+ "name": "ERC725X_ExecuteParametersEmptyArray",
26
+ "type": "error"
27
+ },
28
+ {
29
+ "inputs": [],
30
+ "name": "ERC725X_ExecuteParametersLengthMismatch",
31
+ "type": "error"
32
+ },
33
+ {
34
+ "inputs": [
35
+ {
36
+ "internalType": "uint256",
37
+ "name": "balance",
38
+ "type": "uint256"
39
+ },
40
+ {
41
+ "internalType": "uint256",
42
+ "name": "value",
43
+ "type": "uint256"
44
+ }
45
+ ],
46
+ "name": "ERC725X_InsufficientBalance",
47
+ "type": "error"
48
+ },
49
+ {
50
+ "inputs": [],
51
+ "name": "ERC725X_MsgValueDisallowedInDelegateCall",
52
+ "type": "error"
53
+ },
54
+ {
55
+ "inputs": [],
56
+ "name": "ERC725X_MsgValueDisallowedInStaticCall",
57
+ "type": "error"
58
+ },
59
+ {
60
+ "inputs": [],
61
+ "name": "ERC725X_NoContractBytecodeProvided",
62
+ "type": "error"
63
+ },
64
+ {
65
+ "inputs": [
66
+ {
67
+ "internalType": "uint256",
68
+ "name": "operationTypeProvided",
69
+ "type": "uint256"
70
+ }
71
+ ],
72
+ "name": "ERC725X_UnknownOperationType",
73
+ "type": "error"
74
+ },
75
+ {
76
+ "inputs": [],
77
+ "name": "ERC725Y_DataKeysValuesEmptyArray",
78
+ "type": "error"
79
+ },
80
+ {
81
+ "inputs": [],
82
+ "name": "ERC725Y_DataKeysValuesLengthMismatch",
83
+ "type": "error"
84
+ },
85
+ {
86
+ "inputs": [
87
+ {
88
+ "internalType": "address",
89
+ "name": "caller",
90
+ "type": "address"
91
+ }
92
+ ],
93
+ "name": "LSP14CallerNotPendingOwner",
94
+ "type": "error"
95
+ },
96
+ {
97
+ "inputs": [],
98
+ "name": "LSP14CannotTransferOwnershipToSelf",
99
+ "type": "error"
100
+ },
101
+ {
102
+ "inputs": [],
103
+ "name": "LSP14MustAcceptOwnershipInSeparateTransaction",
104
+ "type": "error"
105
+ },
106
+ {
107
+ "inputs": [
108
+ {
109
+ "internalType": "uint256",
110
+ "name": "renounceOwnershipStart",
111
+ "type": "uint256"
112
+ },
113
+ {
114
+ "internalType": "uint256",
115
+ "name": "renounceOwnershipEnd",
116
+ "type": "uint256"
117
+ }
118
+ ],
119
+ "name": "LSP14NotInRenounceOwnershipInterval",
120
+ "type": "error"
121
+ },
122
+ {
123
+ "inputs": [
124
+ {
125
+ "internalType": "bool",
126
+ "name": "postCall",
127
+ "type": "bool"
128
+ },
129
+ {
130
+ "internalType": "bytes4",
131
+ "name": "returnedStatus",
132
+ "type": "bytes4"
133
+ }
134
+ ],
135
+ "name": "LSP20CallVerificationFailed",
136
+ "type": "error"
137
+ },
138
+ {
139
+ "inputs": [
140
+ {
141
+ "internalType": "bool",
142
+ "name": "postCall",
143
+ "type": "bool"
144
+ }
145
+ ],
146
+ "name": "LSP20CallingVerifierFailed",
147
+ "type": "error"
148
+ },
149
+ {
150
+ "inputs": [
151
+ {
152
+ "internalType": "address",
153
+ "name": "logicVerifier",
154
+ "type": "address"
155
+ }
156
+ ],
157
+ "name": "LSP20EOACannotVerifyCall",
158
+ "type": "error"
159
+ },
160
+ {
161
+ "inputs": [
162
+ {
163
+ "internalType": "bytes4",
164
+ "name": "functionSelector",
165
+ "type": "bytes4"
166
+ }
167
+ ],
168
+ "name": "NoExtensionFoundForFunctionSelector",
169
+ "type": "error"
170
+ },
171
+ {
172
+ "anonymous": false,
173
+ "inputs": [
174
+ {
175
+ "indexed": true,
176
+ "internalType": "uint256",
177
+ "name": "operationType",
178
+ "type": "uint256"
179
+ },
180
+ {
181
+ "indexed": true,
182
+ "internalType": "address",
183
+ "name": "contractAddress",
184
+ "type": "address"
185
+ },
186
+ {
187
+ "indexed": true,
188
+ "internalType": "uint256",
189
+ "name": "value",
190
+ "type": "uint256"
191
+ },
192
+ {
193
+ "indexed": false,
194
+ "internalType": "bytes32",
195
+ "name": "salt",
196
+ "type": "bytes32"
197
+ }
198
+ ],
199
+ "name": "ContractCreated",
200
+ "type": "event"
201
+ },
202
+ {
203
+ "anonymous": false,
204
+ "inputs": [
205
+ {
206
+ "indexed": true,
207
+ "internalType": "bytes32",
208
+ "name": "dataKey",
209
+ "type": "bytes32"
210
+ },
211
+ {
212
+ "indexed": false,
213
+ "internalType": "bytes",
214
+ "name": "dataValue",
215
+ "type": "bytes"
216
+ }
217
+ ],
218
+ "name": "DataChanged",
219
+ "type": "event"
220
+ },
221
+ {
222
+ "anonymous": false,
223
+ "inputs": [
224
+ {
225
+ "indexed": true,
226
+ "internalType": "uint256",
227
+ "name": "operationType",
228
+ "type": "uint256"
229
+ },
230
+ {
231
+ "indexed": true,
232
+ "internalType": "address",
233
+ "name": "target",
234
+ "type": "address"
235
+ },
236
+ {
237
+ "indexed": true,
238
+ "internalType": "uint256",
239
+ "name": "value",
240
+ "type": "uint256"
241
+ },
242
+ {
243
+ "indexed": false,
244
+ "internalType": "bytes4",
245
+ "name": "selector",
246
+ "type": "bytes4"
247
+ }
248
+ ],
249
+ "name": "Executed",
250
+ "type": "event"
251
+ },
252
+ {
253
+ "anonymous": false,
254
+ "inputs": [],
255
+ "name": "OwnershipRenounced",
256
+ "type": "event"
257
+ },
258
+ {
259
+ "anonymous": false,
260
+ "inputs": [
261
+ {
262
+ "indexed": true,
263
+ "internalType": "address",
264
+ "name": "previousOwner",
265
+ "type": "address"
266
+ },
267
+ {
268
+ "indexed": true,
269
+ "internalType": "address",
270
+ "name": "newOwner",
271
+ "type": "address"
272
+ }
273
+ ],
274
+ "name": "OwnershipTransferStarted",
275
+ "type": "event"
276
+ },
277
+ {
278
+ "anonymous": false,
279
+ "inputs": [
280
+ {
281
+ "indexed": true,
282
+ "internalType": "address",
283
+ "name": "previousOwner",
284
+ "type": "address"
285
+ },
286
+ {
287
+ "indexed": true,
288
+ "internalType": "address",
289
+ "name": "newOwner",
290
+ "type": "address"
291
+ }
292
+ ],
293
+ "name": "OwnershipTransferred",
294
+ "type": "event"
295
+ },
296
+ {
297
+ "anonymous": false,
298
+ "inputs": [],
299
+ "name": "RenounceOwnershipStarted",
300
+ "type": "event"
301
+ },
302
+ {
303
+ "anonymous": false,
304
+ "inputs": [
305
+ {
306
+ "indexed": true,
307
+ "internalType": "address",
308
+ "name": "from",
309
+ "type": "address"
310
+ },
311
+ {
312
+ "indexed": true,
313
+ "internalType": "uint256",
314
+ "name": "value",
315
+ "type": "uint256"
316
+ },
317
+ {
318
+ "indexed": true,
319
+ "internalType": "bytes32",
320
+ "name": "typeId",
321
+ "type": "bytes32"
322
+ },
323
+ {
324
+ "indexed": false,
325
+ "internalType": "bytes",
326
+ "name": "receivedData",
327
+ "type": "bytes"
328
+ },
329
+ {
330
+ "indexed": false,
331
+ "internalType": "bytes",
332
+ "name": "returnedValue",
333
+ "type": "bytes"
334
+ }
335
+ ],
336
+ "name": "UniversalReceiver",
337
+ "type": "event"
338
+ },
339
+ {
340
+ "stateMutability": "payable",
341
+ "type": "fallback"
342
+ },
343
+ {
344
+ "inputs": [],
345
+ "name": "RENOUNCE_OWNERSHIP_CONFIRMATION_DELAY",
346
+ "outputs": [
347
+ {
348
+ "internalType": "uint256",
349
+ "name": "",
350
+ "type": "uint256"
351
+ }
352
+ ],
353
+ "stateMutability": "view",
354
+ "type": "function"
355
+ },
356
+ {
357
+ "inputs": [],
358
+ "name": "RENOUNCE_OWNERSHIP_CONFIRMATION_PERIOD",
359
+ "outputs": [
360
+ {
361
+ "internalType": "uint256",
362
+ "name": "",
363
+ "type": "uint256"
364
+ }
365
+ ],
366
+ "stateMutability": "view",
367
+ "type": "function"
368
+ },
369
+ {
370
+ "inputs": [],
371
+ "name": "acceptOwnership",
372
+ "outputs": [],
373
+ "stateMutability": "nonpayable",
374
+ "type": "function"
375
+ },
376
+ {
377
+ "inputs": [
378
+ {
379
+ "internalType": "bytes[]",
380
+ "name": "data",
381
+ "type": "bytes[]"
382
+ }
383
+ ],
384
+ "name": "batchCalls",
385
+ "outputs": [
386
+ {
387
+ "internalType": "bytes[]",
388
+ "name": "results",
389
+ "type": "bytes[]"
390
+ }
391
+ ],
392
+ "stateMutability": "nonpayable",
393
+ "type": "function"
394
+ },
395
+ {
396
+ "inputs": [
397
+ {
398
+ "internalType": "uint256",
399
+ "name": "operationType",
400
+ "type": "uint256"
401
+ },
402
+ {
403
+ "internalType": "address",
404
+ "name": "target",
405
+ "type": "address"
406
+ },
407
+ {
408
+ "internalType": "uint256",
409
+ "name": "value",
410
+ "type": "uint256"
411
+ },
412
+ {
413
+ "internalType": "bytes",
414
+ "name": "data",
415
+ "type": "bytes"
416
+ }
417
+ ],
418
+ "name": "execute",
419
+ "outputs": [
420
+ {
421
+ "internalType": "bytes",
422
+ "name": "",
423
+ "type": "bytes"
424
+ }
425
+ ],
426
+ "stateMutability": "payable",
427
+ "type": "function"
428
+ },
429
+ {
430
+ "inputs": [
431
+ {
432
+ "internalType": "uint256[]",
433
+ "name": "operationsType",
434
+ "type": "uint256[]"
435
+ },
436
+ {
437
+ "internalType": "address[]",
438
+ "name": "targets",
439
+ "type": "address[]"
440
+ },
441
+ {
442
+ "internalType": "uint256[]",
443
+ "name": "values",
444
+ "type": "uint256[]"
445
+ },
446
+ {
447
+ "internalType": "bytes[]",
448
+ "name": "datas",
449
+ "type": "bytes[]"
450
+ }
451
+ ],
452
+ "name": "executeBatch",
453
+ "outputs": [
454
+ {
455
+ "internalType": "bytes[]",
456
+ "name": "",
457
+ "type": "bytes[]"
458
+ }
459
+ ],
460
+ "stateMutability": "payable",
461
+ "type": "function"
462
+ },
463
+ {
464
+ "inputs": [
465
+ {
466
+ "internalType": "bytes32",
467
+ "name": "dataKey",
468
+ "type": "bytes32"
469
+ }
470
+ ],
471
+ "name": "getData",
472
+ "outputs": [
473
+ {
474
+ "internalType": "bytes",
475
+ "name": "dataValue",
476
+ "type": "bytes"
477
+ }
478
+ ],
479
+ "stateMutability": "view",
480
+ "type": "function"
481
+ },
482
+ {
483
+ "inputs": [
484
+ {
485
+ "internalType": "bytes32[]",
486
+ "name": "dataKeys",
487
+ "type": "bytes32[]"
488
+ }
489
+ ],
490
+ "name": "getDataBatch",
491
+ "outputs": [
492
+ {
493
+ "internalType": "bytes[]",
494
+ "name": "dataValues",
495
+ "type": "bytes[]"
496
+ }
497
+ ],
498
+ "stateMutability": "view",
499
+ "type": "function"
500
+ },
501
+ {
502
+ "inputs": [
503
+ {
504
+ "internalType": "bytes32",
505
+ "name": "dataHash",
506
+ "type": "bytes32"
507
+ },
508
+ {
509
+ "internalType": "bytes",
510
+ "name": "signature",
511
+ "type": "bytes"
512
+ }
513
+ ],
514
+ "name": "isValidSignature",
515
+ "outputs": [
516
+ {
517
+ "internalType": "bytes4",
518
+ "name": "returnedStatus",
519
+ "type": "bytes4"
520
+ }
521
+ ],
522
+ "stateMutability": "view",
523
+ "type": "function"
524
+ },
525
+ {
526
+ "inputs": [],
527
+ "name": "owner",
528
+ "outputs": [
529
+ {
530
+ "internalType": "address",
531
+ "name": "",
532
+ "type": "address"
533
+ }
534
+ ],
535
+ "stateMutability": "view",
536
+ "type": "function"
537
+ },
538
+ {
539
+ "inputs": [],
540
+ "name": "pendingOwner",
541
+ "outputs": [
542
+ {
543
+ "internalType": "address",
544
+ "name": "",
545
+ "type": "address"
546
+ }
547
+ ],
548
+ "stateMutability": "view",
549
+ "type": "function"
550
+ },
551
+ {
552
+ "inputs": [],
553
+ "name": "renounceOwnership",
554
+ "outputs": [],
555
+ "stateMutability": "nonpayable",
556
+ "type": "function"
557
+ },
558
+ {
559
+ "inputs": [
560
+ {
561
+ "internalType": "bytes32",
562
+ "name": "dataKey",
563
+ "type": "bytes32"
564
+ },
565
+ {
566
+ "internalType": "bytes",
567
+ "name": "dataValue",
568
+ "type": "bytes"
569
+ }
570
+ ],
571
+ "name": "setData",
572
+ "outputs": [],
573
+ "stateMutability": "payable",
574
+ "type": "function"
575
+ },
576
+ {
577
+ "inputs": [
578
+ {
579
+ "internalType": "bytes32[]",
580
+ "name": "dataKeys",
581
+ "type": "bytes32[]"
582
+ },
583
+ {
584
+ "internalType": "bytes[]",
585
+ "name": "dataValues",
586
+ "type": "bytes[]"
587
+ }
588
+ ],
589
+ "name": "setDataBatch",
590
+ "outputs": [],
591
+ "stateMutability": "payable",
592
+ "type": "function"
593
+ },
594
+ {
595
+ "inputs": [
596
+ {
597
+ "internalType": "bytes4",
598
+ "name": "interfaceId",
599
+ "type": "bytes4"
600
+ }
601
+ ],
602
+ "name": "supportsInterface",
603
+ "outputs": [
604
+ {
605
+ "internalType": "bool",
606
+ "name": "",
607
+ "type": "bool"
608
+ }
609
+ ],
610
+ "stateMutability": "view",
611
+ "type": "function"
612
+ },
613
+ {
614
+ "inputs": [
615
+ {
616
+ "internalType": "address",
617
+ "name": "pendingNewOwner",
618
+ "type": "address"
619
+ }
620
+ ],
621
+ "name": "transferOwnership",
622
+ "outputs": [],
623
+ "stateMutability": "nonpayable",
624
+ "type": "function"
625
+ },
626
+ {
627
+ "inputs": [
628
+ {
629
+ "internalType": "bytes32",
630
+ "name": "typeId",
631
+ "type": "bytes32"
632
+ },
633
+ {
634
+ "internalType": "bytes",
635
+ "name": "receivedData",
636
+ "type": "bytes"
637
+ }
638
+ ],
639
+ "name": "universalReceiver",
640
+ "outputs": [
641
+ {
642
+ "internalType": "bytes",
643
+ "name": "returnedValues",
644
+ "type": "bytes"
645
+ }
646
+ ],
647
+ "stateMutability": "payable",
648
+ "type": "function"
649
+ },
650
+ {
651
+ "inputs": [],
652
+ "name": "version",
653
+ "outputs": [
654
+ {
655
+ "internalType": "string",
656
+ "name": "",
657
+ "type": "string"
658
+ }
659
+ ],
660
+ "stateMutability": "view",
661
+ "type": "function"
662
+ },
663
+ {
664
+ "stateMutability": "payable",
665
+ "type": "receive"
666
+ }
667
+ ]
@@ -11,7 +11,7 @@ abstract contract Version {
11
11
  // DO NOT CHANGE
12
12
  // Comments block below is used by release-please to automatically update the version in this file.
13
13
  // x-release-please-start-version
14
- string public constant VERSION = "0.15.0-rc.5";
14
+ string public constant VERSION = "0.15.1";
15
15
 
16
16
  // x-release-please-end
17
17
  }