/** * TypeScript type definitions for IoTeX SDK */ export interface ChainMeta { height: bigint; numActions: bigint; epoch: { num: bigint; height: bigint; gravityChainStartHeight: bigint; }; tps: number; tpsFloat: number; } export interface AccountMeta { address: string; balance: string; nonce: bigint; pendingNonce: bigint; numActions: bigint; isContract: boolean; } export interface Block { blockHash: string; height: bigint; timestamp: Date; numActions: number; producerAddress: string; transferAmount: string; txRoot: string; receiptRoot: string; deltaStateDigest: string; } export interface EpochMeta { num: bigint; height: bigint; gravityChainStartHeight: bigint; } export interface Delegate { address: string; name: string; rank: number; /** Weighted votes in IOTX (includes lock duration multiplier). NOT raw staked amount. */ votes: string; production: number; expectedProduction: number; active: boolean; ownerAddress?: string; rewardAddress?: string; operatorAddress?: string; /** Raw weighted votes in Rau (same as votes but in smallest unit) */ totalWeightedVotes?: string; selfStakeBucketIdx?: bigint; /** Self-staked tokens in Rau */ selfStakingTokens?: string; id?: string; } export interface Candidate { name: string; ownerAddress: string; operatorAddress: string; rewardAddress: string; totalWeightedVotes: string; selfStakingTokens?: string; selfStakeBucketIdx?: bigint; id?: string; } export interface VoteBucket { index: bigint; candidateAddress: string; /** Raw staked amount in IOTX (NOT weighted - no lock duration multiplier) */ stakedAmount: string; /** Lock duration in days */ stakedDuration: number; createTime: Date; stakeStartTime: Date; unstakeStartTime?: Date; autoStake: boolean; owner: string; contractAddress: string; endorsement?: number; } export interface ActionInfo { actionHash: string; blockHash: string; blockHeight: bigint; sender: string; gasConsumed: bigint; gasPrice: string; nonce: bigint; status: string; timestamp: Date; } export interface StakeCreateParams { amount: string; candidateName: string; duration: number; autoStake: boolean; data?: string; signer: string; password: string; gasPrice?: string; gasLimit?: bigint; } export interface StakeRegisterParams { name: string; operatorAddress: string; rewardAddress: string; ownerAddress: string; blsPubKey: string; amount: string; duration: number; autoStake: boolean; data?: string; signer: string; password: string; gasPrice?: string; gasLimit?: bigint; } export interface StakeUpdateCandidateParams { name: string; operatorAddress?: string; rewardAddress?: string; signer: string; password: string; gasPrice?: string; gasLimit?: bigint; } export interface TransferParams { to: string; amount: string; data?: string; signer: string; password: string; gasPrice?: string; gasLimit?: bigint; } export interface SendActionResult { actionHash: string; bucketIndex?: bigint; } export interface SDKConfig { endpoint?: string; secure?: boolean; jwtToken?: string; timeout?: number; } export interface KeystoreAccount { address: string; publicKey: string; } export interface HDWalletAccount { address: string; publicKey: string; privateKey: string; path: string; } //# sourceMappingURL=types.d.ts.map