@sen-use/web3
Version:
The library for Sentre
14 lines (13 loc) • 657 B
TypeScript
/// <reference types="node" />
/**
* Calculates and returns a unique 8 byte discriminator prepended to all anchor accounts.
* @param name The name of the account to calculate the discriminator.
*/
export declare const accountDiscriminator: (name: string) => Buffer;
/**
* Calculates and returns a unique 8 byte discriminator prepended to all anchor instructions.
* @param name The name of the instruction to calculate the discriminator.
*/
export declare const ixDiscriminator: (ixName: string) => Buffer;
export declare const encodeIxData: (buffer: Uint8Array | number[]) => string;
export declare const decodeIxData: (string: string) => Uint8Array;