@taquito/michelson-encoder
Version:
Michelson encoding and decoding utilities for Taquito.
45 lines (44 loc) • 1.38 kB
TypeScript
import { SaplingStateTokenSchema } from '../schema/types';
import { Semantic, SemanticEncoding, Token, TokenFactory, TokenValidationError } from './token';
/**
* @category Error
* Error that indicates a failure happening when parsing encoding/executing a Sapling State
*/
export declare class SaplingStateValidationError extends TokenValidationError {
value: any;
token: SaplingStateToken;
name: string;
constructor(value: any, token: SaplingStateToken, message: string);
}
export declare class SaplingStateToken extends Token {
protected val: {
prim: string;
args: any[];
annots: any[];
};
protected idx: number;
protected fac: TokenFactory;
static prim: 'sapling_state';
constructor(val: {
prim: string;
args: any[];
annots: any[];
}, idx: number, fac: TokenFactory);
private isValid;
/**
* @throws {@link SaplingStateValidationError}
*/
Execute(val: {
int: string;
}, semantic?: Semantic): any;
/**
* @throws {@link SaplingStateValidationError}
*/
Encode(args: any[]): any;
/**
* @throws {@link SaplingStateValidationError}
*/
EncodeObject(val: any, semantic?: SemanticEncoding): any;
generateSchema(): SaplingStateTokenSchema;
findAndReturnTokens(tokenToFind: string, tokens: Token[]): Token[];
}