Assignment: Create a currency on Solana using Rust

Objective:

The objective of this assignment is to demonstrate your understanding of smart contracts and how to build a decentralized application using the Rust programming language and a frontend application.

Instructions:

Smart Contract:

  • Create a basic bank account smart contract in the Rust programming language. The smart contract should have the following functionality:

    • Initial account creation

    • Deposits to the account

    • Withdrawals from the account

    • Transfer of funds between accounts

    • Query the balance of an account

  • The smart contract should enforce the following constraints:

    • Prevent overdrafts

    • Limit daily withdrawals

Frontend Application:

  • Build a frontend application in a JavaScript framework of your choice (e.g. React, Angular, Vue, etc.) to interact with the bank account smart contract.

  • The application should have the following functionality:

    • Create a new account

    • Deposit funds to an account

    • Withdraw funds from an account

    • Transfer funds between accounts

    • Display the balance of an account

Submission:

  • Submit the Rust code for the smart contract and the frontend application source code to the GitHub Repository

  • Include a short description of the design choices you made and any challenges you faced during the development process.

Last updated