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

Move codec/std to std #6085

Merged
merged 7 commits into from
Apr 27, 2020
Merged

Move codec/std to std #6085

merged 7 commits into from
Apr 27, 2020

Conversation

aaronc
Copy link
Member

@aaronc aaronc commented Apr 27, 2020

Description

This moves codec/std to std so that we have just one std package as discussed previously in #6034. It is expected to fail proto break checking as a package was renamed.


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

client/tx/tx_test.go Outdated Show resolved Hide resolved
std/msgs_test.go Outdated Show resolved Hide resolved
std/tx_test.go Outdated Show resolved Hide resolved
@aaronc aaronc marked this pull request as ready for review April 27, 2020 17:54
@@ -2,6 +2,7 @@ package main

import (
"fmt"
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: grouping is incorrect.

Copy link
Member Author

Choose a reason for hiding this comment

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

Does make format do this automatically?

@@ -4,6 +4,7 @@ import (
"bufio"
"errors"
"fmt"
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -2,6 +2,7 @@ package main

import (
"encoding/json"
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -2,18 +2,18 @@ package simapp

import (
"fmt"
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

std/codec.proto Show resolved Hide resolved
@@ -2,21 +2,21 @@ package simulation_test

import (
"fmt"
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -2,6 +2,7 @@ package simulation_test

import (
"fmt"
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -1,12 +1,12 @@
package staking_test

import (
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -1,12 +1,12 @@
package keeper_test

import (
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

@@ -2,6 +2,7 @@ package simulation_test

import (
"fmt"
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

simapp/utils_test.go Outdated Show resolved Hide resolved
@@ -1,11 +1,10 @@
package gov_test

import (
"github.com/cosmos/cosmos-sdk/std"
Copy link
Contributor

Choose a reason for hiding this comment

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

[golangci] reported by reviewdog 🐶
File is not goimports-ed (goimports)

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

ACK!

@alexanderbez alexanderbez added R4R Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. A:automerge Automatically merge PR once all prerequisites pass. labels Apr 27, 2020
@aaronc aaronc merged commit cc90f2e into master Apr 27, 2020
@aaronc aaronc deleted the aaronc/mv-codec-std branch April 27, 2020 19:40
@clevinson clevinson added this to the v0.39 milestone Jun 11, 2020
larry0x pushed a commit to larry0x/cosmos-sdk that referenced this pull request May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:automerge Automatically merge PR once all prerequisites pass. Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants