#Soroban NFT

21 messages · Page 1 of 1 (latest)

crude heron
#

How to create NFT in soroban?

stray bay
#

I published a draft interface for nfts at

https://github.com/stellar/stellar-protocol/pull/1406 (erc1155 like)
Or
https://github.com/vinamogit/stellar-protocol/pull/2 (721 like)

No guarantees these stay in their current format though since theyre draft prs.

Also there is a more traditional erc721 interface at https://github.com/vinamogit/stellar-protocol/pull/1

Hope it helps

GitHub

This draft proposal aims to align with the ERC-1155 standard by allowing for the creation and management of both fungible and non-fungible tokens within a single contract, and by providing function...

GitHub

Revised draft incorporating Soroban token interface and additional metadata methods.

crude heron
#

So it isn't launched officially?

stray bay
hollow palm
hollow palm
#

@crude heron simplest way to create an NFT would be to include @zenith fractal 's WASM in your code and specify name and symbol before hitting deploy.

    pub fn initialize(env: Env, admin: Address) {
        let name = String::from_slice(&env, "Non-Fungible Token");
        let sym = String::from_slice(&env, "NFT");
        erc721::ERC721Contract::initialize(env, admin, name, sym);
    }
crude heron
crude heron
young mica
#

I am using @zenith fractal erc721 as a base contract for one nft project I am working on. Even if the review ends up in something completely different I guess it is a good starting point

crude heron
zenith fractal
young mica
#

Yeah but maybe he is talking about the million lummens contract where you are creating a url based off the token. But when he tries to invoke that url it will be returning 404 because the contract is not saving anything in the url right?

crude heron
young mica
zenith fractal
#

Yes right, it should be instance and not persistent it seems, or change the getter to get from persistent...

stray bay
#

Hey guys steve from the blue marble has open sourced the token contract compatible nft implementation they have made that i helped with. Here is a link

young mica
#

Cool so is this a proposed standard? Will look more into the details of it later

stray bay
#

That implementation is what I had wrote a standard off of but there is discussion about whetther a NFT standard should even be defined if it's just a like incrimental token interface contract.

#

I don't think that one has the URI metadata in it though

young mica
#

I guess it would make sense so that anyone implementing systems to interact with the nfts knows what all NFTs have in common and in the same way everyone building nft projects know that by respecting the interface they will comply with the rules . So basically it will facilitate any current or future integrations I guess is what I am trying to say ahah