Questions tagged [pinocchio]
The pinocchio tag has no summary.
19 questions
2
votes
1
answer
32
views
How to get minimum balance(rent exempt lamports) from accounts in Pinocchio 0.10.1?
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 ...
1
vote
1
answer
18
views
help regarding validate signer and mint
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)?;
...
2
votes
1
answer
58
views
How to extend or resize PDA account size in Pinocchio
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()....
2
votes
1
answer
32
views
help in new version of pinocchio
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, ...
0
votes
1
answer
30
views
help regarding understanding program
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, ...
0
votes
1
answer
43
views
help regarding starting with pinocchio project
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 ...
1
vote
1
answer
32
views
How to generate a Go client from Pinocchio Rust?
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 ...
0
votes
1
answer
33
views
Instruction tries to borrow reference for an account which is already borrowed - Pinocchio
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 ...
2
votes
1
answer
53
views
An account required by the instruction is missing - during Token Account initiation
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 ...
1
vote
1
answer
111
views
TokenMetadata initialize ix fails with "Failed to reallocated account data" on solana sdk 3.0 crates
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 ...
4
votes
1
answer
52
views
Why do pinocchio system,token programs do not require the target program it self to be passed explicitly?
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 ...
4
votes
1
answer
144
views
How to convert a solana program account info into a pinocchio account info?
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, ...
2
votes
1
answer
155
views
Pinocchio::RefMut is missing the map_split function
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/...
2
votes
2
answers
193
views
Can Pinocchio call functions from projects written in Solana program?
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 ...
1
vote
1
answer
74
views
cargo build-sbf error
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 ...