Giter Club home page Giter Club logo

faucet's Introduction

faucet

General Faucet for Cosmos SDK testnet. There are two versions: Cosmos and Evmos

preview

Prerequisite

node -v
v16.15.0

Installation

  • clone code:
git clone https://github.com/ping-pub/faucet.git
  • setup configs, you have to change everything you need in ./config.js
{
   "port": 80,  // http port 
   "db": {
       "path": "~/.faucet.db" // db for frequency checker(WIP)
   }, 
   "blockchain": {
       "rpc_endpoint": "https://rpc.sentry-02.theta-testnet.polypore.xyz"
   },
   "sender": {
       "mnemonic": "surround miss nominee dream gap cross assault thank captain prosper drop duty group candy wealth weather scale put",
       "option": {
           "hdPaths": ["m/44'/118'/0'/0/0"],
           "prefix": "cosmos"  //address prefix
       }
   },
   "tx": {
       "amount": {
           "denom": "uatom",
           "amount": "10000" // how many does tx send for each request.
         },
       "fee": {
           "amount": [
               {
                 "amount": "1000",
                 "denom":  "uatom"
               }
           ],
           "gas": "200000"
       },
       "frequency_in_24h": "1"
   },
   "project": {
       "testnet": "Ping Testnet", // What ever you want, recommend: chain-id, 
       "logo": "https://ping.pub/logo.svg",
       "deployer": ""
   },
   // request limitation
   limit: {
       // how many times each wallet address is allowed in a window(24h)
       address: 1, 
       // how many times each ip is allowed in a window(24h),
       // if you use proxy, double check if the req.ip returns client's ip.
       ip: 10 
   }
}
  • Run faucet
node --es-module-specifier-resolution=node faucet.js

Test

visit http://localhost:80

80 is default, you can edit it in the config.json

Donation

Your donation will help us make better products. Thanks in advance.

  • Address for ERC20: USDC, USDT, ETH
0x88BFec573Dd3E4b7d2E6BfD4D0D6B11F843F8aa1
  • You can donate any token in the Cosmos ecosystem: here

faucet's People

Contributors

liangping avatar lesterli avatar uptsmart avatar mennataboelnaga avatar

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.