smartstache / doorman Goto Github PK
View Code? Open in Web Editor NEWGeneral purpose Solana program to purchase a token for a set amount of SOL. Created to be used as an on-chain whitelist for a candy machine.
General purpose Solana program to purchase a token for a set amount of SOL. Created to be used as an on-chain whitelist for a candy machine.
Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1
Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 invoke [1]
Program 11111111111111111111111111111111 invoke [2]
Program 11111111111111111111111111111111 success
Program 11111111111111111111111111111111 invoke [2]
Program 11111111111111111111111111111111 success
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
Program log: Instruction: InitializeAccount
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3412 of 177975 compute units
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
Program log: token account owner: 9YNDu34ptYpFj3E7RrM8c7sCJGAPPdSMS7aJ4snbKM4D
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
Program log: Instruction: SetAuthority
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2028 of 148812 compute units
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success
Program log: mint token vault owner: 9YNDu34ptYpFj3E7RrM8c7sCJGAPPdSMS7aJ4snbKM4D
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]
Program log: Instruction: Transfer
Program log: Error: insufficient funds
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2403 of 131812 compute units
Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x1
Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 consumed 200000 of 200000 compute units
Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 failed: custom program error: 0x1
Translating error SendTransactionError: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1
at Connection.sendEncodedTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:6654:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Connection.sendRawTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:6613:20)
at async sendAndConfirmRawTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:8597:21)
at async Provider.send (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@project-serum/anchor/dist/cjs/provider.js:85:22)
at async Object.rpc [as initialize] (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@project-serum/anchor/dist/cjs/program/namespace/rpc.js:11:31)
at async performInit (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/scripts/initialize.js:84:13) {
logs: [
'Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 invoke [1]',
'Program 11111111111111111111111111111111 invoke [2]',
'Program 11111111111111111111111111111111 success',
'Program 11111111111111111111111111111111 invoke [2]',
'Program 11111111111111111111111111111111 success',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]',
'Program log: Instruction: InitializeAccount',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 3412 of 177975 compute units',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success',
'Program log: token account owner: 9YNDu34ptYpFj3E7RrM8c7sCJGAPPdSMS7aJ4snbKM4D',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]',
'Program log: Instruction: SetAuthority',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2028 of 148812 compute units',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA success',
'Program log: mint token vault owner: 9YNDu34ptYpFj3E7RrM8c7sCJGAPPdSMS7aJ4snbKM4D',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA invoke [2]',
'Program log: Instruction: Transfer',
'Program log: Error: insufficient funds',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA consumed 2403 of 131812 compute units',
'Program TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA failed: custom program error: 0x1',
'Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 consumed 200000 of 200000 compute units',
'Program 5yrRq1gXbirAK3wFLkNFhxeJ8Bv4e3YEyWxZQjQ1vqg1 failed: custom program error: 0x1'
]
}
(node:12773) UnhandledPromiseRejectionWarning: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1
at Connection.sendEncodedTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:6654:13)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async Connection.sendRawTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:6613:20)
at async sendAndConfirmRawTransaction (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@solana/web3.js/lib/index.cjs.js:8597:21)
at async Provider.send (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@project-serum/anchor/dist/cjs/provider.js:85:22)
at async Object.rpc [as initialize] (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/node_modules/@project-serum/anchor/dist/cjs/program/namespace/rpc.js:11:31)
at async performInit (/home/taimoor/Workspace/Softtik/Solana/whitelist/doorman/scripts/initialize.js:84:13)
(Use node --trace-warnings ...
to show where the warning was created)
(node:12773) 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:12773) [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.
I am receiving this error despite the fact that I have funded my token wallet along with tokens in it, and my phantom wallet already has a lot of sols in it. I don't understand where the issue is starting!
There is no command for create_candy_machine, and no candy-machine-cli.ts file in this project, how am I supposed to run this command?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.