@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
24 lines • 1.56 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.getRebalanceAutodriftWindowEncoder = getRebalanceAutodriftWindowEncoder;
exports.getRebalanceAutodriftWindowDecoder = getRebalanceAutodriftWindowDecoder;
exports.getRebalanceAutodriftWindowCodec = getRebalanceAutodriftWindowCodec;
const kit_1 = require("@solana/kit");
const _1 = require(".");
function getRebalanceAutodriftWindowEncoder() {
return (0, kit_1.getStructEncoder)([['stakingRateA', (0, kit_1.getOptionEncoder)((0, _1.getPriceEncoder)())], ['stakingRateB', (0, kit_1.getOptionEncoder)((0, _1.getPriceEncoder)())], ['epoch', (0, kit_1.getU64Encoder)()], ['theoreticalTick', (0, kit_1.getI32Encoder)()], ['stratMidTick', (0, kit_1.getI32Encoder)()]]);
}
function getRebalanceAutodriftWindowDecoder() {
return (0, kit_1.getStructDecoder)([['stakingRateA', (0, kit_1.getOptionDecoder)((0, _1.getPriceDecoder)())], ['stakingRateB', (0, kit_1.getOptionDecoder)((0, _1.getPriceDecoder)())], ['epoch', (0, kit_1.getU64Decoder)()], ['theoreticalTick', (0, kit_1.getI32Decoder)()], ['stratMidTick', (0, kit_1.getI32Decoder)()]]);
}
function getRebalanceAutodriftWindowCodec() {
return (0, kit_1.combineCodec)(getRebalanceAutodriftWindowEncoder(), getRebalanceAutodriftWindowDecoder());
}
//# sourceMappingURL=rebalanceAutodriftWindow.js.map