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(hubl): cache bech32 prefix #15954

Merged
merged 8 commits into from
Apr 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove replace
  • Loading branch information
julienrbrt committed Apr 26, 2023
commit b183631596d111b8ef8f5746d2f38ed34c2a47e4
6 changes: 2 additions & 4 deletions tools/hubl/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ go 1.20

require (
cosmossdk.io/api v0.4.1
cosmossdk.io/client/v2 v2.0.0-20230426101247-6dfe7351a5c2
cosmossdk.io/client/v2 v2.0.0-20230426140425-4fc6f37e2345
cosmossdk.io/errors v1.0.0-beta.7
github.com/cockroachdb/errors v1.9.1
github.com/cosmos/cosmos-sdk v0.46.0-beta2.0.20230426101247-6dfe7351a5c2
github.com/cosmos/cosmos-sdk v0.46.0-beta2.0.20230426140425-4fc6f37e2345
github.com/hashicorp/go-multierror v1.1.1
github.com/manifoldco/promptui v0.9.0
github.com/pelletier/go-toml/v2 v2.0.7
Expand Down Expand Up @@ -120,5 +120,3 @@ require (
pgregory.net/rapid v0.5.5 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

replace github.com/cosmos/cosmos-sdk => ../..
6 changes: 4 additions & 2 deletions tools/hubl/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9
cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo=
cosmossdk.io/api v0.4.1 h1:0ikaYM6GyxTYYcfBiyR8YnLCfhNnhKpEFnaSepCTmqg=
cosmossdk.io/api v0.4.1/go.mod h1:jR7k5ok90LxW2lFUXvd8Vpo/dr4PpiyVegxdm7b1ZdE=
cosmossdk.io/client/v2 v2.0.0-20230426101247-6dfe7351a5c2 h1:pxDnmNzRPcXJSuSp94ZLq4ONnJEx4SuhQcLpNY6XtBk=
cosmossdk.io/client/v2 v2.0.0-20230426101247-6dfe7351a5c2/go.mod h1:6sh0IPV4v05q8M41t7kZTkBx90Ht35eEuHyYrqoXzcw=
cosmossdk.io/client/v2 v2.0.0-20230426140425-4fc6f37e2345 h1:heudZKaJBk31SYUNzbnUu7g1p53rh1WJ4v7P/UW0hGw=
cosmossdk.io/client/v2 v2.0.0-20230426140425-4fc6f37e2345/go.mod h1:6sh0IPV4v05q8M41t7kZTkBx90Ht35eEuHyYrqoXzcw=
cosmossdk.io/collections v0.1.0 h1:nzJGeiq32KnZroSrhB6rPifw4I85Cgmzw/YAmr4luv8=
cosmossdk.io/collections v0.1.0/go.mod h1:xbauc0YsbUF8qKMVeBZl0pFCunxBIhKN/WlxpZ3lBuo=
cosmossdk.io/core v0.6.2-0.20230323161322-ccd8d40119e4 h1:l1scDTT2VX18ZuR6P0irvT/bAP0h4297D/Lka5nz2vE=
Expand Down Expand Up @@ -146,6 +146,8 @@ github.com/cosmos/cosmos-db v1.0.0-rc.1 h1:SjnT8B6WKMW9WEIX32qMhnEEKcI7ZP0+G1Sa9
github.com/cosmos/cosmos-db v1.0.0-rc.1/go.mod h1:Dnmk3flSf5lkwCqvvjNpoxjpXzhxnCAFzKHlbaForso=
github.com/cosmos/cosmos-proto v1.0.0-beta.3 h1:VitvZ1lPORTVxkmF2fAp3IiA61xVwArQYKXTdEcpW6o=
github.com/cosmos/cosmos-proto v1.0.0-beta.3/go.mod h1:t8IASdLaAq+bbHbjq4p960BvcTqtwuAxid3b/2rOD6I=
github.com/cosmos/cosmos-sdk v0.46.0-beta2.0.20230426140425-4fc6f37e2345 h1:7ZCIv1JjgmeJ7lFJveoOV76vwzOJ6Z8Ur5MvsW5G5Ho=
github.com/cosmos/cosmos-sdk v0.46.0-beta2.0.20230426140425-4fc6f37e2345/go.mod h1:AD4IKrBq+M+oy1hlaBaDkyFcvoR82cLg0mS6lE2K0nU=
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
Expand Down
6 changes: 2 additions & 4 deletions tools/hubl/internal/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ import (
"path"
"strings"

addresscodec "github.com/cosmos/cosmos-sdk/codec/address"
"github.com/spf13/cobra"
"google.golang.org/grpc"
"google.golang.org/protobuf/reflect/protoreflect"
"google.golang.org/protobuf/reflect/protoregistry"
"google.golang.org/protobuf/types/dynamicpb"

addresscodec "github.com/cosmos/cosmos-sdk/codec/address"

"cosmossdk.io/client/v2/autocli"
"cosmossdk.io/client/v2/autocli/flag"
)
Expand Down Expand Up @@ -121,9 +122,6 @@ func RemoteCommand(config *Config, configDir string) ([]*cobra.Command, error) {
AddressCodec: addresscodec.NewBech32Codec(chainConfig.Bech32Prefix),
TypeResolver: &dynamicTypeResolver{chainInfo},
FileResolver: chainInfo.ProtoFiles,
GetClientConn: func() (grpc.ClientConnInterface, error) {
return chainInfo.OpenClient()
},
},
GetClientConn: func(command *cobra.Command) (grpc.ClientConnInterface, error) {
return chainInfo.OpenClient()
Expand Down