@make-software/ces-js-parser
Version:
Parser for contract-level events encoded with Casper Event Standard (CES)
12 lines (11 loc) • 569 B
TypeScript
import { CLType, IResultWithBytes, RpcClient } from 'casper-js-sdk';
export type Schemas = Record<string, Schema>;
export type Schema = PropertyDefinition[];
interface PropertyDefinition {
property: string;
value: CLType;
}
export declare function parseSchemasFromBytes(rawSchemas: Uint8Array): Schemas;
export declare function parseSchemaFromBytesWithRemainder(rawBytes: Uint8Array): IResultWithBytes<Schema>;
export declare function fetchContractSchemasBytes(rpcClient: RpcClient, contractHash: string, stateRootHash: string): Promise<Uint8Array>;
export {};