showtime-xyz / creator-tokens Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
ToggledPause
should be emitted with the old state, new state, and the address that called the methodThe payAndMint
methods should be updated to simply buy
. The Minted
event should be renamed to Bought
. Variables in all tests should be updated to match. Note: _mintAndIncrement
should remain named as such since it describes the actual minting operation happening to the token, not the higher level concept of buying.
When updating the admin, creator, or token URI, we should emit a relevant event with the old and new value. We should add test for these emissions.
Probably something like priceForBuyingN
and payoutForSellingN
, needs more consideration
See PoolTogether Governor Upgrade for an example.
When a token is bought & minted, record the block's timestamp in a mapping of tokenId => timestamp. When a user goes to sell the token, lookup the timestamp and ensure at least MIN_HOLDING_TIME
has elapsed, where MIN_HOLDING_TIME
is a constant set to some reasonable value, perhaps 60 seconds or similar. Revert if not.
Let's pull out an issue to think about how to run the tests with varying fee values.
Originally posted by @apbendi in #15 (comment)
_maxPayment
argument that specifies the maximum the user is willing to spend on all NFTs and fees combinedbuy
method(s) to return the _totalPrice
spent on the NFT + fees when a purchase is made—this can be used to ensure the bulk buy total is less than specifiedmsg.sender
for the _to
address (NFT receiver)Deploy script should simply deploy the Factory contract to Base testnet or Mainnet depending on configuration. Requires #33 to be merged first.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.