@taquito/michelson-encoder
Version:
converts michelson data and types into convenient JS/TS objects
13 lines (12 loc) • 650 B
TypeScript
import { MichelsonV1Expression, MichelsonV1ExpressionExtended, ScriptResponse } from '@taquito/rpc';
export declare class EventSchema {
readonly tag?: string | undefined;
readonly type?: MichelsonV1ExpressionExtended | undefined;
constructor(tag?: string | undefined, type?: MichelsonV1ExpressionExtended | undefined);
static fromMichelineValue(val: MichelsonV1ExpressionExtended): EventSchema;
static fromRPCResponse(val: {
script: ScriptResponse;
}): EventSchema[];
static removeDuplicates(events: EventSchema[]): EventSchema[];
static extractEventsRecursively(code: MichelsonV1Expression): EventSchema[];
}