@wuwei-labs/srsly
Version:
[](https://www.npmjs.com/package/ts-sdk-example)
26 lines • 1 kB
JavaScript
/**
* 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