@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
24 lines • 1.34 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.getRebalanceAutodriftStateEncoder = getRebalanceAutodriftStateEncoder;
exports.getRebalanceAutodriftStateDecoder = getRebalanceAutodriftStateDecoder;
exports.getRebalanceAutodriftStateCodec = getRebalanceAutodriftStateCodec;
const kit_1 = require("@solana/kit");
const _1 = require(".");
function getRebalanceAutodriftStateEncoder() {
return (0, kit_1.getStructEncoder)([['lastWindow', (0, _1.getRebalanceAutodriftWindowEncoder)()], ['currentWindow', (0, _1.getRebalanceAutodriftWindowEncoder)()], ['step', (0, _1.getRebalanceAutodriftStepEncoder)()]]);
}
function getRebalanceAutodriftStateDecoder() {
return (0, kit_1.getStructDecoder)([['lastWindow', (0, _1.getRebalanceAutodriftWindowDecoder)()], ['currentWindow', (0, _1.getRebalanceAutodriftWindowDecoder)()], ['step', (0, _1.getRebalanceAutodriftStepDecoder)()]]);
}
function getRebalanceAutodriftStateCodec() {
return (0, kit_1.combineCodec)(getRebalanceAutodriftStateEncoder(), getRebalanceAutodriftStateDecoder());
}
//# sourceMappingURL=rebalanceAutodriftState.js.map