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

Add token address support to oracle commands. #8010

Merged
merged 2 commits into from
Jun 3, 2021

Conversation

pedro-clabs
Copy link
Contributor

@pedro-clabs pedro-clabs commented May 27, 2021

Description

Allows a celocli user to interact with the SortedOracles contract by passing an address (in addition to passing the token contract name). Currently, celocli only support two options: "StableToken" and "StableTokenEUR". This PR makes it so that it also accepts a report target address (e.g. 0x018CAad1ED69eeDD40ed8309A81Eb78c937563a6 for CELOBTC).

Other changes

Update commands help string to remove mention of supporting only cUSD (StableToken), when it already supports cEUR.

Tested

Manually tested the commands on baklava.

Backwards compatibility

This PR adds new functionality to the changed commands, but doesn't change the way it worked previously. The CLI remains compatible with all previous commands.

Documentation

Oclif docs updated.

@pedro-clabs pedro-clabs requested a review from a team May 27, 2021 11:28
@pedro-clabs pedro-clabs requested a review from a team as a code owner May 27, 2021 11:28
@pedro-clabs pedro-clabs requested review from nvtaveras and removed request for a team, mcortesi and medhakothari May 31, 2021 14:24
@pedro-clabs pedro-clabs force-pushed the pedro-clabs/cli_oracle_address branch from b5bdf01 to 1e4beef Compare June 3, 2021 08:55
Copy link
Contributor

@eelanagaraj eelanagaraj left a comment

Choose a reason for hiding this comment

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

LGTM!

@pedro-clabs pedro-clabs merged commit 0348ffc into master Jun 3, 2021
@pedro-clabs pedro-clabs deleted the pedro-clabs/cli_oracle_address branch June 3, 2021 11:56
tkporter pushed a commit that referenced this pull request Jul 8, 2021
* Add token address support to oracle commands.

* Update documentation.
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.

2 participants