Added AnchorPy CLI (#42).
Bumped apischema
dependency to latest version (#42).
- AnchorPy now targets Anchor 0.19.0 (#39)
- Fixed event parser (#38)
- Support
solana-py
0.19.0.
- Update
sumtypes
dep so it works on Python 3.10 - Fix handling of enums with C-like struct variants.
Program.fetch_raw_idl
method to fetch an IDL json without parsing it into anIdl
instance.
- Upgrade solana-py dep so
.send
returns the tx signature and not the signature status. - Dedupe transaction signers
- Missing
pytest-xprocess
dep (it was marked as a dev dependency only)
- BREAKING: Some program namespace entries are now snake-case (kevinheavey#13).
This affects
program.rpc
,program.instruction
, fields insideprogram.type
entries, and theaccounts
argument toContext
. - BREAKING:
instructions
is replaced withpre_instructions
andpost_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 toprovider.connection
. - Refactor
.send
to use moresolana-py
functionality. kevinheavey#11
- Added a Pytest plugin for a better testing experience kevinheavey#5 kevinheavey#17
- Added support for fetching multiple accounts at once kevinheavey#19
- Add
at
andfetch_idl
classmethods toProgram
. - 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 toInstructionFn
. - Add
py.typed
file for mypy support. - Add
utils.rpc.invoke
function.
- Fix missing async/await keywords in
simulate.py
. - Catch unhandled TypeError when looking for custom error code in RPC response.
associated_address
function inutils/token.py
- Fixed errors with non-string IDL types.
Add optional path
and url
parameters to create_workspace
.
This is so we can overhaul the tests.
First release 🚀