Comments (7)
@cankaytaz Upload the 5 images to IPFS, then upload 10k metadata JSONs pointing to one of the 5 images, chosen randomly.
from dn404.
@Vectorized something like this?https://nftstorage.link/ipfs/bafybeifoynemoifteqtzhy6y2jn7tglfziibn7y7f42o6gslu2iiqhtcgm
I created 10k jsons, but the problem here is that these random files are sequential, that is, they start in the same order after 10k is finished. Shouldn't there be such a section in the contract instead? Can't a seed structure like the Pandora contract be used? =>
if (seed <= 100) {
image = "1.gif";
color = "Green";
} else if (seed <= 160) {
image = "2.gif";
color = "Blue";
} else if (seed <= 210) {
image = "3.gif";
color = "Purple";
} else if (seed <= 240) {
image = "4.gif";
color = "Orange";
} else if (seed <= 255) {
image = "5.gif";
color = "Red";
}
And while it's on my mind, I want to ask everything I'm curious about. What exactly does the skipNFT section do?
from dn404.
@cankaytaz Upload the 5 images to IPFS, then upload 10k metadata JSONs pointing to one of the 5 images, chosen randomly.
The problem with this approach is that if the token experiences numerous fragmented transfers, the number of IDs will eventually exceed 10k, necessitating the continuous uploading of additional metadata to cover the infinite IDs it may reach.
from dn404.
@myst4 @Vectorized So what do you recommend regarding metadata? I also have another question; In my project, the total NFT supply will be 4404, and I want 1 NFT to equal 404 Tokens. I prepared 5K NFT and 1M token supply in my test contract, but this caused a problem. When I send 100 tokens to a wallet, 100 NFTs go. What should I do to overcome this problem? What exactly should be my Token supply for 404 tokens to equal 1 NFT?
from dn404.
DN404 does not have unbounded token IDs.
from dn404.
Ah, you probably should create it in tokenURI
if you only have 5 images.
from dn404.
The main purpose of a standard is to provide the necessary functionality and allow the implementor to add their own logic relevant to their business needs.
If we talk about Pandora, their version of ERC404
standard didn't had the seed
functionality. The Pandora
contract inherited ERC404
and the custom logic to handle the metadata for tokens was added to the overridden tokenURI
function.
Link to the overridden function: https://github.com/Pandora-Labs-Org/erc404-legacy/blob/master/src/Pandora.sol#L32
cc: @cankaytaz
from dn404.
Related Issues (20)
- EIP-2612 support HOT 8
- DoS Vector: Transfering relatively large amounts of DN404 always `oog`s HOT 6
- 🐞 At example contract **NFTMintDN404** the minting checking allows to mint only once. HOT 3
- Get the NFT inventory of the wallet. HOT 1
- Revert on dn404Fallback if fn selector is not recognized. HOT 1
- ✨ Overrideable _msgSender() HOT 1
- Inquiry on Potential Gas or Security Issues for Large Supply Collections HOT 1
- I've completely rebuilt ERC404 to fix all issues(?)
- Problem for configuration setbaseuri tokenuri HOT 7
- Batch Minting like 721A's HOT 2
- ⚡️ Make tokenURI into internal _tokenURI
- Enhancing Liquidity for Existing NFTs: Implementing Lock-up Mechanism to Return DN404 Tokens with Matching Token IDs HOT 6
- Transfer on/off HOT 2
- Dosn't work with SafeTransferLib ? HOT 1
- ⚡️ Use updated FindFirstSet formulation
- ✨ Overrideable option to safe transfer NFTs
- 📢 Audit fixes incoming
- Set log handlers as internal virtual instead of private HOT 2
- ✨ Zero Indexed optionality
- ✨Omnichain compatibility using LayerZero
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dn404.