Documentation ¶
Index ¶
- Constants
- Variables
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(_ cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type DenomTakeRate
- func (*DenomTakeRate) Descriptor() ([]byte, []int)
- func (m *DenomTakeRate) GetDenom() string
- func (m *DenomTakeRate) GetRate() uint32
- func (m *DenomTakeRate) Marshal() (dAtA []byte, err error)
- func (m *DenomTakeRate) MarshalTo(dAtA []byte) (int, error)
- func (m *DenomTakeRate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DenomTakeRate) ProtoMessage()
- func (m *DenomTakeRate) Reset()
- func (m *DenomTakeRate) Size() (n int)
- func (m *DenomTakeRate) String() string
- func (m *DenomTakeRate) Unmarshal(dAtA []byte) error
- func (m *DenomTakeRate) XXX_DiscardUnknown()
- func (m *DenomTakeRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DenomTakeRate) XXX_Merge(src proto.Message)
- func (m *DenomTakeRate) XXX_Size() int
- func (m *DenomTakeRate) XXX_Unmarshal(b []byte) error
- type DenomTakeRates
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetDefaultTakeRate() uint32
- func (m *Params) GetDenomTakeRates() DenomTakeRates
- 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 (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() 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 QueryClient
- type QueryServer
- type UnimplementedQueryServer
Constants ¶
View Source
const ( // ModuleName is the module name constant used in many places ModuleName = "take" // StoreKey is the store key string for deployment StoreKey = ModuleName // RouterKey is the message route for deployment RouterKey = ModuleName )
Variables ¶
View Source
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
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 ( // ErrInvalidParam indicates an invalid chain parameter ErrInvalidParam = errors.New("parameter invalid") )
View Source
var ( // ModuleCdc references the global x/deployment module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/deployment and // defined at the application level. ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
Functions ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
func RegisterInterfaces ¶
func RegisterInterfaces(_ cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/deployment interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(_ *codec.LegacyAmino)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type DenomTakeRate ¶
type DenomTakeRate struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom" yaml:"denom"` Rate uint32 `protobuf:"varint,2,opt,name=rate,proto3" json:"rate" yaml:"rate"` }
DenomTakeRate describes take rate for specified denom
func (*DenomTakeRate) Descriptor ¶
func (*DenomTakeRate) Descriptor() ([]byte, []int)
func (*DenomTakeRate) GetDenom ¶
func (m *DenomTakeRate) GetDenom() string
func (*DenomTakeRate) GetRate ¶
func (m *DenomTakeRate) GetRate() uint32
func (*DenomTakeRate) Marshal ¶
func (m *DenomTakeRate) Marshal() (dAtA []byte, err error)
func (*DenomTakeRate) MarshalToSizedBuffer ¶
func (m *DenomTakeRate) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DenomTakeRate) ProtoMessage ¶
func (*DenomTakeRate) ProtoMessage()
func (*DenomTakeRate) Reset ¶
func (m *DenomTakeRate) Reset()
func (*DenomTakeRate) Size ¶
func (m *DenomTakeRate) Size() (n int)
func (*DenomTakeRate) String ¶
func (m *DenomTakeRate) String() string
func (*DenomTakeRate) Unmarshal ¶
func (m *DenomTakeRate) Unmarshal(dAtA []byte) error
func (*DenomTakeRate) XXX_DiscardUnknown ¶
func (m *DenomTakeRate) XXX_DiscardUnknown()
func (*DenomTakeRate) XXX_Marshal ¶
func (m *DenomTakeRate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DenomTakeRate) XXX_Merge ¶
func (m *DenomTakeRate) XXX_Merge(src proto.Message)
func (*DenomTakeRate) XXX_Size ¶
func (m *DenomTakeRate) XXX_Size() int
func (*DenomTakeRate) XXX_Unmarshal ¶
func (m *DenomTakeRate) XXX_Unmarshal(b []byte) error
type DenomTakeRates ¶
type DenomTakeRates []DenomTakeRate
func (DenomTakeRates) Len ¶
func (u DenomTakeRates) Len() int
func (DenomTakeRates) Less ¶
func (u DenomTakeRates) Less(i, j int) bool
func (DenomTakeRates) Swap ¶
func (u DenomTakeRates) Swap(i, j int)
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params" yaml:"params"`
}
GenesisState stores slice of genesis deployment instance
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // denom -> % take rate DenomTakeRates DenomTakeRates `` /* 147-byte string literal not displayed */ DefaultTakeRate uint32 `protobuf:"varint,2,opt,name=default_take_rate,json=defaultTakeRate,proto3" json:"default_take_rate" yaml:"default_take_rate"` }
Params defines the parameters for the x/take package
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶
func (*Params) GetDefaultTakeRate ¶
func (*Params) GetDenomTakeRates ¶
func (m *Params) GetDenomTakeRates() DenomTakeRates
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
Click to show internal directories.
Click to hide internal directories.