Skip to content

Latest commit

 

History

History
230 lines (135 loc) · 10.1 KB

CHANGELOG.md

File metadata and controls

230 lines (135 loc) · 10.1 KB

Changelog

[0.25.0] - 2022-06-21

Fixed

  • Use latest Solders version to make objects pickleable again (#252).

Changed

  • Updated httpx to fix critical vulnerability (#248).
  • Updated pytest, websockets, pytest-docker, pytest-asyncio to latest. (#254).
  • Updated apischema to latest. (#254).

Added

  • Added get_latest_blockhash RPC Call. (#254).
  • Added get_fee_for_message RPC Call. (#254).
  • Added confirmation strategy which checks if the transaction has exceeded last valid blockheight. (#254).
  • Added asyncio_mode = auto in pytest.ini. (#248).
  • Added an optional verify_signature bool when transaction.serialize() is called (#249).
  • Added Memo program (#249).

[0.24.0] - 2022-06-04

Changed

  • Use solders under the hood for keypairs and pubkeys (#237).
  • Remove deprecated Account entirely (#238).
  • Use solders under the hood for Message (#239).
  • Remove unused and very old instruction.py file (#240).
  • Default to client's commitment in confirm_transaction, send_transaction and the Token client (#242).
  • Use solders under the hood for Transaction (#241). BREAKING CHANGES:
    • Transaction.__init__ no longer accepts a signatures argument. If you want to construct a transaction with certain signatures, you can still use Transaction.populate.
    • Transaction.add_signer has been removed (it was removed from web3.js in September 2020).
    • The signatures attribute of Transaction has been changed to a read-only property.
    • Where previously a "signature" was represented as bytes, it is now expected to be a solders.signature.Signature. This affects the following properties and functions: Transaction.signature, Transacton.signatures, Transaction.add_signature, Transaction.populate
    • The keypairs in Transaction.sign_partial are now only allowed to be Keypair objects. Previously Union[PublicKey, Keypair] was allowed.
    • The .signatures property of an unsigned transaction is now a list of solders.signature.Signature.default() instead of an empty list.
  • Use solders under the hood for system instructions (#243)

Added

  • Expose client.commmitment as a property like in web3.js (#242).

[0.23.3] - 2022-04-29

Fixed

[0.23.2] - 2022-04-17

Changed

  • Relax typing-extensions contraint (#220)

[0.23.1] - 2022-03-31

Fixed

  • Fix str seed input for sp.create_account_with_seed (#206)

Changed

  • Update jsonrpcserver dependency (#205)

[0.23.0] - 2022-03-06

Added

  • Implement __hash__ for PublicKey (#202)

[0.22.0] - 2022-03-03

Added

  • Add default RPC client commitment to token client (#187)
  • Add cluster_api_url function (#193)
  • Add getBlockHeight RPC method (#200)

Changed

  • Replace base58 library with based58 #192

[0.21.0] - 2022-01-13

Fixed

  • Make program_ids list deterministic in compile_message (#164)

Changed

  • Throw more specific Exception in API client on failure to retrieve RPC result (#166)

Added

  • Add max_retries option to sendTransaction and commitment option to get_transaction (#165)
  • Add a partial support for vote program (#167)

[0.20.0] - 2021-12-30

Changed

  • Make keypair hashable and move setters out of property functions (#158)

Added

  • Optional Commitment parameter to get_signatures_for_address (#157)
  • More SYSVAR constants (#159)

[0.19.1] - 2021-12-21

Added

  • Custom solana-py RPC error handling (#152)

[0.19.0] - 2021-12-02

Added

  • Websockets support (#144)
  • New client functions (#139)
  • A timeout param for Client and AsyncClient (#146)

[0.18.3] - 2021-11-20

Fixed

  • Always return the tx signature when sending transaction (the async method was returning signature status if we were confirming the tx)

Changed

  • Raise OnCurveException instead of generic Exception in create_program_address (#128)

Added

  • Add until parameter to get_signatures_for_address (#133)
  • This changelog.

[0.15.0] - 2021-9-26

Changed

  • To reduce RPC calls from fetching recent blockhashes - allow user-supplied blockhash to .send_transaction and dependent fns, and introduce an opt-in blockhash cache (#102)
  • ReadTheDocs theme and doc changes (#103)
  • Deprecate Account and replace with Keypair (#105)

Added

  • Implement methods for solana.system_program similar to solana-web3: create_account_with_seed, decode_create_account_with_seed (#101)
  • Support for getMultipleAccounts RPC method (#103)
  • Support for solana.rpc.api methods get_token_largest_accounts, get_token_supply (#104)

[0.12.1] - 2021-8-28

Fixed

  • Issue with importing Token from spl.token.client` (#91)
  • Packaging fixes (#85)

Added

  • Missing spl.token.async_client methods - create_multisig, get_mint_info, get_account_info, approve, revoke, burn, close_account, freeze_account, thaw_account, transfer_checked, approve_checked, mint_to_checked, burn_checked. Missing spl.token.client methods - create_multisig, get_mint_info, get_account_info, approve, revoke, set_authority, close_account, freeze_account, thaw_account, transfer_checked, approve_checked, mint_to_checked, burn_checked (#89)

[0.11.1] - 2021-8-4

Fixed

  • Valid instruction can contain no keys (#70)

Changed

  • Commitment levels - deprecated max, root, singleGossip, recent and added processed, confirmed, finalized (#82)

Added

  • Allocate instruction for system program - solana.system_program.decode_allocate, solana.system_program.decode_allocate_with_seed, solana.system_program.allocate (#79)
  • Async support - AsyncClient and AsyncToken classes, refactors sync code, httpx dependency (#83)

[0.10.0] - 2021-7-6

Fixed

  • Valid instruction can contain no keys (#70)

Changed

  • Pipenv update
  • Use new devnet api endpoint, deprecate solana.rpc.api.getConfirmedSignaturesForAddress2 and use solana.rpc.api.getSignaturesForAddress instead (#77)

Added

  • spl.client.token.set_authority (#73)
  • spl.client.token.create_wrapped_native_account (#74)

[0.9.1] - 2021-5-31

Fixed

  • Integration tests

Added

  • solana.publickey.create_with_seed (#69)

[0.9.0] - 2021-5-26

Fixed

  • Mismatch in annotation (#63)
  • unused imports

Changed

  • Use python-pure25519 curve check util instead of crypto_core_ed25519_is_valid_point

Added (#66)

  • python-pure25519 curve check util
  • spl.token.client.create_associated_token_account
  • spl.token.instructions.get_associated_token_address
  • spl.token.instructions.create_associated_token_account
  • ATA constant ASSOCIATED_TOKEN_PROGRAM_ID