{parcelProperties.map(({ name, value, tooltip, iconPath }, index) => (
-
+
))}
-
+
VIEW FULL LICENSE
diff --git a/contants.ts b/contants.ts
deleted file mode 100644
index a19d956..0000000
--- a/contants.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import { addresses } from './data/whiteListedAddresses';
-
-export const MAX_NFT_TO_MINT = Object.values(addresses).reduce((prev, curr) => prev + curr, 0);
-
-const AGREEMENT_IPFS_HASH = 'QmTNZQCFZPoGBPGZgU1qk7YPBGAW5LWgiikrRxF5JT4stu';
-export const AGREEMENT_IPFS_URL = `https://ipfs.io/ipfs/${AGREEMENT_IPFS_HASH}`;
-
-export enum VIEWS {
- 'INITIAL_VIEW',
- 'MINTED_NFTS',
-}
diff --git a/context/StateProvider.tsx b/context/StateProvider.tsx
index 22b039f..fa9ba88 100644
--- a/context/StateProvider.tsx
+++ b/context/StateProvider.tsx
@@ -1,10 +1,13 @@
-import { reducer, Actions } from "../reducer/";
-import React, { createContext, ReactNode, useContext, useReducer } from "react";
+import { Provider } from '@ethersproject/abstract-provider';
+import { JsonRpcProvider } from '@ethersproject/providers';
+import React, { createContext, ReactNode, useContext, useReducer } from 'react';
+import { Actions, reducer } from '../reducer/';
+
export type InitialStateType = {
- provider?: any;
- web3Provider?: any;
- account?: string | null;
- chainId?: number | null;
+ provider: Provider | null;
+ web3Provider: JsonRpcProvider | null;
+ account: string | null;
+ chainId: number | null;
};
const initialState: InitialStateType = {
@@ -27,11 +30,7 @@ type AppProviderProps = {
export const AppProvider: React.FC