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