v1beta3

package
v0.0.70 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 16 Imported by: 5

Documentation

Index

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) MarshalTo

func (m *DenomTakeRate) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Params) GetDefaultTakeRate

func (m *Params) GetDefaultTakeRate() uint32

func (*Params) GetDenomTakeRates

func (m *Params) GetDenomTakeRates() DenomTakeRates

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

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 QueryServer

type QueryServer interface {
}

QueryServer is the server API for Query service.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

Jump to

Keyboard shortcuts

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