Skip to content

Commit

Permalink
test(x/tx): add amino JSON pretty bytes demonstration test (#21935)
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski authored Sep 26, 2024
1 parent 2c85694 commit e4240b6
Show file tree
Hide file tree
Showing 4 changed files with 184 additions and 74 deletions.
1 change: 0 additions & 1 deletion buf.work.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ version: v1
directories:
- proto
- x/accounts/proto
- x/auth/proto
- x/authz/proto
- x/bank/proto
- x/circuit/proto
Expand Down
27 changes: 14 additions & 13 deletions x/tx/signing/aminojson/internal/testpb/test.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,20 @@ message ABitOfEverything {

repeated int32 repeated = 6;

string str = 7;
bool bool = 8;
bytes bytes = 9;
int32 i32 = 10;
fixed32 f32 = 11;
uint32 u32 = 12;
sint32 si32 = 13;
sfixed32 sf32 = 14;
int64 i64 = 15;
fixed64 f64 = 16;
uint64 u64 = 17;
sint64 si64 = 18;
sfixed64 sf64 = 19;
string str = 7;
bool bool = 8;
bytes bytes = 9;
int32 i32 = 10;
fixed32 f32 = 11;
uint32 u32 = 12;
sint32 si32 = 13;
sfixed32 sf32 = 14;
int64 i64 = 15;
fixed64 f64 = 16;
uint64 u64 = 17;
sint64 si64 = 18;
sfixed64 sf64 = 19;
bytes pretty_bytes = 20 [(amino.encoding) = "hex"];

// The following types are not tested here because they are treated fundamentally differently in
// gogoproto. They are tested fully in /tests/integration/aminojson/aminojson_test.go
Expand Down
199 changes: 139 additions & 60 deletions x/tx/signing/aminojson/internal/testpb/test.pulsar.go

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

Loading

0 comments on commit e4240b6

Please sign in to comment.