lighthouse icon indicating copy to clipboard operation
lighthouse copied to clipboard

Implement feedback from community

Open Jac0xb opened this issue 8 months ago • 1 comments

PR

  • New program version of program being deployed L2TExMFKdjpN9kozasaurPirfHy9P8sbXoAN1qA3S95.

  • Implement vscode scripts to step-through debug rust tests.

  • AssertAccountDataMulti instruction.

  • Add new log levels, which only log on failure:

    • FailedPlaintextMessage
    • FailedEncodedMessage
    • FailedEncodedNoop
  • Implement registry which codegens lighthouse assertions for rust/web3.js@tp4/web3.js@legacy.

    • Added vote account assertion to registry for AuthorizedWithdrawer
    • Example:
export const voteAccountTemplateArgs: AssertionTemplateArgs = {
  assertionName: 'VoteAccount',
  variants: [
    {
      name: 'AuthorizedWithdrawer',
      kind: 'Pubkey',
      assertions: [
        {
          kind: 'U8',
          value: 2,
          valueOperator: { type: 'Integer', enum: IntegerOperator.Equal },
          offset: 0,
        },
        {
          kind: 'Pubkey',
          value: DefaultValueFn,
          valueOperator: DefaultValueOperatorFn,
          offset: 36,
        },
      ],
    },
  ],
};

Jac0xb avatar Jun 05 '24 22:06 Jac0xb