UNPKG

@kamino-finance/kliquidity-sdk

Version:

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

23 lines 1.39 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.getWhirlpoolRewardInfoEncoder = getWhirlpoolRewardInfoEncoder; exports.getWhirlpoolRewardInfoDecoder = getWhirlpoolRewardInfoDecoder; exports.getWhirlpoolRewardInfoCodec = getWhirlpoolRewardInfoCodec; const kit_1 = require("@solana/kit"); function getWhirlpoolRewardInfoEncoder() { return (0, kit_1.getStructEncoder)([['mint', (0, kit_1.getAddressEncoder)()], ['vault', (0, kit_1.getAddressEncoder)()], ['authority', (0, kit_1.getAddressEncoder)()], ['emissionsPerSecondX64', (0, kit_1.getU128Encoder)()], ['growthGlobalX64', (0, kit_1.getU128Encoder)()]]); } function getWhirlpoolRewardInfoDecoder() { return (0, kit_1.getStructDecoder)([['mint', (0, kit_1.getAddressDecoder)()], ['vault', (0, kit_1.getAddressDecoder)()], ['authority', (0, kit_1.getAddressDecoder)()], ['emissionsPerSecondX64', (0, kit_1.getU128Decoder)()], ['growthGlobalX64', (0, kit_1.getU128Decoder)()]]); } function getWhirlpoolRewardInfoCodec() { return (0, kit_1.combineCodec)(getWhirlpoolRewardInfoEncoder(), getWhirlpoolRewardInfoDecoder()); } //# sourceMappingURL=whirlpoolRewardInfo.js.map