10 lines
533 B
TypeScript
10 lines
533 B
TypeScript
import { AppState } from 'features/reducers';
|
|
|
|
const getTransactionState = (state: AppState) => state.transaction;
|
|
|
|
export const getMetaState = (state: AppState) => getTransactionState(state).meta;
|
|
export const getDecimal = (state: AppState) => getMetaState(state).decimal;
|
|
export const getTokenTo = (state: AppState) => getMetaState(state).tokenTo;
|
|
export const getTokenValue = (state: AppState) => getMetaState(state).tokenValue;
|
|
export const isContractInteraction = (state: AppState) => getMetaState(state).isContractInteraction;
|