@algofi/js-sdk
Version:
The official Algofi JavaScript SDK
21 lines (20 loc) • 689 B
TypeScript
import { Algodv2 } from "algosdk";
import StakingClient from "./stakingClient";
import UserStakingState from "./userStakingState";
export default class StakingUser {
algod: Algodv2;
address: string;
stakingClient: StakingClient;
optedInStakingContracts: number[];
userStakingStates: {
[key: number]: UserStakingState;
};
constructor(stakingClient: StakingClient, address: string);
/**
* Function to take the local states of a user and update the data on the
* object.
*
* @param userLocalStates - collection of all of the local states for the user
*/
loadState(userLocalStates: {}): Promise<void>;
}