Skip to content

Commune program, Members of Commune can trade goods and services. Sales tax will be collected which is utilized to implement the development proposals approved by the members.

Notifications You must be signed in to change notification settings

LoboVH/OnChain--Commune

Repository files navigation

OnChain--Commune with Anchor-SOLANA

This repo contains code for running and testing 'commune' project.

Getting Started

Use git clone https://github.com/LoboVH/OnChain--Commune.gitto get the files in this repository onto your local machine.

Run npm install to get all the dependencies

To Run locally

  1. If you're running solana for the first time, generate a wallet
     solana-keygen new
  1. You can use anchor CLI to build and emit an IDL, from which clients can be generated
    anchor build

Once run, you should see your build artifacts IDL, as usual, in your target/directory

3.Deploy the program by running

    anchor deploy

Update Program-Id in lib.rs and Anchor.toml

  1. Finally run the test, make sure to kill any instance of local validator started earlier
    anchor test

About

Commune program, Members of Commune can trade goods and services. Sales tax will be collected which is utilized to implement the development proposals approved by the members.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published