项目作者: LibreCash

项目描述 :
Smart-contracts of Libre project. Docs: https://librecash.github.io/contracts/
高级语言: JavaScript
项目地址: git://github.com/LibreCash/contracts.git
创建时间: 2018-01-22T14:01:43Z
项目社区:https://github.com/LibreCash/contracts

开源协议:GNU Affero General Public License v3.0

下载



LibreBank logo




LibreBank Contracts

LibreBank smart-contracts repository.

Contents:

  • contracts/ - contacts folder

    • /interfaces - interfaces and abstract-classes (minimal version used by our DAPP’s and external)
    • /library - library and service-function’s contracts folder,
    • /oracles - Oraclize-based exchanger ETH rate oracles contracts. And
    • /oracles/mock - Mocked version of oracles to test it in local (eg. on testrpc)
    • /token - LibreToken (aka LBRS) and LibreCash ERC20 standard tokens.
    • /zeppelin - part of OpenZeppelin contracts used as dependencies.
  • migrtations/ - deploy and migrations scripts/

  • test/ - smart-contract tests

Getting Started

  1. git clone https://github.com/LibreCash/contracts && cd contracts
  2. npm install

Deploy contracts

To deploy contracts in network run:
a) To main or test network (eg. Rinkeby) - deploy Oraclize-based oracles contracts.

  1. truffle migrate --network mainnet

b) To localnode (eg. testrpc or local geth node) or for testing purposes - deloy contracts and mocked version of oracles.

  1. truffle migrate --network development

License

Code released under the AGPL-3.0.