Skip to content

Indieblocks/tezos-publication-contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Book Store front

It should be noted this smart contract is not considered Audited and as such should not be used in a production enviroment.

A Smart contract that allows the owner to sell NFT's of books they have published on the Tezos protocol providing;

  • They currently have the publication in stock to do so.
  • The NFT publication has not been set to restricted.
    • NFT Publication listings can be restricted by setting publication_limited to true
  • The offered Tozes is more than or equal to the cost of the published NFT.
    • Any value sent over the asking price will be provided as a tip and not returned.

Storage

You can set up the storage for the smart contract by populating it with the details of published NFT's you are selling -- For example;

 (0n, { 
   publication_stock = 100n ; 
   publication_address = ("Address of publication NFT" : address); 
   publication_price = 20mutez;
   publication_restricted = false;
   publication_title = "Mmmmm Tezos - Recipes & Ideas.";
 }); 
 (1n, { 
   publication_stock = 200n ; 
   publication_address = ("Address of publication NFT" : address); 
   publication_price = 10mutez;
   publication_restricted = true;
   publication_title = "Mmmmm Tezos - Now for pudding!"
 })
]

About

Buy & Sell Restrictable Publication NFT's on Tezos.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published