UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

23 lines 1.28 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.getWithdrawalCapsEncoder = getWithdrawalCapsEncoder; exports.getWithdrawalCapsDecoder = getWithdrawalCapsDecoder; exports.getWithdrawalCapsCodec = getWithdrawalCapsCodec; const kit_1 = require("@solana/kit"); function getWithdrawalCapsEncoder() { return (0, kit_1.getStructEncoder)([['configCapacity', (0, kit_1.getI64Encoder)()], ['currentTotal', (0, kit_1.getI64Encoder)()], ['lastIntervalStartTimestamp', (0, kit_1.getU64Encoder)()], ['configIntervalLengthSeconds', (0, kit_1.getU64Encoder)()]]); } function getWithdrawalCapsDecoder() { return (0, kit_1.getStructDecoder)([['configCapacity', (0, kit_1.getI64Decoder)()], ['currentTotal', (0, kit_1.getI64Decoder)()], ['lastIntervalStartTimestamp', (0, kit_1.getU64Decoder)()], ['configIntervalLengthSeconds', (0, kit_1.getU64Decoder)()]]); } function getWithdrawalCapsCodec() { return (0, kit_1.combineCodec)(getWithdrawalCapsEncoder(), getWithdrawalCapsDecoder()); } //# sourceMappingURL=withdrawalCaps.js.map