Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@devprtcl/protocol

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@devprtcl/protocol

Securitize for Internet assets

  • 3.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Weekly downloads
 
Created
Source

Dev Protocol

CI Status code style code style: prettier

Dev Protocol

This repository is the place to develop smart contracts for Dev Protocol.

How to use

Deploy a mock to your local network

First, install this repository as an npm package.

> npm i -D @dev-protocol/protocol

Prepare a local network using Ganache, etc.

Finally, run the following command to deploy a mock.

> dev-protocol mock --host 127.0.0.1 --port 7545

How to contribute:

Read the contributing guide, and create PR when you have time. 🧚✨

How to setup

Executing the following command will compile each contract.

git clone https://github.com/dev-protocol/protocol.git
cd protocol
yarn
yarn generate

run the following command to test each contract.

yarn test

create a .env file like following, and run the command to deploy a mock. ( Beforehand, please prepare a local network using Ganache, etc. )

# .env
ETHEREUM_MOCK_HOST=127.0.0.1
ETHEREUM_MOCK_PORT=7545
yarn deploy mock

If you use Visual Studio Code, we recommend that you install the following plug-ins:

EditorConfig
vscode-eslint
solidity

How to publish the first policy

First, deploy this protocol:

yarn deploy <network>

Then, calling PolicyFactory.create using Truffle console:

npx truffle console --network <network>
# Truffle console is launched
> Promise.all([PolicyFactory.deployed(), TheFirstPolicy.deployed()]).then(([factory, policy]) => factory.create(policy.address))

FAQs

Package last updated on 24 Nov 2020

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