@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
23 lines • 893 B
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.getPriceEncoder = getPriceEncoder;
exports.getPriceDecoder = getPriceDecoder;
exports.getPriceCodec = getPriceCodec;
const kit_1 = require("@solana/kit");
function getPriceEncoder() {
return (0, kit_1.getStructEncoder)([['value', (0, kit_1.getU64Encoder)()], ['exp', (0, kit_1.getU64Encoder)()]]);
}
function getPriceDecoder() {
return (0, kit_1.getStructDecoder)([['value', (0, kit_1.getU64Decoder)()], ['exp', (0, kit_1.getU64Decoder)()]]);
}
function getPriceCodec() {
return (0, kit_1.combineCodec)(getPriceEncoder(), getPriceDecoder());
}
//# sourceMappingURL=price.js.map