diff --git a/src/context.ts b/src/context.ts index bd6695d..ec4ccd6 100644 --- a/src/context.ts +++ b/src/context.ts @@ -3,7 +3,7 @@ import { createContext } from 'react'; import { Withdrawal } from './types/withdrawal'; import { Stream } from './types/stream'; -type StackingContext = { +export type StakingContextType = { accountSynced: boolean; balance: BigNumber; voteBalance: BigNumber; @@ -33,4 +33,4 @@ type StackingContext = { claimAllAndSync: () => Promise; }; -export const StakingContext = createContext(null); +export const StakingContext = createContext(null); diff --git a/src/index.ts b/src/index.ts index 35563db..5a9ae50 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1 +1,3 @@ export { useStaking } from './hooks/useStaking'; +export { StakingProvider } from './provider'; +export { type StakingContextType } from './context';