1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/tests/unit/__mocks__/web3provider.tsx

23 lines
506 B
TypeScript
Raw Normal View History

2020-05-13 19:34:47 +02:00
import web3Mock from './web3'
2020-05-13 20:07:57 +02:00
import React from 'react'
2020-05-13 19:34:47 +02:00
import { Web3ProviderValue } from '@oceanprotocol/react'
2020-05-13 20:07:57 +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
})
export default {
2020-05-13 19:34:47 +02:00
web3: web3Mock,
ethProviderStatus: -1,
account: '0x0000',
balance: '',
chainId: 1,
web3Connect: {} as any,
enable: () => null as any
}