@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
@@ -1190,6 +1190,68 @@ export declare const ErrorSelectors: {
1190
1190
  }[];
1191
1191
  };
1192
1192
  };
1193
+ LinkedContractsFactory: {
1194
+ /**
1195
+ * error InvalidValueSum()
1196
+ *
1197
+ * 0x2fd9ca91 = keccak256('InvalidValueSum()')
1198
+ */
1199
+ "0x2fd9ca91": {
1200
+ sig: string;
1201
+ inputs: any[];
1202
+ name: string;
1203
+ type: string;
1204
+ userdoc: {
1205
+ details: string;
1206
+ }[];
1207
+ };
1208
+ /**
1209
+ * error PrimaryContractProxyInitFailureError(
1210
+ * bytes errorData
1211
+ * )
1212
+ *
1213
+ * 0x4364b6ee = keccak256('PrimaryContractProxyInitFailureError(bytes)')
1214
+ */
1215
+ "0x4364b6ee": {
1216
+ sig: string;
1217
+ inputs: {
1218
+ internalType: string;
1219
+ name: string;
1220
+ type: string;
1221
+ }[];
1222
+ name: string;
1223
+ type: string;
1224
+ userdoc: {
1225
+ details: string;
1226
+ params: {
1227
+ errorData: string;
1228
+ };
1229
+ }[];
1230
+ };
1231
+ /**
1232
+ * error SecondaryContractProxyInitFailureError(
1233
+ * bytes errorData
1234
+ * )
1235
+ *
1236
+ * 0x9654a854 = keccak256('SecondaryContractProxyInitFailureError(bytes)')
1237
+ */
1238
+ "0x9654a854": {
1239
+ sig: string;
1240
+ inputs: {
1241
+ internalType: string;
1242
+ name: string;
1243
+ type: string;
1244
+ }[];
1245
+ name: string;
1246
+ type: string;
1247
+ userdoc: {
1248
+ details: string;
1249
+ params: {
1250
+ errorData: string;
1251
+ };
1252
+ }[];
1253
+ };
1254
+ };
1193
1255
  LSP4Compatibility: {
1194
1256
  /**
1195
1257
  * error ERC725Y_DataKeysValuesEmptyArray()
@@ -9681,6 +9743,78 @@ export declare const EventSigHashes: {
9681
9743
  };
9682
9744
  };
9683
9745
  };
9746
+ LinkedContractsFactory: {
9747
+ /**
9748
+ * event DeployedContracts(
9749
+ * address indexed primaryContract,
9750
+ * address indexed secondaryContract,
9751
+ * tuple primaryContractDeployment,
9752
+ * tuple secondaryContractDeployment,
9753
+ * address postDeploymentModule,
9754
+ * bytes postDeploymentModuleCalldata
9755
+ * )
9756
+ *
9757
+ * 0x0e20ea3d6273aab49a7dabafc15cc94971c12dd63a07185ca810e497e4e87aa6 = keccak256('DeployedContracts(address,address,(bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)')
9758
+ */
9759
+ "0x0e20ea3d6273aab49a7dabafc15cc94971c12dd63a07185ca810e497e4e87aa6": {
9760
+ sig: string;
9761
+ anonymous: boolean;
9762
+ inputs: ({
9763
+ indexed: boolean;
9764
+ internalType: string;
9765
+ name: string;
9766
+ type: string;
9767
+ components?: undefined;
9768
+ } | {
9769
+ components: {
9770
+ internalType: string;
9771
+ name: string;
9772
+ type: string;
9773
+ }[];
9774
+ indexed: boolean;
9775
+ internalType: string;
9776
+ name: string;
9777
+ type: string;
9778
+ })[];
9779
+ name: string;
9780
+ type: string;
9781
+ };
9782
+ /**
9783
+ * event DeployedERC1167Proxies(
9784
+ * address indexed primaryContract,
9785
+ * address indexed secondaryContract,
9786
+ * tuple primaryContractDeploymentInit,
9787
+ * tuple secondaryContractDeploymentInit,
9788
+ * address postDeploymentModule,
9789
+ * bytes postDeploymentModuleCalldata
9790
+ * )
9791
+ *
9792
+ * 0xe20570ed9bda3b93eea277b4e5d975c8933fd5f85f2c824d0845ae96c55a54fe = keccak256('DeployedERC1167Proxies(address,address,(bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)')
9793
+ */
9794
+ "0xe20570ed9bda3b93eea277b4e5d975c8933fd5f85f2c824d0845ae96c55a54fe": {
9795
+ sig: string;
9796
+ anonymous: boolean;
9797
+ inputs: ({
9798
+ indexed: boolean;
9799
+ internalType: string;
9800
+ name: string;
9801
+ type: string;
9802
+ components?: undefined;
9803
+ } | {
9804
+ components: {
9805
+ internalType: string;
9806
+ name: string;
9807
+ type: string;
9808
+ }[];
9809
+ indexed: boolean;
9810
+ internalType: string;
9811
+ name: string;
9812
+ type: string;
9813
+ })[];
9814
+ name: string;
9815
+ type: string;
9816
+ };
9817
+ };
9684
9818
  LSP4Compatibility: {
9685
9819
  /**
9686
9820
  * event DataChanged(
@@ -15840,6 +15974,210 @@ export declare const FunctionSelectors: {
15840
15974
  };
15841
15975
  };
15842
15976
  };
15977
+ LinkedContractsFactory: {
15978
+ /**
15979
+ * function computeAddresses(
15980
+ * tuple primaryContractDeployment,
15981
+ * tuple secondaryContractDeployment,
15982
+ * address postDeploymentModule,
15983
+ * bytes postDeploymentModuleCalldata
15984
+ * )
15985
+ *
15986
+ * 0xdd5940f3 = keccak256('computeAddresses((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)')
15987
+ */
15988
+ "0xdd5940f3": {
15989
+ sig: string;
15990
+ inputs: ({
15991
+ components: {
15992
+ internalType: string;
15993
+ name: string;
15994
+ type: string;
15995
+ }[];
15996
+ internalType: string;
15997
+ name: string;
15998
+ type: string;
15999
+ } | {
16000
+ internalType: string;
16001
+ name: string;
16002
+ type: string;
16003
+ components?: undefined;
16004
+ })[];
16005
+ name: string;
16006
+ outputs: {
16007
+ internalType: string;
16008
+ name: string;
16009
+ type: string;
16010
+ }[];
16011
+ stateMutability: string;
16012
+ type: string;
16013
+ devdoc: {
16014
+ details: string;
16015
+ params: {
16016
+ postDeploymentModule: string;
16017
+ postDeploymentModuleCalldata: string;
16018
+ primaryContractDeployment: string;
16019
+ secondaryContractDeployment: string;
16020
+ };
16021
+ returns: {
16022
+ primaryContractAddress: string;
16023
+ secondaryContractAddress: string;
16024
+ };
16025
+ };
16026
+ };
16027
+ /**
16028
+ * function computeERC1167Addresses(
16029
+ * tuple primaryContractDeploymentInit,
16030
+ * tuple secondaryContractDeploymentInit,
16031
+ * address postDeploymentModule,
16032
+ * bytes postDeploymentModuleCalldata
16033
+ * )
16034
+ *
16035
+ * 0x72b19d36 = keccak256('computeERC1167Addresses((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)')
16036
+ */
16037
+ "0x72b19d36": {
16038
+ sig: string;
16039
+ inputs: ({
16040
+ components: {
16041
+ internalType: string;
16042
+ name: string;
16043
+ type: string;
16044
+ }[];
16045
+ internalType: string;
16046
+ name: string;
16047
+ type: string;
16048
+ } | {
16049
+ internalType: string;
16050
+ name: string;
16051
+ type: string;
16052
+ components?: undefined;
16053
+ })[];
16054
+ name: string;
16055
+ outputs: {
16056
+ internalType: string;
16057
+ name: string;
16058
+ type: string;
16059
+ }[];
16060
+ stateMutability: string;
16061
+ type: string;
16062
+ devdoc: {
16063
+ details: string;
16064
+ params: {
16065
+ postDeploymentModule: string;
16066
+ postDeploymentModuleCalldata: string;
16067
+ primaryContractDeploymentInit: string;
16068
+ secondaryContractDeploymentInit: string;
16069
+ };
16070
+ returns: {
16071
+ primaryContractAddress: string;
16072
+ secondaryContractAddress: string;
16073
+ };
16074
+ };
16075
+ };
16076
+ /**
16077
+ * function deployContracts(
16078
+ * tuple primaryContractDeployment,
16079
+ * tuple secondaryContractDeployment,
16080
+ * address postDeploymentModule,
16081
+ * bytes postDeploymentModuleCalldata
16082
+ * )
16083
+ *
16084
+ * 0x754b86b5 = keccak256('deployContracts((bytes32,uint256,bytes),(uint256,bytes,bool,bytes),address,bytes)')
16085
+ */
16086
+ "0x754b86b5": {
16087
+ sig: string;
16088
+ inputs: ({
16089
+ components: {
16090
+ internalType: string;
16091
+ name: string;
16092
+ type: string;
16093
+ }[];
16094
+ internalType: string;
16095
+ name: string;
16096
+ type: string;
16097
+ } | {
16098
+ internalType: string;
16099
+ name: string;
16100
+ type: string;
16101
+ components?: undefined;
16102
+ })[];
16103
+ name: string;
16104
+ outputs: {
16105
+ internalType: string;
16106
+ name: string;
16107
+ type: string;
16108
+ }[];
16109
+ stateMutability: string;
16110
+ type: string;
16111
+ devdoc: {
16112
+ details: string;
16113
+ params: {
16114
+ postDeploymentModule: string;
16115
+ postDeploymentModuleCalldata: string;
16116
+ primaryContractDeployment: string;
16117
+ secondaryContractDeployment: string;
16118
+ };
16119
+ returns: {
16120
+ primaryContractAddress: string;
16121
+ secondaryContractAddress: string;
16122
+ };
16123
+ };
16124
+ userdoc: {
16125
+ notice: string;
16126
+ };
16127
+ };
16128
+ /**
16129
+ * function deployERC1167Proxies(
16130
+ * tuple primaryContractDeploymentInit,
16131
+ * tuple secondaryContractDeploymentInit,
16132
+ * address postDeploymentModule,
16133
+ * bytes postDeploymentModuleCalldata
16134
+ * )
16135
+ *
16136
+ * 0x6a66a753 = keccak256('deployERC1167Proxies((bytes32,uint256,address,bytes),(uint256,address,bytes,bool,bytes),address,bytes)')
16137
+ */
16138
+ "0x6a66a753": {
16139
+ sig: string;
16140
+ inputs: ({
16141
+ components: {
16142
+ internalType: string;
16143
+ name: string;
16144
+ type: string;
16145
+ }[];
16146
+ internalType: string;
16147
+ name: string;
16148
+ type: string;
16149
+ } | {
16150
+ internalType: string;
16151
+ name: string;
16152
+ type: string;
16153
+ components?: undefined;
16154
+ })[];
16155
+ name: string;
16156
+ outputs: {
16157
+ internalType: string;
16158
+ name: string;
16159
+ type: string;
16160
+ }[];
16161
+ stateMutability: string;
16162
+ type: string;
16163
+ devdoc: {
16164
+ details: string;
16165
+ params: {
16166
+ postDeploymentModule: string;
16167
+ postDeploymentModuleCalldata: string;
16168
+ primaryContractDeploymentInit: string;
16169
+ secondaryContractDeploymentInit: string;
16170
+ };
16171
+ returns: {
16172
+ primaryContractAddress: string;
16173
+ secondaryContractAddress: string;
16174
+ };
16175
+ };
16176
+ userdoc: {
16177
+ notice: string;
16178
+ };
16179
+ };
16180
+ };
15843
16181
  LSP4Compatibility: {
15844
16182
  /**
15845
16183
  * function getData(