Assignment: Build your own Non-Fungible Token

Objective:

  • To develop a non-fungible token on the Solana blockchain that adheres to security best practices.

  • To gain experience with writing and deploying smart contracts on the Solana blockchain.

  • To share the smart contract with the Solana community.

Task:

  1. Write a smart contract in Rust that implements a simple non-fungible token.

  2. The token should have the following properties:

    • A unique identifier (e.g., symbol)

    • A balance for each individual token

    • Functions to transfer the token from one account to another

  3. Write comprehensive test cases for the smart contract to ensure that it works as expected.

  4. Write a security report that details any potential security risks and vulnerabilities in the smart contract and how they can be mitigated.

  5. Deploy the smart contract to a testnet and test it using the test cases you have written.

  6. Share the smart contract code, test cases, and security report with the Solana community.

Resources:

Last updated