Documentation ¶
Index ¶
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- type Account
- func (*Account) Descriptor() ([]byte, []int)
- func (m *Account) GetId() string
- func (m *Account) GetType() string
- func (m *Account) Marshal() (dAtA []byte, err error)
- func (m *Account) MarshalTo(dAtA []byte) (int, error)
- func (m *Account) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Account) ProtoMessage()
- func (m *Account) Reset()
- func (m *Account) Size() (n int)
- func (m *Account) String() string
- func (m *Account) Unmarshal(dAtA []byte) error
- func (m *Account) XXX_DiscardUnknown()
- func (m *Account) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Account) XXX_Merge(src proto.Message)
- func (m *Account) XXX_Size() int
- func (m *Account) XXX_Unmarshal(b []byte) error
- type BurnShare
- func (*BurnShare) Descriptor() ([]byte, []int)
- func (m *BurnShare) Marshal() (dAtA []byte, err error)
- func (m *BurnShare) MarshalTo(dAtA []byte) (int, error)
- func (m *BurnShare) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BurnShare) ProtoMessage()
- func (m *BurnShare) Reset()
- func (m *BurnShare) Size() (n int)
- func (m *BurnShare) String() string
- func (m *BurnShare) Unmarshal(dAtA []byte) error
- func (m *BurnShare) XXX_DiscardUnknown()
- func (m *BurnShare) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BurnShare) XXX_Merge(src proto.Message)
- func (m *BurnShare) XXX_Size() int
- func (m *BurnShare) XXX_Unmarshal(b []byte) error
- type Destination
- func (*Destination) Descriptor() ([]byte, []int)
- func (m *Destination) GetAccount() Account
- func (m *Destination) GetBurnShare() *BurnShare
- func (m *Destination) GetShare() []*Share
- func (m *Destination) Marshal() (dAtA []byte, err error)
- func (m *Destination) MarshalTo(dAtA []byte) (int, error)
- func (m *Destination) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Destination) ProtoMessage()
- func (m *Destination) Reset()
- func (m *Destination) Size() (n int)
- func (m *Destination) String() string
- func (m *Destination) Unmarshal(dAtA []byte) error
- func (m *Destination) XXX_DiscardUnknown()
- func (m *Destination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Destination) XXX_Merge(src proto.Message)
- func (m *Destination) XXX_Size() int
- func (m *Destination) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetSubDistributors() []SubDistributor
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Share
- func (*Share) Descriptor() ([]byte, []int)
- func (m *Share) GetAccount() Account
- func (m *Share) GetName() string
- func (m *Share) Marshal() (dAtA []byte, err error)
- func (m *Share) MarshalTo(dAtA []byte) (int, error)
- func (m *Share) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Share) ProtoMessage()
- func (m *Share) Reset()
- func (m *Share) Size() (n int)
- func (m *Share) String() string
- func (m *Share) Unmarshal(dAtA []byte) error
- func (m *Share) XXX_DiscardUnknown()
- func (m *Share) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Share) XXX_Merge(src proto.Message)
- func (m *Share) XXX_Size() int
- func (m *Share) XXX_Unmarshal(b []byte) error
- type State
- func (*State) Descriptor() ([]byte, []int)
- func (m *State) GetAccount() *Account
- func (m *State) GetBurn() bool
- func (m *State) GetCoinsStates() github_com_cosmos_cosmos_sdk_types.DecCoins
- func (m *State) Marshal() (dAtA []byte, err error)
- func (m *State) MarshalTo(dAtA []byte) (int, error)
- func (m *State) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*State) ProtoMessage()
- func (m *State) Reset()
- func (m *State) Size() (n int)
- func (m *State) String() string
- func (m *State) Unmarshal(dAtA []byte) error
- func (m *State) XXX_DiscardUnknown()
- func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *State) XXX_Merge(src proto.Message)
- func (m *State) XXX_Size() int
- func (m *State) XXX_Unmarshal(b []byte) error
- type SubDistributor
- func (*SubDistributor) Descriptor() ([]byte, []int)
- func (m *SubDistributor) GetDestination() Destination
- func (m *SubDistributor) GetName() string
- func (m *SubDistributor) GetSources() []*Account
- func (m *SubDistributor) Marshal() (dAtA []byte, err error)
- func (m *SubDistributor) MarshalTo(dAtA []byte) (int, error)
- func (m *SubDistributor) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SubDistributor) ProtoMessage()
- func (m *SubDistributor) Reset()
- func (m *SubDistributor) Size() (n int)
- func (m *SubDistributor) String() string
- func (m *SubDistributor) Unmarshal(dAtA []byte) error
- func (m *SubDistributor) XXX_DiscardUnknown()
- func (m *SubDistributor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SubDistributor) XXX_Merge(src proto.Message)
- func (m *SubDistributor) XXX_Size() int
- func (m *SubDistributor) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
View Source
var ( ErrInvalidLengthSubDistributor = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowSubDistributor = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupSubDistributor = fmt.Errorf("proto: unexpected end of group") )
View Source
var (
KeySubDistributors = []byte("SubDistributors")
)
View Source
var (
RemainsKeyPrefix = []byte{0x04}
)
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
Types ¶
type Account ¶
type Account struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` }
func (*Account) Descriptor ¶
func (*Account) MarshalToSizedBuffer ¶
func (*Account) ProtoMessage ¶
func (*Account) ProtoMessage()
func (*Account) XXX_DiscardUnknown ¶
func (m *Account) XXX_DiscardUnknown()
func (*Account) XXX_Marshal ¶
func (*Account) XXX_Unmarshal ¶
type BurnShare ¶
type BurnShare struct { github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=percent,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"percent" yaml:"percent"` }Percent
func (*BurnShare) Descriptor ¶
func (*BurnShare) MarshalToSizedBuffer ¶
func (*BurnShare) ProtoMessage ¶
func (*BurnShare) ProtoMessage()
func (*BurnShare) XXX_DiscardUnknown ¶
func (m *BurnShare) XXX_DiscardUnknown()
func (*BurnShare) XXX_Marshal ¶
func (*BurnShare) XXX_Unmarshal ¶
type Destination ¶
type Destination struct { Account Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` }
func (*Destination) Descriptor ¶
func (*Destination) Descriptor() ([]byte, []int)
func (*Destination) GetAccount ¶
func (m *Destination) GetAccount() Account
func (*Destination) GetBurnShare ¶
func (m *Destination) GetBurnShare() *BurnShare
func (*Destination) GetShare ¶
func (m *Destination) GetShare() []*Share
func (*Destination) Marshal ¶
func (m *Destination) Marshal() (dAtA []byte, err error)
func (*Destination) MarshalToSizedBuffer ¶
func (m *Destination) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Destination) ProtoMessage ¶
func (*Destination) ProtoMessage()
func (*Destination) Reset ¶
func (m *Destination) Reset()
func (*Destination) Size ¶
func (m *Destination) Size() (n int)
func (*Destination) String ¶
func (m *Destination) String() string
func (*Destination) Unmarshal ¶
func (m *Destination) Unmarshal(dAtA []byte) error
func (*Destination) XXX_DiscardUnknown ¶
func (m *Destination) XXX_DiscardUnknown()
func (*Destination) XXX_Marshal ¶
func (m *Destination) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Destination) XXX_Merge ¶
func (m *Destination) XXX_Merge(src proto.Message)
func (*Destination) XXX_Size ¶
func (m *Destination) XXX_Size() int
func (*Destination) XXX_Unmarshal ¶
func (m *Destination) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
SubDistributors []SubDistributor `protobuf:"bytes,1,rep,name=sub_distributors,json=subDistributors,proto3" json:"sub_distributors"`
}
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetSubDistributors ¶
func (m *Params) GetSubDistributors() []SubDistributor
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Share ¶
type Share struct { // float percent = 2; }
func (*Share) Descriptor ¶
func (*Share) GetAccount ¶
func (*Share) ProtoMessage ¶
func (*Share) ProtoMessage()
func (*Share) XXX_DiscardUnknown ¶
func (m *Share) XXX_DiscardUnknown()
func (*Share) XXX_Marshal ¶
func (*Share) XXX_Unmarshal ¶
type State ¶
type State struct { Account *Account `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` Burn bool `protobuf:"varint,2,opt,name=burn,proto3" json:"burn,omitempty"` CoinsStates github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 159-byte string literal not displayed */ }
func (*State) Descriptor ¶
func (*State) GetAccount ¶
func (*State) GetCoinsStates ¶
func (m *State) GetCoinsStates() github_com_cosmos_cosmos_sdk_types.DecCoins
func (*State) ProtoMessage ¶
func (*State) ProtoMessage()
func (*State) XXX_DiscardUnknown ¶
func (m *State) XXX_DiscardUnknown()
func (*State) XXX_Marshal ¶
func (*State) XXX_Unmarshal ¶
type SubDistributor ¶
type SubDistributor struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Sources []*Account `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"` Destination Destination `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination"` }
func (*SubDistributor) Descriptor ¶
func (*SubDistributor) Descriptor() ([]byte, []int)
func (*SubDistributor) GetDestination ¶
func (m *SubDistributor) GetDestination() Destination
func (*SubDistributor) GetName ¶
func (m *SubDistributor) GetName() string
func (*SubDistributor) GetSources ¶
func (m *SubDistributor) GetSources() []*Account
func (*SubDistributor) Marshal ¶
func (m *SubDistributor) Marshal() (dAtA []byte, err error)
func (*SubDistributor) MarshalToSizedBuffer ¶
func (m *SubDistributor) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SubDistributor) ProtoMessage ¶
func (*SubDistributor) ProtoMessage()
func (*SubDistributor) Reset ¶
func (m *SubDistributor) Reset()
func (*SubDistributor) Size ¶
func (m *SubDistributor) Size() (n int)
func (*SubDistributor) String ¶
func (m *SubDistributor) String() string
func (*SubDistributor) Unmarshal ¶
func (m *SubDistributor) Unmarshal(dAtA []byte) error
func (*SubDistributor) XXX_DiscardUnknown ¶
func (m *SubDistributor) XXX_DiscardUnknown()
func (*SubDistributor) XXX_Marshal ¶
func (m *SubDistributor) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SubDistributor) XXX_Merge ¶
func (m *SubDistributor) XXX_Merge(src proto.Message)
func (*SubDistributor) XXX_Size ¶
func (m *SubDistributor) XXX_Size() int
func (*SubDistributor) XXX_Unmarshal ¶
func (m *SubDistributor) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.