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

feat: proto for oracle upgrade and its skeleton #577

Merged
merged 28 commits into from
Jan 3, 2023
Merged

Conversation

0xHansLee
Copy link
Contributor

close #575

proto messages and skeleton code for the txs and queries.

Apart from OracleRegistration, I defined OracleUpgrade which is a set for MsgUpgradeOracle for now. When developing functions, if it seems that it is better to combine them, then let's merge them.

BTW, the name of OracleUpgrade is little bit confusing, so if you have any good idea for this, please feel free to leave your thoughts.

Comment on lines +6 to +7
EventTypeUpgrade = "oracle_upgrade"
EventTypeApproveOracleUpgrade = "approve_oracle_upgrade"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, add separate event for oracle upgrade. This event type will be used in oracle side.

audtlr24 and others added 9 commits December 26, 2022 18:27
…ft/575/upgrade-proto

# Conflicts:
#	proto/panacea/oracle/v2/oracle.proto
#	proto/panacea/oracle/v2/proposal.proto
#	proto/panacea/oracle/v2/query.proto
#	x/oracle/types/keys.go
#	x/oracle/types/oracle.pb.go
#	x/oracle/types/query.pb.go
#	x/oracle/types/query.pb.gw.go
@0xHansLee 0xHansLee changed the base branch from main to ft/570/upgrade-endblocker December 27, 2022 23:41
@0xHansLee
Copy link
Contributor Author

I merged #578 into this branch and changed base branch to ft/570/upgrade-endblocker.
Because both query for oracle upgrade info and proto messages are needed to develop oracle.

Copy link
Contributor

@audtlr24 audtlr24 left a comment

Choose a reason for hiding this comment

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

lgtm

@gyuguen
Copy link
Contributor

gyuguen commented Jan 2, 2023

I think seperating OracleRegistration and OracleUpgrade is a good choice.
Because required paramter are different for OracleRegistration and OracleUpgrade.
OracleUpgrade is not required oracleCommissionRate, oracleCommissionmaxRate and oracleCommissionMaxChangeRate.

@gyuguen
Copy link
Contributor

gyuguen commented Jan 2, 2023

I too think the OracleUpgrade name is confusing.
But I can't think of a good name. :)

Let's think about this.

Copy link
Contributor

@gyuguen gyuguen left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@inchori inchori left a comment

Choose a reason for hiding this comment

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

LGTM!

Base automatically changed from ft/570/upgrade-endblocker to main January 3, 2023 08:38
H4NLee and others added 4 commits January 3, 2023 18:11
# Conflicts:
#	proto/panacea/oracle/v2/oracle.proto
#	proto/panacea/oracle/v2/query.proto
#	x/oracle/keeper/upgrade.go
#	x/oracle/keeper/upgrade_test.go
#	x/oracle/types/keys.go
#	x/oracle/types/oracle.pb.go
#	x/oracle/types/query.pb.go
#	x/oracle/types/query.pb.gw.go
@0xHansLee 0xHansLee merged commit 2156e2e into main Jan 3, 2023
@0xHansLee 0xHansLee deleted the ft/575/upgrade-proto branch January 3, 2023 09:26
Copy link
Contributor

@youngjoon-lee youngjoon-lee left a comment

Choose a reason for hiding this comment

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

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make proto message for oracle upgrade
5 participants