@lukso/lsp23-contracts 0.15.0-rc.1 → 0.15.0-rc.4
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 +6 -0
- package/artifacts/ILSP23LinkedContractsFactory.json +517 -0
- package/artifacts/UniversalProfileInitPostDeploymentModule.json +742 -0
- package/artifacts/UniversalProfilePostDeploymentModule.json +716 -0
- package/package.json +3 -3
- package/types/contracts/ILSP23LinkedContractsFactory.ts +448 -0
- package/types/contracts/modules/UniversalProfileInitPostDeploymentModule.ts +795 -0
- package/types/contracts/modules/UniversalProfilePostDeploymentModule.ts +747 -0
- package/types/index.ts +2368 -163
package/README.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
1
|
# LSP23 Linked Contracts Factory · [](https://www.npmjs.com/package/@lukso/lsp23-contracts)
|
2
2
|
|
3
3
|
Package for the LSP23 Linked Contracts Factory.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
```bash
|
8
|
+
npm install @lukso/lsp23-contracts
|
9
|
+
```
|
@@ -0,0 +1,517 @@
|
|
1
|
+
{
|
2
|
+
"_format": "hh-sol-artifact-1",
|
3
|
+
"contractName": "ILSP23LinkedContractsFactory",
|
4
|
+
"sourceName": "contracts/ILSP23LinkedContractsFactory.sol",
|
5
|
+
"abi": [
|
6
|
+
{
|
7
|
+
"anonymous": false,
|
8
|
+
"inputs": [
|
9
|
+
{
|
10
|
+
"indexed": true,
|
11
|
+
"internalType": "address",
|
12
|
+
"name": "primaryContract",
|
13
|
+
"type": "address"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"indexed": true,
|
17
|
+
"internalType": "address",
|
18
|
+
"name": "secondaryContract",
|
19
|
+
"type": "address"
|
20
|
+
},
|
21
|
+
{
|
22
|
+
"components": [
|
23
|
+
{
|
24
|
+
"internalType": "bytes32",
|
25
|
+
"name": "salt",
|
26
|
+
"type": "bytes32"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"internalType": "uint256",
|
30
|
+
"name": "fundingAmount",
|
31
|
+
"type": "uint256"
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"internalType": "bytes",
|
35
|
+
"name": "creationBytecode",
|
36
|
+
"type": "bytes"
|
37
|
+
}
|
38
|
+
],
|
39
|
+
"indexed": false,
|
40
|
+
"internalType": "struct ILSP23LinkedContractsFactory.PrimaryContractDeployment",
|
41
|
+
"name": "primaryContractDeployment",
|
42
|
+
"type": "tuple"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"components": [
|
46
|
+
{
|
47
|
+
"internalType": "uint256",
|
48
|
+
"name": "fundingAmount",
|
49
|
+
"type": "uint256"
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"internalType": "bytes",
|
53
|
+
"name": "creationBytecode",
|
54
|
+
"type": "bytes"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"internalType": "bool",
|
58
|
+
"name": "addPrimaryContractAddress",
|
59
|
+
"type": "bool"
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"internalType": "bytes",
|
63
|
+
"name": "extraConstructorParams",
|
64
|
+
"type": "bytes"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"indexed": false,
|
68
|
+
"internalType": "struct ILSP23LinkedContractsFactory.SecondaryContractDeployment",
|
69
|
+
"name": "secondaryContractDeployment",
|
70
|
+
"type": "tuple"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"indexed": false,
|
74
|
+
"internalType": "address",
|
75
|
+
"name": "postDeploymentModule",
|
76
|
+
"type": "address"
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"indexed": false,
|
80
|
+
"internalType": "bytes",
|
81
|
+
"name": "postDeploymentModuleCalldata",
|
82
|
+
"type": "bytes"
|
83
|
+
}
|
84
|
+
],
|
85
|
+
"name": "DeployedContracts",
|
86
|
+
"type": "event"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"anonymous": false,
|
90
|
+
"inputs": [
|
91
|
+
{
|
92
|
+
"indexed": true,
|
93
|
+
"internalType": "address",
|
94
|
+
"name": "primaryContract",
|
95
|
+
"type": "address"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"indexed": true,
|
99
|
+
"internalType": "address",
|
100
|
+
"name": "secondaryContract",
|
101
|
+
"type": "address"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"components": [
|
105
|
+
{
|
106
|
+
"internalType": "bytes32",
|
107
|
+
"name": "salt",
|
108
|
+
"type": "bytes32"
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"internalType": "uint256",
|
112
|
+
"name": "fundingAmount",
|
113
|
+
"type": "uint256"
|
114
|
+
},
|
115
|
+
{
|
116
|
+
"internalType": "address",
|
117
|
+
"name": "implementationContract",
|
118
|
+
"type": "address"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"internalType": "bytes",
|
122
|
+
"name": "initializationCalldata",
|
123
|
+
"type": "bytes"
|
124
|
+
}
|
125
|
+
],
|
126
|
+
"indexed": false,
|
127
|
+
"internalType": "struct ILSP23LinkedContractsFactory.PrimaryContractDeploymentInit",
|
128
|
+
"name": "primaryContractDeploymentInit",
|
129
|
+
"type": "tuple"
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"components": [
|
133
|
+
{
|
134
|
+
"internalType": "uint256",
|
135
|
+
"name": "fundingAmount",
|
136
|
+
"type": "uint256"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"internalType": "address",
|
140
|
+
"name": "implementationContract",
|
141
|
+
"type": "address"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"internalType": "bytes",
|
145
|
+
"name": "initializationCalldata",
|
146
|
+
"type": "bytes"
|
147
|
+
},
|
148
|
+
{
|
149
|
+
"internalType": "bool",
|
150
|
+
"name": "addPrimaryContractAddress",
|
151
|
+
"type": "bool"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"internalType": "bytes",
|
155
|
+
"name": "extraInitializationParams",
|
156
|
+
"type": "bytes"
|
157
|
+
}
|
158
|
+
],
|
159
|
+
"indexed": false,
|
160
|
+
"internalType": "struct ILSP23LinkedContractsFactory.SecondaryContractDeploymentInit",
|
161
|
+
"name": "secondaryContractDeploymentInit",
|
162
|
+
"type": "tuple"
|
163
|
+
},
|
164
|
+
{
|
165
|
+
"indexed": false,
|
166
|
+
"internalType": "address",
|
167
|
+
"name": "postDeploymentModule",
|
168
|
+
"type": "address"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"indexed": false,
|
172
|
+
"internalType": "bytes",
|
173
|
+
"name": "postDeploymentModuleCalldata",
|
174
|
+
"type": "bytes"
|
175
|
+
}
|
176
|
+
],
|
177
|
+
"name": "DeployedERC1167Proxies",
|
178
|
+
"type": "event"
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"inputs": [
|
182
|
+
{
|
183
|
+
"components": [
|
184
|
+
{
|
185
|
+
"internalType": "bytes32",
|
186
|
+
"name": "salt",
|
187
|
+
"type": "bytes32"
|
188
|
+
},
|
189
|
+
{
|
190
|
+
"internalType": "uint256",
|
191
|
+
"name": "fundingAmount",
|
192
|
+
"type": "uint256"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"internalType": "bytes",
|
196
|
+
"name": "creationBytecode",
|
197
|
+
"type": "bytes"
|
198
|
+
}
|
199
|
+
],
|
200
|
+
"internalType": "struct ILSP23LinkedContractsFactory.PrimaryContractDeployment",
|
201
|
+
"name": "primaryContractDeployment",
|
202
|
+
"type": "tuple"
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"components": [
|
206
|
+
{
|
207
|
+
"internalType": "uint256",
|
208
|
+
"name": "fundingAmount",
|
209
|
+
"type": "uint256"
|
210
|
+
},
|
211
|
+
{
|
212
|
+
"internalType": "bytes",
|
213
|
+
"name": "creationBytecode",
|
214
|
+
"type": "bytes"
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"internalType": "bool",
|
218
|
+
"name": "addPrimaryContractAddress",
|
219
|
+
"type": "bool"
|
220
|
+
},
|
221
|
+
{
|
222
|
+
"internalType": "bytes",
|
223
|
+
"name": "extraConstructorParams",
|
224
|
+
"type": "bytes"
|
225
|
+
}
|
226
|
+
],
|
227
|
+
"internalType": "struct ILSP23LinkedContractsFactory.SecondaryContractDeployment",
|
228
|
+
"name": "secondaryContractDeployment",
|
229
|
+
"type": "tuple"
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"internalType": "address",
|
233
|
+
"name": "postDeploymentModule",
|
234
|
+
"type": "address"
|
235
|
+
},
|
236
|
+
{
|
237
|
+
"internalType": "bytes",
|
238
|
+
"name": "postDeploymentModuleCalldata",
|
239
|
+
"type": "bytes"
|
240
|
+
}
|
241
|
+
],
|
242
|
+
"name": "computeAddresses",
|
243
|
+
"outputs": [
|
244
|
+
{
|
245
|
+
"internalType": "address",
|
246
|
+
"name": "primaryContractAddress",
|
247
|
+
"type": "address"
|
248
|
+
},
|
249
|
+
{
|
250
|
+
"internalType": "address",
|
251
|
+
"name": "secondaryContractAddress",
|
252
|
+
"type": "address"
|
253
|
+
}
|
254
|
+
],
|
255
|
+
"stateMutability": "view",
|
256
|
+
"type": "function"
|
257
|
+
},
|
258
|
+
{
|
259
|
+
"inputs": [
|
260
|
+
{
|
261
|
+
"components": [
|
262
|
+
{
|
263
|
+
"internalType": "bytes32",
|
264
|
+
"name": "salt",
|
265
|
+
"type": "bytes32"
|
266
|
+
},
|
267
|
+
{
|
268
|
+
"internalType": "uint256",
|
269
|
+
"name": "fundingAmount",
|
270
|
+
"type": "uint256"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"internalType": "address",
|
274
|
+
"name": "implementationContract",
|
275
|
+
"type": "address"
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"internalType": "bytes",
|
279
|
+
"name": "initializationCalldata",
|
280
|
+
"type": "bytes"
|
281
|
+
}
|
282
|
+
],
|
283
|
+
"internalType": "struct ILSP23LinkedContractsFactory.PrimaryContractDeploymentInit",
|
284
|
+
"name": "primaryContractDeploymentInit",
|
285
|
+
"type": "tuple"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"components": [
|
289
|
+
{
|
290
|
+
"internalType": "uint256",
|
291
|
+
"name": "fundingAmount",
|
292
|
+
"type": "uint256"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"internalType": "address",
|
296
|
+
"name": "implementationContract",
|
297
|
+
"type": "address"
|
298
|
+
},
|
299
|
+
{
|
300
|
+
"internalType": "bytes",
|
301
|
+
"name": "initializationCalldata",
|
302
|
+
"type": "bytes"
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"internalType": "bool",
|
306
|
+
"name": "addPrimaryContractAddress",
|
307
|
+
"type": "bool"
|
308
|
+
},
|
309
|
+
{
|
310
|
+
"internalType": "bytes",
|
311
|
+
"name": "extraInitializationParams",
|
312
|
+
"type": "bytes"
|
313
|
+
}
|
314
|
+
],
|
315
|
+
"internalType": "struct ILSP23LinkedContractsFactory.SecondaryContractDeploymentInit",
|
316
|
+
"name": "secondaryContractDeploymentInit",
|
317
|
+
"type": "tuple"
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"internalType": "address",
|
321
|
+
"name": "postDeploymentModule",
|
322
|
+
"type": "address"
|
323
|
+
},
|
324
|
+
{
|
325
|
+
"internalType": "bytes",
|
326
|
+
"name": "postDeploymentModuleCalldata",
|
327
|
+
"type": "bytes"
|
328
|
+
}
|
329
|
+
],
|
330
|
+
"name": "computeERC1167Addresses",
|
331
|
+
"outputs": [
|
332
|
+
{
|
333
|
+
"internalType": "address",
|
334
|
+
"name": "primaryContractAddress",
|
335
|
+
"type": "address"
|
336
|
+
},
|
337
|
+
{
|
338
|
+
"internalType": "address",
|
339
|
+
"name": "secondaryContractAddress",
|
340
|
+
"type": "address"
|
341
|
+
}
|
342
|
+
],
|
343
|
+
"stateMutability": "view",
|
344
|
+
"type": "function"
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"inputs": [
|
348
|
+
{
|
349
|
+
"components": [
|
350
|
+
{
|
351
|
+
"internalType": "bytes32",
|
352
|
+
"name": "salt",
|
353
|
+
"type": "bytes32"
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"internalType": "uint256",
|
357
|
+
"name": "fundingAmount",
|
358
|
+
"type": "uint256"
|
359
|
+
},
|
360
|
+
{
|
361
|
+
"internalType": "bytes",
|
362
|
+
"name": "creationBytecode",
|
363
|
+
"type": "bytes"
|
364
|
+
}
|
365
|
+
],
|
366
|
+
"internalType": "struct ILSP23LinkedContractsFactory.PrimaryContractDeployment",
|
367
|
+
"name": "primaryContractDeployment",
|
368
|
+
"type": "tuple"
|
369
|
+
},
|
370
|
+
{
|
371
|
+
"components": [
|
372
|
+
{
|
373
|
+
"internalType": "uint256",
|
374
|
+
"name": "fundingAmount",
|
375
|
+
"type": "uint256"
|
376
|
+
},
|
377
|
+
{
|
378
|
+
"internalType": "bytes",
|
379
|
+
"name": "creationBytecode",
|
380
|
+
"type": "bytes"
|
381
|
+
},
|
382
|
+
{
|
383
|
+
"internalType": "bool",
|
384
|
+
"name": "addPrimaryContractAddress",
|
385
|
+
"type": "bool"
|
386
|
+
},
|
387
|
+
{
|
388
|
+
"internalType": "bytes",
|
389
|
+
"name": "extraConstructorParams",
|
390
|
+
"type": "bytes"
|
391
|
+
}
|
392
|
+
],
|
393
|
+
"internalType": "struct ILSP23LinkedContractsFactory.SecondaryContractDeployment",
|
394
|
+
"name": "secondaryContractDeployment",
|
395
|
+
"type": "tuple"
|
396
|
+
},
|
397
|
+
{
|
398
|
+
"internalType": "address",
|
399
|
+
"name": "postDeploymentModule",
|
400
|
+
"type": "address"
|
401
|
+
},
|
402
|
+
{
|
403
|
+
"internalType": "bytes",
|
404
|
+
"name": "postDeploymentModuleCalldata",
|
405
|
+
"type": "bytes"
|
406
|
+
}
|
407
|
+
],
|
408
|
+
"name": "deployContracts",
|
409
|
+
"outputs": [
|
410
|
+
{
|
411
|
+
"internalType": "address",
|
412
|
+
"name": "primaryContractAddress",
|
413
|
+
"type": "address"
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"internalType": "address",
|
417
|
+
"name": "secondaryContractAddress",
|
418
|
+
"type": "address"
|
419
|
+
}
|
420
|
+
],
|
421
|
+
"stateMutability": "payable",
|
422
|
+
"type": "function"
|
423
|
+
},
|
424
|
+
{
|
425
|
+
"inputs": [
|
426
|
+
{
|
427
|
+
"components": [
|
428
|
+
{
|
429
|
+
"internalType": "bytes32",
|
430
|
+
"name": "salt",
|
431
|
+
"type": "bytes32"
|
432
|
+
},
|
433
|
+
{
|
434
|
+
"internalType": "uint256",
|
435
|
+
"name": "fundingAmount",
|
436
|
+
"type": "uint256"
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"internalType": "address",
|
440
|
+
"name": "implementationContract",
|
441
|
+
"type": "address"
|
442
|
+
},
|
443
|
+
{
|
444
|
+
"internalType": "bytes",
|
445
|
+
"name": "initializationCalldata",
|
446
|
+
"type": "bytes"
|
447
|
+
}
|
448
|
+
],
|
449
|
+
"internalType": "struct ILSP23LinkedContractsFactory.PrimaryContractDeploymentInit",
|
450
|
+
"name": "primaryContractDeploymentInit",
|
451
|
+
"type": "tuple"
|
452
|
+
},
|
453
|
+
{
|
454
|
+
"components": [
|
455
|
+
{
|
456
|
+
"internalType": "uint256",
|
457
|
+
"name": "fundingAmount",
|
458
|
+
"type": "uint256"
|
459
|
+
},
|
460
|
+
{
|
461
|
+
"internalType": "address",
|
462
|
+
"name": "implementationContract",
|
463
|
+
"type": "address"
|
464
|
+
},
|
465
|
+
{
|
466
|
+
"internalType": "bytes",
|
467
|
+
"name": "initializationCalldata",
|
468
|
+
"type": "bytes"
|
469
|
+
},
|
470
|
+
{
|
471
|
+
"internalType": "bool",
|
472
|
+
"name": "addPrimaryContractAddress",
|
473
|
+
"type": "bool"
|
474
|
+
},
|
475
|
+
{
|
476
|
+
"internalType": "bytes",
|
477
|
+
"name": "extraInitializationParams",
|
478
|
+
"type": "bytes"
|
479
|
+
}
|
480
|
+
],
|
481
|
+
"internalType": "struct ILSP23LinkedContractsFactory.SecondaryContractDeploymentInit",
|
482
|
+
"name": "secondaryContractDeploymentInit",
|
483
|
+
"type": "tuple"
|
484
|
+
},
|
485
|
+
{
|
486
|
+
"internalType": "address",
|
487
|
+
"name": "postDeploymentModule",
|
488
|
+
"type": "address"
|
489
|
+
},
|
490
|
+
{
|
491
|
+
"internalType": "bytes",
|
492
|
+
"name": "postDeploymentModuleCalldata",
|
493
|
+
"type": "bytes"
|
494
|
+
}
|
495
|
+
],
|
496
|
+
"name": "deployERC1167Proxies",
|
497
|
+
"outputs": [
|
498
|
+
{
|
499
|
+
"internalType": "address",
|
500
|
+
"name": "primaryContractAddress",
|
501
|
+
"type": "address"
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"internalType": "address",
|
505
|
+
"name": "secondaryContractAddress",
|
506
|
+
"type": "address"
|
507
|
+
}
|
508
|
+
],
|
509
|
+
"stateMutability": "payable",
|
510
|
+
"type": "function"
|
511
|
+
}
|
512
|
+
],
|
513
|
+
"bytecode": "0x",
|
514
|
+
"deployedBytecode": "0x",
|
515
|
+
"linkReferences": {},
|
516
|
+
"deployedLinkReferences": {}
|
517
|
+
}
|