Giter Site home page Giter Site logo

daycare_manager's Introduction

Daycare Manager

Deployed at 0xf1bf34E46ECf465591B7a7fA9635E4C583174fa3

Framework to allow users to create permissionless bots to adventure time You can register your summoners with registerDaycare() and will pay a fee of 0.1 FTM per summoner per day.

You will need to approve the adventure time contract 0x0D4C98901563ca730332e841EDBCB801fe9F2551 in order to allow users to adventure on your behalf

Anybody will be able to adventure on your behalf in a trustless manner, and in doing so, will receive the 0.1 FTM fee.

Advanced coders will be able to generate scripts/bots that can adventure on behalf of users by calling executeDaycare() Hopefully the economic incentives add up.

Feel free to deploy to re-deploy the contract with a different fee if the price of FTM varies significantly.

Guide

  1. Go to rarity contract and approve the adventure time contract to adventure() with your summoner: Under approve enter:
  • to: 0x0D4C98901563ca730332e841EDBCB801fe9F2551
  • tokenId: the token ID for your summoner
  1. Calculate the cost to enter day care. This will be 0.1 FTM per day. For example, for 7 days, this will be 0.7 FTM.

  2. Go to daycare manager and register your summoner for day care Under registerDaycare enter:

  • payableAmount: Enter the calculated fee here ie 0.7
  • summonerId: Array of tokenIDs. For a single token, enclose this in square brackets eg. [110775]
  • days: Array of days. With the above example, you will need to enter [7]

Notes

  • You cannot unregister once you have registered -> I would recommend only registering small number of days at a time
  • This isn't audited.
  • adventureTime.adventureTime(_summonerIds) will revert if ANY of the summoner ids is invalid.

daycare_manager's People

Contributors

abdullathedruid 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.