All Projects → dev-protocol → Protocol

dev-protocol / Protocol

Licence: mpl-2.0
⛓ Dev Protocol is an open source middleware for creator's sustainability.

Programming Languages

typescript
32286 projects
solidity
1140 projects

Projects that are alternatives of or similar to Protocol

Merkletreejs
🌱 Construct Merkle Trees and verify proofs in JavaScript.
Stars: ✭ 238 (+325%)
Mutual labels:  ethereum, smart-contracts, protocol
Set Protocol Contracts
🎛 Set Protocol Smart Contracts
Stars: ✭ 151 (+169.64%)
Mutual labels:  ethereum, smart-contracts, protocol
Outsmarting Smart Contracts
A repo with information about security of Ethereum Smart Contracts
Stars: ✭ 29 (-48.21%)
Mutual labels:  ethereum, smart-contracts
Pay Protocol
fixing the transition to a cashless world
Stars: ✭ 29 (-48.21%)
Mutual labels:  ethereum, protocol
Smart Contracts Example
Simple example of token market. Based on blockchain technology using Ethereum platform.
Stars: ✭ 37 (-33.93%)
Mutual labels:  ethereum, smart-contracts
Remix
This has been moved to https://github.com/ethereum/remix-project
Stars: ✭ 1,063 (+1798.21%)
Mutual labels:  ethereum, smart-contracts
Ethereum book
精通以太坊 (中文版)
Stars: ✭ 875 (+1462.5%)
Mutual labels:  ethereum, smart-contracts
Asset Token
Designed to represent a fungible asset as an ERC777 token
Stars: ✭ 33 (-41.07%)
Mutual labels:  ethereum, smart-contracts
Uniswap V2 Core
🎛 Core smart contracts of Uniswap V2
Stars: ✭ 889 (+1487.5%)
Mutual labels:  ethereum, smart-contracts
Learn Solidity
Code base for "Learn Solidity: Programming Language for Ethereum Smart Contracts" course in Tosh Academy & Blockchain Council
Stars: ✭ 44 (-21.43%)
Mutual labels:  ethereum, smart-contracts
Vyper.fun
Cryptozombies for Vyper: Learn Vyper by building games!
Stars: ✭ 42 (-25%)
Mutual labels:  ethereum, smart-contracts
Solidity
🔐 Ethereum smart contracts developed for the Hanzo Platform.
Stars: ✭ 46 (-17.86%)
Mutual labels:  ethereum, smart-contracts
Panvala
Sustain Ethereum Together
Stars: ✭ 27 (-51.79%)
Mutual labels:  ethereum, smart-contracts
Gdai.io
gDAI - Gas less DAI transfers by using GSN, Fulcrum and KyberNetwork
Stars: ✭ 26 (-53.57%)
Mutual labels:  ethereum, smart-contracts
Augmint Web
Augmint Web Frontend
Stars: ✭ 15 (-73.21%)
Mutual labels:  ethereum, smart-contracts
Aeternity
æternity: solving scalability problems by making sense of state-channels
Stars: ✭ 923 (+1548.21%)
Mutual labels:  ethereum, smart-contracts
Daox Contracts
Smart contracts for creating Daox-based fundraising organization
Stars: ✭ 31 (-44.64%)
Mutual labels:  ethereum, smart-contracts
Homework
HomeWork is an autonomous utility for finding, sharing and reusing home addresses for contracts.
Stars: ✭ 50 (-10.71%)
Mutual labels:  ethereum, smart-contracts
Graph Node
Graph Node indexes data from blockchains such as Ethereum and serves it over GraphQL
Stars: ✭ 884 (+1478.57%)
Mutual labels:  ethereum, protocol
Eth.social
An Ethereum dApp for posting social events.
Stars: ✭ 17 (-69.64%)
Mutual labels:  ethereum, smart-contracts

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

install

First, install this repository as an npm package.

> npm i -D @devprotocol/protocol

import

You can use the Dev Protocol interface by importing it from a Solidity file.

import {IAddressConfig} from "@devprotocol/protocol/contracts/interface/IAddressConfig.sol";
import {IPropertyGroup} from "@devprotocol/protocol/contracts/interface/IPropertyGroup.sol";

contract TestContract {
	function validatePropertyAddress(address _property) external view {
		IAddressConfig addressConfig = IAddressConfig(0x1D415aa39D647834786EB9B5a333A50e9935b796);
		IPropertyGroup propertyGroup = IPropertyGroup(addressConfig.propertyGroup());
		require(propertyGroup.isGroup(_property), "not property address");
	}
}

This is an example of logic that uses the PropertyGroup contract feature of the Dev Protocol to validate if it is a Property address.

The available interfaces can be found in "node_modules/@devprotocol/protocol/contracts/interface/".

AddressConfig holds the addresses of the contracts used in the Dev Protocol.

AddressConfig address
mainnet:0x1D415aa39D647834786EB9B5a333A50e9935b796
Ropsten:0xD6D07f1c048bDF2B3d5d9B6c25eD1FC5348D0A70

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

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

EditorConfig
vscode-eslint
solidity
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].