Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/riteshpuvvada/personal-token-with-rust-smart-contracts

Create your personal token with rust smart contracts
https://github.com/riteshpuvvada/personal-token-with-rust-smart-contracts

blockchain-technology cryptocurrency decentralized devnet rust-lang solana-program solana-token

Last synced: 27 days ago
JSON representation

Create your personal token with rust smart contracts

Awesome Lists containing this project

README

        


Solana Rust Token 💰




This application written Rust using [Anchor âš“](https://project-serum.github.io/anchor/getting-started/introduction.html)

## Setting up the Environment:

* Rust Installation

```bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source $HOME/.cargo/env
rustup component add rustfmt
```

* Solana Installation

```bash
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

```bash
npm install -g mocha
```

* [Anchor âš“](https://project-serum.github.io/anchor/getting-started/introduction.html) Installation

```bash
npm i -g @project-serum/anchor-cli
```

* And we can use Cargo to install CLI

```bash
cargo install --git https://github.com/project-serum/anchor --tag v0.17.0 anchor-cli --locked
```
---

## Configurations on Solana CLI

```bash
solana config get
```

Configure `RPC URL`

```bash
solana config set --url localhost
```

Wallet address and airdrop some **SOL**

```bash
solana address
```

* For more comprehensive details of your account

```
solana account
```
---

## Getting Started

* Clone this repository

```bash
git clone https://github.com/RiteshPuvvada/Personal-Token-With-Rust-Smart-Contracts.git

cd Personal-Token-With-Rust-Smart-Contracts
```

* Install the dependencies

```bash
npm install
```

* Compile this project

```bash
anchor build
```

* Run tests

```bash
anchor test
```