@lukso/lsp-smart-contracts 0.17.4 → 0.18.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.
Files changed (70) hide show
  1. package/artifacts/Extension4337.json +1 -1
  2. package/artifacts/IAccessControlExtended.json +1 -1
  3. package/artifacts/ILSP23LinkedContractsFactory.json +1 -1
  4. package/artifacts/ILSP7CappedBalance.json +1 -1
  5. package/artifacts/ILSP7CappedSupply.json +1 -1
  6. package/artifacts/ILSP7DigitalAsset.json +1 -1
  7. package/artifacts/ILSP7Mintable.json +1 -1
  8. package/artifacts/ILSP7NonTransferable.json +1 -1
  9. package/artifacts/ILSP7Revokable.json +1 -1
  10. package/artifacts/ILSP8CappedBalance.json +1 -1
  11. package/artifacts/ILSP8CappedSupply.json +1 -1
  12. package/artifacts/ILSP8IdentifiableDigitalAsset.json +1 -1
  13. package/artifacts/ILSP8Mintable.json +1 -1
  14. package/artifacts/ILSP8NonTransferable.json +1 -1
  15. package/artifacts/ILSP8Revokable.json +1 -1
  16. package/artifacts/IPostDeploymentModule.json +1 -1
  17. package/artifacts/LSP23LinkedContractsFactory.json +1 -1
  18. package/artifacts/LSP23LinkedContractsFactoryV2.json +547 -0
  19. package/artifacts/LSP7Burnable.json +1 -1
  20. package/artifacts/LSP7BurnableInitAbstract.json +1 -1
  21. package/artifacts/LSP7CappedBalanceAbstract.json +1 -1
  22. package/artifacts/LSP7CappedBalanceInitAbstract.json +1 -1
  23. package/artifacts/LSP7CappedSupplyAbstract.json +1 -1
  24. package/artifacts/LSP7CappedSupplyInitAbstract.json +1 -1
  25. package/artifacts/LSP7CustomizableToken.json +3 -3
  26. package/artifacts/LSP7CustomizableTokenInit.json +3 -3
  27. package/artifacts/LSP7DigitalAsset.json +1 -1
  28. package/artifacts/LSP7DigitalAssetInitAbstract.json +1 -1
  29. package/artifacts/LSP7Mintable.json +27 -4
  30. package/artifacts/LSP7MintableAbstract.json +1 -1
  31. package/artifacts/LSP7MintableInit.json +26 -3
  32. package/artifacts/LSP7MintableInitAbstract.json +1 -1
  33. package/artifacts/LSP7NonTransferableAbstract.json +1 -1
  34. package/artifacts/LSP7NonTransferableInitAbstract.json +1 -1
  35. package/artifacts/LSP7RevokableAbstract.json +1 -1
  36. package/artifacts/LSP7RevokableInitAbstract.json +1 -1
  37. package/artifacts/LSP7Votes.json +1 -1
  38. package/artifacts/LSP7VotesInitAbstract.json +1 -1
  39. package/artifacts/LSP8Burnable.json +1 -1
  40. package/artifacts/LSP8BurnableInitAbstract.json +1 -1
  41. package/artifacts/LSP8CappedBalanceAbstract.json +1 -1
  42. package/artifacts/LSP8CappedBalanceInitAbstract.json +1 -1
  43. package/artifacts/LSP8CappedSupplyAbstract.json +1 -1
  44. package/artifacts/LSP8CappedSupplyInitAbstract.json +1 -1
  45. package/artifacts/LSP8CustomizableToken.json +3 -3
  46. package/artifacts/LSP8CustomizableTokenInit.json +3 -3
  47. package/artifacts/LSP8Enumerable.json +1 -1
  48. package/artifacts/LSP8EnumerableInitAbstract.json +1 -1
  49. package/artifacts/LSP8IdentifiableDigitalAsset.json +1 -1
  50. package/artifacts/LSP8IdentifiableDigitalAssetInitAbstract.json +1 -1
  51. package/artifacts/LSP8Mintable.json +21 -3
  52. package/artifacts/LSP8MintableAbstract.json +1 -1
  53. package/artifacts/LSP8MintableInit.json +21 -3
  54. package/artifacts/LSP8MintableInitAbstract.json +1 -1
  55. package/artifacts/LSP8NonTransferableAbstract.json +1 -1
  56. package/artifacts/LSP8NonTransferableInitAbstract.json +1 -1
  57. package/artifacts/LSP8RevokableAbstract.json +1 -1
  58. package/artifacts/LSP8RevokableInitAbstract.json +1 -1
  59. package/artifacts/LSP8Votes.json +1 -1
  60. package/artifacts/LSP8VotesInitAbstract.json +1 -1
  61. package/artifacts/OnERC721ReceivedExtension.json +1 -1
  62. package/artifacts/UniversalProfileInitPostDeploymentModule.json +1 -1
  63. package/artifacts/UniversalProfilePostDeploymentModule.json +1 -1
  64. package/contracts/LSP23LinkedContractsFactory/LSP23LinkedContractsFactory-v2.sol +4 -0
  65. package/dist/abi.cjs +466 -0
  66. package/dist/abi.d.cts +480 -1
  67. package/dist/abi.d.mts +480 -1
  68. package/dist/abi.d.ts +480 -1
  69. package/dist/abi.mjs +466 -1
  70. package/package.json +8 -4
package/dist/abi.cjs CHANGED
@@ -4518,6 +4518,429 @@ const lsp23LinkedContractsFactoryAbi = [
4518
4518
  stateMutability: "payable"
4519
4519
  }
4520
4520
  ];
4521
+ const lsp23LinkedContractsFactoryV2Abi = [
4522
+ { type: "error", inputs: [], name: "InvalidValueSum" },
4523
+ {
4524
+ type: "error",
4525
+ inputs: [{ name: "errorData", internalType: "bytes", type: "bytes" }],
4526
+ name: "PrimaryContractProxyInitFailureError"
4527
+ },
4528
+ {
4529
+ type: "error",
4530
+ inputs: [{ name: "errorData", internalType: "bytes", type: "bytes" }],
4531
+ name: "SecondaryContractProxyInitFailureError"
4532
+ },
4533
+ {
4534
+ type: "event",
4535
+ anonymous: false,
4536
+ inputs: [
4537
+ {
4538
+ name: "primaryContract",
4539
+ internalType: "address",
4540
+ type: "address",
4541
+ indexed: true
4542
+ },
4543
+ {
4544
+ name: "secondaryContract",
4545
+ internalType: "address",
4546
+ type: "address",
4547
+ indexed: true
4548
+ },
4549
+ {
4550
+ name: "primaryContractDeployment",
4551
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeployment",
4552
+ type: "tuple",
4553
+ components: [
4554
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
4555
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4556
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" }
4557
+ ],
4558
+ indexed: false
4559
+ },
4560
+ {
4561
+ name: "secondaryContractDeployment",
4562
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeployment",
4563
+ type: "tuple",
4564
+ components: [
4565
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4566
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" },
4567
+ {
4568
+ name: "addPrimaryContractAddress",
4569
+ internalType: "bool",
4570
+ type: "bool"
4571
+ },
4572
+ {
4573
+ name: "extraConstructorParams",
4574
+ internalType: "bytes",
4575
+ type: "bytes"
4576
+ }
4577
+ ],
4578
+ indexed: false
4579
+ },
4580
+ {
4581
+ name: "postDeploymentModule",
4582
+ internalType: "address",
4583
+ type: "address",
4584
+ indexed: false
4585
+ },
4586
+ {
4587
+ name: "postDeploymentModuleCalldata",
4588
+ internalType: "bytes",
4589
+ type: "bytes",
4590
+ indexed: false
4591
+ }
4592
+ ],
4593
+ name: "DeployedContracts"
4594
+ },
4595
+ {
4596
+ type: "event",
4597
+ anonymous: false,
4598
+ inputs: [
4599
+ {
4600
+ name: "primaryContract",
4601
+ internalType: "address",
4602
+ type: "address",
4603
+ indexed: true
4604
+ },
4605
+ {
4606
+ name: "secondaryContract",
4607
+ internalType: "address",
4608
+ type: "address",
4609
+ indexed: true
4610
+ },
4611
+ {
4612
+ name: "primaryContractDeploymentInit",
4613
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeploymentInit",
4614
+ type: "tuple",
4615
+ components: [
4616
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
4617
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4618
+ {
4619
+ name: "implementationContract",
4620
+ internalType: "address",
4621
+ type: "address"
4622
+ },
4623
+ {
4624
+ name: "initializationCalldata",
4625
+ internalType: "bytes",
4626
+ type: "bytes"
4627
+ }
4628
+ ],
4629
+ indexed: false
4630
+ },
4631
+ {
4632
+ name: "secondaryContractDeploymentInit",
4633
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeploymentInit",
4634
+ type: "tuple",
4635
+ components: [
4636
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4637
+ {
4638
+ name: "implementationContract",
4639
+ internalType: "address",
4640
+ type: "address"
4641
+ },
4642
+ {
4643
+ name: "initializationCalldata",
4644
+ internalType: "bytes",
4645
+ type: "bytes"
4646
+ },
4647
+ {
4648
+ name: "addPrimaryContractAddress",
4649
+ internalType: "bool",
4650
+ type: "bool"
4651
+ },
4652
+ {
4653
+ name: "extraInitializationParams",
4654
+ internalType: "bytes",
4655
+ type: "bytes"
4656
+ }
4657
+ ],
4658
+ indexed: false
4659
+ },
4660
+ {
4661
+ name: "postDeploymentModule",
4662
+ internalType: "address",
4663
+ type: "address",
4664
+ indexed: false
4665
+ },
4666
+ {
4667
+ name: "postDeploymentModuleCalldata",
4668
+ internalType: "bytes",
4669
+ type: "bytes",
4670
+ indexed: false
4671
+ }
4672
+ ],
4673
+ name: "DeployedERC1167Proxies"
4674
+ },
4675
+ {
4676
+ type: "function",
4677
+ inputs: [
4678
+ {
4679
+ name: "primaryContractDeployment",
4680
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeployment",
4681
+ type: "tuple",
4682
+ components: [
4683
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
4684
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4685
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" }
4686
+ ]
4687
+ },
4688
+ {
4689
+ name: "secondaryContractDeployment",
4690
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeployment",
4691
+ type: "tuple",
4692
+ components: [
4693
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4694
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" },
4695
+ {
4696
+ name: "addPrimaryContractAddress",
4697
+ internalType: "bool",
4698
+ type: "bool"
4699
+ },
4700
+ {
4701
+ name: "extraConstructorParams",
4702
+ internalType: "bytes",
4703
+ type: "bytes"
4704
+ }
4705
+ ]
4706
+ },
4707
+ {
4708
+ name: "postDeploymentModule",
4709
+ internalType: "address",
4710
+ type: "address"
4711
+ },
4712
+ {
4713
+ name: "postDeploymentModuleCalldata",
4714
+ internalType: "bytes",
4715
+ type: "bytes"
4716
+ }
4717
+ ],
4718
+ name: "computeAddresses",
4719
+ outputs: [
4720
+ {
4721
+ name: "primaryContractAddress",
4722
+ internalType: "address",
4723
+ type: "address"
4724
+ },
4725
+ {
4726
+ name: "secondaryContractAddress",
4727
+ internalType: "address",
4728
+ type: "address"
4729
+ }
4730
+ ],
4731
+ stateMutability: "view"
4732
+ },
4733
+ {
4734
+ type: "function",
4735
+ inputs: [
4736
+ {
4737
+ name: "primaryContractDeploymentInit",
4738
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeploymentInit",
4739
+ type: "tuple",
4740
+ components: [
4741
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
4742
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4743
+ {
4744
+ name: "implementationContract",
4745
+ internalType: "address",
4746
+ type: "address"
4747
+ },
4748
+ {
4749
+ name: "initializationCalldata",
4750
+ internalType: "bytes",
4751
+ type: "bytes"
4752
+ }
4753
+ ]
4754
+ },
4755
+ {
4756
+ name: "secondaryContractDeploymentInit",
4757
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeploymentInit",
4758
+ type: "tuple",
4759
+ components: [
4760
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4761
+ {
4762
+ name: "implementationContract",
4763
+ internalType: "address",
4764
+ type: "address"
4765
+ },
4766
+ {
4767
+ name: "initializationCalldata",
4768
+ internalType: "bytes",
4769
+ type: "bytes"
4770
+ },
4771
+ {
4772
+ name: "addPrimaryContractAddress",
4773
+ internalType: "bool",
4774
+ type: "bool"
4775
+ },
4776
+ {
4777
+ name: "extraInitializationParams",
4778
+ internalType: "bytes",
4779
+ type: "bytes"
4780
+ }
4781
+ ]
4782
+ },
4783
+ {
4784
+ name: "postDeploymentModule",
4785
+ internalType: "address",
4786
+ type: "address"
4787
+ },
4788
+ {
4789
+ name: "postDeploymentModuleCalldata",
4790
+ internalType: "bytes",
4791
+ type: "bytes"
4792
+ }
4793
+ ],
4794
+ name: "computeERC1167Addresses",
4795
+ outputs: [
4796
+ {
4797
+ name: "primaryContractAddress",
4798
+ internalType: "address",
4799
+ type: "address"
4800
+ },
4801
+ {
4802
+ name: "secondaryContractAddress",
4803
+ internalType: "address",
4804
+ type: "address"
4805
+ }
4806
+ ],
4807
+ stateMutability: "view"
4808
+ },
4809
+ {
4810
+ type: "function",
4811
+ inputs: [
4812
+ {
4813
+ name: "primaryContractDeployment",
4814
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeployment",
4815
+ type: "tuple",
4816
+ components: [
4817
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
4818
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4819
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" }
4820
+ ]
4821
+ },
4822
+ {
4823
+ name: "secondaryContractDeployment",
4824
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeployment",
4825
+ type: "tuple",
4826
+ components: [
4827
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4828
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" },
4829
+ {
4830
+ name: "addPrimaryContractAddress",
4831
+ internalType: "bool",
4832
+ type: "bool"
4833
+ },
4834
+ {
4835
+ name: "extraConstructorParams",
4836
+ internalType: "bytes",
4837
+ type: "bytes"
4838
+ }
4839
+ ]
4840
+ },
4841
+ {
4842
+ name: "postDeploymentModule",
4843
+ internalType: "address",
4844
+ type: "address"
4845
+ },
4846
+ {
4847
+ name: "postDeploymentModuleCalldata",
4848
+ internalType: "bytes",
4849
+ type: "bytes"
4850
+ }
4851
+ ],
4852
+ name: "deployContracts",
4853
+ outputs: [
4854
+ {
4855
+ name: "primaryContractAddress",
4856
+ internalType: "address",
4857
+ type: "address"
4858
+ },
4859
+ {
4860
+ name: "secondaryContractAddress",
4861
+ internalType: "address",
4862
+ type: "address"
4863
+ }
4864
+ ],
4865
+ stateMutability: "payable"
4866
+ },
4867
+ {
4868
+ type: "function",
4869
+ inputs: [
4870
+ {
4871
+ name: "primaryContractDeploymentInit",
4872
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeploymentInit",
4873
+ type: "tuple",
4874
+ components: [
4875
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
4876
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4877
+ {
4878
+ name: "implementationContract",
4879
+ internalType: "address",
4880
+ type: "address"
4881
+ },
4882
+ {
4883
+ name: "initializationCalldata",
4884
+ internalType: "bytes",
4885
+ type: "bytes"
4886
+ }
4887
+ ]
4888
+ },
4889
+ {
4890
+ name: "secondaryContractDeploymentInit",
4891
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeploymentInit",
4892
+ type: "tuple",
4893
+ components: [
4894
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
4895
+ {
4896
+ name: "implementationContract",
4897
+ internalType: "address",
4898
+ type: "address"
4899
+ },
4900
+ {
4901
+ name: "initializationCalldata",
4902
+ internalType: "bytes",
4903
+ type: "bytes"
4904
+ },
4905
+ {
4906
+ name: "addPrimaryContractAddress",
4907
+ internalType: "bool",
4908
+ type: "bool"
4909
+ },
4910
+ {
4911
+ name: "extraInitializationParams",
4912
+ internalType: "bytes",
4913
+ type: "bytes"
4914
+ }
4915
+ ]
4916
+ },
4917
+ {
4918
+ name: "postDeploymentModule",
4919
+ internalType: "address",
4920
+ type: "address"
4921
+ },
4922
+ {
4923
+ name: "postDeploymentModuleCalldata",
4924
+ internalType: "bytes",
4925
+ type: "bytes"
4926
+ }
4927
+ ],
4928
+ name: "deployERC1167Proxies",
4929
+ outputs: [
4930
+ {
4931
+ name: "primaryContractAddress",
4932
+ internalType: "address",
4933
+ type: "address"
4934
+ },
4935
+ {
4936
+ name: "secondaryContractAddress",
4937
+ internalType: "address",
4938
+ type: "address"
4939
+ }
4940
+ ],
4941
+ stateMutability: "payable"
4942
+ }
4943
+ ];
4521
4944
  const lsp26FollowerSystemAbi = [
4522
4945
  {
4523
4946
  type: "error",
@@ -11264,6 +11687,17 @@ const lsp7MintableAbi = [
11264
11687
  outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
11265
11688
  stateMutability: "nonpayable"
11266
11689
  },
11690
+ {
11691
+ type: "function",
11692
+ inputs: [
11693
+ { name: "from", internalType: "address", type: "address" },
11694
+ { name: "amount", internalType: "uint256", type: "uint256" },
11695
+ { name: "data", internalType: "bytes", type: "bytes" }
11696
+ ],
11697
+ name: "burn",
11698
+ outputs: [],
11699
+ stateMutability: "nonpayable"
11700
+ },
11267
11701
  {
11268
11702
  type: "function",
11269
11703
  inputs: [],
@@ -12515,6 +12949,17 @@ const lsp7MintableInitAbi = [
12515
12949
  outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
12516
12950
  stateMutability: "nonpayable"
12517
12951
  },
12952
+ {
12953
+ type: "function",
12954
+ inputs: [
12955
+ { name: "from", internalType: "address", type: "address" },
12956
+ { name: "amount", internalType: "uint256", type: "uint256" },
12957
+ { name: "data", internalType: "bytes", type: "bytes" }
12958
+ ],
12959
+ name: "burn",
12960
+ outputs: [],
12961
+ stateMutability: "nonpayable"
12962
+ },
12518
12963
  {
12519
12964
  type: "function",
12520
12965
  inputs: [],
@@ -24769,6 +25214,16 @@ const lsp8MintableAbi = [
24769
25214
  outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
24770
25215
  stateMutability: "nonpayable"
24771
25216
  },
25217
+ {
25218
+ type: "function",
25219
+ inputs: [
25220
+ { name: "tokenId", internalType: "bytes32", type: "bytes32" },
25221
+ { name: "data", internalType: "bytes", type: "bytes" }
25222
+ ],
25223
+ name: "burn",
25224
+ outputs: [],
25225
+ stateMutability: "nonpayable"
25226
+ },
24772
25227
  {
24773
25228
  type: "function",
24774
25229
  inputs: [],
@@ -26160,6 +26615,16 @@ const lsp8MintableInitAbi = [
26160
26615
  outputs: [{ name: "results", internalType: "bytes[]", type: "bytes[]" }],
26161
26616
  stateMutability: "nonpayable"
26162
26617
  },
26618
+ {
26619
+ type: "function",
26620
+ inputs: [
26621
+ { name: "tokenId", internalType: "bytes32", type: "bytes32" },
26622
+ { name: "data", internalType: "bytes", type: "bytes" }
26623
+ ],
26624
+ name: "burn",
26625
+ outputs: [],
26626
+ stateMutability: "nonpayable"
26627
+ },
26163
26628
  {
26164
26629
  type: "function",
26165
26630
  inputs: [],
@@ -33855,6 +34320,7 @@ exports.lsp1UniversalReceiverDelegateUpAbi = lsp1UniversalReceiverDelegateUpAbi;
33855
34320
  exports.lsp1UniversalReceiverDelegateVaultAbi = lsp1UniversalReceiverDelegateVaultAbi;
33856
34321
  exports.lsp20CallVerificationAbi = lsp20CallVerificationAbi;
33857
34322
  exports.lsp23LinkedContractsFactoryAbi = lsp23LinkedContractsFactoryAbi;
34323
+ exports.lsp23LinkedContractsFactoryV2Abi = lsp23LinkedContractsFactoryV2Abi;
33858
34324
  exports.lsp26FollowerSystemAbi = lsp26FollowerSystemAbi;
33859
34325
  exports.lsp4DigitalAssetMetadataAbi = lsp4DigitalAssetMetadataAbi;
33860
34326
  exports.lsp4DigitalAssetMetadataInitAbstractAbi = lsp4DigitalAssetMetadataInitAbstractAbi;