Code Monkey home page Code Monkey logo

contracts's Introduction

Band Smart Contracts

Decentralized Data Governance Protocol

Solidity Ethereum Apache-2.0

Band Protocol is a protocol for decentralized data governance. This repository contains the implementation of Band Protocol with Solidity. We use Truffle as the development environment for compiling and testing the smart contracts. See whitepaper for more information regarding the high-level ideas of Band Protocol.

Overview

Band Protocol consists of multiple smart contracts and libraries working together. The figure below summarizes interaction between different smart contracts. Note that clear arrows represent inheritance relationship, while filled arrows represent association (has-a) relationship. See comments at the top of the smart contracts' source codes for more details.

band-overview

Line Count

To facilitate those who wonder, we have written a simple line-counting script, which can be executed from the root folder.

$ ./scripts/linecount.sh  # as of commit 43a9167b
Band's smart contract LOC (excluding /mock folder) ...
Blanks (^\s*$): 246
Pragmas (^pragma.*$): 32
Imports (^import.*$): 75
Comments (^\s*///.*$): 130
Code: 1525

Contributing

We highly encourage participation from the community to help with Band Protocol development. If you are interested in developing with Band Protocol or have suggestion for protocol improvement, please drop as a line or send as a pull request.

Installation

Make sure you have Node.js and Yarn installed, then:

$ yarn install

To run unit tests, simply run the truffle test command:

$ yarn run truffle test --network test

The smart contracts can be deployed using truffle command:

$ yarn truffle deploy
$ yarn truffle exec scripts/exec/challenge.js --network development

contracts's People

Contributors

evilpeach avatar sorawit avatar taobun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

contracts's Issues

A business proposal for adding a membership design

Hey Band Protocol, I'm proposing an on-chain membership idea for oracles. The idea is based on a recent EIP-3754, a vanilla NFT standard. Intead of charging fees in a pay-as-you-go fashion, a one-time membership fee can be charged and access to data fees can be made unlimited or limited by time span. The membership can be transferred as the owner wills. The business model is thus made much more flexible.

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.