Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make marketplace configurable by the core #942

Merged
merged 3 commits into from
May 3, 2019

Conversation

antho1404
Copy link
Member

We need a way to use the marketplace in dev (ropsten) and prod (on the mainnet)

@NicolasMahe please update scripts/build-core.sh when you have the contract on the mainnet

@@ -7,6 +7,9 @@ MESG_LOG_LEVEL=${MESG_LOG_LEVEL:-debug}
MESG_LOG_FORCECOLORS=${MESG_LOG_FORCECOLORS:-false}
VERSION=local
LDFLAGS="-X 'github.com/mesg-foundation/core/version.Version=$VERSION'"
LDFLAGS+=" -X 'github.com/mesg-foundation/core/config.EnvMarketplaceEndpoint=https://ropsten.infura.io/v3/6115ae2531f64c04a9a392cf500e5fbe'"
Copy link
Contributor

@krhubert krhubert May 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can set it directly in the mesg.yaml of the service, in that case everone can deploy and use it without dev-core script.

EDIT:

Those values were in the mesg.yaml, what is the reason to move it here? We can left it in mesg.yaml and overwrite via config if needed

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is in the file config/services.go. It always replace the env.
It could create the env map dynamically only if the variable contains something...
It could be improved later on. Let's merge it this way for now.

krhubert
krhubert previously approved these changes May 3, 2019
@NicolasMahe
Copy link
Member

NicolasMahe commented May 3, 2019

I added the mainnet data 👍

See the deployed marketplace: https://etherscan.io/address/0x0c6e8d0ec4770fda8a56cd912392d2ff14822952

@antho1404 antho1404 merged commit e5b6d17 into dev May 3, 2019
@antho1404 antho1404 deleted the feature/configurable-marketplace-env branch May 3, 2019 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants