UNPKG

@kamino-finance/kliquidity-sdk

Version:

Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol

23 lines 1.14 kB
"use strict"; /** * 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.getRebalanceExpanderStateEncoder = getRebalanceExpanderStateEncoder; exports.getRebalanceExpanderStateDecoder = getRebalanceExpanderStateDecoder; exports.getRebalanceExpanderStateCodec = getRebalanceExpanderStateCodec; const kit_1 = require("@solana/kit"); function getRebalanceExpanderStateEncoder() { return (0, kit_1.getStructEncoder)([['initialPoolPrice', (0, kit_1.getU128Encoder)()], ['expansionCount', (0, kit_1.getU16Encoder)()]]); } function getRebalanceExpanderStateDecoder() { return (0, kit_1.getStructDecoder)([['initialPoolPrice', (0, kit_1.getU128Decoder)()], ['expansionCount', (0, kit_1.getU16Decoder)()]]); } function getRebalanceExpanderStateCodec() { return (0, kit_1.combineCodec)(getRebalanceExpanderStateEncoder(), getRebalanceExpanderStateDecoder()); } //# sourceMappingURL=rebalanceExpanderState.js.map