UNPKG

@aeternity/aepp-sdk

Version:

SDK for the æternity blockchain

11 lines (10 loc) 437 B
import { EntryTag } from '../entry/constants.js'; import type { unpackEntry as unpackEntryType, packEntry as packEntryType } from '../entry/index.js'; export default function genEntryField<T extends EntryTag = EntryTag>(tag?: T): { serialize: (value: any, options: { packEntry: typeof packEntryType; }) => Buffer; deserialize: (value: Buffer, options: { unpackEntry: typeof unpackEntryType; }) => any; };