@hypernetlabs/web-ui
Version:
Web ui react components for hypernet protocol
16 lines • 905 B
TypeScript
import { EPaymentState, BigNumberString, EthereumAccountAddress, EthereumContractAddress } from "@hypernetlabs/objects";
import { IViewUtils, PaymentStateOption } from "../interfaces";
import { BigNumber } from "ethers";
export declare class ViewUtils implements IViewUtils {
convertToWei(value: BigNumber | BigNumberString): string;
convertToEther(value: BigNumber | BigNumberString): string;
convertToBigNumber(value: number | string): BigNumber;
isZeroAddress(address: EthereumAccountAddress | EthereumContractAddress): boolean;
fromPaymentState(state: EPaymentState): string;
fromPaymentStateColor(state: EPaymentState): string;
getPaymentStateOptions(): PaymentStateOption[];
getProposalName(description: string): string;
getProposalDescriptionHash(description: string): string;
private _factoryPaymentStatusViewModel;
}
//# sourceMappingURL=ViewUtils.d.ts.map