1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00
commons/client/src/context/index.tsx

34 lines
595 B
TypeScript

import React from 'react'
export const User = React.createContext({
isLogged: false,
isBurner: false,
isWeb3Capable: false,
isLoading: false,
account: '',
web3: {},
ocean: {},
balance: {
eth: 0,
ocn: 0
},
network: '',
requestFromFaucet: () => {
/* empty */
},
loginMetamask: () => {
/* empty */
},
loginBurnerWallet: () => {
/* empty */
},
message: ''
})
export const Market = React.createContext({
totalAssets: 0,
categories: [''],
network: '',
networkMatch: false
})