Metaplex 표준을 따르는 NFT 중에서 on-chain metadata 의 tokenStandard 필드가 0 에서 3인 값으로 표시된다.
공식 문서에서 언급된 TokenStandard enum 구조체의 NonFungible, FungibleAsset, Fungible, NonFungibleEdition 에 대한 순번을 의미한다. 그리고 이 값은 컨트랙트에서 특정 요구 조건에 따라 자동으로 설정하는 값이라고 한다.
이 글은 솔라나에서 Semi-Fungible Token 과 관련된 글이기도 하다.
tokenStandard 러스트 구조체
pub enum TokenStandard {
NonFungible, // This is a master edition
FungibleAsset, // A token with metadata that can also have attributes, sometimes called Semi Fungible
Fungible, // A token with simple metadata
NonFungibleEdition, // This is a limited edition
}
tokenStandard 충족 조건
The token_standard field is set automatically by the contract corresponding to the following logic:
If the token has a master edition it is a NonFungible. If the token has no master edition(ensuring its supply can be > 1) and decimals of 0 it is a FungibleAsset. If the token has no master edition(ensuring its supply can be > 1) and decimals of > 0 it is a Fungible. If the token is a limited edition of a MasterEditon it is a NonFungibleEdition.
해석
실제 민팅 시나리오를 접목해서 해석해보았다.tokenStandard: 0=NonFungible: Metaplex 에서 발행한 NFT 의 Master Edition 에 해당한다.tokenStandard: 1=FungibleAsset: Master Edition 을 민팅하지 않고, decimal = 0 이며, max supply > 1 인 경우이며 SFT (Semi-Fungible Token)에 해당한다.tokenStandard: 2=Fungible: FungibleAsset과 비슷하며 decimal > 0 이다. FT 에 해당한다.tokenStandard: 3=NonFungibleEdition: Metaplex 에서 발행한 NFT 의 Print Edition 에 해당한다.
'블록체인 > 솔라나' 카테고리의 다른 글
| [beet FixableBeetStruct.deserialize 에러]"offset" is out of range (0) | 2022.05.18 |
|---|---|
| sendAndConfirmTransaction 서명 오류 (0) | 2022.05.16 |
| 솔라나 Generative Art 생성 방법 (0) | 2022.04.28 |
| 솔라나 개발툴 설치 (0) | 2022.03.22 |
| spl-token multisig 문제 (0) | 2022.03.22 |