@kamino-finance/farms-sdk
Version:
45 lines • 1.8 kB
TypeScript
/**
* 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
*/
import { type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type ReadonlyUint8Array } from "@solana/kit";
import { type RewardScheduleCurve, type RewardScheduleCurveArgs, type TokenInfo, type TokenInfoArgs } from ".";
export type RewardInfo = {
token: TokenInfo;
rewardsVault: Address;
rewardsAvailable: bigint;
rewardScheduleCurve: RewardScheduleCurve;
minClaimDurationSeconds: bigint;
lastIssuanceTs: bigint;
rewardsIssuedUnclaimed: bigint;
rewardsIssuedCumulative: bigint;
rewardPerShareScaled: bigint;
placeholder0: bigint;
rewardType: number;
rewardsPerSecondDecimals: number;
padding0: ReadonlyUint8Array;
padding1: Array<bigint>;
};
export type RewardInfoArgs = {
token: TokenInfoArgs;
rewardsVault: Address;
rewardsAvailable: number | bigint;
rewardScheduleCurve: RewardScheduleCurveArgs;
minClaimDurationSeconds: number | bigint;
lastIssuanceTs: number | bigint;
rewardsIssuedUnclaimed: number | bigint;
rewardsIssuedCumulative: number | bigint;
rewardPerShareScaled: number | bigint;
placeholder0: number | bigint;
rewardType: number;
rewardsPerSecondDecimals: number;
padding0: ReadonlyUint8Array;
padding1: Array<number | bigint>;
};
export declare function getRewardInfoEncoder(): FixedSizeEncoder<RewardInfoArgs>;
export declare function getRewardInfoDecoder(): FixedSizeDecoder<RewardInfo>;
export declare function getRewardInfoCodec(): FixedSizeCodec<RewardInfoArgs, RewardInfo>;
//# sourceMappingURL=rewardInfo.d.ts.map