@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
23 lines • 1.22 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.getRebalanceRawEncoder = getRebalanceRawEncoder;
exports.getRebalanceRawDecoder = getRebalanceRawDecoder;
exports.getRebalanceRawCodec = getRebalanceRawCodec;
const kit_1 = require("@solana/kit");
function getRebalanceRawEncoder() {
return (0, kit_1.getStructEncoder)([['params', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 128)], ['state', (0, kit_1.fixEncoderSize)((0, kit_1.getBytesEncoder)(), 256)], ['referencePriceType', (0, kit_1.getU8Encoder)()]]);
}
function getRebalanceRawDecoder() {
return (0, kit_1.getStructDecoder)([['params', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 128)], ['state', (0, kit_1.fixDecoderSize)((0, kit_1.getBytesDecoder)(), 256)], ['referencePriceType', (0, kit_1.getU8Decoder)()]]);
}
function getRebalanceRawCodec() {
return (0, kit_1.combineCodec)(getRebalanceRawEncoder(), getRebalanceRawDecoder());
}
//# sourceMappingURL=rebalanceRaw.js.map