-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Morse->Shannon Migration] Scaffold MsgClaimMorsePOKT
#1046
base: issues/1034/feat/upload-state
Are you sure you want to change the base?
[Morse->Shannon Migration] Scaffold MsgClaimMorsePOKT
#1046
Conversation
2325c35
to
46f2a04
Compare
46f2a04
to
1078e15
Compare
…n_dest_address morse_src_address morse_sign ature --response balance
8749d8f
to
c9e4493
Compare
"github.com/pokt-network/poktroll/x/migration/types" | ||
) | ||
|
||
func (k msgServer) ClaimMorsePokt(goCtx context.Context, msg *types.MsgClaimMorsePokt) (*types.MsgClaimMorsePoktResponse, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#PUC
|
||
message MsgClaimMorsePoktResponse { | ||
cosmos.base.v1beta1.Coin balance = 1 [(gogoproto.jsontag) = "balance"]; | ||
bytes state_hash = 2 [(gogoproto.jsontag) = "state_hash"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#PUC - unclear how this is being used
message MsgClaimMorsePokt { | ||
option (cosmos.msg.v1.signer) = "shannon_dest_address"; | ||
|
||
string shannon_dest_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString", (gogoproto.jsontag) = "shannon_dest_address"]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#PUC w.r.t address types (bech32 or not) and signature types (e.g. ed25519, secp256, etc)
}, { | ||
name: "invalid address", | ||
msg: MsgClaimMorsePokt{ | ||
MorseSrcAddress: hex.EncodeToString(sample.ConsAddress().Bytes()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mind moving these into local vars and adding some comments to the fact that
Consensus Address == Ed25519 == Morse
Feel free to link to https://www.notion.so/buildwithgrove/Background-Addresses-Key-Schemes-175a36edfff680ff8f23fc7599fd9107?pvs=4
} | ||
} | ||
|
||
func (msg *MsgClaimMorsePokt) ValidateBasic() error { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
#PUC onw hat it validates too
Summary
ignite scaffold message claim-morse-pokt --module migration --signer shannon_dest_address morse_src_address morse_signature --response balance
Issue
Type of change
Select one or more from the following:
consensus-breaking
label if so. See [Infra] Automatically add theconsensus-breaking
label #791 for detailsTesting
make docusaurus_start
; only needed if you make doc changesmake go_develop_and_test
make test_e2e
devnet-test-e2e
label to the PR.Sanity Checklist