项目作者: AlkemiNetwork

项目描述 :
API & web3 hot wallet service api
高级语言: JavaScript
项目地址: git://github.com/AlkemiNetwork/alkemi-earn-kyc-service.git
创建时间: 2020-10-11T07:54:03Z
项目社区:https://github.com/AlkemiNetwork/alkemi-earn-kyc-service

开源协议:MIT License

下载


alkemi-earn-kyc-service

GitHub release (latest SemVer)
GitHub Build Status
Twitter Follow

GitHub stars GitHub forks GitHub watchers GitHub followers

REST API service for exchanges to programatically add verified KYC addresses to the Alkemi Earn protocol via web3.

About

This project allows for exchange operators who are integrated with the Alkemi Earn protocol to add (KYC) verified customer addresses to the protocol.

Built with Feathers. An open source web framework for building modern real-time applications.

Getting Started

Important: the WALLET Public Address you set in your environment variables with WALLET_PRIVATE_KEY must be previously added by the Alkemi Earn protocol Admin, otherwise this service will fail.

  1. Make sure you have NodeJS and npm installed.

  2. Install your dependencies

    1. cd path/to/alkemi-earn-kyc-service
    2. npm install
  3. Set and load your environment variables

    1. export $(grep -v '^#' .env | xargs)
  4. Start your app

    1. npm start
  5. View Swagger Interface and OpenAPI spec by visiting http://localhost:3030

Testing

Simply run npm test and all your tests in the test/ directory will be run.

Run with Docker

  1. Set the Environment Variables in the DockerFile

    1. # Manually Set ENV variables see .env for working dry run example
    2. ENV HOST localhost:3030
    3. ENV WALLET_PRIVATE_KEY <value>
    4. # mainnet / ropsten / rinkeby / kovan
    5. ENV NETWORK <value>
    6. # infura.io
    7. ENV INFURA_ID <value>
    8. ENV INFURA_SECRET <value>
  2. Build the docker container with the local DockerFile

    1. docker build -t alkemi-earn-kyc-service .
  3. Run the Container

    1. docker run -d -p 3030:3030 --name alkemi-earn-kyc-container alkemi-earn-kyc-service

License

  1. MIT License
  2. Copyright (c) 2020 Alkemi
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in all
  10. copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. SOFTWARE.