UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

24 lines 1.78 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.getRebalanceAutodriftParamsEncoder = getRebalanceAutodriftParamsEncoder; exports.getRebalanceAutodriftParamsDecoder = getRebalanceAutodriftParamsDecoder; exports.getRebalanceAutodriftParamsCodec = getRebalanceAutodriftParamsCodec; const kit_1 = require("@solana/kit"); const _1 = require("."); function getRebalanceAutodriftParamsEncoder() { return (0, kit_1.getStructEncoder)([['initDriftTicksPerEpoch', (0, kit_1.getU32Encoder)()], ['ticksBelowMid', (0, kit_1.getI32Encoder)()], ['ticksAboveMid', (0, kit_1.getI32Encoder)()], ['frontrunMultiplierBps', (0, kit_1.getU16Encoder)()], ['stakingRateASource', (0, _1.getStakingRateSourceEncoder)()], ['stakingRateBSource', (0, _1.getStakingRateSourceEncoder)()], ['initDriftDirection', (0, _1.getDriftDirectionEncoder)()]]); } function getRebalanceAutodriftParamsDecoder() { return (0, kit_1.getStructDecoder)([['initDriftTicksPerEpoch', (0, kit_1.getU32Decoder)()], ['ticksBelowMid', (0, kit_1.getI32Decoder)()], ['ticksAboveMid', (0, kit_1.getI32Decoder)()], ['frontrunMultiplierBps', (0, kit_1.getU16Decoder)()], ['stakingRateASource', (0, _1.getStakingRateSourceDecoder)()], ['stakingRateBSource', (0, _1.getStakingRateSourceDecoder)()], ['initDriftDirection', (0, _1.getDriftDirectionDecoder)()]]); } function getRebalanceAutodriftParamsCodec() { return (0, kit_1.combineCodec)(getRebalanceAutodriftParamsEncoder(), getRebalanceAutodriftParamsDecoder()); } //# sourceMappingURL=rebalanceAutodriftParams.js.map