@@ -18,7 +18,6 @@ contract MetarunLaunch is Ownable, ReentrancyGuard {
18
18
using ECDSA for bytes32 ;
19
19
20
20
error CannotIncreaseMaxMintableSupply ();
21
- error CannotUpdatePermanentBaseURI ();
22
21
error CosignerNotSet ();
23
22
error GlobalWalletLimitOverflow ();
24
23
error InsufficientStageTimeGap ();
@@ -61,17 +60,12 @@ contract MetarunLaunch is Ownable, ReentrancyGuard {
61
60
event SetMaxMintableSupply (uint256 maxMintableSupply );
62
61
event SetGlobalWalletLimit (uint256 globalWalletLimit );
63
62
event SetActiveStage (uint256 activeStage );
64
- event SetBaseURI (string baseURI );
65
63
event SetTimestampExpirySeconds (uint64 expiry );
66
- event PermanentBaseURI (string baseURI );
67
64
event Withdraw (uint256 value );
68
65
69
66
// Whether this contract is mintable.
70
67
bool private _mintable;
71
68
72
- // Whether base URI is permanent. Once set, base URI is immutable.
73
- bool private _baseURIPermanent;
74
-
75
69
// Specify how long a signature from cosigner is valid for, recommend 300 seconds.
76
70
uint64 private _timestampExpirySeconds;
77
71
@@ -84,9 +78,6 @@ contract MetarunLaunch is Ownable, ReentrancyGuard {
84
78
// Global wallet limit, across all stages.
85
79
uint256 private _globalWalletLimit;
86
80
87
- // Current base URI.
88
- string private _currentBaseURI;
89
-
90
81
// ERC1155 token of the collection on sale
91
82
MetarunCollection private _collection;
92
83
@@ -489,20 +480,6 @@ contract MetarunLaunch is Ownable, ReentrancyGuard {
489
480
totalMinted += qtyMinted;
490
481
}
491
482
492
- /**
493
- * @dev Mints token(s) by owner.
494
- *
495
- * NOTE: This function bypasses validations thus only available for owner.
496
- * This is typically used for owner to pre-mint or mint the remaining of the supply.
497
- */
498
- function ownerMint (uint32 qty , address to )
499
- external
500
- onlyOwner
501
- hasSupply (qty)
502
- {
503
- //_safeMint(to, qty);
504
- }
505
-
506
483
/**
507
484
* @dev Withdraws funds by owner.
508
485
*/
@@ -513,24 +490,6 @@ contract MetarunLaunch is Ownable, ReentrancyGuard {
513
490
emit Withdraw (value);
514
491
}
515
492
516
- /**
517
- * @dev Sets token base URI.
518
- */
519
- function setBaseURI (string calldata baseURI ) external onlyOwner {
520
- if (_baseURIPermanent) revert CannotUpdatePermanentBaseURI ();
521
- _currentBaseURI = baseURI;
522
- emit SetBaseURI (baseURI);
523
- }
524
-
525
- /**
526
- * @dev Sets token base URI permanent. Cannot revert.
527
- */
528
- function setBaseURIPermanent () external onlyOwner {
529
- _baseURIPermanent = true ;
530
- emit PermanentBaseURI (_currentBaseURI);
531
- }
532
-
533
-
534
493
/**
535
494
* @dev Returns data hash for the given minter, qty and timestamp.
536
495
*/
0 commit comments