-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
magicdrop v1.0.1 #161
magicdrop v1.0.1 #161
Conversation
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be ignored, its a direct copy of ERC721A with an initializer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-approves our seaport conduit for immediate trading
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be ignored, its a direct copy of ERC721AQueryable that extends ERC721ACloneable
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
Signed-off-by: Adam Wolf <wolfynft@gmail.com>
The factory that makes the car can be upgraded Once an NFT contract is deployed, it's stuck with whatever implementation it was cloned from. You can't upgrade it.
I believe the factory/registry could be replaced by: The factory/registry could be replaced by:
contract SimpleFactory Ownable {
uint256 fee;
mapping(uint256 => address) public implementations;
constructor(){...}
function deploy(
uint256 implId, // An ID that maps to deployed token standards
string calldata name,
string calldata symbol,
address initialOwner
) external payable returns (address) {
require(msg.value >= fee, “Fee too low.”);
address impl = implementations[implId];
require(impl != address(0), "Invalid impl");
address instance = LibClone.clone(impl);
IERC1155M(instance).initialize(name, symbol, initialOwner);
return instance;
}
… setters for fee and implementations
}
NOW, this would make upgrading for ZKSync a 1 line change to the ZKProxy.sol contract I provided in Slack. |
ERC721CM v1.0.1
setTransferable
function to block transfersbaseURI
andtokenURISuffix
to the setup functionsetup
lock, can only be called onceERC721M v1.0.1
setTransferable
function to block transfersbaseURI
andtokenURISuffix
to the setup functionsetup
lock, can only be called onceERC1155M v1.0.1
setup
lock, can only be called onceCLI
baseURI
andtokenURISuffix
on setup