@lukso/lsp23-contracts 0.16.3 → 0.17.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/dist/abi.mjs CHANGED
@@ -850,6 +850,429 @@ const lsp23LinkedContractsFactoryAbi = [
850
850
  stateMutability: "payable"
851
851
  }
852
852
  ];
853
+ const lsp23LinkedContractsFactoryV2Abi = [
854
+ { type: "error", inputs: [], name: "InvalidValueSum" },
855
+ {
856
+ type: "error",
857
+ inputs: [{ name: "errorData", internalType: "bytes", type: "bytes" }],
858
+ name: "PrimaryContractProxyInitFailureError"
859
+ },
860
+ {
861
+ type: "error",
862
+ inputs: [{ name: "errorData", internalType: "bytes", type: "bytes" }],
863
+ name: "SecondaryContractProxyInitFailureError"
864
+ },
865
+ {
866
+ type: "event",
867
+ anonymous: false,
868
+ inputs: [
869
+ {
870
+ name: "primaryContract",
871
+ internalType: "address",
872
+ type: "address",
873
+ indexed: true
874
+ },
875
+ {
876
+ name: "secondaryContract",
877
+ internalType: "address",
878
+ type: "address",
879
+ indexed: true
880
+ },
881
+ {
882
+ name: "primaryContractDeployment",
883
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeployment",
884
+ type: "tuple",
885
+ components: [
886
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
887
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
888
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" }
889
+ ],
890
+ indexed: false
891
+ },
892
+ {
893
+ name: "secondaryContractDeployment",
894
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeployment",
895
+ type: "tuple",
896
+ components: [
897
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
898
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" },
899
+ {
900
+ name: "addPrimaryContractAddress",
901
+ internalType: "bool",
902
+ type: "bool"
903
+ },
904
+ {
905
+ name: "extraConstructorParams",
906
+ internalType: "bytes",
907
+ type: "bytes"
908
+ }
909
+ ],
910
+ indexed: false
911
+ },
912
+ {
913
+ name: "postDeploymentModule",
914
+ internalType: "address",
915
+ type: "address",
916
+ indexed: false
917
+ },
918
+ {
919
+ name: "postDeploymentModuleCalldata",
920
+ internalType: "bytes",
921
+ type: "bytes",
922
+ indexed: false
923
+ }
924
+ ],
925
+ name: "DeployedContracts"
926
+ },
927
+ {
928
+ type: "event",
929
+ anonymous: false,
930
+ inputs: [
931
+ {
932
+ name: "primaryContract",
933
+ internalType: "address",
934
+ type: "address",
935
+ indexed: true
936
+ },
937
+ {
938
+ name: "secondaryContract",
939
+ internalType: "address",
940
+ type: "address",
941
+ indexed: true
942
+ },
943
+ {
944
+ name: "primaryContractDeploymentInit",
945
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeploymentInit",
946
+ type: "tuple",
947
+ components: [
948
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
949
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
950
+ {
951
+ name: "implementationContract",
952
+ internalType: "address",
953
+ type: "address"
954
+ },
955
+ {
956
+ name: "initializationCalldata",
957
+ internalType: "bytes",
958
+ type: "bytes"
959
+ }
960
+ ],
961
+ indexed: false
962
+ },
963
+ {
964
+ name: "secondaryContractDeploymentInit",
965
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeploymentInit",
966
+ type: "tuple",
967
+ components: [
968
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
969
+ {
970
+ name: "implementationContract",
971
+ internalType: "address",
972
+ type: "address"
973
+ },
974
+ {
975
+ name: "initializationCalldata",
976
+ internalType: "bytes",
977
+ type: "bytes"
978
+ },
979
+ {
980
+ name: "addPrimaryContractAddress",
981
+ internalType: "bool",
982
+ type: "bool"
983
+ },
984
+ {
985
+ name: "extraInitializationParams",
986
+ internalType: "bytes",
987
+ type: "bytes"
988
+ }
989
+ ],
990
+ indexed: false
991
+ },
992
+ {
993
+ name: "postDeploymentModule",
994
+ internalType: "address",
995
+ type: "address",
996
+ indexed: false
997
+ },
998
+ {
999
+ name: "postDeploymentModuleCalldata",
1000
+ internalType: "bytes",
1001
+ type: "bytes",
1002
+ indexed: false
1003
+ }
1004
+ ],
1005
+ name: "DeployedERC1167Proxies"
1006
+ },
1007
+ {
1008
+ type: "function",
1009
+ inputs: [
1010
+ {
1011
+ name: "primaryContractDeployment",
1012
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeployment",
1013
+ type: "tuple",
1014
+ components: [
1015
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
1016
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
1017
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" }
1018
+ ]
1019
+ },
1020
+ {
1021
+ name: "secondaryContractDeployment",
1022
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeployment",
1023
+ type: "tuple",
1024
+ components: [
1025
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
1026
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" },
1027
+ {
1028
+ name: "addPrimaryContractAddress",
1029
+ internalType: "bool",
1030
+ type: "bool"
1031
+ },
1032
+ {
1033
+ name: "extraConstructorParams",
1034
+ internalType: "bytes",
1035
+ type: "bytes"
1036
+ }
1037
+ ]
1038
+ },
1039
+ {
1040
+ name: "postDeploymentModule",
1041
+ internalType: "address",
1042
+ type: "address"
1043
+ },
1044
+ {
1045
+ name: "postDeploymentModuleCalldata",
1046
+ internalType: "bytes",
1047
+ type: "bytes"
1048
+ }
1049
+ ],
1050
+ name: "computeAddresses",
1051
+ outputs: [
1052
+ {
1053
+ name: "primaryContractAddress",
1054
+ internalType: "address",
1055
+ type: "address"
1056
+ },
1057
+ {
1058
+ name: "secondaryContractAddress",
1059
+ internalType: "address",
1060
+ type: "address"
1061
+ }
1062
+ ],
1063
+ stateMutability: "view"
1064
+ },
1065
+ {
1066
+ type: "function",
1067
+ inputs: [
1068
+ {
1069
+ name: "primaryContractDeploymentInit",
1070
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeploymentInit",
1071
+ type: "tuple",
1072
+ components: [
1073
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
1074
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
1075
+ {
1076
+ name: "implementationContract",
1077
+ internalType: "address",
1078
+ type: "address"
1079
+ },
1080
+ {
1081
+ name: "initializationCalldata",
1082
+ internalType: "bytes",
1083
+ type: "bytes"
1084
+ }
1085
+ ]
1086
+ },
1087
+ {
1088
+ name: "secondaryContractDeploymentInit",
1089
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeploymentInit",
1090
+ type: "tuple",
1091
+ components: [
1092
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
1093
+ {
1094
+ name: "implementationContract",
1095
+ internalType: "address",
1096
+ type: "address"
1097
+ },
1098
+ {
1099
+ name: "initializationCalldata",
1100
+ internalType: "bytes",
1101
+ type: "bytes"
1102
+ },
1103
+ {
1104
+ name: "addPrimaryContractAddress",
1105
+ internalType: "bool",
1106
+ type: "bool"
1107
+ },
1108
+ {
1109
+ name: "extraInitializationParams",
1110
+ internalType: "bytes",
1111
+ type: "bytes"
1112
+ }
1113
+ ]
1114
+ },
1115
+ {
1116
+ name: "postDeploymentModule",
1117
+ internalType: "address",
1118
+ type: "address"
1119
+ },
1120
+ {
1121
+ name: "postDeploymentModuleCalldata",
1122
+ internalType: "bytes",
1123
+ type: "bytes"
1124
+ }
1125
+ ],
1126
+ name: "computeERC1167Addresses",
1127
+ outputs: [
1128
+ {
1129
+ name: "primaryContractAddress",
1130
+ internalType: "address",
1131
+ type: "address"
1132
+ },
1133
+ {
1134
+ name: "secondaryContractAddress",
1135
+ internalType: "address",
1136
+ type: "address"
1137
+ }
1138
+ ],
1139
+ stateMutability: "view"
1140
+ },
1141
+ {
1142
+ type: "function",
1143
+ inputs: [
1144
+ {
1145
+ name: "primaryContractDeployment",
1146
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeployment",
1147
+ type: "tuple",
1148
+ components: [
1149
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
1150
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
1151
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" }
1152
+ ]
1153
+ },
1154
+ {
1155
+ name: "secondaryContractDeployment",
1156
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeployment",
1157
+ type: "tuple",
1158
+ components: [
1159
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
1160
+ { name: "creationBytecode", internalType: "bytes", type: "bytes" },
1161
+ {
1162
+ name: "addPrimaryContractAddress",
1163
+ internalType: "bool",
1164
+ type: "bool"
1165
+ },
1166
+ {
1167
+ name: "extraConstructorParams",
1168
+ internalType: "bytes",
1169
+ type: "bytes"
1170
+ }
1171
+ ]
1172
+ },
1173
+ {
1174
+ name: "postDeploymentModule",
1175
+ internalType: "address",
1176
+ type: "address"
1177
+ },
1178
+ {
1179
+ name: "postDeploymentModuleCalldata",
1180
+ internalType: "bytes",
1181
+ type: "bytes"
1182
+ }
1183
+ ],
1184
+ name: "deployContracts",
1185
+ outputs: [
1186
+ {
1187
+ name: "primaryContractAddress",
1188
+ internalType: "address",
1189
+ type: "address"
1190
+ },
1191
+ {
1192
+ name: "secondaryContractAddress",
1193
+ internalType: "address",
1194
+ type: "address"
1195
+ }
1196
+ ],
1197
+ stateMutability: "payable"
1198
+ },
1199
+ {
1200
+ type: "function",
1201
+ inputs: [
1202
+ {
1203
+ name: "primaryContractDeploymentInit",
1204
+ internalType: "struct ILSP23LinkedContractsFactory.PrimaryContractDeploymentInit",
1205
+ type: "tuple",
1206
+ components: [
1207
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
1208
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
1209
+ {
1210
+ name: "implementationContract",
1211
+ internalType: "address",
1212
+ type: "address"
1213
+ },
1214
+ {
1215
+ name: "initializationCalldata",
1216
+ internalType: "bytes",
1217
+ type: "bytes"
1218
+ }
1219
+ ]
1220
+ },
1221
+ {
1222
+ name: "secondaryContractDeploymentInit",
1223
+ internalType: "struct ILSP23LinkedContractsFactory.SecondaryContractDeploymentInit",
1224
+ type: "tuple",
1225
+ components: [
1226
+ { name: "fundingAmount", internalType: "uint256", type: "uint256" },
1227
+ {
1228
+ name: "implementationContract",
1229
+ internalType: "address",
1230
+ type: "address"
1231
+ },
1232
+ {
1233
+ name: "initializationCalldata",
1234
+ internalType: "bytes",
1235
+ type: "bytes"
1236
+ },
1237
+ {
1238
+ name: "addPrimaryContractAddress",
1239
+ internalType: "bool",
1240
+ type: "bool"
1241
+ },
1242
+ {
1243
+ name: "extraInitializationParams",
1244
+ internalType: "bytes",
1245
+ type: "bytes"
1246
+ }
1247
+ ]
1248
+ },
1249
+ {
1250
+ name: "postDeploymentModule",
1251
+ internalType: "address",
1252
+ type: "address"
1253
+ },
1254
+ {
1255
+ name: "postDeploymentModuleCalldata",
1256
+ internalType: "bytes",
1257
+ type: "bytes"
1258
+ }
1259
+ ],
1260
+ name: "deployERC1167Proxies",
1261
+ outputs: [
1262
+ {
1263
+ name: "primaryContractAddress",
1264
+ internalType: "address",
1265
+ type: "address"
1266
+ },
1267
+ {
1268
+ name: "secondaryContractAddress",
1269
+ internalType: "address",
1270
+ type: "address"
1271
+ }
1272
+ ],
1273
+ stateMutability: "payable"
1274
+ }
1275
+ ];
853
1276
  const universalProfileInitPostDeploymentModuleAbi = [
854
1277
  { type: "constructor", inputs: [], stateMutability: "nonpayable" },
855
1278
  { type: "error", inputs: [], name: "ERC725X_ContractDeploymentFailed" },
@@ -1724,4 +2147,4 @@ const universalProfilePostDeploymentModuleAbi = [
1724
2147
  { type: "receive", stateMutability: "payable" }
1725
2148
  ];
1726
2149
 
1727
- export { iPostDeploymentModuleAbi, ilsp23LinkedContractsFactoryAbi, lsp23LinkedContractsFactoryAbi, universalProfileInitPostDeploymentModuleAbi, universalProfilePostDeploymentModuleAbi };
2150
+ export { iPostDeploymentModuleAbi, ilsp23LinkedContractsFactoryAbi, lsp23LinkedContractsFactoryAbi, lsp23LinkedContractsFactoryV2Abi, universalProfileInitPostDeploymentModuleAbi, universalProfilePostDeploymentModuleAbi };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukso/lsp23-contracts",
3
- "version": "0.16.3",
3
+ "version": "0.17.1",
4
4
  "description": "Package for the LSP23 Linked Contracts Factory standard",
5
5
  "license": "Apache-2.0",
6
6
  "author": "",
@@ -9,6 +9,10 @@
9
9
  "url": "https://github.com/lukso-network/lsp-smart-contracts.git",
10
10
  "directory": "packages/lsp23-contracts"
11
11
  },
12
+ "homepage": "https://github.com/lukso-network/lsp-smart-contracts/tree/main/packages/lsp23-contracts#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/lukso-network/lsp-smart-contracts/issues"
15
+ },
12
16
  "type": "module",
13
17
  "keywords": [
14
18
  "LUKSO",
@@ -59,7 +63,7 @@
59
63
  "deploy": "npx hardhat ignition deploy --verify",
60
64
  "deploy:all": "npx hardhat ignition deploy ignition/modules/all.ts --verify",
61
65
  "deploy:all:standardized": "npx hardhat ignition deploy ignition/modules/standardized/all.ts --verify",
62
- "test": "hardhat test --no-compile tests/*.test.ts"
66
+ "test": "hardhat test tests/*.test.ts"
63
67
  },
64
68
  "dependencies": {
65
69
  "@erc725/smart-contracts": "^7.0.0",