@cosmology/ast
Version:
Cosmos TypeScript AST generation
13 lines (12 loc) • 641 B
TypeScript
import * as t from '@babel/types';
import { ProtoParseContext } from '../../context';
import { ProtoField, ProtoType } from '@cosmology/types';
export interface ToAminoJSONMethod {
context: ProtoParseContext;
field: ProtoField;
isOneOf: boolean;
isOptional: boolean;
}
export declare const toAminoJSONMethodFields: (context: ProtoParseContext, name: string, proto: ProtoType) => any[];
export declare const toAminoJSONMethod: (context: ProtoParseContext, name: string, proto: ProtoType) => t.ObjectMethod;
export declare const toAminoMsgMethod: (context: ProtoParseContext, name: string, proto: ProtoType) => t.ObjectMethod;