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

build(deps): bump Band Protocol to v2.3.1 #619

Merged
merged 6 commits into from
Sep 20, 2021
Merged

Conversation

RiccardoM
Copy link
Contributor

@RiccardoM RiccardoM commented Sep 14, 2021

Description

Bump Band Protocol dependencies to version v2.3.1, which is going to be the Band version used inside their new testnet as well as upcoming mainnet. This version relies on Cosmos v0.44.0.


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
@github-actions github-actions bot added kind/build Related to the build of the project x/CLI x/profiles Module that allows to create and manage decentralized social profiles labels Sep 14, 2021
@RiccardoM RiccardoM changed the title build(deps): bunp Band Protocol to v2.3.1 build(deps): bump Band Protocol to v2.3.1 Sep 14, 2021
@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #619 (68c39b3) into master (16e1eeb) will increase coverage by 8.64%.
The diff coverage is 77.70%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #619      +/-   ##
==========================================
+ Coverage   75.59%   84.23%   +8.64%     
==========================================
  Files          94       91       -3     
  Lines        4519     6624    +2105     
==========================================
+ Hits         3416     5580    +2164     
+ Misses        960      833     -127     
- Partials      143      211      +68     
Impacted Files Coverage Δ
app/genesis.go 100.00% <ø> (ø)
x/commons/commons.go 100.00% <ø> (ø)
x/profiles/keeper/keeper_dtag_transfers.go 89.09% <ø> (-5.51%) ⬇️
x/profiles/keeper/keeper_relationships.go 68.96% <ø> (-31.04%) ⬇️
x/profiles/keeper/msg_server_app_link.go 0.00% <ø> (ø)
x/profiles/keeper/msg_server_blocks.go 100.00% <ø> (ø)
x/profiles/keeper/msg_server_chain_link.go 100.00% <ø> (ø)
x/profiles/keeper/msg_server_dtag_transfers.go 72.38% <ø> (-4.09%) ⬇️
x/profiles/keeper/msg_server_relationships.go 100.00% <ø> (ø)
x/profiles/keeper/msgs_server_profile.go 78.57% <ø> (+1.82%) ⬆️
... and 120 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3bd360e...68c39b3. Read the comment docs.

Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
Signed-off-by: Riccardo Montagnin <riccardo.montagnin@gmail.com>
@RiccardoM RiccardoM marked this pull request as ready for review September 20, 2021 07:42
@@ -59,11 +59,11 @@ message OracleRequest {
option (gogoproto.equal) = true;

// ID is the ID of the request
int64 id = 1
uint64 id = 1
Copy link
Contributor Author

Choose a reason for hiding this comment

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

All these int are now uint inside Band code

@@ -107,13 +107,9 @@ message OracleParams {
// the oracle script
uint64 execute_gas = 5 [ (gogoproto.moretags) = "yaml:\"execute_gas\"" ];

// FeePayer represents the key of the account that is going to pay for oracle
// fees if needed
string fee_payer = 6 [ (gogoproto.moretags) = "yaml:\"fee_payer\"" ];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is no longer used by Band Protocol

@@ -35,7 +35,7 @@ func (s *IntegrationTestSuite) TestCmdQueryApplicationsLinks() {
types.NewData("reddit", "reddit-user"),
types.ApplicationLinkStateInitialized,
types.NewOracleRequest(
-1,
0,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

uint does not support negative values, so the default one will be 0 now

ErrValidatorAlreadyReported = sdkerrors.Register(ModuleName, 11, "validator already reported")
ErrInvalidReportSize = sdkerrors.Register(ModuleName, 12, "invalid report size")
ErrReporterNotAuthorized = sdkerrors.Register(ModuleName, 13, "reporter not authorized")
ErrEditorNotAuthorized = sdkerrors.Register(ModuleName, 14, "editor not authorized")
Copy link
Contributor

Choose a reason for hiding this comment

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

missing the 15 or is It ok?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@bragaz These files are automatically downloaded from the Band Protocol repository, so I think it's fine. We only use part of them anyway inside our codebase

x/oracle/types/packets.go Outdated Show resolved Hide resolved
RiccardoM and others added 2 commits September 20, 2021 11:07
…6b1dec4b1cd451ae142f9.yaml

Co-authored-by: Leonardo Bragagnolo <leo.braga95@gmail.com>
Co-authored-by: Leonardo Bragagnolo <leo.braga95@gmail.com>
@RiccardoM RiccardoM merged commit 2da9a43 into master Sep 20, 2021
@RiccardoM RiccardoM deleted the riccardo/upgrade-band branch September 20, 2021 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/build Related to the build of the project x/CLI x/profiles Module that allows to create and manage decentralized social profiles
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants