starcoin-framework

Module 0x1::NFTGalleryScripts

use 0x1::NFTGallery;

Function accept

Init a NFTGallery for accept NFT<NFTMeta, NFTBody>

public entry fun accept<NFTMeta: copy, drop, store, NFTBody: store>(sender: signer)
Implementation
public entry fun accept<NFTMeta: copy + store + drop, NFTBody: store>(sender: signer) {
    NFTGallery::accept_entry<NFTMeta, NFTBody>(sender);
}

Function transfer

Transfer NFT<NFTMeta, NFTBody> with id from sender to receiver

public entry fun transfer<NFTMeta: copy, drop, store, NFTBody: store>(sender: signer, id: u64, receiver: address)
Implementation
public entry fun transfer<NFTMeta: copy + store + drop, NFTBody: store>(
    sender: signer,
    id: u64, receiver: address
) {
    NFTGallery::transfer_entry<NFTMeta, NFTBody>(sender, id, receiver);
}

Remove empty NFTGallery<Meta,Body>.

public entry fun remove_empty_gallery<NFTMeta: copy, drop, store, NFTBody: store>(sender: signer)
Implementation
public entry fun remove_empty_gallery<NFTMeta: copy + store + drop, NFTBody: store>(sender: signer) {
    NFTGallery::remove_empty_gallery_entry<NFTMeta, NFTBody>(sender);
}

Module Specification

pragma verify = false;