Giter Site home page Giter Site logo

ziablenkob / staking-contract-v1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aspecta-ai/staking-contract-v1

0.0 0.0 0.0 256 KB

The staking contract for Aspecta Builder Economy

Home Page: https://bnb.aspecta.ai

JavaScript 1.18% TypeScript 12.10% Solidity 86.72%

staking-contract-v1's Introduction

Aspecta Staking Contract V1

Introduction

This contract implements the Aspecta staking contract. Users can stake on their champion devs or projects and earn rewards based on their Build Index. Devs and projects also earn rewards for being staked and maintaining good Build Index.

Setup Environment

  1. Install Rust
curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh
  1. Install Forge (This may take a long time, 30 minutes to 1 hour)
cargo install --git https://github.com/foundry-rs/foundry forge --bins --locked
  1. Install the LATEST Node.js LTS
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc  # or ~/.zshrc
nvm ls-remote  # list all available versions
nvm install xxxxxx  # e.g. nvm install v20.14.0
  1. Install Node.js Modules
npm install
  1. Create .env file and configure environment variables, e.g. .env.template

Run Unit Tests

npm run test

Deploy Contract

npm run deploy

Verify Contract

npx hardhat verify --network mainnet PROXY_ADDRESS

Upgrade Contract

You need to modify the existing contract, instead of creating a new contract.

  1. Upgrade the AspectaBuildingPoint contract
npm run upgrade-bp
  1. Upgrade the AspectaDevPool contract
npm run upgrade-bc
  1. Upgrade the AspectaDevPoolFactory contract
npm run upgrade-pf
  1. Upgrade the PoolFactoryGetters contract
npm run upgrade-fg

staking-contract-v1's People

Contributors

dingning-aspecta avatar cathera avatar daveliuyabo avatar wanting-aspecta avatar sirui-aspecta avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.