solana-program-library
solana-program-library copied to clipboard
A collection of Solana-maintained on-chain programs
Similar to [this](https://github.com/solana-labs/solana-program-library/issues/3562) I am using Next 14.1.0 and the token-swap js package is broken, just by installing and importing few functions/variables/etc... i get the following error ``` ReferenceError: exports...
#### Problem Solana clap-v3 utils deprecated a number of functions with version 1.18. https://github.com/solana-labs/solana-program-library/pull/6278 temporarily suppresses the warnings from deprecated functions. #### Solution Remove the deprecated functions from the cli.
#### Problem Solana clap-v3 utils deprecated a number of functions with version 1.18. https://github.com/solana-labs/solana-program-library/pull/6278 temporarily suppresses the warnings from deprecated functions. #### Solution Remove the deprecated functions from the cli.
#### Problem The `IncreaseAdditionalValidatorStake` and `DecreaseAdditionalValidatorStake` instruction creators helpers that take the vote account require that you pass in the `transient_stake_seed`: https://github.com/solana-labs/solana-program-library/blob/c9eb289de8bc52930c109e0fba128d08e4948352/stake-pool/program/src/instruction.rs#L1325-L1334 And https://github.com/solana-labs/solana-program-library/blob/c9eb289de8bc52930c109e0fba128d08e4948352/stake-pool/program/src/instruction.rs#L1240-L1249 Since these instructions are usually meant...
#### Problem From [bji's comment](https://github.com/solana-labs/solana-program-library/pull/6205#issuecomment-1949909667): The DecreaseAdditionalValidatorStake instruction does not work despite the fact that the unit test succeeds. The stake program does not allow a stake account that has...
I believe this instruction has the wrong parameter name: https://github.com/solana-labs/solana-program-library/blob/559e2ec8634a7206422ab9660b8695f6b970dab1/token/program-2022/src/instruction.rs#L1694 As per the documentation on this instruction variant, this account is the mint authority: https://github.com/solana-labs/solana-program-library/blob/559e2ec8634a7206422ab9660b8695f6b970dab1/token/program-2022/src/instruction.rs#L379 Even though in the multi-sig...
The job is to unbundle the programs in SPL into their own repositories housing the code for the on-chain program, CLI, the generated JavaScript client (IDL, Kinobi description, and NPM...
This is a trend for Solana Labs/Solana Foundation produced command line programs -- they always require a ~/.config/solana/id.json file to exist, even for operations that do not require an id...
### Problem Implement a yield bearing token which rebases and the users balance increases and decreases based of on their token shares. Similarly how lido finances steth work where each...
Suppose Alice holds tokens A in a confidential extension (CE) and Bob holds tokens B also in a CE. The two parties wish to swap the two assets using an...