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

36 lines
681 B
TypeScript
Raw Normal View History

2019-01-23 11:15:27 +01:00
import React from 'react'
import { Ocean } from '@oceanprotocol/squid'
2019-01-30 17:33:56 +01:00
export const User = React.createContext({
isLogged: false,
2019-07-10 13:05:43 +02:00
isBurner: false,
2019-07-11 14:04:40 +02:00
isWeb3Capable: false,
isLoading: false,
account: '',
web3: {},
// eslint-disable-next-line
ocean: {} as Ocean,
2019-03-04 16:06:52 +01:00
balance: {
eth: 0,
ocn: 0
},
2019-03-04 11:58:52 +01:00
network: '',
2019-02-20 15:00:42 +01:00
requestFromFaucet: () => {
/* empty */
},
2019-05-21 12:12:02 +02:00
loginMetamask: () => {
/* empty */
},
2019-07-09 12:22:40 +02:00
loginBurnerWallet: () => {
2019-05-21 12:12:02 +02:00
/* empty */
},
message: ''
2019-01-30 17:33:56 +01:00
})
export const Market = React.createContext({
totalAssets: 0,
categories: [''],
network: '',
networkMatch: false
})