Giter Club home page Giter Club logo

rarityfren's Introduction

rarityfren

DISCLAIMER!

This Python script will spend FTM from your wallet in an automatic way. The script may have bugs and spend all of your FTM! I highly recommend setting up a dedicated wallet for this and keeping a low FTM balance in there (sufficient for adventuring but not your life savings)


Features

RarityFren automates many tedious tasks associated with playing Rarity by Andre Cronje. Including:

  • Adventuring once a day
  • Leveling Up
  • Claiming Gold
  • Scouting and completing the entry-level Cellar Dungeon

RarityFren interacts with the smart contracts published on Fantom directly, and does not interact with any outside "helper" contracts. You maintain control of your keys the whole time, thus it is non-custodial.

Prerequisites

  • Python 3
  • Package Installer for Python (pip)

Installation

  • (optional) Inside the rarityfren directory, create a virtual environment using python3 -m venv .venv, then activate it with source .venv/bin/activate
  • Install the necessary Python packages by executing pip3 install -r requirements.txt

Brownie Setup

  • Create a dedicated account on the console using brownie accounts new, enter the private key from your Metamask wallet (or similar). Edit the ADDRESS_USER value in adventure.py to match the public address.
  • Create a FTMScan API Key and save it to the FTMSCAN_API_KEY variable.
  • Create a dedicated network for interacting with the Fantom blockchain by entering the following: brownie networks add "Fantom" fantom chainid=250 host=https://rpc.ftm.tools explorer=https://api.ftmscan.com/api Note Brownie comes with a built-in Fantom network labeled "ftm-main", which is outdated and often returns bad data when queried.

Basic Use

  • (optional) activate your virtual environment
  • Run python3 adventure.py, unlock brownie account data using password, and watch your summoners go on their adventures

TO-DO

  • Add maximum gas flag
  • Load user's address and API key from env instead of hard-coding
  • Refactor functions, adventure.py is getting too big
  • Add expansion contracts
  • Explore automation of crafting, skills, and attribute increases
  • Add Rarity Open Mic
  • Add RarityForest

rarityfren's People

Contributors

bowtieddevil avatar

Stargazers

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

Watchers

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