Skip to content

Latest commit

 

History

History
244 lines (138 loc) · 6.72 KB

CHANGELOG.md

File metadata and controls

244 lines (138 loc) · 6.72 KB

Changelog

[0.12.0]

Changed

  • Use Rust (via anchorpy-core) to parse IDLs. This removes the anchorpy.idl.Idl class and replaces it with anchorpy_core.idl.Idl, which uses some different types and supports newer IDL features. This change only affects code that used the Idl class directly; normal AnchorPy behaviour is unchanged.

[0.11.0] - 2022-10-15

Changed

  • Use latest solana-py #(92)

Fixed

  • Remove vestigial sumtypes dep #(91)

[0.10.0] - 2022-08-11

Added

  • Added support for docs in IDLs #(88)
  • Add first-class support for remaining_accounts #(83)
  • Allow dynamically overriding program_id #(83)

Fixed

  • Fix identifiers clashing with Python keywords #(87)

[0.9.4] - 2022-07-18

Fixed

Add missing BorshPubkey import in generated client types #(81)

[0.9.3] - 2022-07-06

Changed

Use latest solana-py #(78)

[0.9.2] - 2022-06-02

Fixed

  • Handle empty structs in clientgen #(75)

[0.9.1] - 2022-05-19

Fixed

  • Fixed edge case where invalid import code gets generated #(71)
  • Include logs in ProgramError instances #(72)

[0.9.0] - 2022-05-03

Added

  • Added anchorpy client-gen (#70)
  • Added floats support to IDL (#70)

[0.8.3] - 2022-04-29

Changed

  • Updated error codes (#69)
  • Updated event parser to support sol_log_data (#68)
  • Updated solana-py dependency to 0.23.1 (#67)

[0.8.2] - 2022-04-15

Added

[0.8.1] - 2022-03-16

Changed

Upgraded zstandard dependency (#60)

[0.8.0] - 2022-03-09

Added

  • Provider.readonly constructor for using AnchorPy only to fetch data (#58)
  • commitment parameter in .fetch and .fetch_multiple methods (#58)

Fixed

  • Cache some generated Python types to avoid issues with checking equality (#57)

[0.7.0] - 2022-02-07

Changed

  • Add experimental support for tuple enum variants

Fixed

  • Don't crash when loading a Program that uses unsupported types

[0.6.5] - 2022-01-28

Changed

Update pytest and pytest-asyncio dependencies.

[0.6.4] - 2022-01-22

Changed

Update ipython dependency to pick up ACE vulnerability patch. More here.

[0.6.3] - 2022-01-21

Fixed

Some more deps needed upating.

[0.6.2] - 2022-01-21

Fixed

Release again because last release was made before merging.

[0.6.1] - 2022-01-21

Changed

  • Use pyheck instead of inflection for case conversion
  • Update solana and apischema dependencies.

[0.6.0] - 2021-12-21

Added

Added AnchorPy CLI (#42).

Changed

Bumped apischema dependency to latest version (#42).

[0.5.0] - 2021-12-18

Changed

  • AnchorPy now targets Anchor 0.19.0 (#39)

[0.4.6] - 2021-12-13

Fixed

  • Fixed event parser (#38)

[0.4.5] - 2021-12-06

  • Support solana-py 0.19.0.

[0.4.4] - 2021-12-02

Fixed

  • Update sumtypes dep so it works on Python 3.10
  • Fix handling of enums with C-like struct variants.

[0.4.3] - 2021-11-22

Added

  • Program.fetch_raw_idl method to fetch an IDL json without parsing it into an Idl instance.

[0.4.2] - 2021-11-20

Fixed

  • Upgrade solana-py dep so .send returns the tx signature and not the signature status.
  • Dedupe transaction signers

[0.4.1] - 2021-11-20

Fixed

  • Missing pytest-xprocess dep (it was marked as a dev dependency only)

[0.4.0] - 2021-11-20

Changed

  • BREAKING: Some program namespace entries are now snake-case (kevinheavey#13). This affects program.rpc, program.instruction, fields inside program.type entries, and the accounts argument to Context.
  • BREAKING: instructions is replaced with pre_instructions and post_instructions. (kevinheavey#18)
  • BREAKING: User-defined types must now be constructed using the new program.type namespace. kevinheavey#7 This also affects the return type of .fetch - the returned object is now a dataclass and requires . access instead of [].
  • BREAKING: provider.client is renamed to provider.connection.
  • Refactor .send to use more solana-py functionality. kevinheavey#11

Added

[0.3.0] - 2021-11-02

Added

  • Add at and fetch_idl classmethods to Program.
  • Better error message when an incorrect number of arguments is passed to an RPC function.
  • Allow for state when parsing the IDL.
  • Add support for filtering .all() with a buffer, like in the TS client.
  • Add missing .accounts utility method to InstructionFn.
  • Add py.typed file for mypy support.
  • Add utils.rpc.invoke function.

Fixed

  • Fix missing async/await keywords in simulate.py.
  • Catch unhandled TypeError when looking for custom error code in RPC response.

[0.2.0] - 2021-10-18

Added

  • associated_address function in utils/token.py

Fixed

  • Fixed errors with non-string IDL types.

[0.1.1] - 2021-10-16

Add optional path and url parameters to create_workspace. This is so we can overhaul the tests.

[0.1.0] - 2021-10-16

First release 🚀