Giter Club home page Giter Club logo

prometheans-mint-bot's Introduction

prometheans-mint-bot

A typescript mint bot for prometheans

Setup

Requires a websocket provider, NodeJS and yarn

Install dependencies

yarn

Compile contract types:

yarn compile

Get help:

yarn cli --help

Environment

If you want to set your private key as an .env file:

cp .env.example .env

Add your private key after PRIVATE_KEY=. Otherwise you will need to pass it in the command line.

Example mint one

yarn cli mint one --ws ws://localhost:8546 --fee 40 --max-base-fee 30 --monk-rank 11

Mint one monk rank 11 (ember 55) using a local node, a max priority fee of 40 gwei, but don't mint if base fee is over 30

yarn cli mint one --ws ws://localhost:8546 --fee 40 --max-base-fee 30 --monk-rank 9 --monk-level 3

Mint one monk rank 9 level 3 (ember 43) using a local node

Example mint one with flashbot

yarn cli mint one --ws ws://localhost:8546 --fee 40 --max-base-fee 30 --monk-rank 11 --flashbot 0.005

Mint one monk rank 11 (ember 55) using a local node, a max priority fee of 40 gwei, but don't mint if base fee is over 30, use a flashbot and tip the validator 0.005 ETH

Flashbot / safe mint

A contract is provided that will revert if the desired ember level is not achieved. This allows minting by a relay, which will not include the transaction while it reverts, or simply as a way to full send but pay ~1/3 gas costs for a revert. This comes at a cost of an additional 25K gas, making the total mint cost ~100K rather than ~75K.

Deploy

yarn hardhat deploy --network mainnet --tags deploy
yarn hardhat deploy --network mainnet --tags verify

This contract has been deployed to:

prometheans-mint-bot's People

Contributors

0xflicker avatar ricp avatar

Stargazers

Chopper avatar James W. avatar  avatar Ethan Hunsaker avatar Khoo Wu Chuan avatar

Watchers

 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.