@hypernetlabs/web-ui
Version:
Web ui react components for hypernet protocol
21 lines • 1.1 kB
TypeScript
import { ActiveStateChannel, EthereumAccountAddress, EthereumContractAddress, TokenInformation } from "@hypernetlabs/objects";
import { ITokenSelectorOption } from "../interfaces";
interface IReducerStateReducer {
error: any;
tokenSelectorOptions: TokenInformation[];
selectedPaymentToken?: ITokenSelectorOption;
setSelectedPaymentToken: (selectedOption?: ITokenSelectorOption) => void;
amount: string;
destinationAddress: EthereumAccountAddress;
setAmount: (amount: string) => void;
setDestinationAddress: (destinationAddress: string) => void;
mintTokens: () => void;
depositFunds: (tokenAddress: EthereumContractAddress, amount: string, stateChannelAddress: EthereumContractAddress) => void;
withdrawFunds: (tokenAddress: EthereumContractAddress, amount: string, stateChannelAddress: EthereumContractAddress) => void;
activeStateChannels?: ActiveStateChannel[];
selectedStateChennel?: ActiveStateChannel;
stateChannelsFetched: boolean;
}
export declare function useFund(): IReducerStateReducer;
export {};
//# sourceMappingURL=useFund.d.ts.map