Thanks to visit codestin.com
Credit goes to github.com

Skip to content

poketapp/solana-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana Hackathon - MapTask Responder App

This project is one of two parts - this part reads "tasks" from the solana blockchain and completes them to receive rewards. The sister repo that creates tasks is at https://github.com/poketapp/solana-hackathon-2021.

The project comprises of:

  • An on-chain program to record location-based task completion on the solana blockchain
  • A mobile-friendly client to view location-based tasks and complete them and submit data back tot the blockchain

Quick Start

The following dependencies are required to build and run this example, depending on your OS, they may already be installed:

If this is your first time using Rust, these Installation Notes might be helpful.

Configure CLI

If you're on Windows, it is recommended to use WSL to run these commands

  1. Set CLI config url to localhost cluster
solana config set --url localhost
  1. Create CLI Keypair

If this is your first time using the Solana CLI, you will need to generate a new keypair:

solana-keygen new

Start local Solana cluster

This example connects to a local Solana cluster by default.

Start a local Solana cluster:

solana-test-validator

Note: You may need to do some system tuning (and restart your computer) to get the validator to run

Listen to transaction logs:

solana logs

Install npm dependencies

yarn

Build the on-chain program

npm run build:program-rust

Deploy the on-chain program

solana program deploy dist/program/helloworld.so

Run the JavaScript client

In the solana-react folder, run

yarn dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published