types

package
v3.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 45 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "plan"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_plan"

	// Proposals router keys
	ProposalsRouterKey = "planproposals"

	PlanFixationStorePrefix = "plan-fs"
)
View Source
const (
	MAX_LEN_PLAN_NAME        = 50
	MAX_LEN_PLAN_DESCRIPTION = 500
	MAX_LEN_PLAN_TYPE        = 20
)
View Source
const (
	PlanAddEventName = "add_new_plan_to_storage"
	PlanDelEventName = "del_plan_from_storage"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	// PlanKeyPrefix is the prefix to retrieve all Plan
	PlanKeyPrefix = "Plan/value/"
)
View Source
const (
	ProposalPlansAdd = "PlansAdd"
)
View Source
const (
	ProposalPlansDel = "PlansDel"
)
View Source
const WILDCARD_CHAIN_POLICY = "*" // wildcard allows you to define only part of the chains and allow all others

Variables

View Source
var (
	ErrEmptyPlans                           = sdkerrors.Register(ModuleName, 1, "plans list is empty")
	ErrInvalidPlanIndex                     = sdkerrors.Register(ModuleName, 2, "plan's index field is invalid")
	ErrInvalidPlanPrice                     = sdkerrors.Register(ModuleName, 3, "plan's price field is invalid")
	ErrInvalidPlanOveruse                   = sdkerrors.Register(ModuleName, 4, "plan's CU overuse fields are invalid")
	ErrInvalidPlanServicersToPair           = sdkerrors.Register(ModuleName, 5, "plan's servicersToPair field is invalid")
	ErrInvalidPlanName                      = sdkerrors.Register(ModuleName, 6, "plan's name field is invalid")
	ErrInvalidPlanType                      = sdkerrors.Register(ModuleName, 7, "plan's type field is invalid")
	ErrInvalidPlanDescription               = sdkerrors.Register(ModuleName, 8, "plan's description field is invalid")
	ErrInvalidPlanComputeUnits              = sdkerrors.Register(ModuleName, 9, "plan's compute units fields are invalid")
	ErrInvalidPlanAnnualDiscount            = sdkerrors.Register(ModuleName, 10, "plan's annual discount field is invalid")
	ErrInvalidPolicyCuFields                = sdkerrors.Register(ModuleName, 11, "CU per epoch field can't be larger than Total CU field")
	ErrInvalidPolicyMaxProvidersToPair      = sdkerrors.Register(ModuleName, 12, "MaxProvidersToPair cannot be less than 2")
	ErrInvalidPolicy                        = sdkerrors.Register(ModuleName, 13, "Invalid policy")
	ErrPolicyBasicValidation                = sdkerrors.Register(ModuleName, 14, "invalid policy")
	ErrPolicyInvalidSelectedProvidersConfig = sdkerrors.Register(ModuleName, 15, "plan's selected providers config is invalid")
	ErrPolicyGeolocation                    = sdkerrors.Register(ModuleName, 16, "plan's geolocation is invalid")
	ErrInvalidDenom                         = sdkerrors.Register(ModuleName, 17, commontypes.ErrInvalidDenomMsg)
	ErrInvalidPlanProjects                  = sdkerrors.Register(ModuleName, 18, "plan's projects field is invalid")
)

x/plan module sentinel errors

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 (
	ErrInvalidLengthPlan        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPlan          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPlan = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPlansProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPlansProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPlansProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPolicy        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPolicy          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPolicy = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Geolocation_name = map[int32]string{
	0:     "GLS",
	1:     "USC",
	2:     "EU",
	4:     "USE",
	8:     "USW",
	16:    "AF",
	32:    "AS",
	64:    "AU",
	65535: "GL",
}
View Source
var Geolocation_value = map[string]int32{
	"GLS": 0,
	"USC": 1,
	"EU":  2,
	"USE": 4,
	"USW": 8,
	"AF":  16,
	"AS":  32,
	"AU":  64,
	"GL":  65535,
}
View Source
var SELECTED_PROVIDERS_MODE_name = map[int32]string{
	0: "ALLOWED",
	1: "MIXED",
	2: "EXCLUSIVE",
	3: "DISABLED",
}
View Source
var SELECTED_PROVIDERS_MODE_value = map[string]int32{
	"ALLOWED":   0,
	"MIXED":     1,
	"EXCLUSIVE": 2,
	"DISABLED":  3,
}

Functions

func CheckPlanMandatoryFields

func CheckPlanMandatoryFields(unsetFields []string) bool

func DecodeSelectedProvidersMode

func DecodeSelectedProvidersMode(dataStr string) (interface{}, error)

func IsGeoEnumSingleBit

func IsGeoEnumSingleBit(geoloc int32) bool

IsGeoEnumSingleBit returns true if at most one bit is set

func IsValidGeoEnum

func IsValidGeoEnum(geoloc int32) bool

IsValidProviderGeoEnum tests the validity of a given geolocation

func IsValidProviderGeoEnum

func IsValidProviderGeoEnum(geoloc int32) bool

IsValidProviderGeoEnum tests the validity of a given geolocation

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func ParseGeoEnum

func ParseGeoEnum(arg string) (geoloc int32, err error)

ParseGeoEnum parses a string into GeoEnum bitmask. The string may be a number or a comma-separated geolocations codes.

func PlanKey

func PlanKey(
	planIndex string,
) []byte

PlanKey returns the store key to retrieve a Plan from the index fields

func PolicyEnumDecodeHookFunc

func PolicyEnumDecodeHookFunc(f reflect.Type, t reflect.Type, data interface{}) (interface{}, error)

func PriceDecodeHookFunc

func PriceDecodeHookFunc(f reflect.Type, t reflect.Type, data interface{}) (interface{}, error)

PriceDecodeHookFunc helps the decoder to correctly unmarshal the price field's amount (type math.Int)

func PrintGeolocations

func PrintGeolocations() string

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer 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 RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func UniqueIndexKeyPrefix

func UniqueIndexKeyPrefix() string

func VerifyTotalCuUsage

func VerifyTotalCuUsage(effectiveTotalCu uint64, cuUsage uint64) bool

Types

type ChainPolicy

type ChainPolicy struct {
	ChainId      string             `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id"`
	Apis         []string           `protobuf:"bytes,2,rep,name=apis,proto3" json:"apis"`
	Requirements []ChainRequirement `protobuf:"bytes,3,rep,name=requirements,proto3" json:"requirements"`
}

func GetStrictestChainPolicyForSpec

func GetStrictestChainPolicyForSpec(chainID string, policies []*Policy) (chainPolicyRet ChainPolicy, allowed bool)

func (*ChainPolicy) Descriptor

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

func (*ChainPolicy) Equal

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

func (*ChainPolicy) GetApis

func (m *ChainPolicy) GetApis() []string

func (*ChainPolicy) GetChainId

func (m *ChainPolicy) GetChainId() string

func (*ChainPolicy) GetRequirements

func (m *ChainPolicy) GetRequirements() []ChainRequirement

func (*ChainPolicy) Marshal

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

func (*ChainPolicy) MarshalTo

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

func (*ChainPolicy) MarshalToSizedBuffer

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

func (*ChainPolicy) ProtoMessage

func (*ChainPolicy) ProtoMessage()

func (*ChainPolicy) Reset

func (m *ChainPolicy) Reset()

func (*ChainPolicy) Size

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

func (*ChainPolicy) String

func (m *ChainPolicy) String() string

func (*ChainPolicy) Unmarshal

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

func (*ChainPolicy) XXX_DiscardUnknown

func (m *ChainPolicy) XXX_DiscardUnknown()

func (*ChainPolicy) XXX_Marshal

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

func (*ChainPolicy) XXX_Merge

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

func (*ChainPolicy) XXX_Size

func (m *ChainPolicy) XXX_Size() int

func (*ChainPolicy) XXX_Unmarshal

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

type ChainRequirement

type ChainRequirement struct {
	Collection types.CollectionData `protobuf:"bytes,1,opt,name=collection,proto3" json:"collection"`
	Extensions []string             `protobuf:"bytes,2,rep,name=extensions,proto3" json:"extensions"`
	Mixed      bool                 `protobuf:"varint,3,opt,name=mixed,proto3" json:"mixed"`
}

func (*ChainRequirement) Descriptor

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

func (ChainRequirement) Differentiator

func (cr ChainRequirement) Differentiator() string

func (*ChainRequirement) Equal

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

func (*ChainRequirement) GetCollection

func (m *ChainRequirement) GetCollection() types.CollectionData

func (*ChainRequirement) GetExtensions

func (m *ChainRequirement) GetExtensions() []string

func (*ChainRequirement) GetMixed

func (m *ChainRequirement) GetMixed() bool

func (*ChainRequirement) Marshal

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

func (*ChainRequirement) MarshalTo

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

func (*ChainRequirement) MarshalToSizedBuffer

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

func (*ChainRequirement) ProtoMessage

func (*ChainRequirement) ProtoMessage()

func (*ChainRequirement) Reset

func (m *ChainRequirement) Reset()

func (*ChainRequirement) Size

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

func (*ChainRequirement) String

func (m *ChainRequirement) String() string

func (*ChainRequirement) Unmarshal

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

func (*ChainRequirement) XXX_DiscardUnknown

func (m *ChainRequirement) XXX_DiscardUnknown()

func (*ChainRequirement) XXX_Marshal

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

func (*ChainRequirement) XXX_Merge

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

func (*ChainRequirement) XXX_Size

func (m *ChainRequirement) XXX_Size() int

func (*ChainRequirement) XXX_Unmarshal

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

type EpochStorageKeeper

type EpochStorageKeeper interface {
	GetEpochStart(ctx sdk.Context) uint64
	GetNextEpoch(ctx sdk.Context, block uint64) (uint64, error)
}

type FixationStoreKeeper

type FixationStoreKeeper interface {
	NewFixationStore(storeKey storetypes.StoreKey, prefix string) *fixationstoretypes.FixationStore
}

type GenesisState

type GenesisState struct {
	Params  Params             `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PlansFS types.GenesisState `protobuf:"bytes,2,opt,name=plansFS,proto3" json:"plansFS"`
}

GenesisState defines the plan module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPlansFS

func (m *GenesisState) GetPlansFS() types.GenesisState

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

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

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 Geolocation

type Geolocation int32

The geolocation values are encoded as bits in a bitmask, with two special values: GLS is set to 0 so it will be restrictive with the AND operator. GL is set to -1 so it will be permissive with the AND operator.

const (
	Geolocation_GLS Geolocation = 0
	Geolocation_USC Geolocation = 1
	Geolocation_EU  Geolocation = 2
	Geolocation_USE Geolocation = 4
	Geolocation_USW Geolocation = 8
	Geolocation_AF  Geolocation = 16
	Geolocation_AS  Geolocation = 32
	Geolocation_AU  Geolocation = 64
	Geolocation_GL  Geolocation = 65535
)

func GetAllGeolocations

func GetAllGeolocations() []Geolocation

func GetGeolocationsFromUint

func GetGeolocationsFromUint(geoloc int32) []Geolocation

func (Geolocation) EnumDescriptor

func (Geolocation) EnumDescriptor() ([]byte, []int)

func (Geolocation) MarshalJSON

func (g Geolocation) MarshalJSON() ([]byte, error)

allows unmarshaling parser func

func (Geolocation) String

func (x Geolocation) String() string

func (*Geolocation) UnmarshalJSON

func (g *Geolocation) UnmarshalJSON(b []byte) error

UnmarshalJSON unmashals a quoted json string to the enum value

type ListInfoStruct

type ListInfoStruct struct {
	Index       string     `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Description string     `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Price       types.Coin `protobuf:"bytes,3,opt,name=price,proto3" json:"price"`
}

func (*ListInfoStruct) Descriptor

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

func (*ListInfoStruct) GetDescription

func (m *ListInfoStruct) GetDescription() string

func (*ListInfoStruct) GetIndex

func (m *ListInfoStruct) GetIndex() string

func (*ListInfoStruct) GetPrice

func (m *ListInfoStruct) GetPrice() types.Coin

func (*ListInfoStruct) Marshal

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

func (*ListInfoStruct) MarshalTo

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

func (*ListInfoStruct) MarshalToSizedBuffer

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

func (*ListInfoStruct) ProtoMessage

func (*ListInfoStruct) ProtoMessage()

func (*ListInfoStruct) Reset

func (m *ListInfoStruct) Reset()

func (*ListInfoStruct) Size

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

func (*ListInfoStruct) String

func (m *ListInfoStruct) String() string

func (*ListInfoStruct) Unmarshal

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

func (*ListInfoStruct) XXX_DiscardUnknown

func (m *ListInfoStruct) XXX_DiscardUnknown()

func (*ListInfoStruct) XXX_Marshal

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

func (*ListInfoStruct) XXX_Merge

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

func (*ListInfoStruct) XXX_Size

func (m *ListInfoStruct) XXX_Size() int

func (*ListInfoStruct) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

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 (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

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 (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

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 Plan

type Plan struct {
	Index                    string     `protobuf:"bytes,1,opt,name=index,proto3" json:"index"`
	Block                    uint64     `protobuf:"varint,3,opt,name=block,proto3" json:"block"`
	Price                    types.Coin `protobuf:"bytes,4,opt,name=price,proto3" json:"price"`
	AllowOveruse             bool       `protobuf:"varint,8,opt,name=allow_overuse,json=allowOveruse,proto3" json:"allow_overuse"`
	OveruseRate              uint64     `protobuf:"varint,9,opt,name=overuse_rate,json=overuseRate,proto3" json:"overuse_rate"`
	Description              string     `protobuf:"bytes,11,opt,name=description,proto3" json:"description"`
	Type                     string     `protobuf:"bytes,12,opt,name=type,proto3" json:"type"`
	AnnualDiscountPercentage uint64     `` /* 127-byte string literal not displayed */
	PlanPolicy               Policy     `protobuf:"bytes,14,opt,name=plan_policy,json=planPolicy,proto3" json:"plan_policy"`
	ProjectsLimit            uint64     `protobuf:"varint,15,opt,name=projects_limit,json=projectsLimit,proto3" json:"projects_limit"`
	AllowedBuyers            []string   `protobuf:"bytes,16,rep,name=allowed_buyers,json=allowedBuyers,proto3" json:"allowed_buyers"`
}

func (*Plan) Descriptor

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

func (*Plan) Equal

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

func (*Plan) GetAllowOveruse

func (m *Plan) GetAllowOveruse() bool

func (*Plan) GetAllowedBuyers

func (m *Plan) GetAllowedBuyers() []string

func (*Plan) GetAnnualDiscountPercentage

func (m *Plan) GetAnnualDiscountPercentage() uint64

func (*Plan) GetBlock

func (m *Plan) GetBlock() uint64

func (*Plan) GetDescription

func (m *Plan) GetDescription() string

func (*Plan) GetIndex

func (m *Plan) GetIndex() string

func (*Plan) GetOveruseRate

func (m *Plan) GetOveruseRate() uint64

func (*Plan) GetPlanPolicy

func (m *Plan) GetPlanPolicy() Policy

func (*Plan) GetPrice

func (m *Plan) GetPrice() types.Coin

func (*Plan) GetProjectsLimit

func (m *Plan) GetProjectsLimit() uint64

func (*Plan) GetType

func (m *Plan) GetType() string

func (*Plan) Marshal

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

func (*Plan) MarshalTo

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

func (*Plan) MarshalToSizedBuffer

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

func (*Plan) ProtoMessage

func (*Plan) ProtoMessage()

func (*Plan) Reset

func (m *Plan) Reset()

func (*Plan) Size

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

func (*Plan) String

func (m *Plan) String() string

func (*Plan) Unmarshal

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

func (Plan) ValidatePlan

func (p Plan) ValidatePlan() error

Function to validate a plan object fields

func (*Plan) XXX_DiscardUnknown

func (m *Plan) XXX_DiscardUnknown()

func (*Plan) XXX_Marshal

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

func (*Plan) XXX_Merge

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

func (*Plan) XXX_Size

func (m *Plan) XXX_Size() int

func (*Plan) XXX_Unmarshal

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

type PlansAddProposal

type PlansAddProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description"`
	Plans       []Plan `protobuf:"bytes,3,rep,name=plans,proto3" json:"plans"`
	Modify      bool   `protobuf:"varint,4,opt,name=modify,proto3" json:"modify"`
}

func NewPlansAddProposal

func NewPlansAddProposal(title, description string, plans []Plan) *PlansAddProposal

func (*PlansAddProposal) Descriptor

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

func (*PlansAddProposal) Equal

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

func (*PlansAddProposal) GetDescription

func (pcp *PlansAddProposal) GetDescription() string

GetDescription returns the description of a proposal.

func (*PlansAddProposal) GetTitle

func (pcp *PlansAddProposal) GetTitle() string

GetTitle returns the title of a proposal.

func (*PlansAddProposal) HandleUnsetPlanProposalFields

func (pcp *PlansAddProposal) HandleUnsetPlanProposalFields(unset []string) error

the unset fields in the proposal are in plans[0].plan_policy... format, so they need special handling

func (*PlansAddProposal) Marshal

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

func (*PlansAddProposal) MarshalTo

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

func (*PlansAddProposal) MarshalToSizedBuffer

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

func (*PlansAddProposal) ProposalRoute

func (pcp *PlansAddProposal) ProposalRoute() string

ProposalRoute returns the routing key of a proposal.

func (*PlansAddProposal) ProposalType

func (pcp *PlansAddProposal) ProposalType() string

ProposalType returns the type of a proposal.

func (*PlansAddProposal) ProtoMessage

func (*PlansAddProposal) ProtoMessage()

func (*PlansAddProposal) Reset

func (m *PlansAddProposal) Reset()

func (*PlansAddProposal) Size

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

func (PlansAddProposal) String

func (pcp PlansAddProposal) String() string

String implements the Stringer interface.

func (*PlansAddProposal) Unmarshal

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

func (*PlansAddProposal) ValidateBasic

func (pcp *PlansAddProposal) ValidateBasic() error

ValidateBasic validates the proposal

func (*PlansAddProposal) XXX_DiscardUnknown

func (m *PlansAddProposal) XXX_DiscardUnknown()

func (*PlansAddProposal) XXX_Marshal

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

func (*PlansAddProposal) XXX_Merge

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

func (*PlansAddProposal) XXX_Size

func (m *PlansAddProposal) XXX_Size() int

func (*PlansAddProposal) XXX_Unmarshal

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

type PlansDelProposal

type PlansDelProposal struct {
	Title       string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title"`
	Description string   `protobuf:"bytes,2,opt,name=description,proto3" json:"description"`
	Plans       []string `protobuf:"bytes,3,rep,name=plans,proto3" json:"plans"`
}

func NewPlansDelProposal

func NewPlansDelProposal(title, description string, indices []string) *PlansDelProposal

func (*PlansDelProposal) Descriptor

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

func (*PlansDelProposal) Equal

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

func (*PlansDelProposal) GetDescription

func (pcp *PlansDelProposal) GetDescription() string

GetDescription returns the description of a proposal.

func (*PlansDelProposal) GetTitle

func (pcp *PlansDelProposal) GetTitle() string

GetTitle returns the title of a proposal.

func (*PlansDelProposal) Marshal

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

func (*PlansDelProposal) MarshalTo

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

func (*PlansDelProposal) MarshalToSizedBuffer

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

func (*PlansDelProposal) ProposalRoute

func (pcp *PlansDelProposal) ProposalRoute() string

ProposalRoute returns the routing key of a proposal.

func (*PlansDelProposal) ProposalType

func (pcp *PlansDelProposal) ProposalType() string

ProposalType returns the type of a proposal.

func (*PlansDelProposal) ProtoMessage

func (*PlansDelProposal) ProtoMessage()

func (*PlansDelProposal) Reset

func (m *PlansDelProposal) Reset()

func (*PlansDelProposal) Size

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

func (PlansDelProposal) String

func (pcp PlansDelProposal) String() string

String implements the Stringer interface.

func (*PlansDelProposal) Unmarshal

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

func (*PlansDelProposal) ValidateBasic

func (pcp *PlansDelProposal) ValidateBasic() error

ValidateBasic validates the proposal

func (*PlansDelProposal) XXX_DiscardUnknown

func (m *PlansDelProposal) XXX_DiscardUnknown()

func (*PlansDelProposal) XXX_Marshal

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

func (*PlansDelProposal) XXX_Merge

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

func (*PlansDelProposal) XXX_Size

func (m *PlansDelProposal) XXX_Size() int

func (*PlansDelProposal) XXX_Unmarshal

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

type Policy

type Policy struct {
	ChainPolicies         []ChainPolicy           `protobuf:"bytes,1,rep,name=chain_policies,json=chainPolicies,proto3" json:"chain_policies"`
	GeolocationProfile    int32                   `protobuf:"varint,2,opt,name=geolocation_profile,json=geolocationProfile,proto3" json:"geolocation_profile"`
	TotalCuLimit          uint64                  `protobuf:"varint,3,opt,name=total_cu_limit,json=totalCuLimit,proto3" json:"total_cu_limit"`
	EpochCuLimit          uint64                  `protobuf:"varint,4,opt,name=epoch_cu_limit,json=epochCuLimit,proto3" json:"epoch_cu_limit"`
	MaxProvidersToPair    uint64                  `protobuf:"varint,5,opt,name=max_providers_to_pair,json=maxProvidersToPair,proto3" json:"max_providers_to_pair"`
	SelectedProvidersMode SELECTED_PROVIDERS_MODE `` /* 165-byte string literal not displayed */
	SelectedProviders     []string                `protobuf:"bytes,7,rep,name=selected_providers,json=selectedProviders,proto3" json:"selected_providers"`
}

protobuf expected in YAML format: used "moretags" to simplify parsing

func ParsePolicyFromYamlPath

func ParsePolicyFromYamlPath(path string) (*Policy, error)

func ParsePolicyFromYamlString

func ParsePolicyFromYamlString(input string) (*Policy, error)

func (*Policy) ChainPolicy

func (policy *Policy) ChainPolicy(chainID string) (chainPolicy ChainPolicy, allowed bool)

gets the chainPolicy if exists, null safe

func (*Policy) ContainsChainID

func (policy *Policy) ContainsChainID(chainID string) bool

func (*Policy) Descriptor

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

func (*Policy) Equal

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

func (*Policy) GetChainPolicies

func (m *Policy) GetChainPolicies() []ChainPolicy

func (*Policy) GetEpochCuLimit

func (m *Policy) GetEpochCuLimit() uint64

func (*Policy) GetGeolocationProfile

func (m *Policy) GetGeolocationProfile() int32

func (*Policy) GetMaxProvidersToPair

func (m *Policy) GetMaxProvidersToPair() uint64

func (*Policy) GetSelectedProviders

func (m *Policy) GetSelectedProviders() []string

func (*Policy) GetSelectedProvidersMode

func (m *Policy) GetSelectedProvidersMode() SELECTED_PROVIDERS_MODE

func (*Policy) GetSupportedAddons

func (policy *Policy) GetSupportedAddons(specID string) (addons []string, err error)

func (*Policy) GetSupportedExtensions

func (policy *Policy) GetSupportedExtensions(specID string) (extensions []epochstoragetypes.EndpointService, err error)

func (*Policy) GetTotalCuLimit

func (m *Policy) GetTotalCuLimit() uint64

func (*Policy) HandleUnsetPolicyFields

func (p *Policy) HandleUnsetPolicyFields(unset []string) error

handleMissingPolicyFields sets default values to missing fields

func (*Policy) Marshal

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

func (*Policy) MarshalTo

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

func (*Policy) MarshalToSizedBuffer

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

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) Size

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

func (*Policy) String

func (m *Policy) String() string

func (*Policy) Unmarshal

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

func (Policy) ValidateBasicPolicy

func (policy Policy) ValidateBasicPolicy(isPlanPolicy bool) error

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

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

func (*Policy) XXX_Merge

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

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of List items.
	List(ctx context.Context, in *QueryListRequest, opts ...grpc.CallOption) (*QueryListResponse, error)
	// Queries an Info item.
	Info(ctx context.Context, in *QueryInfoRequest, opts ...grpc.CallOption) (*QueryInfoResponse, error)
}

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 QueryInfoRequest

type QueryInfoRequest struct {
	PlanIndex string `protobuf:"bytes,1,opt,name=plan_index,json=planIndex,proto3" json:"plan_index,omitempty"`
}

func (*QueryInfoRequest) Descriptor

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

func (*QueryInfoRequest) GetPlanIndex

func (m *QueryInfoRequest) GetPlanIndex() string

func (*QueryInfoRequest) Marshal

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

func (*QueryInfoRequest) MarshalTo

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

func (*QueryInfoRequest) MarshalToSizedBuffer

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

func (*QueryInfoRequest) ProtoMessage

func (*QueryInfoRequest) ProtoMessage()

func (*QueryInfoRequest) Reset

func (m *QueryInfoRequest) Reset()

func (*QueryInfoRequest) Size

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

func (*QueryInfoRequest) String

func (m *QueryInfoRequest) String() string

func (*QueryInfoRequest) Unmarshal

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

func (*QueryInfoRequest) XXX_DiscardUnknown

func (m *QueryInfoRequest) XXX_DiscardUnknown()

func (*QueryInfoRequest) XXX_Marshal

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

func (*QueryInfoRequest) XXX_Merge

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

func (*QueryInfoRequest) XXX_Size

func (m *QueryInfoRequest) XXX_Size() int

func (*QueryInfoRequest) XXX_Unmarshal

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

type QueryInfoResponse

type QueryInfoResponse struct {
	PlanInfo Plan `protobuf:"bytes,1,opt,name=plan_info,json=planInfo,proto3" json:"plan_info"`
}

func (*QueryInfoResponse) Descriptor

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

func (*QueryInfoResponse) GetPlanInfo

func (m *QueryInfoResponse) GetPlanInfo() Plan

func (*QueryInfoResponse) Marshal

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

func (*QueryInfoResponse) MarshalTo

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

func (*QueryInfoResponse) MarshalToSizedBuffer

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

func (*QueryInfoResponse) ProtoMessage

func (*QueryInfoResponse) ProtoMessage()

func (*QueryInfoResponse) Reset

func (m *QueryInfoResponse) Reset()

func (*QueryInfoResponse) Size

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

func (*QueryInfoResponse) String

func (m *QueryInfoResponse) String() string

func (*QueryInfoResponse) Unmarshal

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

func (*QueryInfoResponse) XXX_DiscardUnknown

func (m *QueryInfoResponse) XXX_DiscardUnknown()

func (*QueryInfoResponse) XXX_Marshal

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

func (*QueryInfoResponse) XXX_Merge

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

func (*QueryInfoResponse) XXX_Size

func (m *QueryInfoResponse) XXX_Size() int

func (*QueryInfoResponse) XXX_Unmarshal

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

type QueryListRequest

type QueryListRequest struct {
}

func (*QueryListRequest) Descriptor

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

func (*QueryListRequest) Marshal

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

func (*QueryListRequest) MarshalTo

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

func (*QueryListRequest) MarshalToSizedBuffer

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

func (*QueryListRequest) ProtoMessage

func (*QueryListRequest) ProtoMessage()

func (*QueryListRequest) Reset

func (m *QueryListRequest) Reset()

func (*QueryListRequest) Size

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

func (*QueryListRequest) String

func (m *QueryListRequest) String() string

func (*QueryListRequest) Unmarshal

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

func (*QueryListRequest) XXX_DiscardUnknown

func (m *QueryListRequest) XXX_DiscardUnknown()

func (*QueryListRequest) XXX_Marshal

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

func (*QueryListRequest) XXX_Merge

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

func (*QueryListRequest) XXX_Size

func (m *QueryListRequest) XXX_Size() int

func (*QueryListRequest) XXX_Unmarshal

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

type QueryListResponse

type QueryListResponse struct {
	PlansInfo []ListInfoStruct `protobuf:"bytes,1,rep,name=plans_info,json=plansInfo,proto3" json:"plans_info"`
}

func (*QueryListResponse) Descriptor

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

func (*QueryListResponse) GetPlansInfo

func (m *QueryListResponse) GetPlansInfo() []ListInfoStruct

func (*QueryListResponse) Marshal

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

func (*QueryListResponse) MarshalTo

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

func (*QueryListResponse) MarshalToSizedBuffer

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

func (*QueryListResponse) ProtoMessage

func (*QueryListResponse) ProtoMessage()

func (*QueryListResponse) Reset

func (m *QueryListResponse) Reset()

func (*QueryListResponse) Size

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

func (*QueryListResponse) String

func (m *QueryListResponse) String() string

func (*QueryListResponse) Unmarshal

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

func (*QueryListResponse) XXX_DiscardUnknown

func (m *QueryListResponse) XXX_DiscardUnknown()

func (*QueryListResponse) XXX_Marshal

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

func (*QueryListResponse) XXX_Merge

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

func (*QueryListResponse) XXX_Size

func (m *QueryListResponse) XXX_Size() int

func (*QueryListResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

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 QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of List items.
	List(context.Context, *QueryListRequest) (*QueryListResponse, error)
	// Queries an Info item.
	Info(context.Context, *QueryInfoRequest) (*QueryInfoResponse, error)
}

QueryServer is the server API for Query service.

type SELECTED_PROVIDERS_MODE

type SELECTED_PROVIDERS_MODE int32

the enum below determines the pairing algorithm's behaviour with the selected providers feature

const (
	SELECTED_PROVIDERS_MODE_ALLOWED   SELECTED_PROVIDERS_MODE = 0
	SELECTED_PROVIDERS_MODE_MIXED     SELECTED_PROVIDERS_MODE = 1
	SELECTED_PROVIDERS_MODE_EXCLUSIVE SELECTED_PROVIDERS_MODE = 2
	SELECTED_PROVIDERS_MODE_DISABLED  SELECTED_PROVIDERS_MODE = 3
)

func (SELECTED_PROVIDERS_MODE) EnumDescriptor

func (SELECTED_PROVIDERS_MODE) EnumDescriptor() ([]byte, []int)

func (SELECTED_PROVIDERS_MODE) MarshalJSON

func (s SELECTED_PROVIDERS_MODE) MarshalJSON() ([]byte, error)

allows unmarshaling parser func

func (SELECTED_PROVIDERS_MODE) String

func (x SELECTED_PROVIDERS_MODE) String() string

func (*SELECTED_PROVIDERS_MODE) UnmarshalJSON

func (s *SELECTED_PROVIDERS_MODE) UnmarshalJSON(b []byte) error

UnmarshalJSON unmashals a quoted json string to the enum value

type SpecKeeper

type SpecKeeper interface {
	GetExpectedServicesForSpec(ctx sdk.Context, chainID string, mandatory bool) (expectedInterfaces map[epochstoragetypes.EndpointService]struct{}, err error)
}

type StakingKeeper

type StakingKeeper interface {
	BondDenom(ctx sdk.Context) string
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Info

func (*UnimplementedQueryServer) List

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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