@brave/swap-interface
Version:
Brave Swap - an open-source swap interface by Brave, focussed on usability and multi-chain support.
27 lines (26 loc) • 897 B
TypeScript
import { Registry, Exchange, GasEstimate, SpotPrices } from '../constants/types';
export declare type WalletState = {
tokenBalances: Registry;
spotPrices: SpotPrices;
userSelectedExchanges: Exchange[];
networkFeeEstimates: Record<string, GasEstimate>;
};
declare type UpdateTokenBalances = {
type: 'updateTokenBalances';
payload: Registry;
};
declare type UpdateSpotPrices = {
type: 'updateSpotPrices';
payload: Partial<SpotPrices>;
};
declare type UpdateUserSelectedExchanges = {
type: 'updateUserSelectedExchanges';
payload: Exchange[];
};
declare type UpdateDefaultBaseCurrency = {
type: 'updateDefaultBaseCurrency';
payload: string;
};
export declare type WalletActions = UpdateTokenBalances | UpdateSpotPrices | UpdateUserSelectedExchanges | UpdateDefaultBaseCurrency;
export declare type Dispatch = (action: WalletActions) => void;
export {};