-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(x/tx): extract signers using cosmos.msg.v1.signer (#15205)
Co-authored-by: Amaury <[email protected]>
- Loading branch information
1 parent
5f47935
commit 1f40d9d
Showing
15 changed files
with
6,484 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
codegen: | ||
@(cd internal/testpb; buf generate) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
x/tx/textual/internal/testpb/1.pulsar.go → x/tx/internal/testpb/1.pulsar.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
syntax = "proto3"; | ||
|
||
import "cosmos/msg/v1/msg.proto"; | ||
|
||
option go_package = "cosmossdk.io/x/tx/internal/testpb"; | ||
|
||
message SimpleSigner { | ||
option (cosmos.msg.v1.signer) = "signer"; | ||
string signer = 1; | ||
} | ||
|
||
message RepeatedSigner { | ||
option (cosmos.msg.v1.signer) = "signer"; | ||
repeated string signer = 1; | ||
} | ||
|
||
message NestedSigner { | ||
option (cosmos.msg.v1.signer) = "inner"; | ||
Inner inner = 1; | ||
|
||
message Inner { | ||
option (cosmos.msg.v1.signer) = "signer"; | ||
string signer = 1; | ||
} | ||
} | ||
|
||
message RepeatedNestedSigner { | ||
option (cosmos.msg.v1.signer) = "inner"; | ||
repeated Inner inner = 1; | ||
|
||
message Inner { | ||
option (cosmos.msg.v1.signer) = "signer"; | ||
string signer = 1; | ||
} | ||
} | ||
|
||
message NestedRepeatedSigner { | ||
option (cosmos.msg.v1.signer) = "inner"; | ||
Inner inner = 1; | ||
|
||
message Inner { | ||
option (cosmos.msg.v1.signer) = "signer"; | ||
repeated string signer = 1; | ||
} | ||
} | ||
|
||
message RepeatedNestedRepeatedSigner { | ||
option (cosmos.msg.v1.signer) = "inner"; | ||
repeated Inner inner = 1; | ||
|
||
message Inner { | ||
option (cosmos.msg.v1.signer) = "signer"; | ||
repeated string signer = 1; | ||
} | ||
} | ||
|
||
message BadSigner { | ||
option (cosmos.msg.v1.signer) = "signer"; | ||
bytes signer = 1; | ||
} | ||
message NoSignerOption { | ||
bytes signer = 1; | ||
} |
Oops, something went wrong.