@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
31 lines • 1.47 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.RebalanceTakeProfitStep = void 0;
exports.getRebalanceTakeProfitStepEncoder = getRebalanceTakeProfitStepEncoder;
exports.getRebalanceTakeProfitStepDecoder = getRebalanceTakeProfitStepDecoder;
exports.getRebalanceTakeProfitStepCodec = getRebalanceTakeProfitStepCodec;
const kit_1 = require("@solana/kit");
var RebalanceTakeProfitStep;
(function (RebalanceTakeProfitStep) {
RebalanceTakeProfitStep[RebalanceTakeProfitStep["Uninitialized"] = 0] = "Uninitialized";
RebalanceTakeProfitStep[RebalanceTakeProfitStep["TakingProfit"] = 1] = "TakingProfit";
RebalanceTakeProfitStep[RebalanceTakeProfitStep["Finished"] = 2] = "Finished";
})(RebalanceTakeProfitStep || (exports.RebalanceTakeProfitStep = RebalanceTakeProfitStep = {}));
;
function getRebalanceTakeProfitStepEncoder() {
return (0, kit_1.getEnumEncoder)(RebalanceTakeProfitStep);
}
function getRebalanceTakeProfitStepDecoder() {
return (0, kit_1.getEnumDecoder)(RebalanceTakeProfitStep);
}
function getRebalanceTakeProfitStepCodec() {
return (0, kit_1.combineCodec)(getRebalanceTakeProfitStepEncoder(), getRebalanceTakeProfitStepDecoder());
}
//# sourceMappingURL=rebalanceTakeProfitStep.js.map