Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
2 answers
391 views

How would you go about cloning Pump.fun smart contracts?

I want to make a pump.fun clone, how would I go about rewriting the smart contracts that pump.fun uses, ie the token minting, bonding curve, adding and removing liquidity etc. How would I go about ...
Kelsey Wu's user avatar
0 votes
0 answers
25 views

how calculate the discriminator by the struct to resolve the command in the anchor project?

i got the discriminator by the command : anchor build. but i wonder how can i got this discriminator without the command. i search the source code and it use ${namespace}:${context} and hash-sha256. ...
user25616's user avatar
0 votes
2 answers
49 views

How to create a mapping on solana using PDA?

What's the solidity equivalent to implement a mapping(address => bool) in anchor for solana? I figured out the way to go is PDA, but I was only able to figure out how to generate a PDA using ...
Deepu Harry's user avatar
1 vote
0 answers
137 views

anchor-spl v0.30.1 solana-spl 1.18.17 error[E0308]: mismatched types

I'm building solana smart contract with anchor. anchor version is 0.30.1 solana-cli version is 1.18.17 first time, I built and deploy smart contract without any issue. But after I add this two lines, ...
Rex Dev's user avatar
  • 11
0 votes
1 answer
41 views

Can users pass Dummy State Accounts in Solana Program?

I'm working with a Solana program and I have the following code: #[derive(Accounts)] pub struct SomeStruct<'info> { #[account()] pub state: Account<'info, State>, .... } I'm ...
zOthix's user avatar
  • 101
1 vote
0 answers
34 views

Solana Smart contract automatic audit tool

I used soteria before to audit solana programs. But it was not updated and does not support latest anchor versions. If anyone knows automatic audit tool, hope to share your experience and knowledge ...
0xbear's user avatar
  • 11
2 votes
1 answer
108 views

Signer issues with anchor tests

i'm getting a weird signer error when running my tests; Error: Signature verification failed. Missing signature for public key [`6jAudYFBbfQS59oPNjYcMkqr9MqBf312T7oP6WSYRjsg`]. In this case, ...
Morgandril's user avatar