Skip to content

petersalomonsen/neardevhub-contract

 
 

Repository files navigation

NEAR DevHub Contract

Overview

The smart contract responsible for managing the communities, posts, and permissions made available via the NEAR DevHub frontend. The repository for the frontend widgets can be found here.

Getting Started

Prerequisites

Before starting, make sure you have the following installed:

  1. NEAR CLI RS, to deploy and interact with the contract.
  2. cargo-near, to easily create testnet accounts.

Building

From the root directory, run:

cd community
cargo near build
cd ../community-factory
./build.sh
cd ..
./build.sh

Running Tests

From the root directory, run:

cargo test

Deploying

Using NEAR CLI RS, run the following command. Be sure to set your own account id and corresponding network.

near contract deploy {{account.near}} use-file ./target/wasm32-unknown-unknown/release/devgovgigs.wasm without-init-call network-config {{env}}
near contract deploy {{community.account.near}} use-file ./target/wasm32-unknown-unknown/release/devhub_community_factory.wasm without-init-call network-config {{env}}

About

NEAR DevHub contract

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.9%
  • Shell 1.1%