acheron

Results 202 comments of acheron

> ``` > package `solana-program v1.18.11` cannot be built > ``` This error is related to your Solana version. With Anchor `0.30.0`, it's recommended to use `1.18.8` as noted in...

```diff #[derive(Clone, AnchorSerialize, AnchorDeserialize)] pub struct StateSetConfigsParams { pub new_authority: Option, pub min_quote_verify_votes: Option, pub test_only_disable_mr_enclave_check: Option, pub stake_pool: Option, pub stake_program: Option, - pub add_advisory: Option, - pub rm_advisory:...

Yeah, reducing stack usage is one of the top priorities now. *Always* creating a separate functions might even be better for Anchor. If so, we wouldn't need to make this...

It's not an exact science, but something like the following would help: - Compare the current changes (with the improved stack memory usage for constraints) to the last published version(s)....

> @acheroncrypto it would be really easy to figure this out via experimentations if there is a way to measure stack space usage , i dont seem to know if...

This is because the IDL has been [rewritten](https://github.com/coral-xyz/anchor/pull/2824), and it's incompatible with the old IDL. There is also a new release ([v0.30.0](https://github.com/coral-xyz/anchor/pull/2909)) which was released 2 days ago. Solana Playground...

> Before I go messing around with all my configuration, can you clarify for me if there is a version of the 'npm' anchor package which can correctly invoke program...

Always use camelCase in TS package : https://www.anchor-lang.com/release-notes/0.30.0#case-conversion Instead of `system_program` use `systemProgram`. It's also not even necessary to specify program accounts in the new version if you get the...

All you need is to cast the `idl.json`'s type to the generated camelCased IDL type in `target/types`. For example: ```ts import * as idl from "./idl/spl_staking.json"; import type { SplStaking...

To add to the downsides you mentioned, I was a fan of `yarn` but their v3 release was quite annoying to upgrade, so I think it's worth moving away from...