Coder Social home page Coder Social logo

thierrymarianne / contrib-ledger-project-eu-substrate-nft Goto Github PK

View Code? Open in Web Editor NEW

This project forked from polk4-net/substrate-nft

0.0 2.0 0.0 161 KB

Substrate NFT !ink smart contract base

License: MIT License

Rust 0.58% C 99.31% Makefile 0.12%

contrib-ledger-project-eu-substrate-nft's Introduction

Substrate !ink NFT simple implementation


This is a simple working version of base NFT smart contract written using latest (as of this date) !ink 3.0.0-rc3.

To run all tests:

cargo +nightly test

To compile to WASM:

cargo +nightly contract build 

Original wasm size: 47.4K, Optimized: 26.3K

Once your contract is compiled you can find artifacts in: <PROJECT_DIR>/target/ink

  • nft.contract (code + metadata)
  • nft.wasm (the contract's code)
  • metadata.json (the contract's metadata)

If you are facing any issues please follow the setup step of substrate environment at:

https://substrate.dev/substrate-contracts-workshop/#/0/setup

Testing on using Polk4 canvas network


You can upload this contract and interract with it either via your own local Canvas node or using Polk4 Canvas testnet.

  • Head to https://paritytech.github.io/canvas-ui/
  • In node settings input custom node endpoint: wss://canvas.polk4.net
  • Upload nft.contract into the node via UI
  • Instantiate a contract and make RPC calls/transactions ๐ŸŽ‰

License

This NFT template is MIT

contrib-ledger-project-eu-substrate-nft's People

Contributors

cjdelisle avatar nickitax avatar thierrymarianne avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.