Skip to content

Commit

Permalink
feat(client/v2): stringify bytes cosmos.Dec
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Jul 13, 2023
1 parent 34bbd1a commit 673270d
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 89 deletions.
94 changes: 48 additions & 46 deletions api/cosmos/slashing/v1beta1/slashing.pulsar.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions proto/cosmos/slashing/v1beta1/slashing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ message Params {

int64 signed_blocks_window = 1;
bytes min_signed_per_window = 2 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(amino.encoding) = "cosmos_dec_bytes",
Expand All @@ -54,12 +55,14 @@ message Params {
(gogoproto.stdduration) = true
];
bytes slash_fraction_double_sign = 4 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(amino.encoding) = "cosmos_dec_bytes",
(amino.dont_omitempty) = true
];
bytes slash_fraction_downtime = 5 [
(cosmos_proto.scalar) = "cosmos.Dec",
(gogoproto.customtype) = "cosmossdk.io/math.LegacyDec",
(gogoproto.nullable) = false,
(amino.encoding) = "cosmos_dec_bytes",
Expand Down
84 changes: 42 additions & 42 deletions x/slashing/types/slashing.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion x/tx/signing/aminojson/internal/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
codegen:
@echo "Generating proto files"
@buf mod update
@buf generate

0 comments on commit 673270d

Please sign in to comment.