Comments (6)
I continue to hate decimals
a lot...
from solana-program-library.
Problem: Transfer
and MintTo
's ability to overwrite the destination token account item value could be use to attack empty wallets. Token accounts probably need to indicate they're willing to accept any item, possibly as an argument into InitializeAccount
from solana-program-library.
Another path:
- SFTs are really just FTs. The benefit of the proposal above is that SFTs of the same "collection" can share a Mint. Maybe that's not a big deal, especially if the Mint receives a URL/address to additional metadata.
- NFTs are a different program:
spl-item
orspl-unique-item
perhaps. Very similar setup asspl-token
but with some complexity removed. In this scenario NFTs of the same "collection" can still share a Mint. (I strongly dislike the approach of NFTs being represented as a spl-token with just one account, seems wasteful and too difficult for clients to find all the NFTs of the same collection)
This pushes more complexity onto the client than the above proposal.
from solana-program-library.
I strongly dislike the approach of NFTs being represented as a spl-token with just one account
I don't quite follow what the alternative is. An account that can hold multiple NFTs from a collection?
too difficult for clients to find all the NFTs of the same collection
Isn't this the same as finding the total supply of a fungible Mint?
from solana-program-library.
I don't quite follow what the alternative is. An account that can hold multiple NFTs from a collection?
Say there's an spl-item
program with a Mint
and Account
like spl-token
has. The Account
here doesn't hold an amount. It probably only has a SetOwner
-like instruction as well, to transfer ownership of that NFT to another user.
Isn't this the same as finding the total supply of a fungible Mint?
That's a little different to me. Without a common Mint
to try all the NFTs together in a collection, it's hard to be able to find all the hockey cards or my little ponies. You can't tell what's a card and what's a horse.
from solana-program-library.
Nope, not going to pursue this approach. The item
brings baggage to the world of fungible tokens. We can do better
from solana-program-library.
Related Issues (20)
- Confidential Transfer Support in @solana/spl-token HOT 1
- Priority fee for token CLI HOT 5
- [token-cli] Remove deprecated functions from `solana-clap-v3-utils` HOT 2
- Token Upgrade program is absent on the `mainnet` HOT 2
- createInitializeTransferFeeConfig failing when combined with other token extenstions HOT 5
- token-2022: Convert extensions to use Pod state types HOT 1
- Solana token created via ubuntu-github method but no pull request for token list. HOT 1
- [transfer-fee] calculate_inverse_fee logic error when transfer_fee_basis_points is MAX_FEE_BASIS_POINTS HOT 6
- create associated token account for token-2022 tokens HOT 1
- API crate(s) for token2022 HOT 1
- token-js: docs: Add missing "mint" param for approveChecked function HOT 2
- `Token` type is `!Send + !Sync` HOT 6
- token-cli: Add priority fee support HOT 1
- spl-token library failing to run on client side HOT 1
- How to send tokens to multiple accountsin bulk HOT 1
- addExtraAccountMetasForExecute Error: Missing required account in instruction HOT 2
- single-pool: Remove usage of stake::config
- Update to ESLint 9.0 HOT 13
- token-cli: Priority fee support doesn't work
- Optimize Initialization Process in Concurrent Merkle Tree
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 solana-program-library.