UNPKG

@mavrykdynamics/taquito-local-forging

Version:

Provide local forging functionality to be with taquito

27 lines (26 loc) 948 B
/** * @packageDocumentation * @module @mavrykdynamics/taquito-local-forging */ import { ForgeParams, Forger } from './interface'; import { CODEC } from './constants'; import { ProtocolsHash } from './protocols'; export { CODEC, opMapping, opMappingReverse } from './constants'; export * from './decoder'; export * from './encoder'; export * from './uint8array-consumer'; export * from './interface'; export { VERSION } from './version'; export { ProtocolsHash } from './protocols'; export declare function getCodec(codec: CODEC, _proto: ProtocolsHash): { encoder: import("./encoder").Encoder<any>; decoder: (hex: string) => any; }; export declare class LocalForger implements Forger { readonly protocolHash: ProtocolsHash; constructor(protocolHash?: ProtocolsHash); private codec; forge(params: ForgeParams): Promise<string>; parse(hex: string): Promise<ForgeParams>; } export declare const localForger: LocalForger;