New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

maci-server

Package Overview
Dependencies
Maintainers
1
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maci-server

[![NPM Package][server-npm-badge]][server-npm-link]

  • 1.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
27
decreased by-53.45%
Maintainers
1
Weekly downloads
 
Created
Source

NPM Package

Local Development

Setup

Follow instruction to setup environment and dependency, then

docker build -t maci-node:v0.5 - < LightDockerfile
cd docker
./setup.sh

Development

### Setup
# docker/docker-compose.yml: manually replace ETH_PROVIDER from 127.0.0.1 to docker network ip
# server/docker.sh: manually replace SCRIPT location to local maci repo location

### In one terminal
# for v1.0
cd contracts && npm run hardhat
# for v0.10
cd contracts && npm run ganache

### In second terminal
cd server && ./docker.sh -u
# whenever modified the code, just restart the docker instance to take effect
cd server && ./docker.sh -ud

### In third terminal
# for v1.0
cd server && ./test.sh
# for v0.10
cd server && ./test_v0_10.sh

### turnoff docker after finish
cd server && ./docker.sh -d

Simulate Production Environment

In real production, we will replace the hardhat local testnet by real ethereum compatible network

Setup zkeys

#### setup zkeys if you haven't done it before
cd server && ./docker.sh -u # then Ctrl-C
# login into docker
./docker.sh -l
# now gen_zkey inside docker if you haven't setup zkeys
cd ~/maci/cli && ./gen_zkey.sh

Development

### In one terminal
cd server && ./docker.sh -u

## In second terminal
cd server && ./docker.sh -l
# now in docker
# for v1.0
cd ~/maci/contracts && npm run hardhat
# for v0.10
cd ~/maci_v0_10/contracts && npm run ganache

### In third terminal, admin role
cd server && ./docker.sh -l
# now in docker
cd ~/maci/server
# run any commands for admin, e.g.
# v1.0
./admin.sh deploy
./admin.sh store 
# v0.10
./admin_v0_10.sh deploy
./admin_v0_10.sh store

### In fourth terminal, user role
cd server 
# run any commands for user, e.g.
# v1.0
./user.sh signup -p $pk -x $maci
# v0.10
./user_v0_10.sh signup -p $pk -x $maci

FAQs

Package last updated on 20 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc