-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into channing/readme
- Loading branch information
Showing
27 changed files
with
3,937 additions
and
43 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.4; | ||
|
||
import "@limitbreak/creator-token-standards/src/programmable-royalties/BasicRoyalties.sol"; | ||
import "./ERC721CM.sol"; | ||
|
||
/** | ||
* @title ERC721CM with BasicRoyalties | ||
*/ | ||
contract ERC721CMBasicRoyalties is ERC721CM, BasicRoyalties { | ||
constructor( | ||
string memory collectionName, | ||
string memory collectionSymbol, | ||
string memory tokenURISuffix, | ||
uint256 maxMintableSupply, | ||
uint256 globalWalletLimit, | ||
address cosigner, | ||
uint64 timestampExpirySeconds, | ||
address mintCurrency, | ||
address royaltyReceiver, | ||
uint96 royaltyFeeNumerator | ||
) | ||
ERC721CM( | ||
collectionName, | ||
collectionSymbol, | ||
tokenURISuffix, | ||
maxMintableSupply, | ||
globalWalletLimit, | ||
cosigner, | ||
timestampExpirySeconds, | ||
mintCurrency | ||
) | ||
BasicRoyalties(royaltyReceiver, royaltyFeeNumerator) | ||
{} | ||
|
||
function supportsInterface(bytes4 interfaceId) | ||
public | ||
view | ||
virtual | ||
override(ERC2981, ERC721ACQueryable, IERC721A) | ||
returns (bool) | ||
{ | ||
return | ||
ERC721ACQueryable.supportsInterface(interfaceId) || | ||
ERC2981.supportsInterface(interfaceId); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
//SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.8.4; | ||
|
||
import {ERC2981, UpdatableRoyalties} from "./royalties/UpdatableRoyalties.sol"; | ||
import {ERC721CM, ERC721ACQueryable, IERC721A} from "./ERC721CM.sol"; | ||
|
||
/** | ||
* @title ERC721CMRoyalties | ||
*/ | ||
contract ERC721CMRoyalties is ERC721CM, UpdatableRoyalties { | ||
constructor( | ||
string memory collectionName, | ||
string memory collectionSymbol, | ||
string memory tokenURISuffix, | ||
uint256 maxMintableSupply, | ||
uint256 globalWalletLimit, | ||
address cosigner, | ||
uint64 timestampExpirySeconds, | ||
address mintCurrency, | ||
address royaltyReceiver, | ||
uint96 royaltyFeeNumerator | ||
) | ||
ERC721CM( | ||
collectionName, | ||
collectionSymbol, | ||
tokenURISuffix, | ||
maxMintableSupply, | ||
globalWalletLimit, | ||
cosigner, | ||
timestampExpirySeconds, | ||
mintCurrency | ||
) | ||
UpdatableRoyalties(royaltyReceiver, royaltyFeeNumerator) | ||
{} | ||
|
||
function supportsInterface(bytes4 interfaceId) | ||
public | ||
view | ||
virtual | ||
override(ERC2981, ERC721ACQueryable, IERC721A) | ||
returns (bool) | ||
{ | ||
return | ||
ERC721ACQueryable.supportsInterface(interfaceId) || | ||
ERC2981.supportsInterface(interfaceId); | ||
} | ||
} |
Oops, something went wrong.