UNPKG

@wuwei-labs/srsly

Version:

[![npm version](https://img.shields.io/npm/v/ts-sdk-example.svg)](https://www.npmjs.com/package/ts-sdk-example)

26 lines 1 kB
/** * This code was AUTOGENERATED using the codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun codama to update it. * * @see https://github.com/codama-idl/codama */ import { combineCodec, getAddressDecoder, getAddressEncoder, getBooleanDecoder, getBooleanEncoder, getStructDecoder, getStructEncoder, } from '@solana/kit'; export function getSerializableAccountEncoder() { return getStructEncoder([ ['pubkey', getAddressEncoder()], ['isSigner', getBooleanEncoder()], ['isWritable', getBooleanEncoder()], ]); } export function getSerializableAccountDecoder() { return getStructDecoder([ ['pubkey', getAddressDecoder()], ['isSigner', getBooleanDecoder()], ['isWritable', getBooleanDecoder()], ]); } export function getSerializableAccountCodec() { return combineCodec(getSerializableAccountEncoder(), getSerializableAccountDecoder()); } //# sourceMappingURL=serializableAccount.js.map