Solana

Latest version: v0.34.2

Safety actively analyzes 638388 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 6

0.30.0

Changed

Use latest Solders [(352)](https://github.com/michaelhly/solana-py/pull/352)

0.29.2

Changed

Relaxed websockets dependency [(347)](https://github.com/michaelhly/solana-py/pull/347)

0.29.1

Fixed

Fix accidentally ignoring tx_opts in `send_transaction` methods [(343)](https://github.com/michaelhly/solana-py/pull/343)

0.29.0

Added

- Add VersionedTransaction support to `send_transaction` and `simulate_transaction` methods [(334)](https://github.com/michaelhly/solana-py/pull/334)
- Support VersionedMessage in `get_fee_for_message` methods [(337)](https://github.com/michaelhly/solana-py/pull/337)

Changed

- Remove redundant classes and modules ([329](https://github.com/michaelhly/solana-py/pull/329), [#335](https://github.com/michaelhly/solana-py/pull/335) and [#338](https://github.com/michaelhly/solana-py/pull/338)):
- Remove `PublicKey`, in favour of `solders.pubkey.Pubkey`.
- Remove `AccountMeta` in favour of `solders.instruction.AccountMeta`.
- Remove `TransactionInstruction` in favour of `solders.instruction.Instruction`.
- Remove `Keypair` in favour of `solders.keypair.Keypair`. Your code will need to change as follows:
- `my_keypair.public_key` -> `my_keypair.pubkey()`
- `my_keypair.secret_key` -> `bytes(my_keypair)`
- `my_keypair.seed` -> `my_keypair.secret()`
- `my_keypair.sign(msg)` -> `my_keypair.sign_message(msg)`
- `Keypair.from_secret_key(key)` -> `Keypair.from_bytes(key)`
- Remove `Message` in favour of `solders.message.Message`.
- Remove `system_program` in favour of `solders.system_program`. Note: where previously a params object like `AssignParams` called a field `program_id`, it now calls it `owner`.
- Remove `sysvar` in favour of `solders.sysvar`. The constants in `solders.sysvar` have short names, so instead of `solana.sysvar.SYSVAR_RENT_PUBKEY` you'll use `solders.sysvar.RENT`.
- Remove `solana.blockhash.Blockhash` in favour of `solders.hash.Hash`. Note: `Blockhash(my_str)` -> `Hash.from_str(my_str)`.
- Remove `solana.transaction.TransactionSignature` newtype. This was unused - solana-py is already using `solders.signature.Signature`.
- Remove constant `solana.transaction.SIG_LENGTH` in favour of `solders.signature.Signature.LENGTH`.
- Remove unused `solana.transaction.SigPubkeyPair`.
- Use latest solders [(334)](https://github.com/michaelhly/solana-py/pull/334)
- Use new `solders.rpc.requests.SendRawTransaction` in `send_raw_transaction` methods [(332)](https://github.com/michaelhly/solana-py/pull/332)

0.28.1

Fixed

Fix conversion of MemcmpOpts in `get_program_accounts` methods [(328)](https://github.com/michaelhly/solana-py/pull/328)

0.28.0

Changed

- Use latest `solders`. Note that the parsed fields of jsonParsed responses are now dicts rather than strings. [(318)](https://github.com/michaelhly/solana-py/pull/318)
- Remove `requests` dependency [(315)](https://github.com/michaelhly/solana-py/pull/315)

Fixed

- Fix flakiness in token client transactions [(314)](https://github.com/michaelhly/solana-py/pull/314)

Page 2 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.