neo-devpack-dotnet icon indicating copy to clipboard operation
neo-devpack-dotnet copied to clipboard

Divisible NEP11 token example

Open ixje opened this issue 3 years ago • 7 comments

There is example code for a non-divisible NEP11 token, but not for a divisible. I think for completeness sake we should have one for a divisible token that can act as a reference for the implementation of the divisible specific methods (transfer() with from and amount params, ownerOf() returning aniterator and balanceOf with an extra tokenId parameter)

ixje avatar Sep 26 '22 13:09 ixje

There is one in Go: https://github.com/nspcc-dev/neo-go/blob/master/examples/nft-d/nft.go

roman-khimov avatar Sep 26 '22 14:09 roman-khimov

There's also one in Java: https://github.com/neow3j/neow3j-examples-java/blob/master/src/main/java/io/neow3j/examples/contractdevelopment/contracts/DivisibleNonFungibleToken.java

mialbu avatar Feb 28 '23 12:02 mialbu

@Hecate2 implemented a pretty good one, https://github.com/Hecate2/NFTLoan/blob/master/DivisibleNep11Token/DivisibleNep11Token.cs

Jim8y avatar Mar 07 '23 22:03 Jim8y

@Liaojinghui, this one from Hecate2 maybe can serve as an example.

We need to address some issues in this repo and also update examples.

vncoelho avatar May 30 '23 22:05 vncoelho

Do any wallets even support divisible NFTs?

cschuchardt88 avatar Nov 09 '23 03:11 cschuchardt88

Do any wallets even support divisible NFTs?

No

Hecate2 avatar Nov 09 '23 04:11 Hecate2

That's not really an argument to not have an example though

ixje avatar Nov 09 '23 08:11 ixje