This application written Rust using Anchor ⚓
- Rust Installation
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup component add rustfmt
- Solana Installation
sh -c "$(curl -sSfL https://release.solana.com/v1.8.0/install)"
Please update your PATH
environment variable to include the solana programs
- Installation of mocha
npm install -g mocha
- Anchor ⚓ Installation
npm i -g @project-serum/anchor-cli
- And we can use Cargo to install CLI
cargo install --git https://github.com/project-serum/anchor --tag v0.17.0 anchor-cli --locked
solana config get
Configure RPC URL
solana config set --url localhost
Wallet address and airdrop some SOL
solana address
- For more comprehensive details of your account
solana account <your address from the last command>
- Clone this repository
git clone https://github.com/RiteshPuvvada/Personal-Token-With-Rust-Smart-Contracts.git
cd Personal-Token-With-Rust-Smart-Contracts
- Install the dependencies
npm install
- Compile this project
anchor build
- Run tests
anchor test