@kamino-finance/kliquidity-sdk
Version:
Typescript SDK for interacting with the Kamino Liquidity (kliquidity) protocol
23 lines • 1.1 kB
JavaScript
;
/**
* 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.getPositionRewardInfoEncoder = getPositionRewardInfoEncoder;
exports.getPositionRewardInfoDecoder = getPositionRewardInfoDecoder;
exports.getPositionRewardInfoCodec = getPositionRewardInfoCodec;
const kit_1 = require("@solana/kit");
function getPositionRewardInfoEncoder() {
return (0, kit_1.getStructEncoder)([['growthInsideCheckpoint', (0, kit_1.getU128Encoder)()], ['amountOwed', (0, kit_1.getU64Encoder)()]]);
}
function getPositionRewardInfoDecoder() {
return (0, kit_1.getStructDecoder)([['growthInsideCheckpoint', (0, kit_1.getU128Decoder)()], ['amountOwed', (0, kit_1.getU64Decoder)()]]);
}
function getPositionRewardInfoCodec() {
return (0, kit_1.combineCodec)(getPositionRewardInfoEncoder(), getPositionRewardInfoDecoder());
}
//# sourceMappingURL=positionRewardInfo.js.map