Skip to content

Make marketplace configurable by the core#942

Merged
antho1404 merged 3 commits intodevfrom
feature/configurable-marketplace-env
May 3, 2019
Merged

Make marketplace configurable by the core#942
antho1404 merged 3 commits intodevfrom
feature/configurable-marketplace-env

Conversation

@antho1404
Copy link
Copy Markdown
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

@antho1404 antho1404 requested review from NicolasMahe and krhubert May 3, 2019 05:02
Comment thread dev-core
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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