@lukso/lsp-smart-contracts 0.10.3 → 0.11.0-rc.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 (40) hide show
  1. package/CONTRIBUTING.md +184 -0
  2. package/artifacts/LSP0ERC725Account.json +2 -2
  3. package/artifacts/LSP0ERC725AccountInit.json +2 -2
  4. package/artifacts/LSP6KeyManager.json +2 -2
  5. package/artifacts/LSP6KeyManagerInit.json +2 -2
  6. package/artifacts/LSP7CompatibleERC20Mintable.json +2 -2
  7. package/artifacts/LSP7CompatibleERC20MintableInit.json +2 -2
  8. package/artifacts/LSP8CompatibleERC721Mintable.json +2 -2
  9. package/artifacts/LSP8CompatibleERC721MintableInit.json +2 -2
  10. package/artifacts/LSP9Vault.json +2 -2
  11. package/artifacts/LSP9VaultInit.json +2 -2
  12. package/artifacts/LinkedContractsFactory.json +544 -0
  13. package/artifacts/UniversalProfile.json +2 -2
  14. package/artifacts/UniversalProfileInit.json +2 -2
  15. package/contracts/LSP0ERC725Account/LSP0ERC725AccountCore.sol +1 -1
  16. package/contracts/LSP20CallVerification/LSP20CallVerification.sol +6 -3
  17. package/contracts/LSP23LinkedContractsDeployment/ILinkedContractsFactory.sol +174 -0
  18. package/contracts/LSP23LinkedContractsDeployment/IPostDeploymentModule.sol +10 -0
  19. package/contracts/LSP23LinkedContractsDeployment/LSP23Errors.sol +24 -0
  20. package/contracts/LSP23LinkedContractsDeployment/LinkedContractsFactory.sol +384 -0
  21. package/contracts/LSP23LinkedContractsDeployment/modules/UniversalProfileInitPostDeploymentModule.sol +59 -0
  22. package/contracts/LSP6KeyManager/LSP6KeyManagerCore.sol +5 -5
  23. package/contracts/LSP6KeyManager/LSP6Modules/LSP6ExecuteModule.sol +4 -4
  24. package/contracts/LSP6KeyManager/LSP6Modules/LSP6SetDataModule.sol +1 -1
  25. package/contracts/LSP7DigitalAsset/extensions/LSP7Burnable.sol +5 -1
  26. package/contracts/LSP7DigitalAsset/extensions/LSP7BurnableInitAbstract.sol +5 -1
  27. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20Mintable.sol +1 -1
  28. package/contracts/LSP7DigitalAsset/presets/LSP7CompatibleERC20MintableInitAbstract.sol +1 -1
  29. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8Burnable.sol +1 -1
  30. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721.sol +23 -23
  31. package/contracts/LSP8IdentifiableDigitalAsset/extensions/LSP8CompatibleERC721InitAbstract.sol +23 -23
  32. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721Mintable.sol +1 -1
  33. package/contracts/LSP8IdentifiableDigitalAsset/presets/LSP8CompatibleERC721MintableInitAbstract.sol +1 -1
  34. package/contracts/LSP9Vault/LSP9VaultCore.sol +7 -2
  35. package/devdocs/LinkedContractsFactory.json +81 -0
  36. package/dist/constants.cjs.js +602 -0
  37. package/dist/constants.d.ts +338 -0
  38. package/dist/constants.es.js +602 -0
  39. package/package.json +2 -1
  40. package/userdocs/LinkedContractsFactory.json +29 -0
@@ -1267,6 +1267,66 @@ const ErrorSelectors = {
1267
1267
  ]
1268
1268
  }
1269
1269
  },
1270
+ LinkedContractsFactory: {
1271
+ /**
1272
+ * error InvalidValueSum()
1273
+ *
1274
+ * 0x2fd9ca91 = keccak256('InvalidValueSum()')
1275
+ */
1276
+ "0x2fd9ca91": {
1277
+ sig: "InvalidValueSum()",
1278
+ inputs: [],
1279
+ name: "InvalidValueSum",
1280
+ type: "error",
1281
+ userdoc: [
1282
+ {
1283
+ details: "Reverts when the `msg.value` sent is not equal to the sum of value used for the deployment of the contract & its owner contract."
1284
+ }
1285
+ ]
1286
+ },
1287
+ /**
1288
+ * error PrimaryContractProxyInitFailureError(
1289
+ * bytes errorData
1290
+ * )
1291
+ *
1292
+ * 0x4364b6ee = keccak256('PrimaryContractProxyInitFailureError(bytes)')
1293
+ */
1294
+ "0x4364b6ee": {
1295
+ sig: "PrimaryContractProxyInitFailureError(bytes)",
1296
+ inputs: [{ internalType: "bytes", name: "errorData", type: "bytes" }],
1297
+ name: "PrimaryContractProxyInitFailureError",
1298
+ type: "error",
1299
+ userdoc: [
1300
+ {
1301
+ details: "Reverts when the deployment & intialisation of the contract has failed.",
1302
+ params: {
1303
+ errorData: "Potentially information about why the deployment & intialisation have failed."
1304
+ }
1305
+ }
1306
+ ]
1307
+ },
1308
+ /**
1309
+ * error SecondaryContractProxyInitFailureError(
1310
+ * bytes errorData
1311
+ * )
1312
+ *
1313
+ * 0x9654a854 = keccak256('SecondaryContractProxyInitFailureError(bytes)')
1314
+ */
1315
+ "0x9654a854": {
1316
+ sig: "SecondaryContractProxyInitFailureError(bytes)",
1317
+ inputs: [{ internalType: "bytes", name: "errorData", type: "bytes" }],
1318
+ name: "SecondaryContractProxyInitFailureError",
1319
+ type: "error",
1320
+ userdoc: [
1321
+ {
1322
+ details: "Reverts when the deployment & intialisation of the secondary contract has failed.",
1323
+ params: {
1324
+ errorData: "Potentially information about why the deployment & intialisation have failed."
1325
+ }
1326
+ }
1327
+ ]
1328
+ }
1329
+ },
1270
1330
  LSP4Compatibility: {
1271
1331
  /**
1272
1332
  * error ERC725Y_DataKeysValuesEmptyArray()
@@ -10684,6 +10744,176 @@ const EventSigHashes = {
10684
10744
  }
10685
10745
  }
10686
10746
  },
10747
+ LinkedContractsFactory: {
10748
+ /**
10749
+ * event DeployedContracts(
10750
+ * address indexed primaryContract,
10751
+ * address indexed secondaryContract,
10752
+ * tuple primaryContractDeployment,
10753
+ * tuple secondaryContractDeployment,
10754
+ * address postDeploymentModule,
10755
+ * bytes postDeploymentModuleCalldata
10756
+ * )
10757
+ *
10758
+ * 0x0e20ea3d6273aab49a7dabafc15cc94971c12dd63a07185ca810e497e4e87aa6 = keccak256('DeployedContracts(address,address,(bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)')
10759
+ */
10760
+ "0x0e20ea3d6273aab49a7dabafc15cc94971c12dd63a07185ca810e497e4e87aa6": {
10761
+ sig: "DeployedContracts(address,address,(bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)",
10762
+ anonymous: false,
10763
+ inputs: [
10764
+ {
10765
+ indexed: true,
10766
+ internalType: "address",
10767
+ name: "primaryContract",
10768
+ type: "address"
10769
+ },
10770
+ {
10771
+ indexed: true,
10772
+ internalType: "address",
10773
+ name: "secondaryContract",
10774
+ type: "address"
10775
+ },
10776
+ {
10777
+ components: [
10778
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
10779
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
10780
+ { internalType: "bytes", name: "creationBytecode", type: "bytes" }
10781
+ ],
10782
+ indexed: false,
10783
+ internalType: "struct ILinkedContractsFactory.PrimaryContractDeployment",
10784
+ name: "primaryContractDeployment",
10785
+ type: "tuple"
10786
+ },
10787
+ {
10788
+ components: [
10789
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
10790
+ { internalType: "bytes", name: "creationBytecode", type: "bytes" },
10791
+ {
10792
+ internalType: "bool",
10793
+ name: "addPrimaryContractAddress",
10794
+ type: "bool"
10795
+ },
10796
+ {
10797
+ internalType: "bytes",
10798
+ name: "extraConstructorParams",
10799
+ type: "bytes"
10800
+ }
10801
+ ],
10802
+ indexed: false,
10803
+ internalType: "struct ILinkedContractsFactory.SecondaryContractDeployment",
10804
+ name: "secondaryContractDeployment",
10805
+ type: "tuple"
10806
+ },
10807
+ {
10808
+ indexed: false,
10809
+ internalType: "address",
10810
+ name: "postDeploymentModule",
10811
+ type: "address"
10812
+ },
10813
+ {
10814
+ indexed: false,
10815
+ internalType: "bytes",
10816
+ name: "postDeploymentModuleCalldata",
10817
+ type: "bytes"
10818
+ }
10819
+ ],
10820
+ name: "DeployedContracts",
10821
+ type: "event"
10822
+ },
10823
+ /**
10824
+ * event DeployedERC1167Proxies(
10825
+ * address indexed primaryContract,
10826
+ * address indexed secondaryContract,
10827
+ * tuple primaryContractDeploymentInit,
10828
+ * tuple secondaryContractDeploymentInit,
10829
+ * address postDeploymentModule,
10830
+ * bytes postDeploymentModuleCalldata
10831
+ * )
10832
+ *
10833
+ * 0xe20570ed9bda3b93eea277b4e5d975c8933fd5f85f2c824d0845ae96c55a54fe = keccak256('DeployedERC1167Proxies(address,address,(bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)')
10834
+ */
10835
+ "0xe20570ed9bda3b93eea277b4e5d975c8933fd5f85f2c824d0845ae96c55a54fe": {
10836
+ sig: "DeployedERC1167Proxies(address,address,(bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)",
10837
+ anonymous: false,
10838
+ inputs: [
10839
+ {
10840
+ indexed: true,
10841
+ internalType: "address",
10842
+ name: "primaryContract",
10843
+ type: "address"
10844
+ },
10845
+ {
10846
+ indexed: true,
10847
+ internalType: "address",
10848
+ name: "secondaryContract",
10849
+ type: "address"
10850
+ },
10851
+ {
10852
+ components: [
10853
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
10854
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
10855
+ {
10856
+ internalType: "address",
10857
+ name: "implementationContract",
10858
+ type: "address"
10859
+ },
10860
+ {
10861
+ internalType: "bytes",
10862
+ name: "initializationCalldata",
10863
+ type: "bytes"
10864
+ }
10865
+ ],
10866
+ indexed: false,
10867
+ internalType: "struct ILinkedContractsFactory.PrimaryContractDeploymentInit",
10868
+ name: "primaryContractDeploymentInit",
10869
+ type: "tuple"
10870
+ },
10871
+ {
10872
+ components: [
10873
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
10874
+ {
10875
+ internalType: "address",
10876
+ name: "implementationContract",
10877
+ type: "address"
10878
+ },
10879
+ {
10880
+ internalType: "bytes",
10881
+ name: "initializationCalldata",
10882
+ type: "bytes"
10883
+ },
10884
+ {
10885
+ internalType: "bool",
10886
+ name: "addPrimaryContractAddress",
10887
+ type: "bool"
10888
+ },
10889
+ {
10890
+ internalType: "bytes",
10891
+ name: "extraInitializationParams",
10892
+ type: "bytes"
10893
+ }
10894
+ ],
10895
+ indexed: false,
10896
+ internalType: "struct ILinkedContractsFactory.SecondaryContractDeploymentInit",
10897
+ name: "secondaryContractDeploymentInit",
10898
+ type: "tuple"
10899
+ },
10900
+ {
10901
+ indexed: false,
10902
+ internalType: "address",
10903
+ name: "postDeploymentModule",
10904
+ type: "address"
10905
+ },
10906
+ {
10907
+ indexed: false,
10908
+ internalType: "bytes",
10909
+ name: "postDeploymentModuleCalldata",
10910
+ type: "bytes"
10911
+ }
10912
+ ],
10913
+ name: "DeployedERC1167Proxies",
10914
+ type: "event"
10915
+ }
10916
+ },
10687
10917
  LSP4Compatibility: {
10688
10918
  /**
10689
10919
  * event DataChanged(
@@ -18402,6 +18632,378 @@ const FunctionSelectors = {
18402
18632
  }
18403
18633
  }
18404
18634
  },
18635
+ LinkedContractsFactory: {
18636
+ /**
18637
+ * function computeAddresses(
18638
+ * tuple primaryContractDeployment,
18639
+ * tuple secondaryContractDeployment,
18640
+ * address postDeploymentModule,
18641
+ * bytes postDeploymentModuleCalldata
18642
+ * )
18643
+ *
18644
+ * 0xdd5940f3 = keccak256('computeAddresses((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)')
18645
+ */
18646
+ "0xdd5940f3": {
18647
+ sig: "computeAddresses((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)",
18648
+ inputs: [
18649
+ {
18650
+ components: [
18651
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
18652
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
18653
+ { internalType: "bytes", name: "creationBytecode", type: "bytes" }
18654
+ ],
18655
+ internalType: "struct ILinkedContractsFactory.PrimaryContractDeployment",
18656
+ name: "primaryContractDeployment",
18657
+ type: "tuple"
18658
+ },
18659
+ {
18660
+ components: [
18661
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
18662
+ { internalType: "bytes", name: "creationBytecode", type: "bytes" },
18663
+ {
18664
+ internalType: "bool",
18665
+ name: "addPrimaryContractAddress",
18666
+ type: "bool"
18667
+ },
18668
+ {
18669
+ internalType: "bytes",
18670
+ name: "extraConstructorParams",
18671
+ type: "bytes"
18672
+ }
18673
+ ],
18674
+ internalType: "struct ILinkedContractsFactory.SecondaryContractDeployment",
18675
+ name: "secondaryContractDeployment",
18676
+ type: "tuple"
18677
+ },
18678
+ {
18679
+ internalType: "address",
18680
+ name: "postDeploymentModule",
18681
+ type: "address"
18682
+ },
18683
+ {
18684
+ internalType: "bytes",
18685
+ name: "postDeploymentModuleCalldata",
18686
+ type: "bytes"
18687
+ }
18688
+ ],
18689
+ name: "computeAddresses",
18690
+ outputs: [
18691
+ {
18692
+ internalType: "address",
18693
+ name: "primaryContractAddress",
18694
+ type: "address"
18695
+ },
18696
+ {
18697
+ internalType: "address",
18698
+ name: "secondaryContractAddress",
18699
+ type: "address"
18700
+ }
18701
+ ],
18702
+ stateMutability: "view",
18703
+ type: "function",
18704
+ devdoc: {
18705
+ details: "Computes the addresses of a primary contract and a secondary linked contract",
18706
+ params: {
18707
+ postDeploymentModule: "The module to be executed after deployment",
18708
+ postDeploymentModuleCalldata: "The data to be passed to the post deployment module",
18709
+ primaryContractDeployment: "Contains the needed parameter to deploy the primary contract. (`salt`, `fundingAmount`, `creationBytecode`)",
18710
+ secondaryContractDeployment: "Contains the needed parameter to deploy the secondary contract. (`fundingAmount`, `creationBytecode`, `addPrimaryContractAddress`, `extraConstructorParams`)"
18711
+ },
18712
+ returns: {
18713
+ primaryContractAddress: "The address of the deployed primary contract.",
18714
+ secondaryContractAddress: "The address of the deployed secondary contract."
18715
+ }
18716
+ }
18717
+ },
18718
+ /**
18719
+ * function computeERC1167Addresses(
18720
+ * tuple primaryContractDeploymentInit,
18721
+ * tuple secondaryContractDeploymentInit,
18722
+ * address postDeploymentModule,
18723
+ * bytes postDeploymentModuleCalldata
18724
+ * )
18725
+ *
18726
+ * 0x72b19d36 = keccak256('computeERC1167Addresses((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)')
18727
+ */
18728
+ "0x72b19d36": {
18729
+ sig: "computeERC1167Addresses((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)",
18730
+ inputs: [
18731
+ {
18732
+ components: [
18733
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
18734
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
18735
+ {
18736
+ internalType: "address",
18737
+ name: "implementationContract",
18738
+ type: "address"
18739
+ },
18740
+ {
18741
+ internalType: "bytes",
18742
+ name: "initializationCalldata",
18743
+ type: "bytes"
18744
+ }
18745
+ ],
18746
+ internalType: "struct ILinkedContractsFactory.PrimaryContractDeploymentInit",
18747
+ name: "primaryContractDeploymentInit",
18748
+ type: "tuple"
18749
+ },
18750
+ {
18751
+ components: [
18752
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
18753
+ {
18754
+ internalType: "address",
18755
+ name: "implementationContract",
18756
+ type: "address"
18757
+ },
18758
+ {
18759
+ internalType: "bytes",
18760
+ name: "initializationCalldata",
18761
+ type: "bytes"
18762
+ },
18763
+ {
18764
+ internalType: "bool",
18765
+ name: "addPrimaryContractAddress",
18766
+ type: "bool"
18767
+ },
18768
+ {
18769
+ internalType: "bytes",
18770
+ name: "extraInitializationParams",
18771
+ type: "bytes"
18772
+ }
18773
+ ],
18774
+ internalType: "struct ILinkedContractsFactory.SecondaryContractDeploymentInit",
18775
+ name: "secondaryContractDeploymentInit",
18776
+ type: "tuple"
18777
+ },
18778
+ {
18779
+ internalType: "address",
18780
+ name: "postDeploymentModule",
18781
+ type: "address"
18782
+ },
18783
+ {
18784
+ internalType: "bytes",
18785
+ name: "postDeploymentModuleCalldata",
18786
+ type: "bytes"
18787
+ }
18788
+ ],
18789
+ name: "computeERC1167Addresses",
18790
+ outputs: [
18791
+ {
18792
+ internalType: "address",
18793
+ name: "primaryContractAddress",
18794
+ type: "address"
18795
+ },
18796
+ {
18797
+ internalType: "address",
18798
+ name: "secondaryContractAddress",
18799
+ type: "address"
18800
+ }
18801
+ ],
18802
+ stateMutability: "view",
18803
+ type: "function",
18804
+ devdoc: {
18805
+ details: "Computes the addresses of a primary and a secondary linked contracts proxies to be created",
18806
+ params: {
18807
+ postDeploymentModule: "The module to be executed after deployment.",
18808
+ postDeploymentModuleCalldata: "The data to be passed to the post deployment module.",
18809
+ primaryContractDeploymentInit: "Contains the needed parameters to deploy a primary proxy contract. (`salt`, `fundingAmount`, `implementationContract`, `initializationCalldata`)",
18810
+ secondaryContractDeploymentInit: "Contains the needed parameters to deploy the secondary proxy contract. (`fundingAmount`, `implementationContract`, `addPrimaryContractAddress`, `initializationCalldata`, `extraInitializationParams`)"
18811
+ },
18812
+ returns: {
18813
+ primaryContractAddress: "The address of the deployed primary contract proxy",
18814
+ secondaryContractAddress: "The address of the deployed secondary contract proxy"
18815
+ }
18816
+ }
18817
+ },
18818
+ /**
18819
+ * function deployContracts(
18820
+ * tuple primaryContractDeployment,
18821
+ * tuple secondaryContractDeployment,
18822
+ * address postDeploymentModule,
18823
+ * bytes postDeploymentModuleCalldata
18824
+ * )
18825
+ *
18826
+ * 0x754b86b5 = keccak256('deployContracts((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)')
18827
+ */
18828
+ "0x754b86b5": {
18829
+ sig: "deployContracts((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)",
18830
+ inputs: [
18831
+ {
18832
+ components: [
18833
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
18834
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
18835
+ { internalType: "bytes", name: "creationBytecode", type: "bytes" }
18836
+ ],
18837
+ internalType: "struct ILinkedContractsFactory.PrimaryContractDeployment",
18838
+ name: "primaryContractDeployment",
18839
+ type: "tuple"
18840
+ },
18841
+ {
18842
+ components: [
18843
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
18844
+ { internalType: "bytes", name: "creationBytecode", type: "bytes" },
18845
+ {
18846
+ internalType: "bool",
18847
+ name: "addPrimaryContractAddress",
18848
+ type: "bool"
18849
+ },
18850
+ {
18851
+ internalType: "bytes",
18852
+ name: "extraConstructorParams",
18853
+ type: "bytes"
18854
+ }
18855
+ ],
18856
+ internalType: "struct ILinkedContractsFactory.SecondaryContractDeployment",
18857
+ name: "secondaryContractDeployment",
18858
+ type: "tuple"
18859
+ },
18860
+ {
18861
+ internalType: "address",
18862
+ name: "postDeploymentModule",
18863
+ type: "address"
18864
+ },
18865
+ {
18866
+ internalType: "bytes",
18867
+ name: "postDeploymentModuleCalldata",
18868
+ type: "bytes"
18869
+ }
18870
+ ],
18871
+ name: "deployContracts",
18872
+ outputs: [
18873
+ {
18874
+ internalType: "address",
18875
+ name: "primaryContractAddress",
18876
+ type: "address"
18877
+ },
18878
+ {
18879
+ internalType: "address",
18880
+ name: "secondaryContractAddress",
18881
+ type: "address"
18882
+ }
18883
+ ],
18884
+ stateMutability: "payable",
18885
+ type: "function",
18886
+ devdoc: {
18887
+ details: "Deploys a primary and a secondary linked contract.",
18888
+ params: {
18889
+ postDeploymentModule: "The module to be executed after deployment",
18890
+ postDeploymentModuleCalldata: "The data to be passed to the post deployment module",
18891
+ primaryContractDeployment: "Contains the needed parameter to deploy a contract. (`salt`, `fundingAmount`, `creationBytecode`)",
18892
+ secondaryContractDeployment: "Contains the needed parameter to deploy the secondary contract. (`fundingAmount`, `creationBytecode`, `addPrimaryContractAddress`, `extraConstructorParams`)"
18893
+ },
18894
+ returns: {
18895
+ primaryContractAddress: "The address of the primary contract.",
18896
+ secondaryContractAddress: "The address of the secondary contract."
18897
+ }
18898
+ },
18899
+ userdoc: {
18900
+ notice: "Contracts deployed. Contract Address: `primaryContractAddress`. Primary Contract Address: `primaryContractAddress`"
18901
+ }
18902
+ },
18903
+ /**
18904
+ * function deployERC1167Proxies(
18905
+ * tuple primaryContractDeploymentInit,
18906
+ * tuple secondaryContractDeploymentInit,
18907
+ * address postDeploymentModule,
18908
+ * bytes postDeploymentModuleCalldata
18909
+ * )
18910
+ *
18911
+ * 0x6a66a753 = keccak256('deployERC1167Proxies((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)')
18912
+ */
18913
+ "0x6a66a753": {
18914
+ sig: "deployERC1167Proxies((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)",
18915
+ inputs: [
18916
+ {
18917
+ components: [
18918
+ { internalType: "bytes32", name: "salt", type: "bytes32" },
18919
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
18920
+ {
18921
+ internalType: "address",
18922
+ name: "implementationContract",
18923
+ type: "address"
18924
+ },
18925
+ {
18926
+ internalType: "bytes",
18927
+ name: "initializationCalldata",
18928
+ type: "bytes"
18929
+ }
18930
+ ],
18931
+ internalType: "struct ILinkedContractsFactory.PrimaryContractDeploymentInit",
18932
+ name: "primaryContractDeploymentInit",
18933
+ type: "tuple"
18934
+ },
18935
+ {
18936
+ components: [
18937
+ { internalType: "uint256", name: "fundingAmount", type: "uint256" },
18938
+ {
18939
+ internalType: "address",
18940
+ name: "implementationContract",
18941
+ type: "address"
18942
+ },
18943
+ {
18944
+ internalType: "bytes",
18945
+ name: "initializationCalldata",
18946
+ type: "bytes"
18947
+ },
18948
+ {
18949
+ internalType: "bool",
18950
+ name: "addPrimaryContractAddress",
18951
+ type: "bool"
18952
+ },
18953
+ {
18954
+ internalType: "bytes",
18955
+ name: "extraInitializationParams",
18956
+ type: "bytes"
18957
+ }
18958
+ ],
18959
+ internalType: "struct ILinkedContractsFactory.SecondaryContractDeploymentInit",
18960
+ name: "secondaryContractDeploymentInit",
18961
+ type: "tuple"
18962
+ },
18963
+ {
18964
+ internalType: "address",
18965
+ name: "postDeploymentModule",
18966
+ type: "address"
18967
+ },
18968
+ {
18969
+ internalType: "bytes",
18970
+ name: "postDeploymentModuleCalldata",
18971
+ type: "bytes"
18972
+ }
18973
+ ],
18974
+ name: "deployERC1167Proxies",
18975
+ outputs: [
18976
+ {
18977
+ internalType: "address",
18978
+ name: "primaryContractAddress",
18979
+ type: "address"
18980
+ },
18981
+ {
18982
+ internalType: "address",
18983
+ name: "secondaryContractAddress",
18984
+ type: "address"
18985
+ }
18986
+ ],
18987
+ stateMutability: "payable",
18988
+ type: "function",
18989
+ devdoc: {
18990
+ details: "Deploys proxies of a primary contract and a secondary linked contract",
18991
+ params: {
18992
+ postDeploymentModule: "The module to be executed after deployment.",
18993
+ postDeploymentModuleCalldata: "The data to be passed to the post deployment module.",
18994
+ primaryContractDeploymentInit: "Contains the needed parameters to deploy a proxy contract. (`salt`, `fundingAmount`, `implementationContract`, `initializationCalldata`)",
18995
+ secondaryContractDeploymentInit: "Contains the needed parameters to deploy the secondary proxy contract. (`fundingAmount`, `implementationContract`, `addPrimaryContractAddress`, `initializationCalldata`, `extraInitializationParams`)"
18996
+ },
18997
+ returns: {
18998
+ primaryContractAddress: "The address of the deployed primary contract proxy",
18999
+ secondaryContractAddress: "The address of the deployed secondary contract proxy"
19000
+ }
19001
+ },
19002
+ userdoc: {
19003
+ notice: "Contract proxies deployed. Primary Proxy Address: `primaryContractAddress`. Secondary Contract Proxy Address: `secondaryContractAddress`"
19004
+ }
19005
+ }
19006
+ },
18405
19007
  LSP4Compatibility: {
18406
19008
  /**
18407
19009
  * function getData(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/lsp-smart-contracts",
3
- "version": "0.10.3",
3
+ "version": "0.11.0-rc.1",
4
4
  "description": "The reference implementation for universal profiles smart contracts",
5
5
  "directories": {
6
6
  "test": "test"
@@ -64,6 +64,7 @@
64
64
  "test:lsp11init": "hardhat test --no-compile tests/LSP11BasicSocialRecovery/LSP11BasicSocialRecoveryInit.test.ts",
65
65
  "test:lsp20": "hardhat test --no-compile tests/LSP20CallVerification/LSP6/LSP20WithLSP6.test.ts",
66
66
  "test:lsp20init": "hardhat test --no-compile tests/LSP20CallVerification/LSP6/LSP20WithLSP6Init.test.ts",
67
+ "test:lsp23": "hardhat test --no-compile tests/LSP23MultiChainDeployment/LSP23MultiChainDeployment.test.ts",
67
68
  "test:universalfactory": "hardhat test --no-compile tests/LSP16UniversalFactory/LSP16UniversalFactory.test.ts",
68
69
  "test:reentrancy": "hardhat test --no-compile tests/Reentrancy/Reentrancy.test.ts",
69
70
  "test:reentrancyinit": "hardhat test --no-compile tests/Reentrancy/ReentrancyInit.test.ts",
@@ -0,0 +1,29 @@
1
+ {
2
+ "errors": {
3
+ "InvalidValueSum()": [
4
+ {
5
+ "notice": "Invalid value sent."
6
+ }
7
+ ],
8
+ "PrimaryContractProxyInitFailureError(bytes)": [
9
+ {
10
+ "notice": "Failed to deploy & initialise the Primary Contract Proxy. Error: `errorData`."
11
+ }
12
+ ],
13
+ "SecondaryContractProxyInitFailureError(bytes)": [
14
+ {
15
+ "notice": "Failed to deploy & initialise the Secondary Contract Proxy. Error: `errorData`."
16
+ }
17
+ ]
18
+ },
19
+ "kind": "user",
20
+ "methods": {
21
+ "deployContracts((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)": {
22
+ "notice": "Contracts deployed. Contract Address: `primaryContractAddress`. Primary Contract Address: `primaryContractAddress`"
23
+ },
24
+ "deployERC1167Proxies((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)": {
25
+ "notice": "Contract proxies deployed. Primary Proxy Address: `primaryContractAddress`. Secondary Contract Proxy Address: `secondaryContractAddress`"
26
+ }
27
+ },
28
+ "version": 1
29
+ }