Code Monkey home page Code Monkey logo

auto-top-up's Introduction

Gelato Auto Top Up

Auto Top Up multiple ETH addresses automatically once they go below a certain ETH balance threshold.

Description

Deploy your own AutoTopUp Instance using the AutoTopUpFactory, send some ETH to it and define which addresses to monitor, below which balance you want to auto top them up and how much to top each address up respectively.

Addresses

Mainnet:

Ropsten:

Tutorial - Deploy your own AutoTopUp Contract that tops up multiple addresses automatically on your behalf:

  1. Visit the AutoTopUpFactory Page on Etherscan
  2. Connect to your Web3 Wallet and click newAutoTopUp
  3. Fill in the details of newAutoTopUp.
    1. newAutoTopUp: How much ETH to deposit in your individual AutoTopUp Contract
    2. _receivers: An array of addresses whose balances you want to monitor
    3. _amounts: An array of amounts that define with how much ETH you want these respective addresses to be topped up
    4. _balanceThreshold: An array of amounts that define below which balances you want the respective addresses to be topped up with the respective amount
  4. Click Write and submit the transaction
  5. Git clone this repo and run npx hardhat verify --network mainnet {YOUR_AUTO_TOP_UP_ADDRESS} "0x3CACa7b48D0573D793d3b0279b5F0029180E83b6" to verify your AutoTopUp contracts address on Etherscan
  6. If you want to stop one of the auto topus, visit your AutoTopUp instance on Etherscan and input the receiver address in the _stopAutoPay function

Local Setup

  1. Put in your ALCHEMY_ID in .env
  2. Run yarn

Tests

Run: yarn test

auto-top-up's People

Contributors

gitpusha avatar hilmarx avatar

Watchers

 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.