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
|
||||
className={styles.buttonMain}
|
||||
// weird 0 hack so TypeScript is happy
|
||||
onClick={() => this.purchaseAsset(ddo, index || 0)}
|
||||
onClick={() =>
|
||||
this.purchaseAsset(ddo, index || 0)
|
||||
}
|
||||
disabled={!isLogged || !market.networkMatch}
|
||||
name="Download"
|
||||
>
|
||||
|
@ -27,27 +27,60 @@ export const ipfsNodeUri =
|
||||
//
|
||||
export const CONNECTIONS = {
|
||||
pacific: {
|
||||
nodeUri: 'https://pacific.oceanprotocol.com',
|
||||
aquariusUri: 'https://aquarius.commons.oceanprotocol.com',
|
||||
brizoUri: 'https://brizo.commons.oceanprotocol.com',
|
||||
brizoAddress: '0x008c25ed3594e094db4592f4115d5fa74c4f41ea',
|
||||
secretStoreUri: 'https://secret-store.oceanprotocol.com',
|
||||
faucetUri: 'https://faucet.oceanprotocol.com'
|
||||
nodeUri:
|
||||
process.env.REACT_APP_NODE_URI ||
|
||||
'https://pacific.oceanprotocol.com',
|
||||
aquariusUri:
|
||||
process.env.REACT_APP_AQUARIUS_URI ||
|
||||
'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: {
|
||||
nodeUri: 'https://nile.dev-ocean.com',
|
||||
aquariusUri: 'https://aquarius.nile.dev-ocean.com',
|
||||
brizoUri: 'https://brizo.nile.dev-ocean.com',
|
||||
brizoAddress: '0x4aaab179035dc57b35e2ce066919048686f82972',
|
||||
secretStoreUri: 'https://secret-store.nile.dev-ocean.com',
|
||||
faucetUri: 'https://faucet.nile.dev-ocean.com'
|
||||
nodeUri: process.env.REACT_APP_NODE_URI || 'https://nile.dev-ocean.com',
|
||||
aquariusUri:
|
||||
process.env.REACT_APP_AQUARIUS_URI ||
|
||||
'https://aquarius.nile.dev-ocean.com',
|
||||
brizoUri:
|
||||
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: {
|
||||
nodeUri: 'https://duero.dev-ocean.com',
|
||||
aquariusUri: 'https://aquarius.duero.dev-ocean.com',
|
||||
brizoUri: 'https://brizo.duero.dev-ocean.com',
|
||||
brizoAddress: '0x9d4ed58293f71122ad6a733c1603927a150735d0',
|
||||
secretStoreUri: 'https://secret-store.duero.dev-ocean.com',
|
||||
faucetUri: 'https://faucet.duero.dev-ocean.com'
|
||||
nodeUri:
|
||||
process.env.REACT_APP_NODE_URI || 'https://duero.dev-ocean.com',
|
||||
aquariusUri:
|
||||
process.env.REACT_APP_AQUARIUS_URI ||
|
||||
'https://aquarius.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({
|
||||
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
|
||||
key={shortid.generate()}
|
||||
link
|
||||
onClick={(e: Event) => this.toggleForm(e, button.id)}
|
||||
onClick={(e: Event) =>
|
||||
this.toggleForm(e, button.id)
|
||||
}
|
||||
>
|
||||
{isActive ? button.titleActive : button.title}
|
||||
</Button>
|
||||
@ -201,7 +204,10 @@ export default class Files extends PureComponent<FilesProps, FilesStates> {
|
||||
})}
|
||||
|
||||
{isFormShown && (
|
||||
<ItemForm placeholder={placeholder} addFile={this.addFile} />
|
||||
<ItemForm
|
||||
placeholder={placeholder}
|
||||
addFile={this.addFile}
|
||||
/>
|
||||
)}
|
||||
|
||||
{isIpfsFormShown && (
|
||||
|
Loading…
Reference in New Issue
Block a user