@aeternity/aepp-sdk
Version:
SDK for the æternity blockchain
14 lines (13 loc) • 634 B
TypeScript
import { EntryTag } from '../entry/constants.js';
import type { unpackEntry as unpackEntryType, packEntry as packEntryType } from '../entry/index.js';
type TagWrapping = EntryTag.AccountsMtree | EntryTag.CallsMtree | EntryTag.ChannelsMtree | EntryTag.ContractsMtree | EntryTag.NameserviceMtree | EntryTag.OraclesMtree;
export default function genWrappedField<T extends TagWrapping>(tag: T): {
serialize: (value: any, options: {
packEntry: typeof packEntryType;
}) => Buffer;
deserialize: (value: Buffer, options: {
unpackEntry: typeof unpackEntryType;
}) => any;
recursiveType: true;
};
export {};