@bannynet/core-v6 0.0.32 → 0.0.34
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/package.json
CHANGED
package/script/Add.Denver.s.sol
CHANGED
|
@@ -24,7 +24,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
24
24
|
address reserveBeneficiary;
|
|
25
25
|
|
|
26
26
|
function configureSphinx() public override {
|
|
27
|
-
//
|
|
27
|
+
// Safe owners and threshold are resolved by the Sphinx project config.
|
|
28
28
|
sphinxConfig.projectName = "banny-core-v6";
|
|
29
29
|
sphinxConfig.mainnets = ["ethereum", "optimism", "base", "arbitrum"];
|
|
30
30
|
sphinxConfig.testnets = ["ethereum_sepolia", "optimism_sepolia", "base_sepolia", "arbitrum_sepolia"];
|
|
@@ -39,10 +39,10 @@ contract Drop1Script is Script, Sphinx {
|
|
|
39
39
|
);
|
|
40
40
|
|
|
41
41
|
// Get the deployment addresses for the 721 hook contracts for this chain.
|
|
42
|
-
bannyverse = BannyverseDeploymentLib.getDeployment(
|
|
43
|
-
vm.envOr("BANNYVERSE_CORE_DEPLOYMENT_PATH", string("deployments/")),
|
|
44
|
-
vm.envOr("BANNYVERSE_REVNET_ID", uint256(4))
|
|
45
|
-
);
|
|
42
|
+
bannyverse = BannyverseDeploymentLib.getDeployment({
|
|
43
|
+
path: vm.envOr("BANNYVERSE_CORE_DEPLOYMENT_PATH", string("deployments/")),
|
|
44
|
+
revnetId: vm.envOr("BANNYVERSE_REVNET_ID", uint256(4))
|
|
45
|
+
});
|
|
46
46
|
|
|
47
47
|
// Get the hook address by using the deployer.
|
|
48
48
|
hook = JB721TiersHook(address(revnet.owner.tiered721HookOf(bannyverse.revnetId)));
|
|
@@ -68,7 +68,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
68
68
|
category: 1,
|
|
69
69
|
discountPercent: 0,
|
|
70
70
|
flags: JB721TierConfigFlags({
|
|
71
|
-
allowOwnerMint:
|
|
71
|
+
allowOwnerMint: true,
|
|
72
72
|
useReserveBeneficiaryAsDefault: false,
|
|
73
73
|
transfersPausable: false,
|
|
74
74
|
useVotingUnits: false,
|
package/script/Deploy.s.sol
CHANGED
|
@@ -232,7 +232,7 @@ contract DeployScript is Script, Sphinx {
|
|
|
232
232
|
category: BANNY_BODY_CATEGORY,
|
|
233
233
|
discountPercent: 0,
|
|
234
234
|
flags: JB721TierConfigFlags({
|
|
235
|
-
allowOwnerMint:
|
|
235
|
+
allowOwnerMint: true,
|
|
236
236
|
useReserveBeneficiaryAsDefault: false,
|
|
237
237
|
transfersPausable: false,
|
|
238
238
|
useVotingUnits: false,
|
|
@@ -253,7 +253,7 @@ contract DeployScript is Script, Sphinx {
|
|
|
253
253
|
category: BANNY_BODY_CATEGORY,
|
|
254
254
|
discountPercent: 0,
|
|
255
255
|
flags: JB721TierConfigFlags({
|
|
256
|
-
allowOwnerMint:
|
|
256
|
+
allowOwnerMint: true,
|
|
257
257
|
useReserveBeneficiaryAsDefault: false,
|
|
258
258
|
transfersPausable: false,
|
|
259
259
|
useVotingUnits: false,
|
|
@@ -274,7 +274,7 @@ contract DeployScript is Script, Sphinx {
|
|
|
274
274
|
category: BANNY_BODY_CATEGORY,
|
|
275
275
|
discountPercent: 0,
|
|
276
276
|
flags: JB721TierConfigFlags({
|
|
277
|
-
allowOwnerMint:
|
|
277
|
+
allowOwnerMint: true,
|
|
278
278
|
useReserveBeneficiaryAsDefault: false,
|
|
279
279
|
transfersPausable: false,
|
|
280
280
|
useVotingUnits: false,
|
|
@@ -295,7 +295,7 @@ contract DeployScript is Script, Sphinx {
|
|
|
295
295
|
category: BANNY_BODY_CATEGORY,
|
|
296
296
|
discountPercent: 0,
|
|
297
297
|
flags: JB721TierConfigFlags({
|
|
298
|
-
allowOwnerMint:
|
|
298
|
+
allowOwnerMint: true,
|
|
299
299
|
useReserveBeneficiaryAsDefault: false,
|
|
300
300
|
transfersPausable: false,
|
|
301
301
|
useVotingUnits: false,
|
|
@@ -408,11 +408,11 @@ contract DeployScript is Script, Sphinx {
|
|
|
408
408
|
// Deploy it if it has not been deployed yet.
|
|
409
409
|
resolver = !_resolverIsDeployed
|
|
410
410
|
? new Banny721TokenUriResolver{salt: RESOLVER_SALT}({
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
411
|
+
bannyBodySvg: bannyBodySvg,
|
|
412
|
+
defaultNecklaceSvg: defaultNecklaceSvg,
|
|
413
|
+
defaultMouthSvg: defaultMouthSvg,
|
|
414
|
+
defaultStandardEyesSvg: defaultStandardEyesSvg,
|
|
415
|
+
defaultAlienEyesSvg: defaultAlienEyesSvg,
|
|
416
416
|
owner: operator,
|
|
417
417
|
trustedForwarder: trustedForwarder
|
|
418
418
|
})
|
package/script/Drop1.s.sol
CHANGED
|
@@ -24,7 +24,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
24
24
|
address reserveBeneficiary;
|
|
25
25
|
|
|
26
26
|
function configureSphinx() public override {
|
|
27
|
-
//
|
|
27
|
+
// Safe owners and threshold are resolved by the Sphinx project config.
|
|
28
28
|
sphinxConfig.projectName = "banny-core-v6";
|
|
29
29
|
sphinxConfig.mainnets = ["ethereum", "optimism", "base", "arbitrum"];
|
|
30
30
|
sphinxConfig.testnets = ["ethereum_sepolia", "optimism_sepolia", "base_sepolia", "arbitrum_sepolia"];
|
|
@@ -39,10 +39,10 @@ contract Drop1Script is Script, Sphinx {
|
|
|
39
39
|
);
|
|
40
40
|
|
|
41
41
|
// Get the deployment addresses for the 721 hook contracts for this chain.
|
|
42
|
-
bannyverse = BannyverseDeploymentLib.getDeployment(
|
|
43
|
-
vm.envOr("BANNYVERSE_CORE_DEPLOYMENT_PATH", string("deployments/")),
|
|
44
|
-
vm.envOr("BANNYVERSE_REVNET_ID", uint256(4))
|
|
45
|
-
);
|
|
42
|
+
bannyverse = BannyverseDeploymentLib.getDeployment({
|
|
43
|
+
path: vm.envOr("BANNYVERSE_CORE_DEPLOYMENT_PATH", string("deployments/")),
|
|
44
|
+
revnetId: vm.envOr("BANNYVERSE_REVNET_ID", uint256(4))
|
|
45
|
+
});
|
|
46
46
|
|
|
47
47
|
// Get the hook address by using the deployer.
|
|
48
48
|
hook = JB721TiersHook(address(revnet.owner.tiered721HookOf(bannyverse.revnetId)));
|
|
@@ -69,7 +69,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
69
69
|
category: 1,
|
|
70
70
|
discountPercent: 0,
|
|
71
71
|
flags: JB721TierConfigFlags({
|
|
72
|
-
allowOwnerMint:
|
|
72
|
+
allowOwnerMint: true,
|
|
73
73
|
useReserveBeneficiaryAsDefault: false,
|
|
74
74
|
transfersPausable: false,
|
|
75
75
|
useVotingUnits: false,
|
|
@@ -93,7 +93,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
93
93
|
category: 1,
|
|
94
94
|
discountPercent: 0,
|
|
95
95
|
flags: JB721TierConfigFlags({
|
|
96
|
-
allowOwnerMint:
|
|
96
|
+
allowOwnerMint: true,
|
|
97
97
|
useReserveBeneficiaryAsDefault: false,
|
|
98
98
|
transfersPausable: false,
|
|
99
99
|
useVotingUnits: false,
|
|
@@ -117,7 +117,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
117
117
|
category: 2,
|
|
118
118
|
discountPercent: 0,
|
|
119
119
|
flags: JB721TierConfigFlags({
|
|
120
|
-
allowOwnerMint:
|
|
120
|
+
allowOwnerMint: true,
|
|
121
121
|
useReserveBeneficiaryAsDefault: false,
|
|
122
122
|
transfersPausable: false,
|
|
123
123
|
useVotingUnits: false,
|
|
@@ -141,7 +141,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
141
141
|
category: 2,
|
|
142
142
|
discountPercent: 0,
|
|
143
143
|
flags: JB721TierConfigFlags({
|
|
144
|
-
allowOwnerMint:
|
|
144
|
+
allowOwnerMint: true,
|
|
145
145
|
useReserveBeneficiaryAsDefault: false,
|
|
146
146
|
transfersPausable: false,
|
|
147
147
|
useVotingUnits: false,
|
|
@@ -165,7 +165,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
165
165
|
category: 3,
|
|
166
166
|
discountPercent: 0,
|
|
167
167
|
flags: JB721TierConfigFlags({
|
|
168
|
-
allowOwnerMint:
|
|
168
|
+
allowOwnerMint: true,
|
|
169
169
|
useReserveBeneficiaryAsDefault: false,
|
|
170
170
|
transfersPausable: false,
|
|
171
171
|
useVotingUnits: false,
|
|
@@ -189,7 +189,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
189
189
|
category: 4,
|
|
190
190
|
discountPercent: 0,
|
|
191
191
|
flags: JB721TierConfigFlags({
|
|
192
|
-
allowOwnerMint:
|
|
192
|
+
allowOwnerMint: true,
|
|
193
193
|
useReserveBeneficiaryAsDefault: false,
|
|
194
194
|
transfersPausable: false,
|
|
195
195
|
useVotingUnits: false,
|
|
@@ -213,7 +213,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
213
213
|
category: 6,
|
|
214
214
|
discountPercent: 0,
|
|
215
215
|
flags: JB721TierConfigFlags({
|
|
216
|
-
allowOwnerMint:
|
|
216
|
+
allowOwnerMint: true,
|
|
217
217
|
useReserveBeneficiaryAsDefault: false,
|
|
218
218
|
transfersPausable: false,
|
|
219
219
|
useVotingUnits: false,
|
|
@@ -237,7 +237,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
237
237
|
category: 6,
|
|
238
238
|
discountPercent: 0,
|
|
239
239
|
flags: JB721TierConfigFlags({
|
|
240
|
-
allowOwnerMint:
|
|
240
|
+
allowOwnerMint: true,
|
|
241
241
|
useReserveBeneficiaryAsDefault: true,
|
|
242
242
|
transfersPausable: false,
|
|
243
243
|
useVotingUnits: false,
|
|
@@ -261,7 +261,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
261
261
|
category: 6,
|
|
262
262
|
discountPercent: 0,
|
|
263
263
|
flags: JB721TierConfigFlags({
|
|
264
|
-
allowOwnerMint:
|
|
264
|
+
allowOwnerMint: true,
|
|
265
265
|
useReserveBeneficiaryAsDefault: false,
|
|
266
266
|
transfersPausable: false,
|
|
267
267
|
useVotingUnits: false,
|
|
@@ -285,7 +285,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
285
285
|
category: 6,
|
|
286
286
|
discountPercent: 0,
|
|
287
287
|
flags: JB721TierConfigFlags({
|
|
288
|
-
allowOwnerMint:
|
|
288
|
+
allowOwnerMint: true,
|
|
289
289
|
useReserveBeneficiaryAsDefault: false,
|
|
290
290
|
transfersPausable: false,
|
|
291
291
|
useVotingUnits: false,
|
|
@@ -309,7 +309,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
309
309
|
category: 6,
|
|
310
310
|
discountPercent: 0,
|
|
311
311
|
flags: JB721TierConfigFlags({
|
|
312
|
-
allowOwnerMint:
|
|
312
|
+
allowOwnerMint: true,
|
|
313
313
|
useReserveBeneficiaryAsDefault: false,
|
|
314
314
|
transfersPausable: false,
|
|
315
315
|
useVotingUnits: false,
|
|
@@ -333,7 +333,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
333
333
|
category: 7,
|
|
334
334
|
discountPercent: 0,
|
|
335
335
|
flags: JB721TierConfigFlags({
|
|
336
|
-
allowOwnerMint:
|
|
336
|
+
allowOwnerMint: true,
|
|
337
337
|
useReserveBeneficiaryAsDefault: false,
|
|
338
338
|
transfersPausable: false,
|
|
339
339
|
useVotingUnits: false,
|
|
@@ -357,7 +357,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
357
357
|
category: 8,
|
|
358
358
|
discountPercent: 0,
|
|
359
359
|
flags: JB721TierConfigFlags({
|
|
360
|
-
allowOwnerMint:
|
|
360
|
+
allowOwnerMint: true,
|
|
361
361
|
useReserveBeneficiaryAsDefault: false,
|
|
362
362
|
transfersPausable: false,
|
|
363
363
|
useVotingUnits: false,
|
|
@@ -381,7 +381,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
381
381
|
category: 8,
|
|
382
382
|
discountPercent: 0,
|
|
383
383
|
flags: JB721TierConfigFlags({
|
|
384
|
-
allowOwnerMint:
|
|
384
|
+
allowOwnerMint: true,
|
|
385
385
|
useReserveBeneficiaryAsDefault: false,
|
|
386
386
|
transfersPausable: false,
|
|
387
387
|
useVotingUnits: false,
|
|
@@ -405,7 +405,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
405
405
|
category: 8,
|
|
406
406
|
discountPercent: 0,
|
|
407
407
|
flags: JB721TierConfigFlags({
|
|
408
|
-
allowOwnerMint:
|
|
408
|
+
allowOwnerMint: true,
|
|
409
409
|
useReserveBeneficiaryAsDefault: false,
|
|
410
410
|
transfersPausable: false,
|
|
411
411
|
useVotingUnits: false,
|
|
@@ -429,7 +429,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
429
429
|
category: 9,
|
|
430
430
|
discountPercent: 0,
|
|
431
431
|
flags: JB721TierConfigFlags({
|
|
432
|
-
allowOwnerMint:
|
|
432
|
+
allowOwnerMint: true,
|
|
433
433
|
useReserveBeneficiaryAsDefault: false,
|
|
434
434
|
transfersPausable: false,
|
|
435
435
|
useVotingUnits: false,
|
|
@@ -453,7 +453,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
453
453
|
category: 9,
|
|
454
454
|
discountPercent: 0,
|
|
455
455
|
flags: JB721TierConfigFlags({
|
|
456
|
-
allowOwnerMint:
|
|
456
|
+
allowOwnerMint: true,
|
|
457
457
|
useReserveBeneficiaryAsDefault: false,
|
|
458
458
|
transfersPausable: false,
|
|
459
459
|
useVotingUnits: false,
|
|
@@ -477,7 +477,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
477
477
|
category: 9,
|
|
478
478
|
discountPercent: 0,
|
|
479
479
|
flags: JB721TierConfigFlags({
|
|
480
|
-
allowOwnerMint:
|
|
480
|
+
allowOwnerMint: true,
|
|
481
481
|
useReserveBeneficiaryAsDefault: false,
|
|
482
482
|
transfersPausable: false,
|
|
483
483
|
useVotingUnits: false,
|
|
@@ -501,7 +501,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
501
501
|
category: 9,
|
|
502
502
|
discountPercent: 0,
|
|
503
503
|
flags: JB721TierConfigFlags({
|
|
504
|
-
allowOwnerMint:
|
|
504
|
+
allowOwnerMint: true,
|
|
505
505
|
useReserveBeneficiaryAsDefault: false,
|
|
506
506
|
transfersPausable: false,
|
|
507
507
|
useVotingUnits: false,
|
|
@@ -525,7 +525,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
525
525
|
category: 10,
|
|
526
526
|
discountPercent: 0,
|
|
527
527
|
flags: JB721TierConfigFlags({
|
|
528
|
-
allowOwnerMint:
|
|
528
|
+
allowOwnerMint: true,
|
|
529
529
|
useReserveBeneficiaryAsDefault: false,
|
|
530
530
|
transfersPausable: false,
|
|
531
531
|
useVotingUnits: false,
|
|
@@ -549,7 +549,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
549
549
|
category: 11,
|
|
550
550
|
discountPercent: 0,
|
|
551
551
|
flags: JB721TierConfigFlags({
|
|
552
|
-
allowOwnerMint:
|
|
552
|
+
allowOwnerMint: true,
|
|
553
553
|
useReserveBeneficiaryAsDefault: false,
|
|
554
554
|
transfersPausable: false,
|
|
555
555
|
useVotingUnits: false,
|
|
@@ -573,7 +573,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
573
573
|
category: 11,
|
|
574
574
|
discountPercent: 0,
|
|
575
575
|
flags: JB721TierConfigFlags({
|
|
576
|
-
allowOwnerMint:
|
|
576
|
+
allowOwnerMint: true,
|
|
577
577
|
useReserveBeneficiaryAsDefault: false,
|
|
578
578
|
transfersPausable: false,
|
|
579
579
|
useVotingUnits: false,
|
|
@@ -597,7 +597,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
597
597
|
category: 11,
|
|
598
598
|
discountPercent: 0,
|
|
599
599
|
flags: JB721TierConfigFlags({
|
|
600
|
-
allowOwnerMint:
|
|
600
|
+
allowOwnerMint: true,
|
|
601
601
|
useReserveBeneficiaryAsDefault: false,
|
|
602
602
|
transfersPausable: false,
|
|
603
603
|
useVotingUnits: false,
|
|
@@ -621,7 +621,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
621
621
|
category: 11,
|
|
622
622
|
discountPercent: 0,
|
|
623
623
|
flags: JB721TierConfigFlags({
|
|
624
|
-
allowOwnerMint:
|
|
624
|
+
allowOwnerMint: true,
|
|
625
625
|
useReserveBeneficiaryAsDefault: false,
|
|
626
626
|
transfersPausable: false,
|
|
627
627
|
useVotingUnits: false,
|
|
@@ -645,7 +645,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
645
645
|
category: 11,
|
|
646
646
|
discountPercent: 0,
|
|
647
647
|
flags: JB721TierConfigFlags({
|
|
648
|
-
allowOwnerMint:
|
|
648
|
+
allowOwnerMint: true,
|
|
649
649
|
useReserveBeneficiaryAsDefault: false,
|
|
650
650
|
transfersPausable: false,
|
|
651
651
|
useVotingUnits: false,
|
|
@@ -669,7 +669,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
669
669
|
category: 11,
|
|
670
670
|
discountPercent: 0,
|
|
671
671
|
flags: JB721TierConfigFlags({
|
|
672
|
-
allowOwnerMint:
|
|
672
|
+
allowOwnerMint: true,
|
|
673
673
|
useReserveBeneficiaryAsDefault: false,
|
|
674
674
|
transfersPausable: false,
|
|
675
675
|
useVotingUnits: false,
|
|
@@ -693,7 +693,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
693
693
|
category: 11,
|
|
694
694
|
discountPercent: 0,
|
|
695
695
|
flags: JB721TierConfigFlags({
|
|
696
|
-
allowOwnerMint:
|
|
696
|
+
allowOwnerMint: true,
|
|
697
697
|
useReserveBeneficiaryAsDefault: false,
|
|
698
698
|
transfersPausable: false,
|
|
699
699
|
useVotingUnits: false,
|
|
@@ -717,7 +717,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
717
717
|
category: 11,
|
|
718
718
|
discountPercent: 0,
|
|
719
719
|
flags: JB721TierConfigFlags({
|
|
720
|
-
allowOwnerMint:
|
|
720
|
+
allowOwnerMint: true,
|
|
721
721
|
useReserveBeneficiaryAsDefault: false,
|
|
722
722
|
transfersPausable: false,
|
|
723
723
|
useVotingUnits: false,
|
|
@@ -741,7 +741,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
741
741
|
category: 12,
|
|
742
742
|
discountPercent: 0,
|
|
743
743
|
flags: JB721TierConfigFlags({
|
|
744
|
-
allowOwnerMint:
|
|
744
|
+
allowOwnerMint: true,
|
|
745
745
|
useReserveBeneficiaryAsDefault: false,
|
|
746
746
|
transfersPausable: false,
|
|
747
747
|
useVotingUnits: false,
|
|
@@ -765,7 +765,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
765
765
|
category: 12,
|
|
766
766
|
discountPercent: 0,
|
|
767
767
|
flags: JB721TierConfigFlags({
|
|
768
|
-
allowOwnerMint:
|
|
768
|
+
allowOwnerMint: true,
|
|
769
769
|
useReserveBeneficiaryAsDefault: false,
|
|
770
770
|
transfersPausable: false,
|
|
771
771
|
useVotingUnits: false,
|
|
@@ -789,7 +789,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
789
789
|
category: 12,
|
|
790
790
|
discountPercent: 0,
|
|
791
791
|
flags: JB721TierConfigFlags({
|
|
792
|
-
allowOwnerMint:
|
|
792
|
+
allowOwnerMint: true,
|
|
793
793
|
useReserveBeneficiaryAsDefault: false,
|
|
794
794
|
transfersPausable: false,
|
|
795
795
|
useVotingUnits: false,
|
|
@@ -813,7 +813,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
813
813
|
category: 12,
|
|
814
814
|
discountPercent: 0,
|
|
815
815
|
flags: JB721TierConfigFlags({
|
|
816
|
-
allowOwnerMint:
|
|
816
|
+
allowOwnerMint: true,
|
|
817
817
|
useReserveBeneficiaryAsDefault: false,
|
|
818
818
|
transfersPausable: false,
|
|
819
819
|
useVotingUnits: false,
|
|
@@ -837,7 +837,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
837
837
|
category: 12,
|
|
838
838
|
discountPercent: 0,
|
|
839
839
|
flags: JB721TierConfigFlags({
|
|
840
|
-
allowOwnerMint:
|
|
840
|
+
allowOwnerMint: true,
|
|
841
841
|
useReserveBeneficiaryAsDefault: false,
|
|
842
842
|
transfersPausable: false,
|
|
843
843
|
useVotingUnits: false,
|
|
@@ -861,7 +861,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
861
861
|
category: 12,
|
|
862
862
|
discountPercent: 0,
|
|
863
863
|
flags: JB721TierConfigFlags({
|
|
864
|
-
allowOwnerMint:
|
|
864
|
+
allowOwnerMint: true,
|
|
865
865
|
useReserveBeneficiaryAsDefault: false,
|
|
866
866
|
transfersPausable: false,
|
|
867
867
|
useVotingUnits: false,
|
|
@@ -885,7 +885,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
885
885
|
category: 12,
|
|
886
886
|
discountPercent: 0,
|
|
887
887
|
flags: JB721TierConfigFlags({
|
|
888
|
-
allowOwnerMint:
|
|
888
|
+
allowOwnerMint: true,
|
|
889
889
|
useReserveBeneficiaryAsDefault: false,
|
|
890
890
|
transfersPausable: false,
|
|
891
891
|
useVotingUnits: false,
|
|
@@ -909,7 +909,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
909
909
|
category: 12,
|
|
910
910
|
discountPercent: 0,
|
|
911
911
|
flags: JB721TierConfigFlags({
|
|
912
|
-
allowOwnerMint:
|
|
912
|
+
allowOwnerMint: true,
|
|
913
913
|
useReserveBeneficiaryAsDefault: false,
|
|
914
914
|
transfersPausable: false,
|
|
915
915
|
useVotingUnits: false,
|
|
@@ -933,7 +933,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
933
933
|
category: 13,
|
|
934
934
|
discountPercent: 0,
|
|
935
935
|
flags: JB721TierConfigFlags({
|
|
936
|
-
allowOwnerMint:
|
|
936
|
+
allowOwnerMint: true,
|
|
937
937
|
useReserveBeneficiaryAsDefault: false,
|
|
938
938
|
transfersPausable: false,
|
|
939
939
|
useVotingUnits: false,
|
|
@@ -957,7 +957,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
957
957
|
category: 13,
|
|
958
958
|
discountPercent: 0,
|
|
959
959
|
flags: JB721TierConfigFlags({
|
|
960
|
-
allowOwnerMint:
|
|
960
|
+
allowOwnerMint: true,
|
|
961
961
|
useReserveBeneficiaryAsDefault: false,
|
|
962
962
|
transfersPausable: false,
|
|
963
963
|
useVotingUnits: false,
|
|
@@ -981,7 +981,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
981
981
|
category: 13,
|
|
982
982
|
discountPercent: 0,
|
|
983
983
|
flags: JB721TierConfigFlags({
|
|
984
|
-
allowOwnerMint:
|
|
984
|
+
allowOwnerMint: true,
|
|
985
985
|
useReserveBeneficiaryAsDefault: false,
|
|
986
986
|
transfersPausable: false,
|
|
987
987
|
useVotingUnits: false,
|
|
@@ -1005,7 +1005,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
1005
1005
|
category: 13,
|
|
1006
1006
|
discountPercent: 0,
|
|
1007
1007
|
flags: JB721TierConfigFlags({
|
|
1008
|
-
allowOwnerMint:
|
|
1008
|
+
allowOwnerMint: true,
|
|
1009
1009
|
useReserveBeneficiaryAsDefault: false,
|
|
1010
1010
|
transfersPausable: false,
|
|
1011
1011
|
useVotingUnits: false,
|
|
@@ -1029,7 +1029,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
1029
1029
|
category: 13,
|
|
1030
1030
|
discountPercent: 0,
|
|
1031
1031
|
flags: JB721TierConfigFlags({
|
|
1032
|
-
allowOwnerMint:
|
|
1032
|
+
allowOwnerMint: true,
|
|
1033
1033
|
useReserveBeneficiaryAsDefault: false,
|
|
1034
1034
|
transfersPausable: false,
|
|
1035
1035
|
useVotingUnits: false,
|
|
@@ -1053,7 +1053,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
1053
1053
|
category: 13,
|
|
1054
1054
|
discountPercent: 0,
|
|
1055
1055
|
flags: JB721TierConfigFlags({
|
|
1056
|
-
allowOwnerMint:
|
|
1056
|
+
allowOwnerMint: true,
|
|
1057
1057
|
useReserveBeneficiaryAsDefault: false,
|
|
1058
1058
|
transfersPausable: false,
|
|
1059
1059
|
useVotingUnits: false,
|
|
@@ -1077,7 +1077,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
1077
1077
|
category: 13,
|
|
1078
1078
|
discountPercent: 0,
|
|
1079
1079
|
flags: JB721TierConfigFlags({
|
|
1080
|
-
allowOwnerMint:
|
|
1080
|
+
allowOwnerMint: true,
|
|
1081
1081
|
useReserveBeneficiaryAsDefault: false,
|
|
1082
1082
|
transfersPausable: false,
|
|
1083
1083
|
useVotingUnits: false,
|
|
@@ -1101,7 +1101,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
1101
1101
|
category: 13,
|
|
1102
1102
|
discountPercent: 0,
|
|
1103
1103
|
flags: JB721TierConfigFlags({
|
|
1104
|
-
allowOwnerMint:
|
|
1104
|
+
allowOwnerMint: true,
|
|
1105
1105
|
useReserveBeneficiaryAsDefault: false,
|
|
1106
1106
|
transfersPausable: false,
|
|
1107
1107
|
useVotingUnits: false,
|
|
@@ -1125,7 +1125,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
1125
1125
|
category: 13,
|
|
1126
1126
|
discountPercent: 0,
|
|
1127
1127
|
flags: JB721TierConfigFlags({
|
|
1128
|
-
allowOwnerMint:
|
|
1128
|
+
allowOwnerMint: true,
|
|
1129
1129
|
useReserveBeneficiaryAsDefault: false,
|
|
1130
1130
|
transfersPausable: false,
|
|
1131
1131
|
useVotingUnits: false,
|
|
@@ -1149,7 +1149,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
1149
1149
|
category: 14,
|
|
1150
1150
|
discountPercent: 0,
|
|
1151
1151
|
flags: JB721TierConfigFlags({
|
|
1152
|
-
allowOwnerMint:
|
|
1152
|
+
allowOwnerMint: true,
|
|
1153
1153
|
useReserveBeneficiaryAsDefault: false,
|
|
1154
1154
|
transfersPausable: false,
|
|
1155
1155
|
useVotingUnits: false,
|
|
@@ -1173,7 +1173,7 @@ contract Drop1Script is Script, Sphinx {
|
|
|
1173
1173
|
category: 16,
|
|
1174
1174
|
discountPercent: 0,
|
|
1175
1175
|
flags: JB721TierConfigFlags({
|
|
1176
|
-
allowOwnerMint:
|
|
1176
|
+
allowOwnerMint: true,
|
|
1177
1177
|
useReserveBeneficiaryAsDefault: false,
|
|
1178
1178
|
transfersPausable: false,
|
|
1179
1179
|
useVotingUnits: false,
|
|
@@ -26,11 +26,10 @@ library BannyverseDeploymentLib {
|
|
|
26
26
|
internal
|
|
27
27
|
returns (BannyverseDeployment memory deployment)
|
|
28
28
|
{
|
|
29
|
-
//
|
|
29
|
+
// Match the current chain ID to the Sphinx network name used in deployment artifacts.
|
|
30
30
|
uint256 chainId = block.chainid;
|
|
31
31
|
|
|
32
|
-
//
|
|
33
|
-
// TODO: get constants without deploy.
|
|
32
|
+
// `SphinxConstants` exposes Sphinx's supported chain ID to network name mapping.
|
|
34
33
|
SphinxConstants sphinxConstants = new SphinxConstants();
|
|
35
34
|
NetworkInfo[] memory networks = sphinxConstants.getNetworkInfoArray();
|
|
36
35
|
|
|
@@ -119,19 +119,19 @@ contract Banny721TokenUriResolver is
|
|
|
119
119
|
mapping(uint256 upc => bytes32) public override svgHashOf;
|
|
120
120
|
|
|
121
121
|
/// @notice The default alien-eye SVG fragment used when rendering a Banny without custom alien eyes.
|
|
122
|
-
string public override
|
|
122
|
+
string public override defaultAlienEyes;
|
|
123
123
|
|
|
124
124
|
/// @notice The default mouth SVG fragment used when rendering a Banny without a custom mouth.
|
|
125
|
-
string public override
|
|
125
|
+
string public override defaultMouth;
|
|
126
126
|
|
|
127
127
|
/// @notice The default necklace SVG fragment used when rendering a Banny without a custom necklace.
|
|
128
|
-
string public override
|
|
128
|
+
string public override defaultNecklace;
|
|
129
129
|
|
|
130
130
|
/// @notice The default standard-eye SVG fragment used when rendering a Banny without custom standard eyes.
|
|
131
|
-
string public override
|
|
131
|
+
string public override defaultStandardEyes;
|
|
132
132
|
|
|
133
133
|
/// @notice The base Banny body SVG fragment used as the starting layer for token rendering.
|
|
134
|
-
string public override
|
|
134
|
+
string public override bannyBody;
|
|
135
135
|
|
|
136
136
|
//*********************************************************************//
|
|
137
137
|
// --------------------- internal stored properties ------------------ //
|
|
@@ -180,30 +180,30 @@ contract Banny721TokenUriResolver is
|
|
|
180
180
|
// -------------------------- constructor ---------------------------- //
|
|
181
181
|
//*********************************************************************//
|
|
182
182
|
|
|
183
|
-
/// @param
|
|
184
|
-
/// @param
|
|
185
|
-
/// @param
|
|
186
|
-
/// @param
|
|
187
|
-
/// @param
|
|
183
|
+
/// @param bannyBodySvg The SVG of the banny body.
|
|
184
|
+
/// @param defaultNecklaceSvg The SVG of the default necklace.
|
|
185
|
+
/// @param defaultMouthSvg The SVG of the default mouth.
|
|
186
|
+
/// @param defaultStandardEyesSvg The SVG of the default standard eyes.
|
|
187
|
+
/// @param defaultAlienEyesSvg The SVG of the default alien eyes.
|
|
188
188
|
/// @param owner The owner allowed to add SVG files that correspond to product IDs.
|
|
189
189
|
/// @param trustedForwarder The trusted forwarder for the ERC2771Context.
|
|
190
190
|
constructor(
|
|
191
|
-
string memory
|
|
192
|
-
string memory
|
|
193
|
-
string memory
|
|
194
|
-
string memory
|
|
195
|
-
string memory
|
|
191
|
+
string memory bannyBodySvg,
|
|
192
|
+
string memory defaultNecklaceSvg,
|
|
193
|
+
string memory defaultMouthSvg,
|
|
194
|
+
string memory defaultStandardEyesSvg,
|
|
195
|
+
string memory defaultAlienEyesSvg,
|
|
196
196
|
address owner,
|
|
197
197
|
address trustedForwarder
|
|
198
198
|
)
|
|
199
199
|
Ownable(owner)
|
|
200
200
|
ERC2771Context(trustedForwarder)
|
|
201
201
|
{
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
202
|
+
bannyBody = bannyBodySvg;
|
|
203
|
+
defaultNecklace = defaultNecklaceSvg;
|
|
204
|
+
defaultMouth = defaultMouthSvg;
|
|
205
|
+
defaultStandardEyes = defaultStandardEyesSvg;
|
|
206
|
+
defaultAlienEyes = defaultAlienEyesSvg;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
//*********************************************************************//
|
|
@@ -589,7 +589,7 @@ contract Banny721TokenUriResolver is
|
|
|
589
589
|
";}.a3{fill:#",
|
|
590
590
|
a3,
|
|
591
591
|
";}</style>",
|
|
592
|
-
|
|
592
|
+
bannyBody
|
|
593
593
|
);
|
|
594
594
|
}
|
|
595
595
|
|
|
@@ -816,7 +816,7 @@ contract Banny721TokenUriResolver is
|
|
|
816
816
|
function _mannequinBannySvg() internal view returns (string memory) {
|
|
817
817
|
return string.concat(
|
|
818
818
|
"<style>.o{fill:#808080;}.b1{fill:none;}.b2{fill:none;}.b3{fill:none;}.b4{fill:none;}.a1{fill:none;}.a2{fill:none;}.a3{fill:none;}</style>",
|
|
819
|
-
|
|
819
|
+
bannyBody
|
|
820
820
|
);
|
|
821
821
|
}
|
|
822
822
|
|
|
@@ -895,7 +895,7 @@ contract Banny721TokenUriResolver is
|
|
|
895
895
|
hasNecklace = true;
|
|
896
896
|
customNecklace = _svgOf({hook: hook, upc: upc});
|
|
897
897
|
} else if (category > _NECKLACE_CATEGORY && !hasNecklace) {
|
|
898
|
-
contents = string.concat(contents,
|
|
898
|
+
contents = string.concat(contents, defaultNecklace);
|
|
899
899
|
hasNecklace = true;
|
|
900
900
|
}
|
|
901
901
|
|
|
@@ -906,8 +906,8 @@ contract Banny721TokenUriResolver is
|
|
|
906
906
|
if (category == _EYES_CATEGORY) {
|
|
907
907
|
hasEyes = true;
|
|
908
908
|
} else if (category > _EYES_CATEGORY && !hasEyes && !hasHead) {
|
|
909
|
-
if (bodyUpc == ALIEN_UPC) contents = string.concat(contents,
|
|
910
|
-
else contents = string.concat(contents,
|
|
909
|
+
if (bodyUpc == ALIEN_UPC) contents = string.concat(contents, defaultAlienEyes);
|
|
910
|
+
else contents = string.concat(contents, defaultStandardEyes);
|
|
911
911
|
|
|
912
912
|
hasEyes = true;
|
|
913
913
|
}
|
|
@@ -915,7 +915,7 @@ contract Banny721TokenUriResolver is
|
|
|
915
915
|
if (category == _MOUTH_CATEGORY) {
|
|
916
916
|
hasMouth = true;
|
|
917
917
|
} else if (category > _MOUTH_CATEGORY && !hasMouth && !hasHead) {
|
|
918
|
-
contents = string.concat(contents,
|
|
918
|
+
contents = string.concat(contents, defaultMouth);
|
|
919
919
|
hasMouth = true;
|
|
920
920
|
}
|
|
921
921
|
|
|
@@ -59,23 +59,23 @@ interface IBanny721TokenUriResolver {
|
|
|
59
59
|
|
|
60
60
|
/// @notice The base SVG content for a banny body.
|
|
61
61
|
/// @return The SVG string.
|
|
62
|
-
function
|
|
62
|
+
function bannyBody() external view returns (string memory);
|
|
63
63
|
|
|
64
64
|
/// @notice The default SVG content for alien banny eyes.
|
|
65
65
|
/// @return The SVG string.
|
|
66
|
-
function
|
|
66
|
+
function defaultAlienEyes() external view returns (string memory);
|
|
67
67
|
|
|
68
68
|
/// @notice The default SVG content for a banny mouth.
|
|
69
69
|
/// @return The SVG string.
|
|
70
|
-
function
|
|
70
|
+
function defaultMouth() external view returns (string memory);
|
|
71
71
|
|
|
72
72
|
/// @notice The default SVG content for a banny necklace.
|
|
73
73
|
/// @return The SVG string.
|
|
74
|
-
function
|
|
74
|
+
function defaultNecklace() external view returns (string memory);
|
|
75
75
|
|
|
76
76
|
/// @notice The default SVG content for standard banny eyes.
|
|
77
77
|
/// @return The SVG string.
|
|
78
|
-
function
|
|
78
|
+
function defaultStandardEyes() external view returns (string memory);
|
|
79
79
|
|
|
80
80
|
/// @notice Get the names associated with a token (product name, category name, and display name).
|
|
81
81
|
/// @param hook The hook address of the collection.
|