Code Monkey home page Code Monkey logo

matrixprotocol's Introduction

Matrix Protocol

This project is forked from set-protocol-v2.

Install

git clone https://github.com/gzliudan/MatrixProtocol
cd MatrixProtocol
yarn

Compile

yarn compile

Test

yarn test

Setup config file

Create config file .env from .env.example, and edit it:

cp .env.example .env
vi .env

Deploy

# for testnet mumbai
yarn deploy:mumbai

# for mainnet polygon
yarn deploy:polygon

Verify

# for testnet mumbai
yarn verify:mumbai

# for mainnet polygon
yarn verify:polygon

Setup admin roles

1. grant admin role to an account

# for testnet mumbai
yarn grantAdmin:mumbai ${ACCOUNT_ADDRESS}

# for mainnet polygon
yarn grantAdmin:polygon ${ACCOUNT_ADDRESS}

2. grant default admin role to an account

# for testnet mumbai
yarn grantDefaultAdmin:mumbai ${ACCOUNT_ADDRESS}

# for mainnet polygon
yarn grantDefaultAdmin:polygon ${ACCOUNT_ADDRESS}

3. revoke an account from admin role

# for testnet mumbai
yarn revokeAdmin:mumbai ${ACCOUNT_ADDRESS}

# for mainnet polygon
yarn revokeAdmin:polygon ${ACCOUNT_ADDRESS}

4. revoke an account from default admin role

# for testnet mumbai
yarn revokeDefaultAdmin:mumbai ${ACCOUNT_ADDRESS}

# for mainnet polygon
yarn revokeDefaultAdmin:polygon ${ACCOUNT_ADDRESS}

matrixprotocol's People

Contributors

gzliudan avatar wodann avatar

Watchers

 avatar  avatar

Forkers

wodann

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.