import { AminoMsg } from "@cosmjs/amino"; import { Log } from "@cosmjs/stargate/build/logs"; import { StarnameClient } from "../starnameClient"; import { Amount } from "../types/amount"; import { Validator } from "../types/delegationValidator"; import { StarnameInfo as StarnameData } from "./starnameInfo"; export interface BaseTx { height: number; gas_used: string; gas_wanted: string; logs: ReadonlyArray; raw_log: string; timestamp: string; tx: AminoMsg; txhash: string; } export interface RedelegationData { readonly src: Validator; readonly dst: Validator; } export type DelegationData = Validator; export interface Transaction { readonly id: string; readonly type: any; readonly amount: ReadonlyArray; readonly data: StarnameData | RedelegationData | DelegationData | string; readonly fee: ReadonlyArray; readonly time: Date; readonly note?: string; readonly escrowId?: string; readonly sender?: string; readonly seller?: string; readonly buyer?: string; readonly updater?: string; readonly deadline?: Date; } export declare class Transaction { static fromRedelegateBaseTx(starnameClient: StarnameClient, baseTx: BaseTx): Promise; static fromStakingBaseTx(starnameClient: StarnameClient, baseTx: BaseTx): Promise; } export declare const isStarnameData: (data: StarnameData | any) => data is StarnameData; export declare const isDelegationData: (data: DelegationData | any) => data is import("../starnameClient/types/stargate/validatorResponse").StargateValidator; export declare const isRedelegationData: (data: RedelegationData | any) => data is RedelegationData;