GithubHelp home page GithubHelp logo

codechain-helicopter's Introduction

This project is moved to cron-jobs.

codechain-helicopter Build Status

codechain-helicopter is a tool for airdropping CCC(CodeChain Coin) at the specified interval.

helicopter

Getting Started

Clone the source code

[email protected]:CodeChain-io/codechain-helicopter.git

Install dependencies

cd codechain-helicopter && yarn install

Modify the config file

Open config/default.json file and fill payer.payer, payer.passphrase and rpc_url fields.

  • payer.payer: the account who gives away CCC
  • payer.passphrase: the passphrase of the payer account.
  • rpc_url: CodeChain RPC URL

You can also adjsut reward and drop_interval.

Run

yarn start

codechain-helicopter's People

Contributors

haarpuia avatar kseo avatar majecty avatar sgkim126 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

codechain-helicopter's Issues

Cannot sign a parcel

SyntaxError: Unexpected token u in JSON at position 0
    at JSON.parse (<anonymous>)
    at Object.decrypt (/home/sgkim126/workspace/kodebox/app/helicopter/node_modules/codechain-keystore/lib/logic/crypto.js:53:21)
    at Object.<anonymous> (/home/sgkim126/workspace/kodebox/app/helicopter/node_modules/codechain-keystore/lib/model/keys.js:165:43)
    at step (/home/sgkim126/workspace/kodebox/app/helicopter/node_modules/codechain-keystore/lib/model/keys.js:32:23)
    at Object.next (/home/sgkim126/workspace/kodebox/app/helicopter/node_modules/codechain-keystore/lib/model/keys.js:13:53)
    at fulfilled (/home/sgkim126/workspace/kodebox/app/helicopter/node_modules/codechain-keystore/lib/model/keys.js:4:58)
    at process._tickCallback (internal/process/next_tick.js:68:7)

The exception is thrown on line 79.
@gnup any hint?
The error is thrown when on the commit be4288e too.

Exception handling when server connection fails

When getting account's information from the server is failed, helicopter exit with

(node:15620) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token F in JSON at position 0
    at JSON.parse (<anonymous>)
    at ClientBrowser._parseResponse (/home/ubuntu/codechain-helicopter/node_modules/jayson/lib/client/browser.js:121:21)
    at /home/ubuntu/codechain-helicopter/node_modules/jayson/lib/client/browser.js:96:10
    at node_fetch_1.default.then.then.text (/home/ubuntu/codechain-helicopter/node_modules/codechain-sdk/lib/rpc/index.js:43:24)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:15620) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:15620) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

This kind of situation should be handled.

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.