std

package
v1.0.0-playground Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package std defines all the common and standard inter-module Cosmos SDK types and definitions modules and applications can depend on. These types and definitions serve as convenient starting point and also to act as an example or template of how said types and definitions can be overridden/redefined.

Typically these will be used in application-specific units of business logic. These types and definitions are different from the types you may find in a "core" or "types" package as those should be considered the defacto types to be used and are not application-specific.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthCodec        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCodec          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCodec = fmt.Errorf("proto: unexpected end of group")
)

Functions

func ConsensusParamsKeyTable

func ConsensusParamsKeyTable() params.KeyTable

ConsensusParamsKeyTable returns an x/params module keyTable to be used in the BaseApp's ParamStore. The KeyTable registers the types along with the standard validation functions. Applications can choose to adopt this KeyTable or provider their own when the existing validation functions do not suite their needs.

func MakeCodec

func MakeCodec(bm module.BasicManager) *codec.Codec

---------------------------------------------------------------------------- necessary types and interfaces registered. This codec is provided to all the modules the application depends on.

NOTE: This codec will be deprecated in favor of AppCodec once all modules are migrated.

func NewMsgSubmitProposal

func NewMsgSubmitProposal(c gov.Content, d sdk.Coins, p sdk.AccAddress) (gov.MsgSubmitProposalI, error)

NewMsgSubmitProposal returns a new MsgSubmitProposal.

Types

type Account

type Account struct {
	// sum defines a list of all acceptable concrete Account implementations.
	//
	// Types that are valid to be assigned to Sum:
	//	*Account_BaseAccount
	//	*Account_ContinuousVestingAccount
	//	*Account_DelayedVestingAccount
	//	*Account_PeriodicVestingAccount
	//	*Account_ModuleAccount
	Sum isAccount_Sum `protobuf_oneof:"sum"`
}

Account defines the application-level Account type.

func (*Account) Descriptor

func (*Account) Descriptor() ([]byte, []int)

func (*Account) GetAccount

func (*Account) GetBaseAccount

func (m *Account) GetBaseAccount() *types.BaseAccount

func (*Account) GetContinuousVestingAccount

func (m *Account) GetContinuousVestingAccount() *types1.ContinuousVestingAccount

func (*Account) GetDelayedVestingAccount

func (m *Account) GetDelayedVestingAccount() *types1.DelayedVestingAccount

func (*Account) GetModuleAccount

func (m *Account) GetModuleAccount() *types.ModuleAccount

func (*Account) GetPeriodicVestingAccount

func (m *Account) GetPeriodicVestingAccount() *types1.PeriodicVestingAccount

func (*Account) GetSum

func (m *Account) GetSum() isAccount_Sum

func (*Account) Marshal

func (m *Account) Marshal() (dAtA []byte, err error)

func (*Account) MarshalTo

func (m *Account) MarshalTo(dAtA []byte) (int, error)

func (*Account) MarshalToSizedBuffer

func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) SetAccount

func (*Account) Size

func (m *Account) Size() (n int)

func (*Account) String

func (m *Account) String() string

func (*Account) Unmarshal

func (m *Account) Unmarshal(dAtA []byte) error

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Account) XXX_Merge

func (m *Account) XXX_Merge(src proto.Message)

func (*Account) XXX_OneofWrappers

func (*Account) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

func (m *Account) XXX_Unmarshal(b []byte) error

type Account_BaseAccount

type Account_BaseAccount struct {
	BaseAccount *types.BaseAccount `protobuf:"bytes,1,opt,name=base_account,json=baseAccount,proto3,oneof" json:"base_account,omitempty"`
}

func (*Account_BaseAccount) MarshalTo

func (m *Account_BaseAccount) MarshalTo(dAtA []byte) (int, error)

func (*Account_BaseAccount) MarshalToSizedBuffer

func (m *Account_BaseAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Account_BaseAccount) Size

func (m *Account_BaseAccount) Size() (n int)

type Account_ContinuousVestingAccount

type Account_ContinuousVestingAccount struct {
	ContinuousVestingAccount *types1.ContinuousVestingAccount `` /* 141-byte string literal not displayed */
}

func (*Account_ContinuousVestingAccount) MarshalTo

func (m *Account_ContinuousVestingAccount) MarshalTo(dAtA []byte) (int, error)

func (*Account_ContinuousVestingAccount) MarshalToSizedBuffer

func (m *Account_ContinuousVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Account_ContinuousVestingAccount) Size

func (m *Account_ContinuousVestingAccount) Size() (n int)

type Account_DelayedVestingAccount

type Account_DelayedVestingAccount struct {
	DelayedVestingAccount *types1.DelayedVestingAccount `` /* 132-byte string literal not displayed */
}

func (*Account_DelayedVestingAccount) MarshalTo

func (m *Account_DelayedVestingAccount) MarshalTo(dAtA []byte) (int, error)

func (*Account_DelayedVestingAccount) MarshalToSizedBuffer

func (m *Account_DelayedVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Account_DelayedVestingAccount) Size

func (m *Account_DelayedVestingAccount) Size() (n int)

type Account_ModuleAccount

type Account_ModuleAccount struct {
	ModuleAccount *types.ModuleAccount `protobuf:"bytes,5,opt,name=module_account,json=moduleAccount,proto3,oneof" json:"module_account,omitempty"`
}

func (*Account_ModuleAccount) MarshalTo

func (m *Account_ModuleAccount) MarshalTo(dAtA []byte) (int, error)

func (*Account_ModuleAccount) MarshalToSizedBuffer

func (m *Account_ModuleAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Account_ModuleAccount) Size

func (m *Account_ModuleAccount) Size() (n int)

type Account_PeriodicVestingAccount

type Account_PeriodicVestingAccount struct {
	PeriodicVestingAccount *types1.PeriodicVestingAccount `` /* 135-byte string literal not displayed */
}

func (*Account_PeriodicVestingAccount) MarshalTo

func (m *Account_PeriodicVestingAccount) MarshalTo(dAtA []byte) (int, error)

func (*Account_PeriodicVestingAccount) MarshalToSizedBuffer

func (m *Account_PeriodicVestingAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Account_PeriodicVestingAccount) Size

func (m *Account_PeriodicVestingAccount) Size() (n int)

type Codec

type Codec struct {
	codec.Marshaler
	// contains filtered or unexported fields
}

Codec defines the application-level codec. This codec contains all the required module-specific codecs that are to be provided upon initialization.

func NewAppCodec

func NewAppCodec(amino *codec.Codec, anyUnpacker types.AnyUnpacker) *Codec

func (*Codec) MarshalAccount

func (c *Codec) MarshalAccount(accI authexported.Account) ([]byte, error)

MarshalAccount marshals an Account interface. If the given type implements the Marshaler interface, it is treated as a Proto-defined message and serialized that way. Otherwise, it falls back on the internal Amino codec.

func (*Codec) MarshalAccountJSON

func (c *Codec) MarshalAccountJSON(acc authexported.Account) ([]byte, error)

MarshalAccountJSON JSON encodes an account object implementing the Account interface.

func (*Codec) MarshalProposal

func (c *Codec) MarshalProposal(p gov.Proposal) ([]byte, error)

MarshalProposal marshals a Proposal. It accepts a Proposal defined by the x/gov module and uses the application-level Proposal type which has the concrete Content implementation to serialize.

func (*Codec) UnmarshalAccount

func (c *Codec) UnmarshalAccount(bz []byte) (authexported.Account, error)

UnmarshalAccount returns an Account interface from raw encoded account bytes of a Proto-based Account type. An error is returned upon decoding failure.

func (*Codec) UnmarshalAccountJSON

func (c *Codec) UnmarshalAccountJSON(bz []byte) (authexported.Account, error)

UnmarshalAccountJSON returns an Account from JSON encoded bytes.

func (*Codec) UnmarshalProposal

func (c *Codec) UnmarshalProposal(bz []byte) (gov.Proposal, error)

UnmarshalProposal decodes a Proposal defined by the x/gov module and uses the application-level Proposal type which has the concrete Content implementation to deserialize.

type Content

type Content struct {
	// sum defines a set of all acceptable concrete governance proposal Content
	// types.
	//
	// Types that are valid to be assigned to Sum:
	//	*Content_Text
	//	*Content_ParameterChange
	//	*Content_SoftwareUpgrade
	//	*Content_CancelSoftwareUpgrade
	//	*Content_CommunityPoolSpend
	Sum isContent_Sum `protobuf_oneof:"sum"`
}

Content defines the application-level allowed Content to be included in a governance proposal.

func (*Content) Descriptor

func (*Content) Descriptor() ([]byte, []int)

func (*Content) Equal

func (this *Content) Equal(that interface{}) bool

func (*Content) GetCancelSoftwareUpgrade

func (m *Content) GetCancelSoftwareUpgrade() *types3.CancelSoftwareUpgradeProposal

func (*Content) GetCommunityPoolSpend

func (m *Content) GetCommunityPoolSpend() *types4.CommunityPoolSpendProposal

func (*Content) GetContent

func (*Content) GetParameterChange

func (m *Content) GetParameterChange() *proposal.ParameterChangeProposal

func (*Content) GetSoftwareUpgrade

func (m *Content) GetSoftwareUpgrade() *types3.SoftwareUpgradeProposal

func (*Content) GetSum

func (m *Content) GetSum() isContent_Sum

func (*Content) GetText

func (m *Content) GetText() *types2.TextProposal

func (*Content) Marshal

func (m *Content) Marshal() (dAtA []byte, err error)

func (*Content) MarshalTo

func (m *Content) MarshalTo(dAtA []byte) (int, error)

func (*Content) MarshalToSizedBuffer

func (m *Content) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) Reset

func (m *Content) Reset()

func (*Content) SetContent

func (*Content) Size

func (m *Content) Size() (n int)

func (*Content) String

func (m *Content) String() string

func (*Content) Unmarshal

func (m *Content) Unmarshal(dAtA []byte) error

func (*Content) XXX_DiscardUnknown

func (m *Content) XXX_DiscardUnknown()

func (*Content) XXX_Marshal

func (m *Content) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Content) XXX_Merge

func (m *Content) XXX_Merge(src proto.Message)

func (*Content) XXX_OneofWrappers

func (*Content) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Content) XXX_Size

func (m *Content) XXX_Size() int

func (*Content) XXX_Unmarshal

func (m *Content) XXX_Unmarshal(b []byte) error

type Content_CancelSoftwareUpgrade

type Content_CancelSoftwareUpgrade struct {
	CancelSoftwareUpgrade *types3.CancelSoftwareUpgradeProposal `` /* 132-byte string literal not displayed */
}

func (*Content_CancelSoftwareUpgrade) Equal

func (this *Content_CancelSoftwareUpgrade) Equal(that interface{}) bool

func (*Content_CancelSoftwareUpgrade) MarshalTo

func (m *Content_CancelSoftwareUpgrade) MarshalTo(dAtA []byte) (int, error)

func (*Content_CancelSoftwareUpgrade) MarshalToSizedBuffer

func (m *Content_CancelSoftwareUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Content_CancelSoftwareUpgrade) Size

func (m *Content_CancelSoftwareUpgrade) Size() (n int)

type Content_CommunityPoolSpend

type Content_CommunityPoolSpend struct {
	CommunityPoolSpend *types4.CommunityPoolSpendProposal `protobuf:"bytes,5,opt,name=community_pool_spend,json=communityPoolSpend,proto3,oneof" json:"community_pool_spend,omitempty"`
}

func (*Content_CommunityPoolSpend) Equal

func (this *Content_CommunityPoolSpend) Equal(that interface{}) bool

func (*Content_CommunityPoolSpend) MarshalTo

func (m *Content_CommunityPoolSpend) MarshalTo(dAtA []byte) (int, error)

func (*Content_CommunityPoolSpend) MarshalToSizedBuffer

func (m *Content_CommunityPoolSpend) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Content_CommunityPoolSpend) Size

func (m *Content_CommunityPoolSpend) Size() (n int)

type Content_ParameterChange

type Content_ParameterChange struct {
	ParameterChange *proposal.ParameterChangeProposal `protobuf:"bytes,2,opt,name=parameter_change,json=parameterChange,proto3,oneof" json:"parameter_change,omitempty"`
}

func (*Content_ParameterChange) Equal

func (this *Content_ParameterChange) Equal(that interface{}) bool

func (*Content_ParameterChange) MarshalTo

func (m *Content_ParameterChange) MarshalTo(dAtA []byte) (int, error)

func (*Content_ParameterChange) MarshalToSizedBuffer

func (m *Content_ParameterChange) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Content_ParameterChange) Size

func (m *Content_ParameterChange) Size() (n int)

type Content_SoftwareUpgrade

type Content_SoftwareUpgrade struct {
	SoftwareUpgrade *types3.SoftwareUpgradeProposal `protobuf:"bytes,3,opt,name=software_upgrade,json=softwareUpgrade,proto3,oneof" json:"software_upgrade,omitempty"`
}

func (*Content_SoftwareUpgrade) Equal

func (this *Content_SoftwareUpgrade) Equal(that interface{}) bool

func (*Content_SoftwareUpgrade) MarshalTo

func (m *Content_SoftwareUpgrade) MarshalTo(dAtA []byte) (int, error)

func (*Content_SoftwareUpgrade) MarshalToSizedBuffer

func (m *Content_SoftwareUpgrade) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Content_SoftwareUpgrade) Size

func (m *Content_SoftwareUpgrade) Size() (n int)

type Content_Text

type Content_Text struct {
	Text *types2.TextProposal `protobuf:"bytes,1,opt,name=text,proto3,oneof" json:"text,omitempty"`
}

func (*Content_Text) Equal

func (this *Content_Text) Equal(that interface{}) bool

func (*Content_Text) MarshalTo

func (m *Content_Text) MarshalTo(dAtA []byte) (int, error)

func (*Content_Text) MarshalToSizedBuffer

func (m *Content_Text) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Content_Text) Size

func (m *Content_Text) Size() (n int)

type Message

type Message struct {
	// sum defines the set of all allowed valid messages defined in modules.
	//
	// Types that are valid to be assigned to Sum:
	//	*Message_MsgSend
	//	*Message_MsgMultiSend
	//	*Message_MsgVerifyInvariant
	//	*Message_MsgSetWithdrawAddress
	//	*Message_MsgWithdrawDelegatorReward
	//	*Message_MsgWithdrawValidatorCommission
	//	*Message_MsgFundCommunityPool
	//	*Message_MsgSubmitProposal
	//	*Message_MsgVote
	//	*Message_MsgDeposit
	//	*Message_MsgUnjail
	//	*Message_MsgCreateValidator
	//	*Message_MsgEditValidator
	//	*Message_MsgDelegate
	//	*Message_MsgBeginRedelegate
	//	*Message_MsgUndelegate
	Sum isMessage_Sum `protobuf_oneof:"sum"`
}

Message defines the set of valid concrete message types that can be used to construct a transaction.

func (*Message) Descriptor

func (*Message) Descriptor() ([]byte, []int)

func (*Message) GetMsg

func (*Message) GetMsgBeginRedelegate

func (m *Message) GetMsgBeginRedelegate() *types8.MsgBeginRedelegate

func (*Message) GetMsgCreateValidator

func (m *Message) GetMsgCreateValidator() *types8.MsgCreateValidator

func (*Message) GetMsgDelegate

func (m *Message) GetMsgDelegate() *types8.MsgDelegate

func (*Message) GetMsgDeposit

func (m *Message) GetMsgDeposit() *types2.MsgDeposit

func (*Message) GetMsgEditValidator

func (m *Message) GetMsgEditValidator() *types8.MsgEditValidator

func (*Message) GetMsgFundCommunityPool

func (m *Message) GetMsgFundCommunityPool() *types4.MsgFundCommunityPool

func (*Message) GetMsgMultiSend

func (m *Message) GetMsgMultiSend() *types5.MsgMultiSend

func (*Message) GetMsgSend

func (m *Message) GetMsgSend() *types5.MsgSend

func (*Message) GetMsgSetWithdrawAddress

func (m *Message) GetMsgSetWithdrawAddress() *types4.MsgSetWithdrawAddress

func (*Message) GetMsgSubmitProposal

func (m *Message) GetMsgSubmitProposal() *MsgSubmitProposal

func (*Message) GetMsgUndelegate

func (m *Message) GetMsgUndelegate() *types8.MsgUndelegate

func (*Message) GetMsgUnjail

func (m *Message) GetMsgUnjail() *types7.MsgUnjail

func (*Message) GetMsgVerifyInvariant

func (m *Message) GetMsgVerifyInvariant() *types6.MsgVerifyInvariant

func (*Message) GetMsgVote

func (m *Message) GetMsgVote() *types2.MsgVote

func (*Message) GetMsgWithdrawDelegatorReward

func (m *Message) GetMsgWithdrawDelegatorReward() *types4.MsgWithdrawDelegatorReward

func (*Message) GetMsgWithdrawValidatorCommission

func (m *Message) GetMsgWithdrawValidatorCommission() *types4.MsgWithdrawValidatorCommission

func (*Message) GetSum

func (m *Message) GetSum() isMessage_Sum

func (*Message) Marshal

func (m *Message) Marshal() (dAtA []byte, err error)

func (*Message) MarshalTo

func (m *Message) MarshalTo(dAtA []byte) (int, error)

func (*Message) MarshalToSizedBuffer

func (m *Message) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) SetMsg

func (*Message) Size

func (m *Message) Size() (n int)

func (*Message) String

func (m *Message) String() string

func (*Message) Unmarshal

func (m *Message) Unmarshal(dAtA []byte) error

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Message) XXX_Merge

func (m *Message) XXX_Merge(src proto.Message)

func (*Message) XXX_OneofWrappers

func (*Message) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) XXX_Unmarshal(b []byte) error

type Message_MsgBeginRedelegate

type Message_MsgBeginRedelegate struct {
	MsgBeginRedelegate *types8.MsgBeginRedelegate `protobuf:"bytes,16,opt,name=msg_begin_redelegate,json=msgBeginRedelegate,proto3,oneof" json:"msg_begin_redelegate,omitempty"`
}

func (*Message_MsgBeginRedelegate) MarshalTo

func (m *Message_MsgBeginRedelegate) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgBeginRedelegate) MarshalToSizedBuffer

func (m *Message_MsgBeginRedelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgBeginRedelegate) Size

func (m *Message_MsgBeginRedelegate) Size() (n int)

type Message_MsgCreateValidator

type Message_MsgCreateValidator struct {
	MsgCreateValidator *types8.MsgCreateValidator `protobuf:"bytes,13,opt,name=msg_create_validator,json=msgCreateValidator,proto3,oneof" json:"msg_create_validator,omitempty"`
}

func (*Message_MsgCreateValidator) MarshalTo

func (m *Message_MsgCreateValidator) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgCreateValidator) MarshalToSizedBuffer

func (m *Message_MsgCreateValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgCreateValidator) Size

func (m *Message_MsgCreateValidator) Size() (n int)

type Message_MsgDelegate

type Message_MsgDelegate struct {
	MsgDelegate *types8.MsgDelegate `protobuf:"bytes,15,opt,name=msg_delegate,json=msgDelegate,proto3,oneof" json:"msg_delegate,omitempty"`
}

func (*Message_MsgDelegate) MarshalTo

func (m *Message_MsgDelegate) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgDelegate) MarshalToSizedBuffer

func (m *Message_MsgDelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgDelegate) Size

func (m *Message_MsgDelegate) Size() (n int)

type Message_MsgDeposit

type Message_MsgDeposit struct {
	MsgDeposit *types2.MsgDeposit `protobuf:"bytes,11,opt,name=msg_deposit,json=msgDeposit,proto3,oneof" json:"msg_deposit,omitempty"`
}

func (*Message_MsgDeposit) MarshalTo

func (m *Message_MsgDeposit) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgDeposit) MarshalToSizedBuffer

func (m *Message_MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgDeposit) Size

func (m *Message_MsgDeposit) Size() (n int)

type Message_MsgEditValidator

type Message_MsgEditValidator struct {
	MsgEditValidator *types8.MsgEditValidator `protobuf:"bytes,14,opt,name=msg_edit_validator,json=msgEditValidator,proto3,oneof" json:"msg_edit_validator,omitempty"`
}

func (*Message_MsgEditValidator) MarshalTo

func (m *Message_MsgEditValidator) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgEditValidator) MarshalToSizedBuffer

func (m *Message_MsgEditValidator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgEditValidator) Size

func (m *Message_MsgEditValidator) Size() (n int)

type Message_MsgFundCommunityPool

type Message_MsgFundCommunityPool struct {
	MsgFundCommunityPool *types4.MsgFundCommunityPool `` /* 131-byte string literal not displayed */
}

func (*Message_MsgFundCommunityPool) MarshalTo

func (m *Message_MsgFundCommunityPool) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgFundCommunityPool) MarshalToSizedBuffer

func (m *Message_MsgFundCommunityPool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgFundCommunityPool) Size

func (m *Message_MsgFundCommunityPool) Size() (n int)

type Message_MsgMultiSend

type Message_MsgMultiSend struct {
	MsgMultiSend *types5.MsgMultiSend `protobuf:"bytes,2,opt,name=msg_multi_send,json=msgMultiSend,proto3,oneof" json:"msg_multi_send,omitempty"`
}

func (*Message_MsgMultiSend) MarshalTo

func (m *Message_MsgMultiSend) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgMultiSend) MarshalToSizedBuffer

func (m *Message_MsgMultiSend) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgMultiSend) Size

func (m *Message_MsgMultiSend) Size() (n int)

type Message_MsgSend

type Message_MsgSend struct {
	MsgSend *types5.MsgSend `protobuf:"bytes,1,opt,name=msg_send,json=msgSend,proto3,oneof" json:"msg_send,omitempty"`
}

func (*Message_MsgSend) MarshalTo

func (m *Message_MsgSend) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgSend) MarshalToSizedBuffer

func (m *Message_MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgSend) Size

func (m *Message_MsgSend) Size() (n int)

type Message_MsgSetWithdrawAddress

type Message_MsgSetWithdrawAddress struct {
	MsgSetWithdrawAddress *types4.MsgSetWithdrawAddress `` /* 134-byte string literal not displayed */
}

func (*Message_MsgSetWithdrawAddress) MarshalTo

func (m *Message_MsgSetWithdrawAddress) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgSetWithdrawAddress) MarshalToSizedBuffer

func (m *Message_MsgSetWithdrawAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgSetWithdrawAddress) Size

func (m *Message_MsgSetWithdrawAddress) Size() (n int)

type Message_MsgSubmitProposal

type Message_MsgSubmitProposal struct {
	MsgSubmitProposal *MsgSubmitProposal `protobuf:"bytes,9,opt,name=msg_submit_proposal,json=msgSubmitProposal,proto3,oneof" json:"msg_submit_proposal,omitempty"`
}

func (*Message_MsgSubmitProposal) MarshalTo

func (m *Message_MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgSubmitProposal) MarshalToSizedBuffer

func (m *Message_MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgSubmitProposal) Size

func (m *Message_MsgSubmitProposal) Size() (n int)

type Message_MsgUndelegate

type Message_MsgUndelegate struct {
	MsgUndelegate *types8.MsgUndelegate `protobuf:"bytes,17,opt,name=msg_undelegate,json=msgUndelegate,proto3,oneof" json:"msg_undelegate,omitempty"`
}

func (*Message_MsgUndelegate) MarshalTo

func (m *Message_MsgUndelegate) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgUndelegate) MarshalToSizedBuffer

func (m *Message_MsgUndelegate) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgUndelegate) Size

func (m *Message_MsgUndelegate) Size() (n int)

type Message_MsgUnjail

type Message_MsgUnjail struct {
	MsgUnjail *types7.MsgUnjail `protobuf:"bytes,12,opt,name=msg_unjail,json=msgUnjail,proto3,oneof" json:"msg_unjail,omitempty"`
}

func (*Message_MsgUnjail) MarshalTo

func (m *Message_MsgUnjail) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgUnjail) MarshalToSizedBuffer

func (m *Message_MsgUnjail) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgUnjail) Size

func (m *Message_MsgUnjail) Size() (n int)

type Message_MsgVerifyInvariant

type Message_MsgVerifyInvariant struct {
	MsgVerifyInvariant *types6.MsgVerifyInvariant `protobuf:"bytes,3,opt,name=msg_verify_invariant,json=msgVerifyInvariant,proto3,oneof" json:"msg_verify_invariant,omitempty"`
}

func (*Message_MsgVerifyInvariant) MarshalTo

func (m *Message_MsgVerifyInvariant) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgVerifyInvariant) MarshalToSizedBuffer

func (m *Message_MsgVerifyInvariant) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgVerifyInvariant) Size

func (m *Message_MsgVerifyInvariant) Size() (n int)

type Message_MsgVote

type Message_MsgVote struct {
	MsgVote *types2.MsgVote `protobuf:"bytes,10,opt,name=msg_vote,json=msgVote,proto3,oneof" json:"msg_vote,omitempty"`
}

func (*Message_MsgVote) MarshalTo

func (m *Message_MsgVote) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgVote) MarshalToSizedBuffer

func (m *Message_MsgVote) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgVote) Size

func (m *Message_MsgVote) Size() (n int)

type Message_MsgWithdrawDelegatorReward

type Message_MsgWithdrawDelegatorReward struct {
	MsgWithdrawDelegatorReward *types4.MsgWithdrawDelegatorReward `` /* 149-byte string literal not displayed */
}

func (*Message_MsgWithdrawDelegatorReward) MarshalTo

func (m *Message_MsgWithdrawDelegatorReward) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgWithdrawDelegatorReward) MarshalToSizedBuffer

func (m *Message_MsgWithdrawDelegatorReward) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgWithdrawDelegatorReward) Size

type Message_MsgWithdrawValidatorCommission

type Message_MsgWithdrawValidatorCommission struct {
	MsgWithdrawValidatorCommission *types4.MsgWithdrawValidatorCommission `` /* 161-byte string literal not displayed */
}

func (*Message_MsgWithdrawValidatorCommission) MarshalTo

func (m *Message_MsgWithdrawValidatorCommission) MarshalTo(dAtA []byte) (int, error)

func (*Message_MsgWithdrawValidatorCommission) MarshalToSizedBuffer

func (m *Message_MsgWithdrawValidatorCommission) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Message_MsgWithdrawValidatorCommission) Size

type MsgSubmitProposal

type MsgSubmitProposal struct {
	types2.MsgSubmitProposalBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:"base"`
	Content                      *Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"`
}

MsgSubmitProposal defines the application-level message type for handling governance proposals.

func (*MsgSubmitProposal) Descriptor

func (*MsgSubmitProposal) Descriptor() ([]byte, []int)

func (*MsgSubmitProposal) Equal

func (this *MsgSubmitProposal) Equal(that interface{}) bool

func (*MsgSubmitProposal) GetContent

func (msg *MsgSubmitProposal) GetContent() gov.Content

func (*MsgSubmitProposal) Marshal

func (m *MsgSubmitProposal) Marshal() (dAtA []byte, err error)

func (*MsgSubmitProposal) MarshalTo

func (m *MsgSubmitProposal) MarshalTo(dAtA []byte) (int, error)

func (*MsgSubmitProposal) MarshalToSizedBuffer

func (m *MsgSubmitProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSubmitProposal) ProtoMessage

func (*MsgSubmitProposal) ProtoMessage()

func (*MsgSubmitProposal) Reset

func (m *MsgSubmitProposal) Reset()

func (*MsgSubmitProposal) SetContent

func (msg *MsgSubmitProposal) SetContent(content gov.Content) error

func (*MsgSubmitProposal) Size

func (m *MsgSubmitProposal) Size() (n int)

func (*MsgSubmitProposal) String

func (m *MsgSubmitProposal) String() string

func (*MsgSubmitProposal) Unmarshal

func (m *MsgSubmitProposal) Unmarshal(dAtA []byte) error

func (MsgSubmitProposal) ValidateBasic

func (msg MsgSubmitProposal) ValidateBasic() error

ValidateBasic performs basic (non-state-dependant) validation on a MsgSubmitProposal.

func (*MsgSubmitProposal) XXX_DiscardUnknown

func (m *MsgSubmitProposal) XXX_DiscardUnknown()

func (*MsgSubmitProposal) XXX_Marshal

func (m *MsgSubmitProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSubmitProposal) XXX_Merge

func (m *MsgSubmitProposal) XXX_Merge(src proto.Message)

func (*MsgSubmitProposal) XXX_Size

func (m *MsgSubmitProposal) XXX_Size() int

func (*MsgSubmitProposal) XXX_Unmarshal

func (m *MsgSubmitProposal) XXX_Unmarshal(b []byte) error

type Proposal

type Proposal struct {
	types2.ProposalBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:"base"`
	Content             Content `protobuf:"bytes,2,opt,name=content,proto3" json:"content"`
}

Proposal defines the application-level concrete proposal type used in governance proposals.

func (*Proposal) Descriptor

func (*Proposal) Descriptor() ([]byte, []int)

func (*Proposal) Equal

func (this *Proposal) Equal(that interface{}) bool

func (*Proposal) GetContent

func (m *Proposal) GetContent() Content

func (*Proposal) Marshal

func (m *Proposal) Marshal() (dAtA []byte, err error)

func (*Proposal) MarshalTo

func (m *Proposal) MarshalTo(dAtA []byte) (int, error)

func (*Proposal) MarshalToSizedBuffer

func (m *Proposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Proposal) ProtoMessage

func (*Proposal) ProtoMessage()

func (*Proposal) Reset

func (m *Proposal) Reset()

func (*Proposal) Size

func (m *Proposal) Size() (n int)

func (*Proposal) String

func (m *Proposal) String() string

func (*Proposal) Unmarshal

func (m *Proposal) Unmarshal(dAtA []byte) error

func (*Proposal) XXX_DiscardUnknown

func (m *Proposal) XXX_DiscardUnknown()

func (*Proposal) XXX_Marshal

func (m *Proposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proposal) XXX_Merge

func (m *Proposal) XXX_Merge(src proto.Message)

func (*Proposal) XXX_Size

func (m *Proposal) XXX_Size() int

func (*Proposal) XXX_Unmarshal

func (m *Proposal) XXX_Unmarshal(b []byte) error

type SignDoc

type SignDoc struct {
	StdSignDocBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:""`
	Msgs           []Message `protobuf:"bytes,2,rep,name=msgs,proto3" json:"msgs"`
}

SignDoc defines a standard application-level signing document to compose signatures for a Transaction.

func NewSignDoc

func NewSignDoc(num, seq uint64, cid, memo string, fee StdFee, msgs ...Message) *SignDoc

func (*SignDoc) CanonicalSignBytes

func (sd *SignDoc) CanonicalSignBytes() ([]byte, error)

CanonicalSignBytes returns the canonical JSON bytes to sign over, where the SignDoc is derived from a Transaction. The JSON encoding ensures all field names adhere to their proto definition, default values are omitted, and follows the JSON Canonical Form.

func (*SignDoc) Descriptor

func (*SignDoc) Descriptor() ([]byte, []int)

func (*SignDoc) GetMsgs

func (m *SignDoc) GetMsgs() []Message

func (*SignDoc) Marshal

func (m *SignDoc) Marshal() (dAtA []byte, err error)

func (*SignDoc) MarshalTo

func (m *SignDoc) MarshalTo(dAtA []byte) (int, error)

func (*SignDoc) MarshalToSizedBuffer

func (m *SignDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignDoc) ProtoMessage

func (*SignDoc) ProtoMessage()

func (*SignDoc) Reset

func (m *SignDoc) Reset()

func (*SignDoc) Size

func (m *SignDoc) Size() (n int)

func (*SignDoc) String

func (m *SignDoc) String() string

func (*SignDoc) Unmarshal

func (m *SignDoc) Unmarshal(dAtA []byte) error

func (*SignDoc) XXX_DiscardUnknown

func (m *SignDoc) XXX_DiscardUnknown()

func (*SignDoc) XXX_Marshal

func (m *SignDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignDoc) XXX_Merge

func (m *SignDoc) XXX_Merge(src proto.Message)

func (*SignDoc) XXX_Size

func (m *SignDoc) XXX_Size() int

func (*SignDoc) XXX_Unmarshal

func (m *SignDoc) XXX_Unmarshal(b []byte) error

type StdFee

type StdFee struct {
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,1,rep,name=amount,proto3,castrepeated=github.com/KiraCore/cosmos-sdk/types.Coins" json:"amount"`
	Gas    uint64                                   `protobuf:"varint,2,opt,name=gas,proto3" json:"gas,omitempty"`
}

StdFee includes the amount of coins paid in fees and the maximum gas to be used by the transaction. The ratio yields an effective "gasprice", which must be above some miminum to be accepted into the mempool.

func NewStdFee

func NewStdFee(gas uint64, amount sdk.Coins) StdFee

NewStdFee returns a new instance of StdFee

func (*StdFee) Descriptor

func (*StdFee) Descriptor() ([]byte, []int)

func (*StdFee) Equal

func (this *StdFee) Equal(that interface{}) bool

func (StdFee) GetAmount

func (m StdFee) GetAmount() sdk.Coins

func (StdFee) GetGas

func (m StdFee) GetGas() uint64

func (*StdFee) Marshal

func (m *StdFee) Marshal() (dAtA []byte, err error)

func (*StdFee) MarshalTo

func (m *StdFee) MarshalTo(dAtA []byte) (int, error)

func (*StdFee) MarshalToSizedBuffer

func (m *StdFee) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StdFee) ProtoMessage

func (*StdFee) ProtoMessage()

func (*StdFee) Reset

func (m *StdFee) Reset()

func (*StdFee) SetAmount

func (m *StdFee) SetAmount(amount sdk.Coins)

func (*StdFee) SetGas

func (m *StdFee) SetGas(gas uint64)

func (*StdFee) Size

func (m *StdFee) Size() (n int)

func (*StdFee) String

func (m *StdFee) String() string

func (*StdFee) Unmarshal

func (m *StdFee) Unmarshal(dAtA []byte) error

func (*StdFee) XXX_DiscardUnknown

func (m *StdFee) XXX_DiscardUnknown()

func (*StdFee) XXX_Marshal

func (m *StdFee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StdFee) XXX_Merge

func (m *StdFee) XXX_Merge(src proto.Message)

func (*StdFee) XXX_Size

func (m *StdFee) XXX_Size() int

func (*StdFee) XXX_Unmarshal

func (m *StdFee) XXX_Unmarshal(b []byte) error

type StdSignDocBase

type StdSignDocBase struct {
	ChainID       string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	AccountNumber uint64 `protobuf:"varint,2,opt,name=account_number,json=accountNumber,proto3" json:"account_number,omitempty" yaml:"account_number"`
	Sequence      uint64 `protobuf:"varint,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
	Memo          string `protobuf:"bytes,4,opt,name=memo,proto3" json:"memo,omitempty"`
	Fee           StdFee `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee"`
}

StdSignDocBase defines the base structure for which applications can extend to define the concrete structure that signers sign over.

func NewStdSignDocBase

func NewStdSignDocBase(num, seq uint64, cid, memo string, fee StdFee) StdSignDocBase

func (*StdSignDocBase) Descriptor

func (*StdSignDocBase) Descriptor() ([]byte, []int)

func (*StdSignDocBase) GetAccountNumber

func (m *StdSignDocBase) GetAccountNumber() uint64

func (*StdSignDocBase) GetChainID

func (m *StdSignDocBase) GetChainID() string

func (*StdSignDocBase) GetFee

func (m *StdSignDocBase) GetFee() StdFee

func (*StdSignDocBase) GetMemo

func (m *StdSignDocBase) GetMemo() string

func (*StdSignDocBase) GetSequence

func (m *StdSignDocBase) GetSequence() uint64

func (*StdSignDocBase) Marshal

func (m *StdSignDocBase) Marshal() (dAtA []byte, err error)

func (*StdSignDocBase) MarshalTo

func (m *StdSignDocBase) MarshalTo(dAtA []byte) (int, error)

func (*StdSignDocBase) MarshalToSizedBuffer

func (m *StdSignDocBase) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StdSignDocBase) ProtoMessage

func (*StdSignDocBase) ProtoMessage()

func (*StdSignDocBase) Reset

func (m *StdSignDocBase) Reset()

func (*StdSignDocBase) Size

func (m *StdSignDocBase) Size() (n int)

func (*StdSignDocBase) String

func (m *StdSignDocBase) String() string

func (*StdSignDocBase) Unmarshal

func (m *StdSignDocBase) Unmarshal(dAtA []byte) error

func (*StdSignDocBase) XXX_DiscardUnknown

func (m *StdSignDocBase) XXX_DiscardUnknown()

func (*StdSignDocBase) XXX_Marshal

func (m *StdSignDocBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StdSignDocBase) XXX_Merge

func (m *StdSignDocBase) XXX_Merge(src proto.Message)

func (*StdSignDocBase) XXX_Size

func (m *StdSignDocBase) XXX_Size() int

func (*StdSignDocBase) XXX_Unmarshal

func (m *StdSignDocBase) XXX_Unmarshal(b []byte) error

type StdSignature

type StdSignature struct {
	PubKey    []byte `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"public_key,omitempty" yaml:"public_key"`
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
}

StdSignature defines a signature structure that contains the signature of a transaction and an optional public key.

func NewStdSignature

func NewStdSignature(pk crypto.PubKey, sig []byte) StdSignature

func (*StdSignature) Descriptor

func (*StdSignature) Descriptor() ([]byte, []int)

func (StdSignature) GetPubKey

func (m StdSignature) GetPubKey() crypto.PubKey

func (StdSignature) GetSignature

func (m StdSignature) GetSignature() []byte

func (*StdSignature) Marshal

func (m *StdSignature) Marshal() (dAtA []byte, err error)

func (*StdSignature) MarshalTo

func (m *StdSignature) MarshalTo(dAtA []byte) (int, error)

func (*StdSignature) MarshalToSizedBuffer

func (m *StdSignature) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StdSignature) ProtoMessage

func (*StdSignature) ProtoMessage()

func (*StdSignature) Reset

func (m *StdSignature) Reset()

func (*StdSignature) SetPubKey

func (m *StdSignature) SetPubKey(pk crypto.PubKey) error

func (*StdSignature) SetSignature

func (m *StdSignature) SetSignature(signature []byte)

func (*StdSignature) Size

func (m *StdSignature) Size() (n int)

func (*StdSignature) String

func (m *StdSignature) String() string

func (*StdSignature) Unmarshal

func (m *StdSignature) Unmarshal(dAtA []byte) error

func (*StdSignature) XXX_DiscardUnknown

func (m *StdSignature) XXX_DiscardUnknown()

func (*StdSignature) XXX_Marshal

func (m *StdSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StdSignature) XXX_Merge

func (m *StdSignature) XXX_Merge(src proto.Message)

func (*StdSignature) XXX_Size

func (m *StdSignature) XXX_Size() int

func (*StdSignature) XXX_Unmarshal

func (m *StdSignature) XXX_Unmarshal(b []byte) error

type StdTxBase

type StdTxBase struct {
	Fee        StdFee         `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee"`
	Signatures []StdSignature `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures"`
	Memo       string         `protobuf:"bytes,3,opt,name=memo,proto3" json:"memo,omitempty"`
}

StdTxBase defines a transaction base which application-level concrete transaction types can extend.

func NewStdTxBase

func NewStdTxBase(fee StdFee, sigs []StdSignature, memo string) StdTxBase

func (*StdTxBase) Descriptor

func (*StdTxBase) Descriptor() ([]byte, []int)

func (*StdTxBase) GetFee

func (m *StdTxBase) GetFee() StdFee

func (*StdTxBase) GetMemo

func (m *StdTxBase) GetMemo() string

func (*StdTxBase) GetSignatures

func (m *StdTxBase) GetSignatures() []StdSignature

func (*StdTxBase) Marshal

func (m *StdTxBase) Marshal() (dAtA []byte, err error)

func (*StdTxBase) MarshalTo

func (m *StdTxBase) MarshalTo(dAtA []byte) (int, error)

func (*StdTxBase) MarshalToSizedBuffer

func (m *StdTxBase) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StdTxBase) ProtoMessage

func (*StdTxBase) ProtoMessage()

func (*StdTxBase) Reset

func (m *StdTxBase) Reset()

func (*StdTxBase) Size

func (m *StdTxBase) Size() (n int)

func (*StdTxBase) String

func (m *StdTxBase) String() string

func (*StdTxBase) Unmarshal

func (m *StdTxBase) Unmarshal(dAtA []byte) error

func (*StdTxBase) XXX_DiscardUnknown

func (m *StdTxBase) XXX_DiscardUnknown()

func (*StdTxBase) XXX_Marshal

func (m *StdTxBase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*StdTxBase) XXX_Merge

func (m *StdTxBase) XXX_Merge(src proto.Message)

func (*StdTxBase) XXX_Size

func (m *StdTxBase) XXX_Size() int

func (*StdTxBase) XXX_Unmarshal

func (m *StdTxBase) XXX_Unmarshal(b []byte) error

type Transaction

type Transaction struct {
	StdTxBase `protobuf:"bytes,1,opt,name=base,proto3,embedded=base" json:""`
	Msgs      []Message `protobuf:"bytes,2,rep,name=msgs,proto3" json:"msgs"`
}

Transaction defines the application-level transaction that can be signed and processed by the state-machine. It contains a base of common fields and repeated set of Message types.

func NewTransaction

func NewTransaction(fee StdFee, memo string, sdkMsgs []sdk.Msg) (*Transaction, error)

func (Transaction) CanonicalSignBytes

func (tx Transaction) CanonicalSignBytes(cid string, num, seq uint64) ([]byte, error)

CanonicalSignBytes returns the canonical JSON bytes to sign over for the Transaction given a chain ID, account sequence and account number. The JSON encoding ensures all field names adhere to their proto definition, default values are omitted, and follows the JSON Canonical Form.

func (*Transaction) Descriptor

func (*Transaction) Descriptor() ([]byte, []int)

func (Transaction) GetFee

func (tx Transaction) GetFee() sdk.Fee

GetFee returns the transaction's fee.

func (Transaction) GetMemo

func (tx Transaction) GetMemo() string

GetMemo returns the transaction's memo.

func (Transaction) GetMsgs

func (tx Transaction) GetMsgs() []sdk.Msg

GetMsgs returns all the messages in a Transaction as a slice of sdk.Msg.

func (Transaction) GetSignatures

func (tx Transaction) GetSignatures() []sdk.Signature

GetSignatures returns all the transaction's signatures.

func (Transaction) GetSigners

func (tx Transaction) GetSigners() []sdk.AccAddress

GetSigners returns the addresses that must sign the transaction. Addresses are returned in a deterministic order. They are accumulated from the GetSigners method for each Msg in the order they appear in tx.GetMsgs(). Duplicate addresses will be omitted.

func (*Transaction) Marshal

func (m *Transaction) Marshal() (dAtA []byte, err error)

func (*Transaction) MarshalTo

func (m *Transaction) MarshalTo(dAtA []byte) (int, error)

func (*Transaction) MarshalToSizedBuffer

func (m *Transaction) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) Reset

func (m *Transaction) Reset()

func (*Transaction) SetFee

func (tx *Transaction) SetFee(fee clientx.ClientFee) error

SetFee sets the transaction's fee. It will overwrite any existing fee set.

func (*Transaction) SetMemo

func (tx *Transaction) SetMemo(memo string)

SetMemo sets the transaction's memo. It will overwrite any existing memo set.

func (*Transaction) SetMsgs

func (tx *Transaction) SetMsgs(sdkMsgs ...sdk.Msg) error

SetMsgs sets the messages for a Transaction. It will overwrite any existing messages set.

func (*Transaction) SetSignatures

func (tx *Transaction) SetSignatures(sdkSigs ...clientx.ClientSignature) error

SetSignatures sets the transaction's signatures. It will overwrite any existing signatures set.

func (*Transaction) Size

func (m *Transaction) Size() (n int)

func (*Transaction) String

func (m *Transaction) String() string

func (*Transaction) Unmarshal

func (m *Transaction) Unmarshal(dAtA []byte) error

func (Transaction) ValidateBasic

func (tx Transaction) ValidateBasic() error

ValidateBasic does a simple and lightweight validation check that doesn't require access to any other information.

func (*Transaction) XXX_DiscardUnknown

func (m *Transaction) XXX_DiscardUnknown()

func (*Transaction) XXX_Marshal

func (m *Transaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Transaction) XXX_Merge

func (m *Transaction) XXX_Merge(src proto.Message)

func (*Transaction) XXX_Size

func (m *Transaction) XXX_Size() int

func (*Transaction) XXX_Unmarshal

func (m *Transaction) XXX_Unmarshal(b []byte) error

type TxGenerator

type TxGenerator struct{}

TxGenerator defines a transaction generator that allows clients to construct transactions.

func (TxGenerator) NewFee

func (g TxGenerator) NewFee() clientx.ClientFee

func (TxGenerator) NewSignature

func (g TxGenerator) NewSignature() clientx.ClientSignature

func (TxGenerator) NewTx

func (TxGenerator) NewTx() clientx.ClientTx

NewTx returns a reference to an empty Transaction type.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL