1
0
mirror of https://github.com/oceanprotocol/react.git synced 2024-11-23 02:00:27 +01:00

update OceanProvider config docs

This commit is contained in:
Matthias Kretschmann 2020-09-08 21:13:32 +02:00 committed by GitHub
parent d99e9d5050
commit b86ed6fc1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,16 +23,22 @@ const web3ModalOpts = {
providerOptions // required
}
const oceanDefaultConfig = new ConfigHelper().getConfig(
'mainnet',
'YOUR_INFURA_PROJECT_ID'
)
const config = {
...oceanDefaultConfig,
metadataStoreUri: 'https://your-metadata-store.com',
providerUri: 'https://your-provider.com'
}
export default function MyApp({
children
}: {
children: ReactNode
}): ReactNode {
const oceanInitialConfig = new ConfigHelper().getConfig(
'mainnet',
'INFURA_PROJECT_ID'
)
return (
<OceanProvider initialConfig={config} web3ModalOpts={web3ModalOpts}>
<h1>My App</h1>