@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
31 lines • 1.16 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.StrategyType = void 0;
exports.getStrategyTypeEncoder = getStrategyTypeEncoder;
exports.getStrategyTypeDecoder = getStrategyTypeDecoder;
exports.getStrategyTypeCodec = getStrategyTypeCodec;
const kit_1 = require("@solana/kit");
var StrategyType;
(function (StrategyType) {
StrategyType[StrategyType["Stable"] = 0] = "Stable";
StrategyType[StrategyType["Pegged"] = 1] = "Pegged";
StrategyType[StrategyType["Volatile"] = 2] = "Volatile";
})(StrategyType || (exports.StrategyType = StrategyType = {}));
;
function getStrategyTypeEncoder() {
return (0, kit_1.getEnumEncoder)(StrategyType);
}
function getStrategyTypeDecoder() {
return (0, kit_1.getEnumDecoder)(StrategyType);
}
function getStrategyTypeCodec() {
return (0, kit_1.combineCodec)(getStrategyTypeEncoder(), getStrategyTypeDecoder());
}
//# sourceMappingURL=strategyType.js.map