Giter Site home page Giter Site logo

willy-wonka's Introduction

Purpose

Mint candy machine NFTs from your CLI. Use your preferred rpc provider. Avoid rage quitting because the candy machine GUI fails.

Installation

cd ts
yarn
tsc
npm link

Use

  1. Find the public key for the candy machine you want to mint
willy-wonka search -k /Users/crisp/.config/solana/id.json -u https://api.devnet.solana.com "pixel dude*"
  1. Check when it drops
 willy-wonka wen -k /Users/crisp/.config/solana/id.json -u https://api.devnet.solana.com G5kxQtRjE9saZruweUbbwHhaJi4okRoxbGNQVrh94oCN
  1. Start minting scripts ~X minutes before drop
willy-wonka mint -k /Users/crisp/.config/solana/id.json -u https://api.devnet.solana.com G5kxQtRjE9saZruweUbbwHhaJi4okRoxbGNQVrh94oCN

willy-wonka's People

Contributors

crispheaney avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

willy-wonka's Issues

Candy Machine v2

Hi would like to know if you have some ideas how to mint with the cli on the candy machine v2

Minting Fails: custom program error: 0x0

Minting fails 100% of the time, while checking if all items are redeemed already, I get the following output:

Items available: 10000
Items redeemed: 3782
All items have been redeemed

-> Even though clearly not all items have been redeemed.

If I just pass the statement checking if all items are minted, I get this:

Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0
    Program 11111111111111111111111111111111 invoke [1]
    Create Account: account Address { address: 7MDVuMFAWm4SuvA2aPV9iqjXFbUpDRBoSubbEBMidBfT, base: None } already in use    Program 11111111111111111111111111111111 failed: custom program error: 0x0
Translating error SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0
    at Connection.sendEncodedTransaction (E:\Code\Solana\willy-wonka-master\ts\node_modules\@solana\web3.js\lib\index.cjs.js:4964:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Connection.sendRawTransaction (E:\Code\Solana\willy-wonka-master\ts\node_modules\@solana\web3.js\lib\index.cjs.js:4923:20)
    at async Object.sendAndConfirmRawTransaction (E:\Code\Solana\willy-wonka-master\ts\node_modules\@solana\web3.js\lib\index.cjs.js:6907:21)
    at async Provider.send (E:\Code\Solana\willy-wonka-master\ts\node_modules\@project-serum\anchor\dist\cjs\provider.js:84:22)
    at async Object.rpc [as mintNft] (E:\Code\Solana\willy-wonka-master\ts\node_modules\@project-serum\anchor\dist\cjs\program\namespace\rpc.js:11:31) {
  logs: [
    'Program 11111111111111111111111111111111 invoke [1]',
    'Create Account: account Address { address: 7MDVuMFAWm4SuvA2aPV9iqjXFbUpDRBoSubbEBMidBfT, base: None } already in use',
    'Program 11111111111111111111111111111111 failed: custom program error: 0x0'
  ]
}
SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x0
    at Connection.sendEncodedTransaction (E:\Code\Solana\willy-wonka-master\ts\node_modules\@solana\web3.js\lib\index.cjs.js:4964:13)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Connection.sendRawTransaction (E:\Code\Solana\willy-wonka-master\ts\node_modules\@solana\web3.js\lib\index.cjs.js:4923:20)
    at async Object.sendAndConfirmRawTransaction (E:\Code\Solana\willy-wonka-master\ts\node_modules\@solana\web3.js\lib\index.cjs.js:6907:21)
    at async Provider.send (E:\Code\Solana\willy-wonka-master\ts\node_modules\@project-serum\anchor\dist\cjs\provider.js:84:22)
    at async Object.rpc [as mintNft] (E:\Code\Solana\willy-wonka-master\ts\node_modules\@project-serum\anchor\dist\cjs\program\namespace\rpc.js:11:31) {
  logs: [
    'Program 11111111111111111111111111111111 invoke [1]',
    'Create Account: account Address { address: 7MDVuMFAWm4SuvA2aPV9iqjXFbUpDRBoSubbEBMidBfT, base: None } already in use',
    'Program 11111111111111111111111111111111 failed: custom program error: 0x0'
  ]
}

What I tried was upgrading the dependencies as well as doing a fresh pull of the repo.
This started occurring out of nowhere and worked fine before. I assume something on-chain changed.

Any info/hints/solutions on this matter would be greatly appreciated.

Not really an issue

Hey, I'm on a similar journey but stuck on a few roadblocks with aerweave and candymachine. Any chance to have a discord chat going on when you got time?

Search won't cut off when reaching number of configs

When it determines the number of configs at the start,
image
it attempts to scan past this number:
image
and then errors:
(node:32908) UnhandledPromiseRejectionWarning: Error: Invalid bool: 32 at WrappedLayout.decodeBool [as decoder] (C:\Users\*\Documents\Projects\willy-wonka\ts\node_modules\@project-serum\borsh\dist\lib\index.js:124:11) at WrappedLayout.decode (C:\Users\*\Documents\Projects\willy-wonka\ts\node_modules\@project-serum\borsh\dist\lib\index.js:62:21) at Structure.decode (C:\Users\*\Documents\Projects\willy-wonka\ts\node_modules\buffer-layout\lib\Layout.js:1234:32) at Structure.decode (C:\Users\*\Documents\Projects\willy-wonka\ts\node_modules\buffer-layout\lib\Layout.js:1234:32) at AccountsCoder.decode (C:\Users\*\Documents\Projects\willy-wonka\ts\node_modules\@project-serum\anchor\dist\cjs\coder\accounts.js:36:23) at C:\Users\*\Documents\Projects\willy-wonka\ts\build\cli.js:193:63 at Array.reduce (<anonymous>) at C:\Users\*\Documents\Projects\willy-wonka\ts\build\cli.js:191:37 at Generator.next (<anonymous>) at fulfilled (C:\Users\*\Documents\Projects\willy-wonka\ts\build\cli.js:25:58) (Use node --trace-warnings ...to show where the warning was created) (node:32908) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:32908) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Might be because there's no cutoff?

All items have been redeemed

Candy machine live date: Sun Oct 03 2021 10:00:00 GMT+0200 (Central European Summer Time)
Today's date: Wed Nov 24 2021 16:35:50 GMT+0100 (Central European Standard Time)
Items available: 1300
Items redeemed: 92
All items have been redeemed

I just tried the mint function of willy-wonka on a free live mint, and it's telling me all items have been redeemed. Only 92/1300 had been claimed at the time of running the tool. Am I doing something wrong?

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.