mirror of
https://github.com/oceanprotocol/react.git
synced 2025-02-14 21:10:38 +01:00
update OceanProvider config docs
This commit is contained in:
parent
d99e9d5050
commit
b86ed6fc1b
@ -23,16 +23,22 @@ const web3ModalOpts = {
|
|||||||
providerOptions // required
|
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({
|
export default function MyApp({
|
||||||
children
|
children
|
||||||
}: {
|
}: {
|
||||||
children: ReactNode
|
children: ReactNode
|
||||||
}): ReactNode {
|
}): ReactNode {
|
||||||
const oceanInitialConfig = new ConfigHelper().getConfig(
|
|
||||||
'mainnet',
|
|
||||||
'INFURA_PROJECT_ID'
|
|
||||||
)
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<OceanProvider initialConfig={config} web3ModalOpts={web3ModalOpts}>
|
<OceanProvider initialConfig={config} web3ModalOpts={web3ModalOpts}>
|
||||||
<h1>My App</h1>
|
<h1>My App</h1>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user