2020-05-07 08:03:30 +02:00
|
|
|
import web3Mock from './web3'
|
2020-05-13 11:17:22 +02:00
|
|
|
import React from 'react'
|
|
|
|
import { Web3ProviderValue } from '@oceanprotocol/react'
|
2020-05-07 08:03:30 +02:00
|
|
|
|
2020-05-13 11:17:22 +02:00
|
|
|
export const context = React.createContext<Web3ProviderValue | undefined>({
|
|
|
|
web3: web3Mock,
|
|
|
|
ethProviderStatus: -1,
|
|
|
|
account: '0x0000',
|
|
|
|
balance: '',
|
|
|
|
chainId: 1,
|
|
|
|
web3Connect: {} as any,
|
|
|
|
enable: () => null as any
|
|
|
|
})
|
2020-05-07 08:03:30 +02:00
|
|
|
export default {
|
|
|
|
web3: web3Mock,
|
|
|
|
ethProviderStatus: -1,
|
|
|
|
account: '0x0000',
|
|
|
|
balance: '',
|
2020-05-13 11:17:22 +02:00
|
|
|
chainId: 1,
|
|
|
|
web3Connect: {} as any,
|
|
|
|
enable: () => null as any
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|