mirror of
https://github.com/oceanprotocol/commons.git
synced 2023-03-15 18:03:00 +01:00
add default env vars into CONNECTIONS cofig
This commit is contained in:
parent
b4fc9883e2
commit
ab342b3fa6
@ -142,7 +142,9 @@ export default class AssetFile extends PureComponent<
|
|||||||
primary
|
primary
|
||||||
className={styles.buttonMain}
|
className={styles.buttonMain}
|
||||||
// weird 0 hack so TypeScript is happy
|
// weird 0 hack so TypeScript is happy
|
||||||
onClick={() => this.purchaseAsset(ddo, index || 0)}
|
onClick={() =>
|
||||||
|
this.purchaseAsset(ddo, index || 0)
|
||||||
|
}
|
||||||
disabled={!isLogged || !market.networkMatch}
|
disabled={!isLogged || !market.networkMatch}
|
||||||
name="Download"
|
name="Download"
|
||||||
>
|
>
|
||||||
|
@ -27,27 +27,60 @@ export const ipfsNodeUri =
|
|||||||
//
|
//
|
||||||
export const CONNECTIONS = {
|
export const CONNECTIONS = {
|
||||||
pacific: {
|
pacific: {
|
||||||
nodeUri: 'https://pacific.oceanprotocol.com',
|
nodeUri:
|
||||||
aquariusUri: 'https://aquarius.commons.oceanprotocol.com',
|
process.env.REACT_APP_NODE_URI ||
|
||||||
brizoUri: 'https://brizo.commons.oceanprotocol.com',
|
'https://pacific.oceanprotocol.com',
|
||||||
brizoAddress: '0x008c25ed3594e094db4592f4115d5fa74c4f41ea',
|
aquariusUri:
|
||||||
secretStoreUri: 'https://secret-store.oceanprotocol.com',
|
process.env.REACT_APP_AQUARIUS_URI ||
|
||||||
faucetUri: 'https://faucet.oceanprotocol.com'
|
'https://aquarius.commons.oceanprotocol.com',
|
||||||
|
brizoUri:
|
||||||
|
process.env.REACT_APP_BRIZO_URI ||
|
||||||
|
'https://brizo.commons.oceanprotocol.com',
|
||||||
|
brizoAddress:
|
||||||
|
process.env.REACT_APP_BRIZO_ADDRESS ||
|
||||||
|
'0x008c25ed3594e094db4592f4115d5fa74c4f41ea',
|
||||||
|
secretStoreUri:
|
||||||
|
process.env.REACT_APP_SECRET_STORE_URI ||
|
||||||
|
'https://secret-store.oceanprotocol.com',
|
||||||
|
faucetUri:
|
||||||
|
process.env.REACT_APP_FAUCET_URI ||
|
||||||
|
'https://faucet.oceanprotocol.com'
|
||||||
},
|
},
|
||||||
nile: {
|
nile: {
|
||||||
nodeUri: 'https://nile.dev-ocean.com',
|
nodeUri: process.env.REACT_APP_NODE_URI || 'https://nile.dev-ocean.com',
|
||||||
aquariusUri: 'https://aquarius.nile.dev-ocean.com',
|
aquariusUri:
|
||||||
brizoUri: 'https://brizo.nile.dev-ocean.com',
|
process.env.REACT_APP_AQUARIUS_URI ||
|
||||||
brizoAddress: '0x4aaab179035dc57b35e2ce066919048686f82972',
|
'https://aquarius.nile.dev-ocean.com',
|
||||||
secretStoreUri: 'https://secret-store.nile.dev-ocean.com',
|
brizoUri:
|
||||||
faucetUri: 'https://faucet.nile.dev-ocean.com'
|
process.env.REACT_APP_BRIZO_URI ||
|
||||||
|
'https://brizo.nile.dev-ocean.com',
|
||||||
|
brizoAddress:
|
||||||
|
process.env.REACT_APP_BRIZO_ADDRESS ||
|
||||||
|
'0x4aaab179035dc57b35e2ce066919048686f82972',
|
||||||
|
secretStoreUri:
|
||||||
|
process.env.REACT_APP_SECRET_STORE_URI ||
|
||||||
|
'https://secret-store.nile.dev-ocean.com',
|
||||||
|
faucetUri:
|
||||||
|
process.env.REACT_APP_FAUCET_URI ||
|
||||||
|
'https://faucet.nile.dev-ocean.com'
|
||||||
},
|
},
|
||||||
duero: {
|
duero: {
|
||||||
nodeUri: 'https://duero.dev-ocean.com',
|
nodeUri:
|
||||||
aquariusUri: 'https://aquarius.duero.dev-ocean.com',
|
process.env.REACT_APP_NODE_URI || 'https://duero.dev-ocean.com',
|
||||||
brizoUri: 'https://brizo.duero.dev-ocean.com',
|
aquariusUri:
|
||||||
brizoAddress: '0x9d4ed58293f71122ad6a733c1603927a150735d0',
|
process.env.REACT_APP_AQUARIUS_URI ||
|
||||||
secretStoreUri: 'https://secret-store.duero.dev-ocean.com',
|
'https://aquarius.duero.dev-ocean.com',
|
||||||
faucetUri: 'https://faucet.duero.dev-ocean.com'
|
brizoUri:
|
||||||
|
process.env.REACT_APP_BRIZO_URI ||
|
||||||
|
'https://brizo.duero.dev-ocean.com',
|
||||||
|
brizoAddress:
|
||||||
|
process.env.REACT_APP_BRIZO_ADDRESS ||
|
||||||
|
'0x9d4ed58293f71122ad6a733c1603927a150735d0',
|
||||||
|
secretStoreUri:
|
||||||
|
process.env.REACT_APP_SECRET_STORE_URI ||
|
||||||
|
'https://secret-store.duero.dev-ocean.com',
|
||||||
|
faucetUri:
|
||||||
|
process.env.REACT_APP_FAUCET_URI ||
|
||||||
|
'https://faucet.duero.dev-ocean.com'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,8 @@ export default class Files extends PureComponent<FilesProps, FilesStates> {
|
|||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
isFormShown: form === 'url' ? !this.state.isFormShown : false,
|
isFormShown: form === 'url' ? !this.state.isFormShown : false,
|
||||||
isIpfsFormShown: form === 'ipfs' ? !this.state.isIpfsFormShown : false
|
isIpfsFormShown:
|
||||||
|
form === 'ipfs' ? !this.state.isIpfsFormShown : false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -193,7 +194,9 @@ export default class Files extends PureComponent<FilesProps, FilesStates> {
|
|||||||
<Button
|
<Button
|
||||||
key={shortid.generate()}
|
key={shortid.generate()}
|
||||||
link
|
link
|
||||||
onClick={(e: Event) => this.toggleForm(e, button.id)}
|
onClick={(e: Event) =>
|
||||||
|
this.toggleForm(e, button.id)
|
||||||
|
}
|
||||||
>
|
>
|
||||||
{isActive ? button.titleActive : button.title}
|
{isActive ? button.titleActive : button.title}
|
||||||
</Button>
|
</Button>
|
||||||
@ -201,7 +204,10 @@ export default class Files extends PureComponent<FilesProps, FilesStates> {
|
|||||||
})}
|
})}
|
||||||
|
|
||||||
{isFormShown && (
|
{isFormShown && (
|
||||||
<ItemForm placeholder={placeholder} addFile={this.addFile} />
|
<ItemForm
|
||||||
|
placeholder={placeholder}
|
||||||
|
addFile={this.addFile}
|
||||||
|
/>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{isIpfsFormShown && (
|
{isIpfsFormShown && (
|
||||||
|
Loading…
Reference in New Issue
Block a user