Skip to content
This repository has been archived by the owner on Aug 3, 2021. It is now read-only.

Commit

Permalink
update OceanProvider config docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kremalicious authored Sep 8, 2020
1 parent d99e9d5 commit b86ed6f
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/providers/OceanProvider/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit b86ed6f

Please sign in to comment.