diff --git a/x/ecocredit/base/types/v1/msg_create_unregistered_project.go b/x/ecocredit/base/types/v1/msg_create_unregistered_project.go new file mode 100644 index 0000000000..4f19f58642 --- /dev/null +++ b/x/ecocredit/base/types/v1/msg_create_unregistered_project.go @@ -0,0 +1,29 @@ +package v1 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" +) + +var _ legacytx.LegacyMsg = &MsgCreateUnregisteredProject{} + +// Route implements the LegacyMsg interface. +func (m *MsgCreateUnregisteredProject) Route() string { return sdk.MsgTypeURL(m) } + +// Type implements the LegacyMsg interface. +func (m *MsgCreateUnregisteredProject) Type() string { return sdk.MsgTypeURL(m) } + +// GetSignBytes implements the LegacyMsg interface. +func (m *MsgCreateUnregisteredProject) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(m)) +} + +// ValidateBasic does a sanity check on the provided data. +func (m *MsgCreateUnregisteredProject) ValidateBasic() error { + panic("implement me") +} + +// GetSigners returns the expected signers for MsgCreateUnregisteredProject. +func (m *MsgCreateUnregisteredProject) GetSigners() []sdk.AccAddress { + return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.Admin)} +} diff --git a/x/ecocredit/base/types/v1/msg_evaluate_project_enrollment.go b/x/ecocredit/base/types/v1/msg_evaluate_project_enrollment.go new file mode 100644 index 0000000000..5c0731f0bc --- /dev/null +++ b/x/ecocredit/base/types/v1/msg_evaluate_project_enrollment.go @@ -0,0 +1,29 @@ +package v1 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" +) + +var _ legacytx.LegacyMsg = &MsgEvaluateProjectEnrollment{} + +// Route implements the LegacyMsg interface. +func (m *MsgEvaluateProjectEnrollment) Route() string { return sdk.MsgTypeURL(m) } + +// Type implements the LegacyMsg interface. +func (m *MsgEvaluateProjectEnrollment) Type() string { return sdk.MsgTypeURL(m) } + +// GetSignBytes implements the LegacyMsg interface. +func (m *MsgEvaluateProjectEnrollment) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(m)) +} + +// ValidateBasic does a sanity check on the provided data. +func (m *MsgEvaluateProjectEnrollment) ValidateBasic() error { + panic("implement me") +} + +// GetSigners returns the expected signers for MsgEvaluateProjectEnrollment. +func (m *MsgEvaluateProjectEnrollment) GetSigners() []sdk.AccAddress { + return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.Issuer)} +} diff --git a/x/ecocredit/base/types/v1/msg_update_project_enrollment.go b/x/ecocredit/base/types/v1/msg_update_project_enrollment.go new file mode 100644 index 0000000000..89d527dc51 --- /dev/null +++ b/x/ecocredit/base/types/v1/msg_update_project_enrollment.go @@ -0,0 +1,29 @@ +package v1 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" +) + +var _ legacytx.LegacyMsg = &MsgUpdateProjectEnrollment{} + +// Route implements the LegacyMsg interface. +func (m *MsgUpdateProjectEnrollment) Route() string { return sdk.MsgTypeURL(m) } + +// Type implements the LegacyMsg interface. +func (m *MsgUpdateProjectEnrollment) Type() string { return sdk.MsgTypeURL(m) } + +// GetSignBytes implements the LegacyMsg interface. +func (m *MsgUpdateProjectEnrollment) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(m)) +} + +// ValidateBasic does a sanity check on the provided data. +func (m *MsgUpdateProjectEnrollment) ValidateBasic() error { + panic("implement me") +} + +// GetSigners returns the expected signers for MsgUpdateProjectEnrollment. +func (m *MsgUpdateProjectEnrollment) GetSigners() []sdk.AccAddress { + return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.ProjectAdmin)} +} diff --git a/x/ecocredit/base/types/v1/msg_withdraw_project_enrollment.go b/x/ecocredit/base/types/v1/msg_withdraw_project_enrollment.go new file mode 100644 index 0000000000..02d3e32761 --- /dev/null +++ b/x/ecocredit/base/types/v1/msg_withdraw_project_enrollment.go @@ -0,0 +1,29 @@ +package v1 + +import ( + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" +) + +var _ legacytx.LegacyMsg = &MsgWithdrawProjectEnrollment{} + +// Route implements the LegacyMsg interface. +func (m *MsgWithdrawProjectEnrollment) Route() string { return sdk.MsgTypeURL(m) } + +// Type implements the LegacyMsg interface. +func (m *MsgWithdrawProjectEnrollment) Type() string { return sdk.MsgTypeURL(m) } + +// GetSignBytes implements the LegacyMsg interface. +func (m *MsgWithdrawProjectEnrollment) GetSignBytes() []byte { + return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(m)) +} + +// ValidateBasic does a sanity check on the provided data. +func (m *MsgWithdrawProjectEnrollment) ValidateBasic() error { + panic("implement me") +} + +// GetSigners returns the expected signers for MsgWithdrawProjectEnrollment. +func (m *MsgWithdrawProjectEnrollment) GetSigners() []sdk.AccAddress { + return []sdk.AccAddress{sdk.MustAccAddressFromBech32(m.ProjectAdmin)} +}