Skip to content

Commit

Permalink
remove getsigners methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroms committed Dec 13, 2024
1 parent 8c098e4 commit 6eaebcf
Show file tree
Hide file tree
Showing 24 changed files with 0 additions and 186 deletions.
8 changes: 0 additions & 8 deletions x/conflict/types/message_conflict_vote_commit.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ func (msg *MsgConflictVoteCommit) Type() string {
return TypeMsgConflictVoteCommit
}

func (msg *MsgConflictVoteCommit) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgConflictVoteCommit) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/conflict/types/message_conflict_vote_reveal.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ func (msg *MsgConflictVoteReveal) Type() string {
return TypeMsgConflictVoteReveal
}

func (msg *MsgConflictVoteReveal) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgConflictVoteReveal) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/conflict/types/message_detection.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,6 @@ func (msg *MsgDetection) Type() string {
return TypeMsgDetection
}

func (msg *MsgDetection) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgDetection) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/dualstaking/types/message_claim_rewards.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ func (msg *MsgClaimRewards) Type() string {
return TypeMsgClaimRewards
}

func (msg *MsgClaimRewards) GetSigners() []sdk.AccAddress {
delegator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{delegator}
}

func (msg *MsgClaimRewards) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/dualstaking/types/message_delegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ func (msg *MsgDelegate) Type() string {
return TypeMsgDelegate
}

func (msg *MsgDelegate) GetSigners() []sdk.AccAddress {
delegator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{delegator}
}

func (msg *MsgDelegate) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/dualstaking/types/message_redelegate.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ func (msg *MsgRedelegate) Type() string {
return TypeMsgRedelegate
}

func (msg *MsgRedelegate) GetSigners() []sdk.AccAddress {
delegator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{delegator}
}

func (msg *MsgRedelegate) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/dualstaking/types/message_unbond.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ func (msg *MsgUnbond) Type() string {
return TypeMsgUnbond
}

func (msg *MsgUnbond) GetSigners() []sdk.AccAddress {
delegator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{delegator}
}

func (msg *MsgUnbond) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/pairing/types/message_freeze.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ func (msg *MsgFreezeProvider) Type() string {
return TypeMsgFreeze
}

func (msg *MsgFreezeProvider) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgFreezeProvider) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/pairing/types/message_move_provider_stake.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ func (msg *MsgMoveProviderStake) Type() string {
return TypeMsgMoveProviderStake
}

func (msg *MsgMoveProviderStake) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgMoveProviderStake) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/pairing/types/message_relay_payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ func (msg *MsgRelayPayment) Type() string {
return TypeMsgRelayPayment
}

func (msg *MsgRelayPayment) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgRelayPayment) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/pairing/types/message_stake_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,6 @@ func (msg *MsgStakeProvider) Type() string {
return TypeMsgStakeProvider
}

func (msg *MsgStakeProvider) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgStakeProvider) ValidateBasic() error {
if _, err := sdk.ValAddressFromBech32(msg.Validator); err != nil {
return sdkerrors.Wrapf(legacyerrors.ErrInvalidAddress, "Invalid validator address (%s) %s", err.Error(), msg.Validator)
Expand Down
8 changes: 0 additions & 8 deletions x/pairing/types/message_unfreeze.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ func (msg *MsgUnfreezeProvider) Type() string {
return TypeMsgUnfreeze
}

func (msg *MsgUnfreezeProvider) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgUnfreezeProvider) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/pairing/types/message_unstake_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ func (msg *MsgUnstakeProvider) Type() string {
return TypeMsgUnstakeProvider
}

func (msg *MsgUnstakeProvider) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgUnstakeProvider) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/projects/types/message_add_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ func (msg *MsgAddKeys) Type() string {
return TypeMsgAddKeys
}

func (msg *MsgAddKeys) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgAddKeys) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/projects/types/message_del_keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ func (msg *MsgDelKeys) Type() string {
return TypeMsgDelKeys
}

func (msg *MsgDelKeys) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgDelKeys) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/projects/types/message_set_admin_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ func (msg *MsgSetPolicy) Type() string {
return TypeMsgSetPolicy
}

func (msg *MsgSetPolicy) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgSetPolicy) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/projects/types/message_set_subscription_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,6 @@ func (msg *MsgSetSubscriptionPolicy) Type() string {
return TypeMsgSetSubscriptionPolicy
}

func (msg *MsgSetSubscriptionPolicy) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgSetSubscriptionPolicy) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
5 changes: 0 additions & 5 deletions x/protocol/types/message_set_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ func (msg *MsgSetVersion) Type() string {
return TypeMsgSetVersion
}

func (msg *MsgSetVersion) GetSigners() []sdk.AccAddress {
authority, _ := sdk.AccAddressFromBech32(msg.Authority)
return []sdk.AccAddress{authority}
}

func (msg *MsgSetVersion) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
return sdkerrors.Wrap(err, "invalid authority address")
Expand Down
8 changes: 0 additions & 8 deletions x/rewards/types/message_fund_iprpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ func (msg *MsgFundIprpc) Type() string {
return TypeMsgFundIprpc
}

func (msg *MsgFundIprpc) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgFundIprpc) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
5 changes: 0 additions & 5 deletions x/rewards/types/message_set_iprpc_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ func (msg *MsgSetIprpcData) Type() string {
return TypeMsgSetIprpcData
}

func (msg *MsgSetIprpcData) GetSigners() []sdk.AccAddress {
authority, _ := sdk.AccAddressFromBech32(msg.Authority)
return []sdk.AccAddress{authority}
}

func (msg *MsgSetIprpcData) ValidateBasic() error {
if _, err := sdk.AccAddressFromBech32(msg.Authority); err != nil {
return sdkerrors.Wrap(err, "invalid authority address")
Expand Down
8 changes: 0 additions & 8 deletions x/subscription/types/message_add_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,6 @@ func (msg *MsgAddProject) Type() string {
return TypeMsgAddProject
}

func (msg *MsgAddProject) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgAddProject) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/subscription/types/message_auto_renewal.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,6 @@ func (msg *MsgAutoRenewal) Type() string {
return TypeMsgAutoRenewal
}

func (msg *MsgAutoRenewal) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgAutoRenewal) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/subscription/types/message_buy.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ func (msg *MsgBuy) Type() string {
return TypeMsgBuy
}

func (msg *MsgBuy) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgBuy) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down
8 changes: 0 additions & 8 deletions x/subscription/types/message_del_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,6 @@ func (msg *MsgDelProject) Type() string {
return TypeMsgDelProject
}

func (msg *MsgDelProject) GetSigners() []sdk.AccAddress {
creator, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
panic(err)
}
return []sdk.AccAddress{creator}
}

func (msg *MsgDelProject) ValidateBasic() error {
_, err := sdk.AccAddressFromBech32(msg.Creator)
if err != nil {
Expand Down

0 comments on commit 6eaebcf

Please sign in to comment.