@wuwei-labs/srsly
Version:
[](https://www.npmjs.com/package/ts-sdk-example)
31 lines • 1.25 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
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSerializableAccountEncoder = getSerializableAccountEncoder;
exports.getSerializableAccountDecoder = getSerializableAccountDecoder;
exports.getSerializableAccountCodec = getSerializableAccountCodec;
const kit_1 = require("@solana/kit");
function getSerializableAccountEncoder() {
return (0, kit_1.getStructEncoder)([
['pubkey', (0, kit_1.getAddressEncoder)()],
['isSigner', (0, kit_1.getBooleanEncoder)()],
['isWritable', (0, kit_1.getBooleanEncoder)()],
]);
}
function getSerializableAccountDecoder() {
return (0, kit_1.getStructDecoder)([
['pubkey', (0, kit_1.getAddressDecoder)()],
['isSigner', (0, kit_1.getBooleanDecoder)()],
['isWritable', (0, kit_1.getBooleanDecoder)()],
]);
}
function getSerializableAccountCodec() {
return (0, kit_1.combineCodec)(getSerializableAccountEncoder(), getSerializableAccountDecoder());
}
//# sourceMappingURL=serializableAccount.js.map