mirror of https://github.com/dap-ps/discover.git
Fix comments
This commit is contained in:
parent
d188561dbc
commit
47efaabfb3
|
@ -1,7 +1,6 @@
|
||||||
PORT=4000
|
PORT=4000
|
||||||
ENVIRONMENT='DEV'
|
ENVIRONMENT='DEV'
|
||||||
DB_CONNECTION="mongodb://localhost:27017/statusDiscoverDB"
|
DB_CONNECTION="mongodb+srv://status:discoverdapps@cluster0-ahfnc.mongodb.net/test?retryWrites=true"
|
||||||
# DB_CONNECTION="mongodb+srv://status:discoverdapps@cluster0-ahfnc.mongodb.net/test?retryWrites=true"
|
|
||||||
|
|
||||||
ADMIN_USER="Status"
|
ADMIN_USER="Status"
|
||||||
ADMIN_PASSWORD="discoverbancor"
|
ADMIN_PASSWORD="discoverbancor"
|
||||||
|
|
|
@ -74,9 +74,9 @@ module.exports = {
|
||||||
SafeMath: { deploy: false },
|
SafeMath: { deploy: false },
|
||||||
TestBancorFormula: { deploy: false },
|
TestBancorFormula: { deploy: false },
|
||||||
MiniMeToken: {
|
MiniMeToken: {
|
||||||
address: '0x2764b5da3696E3613Ef9864E9B4613f9fA478E75'
|
address: '0x25B1bD06fBfC2CbDbFc174e10f1B78b1c91cc77B',
|
||||||
},
|
},
|
||||||
Discover: { address: '0xd88e9ac0adf2014764e5cf64c6895f12bdf2540f' },
|
Discover: { address: '0x17e7a7330d23fc6a2ab8578a627408f815396662' },
|
||||||
// MiniMeToken: {
|
// MiniMeToken: {
|
||||||
// args: [
|
// args: [
|
||||||
// '$MiniMeTokenFactory',
|
// '$MiniMeTokenFactory',
|
||||||
|
@ -112,9 +112,11 @@ module.exports = {
|
||||||
// used with "embark run testnet"
|
// used with "embark run testnet"
|
||||||
testnet: {
|
testnet: {
|
||||||
deployment: {
|
deployment: {
|
||||||
accounts: [{
|
accounts: [
|
||||||
mnemonic: wallet.mnemonic,
|
{
|
||||||
}],
|
mnemonic: wallet.mnemonic,
|
||||||
|
},
|
||||||
|
],
|
||||||
host: `ropsten.infura.io/v3/8675214b97b44e96b70d05326c61fd6a`,
|
host: `ropsten.infura.io/v3/8675214b97b44e96b70d05326c61fd6a`,
|
||||||
port: false,
|
port: false,
|
||||||
type: 'rpc',
|
type: 'rpc',
|
||||||
|
@ -124,7 +126,7 @@ module.exports = {
|
||||||
'$WEB3',
|
'$WEB3',
|
||||||
'https://ropsten.infura.io/v3/8675214b97b44e96b70d05326c61fd6a',
|
'https://ropsten.infura.io/v3/8675214b97b44e96b70d05326c61fd6a',
|
||||||
],
|
],
|
||||||
dappAutoEnable: false
|
dappAutoEnable: false,
|
||||||
},
|
},
|
||||||
|
|
||||||
// merges with the settings in default
|
// merges with the settings in default
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"UPLOAD": "http://localhost:4000/metadata",
|
"UPLOAD": "http://dev.dap.ps/metadata",
|
||||||
"UPDATE": "http://localhost:4000/metadata/update",
|
"UPDATE": "http://dev.dap.ps/metadata/update",
|
||||||
"APPROVE": "http://localhost:4000/metadata/approve/email",
|
"APPROVE": "http://dev.dap.ps/metadata/approve/email",
|
||||||
"RETRIEVE_METADATA": "http://localhost:4000/metadata",
|
"RETRIEVE_METADATA": "http://dev.dap.ps/metadata",
|
||||||
"RETRIEVE_ALL_METADATA": "http://localhost:4000/metadata/all"
|
"RETRIEVE_ALL_METADATA": "http://dev.dap.ps/metadata/all"
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,20 +33,6 @@ export const fetchAllDappsAction = () => {
|
||||||
|
|
||||||
const { transactionStatus } = state
|
const { transactionStatus } = state
|
||||||
let dappSource = ''
|
let dappSource = ''
|
||||||
// let dappSource = await discoverService.getDAppByIndexWithMetadata(0)
|
|
||||||
// if (dappSource !== null) {
|
|
||||||
// const dappModel = DappModel.instanceFromBlockchainWithMetadata(
|
|
||||||
// dappSource,
|
|
||||||
// )
|
|
||||||
// dappState = dappState.creditDapp(dappModel)
|
|
||||||
// if (
|
|
||||||
// dappModel.id !== transactionStatus.dappId ||
|
|
||||||
// transactionStatus.type !== TYPE_SUBMIT
|
|
||||||
// ) {
|
|
||||||
// dispatch(onUpdateDappsAction(dappState))
|
|
||||||
// Database.creditDapp(dappModel)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
|
|
||||||
const allDapps = await discoverService.getAllDappsWithMetadata()
|
const allDapps = await discoverService.getAllDappsWithMetadata()
|
||||||
for (let i = 0; i < allDapps.length; i++) {
|
for (let i = 0; i < allDapps.length; i++) {
|
||||||
|
@ -66,22 +52,6 @@ export const fetchAllDappsAction = () => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// for (let i = N - 1; i >= 1; i -= 1) {
|
|
||||||
// dappSource = await discoverService.getDAppByIndexWithMetadata(i)
|
|
||||||
// if (dappSource !== null) {
|
|
||||||
// const dappModel = DappModel.instanceFromBlockchainWithMetadata(
|
|
||||||
// dappSource,
|
|
||||||
// )
|
|
||||||
// dappState = dappState.creditDapp(dappModel)
|
|
||||||
// if (
|
|
||||||
// dappModel.id !== transactionStatus.dappId ||
|
|
||||||
// transactionStatus.type !== TYPE_SUBMIT
|
|
||||||
// ) {
|
|
||||||
// dispatch(onUpdateDappsAction(dappState))
|
|
||||||
// Database.creditDapp(dappModel)
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log('error', e)
|
console.log('error', e)
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
|
|
Loading…
Reference in New Issue