Skip to main content

Questions tagged [pinocchio]

2 votes
1 answer
32 views

In Pinocchio 0.10.1, Rent::get()?.minimum_balance(DATA_LEN) has been deprecated. So I am trying to use the Rent::try_minimum_balance() let rent = Rent::from_account_view(my_account)?;// fails to run ...
Russo's user avatar
  • 653
1 vote
1 answer
18 views

hey i am building a program on escrow and learning development in Pinocchio. I have implemented this helper to achieve that. SignerAccount::check(maker)?; MintAccount::check(mint_a)?; ...
Gaurang's user avatar
  • 135
2 votes
1 answer
58 views

In Pinocchio, I have tried to use Allocate(), but it seems to work only with new accounts, not existing PDAs. let seeds = [ Seed::from(b"my_pda_seed"), Seed::from(owner.key()....
Russo's user avatar
  • 653
2 votes
1 answer
32 views

I want to do the same thing in the latest version of Pinocchio. SignerAccount::check(maker)?; MintInterface::check(mint_a)?; MintInterface::check(mint_b)?; AssociatedTokenAccount::check(maker_ata_a, ...
Gaurang's user avatar
  • 135
0 votes
1 answer
30 views

hey i was coding in pinocchio and i am confuse in use case of such things in following function fn try_from(accounts: &'a [AccountView]) -> Result<Self, Self::Error> { let [owner, ...
Gaurang's user avatar
  • 135
0 votes
1 answer
43 views

i am starting developing solana programs in pinocchio, pure in rust. But in every platform i see different things which leads so many errors and confusions. Now can anyone help me regarding the proper ...
Gaurang's user avatar
  • 135
1 vote
1 answer
32 views

How can I generate a Go (Golang) client for my Solana program written in Rust ? I am writing my Solana program with Pinocchio and using Codama to generate a TypeScript client. Codama does not yet ...
Russo's user avatar
  • 653
0 votes
1 answer
33 views

In Pinocchio, after making a Token Mint and an Associated Token Account(ATA) , I was trying to mint some tokens. The error I got: instruction tries to borrow reference for an account which is already ...
Russo's user avatar
  • 653
2 votes
1 answer
53 views

In Pinocchio, after making a new Token Mint Account, I was trying to initialize an ATA(Associated Token Account). The error I got: Unknown program ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL Program ...
Russo's user avatar
  • 653
1 vote
1 answer
111 views

We’ve encountered a strange issue with our setup using Pinocchio + Mollusk SVM. A specific process in our program creates a Token22 NFT following this sequence: metadata pointer initialize → mint ...
Nabeel Naveed's user avatar
4 votes
1 answer
52 views

Something I find confusing is that when performing a CPI into another program using Pinocchio—for example, when using their system or token helpers—the target program isn’t explicitly included in the ...
Nabeel Naveed's user avatar
4 votes
1 answer
144 views

Let's say you're programming in regular anchor but you want to test out some pinocchio functionality. Is there a way to convert a solana_program::account_info object to a pinocchio::account_info type, ...
Henry E's user avatar
  • 3,046
2 votes
1 answer
155 views

Currently, my function requires Pinocchio::RefMut::map_split, but it seems that Pinochle has not yet implemented this function. What should I do? and code(https://github.com/raydium-io/openbook-dex/...
11332211's user avatar
  • 713
2 votes
2 answers
193 views

raydium amm cll serum_dex (https://github.com/raydium-io/raydium-amm/blob/2cda26883a44e536c6e48eed319e1206afde7a75/program/Cargo.toml#L30) I am now writing my contract with Pinocchio, does it mean I ...
11332211's user avatar
  • 713
1 vote
1 answer
74 views

I am writing a contract with Pinocchio but when building it, there was an error #[panic_handler] function required, but not found I don't know where the problem is, this problem didn't occur in my ...
11332211's user avatar
  • 713

15 30 50 per page