@evrynetlabs/warp-contract

2.0.2 • Public • Published

Warp Protocol Contract

A set of contracts using in the Warp protocol to lock and unlock asset including

  • Evrynet Original Credit
  • Stellar Original Credit
  • Evrynet native asset

Usage

Warp agents

  1. Deploy the custodian contracts while specifying a provider address of your choice
  2. Add the asset to whitelist according to its type
    • Stellar Original Credit: asset that is created on Evrynet only for representing a credit on the Stellar
    • Evrynet Original Credit: other credits that is created in Evrynet
    • Evrynet native asset
  3. Use the contract addresses to start a warp server (see github.com/Evrynetlabs/warp for more details)

Warp users

  1. Allow the custodian contracts to operate your Evrynet account by calling setApprovalForAll function of the credit contract (see github.com/Evrynetlabs/credit-contract for more details)

Installing / Getting started

$ npm install @evrynetlabs/warp-contract

Developing

Build With

Prerequisites

Setting up Dev

$ npm install -g truffle 
$ npm install -g solc@0.5.0 
$ yarn install

Building

$ yarn run build

Versioning

We use a SemVer for versioning. Please see the release.

Test

$ yarn run test

Style guide

We use the following command to maintain the formatting and linting.

yarn run solhint
yarn run prettier:solidity

Licensing

ERC20 Adapter is licensed under the Open Software License ("OSL") v. 3.0, also included in our repository in the LICENSE file.

Package Sidebar

Install

npm i @evrynetlabs/warp-contract

Weekly Downloads

4

Version

2.0.2

License

OSL-3.0

Unpacked Size

3.85 MB

Total Files

29

Last publish

Collaborators

  • gieno
  • iamliqiang
  • timothy_prac
  • devops-team-lightnet
  • kanoon
  • pk-lightnet