v1

package
v12.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrInvalidLengthLease        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLease          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLease = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultMaxLeaseHours int64 = 10
	DefaultMinLeaseHours int64 = 1
	DefaultStakingShare        = sdkmath.LegacyNewDecWithPrec(1, 1)
)
View Source
var (
	KeyMaxLeaseHours = []byte("MaxLeaseHours")
	KeyMinLeaseHours = []byte("MinLeaseHours")
	KeyStakingShare  = []byte("StakingShare")
)
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 (
	ErrInvalidLengthQuerier        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuerier          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group")
)

Functions

func ParamsKeyTable

func ParamsKeyTable() params.KeyTable

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

func RegisterMsgServiceServer

func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)

func RegisterQueryServiceHandler

func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryServiceHandler registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryServiceHandlerClient

func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error

RegisterQueryServiceHandlerClient registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryServiceClient" to call the correct interceptors.

func RegisterQueryServiceHandlerFromEndpoint

func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryServiceHandlerFromEndpoint is same as RegisterQueryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryServiceHandlerServer

func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error

RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". UnaryRPC :call QueryServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryServiceHandlerFromEndpoint instead.

func RegisterQueryServiceServer

func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)

func ValidateGenesis

func ValidateGenesis(state *GenesisState) error

Types

type EventCreate

type EventCreate struct {
	ID          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	ProvAddress string `protobuf:"bytes,3,opt,name=prov_address,json=provAddress,proto3" json:"prov_address,omitempty"`
	MaxHours    int64  `protobuf:"varint,4,opt,name=max_hours,json=maxHours,proto3" json:"max_hours,omitempty"`
	Price       string `protobuf:"bytes,5,opt,name=price,proto3" json:"price,omitempty"`
	Deposit     string `protobuf:"bytes,6,opt,name=deposit,proto3" json:"deposit,omitempty"`
}

func (*EventCreate) Descriptor

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

func (*EventCreate) Marshal

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

func (*EventCreate) MarshalTo

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

func (*EventCreate) MarshalToSizedBuffer

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

func (*EventCreate) ProtoMessage

func (*EventCreate) ProtoMessage()

func (*EventCreate) Reset

func (m *EventCreate) Reset()

func (*EventCreate) Size

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

func (*EventCreate) String

func (m *EventCreate) String() string

func (*EventCreate) Unmarshal

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

func (*EventCreate) XXX_DiscardUnknown

func (m *EventCreate) XXX_DiscardUnknown()

func (*EventCreate) XXX_Marshal

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

func (*EventCreate) XXX_Merge

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

func (*EventCreate) XXX_Size

func (m *EventCreate) XXX_Size() int

func (*EventCreate) XXX_Unmarshal

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

type EventEnd

type EventEnd struct {
	ID          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	ProvAddress string `protobuf:"bytes,3,opt,name=prov_address,json=provAddress,proto3" json:"prov_address,omitempty"`
}

func (*EventEnd) Descriptor

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

func (*EventEnd) Marshal

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

func (*EventEnd) MarshalTo

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

func (*EventEnd) MarshalToSizedBuffer

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

func (*EventEnd) ProtoMessage

func (*EventEnd) ProtoMessage()

func (*EventEnd) Reset

func (m *EventEnd) Reset()

func (*EventEnd) Size

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

func (*EventEnd) String

func (m *EventEnd) String() string

func (*EventEnd) Unmarshal

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

func (*EventEnd) XXX_DiscardUnknown

func (m *EventEnd) XXX_DiscardUnknown()

func (*EventEnd) XXX_Marshal

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

func (*EventEnd) XXX_Merge

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

func (*EventEnd) XXX_Size

func (m *EventEnd) XXX_Size() int

func (*EventEnd) XXX_Unmarshal

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

type EventPay

type EventPay struct {
	ID            uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	NodeAddress   string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	ProvAddress   string `protobuf:"bytes,3,opt,name=prov_address,json=provAddress,proto3" json:"prov_address,omitempty"`
	Payment       string `protobuf:"bytes,4,opt,name=payment,proto3" json:"payment,omitempty"`
	StakingReward string `protobuf:"bytes,5,opt,name=staking_reward,json=stakingReward,proto3" json:"staking_reward,omitempty"`
}

func (*EventPay) Descriptor

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

func (*EventPay) Marshal

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

func (*EventPay) MarshalTo

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

func (*EventPay) MarshalToSizedBuffer

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

func (*EventPay) ProtoMessage

func (*EventPay) ProtoMessage()

func (*EventPay) Reset

func (m *EventPay) Reset()

func (*EventPay) Size

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

func (*EventPay) String

func (m *EventPay) String() string

func (*EventPay) Unmarshal

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

func (*EventPay) XXX_DiscardUnknown

func (m *EventPay) XXX_DiscardUnknown()

func (*EventPay) XXX_Marshal

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

func (*EventPay) XXX_Merge

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

func (*EventPay) XXX_Size

func (m *EventPay) XXX_Size() int

func (*EventPay) XXX_Unmarshal

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

type EventRefund

type EventRefund struct {
	ID          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ProvAddress string `protobuf:"bytes,2,opt,name=prov_address,json=provAddress,proto3" json:"prov_address,omitempty"`
	Amount      string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
}

func (*EventRefund) Descriptor

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

func (*EventRefund) Marshal

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

func (*EventRefund) MarshalTo

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

func (*EventRefund) MarshalToSizedBuffer

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

func (*EventRefund) ProtoMessage

func (*EventRefund) ProtoMessage()

func (*EventRefund) Reset

func (m *EventRefund) Reset()

func (*EventRefund) Size

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

func (*EventRefund) String

func (m *EventRefund) String() string

func (*EventRefund) Unmarshal

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

func (*EventRefund) XXX_DiscardUnknown

func (m *EventRefund) XXX_DiscardUnknown()

func (*EventRefund) XXX_Marshal

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

func (*EventRefund) XXX_Merge

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

func (*EventRefund) XXX_Size

func (m *EventRefund) XXX_Size() int

func (*EventRefund) XXX_Unmarshal

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

type EventRenew

type EventRenew struct {
	ID          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	ProvAddress string `protobuf:"bytes,3,opt,name=prov_address,json=provAddress,proto3" json:"prov_address,omitempty"`
	MaxHours    int64  `protobuf:"varint,4,opt,name=max_hours,json=maxHours,proto3" json:"max_hours,omitempty"`
	Price       string `protobuf:"bytes,5,opt,name=price,proto3" json:"price,omitempty"`
	Deposit     string `protobuf:"bytes,6,opt,name=deposit,proto3" json:"deposit,omitempty"`
}

func (*EventRenew) Descriptor

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

func (*EventRenew) Marshal

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

func (*EventRenew) MarshalTo

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

func (*EventRenew) MarshalToSizedBuffer

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

func (*EventRenew) ProtoMessage

func (*EventRenew) ProtoMessage()

func (*EventRenew) Reset

func (m *EventRenew) Reset()

func (*EventRenew) Size

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

func (*EventRenew) String

func (m *EventRenew) String() string

func (*EventRenew) Unmarshal

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

func (*EventRenew) XXX_DiscardUnknown

func (m *EventRenew) XXX_DiscardUnknown()

func (*EventRenew) XXX_Marshal

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

func (*EventRenew) XXX_Merge

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

func (*EventRenew) XXX_Size

func (m *EventRenew) XXX_Size() int

func (*EventRenew) XXX_Unmarshal

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

type EventUpdate

type EventUpdate struct {
	ID          uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	ProvAddress string `protobuf:"bytes,3,opt,name=prov_address,json=provAddress,proto3" json:"prov_address,omitempty"`
	Hours       int64  `protobuf:"varint,4,opt,name=hours,proto3" json:"hours,omitempty"`
	Renewable   bool   `protobuf:"varint,5,opt,name=renewable,proto3" json:"renewable,omitempty"`
	PayoutAt    string `protobuf:"bytes,6,opt,name=payout_at,json=payoutAt,proto3" json:"payout_at,omitempty"`
}

func (*EventUpdate) Descriptor

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

func (*EventUpdate) Marshal

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

func (*EventUpdate) MarshalTo

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

func (*EventUpdate) MarshalToSizedBuffer

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

func (*EventUpdate) ProtoMessage

func (*EventUpdate) ProtoMessage()

func (*EventUpdate) Reset

func (m *EventUpdate) Reset()

func (*EventUpdate) Size

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

func (*EventUpdate) String

func (m *EventUpdate) String() string

func (*EventUpdate) Unmarshal

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

func (*EventUpdate) XXX_DiscardUnknown

func (m *EventUpdate) XXX_DiscardUnknown()

func (*EventUpdate) XXX_Marshal

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

func (*EventUpdate) XXX_Merge

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

func (*EventUpdate) XXX_Size

func (m *EventUpdate) XXX_Size() int

func (*EventUpdate) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Leases []Lease `protobuf:"bytes,1,rep,name=leases,proto3" json:"leases"`
	Params Params  `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func NewGenesisState

func NewGenesisState(leases []Lease, params Params) *GenesisState

func (*GenesisState) Descriptor

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

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 Lease

type Lease struct {
	ID          uint64     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	ProvAddress string     `protobuf:"bytes,2,opt,name=prov_address,json=provAddress,proto3" json:"prov_address,omitempty"`
	NodeAddress string     `protobuf:"bytes,3,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	Price       types.Coin `protobuf:"bytes,4,opt,name=price,proto3" json:"price"`
	Deposit     types.Coin `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit"`
	Hours       int64      `protobuf:"varint,6,opt,name=hours,proto3" json:"hours,omitempty"`
	MaxHours    int64      `protobuf:"varint,7,opt,name=max_hours,json=maxHours,proto3" json:"max_hours,omitempty"`
	Renewable   bool       `protobuf:"varint,8,opt,name=renewable,proto3" json:"renewable,omitempty"`
	InactiveAt  time.Time  `protobuf:"bytes,9,opt,name=inactive_at,json=inactiveAt,proto3,stdtime" json:"inactive_at"`
	PayoutAt    time.Time  `protobuf:"bytes,10,opt,name=payout_at,json=payoutAt,proto3,stdtime" json:"payout_at"`
}

func (*Lease) Descriptor

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

func (*Lease) Marshal

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

func (*Lease) MarshalTo

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

func (*Lease) MarshalToSizedBuffer

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

func (*Lease) ProtoMessage

func (*Lease) ProtoMessage()

func (*Lease) RefundAmount

func (m *Lease) RefundAmount() sdk.Coin

func (*Lease) RenewalAt

func (m *Lease) RenewalAt() time.Time

func (*Lease) Reset

func (m *Lease) Reset()

func (*Lease) Size

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

func (*Lease) String

func (m *Lease) String() string

func (*Lease) Unmarshal

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

func (*Lease) Validate

func (m *Lease) Validate() error

func (*Lease) XXX_DiscardUnknown

func (m *Lease) XXX_DiscardUnknown()

func (*Lease) XXX_Marshal

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

func (*Lease) XXX_Merge

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

func (*Lease) XXX_Size

func (m *Lease) XXX_Size() int

func (*Lease) XXX_Unmarshal

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

type MsgEndLeaseRequest

type MsgEndLeaseRequest struct {
	From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	ID   uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
}

func NewMsgEndLeaseRequest

func NewMsgEndLeaseRequest(from base.ProvAddress, id uint64) *MsgEndLeaseRequest

func (*MsgEndLeaseRequest) Descriptor

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

func (*MsgEndLeaseRequest) GetSigners

func (m *MsgEndLeaseRequest) GetSigners() []sdk.AccAddress

func (*MsgEndLeaseRequest) Marshal

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

func (*MsgEndLeaseRequest) MarshalTo

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

func (*MsgEndLeaseRequest) MarshalToSizedBuffer

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

func (*MsgEndLeaseRequest) ProtoMessage

func (*MsgEndLeaseRequest) ProtoMessage()

func (*MsgEndLeaseRequest) Reset

func (m *MsgEndLeaseRequest) Reset()

func (*MsgEndLeaseRequest) Size

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

func (*MsgEndLeaseRequest) String

func (m *MsgEndLeaseRequest) String() string

func (*MsgEndLeaseRequest) Unmarshal

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

func (*MsgEndLeaseRequest) ValidateBasic

func (m *MsgEndLeaseRequest) ValidateBasic() error

func (*MsgEndLeaseRequest) XXX_DiscardUnknown

func (m *MsgEndLeaseRequest) XXX_DiscardUnknown()

func (*MsgEndLeaseRequest) XXX_Marshal

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

func (*MsgEndLeaseRequest) XXX_Merge

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

func (*MsgEndLeaseRequest) XXX_Size

func (m *MsgEndLeaseRequest) XXX_Size() int

func (*MsgEndLeaseRequest) XXX_Unmarshal

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

type MsgEndLeaseResponse

type MsgEndLeaseResponse struct {
}

func (*MsgEndLeaseResponse) Descriptor

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

func (*MsgEndLeaseResponse) Marshal

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

func (*MsgEndLeaseResponse) MarshalTo

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

func (*MsgEndLeaseResponse) MarshalToSizedBuffer

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

func (*MsgEndLeaseResponse) ProtoMessage

func (*MsgEndLeaseResponse) ProtoMessage()

func (*MsgEndLeaseResponse) Reset

func (m *MsgEndLeaseResponse) Reset()

func (*MsgEndLeaseResponse) Size

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

func (*MsgEndLeaseResponse) String

func (m *MsgEndLeaseResponse) String() string

func (*MsgEndLeaseResponse) Unmarshal

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

func (*MsgEndLeaseResponse) XXX_DiscardUnknown

func (m *MsgEndLeaseResponse) XXX_DiscardUnknown()

func (*MsgEndLeaseResponse) XXX_Marshal

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

func (*MsgEndLeaseResponse) XXX_Merge

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

func (*MsgEndLeaseResponse) XXX_Size

func (m *MsgEndLeaseResponse) XXX_Size() int

func (*MsgEndLeaseResponse) XXX_Unmarshal

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

type MsgRenewLeaseRequest

type MsgRenewLeaseRequest struct {
	From  string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	ID    uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Hours int64  `protobuf:"varint,3,opt,name=hours,proto3" json:"hours,omitempty"`
	Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"`
}

func NewMsgRenewLeaseRequest

func NewMsgRenewLeaseRequest(from base.ProvAddress, id uint64, hours int64, denom string) *MsgRenewLeaseRequest

func (*MsgRenewLeaseRequest) Descriptor

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

func (*MsgRenewLeaseRequest) GetHours

func (m *MsgRenewLeaseRequest) GetHours() time.Duration

func (*MsgRenewLeaseRequest) GetSigners

func (m *MsgRenewLeaseRequest) GetSigners() []sdk.AccAddress

func (*MsgRenewLeaseRequest) Marshal

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

func (*MsgRenewLeaseRequest) MarshalTo

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

func (*MsgRenewLeaseRequest) MarshalToSizedBuffer

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

func (*MsgRenewLeaseRequest) ProtoMessage

func (*MsgRenewLeaseRequest) ProtoMessage()

func (*MsgRenewLeaseRequest) Reset

func (m *MsgRenewLeaseRequest) Reset()

func (*MsgRenewLeaseRequest) Size

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

func (*MsgRenewLeaseRequest) String

func (m *MsgRenewLeaseRequest) String() string

func (*MsgRenewLeaseRequest) Unmarshal

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

func (*MsgRenewLeaseRequest) ValidateBasic

func (m *MsgRenewLeaseRequest) ValidateBasic() error

func (*MsgRenewLeaseRequest) XXX_DiscardUnknown

func (m *MsgRenewLeaseRequest) XXX_DiscardUnknown()

func (*MsgRenewLeaseRequest) XXX_Marshal

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

func (*MsgRenewLeaseRequest) XXX_Merge

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

func (*MsgRenewLeaseRequest) XXX_Size

func (m *MsgRenewLeaseRequest) XXX_Size() int

func (*MsgRenewLeaseRequest) XXX_Unmarshal

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

type MsgRenewLeaseResponse

type MsgRenewLeaseResponse struct {
}

func (*MsgRenewLeaseResponse) Descriptor

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

func (*MsgRenewLeaseResponse) Marshal

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

func (*MsgRenewLeaseResponse) MarshalTo

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

func (*MsgRenewLeaseResponse) MarshalToSizedBuffer

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

func (*MsgRenewLeaseResponse) ProtoMessage

func (*MsgRenewLeaseResponse) ProtoMessage()

func (*MsgRenewLeaseResponse) Reset

func (m *MsgRenewLeaseResponse) Reset()

func (*MsgRenewLeaseResponse) Size

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

func (*MsgRenewLeaseResponse) String

func (m *MsgRenewLeaseResponse) String() string

func (*MsgRenewLeaseResponse) Unmarshal

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

func (*MsgRenewLeaseResponse) XXX_DiscardUnknown

func (m *MsgRenewLeaseResponse) XXX_DiscardUnknown()

func (*MsgRenewLeaseResponse) XXX_Marshal

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

func (*MsgRenewLeaseResponse) XXX_Merge

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

func (*MsgRenewLeaseResponse) XXX_Size

func (m *MsgRenewLeaseResponse) XXX_Size() int

func (*MsgRenewLeaseResponse) XXX_Unmarshal

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

type MsgServiceClient

type MsgServiceClient interface {
	MsgEndLease(ctx context.Context, in *MsgEndLeaseRequest, opts ...grpc.CallOption) (*MsgEndLeaseResponse, error)
	MsgRenewLease(ctx context.Context, in *MsgRenewLeaseRequest, opts ...grpc.CallOption) (*MsgRenewLeaseResponse, error)
	MsgStartLease(ctx context.Context, in *MsgStartLeaseRequest, opts ...grpc.CallOption) (*MsgStartLeaseResponse, error)
	MsgUpdateLease(ctx context.Context, in *MsgUpdateLeaseRequest, opts ...grpc.CallOption) (*MsgUpdateLeaseResponse, error)
	MsgUpdateParams(ctx context.Context, in *MsgUpdateParamsRequest, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgServiceClient is the client API for MsgService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgServiceClient

func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient

type MsgServiceServer

MsgServiceServer is the server API for MsgService service.

type MsgStartLeaseRequest

type MsgStartLeaseRequest struct {
	From        string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	NodeAddress string `protobuf:"bytes,2,opt,name=node_address,json=nodeAddress,proto3" json:"node_address,omitempty"`
	Hours       int64  `protobuf:"varint,3,opt,name=hours,proto3" json:"hours,omitempty"`
	Denom       string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"`
	Renewable   bool   `protobuf:"varint,5,opt,name=renewable,proto3" json:"renewable,omitempty"`
}

func NewMsgStartLeaseRequest

func NewMsgStartLeaseRequest(from base.ProvAddress, nodeAddr base.NodeAddress, hours int64, denom string, renewable bool) *MsgStartLeaseRequest

func (*MsgStartLeaseRequest) Descriptor

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

func (*MsgStartLeaseRequest) GetHours

func (m *MsgStartLeaseRequest) GetHours() time.Duration

func (*MsgStartLeaseRequest) GetSigners

func (m *MsgStartLeaseRequest) GetSigners() []sdk.AccAddress

func (*MsgStartLeaseRequest) Marshal

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

func (*MsgStartLeaseRequest) MarshalTo

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

func (*MsgStartLeaseRequest) MarshalToSizedBuffer

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

func (*MsgStartLeaseRequest) ProtoMessage

func (*MsgStartLeaseRequest) ProtoMessage()

func (*MsgStartLeaseRequest) Reset

func (m *MsgStartLeaseRequest) Reset()

func (*MsgStartLeaseRequest) Size

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

func (*MsgStartLeaseRequest) String

func (m *MsgStartLeaseRequest) String() string

func (*MsgStartLeaseRequest) Unmarshal

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

func (*MsgStartLeaseRequest) ValidateBasic

func (m *MsgStartLeaseRequest) ValidateBasic() error

func (*MsgStartLeaseRequest) XXX_DiscardUnknown

func (m *MsgStartLeaseRequest) XXX_DiscardUnknown()

func (*MsgStartLeaseRequest) XXX_Marshal

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

func (*MsgStartLeaseRequest) XXX_Merge

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

func (*MsgStartLeaseRequest) XXX_Size

func (m *MsgStartLeaseRequest) XXX_Size() int

func (*MsgStartLeaseRequest) XXX_Unmarshal

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

type MsgStartLeaseResponse

type MsgStartLeaseResponse struct {
	ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgStartLeaseResponse) Descriptor

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

func (*MsgStartLeaseResponse) Marshal

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

func (*MsgStartLeaseResponse) MarshalTo

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

func (*MsgStartLeaseResponse) MarshalToSizedBuffer

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

func (*MsgStartLeaseResponse) ProtoMessage

func (*MsgStartLeaseResponse) ProtoMessage()

func (*MsgStartLeaseResponse) Reset

func (m *MsgStartLeaseResponse) Reset()

func (*MsgStartLeaseResponse) Size

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

func (*MsgStartLeaseResponse) String

func (m *MsgStartLeaseResponse) String() string

func (*MsgStartLeaseResponse) Unmarshal

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

func (*MsgStartLeaseResponse) XXX_DiscardUnknown

func (m *MsgStartLeaseResponse) XXX_DiscardUnknown()

func (*MsgStartLeaseResponse) XXX_Marshal

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

func (*MsgStartLeaseResponse) XXX_Merge

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

func (*MsgStartLeaseResponse) XXX_Size

func (m *MsgStartLeaseResponse) XXX_Size() int

func (*MsgStartLeaseResponse) XXX_Unmarshal

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

type MsgUpdateLeaseRequest

type MsgUpdateLeaseRequest struct {
	From      string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	ID        uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Renewable bool   `protobuf:"varint,3,opt,name=renewable,proto3" json:"renewable,omitempty"`
}

func NewMsgUpdateLeaseRequest

func NewMsgUpdateLeaseRequest(from base.ProvAddress, id uint64, renewable bool) *MsgUpdateLeaseRequest

func (*MsgUpdateLeaseRequest) Descriptor

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

func (*MsgUpdateLeaseRequest) GetSigners

func (m *MsgUpdateLeaseRequest) GetSigners() []sdk.AccAddress

func (*MsgUpdateLeaseRequest) Marshal

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

func (*MsgUpdateLeaseRequest) MarshalTo

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

func (*MsgUpdateLeaseRequest) MarshalToSizedBuffer

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

func (*MsgUpdateLeaseRequest) ProtoMessage

func (*MsgUpdateLeaseRequest) ProtoMessage()

func (*MsgUpdateLeaseRequest) Reset

func (m *MsgUpdateLeaseRequest) Reset()

func (*MsgUpdateLeaseRequest) Size

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

func (*MsgUpdateLeaseRequest) String

func (m *MsgUpdateLeaseRequest) String() string

func (*MsgUpdateLeaseRequest) Unmarshal

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

func (*MsgUpdateLeaseRequest) ValidateBasic

func (m *MsgUpdateLeaseRequest) ValidateBasic() error

func (*MsgUpdateLeaseRequest) XXX_DiscardUnknown

func (m *MsgUpdateLeaseRequest) XXX_DiscardUnknown()

func (*MsgUpdateLeaseRequest) XXX_Marshal

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

func (*MsgUpdateLeaseRequest) XXX_Merge

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

func (*MsgUpdateLeaseRequest) XXX_Size

func (m *MsgUpdateLeaseRequest) XXX_Size() int

func (*MsgUpdateLeaseRequest) XXX_Unmarshal

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

type MsgUpdateLeaseResponse

type MsgUpdateLeaseResponse struct {
}

func (*MsgUpdateLeaseResponse) Descriptor

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

func (*MsgUpdateLeaseResponse) Marshal

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

func (*MsgUpdateLeaseResponse) MarshalTo

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

func (*MsgUpdateLeaseResponse) MarshalToSizedBuffer

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

func (*MsgUpdateLeaseResponse) ProtoMessage

func (*MsgUpdateLeaseResponse) ProtoMessage()

func (*MsgUpdateLeaseResponse) Reset

func (m *MsgUpdateLeaseResponse) Reset()

func (*MsgUpdateLeaseResponse) Size

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

func (*MsgUpdateLeaseResponse) String

func (m *MsgUpdateLeaseResponse) String() string

func (*MsgUpdateLeaseResponse) Unmarshal

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

func (*MsgUpdateLeaseResponse) XXX_DiscardUnknown

func (m *MsgUpdateLeaseResponse) XXX_DiscardUnknown()

func (*MsgUpdateLeaseResponse) XXX_Marshal

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

func (*MsgUpdateLeaseResponse) XXX_Merge

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

func (*MsgUpdateLeaseResponse) XXX_Size

func (m *MsgUpdateLeaseResponse) XXX_Size() int

func (*MsgUpdateLeaseResponse) XXX_Unmarshal

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

type MsgUpdateParamsRequest

type MsgUpdateParamsRequest struct {
	From   string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func NewMsgUpdateParamsRequest

func NewMsgUpdateParamsRequest(from sdk.AccAddress, params Params) *MsgUpdateParamsRequest

func (*MsgUpdateParamsRequest) Descriptor

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

func (*MsgUpdateParamsRequest) GetSigners

func (m *MsgUpdateParamsRequest) GetSigners() []sdk.AccAddress

func (*MsgUpdateParamsRequest) Marshal

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

func (*MsgUpdateParamsRequest) MarshalTo

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

func (*MsgUpdateParamsRequest) MarshalToSizedBuffer

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

func (*MsgUpdateParamsRequest) ProtoMessage

func (*MsgUpdateParamsRequest) ProtoMessage()

func (*MsgUpdateParamsRequest) Reset

func (m *MsgUpdateParamsRequest) Reset()

func (*MsgUpdateParamsRequest) Size

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

func (*MsgUpdateParamsRequest) String

func (m *MsgUpdateParamsRequest) String() string

func (*MsgUpdateParamsRequest) Unmarshal

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

func (*MsgUpdateParamsRequest) ValidateBasic

func (m *MsgUpdateParamsRequest) ValidateBasic() error

func (*MsgUpdateParamsRequest) XXX_DiscardUnknown

func (m *MsgUpdateParamsRequest) XXX_DiscardUnknown()

func (*MsgUpdateParamsRequest) XXX_Marshal

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

func (*MsgUpdateParamsRequest) XXX_Merge

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

func (*MsgUpdateParamsRequest) XXX_Size

func (m *MsgUpdateParamsRequest) XXX_Size() int

func (*MsgUpdateParamsRequest) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type Params

type Params struct {
	MaxLeaseHours int64                       `protobuf:"varint,1,opt,name=max_lease_hours,json=maxLeaseHours,proto3" json:"max_lease_hours,omitempty"`
	MinLeaseHours int64                       `protobuf:"varint,2,opt,name=min_lease_hours,json=minLeaseHours,proto3" json:"min_lease_hours,omitempty"`
	StakingShare  cosmossdk_io_math.LegacyDec `` /* 126-byte string literal not displayed */
}

func DefaultParams

func DefaultParams() Params

func NewParams

func NewParams(maxLeaseHours, minLeaseHours int64, stakingShare sdkmath.LegacyDec) Params

func (*Params) Descriptor

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

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 (m *Params) ParamSetPairs() params.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 (m *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 QueryLeaseRequest

type QueryLeaseRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func NewQueryLeaseRequest

func NewQueryLeaseRequest(id uint64) *QueryLeaseRequest

func (*QueryLeaseRequest) Descriptor

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

func (*QueryLeaseRequest) Marshal

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

func (*QueryLeaseRequest) MarshalTo

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

func (*QueryLeaseRequest) MarshalToSizedBuffer

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

func (*QueryLeaseRequest) ProtoMessage

func (*QueryLeaseRequest) ProtoMessage()

func (*QueryLeaseRequest) Reset

func (m *QueryLeaseRequest) Reset()

func (*QueryLeaseRequest) Size

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

func (*QueryLeaseRequest) String

func (m *QueryLeaseRequest) String() string

func (*QueryLeaseRequest) Unmarshal

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

func (*QueryLeaseRequest) XXX_DiscardUnknown

func (m *QueryLeaseRequest) XXX_DiscardUnknown()

func (*QueryLeaseRequest) XXX_Marshal

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

func (*QueryLeaseRequest) XXX_Merge

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

func (*QueryLeaseRequest) XXX_Size

func (m *QueryLeaseRequest) XXX_Size() int

func (*QueryLeaseRequest) XXX_Unmarshal

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

type QueryLeaseResponse

type QueryLeaseResponse struct {
	Lease Lease `protobuf:"bytes,1,opt,name=lease,proto3" json:"lease"`
}

func (*QueryLeaseResponse) Descriptor

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

func (*QueryLeaseResponse) Marshal

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

func (*QueryLeaseResponse) MarshalTo

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

func (*QueryLeaseResponse) MarshalToSizedBuffer

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

func (*QueryLeaseResponse) ProtoMessage

func (*QueryLeaseResponse) ProtoMessage()

func (*QueryLeaseResponse) Reset

func (m *QueryLeaseResponse) Reset()

func (*QueryLeaseResponse) Size

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

func (*QueryLeaseResponse) String

func (m *QueryLeaseResponse) String() string

func (*QueryLeaseResponse) Unmarshal

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

func (*QueryLeaseResponse) XXX_DiscardUnknown

func (m *QueryLeaseResponse) XXX_DiscardUnknown()

func (*QueryLeaseResponse) XXX_Marshal

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

func (*QueryLeaseResponse) XXX_Merge

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

func (*QueryLeaseResponse) XXX_Size

func (m *QueryLeaseResponse) XXX_Size() int

func (*QueryLeaseResponse) XXX_Unmarshal

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

type QueryLeasesForNodeRequest

type QueryLeasesForNodeRequest struct {
	Address    string             `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func NewQueryLeasesForNodeRequest

func NewQueryLeasesForNodeRequest(addr base.NodeAddress, pagination *sdkquery.PageRequest) *QueryLeasesForNodeRequest

func (*QueryLeasesForNodeRequest) Descriptor

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

func (*QueryLeasesForNodeRequest) Marshal

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

func (*QueryLeasesForNodeRequest) MarshalTo

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

func (*QueryLeasesForNodeRequest) MarshalToSizedBuffer

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

func (*QueryLeasesForNodeRequest) ProtoMessage

func (*QueryLeasesForNodeRequest) ProtoMessage()

func (*QueryLeasesForNodeRequest) Reset

func (m *QueryLeasesForNodeRequest) Reset()

func (*QueryLeasesForNodeRequest) Size

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

func (*QueryLeasesForNodeRequest) String

func (m *QueryLeasesForNodeRequest) String() string

func (*QueryLeasesForNodeRequest) Unmarshal

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

func (*QueryLeasesForNodeRequest) XXX_DiscardUnknown

func (m *QueryLeasesForNodeRequest) XXX_DiscardUnknown()

func (*QueryLeasesForNodeRequest) XXX_Marshal

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

func (*QueryLeasesForNodeRequest) XXX_Merge

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

func (*QueryLeasesForNodeRequest) XXX_Size

func (m *QueryLeasesForNodeRequest) XXX_Size() int

func (*QueryLeasesForNodeRequest) XXX_Unmarshal

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

type QueryLeasesForNodeResponse

type QueryLeasesForNodeResponse struct {
	Leases     []Lease             `protobuf:"bytes,1,rep,name=leases,proto3" json:"leases"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryLeasesForNodeResponse) Descriptor

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

func (*QueryLeasesForNodeResponse) Marshal

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

func (*QueryLeasesForNodeResponse) MarshalTo

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

func (*QueryLeasesForNodeResponse) MarshalToSizedBuffer

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

func (*QueryLeasesForNodeResponse) ProtoMessage

func (*QueryLeasesForNodeResponse) ProtoMessage()

func (*QueryLeasesForNodeResponse) Reset

func (m *QueryLeasesForNodeResponse) Reset()

func (*QueryLeasesForNodeResponse) Size

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

func (*QueryLeasesForNodeResponse) String

func (m *QueryLeasesForNodeResponse) String() string

func (*QueryLeasesForNodeResponse) Unmarshal

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

func (*QueryLeasesForNodeResponse) XXX_DiscardUnknown

func (m *QueryLeasesForNodeResponse) XXX_DiscardUnknown()

func (*QueryLeasesForNodeResponse) XXX_Marshal

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

func (*QueryLeasesForNodeResponse) XXX_Merge

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

func (*QueryLeasesForNodeResponse) XXX_Size

func (m *QueryLeasesForNodeResponse) XXX_Size() int

func (*QueryLeasesForNodeResponse) XXX_Unmarshal

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

type QueryLeasesForProviderRequest

type QueryLeasesForProviderRequest struct {
	Address    string             `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func NewQueryLeasesForProviderRequest

func NewQueryLeasesForProviderRequest(addr base.ProvAddress, pagination *sdkquery.PageRequest) *QueryLeasesForProviderRequest

func (*QueryLeasesForProviderRequest) Descriptor

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

func (*QueryLeasesForProviderRequest) Marshal

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

func (*QueryLeasesForProviderRequest) MarshalTo

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

func (*QueryLeasesForProviderRequest) MarshalToSizedBuffer

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

func (*QueryLeasesForProviderRequest) ProtoMessage

func (*QueryLeasesForProviderRequest) ProtoMessage()

func (*QueryLeasesForProviderRequest) Reset

func (m *QueryLeasesForProviderRequest) Reset()

func (*QueryLeasesForProviderRequest) Size

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

func (*QueryLeasesForProviderRequest) String

func (*QueryLeasesForProviderRequest) Unmarshal

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

func (*QueryLeasesForProviderRequest) XXX_DiscardUnknown

func (m *QueryLeasesForProviderRequest) XXX_DiscardUnknown()

func (*QueryLeasesForProviderRequest) XXX_Marshal

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

func (*QueryLeasesForProviderRequest) XXX_Merge

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

func (*QueryLeasesForProviderRequest) XXX_Size

func (m *QueryLeasesForProviderRequest) XXX_Size() int

func (*QueryLeasesForProviderRequest) XXX_Unmarshal

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

type QueryLeasesForProviderResponse

type QueryLeasesForProviderResponse struct {
	Leases     []Lease             `protobuf:"bytes,1,rep,name=leases,proto3" json:"leases"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryLeasesForProviderResponse) Descriptor

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

func (*QueryLeasesForProviderResponse) Marshal

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

func (*QueryLeasesForProviderResponse) MarshalTo

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

func (*QueryLeasesForProviderResponse) MarshalToSizedBuffer

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

func (*QueryLeasesForProviderResponse) ProtoMessage

func (*QueryLeasesForProviderResponse) ProtoMessage()

func (*QueryLeasesForProviderResponse) Reset

func (m *QueryLeasesForProviderResponse) Reset()

func (*QueryLeasesForProviderResponse) Size

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

func (*QueryLeasesForProviderResponse) String

func (*QueryLeasesForProviderResponse) Unmarshal

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

func (*QueryLeasesForProviderResponse) XXX_DiscardUnknown

func (m *QueryLeasesForProviderResponse) XXX_DiscardUnknown()

func (*QueryLeasesForProviderResponse) XXX_Marshal

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

func (*QueryLeasesForProviderResponse) XXX_Merge

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

func (*QueryLeasesForProviderResponse) XXX_Size

func (m *QueryLeasesForProviderResponse) XXX_Size() int

func (*QueryLeasesForProviderResponse) XXX_Unmarshal

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

type QueryLeasesRequest

type QueryLeasesRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func NewQueryLeasesRequest

func NewQueryLeasesRequest(pagination *sdkquery.PageRequest) *QueryLeasesRequest

func (*QueryLeasesRequest) Descriptor

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

func (*QueryLeasesRequest) Marshal

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

func (*QueryLeasesRequest) MarshalTo

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

func (*QueryLeasesRequest) MarshalToSizedBuffer

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

func (*QueryLeasesRequest) ProtoMessage

func (*QueryLeasesRequest) ProtoMessage()

func (*QueryLeasesRequest) Reset

func (m *QueryLeasesRequest) Reset()

func (*QueryLeasesRequest) Size

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

func (*QueryLeasesRequest) String

func (m *QueryLeasesRequest) String() string

func (*QueryLeasesRequest) Unmarshal

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

func (*QueryLeasesRequest) XXX_DiscardUnknown

func (m *QueryLeasesRequest) XXX_DiscardUnknown()

func (*QueryLeasesRequest) XXX_Marshal

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

func (*QueryLeasesRequest) XXX_Merge

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

func (*QueryLeasesRequest) XXX_Size

func (m *QueryLeasesRequest) XXX_Size() int

func (*QueryLeasesRequest) XXX_Unmarshal

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

type QueryLeasesResponse

type QueryLeasesResponse struct {
	Leases     []Lease             `protobuf:"bytes,1,rep,name=leases,proto3" json:"leases"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryLeasesResponse) Descriptor

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

func (*QueryLeasesResponse) Marshal

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

func (*QueryLeasesResponse) MarshalTo

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

func (*QueryLeasesResponse) MarshalToSizedBuffer

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

func (*QueryLeasesResponse) ProtoMessage

func (*QueryLeasesResponse) ProtoMessage()

func (*QueryLeasesResponse) Reset

func (m *QueryLeasesResponse) Reset()

func (*QueryLeasesResponse) Size

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

func (*QueryLeasesResponse) String

func (m *QueryLeasesResponse) String() string

func (*QueryLeasesResponse) Unmarshal

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

func (*QueryLeasesResponse) XXX_DiscardUnknown

func (m *QueryLeasesResponse) XXX_DiscardUnknown()

func (*QueryLeasesResponse) XXX_Marshal

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

func (*QueryLeasesResponse) XXX_Merge

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

func (*QueryLeasesResponse) XXX_Size

func (m *QueryLeasesResponse) XXX_Size() int

func (*QueryLeasesResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

func NewQueryParamsRequest

func NewQueryParamsRequest() *QueryParamsRequest

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServiceClient

type QueryServiceClient interface {
	QueryLeases(ctx context.Context, in *QueryLeasesRequest, opts ...grpc.CallOption) (*QueryLeasesResponse, error)
	QueryLeasesForProvider(ctx context.Context, in *QueryLeasesForProviderRequest, opts ...grpc.CallOption) (*QueryLeasesForProviderResponse, error)
	QueryLeasesForNode(ctx context.Context, in *QueryLeasesForNodeRequest, opts ...grpc.CallOption) (*QueryLeasesForNodeResponse, error)
	QueryLease(ctx context.Context, in *QueryLeaseRequest, opts ...grpc.CallOption) (*QueryLeaseResponse, error)
	QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryServiceClient is the client API for QueryService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryServiceClient

func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient

type QueryServiceServer

QueryServiceServer is the server API for QueryService service.

type UnimplementedMsgServiceServer

type UnimplementedMsgServiceServer struct {
}

UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServiceServer) MsgEndLease

func (*UnimplementedMsgServiceServer) MsgRenewLease

func (*UnimplementedMsgServiceServer) MsgStartLease

func (*UnimplementedMsgServiceServer) MsgUpdateLease

func (*UnimplementedMsgServiceServer) MsgUpdateParams

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) QueryLease

func (*UnimplementedQueryServiceServer) QueryLeases

func (*UnimplementedQueryServiceServer) QueryLeasesForNode

func (*UnimplementedQueryServiceServer) QueryLeasesForProvider

func (*UnimplementedQueryServiceServer) QueryParams

Jump to

Keyboard shortcuts

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