Repository navigation
Support for Anchor 0.32.1 - #166
markovejnovic wants to merge 11 commits into
Conversation
a231fde to
f2cc5b7
Compare
773bf1e to
00ce459
Compare
|
Btw, if you want to hop on a quick call to review this PR (and/or help me understand what other things need to be built), feel free to DM me @suis_siva |
00ce459 to
78198b6
Compare
|
MEASURED: I have a one-commit discriminator follow-up based on this PR's current head, The diff uses explicit IDL bytes in instruction/account/event coders, account fetches and filters, and generated clients. It handles variable-length tags and rejects empty, duplicate or prefix-ambiguous tags before dispatch. Two existing fixtures replace empty discriminator placeholders with the conventional initialize bytes; their original assertions remain. MEASURED: On a clean archive of The added cases exercise 1-, 2-, 8- and 12-byte tags, mixed lengths, generated-code execution, account fetching/filtering, and malformed payloads. See the regression tests. MEASURED: The binding also needs a small stub-only correction for the discriminator API already exposed at runtime. This does not resolve the dependency release prerequisites listed above. Would you prefer to fold this commit into this PR, or keep it as a follow-up after the IDL dependency lands? |
Hey all.
This PR adds support for Anchor 0.32.1. I mostly based my work off of #163 but I tried to improve the code quality a little bit and also ensure all tests pass.
Note: I was unable to find the source/IDLs for a lot of the existing test IDLs. Consequently, I have deleted some test IDLs. I would urge you figure out how to find those source files again, and drop the relevant commit (read further).
Prior to merge:
pyproject.tomlto our version.Validation
Type Checks
Tests
I had a little bit of trouble running
make testsincesolana-test-validatorwasn't properly cleaned up on my machine so I ran the tests manually, pkilling the validator. I didn't bother to investigate the validator persiting after test execution. The warnings I got probably hint at the issue, but that's way beyond the scope of this PR.kevinheavey/anchorpy-idl#5 changes
Three key changes:
IdlTypeDefined::definedwhich was declared as public in the.pyiIdlDefinedFieldsNamediterable in the python code, so that the legacy API could still be used inanchorpy. My reasoning was that doing this minimizes the blast radius in this repo.docsconstructors to acceptNonewhere the.pyispecified.