UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

30 lines 1.24 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.ReferencePriceType = void 0; exports.getReferencePriceTypeEncoder = getReferencePriceTypeEncoder; exports.getReferencePriceTypeDecoder = getReferencePriceTypeDecoder; exports.getReferencePriceTypeCodec = getReferencePriceTypeCodec; const kit_1 = require("@solana/kit"); var ReferencePriceType; (function (ReferencePriceType) { ReferencePriceType[ReferencePriceType["POOL"] = 0] = "POOL"; ReferencePriceType[ReferencePriceType["TWAP"] = 1] = "TWAP"; })(ReferencePriceType || (exports.ReferencePriceType = ReferencePriceType = {})); ; function getReferencePriceTypeEncoder() { return (0, kit_1.getEnumEncoder)(ReferencePriceType); } function getReferencePriceTypeDecoder() { return (0, kit_1.getEnumDecoder)(ReferencePriceType); } function getReferencePriceTypeCodec() { return (0, kit_1.combineCodec)(getReferencePriceTypeEncoder(), getReferencePriceTypeDecoder()); } //# sourceMappingURL=referencePriceType.js.map