UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

24 lines 1.23 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.getRebalanceDriftStateEncoder = getRebalanceDriftStateEncoder; exports.getRebalanceDriftStateDecoder = getRebalanceDriftStateDecoder; exports.getRebalanceDriftStateCodec = getRebalanceDriftStateCodec; const kit_1 = require("@solana/kit"); const _1 = require("."); function getRebalanceDriftStateEncoder() { return (0, kit_1.getStructEncoder)([['step', (0, _1.getRebalanceDriftStepEncoder)()], ['lastDriftTimestamp', (0, kit_1.getU64Encoder)()], ['lastMidTick', (0, kit_1.getI32Encoder)()]]); } function getRebalanceDriftStateDecoder() { return (0, kit_1.getStructDecoder)([['step', (0, _1.getRebalanceDriftStepDecoder)()], ['lastDriftTimestamp', (0, kit_1.getU64Decoder)()], ['lastMidTick', (0, kit_1.getI32Decoder)()]]); } function getRebalanceDriftStateCodec() { return (0, kit_1.combineCodec)(getRebalanceDriftStateEncoder(), getRebalanceDriftStateDecoder()); } //# sourceMappingURL=rebalanceDriftState.js.map