Skip to content

kursaderduhan/Project_Book

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Near-Project-Book

This project is a simple projectstore on Near blockchain. Users can post their ideas, review ideas and donate to the owner if they want.

You can watch this video for use. loom video

Installation

git clone https://github.com/kursaderduhan/Project_Book.git
cd Project_Book
yarn

How to Use Projectbook Smart Contract

First login to your account using near cli.

near login

Build and deploy the smart contract.

yarn build:release
near dev-deploy ./build/release/singleton.wasm

Export the development account to the $CONTRACT

export CONTRACT=<YOUR_DEV_ACCOUNT_HERE>

Create a Idea.

near call $CONTRACT addIdea '{"idea": "Car_Rental"}' --accountId <Your_Testnet_Account_Here>

List All Ideas.

near view $CONTRACT getIdeas

Call Idea With Id.

near view $CONTRACT getIdea '{"id": "<Project_ID_here>"}'

Donate To The Owner Of The Idea.

near call $CONTRACT donation '{"idea": "<project_id_here>"}' --accountId <your_testnet_account_here> --amount 2

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors