Skip to content

DevHub Portal Product Contract (Hosted on NEAR Blockchain) – Includes other instances (e.g. Infrastructure, Events)

Notifications You must be signed in to change notification settings

NEAR-DevHub/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. cargo-near, to easily create testnet accounts, build and deploy contracts.
  2. NEAR CLI RS, to interact with the contract.

Building

From the root directory, run:

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

Running Tests

From the root directory, run:

cargo test

NOTE: integration tests automatically build the devhub-community-factory and
devhub they depend on.

Deploying

Using cargo-near, run the following command. Be sure to set your own account id and corresponding network.

cargo near deploy {{account.near}}
cd community-factory
cargo near deploy {{community.account.near}}

About

DevHub Portal Product Contract (Hosted on NEAR Blockchain) – Includes other instances (e.g. Infrastructure, Events)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published