types

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCompleteUnbonding       = "complete_unbonding"
	EventTypeJoinService             = "join_service"
	EventTypeLeaveService            = "leave_service"
	EventTypeAllowOperator           = "allow_operator"
	EventTypeRemoveAllowedOperator   = "remove_allowed_operator"
	EventTypeBorrowPoolSecurity      = "borrow_pool_security"
	EventTypeCeasePoolSecurityBorrow = "cease_pool_security_borrow"
	EventTypeUpdateServiceParams     = "update_service_params"
	EventTypeDelegatePool            = "delegate_pool"
	EventTypeDelegateOperator        = "delegate_operator"
	EventTypeDelegateService         = "delegate_service"
	EventTypeUnbondPool              = "unbond_pool"
	EventTypeUnbondOperator          = "unbond_operator"
	EventTypeUnbondService           = "unbond_service"

	AttributeKeyDelegator            = "delegator"
	AttributeKeyNewShares            = "new_shares"
	AttributeKeyCompletionTime       = "completion_time"
	AttributeUnbondingDelegationType = "unbonding_delegation"
	AttributeTargetID                = "target_id"
)
View Source
const (
	ModuleName = "restaking"
	StoreKey   = ModuleName
)

Variables

View Source
var (
	ErrInvalidGenesis                 = errors.Register(ModuleName, 1, "invalid genesis state")
	ErrInvalidShares                  = errors.Register(ModuleName, 2, "invalid shares amount")
	ErrDelegatorShareExRateInvalid    = errors.Register(ModuleName, 3, "cannot delegate to pool/operator/service with invalid (zero) ex-rate")
	ErrDelegationNotFound             = errors.Register(ModuleName, 4, "delegation not found")
	ErrNotEnoughDelegationShares      = errors.Register(ModuleName, 5, "not enough delegation shares")
	ErrInvalidDelegationType          = errors.Register(ModuleName, 6, "invalid delegation type")
	ErrNoUnbondingDelegation          = errors.Register(ModuleName, 7, "no unbonding delegation found")
	ErrServiceAlreadyJoinedByOperator = errors.Register(ModuleName, 8, "service already joined by operator")
	ErrServiceNotJoinedByOperator     = errors.Register(ModuleName, 9, "the service has not been joined by the operator")
	ErrOperatorAlreadyAllowed         = errors.Register(ModuleName, 10, "operator already allowed")
	ErrOperatorNotAllowed             = errors.Register(ModuleName, 11, "operator not allowed")
	ErrPoolAlreadySecuringService     = errors.Register(ModuleName, 12, "pool already securing the service")
	ErrPoolNotSecuringService         = errors.Register(ModuleName, 13, "pool not securing the service")
)
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 (
	ParamsKey         = []byte{0x01}
	UnbondingIDKey    = []byte{0x02}
	UnbondingIndexKey = []byte{0x03}
	UnbondingTypeKey  = []byte{0x04}

	OperatorJoinedServicesPrefix       = []byte{0x13}
	ServiceOperatorsAllowListPrefix    = []byte{0x14}
	ServiceSecuringPoolsPrefix         = []byte{0x15}
	ServiceJoinedByOperatorIndexPrefix = []byte{0x16}

	PoolDelegationPrefix          = []byte{0xa1}
	PoolDelegationsByPoolIDPrefix = []byte{0xa2}
	PoolUnbondingDelegationPrefix = []byte{0xa3}

	OperatorDelegationPrefix          = []byte{0xb1}
	OperatorDelegationByOperatorID    = []byte{0xb2}
	OperatorUnbondingDelegationPrefix = []byte{0xb3}

	ServiceDelegationPrefix            = []byte{0xc1}
	ServiceDelegationByServiceIDPrefix = []byte{0xc2}
	ServiceUnbondingDelegationPrefix   = []byte{0xc3}

	UnbondingQueueKey = []byte{0xd1}
)
View Source
var (
	ErrInvalidLengthMessages        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessages          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMessages = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthModels        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModels          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModels = 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 (
	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 AminoCdc = codec.NewLegacyAmino()

AminoCdc references the global x/services module codec. Note, the codec should ONLY be used in certain instances of tests and for JSON encoding as Amino is still used for that purpose.

The actual codec used for serialization should be provided to x/services and defined at the application level.

View Source
var DelegationType_name = map[int32]string{
	0: "DELEGATION_TYPE_UNSPECIFIED",
	1: "DELEGATION_TYPE_POOL",
	2: "DELEGATION_TYPE_OPERATOR",
	3: "DELEGATION_TYPE_SERVICE",
}
View Source
var DelegationType_value = map[string]int32{
	"DELEGATION_TYPE_UNSPECIFIED": 0,
	"DELEGATION_TYPE_POOL":        1,
	"DELEGATION_TYPE_OPERATOR":    2,
	"DELEGATION_TYPE_SERVICE":     3,
}

Functions

func DelegationByOperatorIDStoreKey

func DelegationByOperatorIDStoreKey(operatorID uint32, delegatorAddress string) []byte

DelegationByOperatorIDStoreKey returns the key used to store the operator -> user delegation association

func DelegationByPoolIDStoreKey

func DelegationByPoolIDStoreKey(poolID uint32, delegatorAddress string) []byte

DelegationByPoolIDStoreKey returns the key used to store the pool -> user delegation association

func DelegationByServiceIDStoreKey

func DelegationByServiceIDStoreKey(serviceID uint32, delegatorAddress string) []byte

DelegationByServiceIDStoreKey returns the key used to store the service -> user delegation association

func DelegationsByOperatorIDStorePrefix

func DelegationsByOperatorIDStorePrefix(operatorID uint32) []byte

DelegationsByOperatorIDStorePrefix returns the prefix used to store the delegations to a given operator

func DelegationsByPoolIDStorePrefix

func DelegationsByPoolIDStorePrefix(poolID uint32) []byte

DelegationsByPoolIDStorePrefix returns the prefix used to store the delegations to a given pool

func DelegationsByServiceIDStorePrefix

func DelegationsByServiceIDStorePrefix(serviceID uint32) []byte

DelegationsByServiceIDStorePrefix returns the prefix used to store the delegations to a given service

func GetUnbondingDelegationTimeKey

func GetUnbondingDelegationTimeKey(timestamp time.Time) []byte

GetUnbondingDelegationTimeKey creates the prefix for all unbonding delegations from a delegator

func GetUnbondingIndexKey

func GetUnbondingIndexKey(id uint64) []byte

GetUnbondingIndexKey returns a key for the index for looking up UnbondingDelegations by the UnbondingDelegationEntries they contain

func GetUnbondingTypeKey

func GetUnbondingTypeKey(id uint64) []byte

GetUnbondingTypeKey returns a key for an index containing the type of unbonding operations

func MarshalUnbondingDelegation

func MarshalUnbondingDelegation(cdc codec.BinaryCodec, unbondingDelegation UnbondingDelegation) []byte

MarshalUnbondingDelegation marshals the unbonding delegation using the provided codec

func MustMarshalDelegation

func MustMarshalDelegation(cdc codec.BinaryCodec, delegation Delegation) []byte

MustMarshalDelegation marshals the given pool delegation using the provided codec

func MustMarshalUnbondingDelegation

func MustMarshalUnbondingDelegation(cdc codec.BinaryCodec, unbondingDelegation UnbondingDelegation) []byte

MustMarshalUnbondingDelegation marshals the unbonding delegation using the provided codec

func OperatorUnbondingDelegationsStorePrefix

func OperatorUnbondingDelegationsStorePrefix(delegatorAddress string) []byte

OperatorUnbondingDelegationsStorePrefix returns the prefix used to store all the unbonding delegations to a given pool

func ParseDelegationsByOperatorIDKey

func ParseDelegationsByOperatorIDKey(bz []byte) (operatorID uint32, delegatorAddress string, err error)

ParseDelegationsByOperatorIDKey parses the operator ID and delegator address from the given key

func ParseDelegationsByPoolIDKey

func ParseDelegationsByPoolIDKey(bz []byte) (poolID uint32, delegatorAddress string, err error)

ParseDelegationsByPoolIDKey parses the pool ID and delegator address from the given key

func ParseDelegationsByServiceIDKey

func ParseDelegationsByServiceIDKey(bz []byte) (serviceID uint32, delegatorAddress string, err error)

ParseDelegationsByServiceIDKey parses the service ID and delegator address from the given key

func PoolUnbondingDelegationsStorePrefix

func PoolUnbondingDelegationsStorePrefix(delegatorAddress string) []byte

PoolUnbondingDelegationsStorePrefix returns the prefix used to store all the unbonding delegations to a given pool

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 ServiceUnbondingDelegationsStorePrefix

func ServiceUnbondingDelegationsStorePrefix(delegatorAddress string) []byte

ServiceUnbondingDelegationsStorePrefix returns the prefix used to store all the unbonding delegations to a given pool

func UserOperatorDelegationStoreKey

func UserOperatorDelegationStoreKey(delegator string, operatorID uint32) []byte

UserOperatorDelegationStoreKey returns the key used to store the user -> operator delegation association

func UserOperatorDelegationsStorePrefix

func UserOperatorDelegationsStorePrefix(userAddress string) []byte

UserOperatorDelegationsStorePrefix returns the prefix used to store all the delegations to a given operator

func UserOperatorUnbondingDelegationKey

func UserOperatorUnbondingDelegationKey(delegatorAddress string, operatorID uint32) []byte

UserOperatorUnbondingDelegationKey returns the key used to store the unbonding delegation for the given pool and delegator

func UserPoolDelegationStoreKey

func UserPoolDelegationStoreKey(delegator string, poolID uint32) []byte

UserPoolDelegationStoreKey returns the key used to store the user -> pool delegation association

func UserPoolDelegationsStorePrefix

func UserPoolDelegationsStorePrefix(userAddress string) []byte

UserPoolDelegationsStorePrefix returns the prefix used to store all the delegations to a given pool

func UserPoolUnbondingDelegationKey

func UserPoolUnbondingDelegationKey(delegatorAddress string, poolID uint32) []byte

UserPoolUnbondingDelegationKey returns the key used to store the unbonding delegation for the given pool and delegator

func UserServiceDelegationStoreKey

func UserServiceDelegationStoreKey(delegator string, serviceID uint32) []byte

UserServiceDelegationStoreKey returns the key used to store the user -> service delegation association

func UserServiceDelegationsStorePrefix

func UserServiceDelegationsStorePrefix(userAddress string) []byte

UserServiceDelegationsStorePrefix returns the prefix used to store all the delegations to a given service

func UserServiceUnbondingDelegationKey

func UserServiceUnbondingDelegationKey(delegatorAddress string, serviceID uint32) []byte

UserServiceUnbondingDelegationKey returns the key used to store the unbonding delegation for the given pool and delegator

Types

type AccountKeeper

type AccountKeeper interface {
	AddressCodec() address.Codec
}

type BankKeeper

type BankKeeper interface {
	SendCoins(ctx context.Context, fromAddr, toAddr sdk.AccAddress, amt sdk.Coins) error
	GetBalance(ctx context.Context, addr sdk.AccAddress, denom string) sdk.Coin
	GetAllBalances(ctx context.Context, addr sdk.AccAddress) sdk.Coins
}

type DTData

type DTData struct {
	UnbondingDelegationType DelegationType `` /* 175-byte string literal not displayed */
	DelegatorAddress        string         `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	TargetID                uint32         `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
}

DTData is a struct that contains the basic information about an unbonding delegation. It is intended to be used as a marshalable pointer. For example, a DTData can be used to construct the key to getting an UnbondingDelegation from state.

func (*DTData) Descriptor

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

func (*DTData) Marshal

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

func (*DTData) MarshalTo

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

func (*DTData) MarshalToSizedBuffer

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

func (*DTData) ProtoMessage

func (*DTData) ProtoMessage()

func (*DTData) Reset

func (m *DTData) Reset()

func (*DTData) Size

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

func (*DTData) String

func (m *DTData) String() string

func (*DTData) Unmarshal

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

func (*DTData) XXX_DiscardUnknown

func (m *DTData) XXX_DiscardUnknown()

func (*DTData) XXX_Marshal

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

func (*DTData) XXX_Merge

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

func (*DTData) XXX_Size

func (m *DTData) XXX_Size() int

func (*DTData) XXX_Unmarshal

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

type DTDataList

type DTDataList struct {
	Data []DTData `protobuf:"bytes,1,rep,name=data,proto3" json:"data"`
}

DTDataList defines an array of DTData objects.

func (*DTDataList) Descriptor

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

func (*DTDataList) GetData

func (m *DTDataList) GetData() []DTData

func (*DTDataList) Marshal

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

func (*DTDataList) MarshalTo

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

func (*DTDataList) MarshalToSizedBuffer

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

func (*DTDataList) ProtoMessage

func (*DTDataList) ProtoMessage()

func (*DTDataList) Reset

func (m *DTDataList) Reset()

func (*DTDataList) Size

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

func (*DTDataList) String

func (m *DTDataList) String() string

func (*DTDataList) Unmarshal

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

func (*DTDataList) XXX_DiscardUnknown

func (m *DTDataList) XXX_DiscardUnknown()

func (*DTDataList) XXX_Marshal

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

func (*DTDataList) XXX_Merge

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

func (*DTDataList) XXX_Size

func (m *DTDataList) XXX_Size() int

func (*DTDataList) XXX_Unmarshal

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

type Delegation

type Delegation struct {
	// Type is the type of delegation.
	Type DelegationType `protobuf:"varint,1,opt,name=type,proto3,enum=milkyway.restaking.v1.DelegationType" json:"type,omitempty"`
	// UserAddress is the encoded address of the user.
	UserAddress string `protobuf:"bytes,2,opt,name=user_address,json=userAddress,proto3" json:"user_address,omitempty"`
	// TargetID is the id of the target to which the delegation is associated
	// (pool, operator, service).
	TargetID uint32 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
	// Shares define the delegation shares received.
	Shares github_com_cosmos_cosmos_sdk_types.DecCoins `protobuf:"bytes,4,rep,name=shares,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoins" json:"shares"`
}

Delegation represents the bond with tokens held by an account with a given target.

func MustUnmarshalDelegation

func MustUnmarshalDelegation(cdc codec.BinaryCodec, bz []byte) Delegation

MustUnmarshalDelegation unmarshals a pool delegation from the given bytes using the provided codec

func NewOperatorDelegation

func NewOperatorDelegation(operatorID uint32, userAddress string, shares sdk.DecCoins) Delegation

NewOperatorDelegation creates a new Delegation instance representing a delegation to an operator

func NewPoolDelegation

func NewPoolDelegation(poolID uint32, userAddress string, shares sdk.DecCoins) Delegation

NewPoolDelegation creates a new Delegation instance representing a pool delegation

func NewServiceDelegation

func NewServiceDelegation(serviceID uint32, userAddress string, shares sdk.DecCoins) Delegation

NewServiceDelegation creates a new Delegation instance representing a delegation to a service

func UnmarshalDelegation

func UnmarshalDelegation(cdc codec.BinaryCodec, bz []byte) (Delegation, error)

UnmarshalDelegation unmarshals a pool delegation from the given bytes using the provided codec

func (*Delegation) Descriptor

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

func (*Delegation) Marshal

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

func (*Delegation) MarshalTo

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

func (*Delegation) MarshalToSizedBuffer

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

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) Reset

func (m *Delegation) Reset()

func (*Delegation) Size

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

func (*Delegation) String

func (m *Delegation) String() string

func (*Delegation) Unmarshal

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

func (Delegation) Validate

func (d Delegation) Validate() error

Validate validates the delegation

func (*Delegation) XXX_DiscardUnknown

func (m *Delegation) XXX_DiscardUnknown()

func (*Delegation) XXX_Marshal

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

func (*Delegation) XXX_Merge

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

func (*Delegation) XXX_Size

func (m *Delegation) XXX_Size() int

func (*Delegation) XXX_Unmarshal

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

type DelegationBuilder

type DelegationBuilder func(targetID uint32, delegator string, shares sdk.DecCoins) Delegation

DelegationBuilder represents a function that allows to build a new delegation

type DelegationByTargetIDBuilder

type DelegationByTargetIDBuilder func(targetID uint32, delegationAddress string) []byte

type DelegationData

type DelegationData struct {
	Amount           sdk.Coins
	Delegator        string
	Target           DelegationTarget
	BuildDelegation  DelegationBuilder
	UpdateDelegation DelegationUpdater
	Hooks            DelegationHooks
}

DelegationData contains the data required to perform a delegation.

type DelegationGetter

type DelegationGetter func(ctx sdk.Context, receiverID uint32, delegator string) (Delegation, bool)

DelegationGetter represents a function that allows to retrieve an existing delegation

type DelegationHooks

type DelegationHooks struct {
	BeforeDelegationSharesModified func(ctx sdk.Context, receiverID uint32, delegator string) error
	BeforeDelegationCreated        func(ctx sdk.Context, receiverID uint32, delegator string) error
	AfterDelegationModified        func(ctx sdk.Context, receiverID uint32, delegator string) error
	BeforeDelegationRemoved        func(ctx sdk.Context, receiverID uint32, delegator string) error
}

DelegationHooks contains the hooks that can be called before and after a delegation is modified.

type DelegationKeyBuilder

type DelegationKeyBuilder func(delegatorAddress string, targetID uint32) []byte

type DelegationResponse

type DelegationResponse struct {
	Delegation Delegation                               `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"`
	Balance    github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,2,rep,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balance"`
}

DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.

func NewDelegationResponse

func NewDelegationResponse(delegation Delegation, balance sdk.Coins) DelegationResponse

NewDelegationResponse creates a new DelegationResponse instance

func (*DelegationResponse) Descriptor

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

func (*DelegationResponse) GetBalance

func (*DelegationResponse) GetDelegation

func (m *DelegationResponse) GetDelegation() Delegation

func (*DelegationResponse) Marshal

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

func (*DelegationResponse) MarshalTo

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

func (*DelegationResponse) MarshalToSizedBuffer

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

func (*DelegationResponse) ProtoMessage

func (*DelegationResponse) ProtoMessage()

func (*DelegationResponse) Reset

func (m *DelegationResponse) Reset()

func (*DelegationResponse) Size

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

func (*DelegationResponse) String

func (m *DelegationResponse) String() string

func (*DelegationResponse) Unmarshal

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

func (*DelegationResponse) XXX_DiscardUnknown

func (m *DelegationResponse) XXX_DiscardUnknown()

func (*DelegationResponse) XXX_Marshal

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

func (*DelegationResponse) XXX_Merge

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

func (*DelegationResponse) XXX_Size

func (m *DelegationResponse) XXX_Size() int

func (*DelegationResponse) XXX_Unmarshal

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

type DelegationTarget

type DelegationTarget interface {
	GetID() uint32
	GetAddress() string
	GetTokens() sdk.Coins
	GetDelegatorShares() sdk.DecCoins
	InvalidExRate() bool
	GetSharesDenom(tokenDenom string) string
	TokensFromShares(shares sdk.DecCoins) sdk.DecCoins
	TokensFromSharesTruncated(shares sdk.DecCoins) sdk.DecCoins
	SharesFromTokens(amt sdk.Coins) (sdk.DecCoins, error)
	SharesFromTokensTruncated(tokens sdk.Coins) (sdk.DecCoins, error)
	SharesFromDecCoins(amt sdk.DecCoins) (sdk.DecCoins, error)
}

DelegationTarget is an interface that represents the target of a delegation (operator, pool, service, etc).

type DelegationType

type DelegationType int32

DelegationType defines the type of delegation.

const (
	DELEGATION_TYPE_UNSPECIFIED DelegationType = 0
	DELEGATION_TYPE_POOL        DelegationType = 1
	DELEGATION_TYPE_OPERATOR    DelegationType = 2
	DELEGATION_TYPE_SERVICE     DelegationType = 3
)

func GetDelegationTypeFromTarget

func GetDelegationTypeFromTarget(target DelegationTarget) (DelegationType, error)

GetDelegationTypeFromTarget returns the unbonding delegation type based on the target

func (DelegationType) EnumDescriptor

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

func (DelegationType) String

func (x DelegationType) String() string

type DelegationUpdater

type DelegationUpdater func(ctx sdk.Context, delegation Delegation) (newShares sdk.DecCoins, err error)

DelegationUpdater represents a function that allows to update an existing delegation

type GenesisState

type GenesisState struct {
	// Params defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// OperatorsJoinedServices defines the list of the services that each operator
	// has joined.
	OperatorsJoinedServices []OperatorJoinedServices `protobuf:"bytes,2,rep,name=operators_joined_services,json=operatorsJoinedServices,proto3" json:"operators_joined_services"`
	// ServiceAllowedOperators defines the operators allowed to secure each
	// service.
	ServicesAllowedOperators []ServiceAllowedOperators `protobuf:"bytes,3,rep,name=services_allowed_operators,json=servicesAllowedOperators,proto3" json:"services_allowed_operators"`
	// ServicesSecuringPools defines the whitelisted pools for each service.
	ServicesSecuringPools []ServiceSecuringPools `protobuf:"bytes,4,rep,name=services_securing_pools,json=servicesSecuringPools,proto3" json:"services_securing_pools"`
	// Delegations represents the delegations.
	Delegations []Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations"`
	// UnbondingDelegations represents the unbonding delegations.
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
}

GenesisState defines the restaking module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns a default genesis state

func NewGenesis

func NewGenesis(
	operatorsJoinedServices []OperatorJoinedServices,
	servicesAllowedOperators []ServiceAllowedOperators,
	servicesSecuringPools []ServiceSecuringPools,
	delegations []Delegation,
	unbondingDelegations []UnbondingDelegation,
	params Params,
) *GenesisState

NewGenesis creates a new genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDelegations

func (m *GenesisState) GetDelegations() []Delegation

func (*GenesisState) GetOperatorsJoinedServices added in v1.3.0

func (m *GenesisState) GetOperatorsJoinedServices() []OperatorJoinedServices

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetServicesAllowedOperators added in v1.3.0

func (m *GenesisState) GetServicesAllowedOperators() []ServiceAllowedOperators

func (*GenesisState) GetServicesSecuringPools added in v1.3.0

func (m *GenesisState) GetServicesSecuringPools() []ServiceSecuringPools

func (*GenesisState) GetUnbondingDelegations

func (m *GenesisState) GetUnbondingDelegations() []UnbondingDelegation

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 (g *GenesisState) Validate() error

Validate performs basic validation of genesis data

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 MsgAddOperatorToAllowList added in v1.3.0

type MsgAddOperatorToAllowList struct {
	Sender     string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ServiceID  uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	OperatorID uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
}

MsgAddOperatorToAllowList defines the message structure for the AddOperatorToAllowList gRPC service method. It allows the service admin to add an operator to the list of allowed operator to secure the service.

func NewMsgAddOperatorToAllowList added in v1.3.0

func NewMsgAddOperatorToAllowList(serviceID uint32, operatorID uint32, sender string) *MsgAddOperatorToAllowList

NewMsgAddOperatorToAllowList creates a new MsgAddOperatorToAllowList instance

func (*MsgAddOperatorToAllowList) Descriptor added in v1.3.0

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

func (*MsgAddOperatorToAllowList) GetOperatorID added in v1.3.0

func (m *MsgAddOperatorToAllowList) GetOperatorID() uint32

func (*MsgAddOperatorToAllowList) GetSender added in v1.3.0

func (m *MsgAddOperatorToAllowList) GetSender() string

func (*MsgAddOperatorToAllowList) GetServiceID added in v1.3.0

func (m *MsgAddOperatorToAllowList) GetServiceID() uint32

func (*MsgAddOperatorToAllowList) Marshal added in v1.3.0

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

func (*MsgAddOperatorToAllowList) MarshalTo added in v1.3.0

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

func (*MsgAddOperatorToAllowList) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgAddOperatorToAllowList) ProtoMessage added in v1.3.0

func (*MsgAddOperatorToAllowList) ProtoMessage()

func (*MsgAddOperatorToAllowList) Reset added in v1.3.0

func (m *MsgAddOperatorToAllowList) Reset()

func (*MsgAddOperatorToAllowList) Size added in v1.3.0

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

func (*MsgAddOperatorToAllowList) String added in v1.3.0

func (m *MsgAddOperatorToAllowList) String() string

func (*MsgAddOperatorToAllowList) Unmarshal added in v1.3.0

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

func (*MsgAddOperatorToAllowList) ValidateBasic added in v1.3.0

func (msg *MsgAddOperatorToAllowList) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAddOperatorToAllowList) XXX_DiscardUnknown added in v1.3.0

func (m *MsgAddOperatorToAllowList) XXX_DiscardUnknown()

func (*MsgAddOperatorToAllowList) XXX_Marshal added in v1.3.0

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

func (*MsgAddOperatorToAllowList) XXX_Merge added in v1.3.0

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

func (*MsgAddOperatorToAllowList) XXX_Size added in v1.3.0

func (m *MsgAddOperatorToAllowList) XXX_Size() int

func (*MsgAddOperatorToAllowList) XXX_Unmarshal added in v1.3.0

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

type MsgAddOperatorToAllowListResponse added in v1.3.0

type MsgAddOperatorToAllowListResponse struct {
}

MsgAddOperatorToAllowListResponse is the return value of MsgAddOperatorToAllowList.

func (*MsgAddOperatorToAllowListResponse) Descriptor added in v1.3.0

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

func (*MsgAddOperatorToAllowListResponse) Marshal added in v1.3.0

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

func (*MsgAddOperatorToAllowListResponse) MarshalTo added in v1.3.0

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

func (*MsgAddOperatorToAllowListResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgAddOperatorToAllowListResponse) ProtoMessage added in v1.3.0

func (*MsgAddOperatorToAllowListResponse) ProtoMessage()

func (*MsgAddOperatorToAllowListResponse) Reset added in v1.3.0

func (*MsgAddOperatorToAllowListResponse) Size added in v1.3.0

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

func (*MsgAddOperatorToAllowListResponse) String added in v1.3.0

func (*MsgAddOperatorToAllowListResponse) Unmarshal added in v1.3.0

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

func (*MsgAddOperatorToAllowListResponse) XXX_DiscardUnknown added in v1.3.0

func (m *MsgAddOperatorToAllowListResponse) XXX_DiscardUnknown()

func (*MsgAddOperatorToAllowListResponse) XXX_Marshal added in v1.3.0

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

func (*MsgAddOperatorToAllowListResponse) XXX_Merge added in v1.3.0

func (*MsgAddOperatorToAllowListResponse) XXX_Size added in v1.3.0

func (m *MsgAddOperatorToAllowListResponse) XXX_Size() int

func (*MsgAddOperatorToAllowListResponse) XXX_Unmarshal added in v1.3.0

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

type MsgBorrowPoolSecurity added in v1.3.0

type MsgBorrowPoolSecurity struct {
	Sender    string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ServiceID uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	PoolID    uint32 `protobuf:"varint,3,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

MsgBorrowPoolSecurity defines the message structure for the BorrowPoolSecurity gRPC service method. It allows the service admin to add a pool to the list of pools from which the service has chosen to borrow security.

func NewMsgBorrowPoolSecurity added in v1.3.0

func NewMsgBorrowPoolSecurity(serviceID uint32, poolID uint32, sender string) *MsgBorrowPoolSecurity

NewMsgBorrowPoolSecurity creates a new MsgBorrowPoolSecurity instance

func (*MsgBorrowPoolSecurity) Descriptor added in v1.3.0

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

func (*MsgBorrowPoolSecurity) GetPoolID added in v1.3.0

func (m *MsgBorrowPoolSecurity) GetPoolID() uint32

func (*MsgBorrowPoolSecurity) GetSender added in v1.3.0

func (m *MsgBorrowPoolSecurity) GetSender() string

func (*MsgBorrowPoolSecurity) GetServiceID added in v1.3.0

func (m *MsgBorrowPoolSecurity) GetServiceID() uint32

func (*MsgBorrowPoolSecurity) Marshal added in v1.3.0

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

func (*MsgBorrowPoolSecurity) MarshalTo added in v1.3.0

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

func (*MsgBorrowPoolSecurity) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgBorrowPoolSecurity) ProtoMessage added in v1.3.0

func (*MsgBorrowPoolSecurity) ProtoMessage()

func (*MsgBorrowPoolSecurity) Reset added in v1.3.0

func (m *MsgBorrowPoolSecurity) Reset()

func (*MsgBorrowPoolSecurity) Size added in v1.3.0

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

func (*MsgBorrowPoolSecurity) String added in v1.3.0

func (m *MsgBorrowPoolSecurity) String() string

func (*MsgBorrowPoolSecurity) Unmarshal added in v1.3.0

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

func (*MsgBorrowPoolSecurity) ValidateBasic added in v1.3.0

func (msg *MsgBorrowPoolSecurity) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgBorrowPoolSecurity) XXX_DiscardUnknown added in v1.3.0

func (m *MsgBorrowPoolSecurity) XXX_DiscardUnknown()

func (*MsgBorrowPoolSecurity) XXX_Marshal added in v1.3.0

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

func (*MsgBorrowPoolSecurity) XXX_Merge added in v1.3.0

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

func (*MsgBorrowPoolSecurity) XXX_Size added in v1.3.0

func (m *MsgBorrowPoolSecurity) XXX_Size() int

func (*MsgBorrowPoolSecurity) XXX_Unmarshal added in v1.3.0

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

type MsgBorrowPoolSecurityResponse added in v1.3.0

type MsgBorrowPoolSecurityResponse struct {
}

MsgBorrowPoolSecurityResponse is the return value of MsgBorrowPoolSecurity.

func (*MsgBorrowPoolSecurityResponse) Descriptor added in v1.3.0

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

func (*MsgBorrowPoolSecurityResponse) Marshal added in v1.3.0

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

func (*MsgBorrowPoolSecurityResponse) MarshalTo added in v1.3.0

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

func (*MsgBorrowPoolSecurityResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgBorrowPoolSecurityResponse) ProtoMessage added in v1.3.0

func (*MsgBorrowPoolSecurityResponse) ProtoMessage()

func (*MsgBorrowPoolSecurityResponse) Reset added in v1.3.0

func (m *MsgBorrowPoolSecurityResponse) Reset()

func (*MsgBorrowPoolSecurityResponse) Size added in v1.3.0

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

func (*MsgBorrowPoolSecurityResponse) String added in v1.3.0

func (*MsgBorrowPoolSecurityResponse) Unmarshal added in v1.3.0

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

func (*MsgBorrowPoolSecurityResponse) XXX_DiscardUnknown added in v1.3.0

func (m *MsgBorrowPoolSecurityResponse) XXX_DiscardUnknown()

func (*MsgBorrowPoolSecurityResponse) XXX_Marshal added in v1.3.0

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

func (*MsgBorrowPoolSecurityResponse) XXX_Merge added in v1.3.0

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

func (*MsgBorrowPoolSecurityResponse) XXX_Size added in v1.3.0

func (m *MsgBorrowPoolSecurityResponse) XXX_Size() int

func (*MsgBorrowPoolSecurityResponse) XXX_Unmarshal added in v1.3.0

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

type MsgCeasePoolSecurityBorrow added in v1.3.0

type MsgCeasePoolSecurityBorrow struct {
	Sender    string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ServiceID uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	PoolID    uint32 `protobuf:"varint,3,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

MsgCeasePoolSecurityBorrow defines the message structure for the CeaseBorrowPoolSecurity gRPC service method. It allows the service admin to remove a pool from the list of pools from which the service has chosen to borrow security.

func NewMsgCeasePoolSecurityBorrow added in v1.3.0

func NewMsgCeasePoolSecurityBorrow(serviceID uint32, poolID uint32, sender string) *MsgCeasePoolSecurityBorrow

NewMsgCeasePoolSecurityBorrow creates a new MsgCeasePoolSecurityBorrow instance

func (*MsgCeasePoolSecurityBorrow) Descriptor added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrow) GetPoolID added in v1.3.0

func (m *MsgCeasePoolSecurityBorrow) GetPoolID() uint32

func (*MsgCeasePoolSecurityBorrow) GetSender added in v1.3.0

func (m *MsgCeasePoolSecurityBorrow) GetSender() string

func (*MsgCeasePoolSecurityBorrow) GetServiceID added in v1.3.0

func (m *MsgCeasePoolSecurityBorrow) GetServiceID() uint32

func (*MsgCeasePoolSecurityBorrow) Marshal added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrow) MarshalTo added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrow) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrow) ProtoMessage added in v1.3.0

func (*MsgCeasePoolSecurityBorrow) ProtoMessage()

func (*MsgCeasePoolSecurityBorrow) Reset added in v1.3.0

func (m *MsgCeasePoolSecurityBorrow) Reset()

func (*MsgCeasePoolSecurityBorrow) Size added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrow) String added in v1.3.0

func (m *MsgCeasePoolSecurityBorrow) String() string

func (*MsgCeasePoolSecurityBorrow) Unmarshal added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrow) ValidateBasic added in v1.3.0

func (msg *MsgCeasePoolSecurityBorrow) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgCeasePoolSecurityBorrow) XXX_DiscardUnknown added in v1.3.0

func (m *MsgCeasePoolSecurityBorrow) XXX_DiscardUnknown()

func (*MsgCeasePoolSecurityBorrow) XXX_Marshal added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrow) XXX_Merge added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrow) XXX_Size added in v1.3.0

func (m *MsgCeasePoolSecurityBorrow) XXX_Size() int

func (*MsgCeasePoolSecurityBorrow) XXX_Unmarshal added in v1.3.0

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

type MsgCeasePoolSecurityBorrowResponse added in v1.3.0

type MsgCeasePoolSecurityBorrowResponse struct {
}

MsgCeasePoolSecurityBorrowResponse is the return value of MsgCeasePoolSecurityBorrow.

func (*MsgCeasePoolSecurityBorrowResponse) Descriptor added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrowResponse) Marshal added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrowResponse) MarshalTo added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrowResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrowResponse) ProtoMessage added in v1.3.0

func (*MsgCeasePoolSecurityBorrowResponse) ProtoMessage()

func (*MsgCeasePoolSecurityBorrowResponse) Reset added in v1.3.0

func (*MsgCeasePoolSecurityBorrowResponse) Size added in v1.3.0

func (*MsgCeasePoolSecurityBorrowResponse) String added in v1.3.0

func (*MsgCeasePoolSecurityBorrowResponse) Unmarshal added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrowResponse) XXX_DiscardUnknown added in v1.3.0

func (m *MsgCeasePoolSecurityBorrowResponse) XXX_DiscardUnknown()

func (*MsgCeasePoolSecurityBorrowResponse) XXX_Marshal added in v1.3.0

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

func (*MsgCeasePoolSecurityBorrowResponse) XXX_Merge added in v1.3.0

func (*MsgCeasePoolSecurityBorrowResponse) XXX_Size added in v1.3.0

func (*MsgCeasePoolSecurityBorrowResponse) XXX_Unmarshal added in v1.3.0

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

type MsgClient

type MsgClient interface {
	// JoinService defines the operation that allows the operator admin
	// to start securing an AVS
	JoinService(ctx context.Context, in *MsgJoinService, opts ...grpc.CallOption) (*MsgJoinServiceResponse, error)
	// LeaveService defines the operation that allows the operator admin
	// to stop securing an AVS
	LeaveService(ctx context.Context, in *MsgLeaveService, opts ...grpc.CallOption) (*MsgLeaveServiceResponse, error)
	// AddOperatorToAllowList defines the operation that allows the service admin
	// to add an operator to the list of allowed operator to secure the service
	AddOperatorToAllowList(ctx context.Context, in *MsgAddOperatorToAllowList, opts ...grpc.CallOption) (*MsgAddOperatorToAllowListResponse, error)
	// RemoveOperatorFromAllowlist defines the operation that allows the service
	// admin to remove a previously added operator from the list of allowed
	// operators to secure the service
	RemoveOperatorFromAllowlist(ctx context.Context, in *MsgRemoveOperatorFromAllowlist, opts ...grpc.CallOption) (*MsgRemoveOperatorFromAllowlistResponse, error)
	// BorrowPoolSecurity defines the operation that allows the service admin
	// to add a pool to the list of pools from which the service has chosen
	// to borrow security.
	BorrowPoolSecurity(ctx context.Context, in *MsgBorrowPoolSecurity, opts ...grpc.CallOption) (*MsgBorrowPoolSecurityResponse, error)
	// CeasePoolSecurityBorrow defines the operation that allows the service admin
	// to remove a pool from the list of pools from which the service has chosen
	// to borrow security.
	CeasePoolSecurityBorrow(ctx context.Context, in *MsgCeasePoolSecurityBorrow, opts ...grpc.CallOption) (*MsgCeasePoolSecurityBorrowResponse, error)
	// DelegatePool defines the operation that allows users to delegate any amount
	// of an asset to a pool that can then be used to provide services with
	// cryptoeconomic security.
	DelegatePool(ctx context.Context, in *MsgDelegatePool, opts ...grpc.CallOption) (*MsgDelegatePoolResponse, error)
	// DelegateOperator defines the operation that allows users to delegate their
	// assets to a specific operator.
	DelegateOperator(ctx context.Context, in *MsgDelegateOperator, opts ...grpc.CallOption) (*MsgDelegateOperatorResponse, error)
	// DelegateService defines the operation that allows users to delegate their
	// assets to a specific service.
	DelegateService(ctx context.Context, in *MsgDelegateService, opts ...grpc.CallOption) (*MsgDelegateServiceResponse, error)
	// UpdateParams defines a (governance) operation for updating the module
	// parameters.
	// The authority defaults to the x/gov module account.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	// UndelegatePool defines the operation that allows users to undelegate their
	// assets from a pool.
	UndelegatePool(ctx context.Context, in *MsgUndelegatePool, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
	// UndelegateOperator defines the operation that allows users to undelegate
	// their assets from a specific operator.
	UndelegateOperator(ctx context.Context, in *MsgUndelegateOperator, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
	// UndelegateService defines the operation that allows users to undelegate
	// their assets from a specific service.
	UndelegateService(ctx context.Context, in *MsgUndelegateService, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
}

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 MsgDelegateOperator

type MsgDelegateOperator struct {
	// Delegator is the address of the user delegating to the operator
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// OperatorID is the ID of the operator to delegate to
	OperatorID uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// Amount is the amount of coins to be delegated
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgDelegateOperator defines the message structure for the DelegateOperator gRPC service method. It allows a user to delegate their assets to an operator.

func NewMsgDelegateOperator

func NewMsgDelegateOperator(operatorID uint32, amount sdk.Coins, delegator string) *MsgDelegateOperator

NewMsgDelegateOperator creates a new MsgDelegateOperator instance

func (*MsgDelegateOperator) Descriptor

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

func (*MsgDelegateOperator) GetAmount

func (*MsgDelegateOperator) GetDelegator

func (m *MsgDelegateOperator) GetDelegator() string

func (*MsgDelegateOperator) GetOperatorID

func (m *MsgDelegateOperator) GetOperatorID() uint32

func (*MsgDelegateOperator) GetSignBytes

func (msg *MsgDelegateOperator) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgDelegateOperator) GetSigners

func (msg *MsgDelegateOperator) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDelegateOperator) Marshal

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

func (*MsgDelegateOperator) MarshalTo

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

func (*MsgDelegateOperator) MarshalToSizedBuffer

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

func (*MsgDelegateOperator) ProtoMessage

func (*MsgDelegateOperator) ProtoMessage()

func (*MsgDelegateOperator) Reset

func (m *MsgDelegateOperator) Reset()

func (*MsgDelegateOperator) Size

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

func (*MsgDelegateOperator) String

func (m *MsgDelegateOperator) String() string

func (*MsgDelegateOperator) Unmarshal

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

func (*MsgDelegateOperator) ValidateBasic

func (msg *MsgDelegateOperator) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDelegateOperator) XXX_DiscardUnknown

func (m *MsgDelegateOperator) XXX_DiscardUnknown()

func (*MsgDelegateOperator) XXX_Marshal

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

func (*MsgDelegateOperator) XXX_Merge

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

func (*MsgDelegateOperator) XXX_Size

func (m *MsgDelegateOperator) XXX_Size() int

func (*MsgDelegateOperator) XXX_Unmarshal

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

type MsgDelegateOperatorResponse

type MsgDelegateOperatorResponse struct {
}

MsgDelegateOperatorResponse is the return value of MsgDelegateOperator.

func (*MsgDelegateOperatorResponse) Descriptor

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

func (*MsgDelegateOperatorResponse) Marshal

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

func (*MsgDelegateOperatorResponse) MarshalTo

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

func (*MsgDelegateOperatorResponse) MarshalToSizedBuffer

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

func (*MsgDelegateOperatorResponse) ProtoMessage

func (*MsgDelegateOperatorResponse) ProtoMessage()

func (*MsgDelegateOperatorResponse) Reset

func (m *MsgDelegateOperatorResponse) Reset()

func (*MsgDelegateOperatorResponse) Size

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

func (*MsgDelegateOperatorResponse) String

func (m *MsgDelegateOperatorResponse) String() string

func (*MsgDelegateOperatorResponse) Unmarshal

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

func (*MsgDelegateOperatorResponse) XXX_DiscardUnknown

func (m *MsgDelegateOperatorResponse) XXX_DiscardUnknown()

func (*MsgDelegateOperatorResponse) XXX_Marshal

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

func (*MsgDelegateOperatorResponse) XXX_Merge

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

func (*MsgDelegateOperatorResponse) XXX_Size

func (m *MsgDelegateOperatorResponse) XXX_Size() int

func (*MsgDelegateOperatorResponse) XXX_Unmarshal

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

type MsgDelegatePool

type MsgDelegatePool struct {
	// Delegator is the address of the user joining the pool
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// Amount is the amount of coins to be staked
	Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

MsgDelegatePool defines the message structure for the DelegatePool gRPC service method. It allows a user to put their assets into a restaking pool that will later be used to provide cryptoeconomic security to services that choose it.

func NewMsgDelegatePool

func NewMsgDelegatePool(amount sdk.Coin, delegator string) *MsgDelegatePool

NewMsgDelegatePool creates a new MsgDelegatePool instance

func (*MsgDelegatePool) Descriptor

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

func (*MsgDelegatePool) GetAmount

func (m *MsgDelegatePool) GetAmount() types.Coin

func (*MsgDelegatePool) GetDelegator

func (m *MsgDelegatePool) GetDelegator() string

func (*MsgDelegatePool) GetSignBytes

func (msg *MsgDelegatePool) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgDelegatePool) GetSigners

func (msg *MsgDelegatePool) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDelegatePool) Marshal

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

func (*MsgDelegatePool) MarshalTo

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

func (*MsgDelegatePool) MarshalToSizedBuffer

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

func (*MsgDelegatePool) ProtoMessage

func (*MsgDelegatePool) ProtoMessage()

func (*MsgDelegatePool) Reset

func (m *MsgDelegatePool) Reset()

func (*MsgDelegatePool) Size

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

func (*MsgDelegatePool) String

func (m *MsgDelegatePool) String() string

func (*MsgDelegatePool) Unmarshal

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

func (*MsgDelegatePool) ValidateBasic

func (msg *MsgDelegatePool) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDelegatePool) XXX_DiscardUnknown

func (m *MsgDelegatePool) XXX_DiscardUnknown()

func (*MsgDelegatePool) XXX_Marshal

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

func (*MsgDelegatePool) XXX_Merge

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

func (*MsgDelegatePool) XXX_Size

func (m *MsgDelegatePool) XXX_Size() int

func (*MsgDelegatePool) XXX_Unmarshal

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

type MsgDelegatePoolResponse

type MsgDelegatePoolResponse struct {
}

MsgDelegatePoolResponse defines the return value of MsgDelegatePool.

func (*MsgDelegatePoolResponse) Descriptor

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

func (*MsgDelegatePoolResponse) Marshal

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

func (*MsgDelegatePoolResponse) MarshalTo

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

func (*MsgDelegatePoolResponse) MarshalToSizedBuffer

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

func (*MsgDelegatePoolResponse) ProtoMessage

func (*MsgDelegatePoolResponse) ProtoMessage()

func (*MsgDelegatePoolResponse) Reset

func (m *MsgDelegatePoolResponse) Reset()

func (*MsgDelegatePoolResponse) Size

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

func (*MsgDelegatePoolResponse) String

func (m *MsgDelegatePoolResponse) String() string

func (*MsgDelegatePoolResponse) Unmarshal

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

func (*MsgDelegatePoolResponse) XXX_DiscardUnknown

func (m *MsgDelegatePoolResponse) XXX_DiscardUnknown()

func (*MsgDelegatePoolResponse) XXX_Marshal

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

func (*MsgDelegatePoolResponse) XXX_Merge

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

func (*MsgDelegatePoolResponse) XXX_Size

func (m *MsgDelegatePoolResponse) XXX_Size() int

func (*MsgDelegatePoolResponse) XXX_Unmarshal

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

type MsgDelegateService

type MsgDelegateService struct {
	// Delegator is the address of the user delegating to the service
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// ServiceID is the ID of the service to delegate to
	ServiceID uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Amount is the amount of coins to be delegated
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgDelegateService defines the message structure for the DelegateService gRPC service method. It allows a user to delegate their assets to a service.

func NewMsgDelegateService

func NewMsgDelegateService(serviceID uint32, amount sdk.Coins, delegator string) *MsgDelegateService

NewMsgDelegateService creates a new MsgDelegateService instance

func (*MsgDelegateService) Descriptor

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

func (*MsgDelegateService) GetAmount

func (*MsgDelegateService) GetDelegator

func (m *MsgDelegateService) GetDelegator() string

func (*MsgDelegateService) GetServiceID

func (m *MsgDelegateService) GetServiceID() uint32

func (*MsgDelegateService) GetSignBytes

func (msg *MsgDelegateService) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgDelegateService) GetSigners

func (msg *MsgDelegateService) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgDelegateService) Marshal

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

func (*MsgDelegateService) MarshalTo

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

func (*MsgDelegateService) MarshalToSizedBuffer

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

func (*MsgDelegateService) ProtoMessage

func (*MsgDelegateService) ProtoMessage()

func (*MsgDelegateService) Reset

func (m *MsgDelegateService) Reset()

func (*MsgDelegateService) Size

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

func (*MsgDelegateService) String

func (m *MsgDelegateService) String() string

func (*MsgDelegateService) Unmarshal

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

func (*MsgDelegateService) ValidateBasic

func (msg *MsgDelegateService) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgDelegateService) XXX_DiscardUnknown

func (m *MsgDelegateService) XXX_DiscardUnknown()

func (*MsgDelegateService) XXX_Marshal

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

func (*MsgDelegateService) XXX_Merge

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

func (*MsgDelegateService) XXX_Size

func (m *MsgDelegateService) XXX_Size() int

func (*MsgDelegateService) XXX_Unmarshal

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

type MsgDelegateServiceResponse

type MsgDelegateServiceResponse struct {
}

MsgDelegateServiceResponse is the return value of MsgDelegateService.

func (*MsgDelegateServiceResponse) Descriptor

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

func (*MsgDelegateServiceResponse) Marshal

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

func (*MsgDelegateServiceResponse) MarshalTo

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

func (*MsgDelegateServiceResponse) MarshalToSizedBuffer

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

func (*MsgDelegateServiceResponse) ProtoMessage

func (*MsgDelegateServiceResponse) ProtoMessage()

func (*MsgDelegateServiceResponse) Reset

func (m *MsgDelegateServiceResponse) Reset()

func (*MsgDelegateServiceResponse) Size

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

func (*MsgDelegateServiceResponse) String

func (m *MsgDelegateServiceResponse) String() string

func (*MsgDelegateServiceResponse) Unmarshal

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

func (*MsgDelegateServiceResponse) XXX_DiscardUnknown

func (m *MsgDelegateServiceResponse) XXX_DiscardUnknown()

func (*MsgDelegateServiceResponse) XXX_Marshal

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

func (*MsgDelegateServiceResponse) XXX_Merge

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

func (*MsgDelegateServiceResponse) XXX_Size

func (m *MsgDelegateServiceResponse) XXX_Size() int

func (*MsgDelegateServiceResponse) XXX_Unmarshal

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

type MsgJoinService added in v1.3.0

type MsgJoinService struct {
	Sender     string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	OperatorID uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	ServiceID  uint32 `protobuf:"varint,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
}

MsgJoinService defines the message structure for the JoinService gRPC service method. It allows the opeator admin to start securing a AVS.

func NewMsgJoinService added in v1.3.0

func NewMsgJoinService(operatorID uint32, serviceID uint32, sender string) *MsgJoinService

NewMsgJoinService creates a new MsgJoinService instance

func (*MsgJoinService) Descriptor added in v1.3.0

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

func (*MsgJoinService) GetOperatorID added in v1.3.0

func (m *MsgJoinService) GetOperatorID() uint32

func (*MsgJoinService) GetSender added in v1.3.0

func (m *MsgJoinService) GetSender() string

func (*MsgJoinService) GetServiceID added in v1.3.0

func (m *MsgJoinService) GetServiceID() uint32

func (*MsgJoinService) Marshal added in v1.3.0

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

func (*MsgJoinService) MarshalTo added in v1.3.0

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

func (*MsgJoinService) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgJoinService) ProtoMessage added in v1.3.0

func (*MsgJoinService) ProtoMessage()

func (*MsgJoinService) Reset added in v1.3.0

func (m *MsgJoinService) Reset()

func (*MsgJoinService) Size added in v1.3.0

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

func (*MsgJoinService) String added in v1.3.0

func (m *MsgJoinService) String() string

func (*MsgJoinService) Unmarshal added in v1.3.0

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

func (*MsgJoinService) ValidateBasic added in v1.3.0

func (msg *MsgJoinService) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgJoinService) XXX_DiscardUnknown added in v1.3.0

func (m *MsgJoinService) XXX_DiscardUnknown()

func (*MsgJoinService) XXX_Marshal added in v1.3.0

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

func (*MsgJoinService) XXX_Merge added in v1.3.0

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

func (*MsgJoinService) XXX_Size added in v1.3.0

func (m *MsgJoinService) XXX_Size() int

func (*MsgJoinService) XXX_Unmarshal added in v1.3.0

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

type MsgJoinServiceResponse added in v1.3.0

type MsgJoinServiceResponse struct {
}

MsgJoinServiceResponse is the return value of MsgJoinService.

func (*MsgJoinServiceResponse) Descriptor added in v1.3.0

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

func (*MsgJoinServiceResponse) Marshal added in v1.3.0

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

func (*MsgJoinServiceResponse) MarshalTo added in v1.3.0

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

func (*MsgJoinServiceResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgJoinServiceResponse) ProtoMessage added in v1.3.0

func (*MsgJoinServiceResponse) ProtoMessage()

func (*MsgJoinServiceResponse) Reset added in v1.3.0

func (m *MsgJoinServiceResponse) Reset()

func (*MsgJoinServiceResponse) Size added in v1.3.0

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

func (*MsgJoinServiceResponse) String added in v1.3.0

func (m *MsgJoinServiceResponse) String() string

func (*MsgJoinServiceResponse) Unmarshal added in v1.3.0

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

func (*MsgJoinServiceResponse) XXX_DiscardUnknown added in v1.3.0

func (m *MsgJoinServiceResponse) XXX_DiscardUnknown()

func (*MsgJoinServiceResponse) XXX_Marshal added in v1.3.0

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

func (*MsgJoinServiceResponse) XXX_Merge added in v1.3.0

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

func (*MsgJoinServiceResponse) XXX_Size added in v1.3.0

func (m *MsgJoinServiceResponse) XXX_Size() int

func (*MsgJoinServiceResponse) XXX_Unmarshal added in v1.3.0

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

type MsgLeaveService added in v1.3.0

type MsgLeaveService struct {
	Sender     string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	OperatorID uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	ServiceID  uint32 `protobuf:"varint,3,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
}

MsgLeaveService defines the message structure for the LeaveService gRPC service method. It allows the opeator admin to stop securing a AVS.

func NewMsgLeaveService added in v1.3.0

func NewMsgLeaveService(operatorID uint32, serviceID uint32, sender string) *MsgLeaveService

NewMsgLeaveService creates a new MsgLeaveService instance

func (*MsgLeaveService) Descriptor added in v1.3.0

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

func (*MsgLeaveService) GetOperatorID added in v1.3.0

func (m *MsgLeaveService) GetOperatorID() uint32

func (*MsgLeaveService) GetSender added in v1.3.0

func (m *MsgLeaveService) GetSender() string

func (*MsgLeaveService) GetServiceID added in v1.3.0

func (m *MsgLeaveService) GetServiceID() uint32

func (*MsgLeaveService) Marshal added in v1.3.0

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

func (*MsgLeaveService) MarshalTo added in v1.3.0

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

func (*MsgLeaveService) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgLeaveService) ProtoMessage added in v1.3.0

func (*MsgLeaveService) ProtoMessage()

func (*MsgLeaveService) Reset added in v1.3.0

func (m *MsgLeaveService) Reset()

func (*MsgLeaveService) Size added in v1.3.0

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

func (*MsgLeaveService) String added in v1.3.0

func (m *MsgLeaveService) String() string

func (*MsgLeaveService) Unmarshal added in v1.3.0

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

func (*MsgLeaveService) ValidateBasic added in v1.3.0

func (msg *MsgLeaveService) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgLeaveService) XXX_DiscardUnknown added in v1.3.0

func (m *MsgLeaveService) XXX_DiscardUnknown()

func (*MsgLeaveService) XXX_Marshal added in v1.3.0

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

func (*MsgLeaveService) XXX_Merge added in v1.3.0

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

func (*MsgLeaveService) XXX_Size added in v1.3.0

func (m *MsgLeaveService) XXX_Size() int

func (*MsgLeaveService) XXX_Unmarshal added in v1.3.0

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

type MsgLeaveServiceResponse added in v1.3.0

type MsgLeaveServiceResponse struct {
}

MsgLeaveerviceResponse is the return value of MsgLeveService.

func (*MsgLeaveServiceResponse) Descriptor added in v1.3.0

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

func (*MsgLeaveServiceResponse) Marshal added in v1.3.0

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

func (*MsgLeaveServiceResponse) MarshalTo added in v1.3.0

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

func (*MsgLeaveServiceResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgLeaveServiceResponse) ProtoMessage added in v1.3.0

func (*MsgLeaveServiceResponse) ProtoMessage()

func (*MsgLeaveServiceResponse) Reset added in v1.3.0

func (m *MsgLeaveServiceResponse) Reset()

func (*MsgLeaveServiceResponse) Size added in v1.3.0

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

func (*MsgLeaveServiceResponse) String added in v1.3.0

func (m *MsgLeaveServiceResponse) String() string

func (*MsgLeaveServiceResponse) Unmarshal added in v1.3.0

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

func (*MsgLeaveServiceResponse) XXX_DiscardUnknown added in v1.3.0

func (m *MsgLeaveServiceResponse) XXX_DiscardUnknown()

func (*MsgLeaveServiceResponse) XXX_Marshal added in v1.3.0

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

func (*MsgLeaveServiceResponse) XXX_Merge added in v1.3.0

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

func (*MsgLeaveServiceResponse) XXX_Size added in v1.3.0

func (m *MsgLeaveServiceResponse) XXX_Size() int

func (*MsgLeaveServiceResponse) XXX_Unmarshal added in v1.3.0

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

type MsgRemoveOperatorFromAllowlist added in v1.3.0

type MsgRemoveOperatorFromAllowlist struct {
	Sender     string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	ServiceID  uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	OperatorID uint32 `protobuf:"varint,3,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
}

MsgRemoveOperatorFromAllowlist defines the message structure for the RemoveOperatorFromAllowlist gRPC service method. It allows the service admin to remove a previously added operator from the list of allowed operators to secure the service.

func NewMsgRemoveOperatorFromAllowList added in v1.3.0

func NewMsgRemoveOperatorFromAllowList(serviceID uint32, operatorID uint32, sender string) *MsgRemoveOperatorFromAllowlist

NewMsgRemoveOperatorFromAllowList creates a new MsgRemoveOperatorFromAllowlist instance

func (*MsgRemoveOperatorFromAllowlist) Descriptor added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlist) GetOperatorID added in v1.3.0

func (m *MsgRemoveOperatorFromAllowlist) GetOperatorID() uint32

func (*MsgRemoveOperatorFromAllowlist) GetSender added in v1.3.0

func (m *MsgRemoveOperatorFromAllowlist) GetSender() string

func (*MsgRemoveOperatorFromAllowlist) GetServiceID added in v1.3.0

func (m *MsgRemoveOperatorFromAllowlist) GetServiceID() uint32

func (*MsgRemoveOperatorFromAllowlist) Marshal added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlist) MarshalTo added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlist) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlist) ProtoMessage added in v1.3.0

func (*MsgRemoveOperatorFromAllowlist) ProtoMessage()

func (*MsgRemoveOperatorFromAllowlist) Reset added in v1.3.0

func (m *MsgRemoveOperatorFromAllowlist) Reset()

func (*MsgRemoveOperatorFromAllowlist) Size added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlist) String added in v1.3.0

func (*MsgRemoveOperatorFromAllowlist) Unmarshal added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlist) ValidateBasic added in v1.3.0

func (msg *MsgRemoveOperatorFromAllowlist) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgRemoveOperatorFromAllowlist) XXX_DiscardUnknown added in v1.3.0

func (m *MsgRemoveOperatorFromAllowlist) XXX_DiscardUnknown()

func (*MsgRemoveOperatorFromAllowlist) XXX_Marshal added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlist) XXX_Merge added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlist) XXX_Size added in v1.3.0

func (m *MsgRemoveOperatorFromAllowlist) XXX_Size() int

func (*MsgRemoveOperatorFromAllowlist) XXX_Unmarshal added in v1.3.0

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

type MsgRemoveOperatorFromAllowlistResponse added in v1.3.0

type MsgRemoveOperatorFromAllowlistResponse struct {
}

MsgRemoveOperatorFromAllowlistResponse is the return value of MsgRemoveOperatorFromAllowlist.

func (*MsgRemoveOperatorFromAllowlistResponse) Descriptor added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlistResponse) Marshal added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlistResponse) MarshalTo added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlistResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlistResponse) ProtoMessage added in v1.3.0

func (*MsgRemoveOperatorFromAllowlistResponse) Reset added in v1.3.0

func (*MsgRemoveOperatorFromAllowlistResponse) Size added in v1.3.0

func (*MsgRemoveOperatorFromAllowlistResponse) String added in v1.3.0

func (*MsgRemoveOperatorFromAllowlistResponse) Unmarshal added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlistResponse) XXX_DiscardUnknown added in v1.3.0

func (m *MsgRemoveOperatorFromAllowlistResponse) XXX_DiscardUnknown()

func (*MsgRemoveOperatorFromAllowlistResponse) XXX_Marshal added in v1.3.0

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

func (*MsgRemoveOperatorFromAllowlistResponse) XXX_Merge added in v1.3.0

func (*MsgRemoveOperatorFromAllowlistResponse) XXX_Size added in v1.3.0

func (*MsgRemoveOperatorFromAllowlistResponse) XXX_Unmarshal added in v1.3.0

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

type MsgServer

type MsgServer interface {
	// JoinService defines the operation that allows the operator admin
	// to start securing an AVS
	JoinService(context.Context, *MsgJoinService) (*MsgJoinServiceResponse, error)
	// LeaveService defines the operation that allows the operator admin
	// to stop securing an AVS
	LeaveService(context.Context, *MsgLeaveService) (*MsgLeaveServiceResponse, error)
	// AddOperatorToAllowList defines the operation that allows the service admin
	// to add an operator to the list of allowed operator to secure the service
	AddOperatorToAllowList(context.Context, *MsgAddOperatorToAllowList) (*MsgAddOperatorToAllowListResponse, error)
	// RemoveOperatorFromAllowlist defines the operation that allows the service
	// admin to remove a previously added operator from the list of allowed
	// operators to secure the service
	RemoveOperatorFromAllowlist(context.Context, *MsgRemoveOperatorFromAllowlist) (*MsgRemoveOperatorFromAllowlistResponse, error)
	// BorrowPoolSecurity defines the operation that allows the service admin
	// to add a pool to the list of pools from which the service has chosen
	// to borrow security.
	BorrowPoolSecurity(context.Context, *MsgBorrowPoolSecurity) (*MsgBorrowPoolSecurityResponse, error)
	// CeasePoolSecurityBorrow defines the operation that allows the service admin
	// to remove a pool from the list of pools from which the service has chosen
	// to borrow security.
	CeasePoolSecurityBorrow(context.Context, *MsgCeasePoolSecurityBorrow) (*MsgCeasePoolSecurityBorrowResponse, error)
	// DelegatePool defines the operation that allows users to delegate any amount
	// of an asset to a pool that can then be used to provide services with
	// cryptoeconomic security.
	DelegatePool(context.Context, *MsgDelegatePool) (*MsgDelegatePoolResponse, error)
	// DelegateOperator defines the operation that allows users to delegate their
	// assets to a specific operator.
	DelegateOperator(context.Context, *MsgDelegateOperator) (*MsgDelegateOperatorResponse, error)
	// DelegateService defines the operation that allows users to delegate their
	// assets to a specific service.
	DelegateService(context.Context, *MsgDelegateService) (*MsgDelegateServiceResponse, error)
	// UpdateParams defines a (governance) operation for updating the module
	// parameters.
	// The authority defaults to the x/gov module account.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// UndelegatePool defines the operation that allows users to undelegate their
	// assets from a pool.
	UndelegatePool(context.Context, *MsgUndelegatePool) (*MsgUndelegateResponse, error)
	// UndelegateOperator defines the operation that allows users to undelegate
	// their assets from a specific operator.
	UndelegateOperator(context.Context, *MsgUndelegateOperator) (*MsgUndelegateResponse, error)
	// UndelegateService defines the operation that allows users to undelegate
	// their assets from a specific service.
	UndelegateService(context.Context, *MsgUndelegateService) (*MsgUndelegateResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUndelegateOperator

type MsgUndelegateOperator struct {
	// Delegator is the address of the user undelegating from the operator.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// OperatorID is the ID of the operator to undelegate from.
	OperatorID uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// Amount is the amount of coins to be undelegated.
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgUndelegateOperator the message structure for the UndelegateOperator gRPC service method. It allows a user to undelegate their assets from a restaking operator.

func NewMsgUndelegateOperator

func NewMsgUndelegateOperator(operatorID uint32, amount sdk.Coins, delegator string) *MsgUndelegateOperator

NewMsgUndelegateOperator creates a new MsgUndelegateOperator instance

func (*MsgUndelegateOperator) Descriptor

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

func (*MsgUndelegateOperator) GetSignBytes

func (msg *MsgUndelegateOperator) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgUndelegateOperator) GetSigners

func (msg *MsgUndelegateOperator) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgUndelegateOperator) Marshal

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

func (*MsgUndelegateOperator) MarshalTo

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

func (*MsgUndelegateOperator) MarshalToSizedBuffer

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

func (*MsgUndelegateOperator) ProtoMessage

func (*MsgUndelegateOperator) ProtoMessage()

func (*MsgUndelegateOperator) Reset

func (m *MsgUndelegateOperator) Reset()

func (*MsgUndelegateOperator) Size

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

func (*MsgUndelegateOperator) String

func (m *MsgUndelegateOperator) String() string

func (*MsgUndelegateOperator) Unmarshal

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

func (*MsgUndelegateOperator) ValidateBasic

func (msg *MsgUndelegateOperator) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgUndelegateOperator) XXX_DiscardUnknown

func (m *MsgUndelegateOperator) XXX_DiscardUnknown()

func (*MsgUndelegateOperator) XXX_Marshal

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

func (*MsgUndelegateOperator) XXX_Merge

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

func (*MsgUndelegateOperator) XXX_Size

func (m *MsgUndelegateOperator) XXX_Size() int

func (*MsgUndelegateOperator) XXX_Unmarshal

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

type MsgUndelegatePool

type MsgUndelegatePool struct {
	// Delegator is the address of the user undelegating from the pool.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// Amount is the amount of coins to be undelegated.
	Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

MsgUndelegatePool the message structure for the UndelegatePool gRPC service method. It allows a user to undelegate their assets from a restaking pool.

func NewMsgUndelegatePool

func NewMsgUndelegatePool(amount sdk.Coin, delegator string) *MsgUndelegatePool

NewMsgUndelegatePool creates a new MsgUndelegatePool instance

func (*MsgUndelegatePool) Descriptor

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

func (*MsgUndelegatePool) GetSignBytes

func (msg *MsgUndelegatePool) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgUndelegatePool) GetSigners

func (msg *MsgUndelegatePool) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgUndelegatePool) Marshal

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

func (*MsgUndelegatePool) MarshalTo

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

func (*MsgUndelegatePool) MarshalToSizedBuffer

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

func (*MsgUndelegatePool) ProtoMessage

func (*MsgUndelegatePool) ProtoMessage()

func (*MsgUndelegatePool) Reset

func (m *MsgUndelegatePool) Reset()

func (*MsgUndelegatePool) Size

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

func (*MsgUndelegatePool) String

func (m *MsgUndelegatePool) String() string

func (*MsgUndelegatePool) Unmarshal

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

func (*MsgUndelegatePool) ValidateBasic

func (msg *MsgUndelegatePool) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgUndelegatePool) XXX_DiscardUnknown

func (m *MsgUndelegatePool) XXX_DiscardUnknown()

func (*MsgUndelegatePool) XXX_Marshal

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

func (*MsgUndelegatePool) XXX_Merge

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

func (*MsgUndelegatePool) XXX_Size

func (m *MsgUndelegatePool) XXX_Size() int

func (*MsgUndelegatePool) XXX_Unmarshal

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

type MsgUndelegateResponse

type MsgUndelegateResponse struct {
	// CompletionTime represents the time at which the undelegation will be
	// complete
	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}

MsgUndelegateResponse defines the response type for the undelegation methods.

func (*MsgUndelegateResponse) Descriptor

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

func (*MsgUndelegateResponse) GetCompletionTime

func (m *MsgUndelegateResponse) GetCompletionTime() time.Time

func (*MsgUndelegateResponse) Marshal

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

func (*MsgUndelegateResponse) MarshalTo

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

func (*MsgUndelegateResponse) MarshalToSizedBuffer

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

func (*MsgUndelegateResponse) ProtoMessage

func (*MsgUndelegateResponse) ProtoMessage()

func (*MsgUndelegateResponse) Reset

func (m *MsgUndelegateResponse) Reset()

func (*MsgUndelegateResponse) Size

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

func (*MsgUndelegateResponse) String

func (m *MsgUndelegateResponse) String() string

func (*MsgUndelegateResponse) Unmarshal

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

func (*MsgUndelegateResponse) XXX_DiscardUnknown

func (m *MsgUndelegateResponse) XXX_DiscardUnknown()

func (*MsgUndelegateResponse) XXX_Marshal

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

func (*MsgUndelegateResponse) XXX_Merge

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

func (*MsgUndelegateResponse) XXX_Size

func (m *MsgUndelegateResponse) XXX_Size() int

func (*MsgUndelegateResponse) XXX_Unmarshal

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

type MsgUndelegateService

type MsgUndelegateService struct {
	// Delegator is the address of the user undelegating from the service.
	Delegator string `protobuf:"bytes,1,opt,name=delegator,proto3" json:"delegator,omitempty"`
	// ServiceID is the ID of the service to undelegate from.
	ServiceID uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Amount is the amount of coins to be undelegated.
	Amount github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,3,rep,name=amount,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"amount"`
}

MsgUndelegateService the message structure for the UndelegateService gRPC service method. It allows a user to undelegate their assets from a restaking service.

func NewMsgUndelegateService

func NewMsgUndelegateService(serviceID uint32, amount sdk.Coins, delegator string) *MsgUndelegateService

NewMsgUndelegateService creates a new MsgUndelegateService instance

func (*MsgUndelegateService) Descriptor

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

func (*MsgUndelegateService) GetSignBytes

func (msg *MsgUndelegateService) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgUndelegateService) GetSigners

func (msg *MsgUndelegateService) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgUndelegateService) Marshal

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

func (*MsgUndelegateService) MarshalTo

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

func (*MsgUndelegateService) MarshalToSizedBuffer

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

func (*MsgUndelegateService) ProtoMessage

func (*MsgUndelegateService) ProtoMessage()

func (*MsgUndelegateService) Reset

func (m *MsgUndelegateService) Reset()

func (*MsgUndelegateService) Size

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

func (*MsgUndelegateService) String

func (m *MsgUndelegateService) String() string

func (*MsgUndelegateService) Unmarshal

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

func (*MsgUndelegateService) ValidateBasic

func (msg *MsgUndelegateService) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgUndelegateService) XXX_DiscardUnknown

func (m *MsgUndelegateService) XXX_DiscardUnknown()

func (*MsgUndelegateService) XXX_Marshal

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

func (*MsgUndelegateService) XXX_Merge

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

func (*MsgUndelegateService) XXX_Size

func (m *MsgUndelegateService) XXX_Size() int

func (*MsgUndelegateService) XXX_Unmarshal

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

type MsgUpdateParams

type MsgUpdateParams struct {
	// Authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty" yaml:"authority"`
	// Params define the parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams defines the message structure for the UpdateParams gRPC service method. It allows the authority to update the module parameters.

func NewMsgUpdateParams

func NewMsgUpdateParams(params Params, authority string) *MsgUpdateParams

NewMsgUpdateParams creates a new MsgUpdateParams instance

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) GetSignBytes

func (msg *MsgUpdateParams) GetSignBytes() []byte

GetSignBytes implements sdk.Msg

func (*MsgUpdateParams) GetSigners

func (msg *MsgUpdateParams) GetSigners() []sdk.AccAddress

GetSigners implements sdk.Msg

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse is the return value of MsgUpdateParams.

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 OperatorJoinedServices added in v1.3.0

type OperatorJoinedServices struct {
	// OperatorID is the ID of the operator.
	OperatorID uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// ServiceIDs represents the list of services joined by the operator.
	ServiceIDs []uint32 `protobuf:"varint,2,rep,packed,name=service_ids,json=serviceIds,proto3" json:"service_ids,omitempty"`
}

OperatorJoinedServicesRecord represents the services joined by a individual operator.

func NewOperatorJoinedServices added in v1.3.0

func NewOperatorJoinedServices(operatorID uint32, serviceIDs []uint32) OperatorJoinedServices

NewOperatorJoinedServices creates a new instance of OperatorServiceIdRecord.

func (*OperatorJoinedServices) Descriptor added in v1.3.0

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

func (*OperatorJoinedServices) GetOperatorID added in v1.3.0

func (m *OperatorJoinedServices) GetOperatorID() uint32

func (*OperatorJoinedServices) GetServiceIDs added in v1.3.0

func (m *OperatorJoinedServices) GetServiceIDs() []uint32

func (*OperatorJoinedServices) Marshal added in v1.3.0

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

func (*OperatorJoinedServices) MarshalTo added in v1.3.0

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

func (*OperatorJoinedServices) MarshalToSizedBuffer added in v1.3.0

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

func (*OperatorJoinedServices) ProtoMessage added in v1.3.0

func (*OperatorJoinedServices) ProtoMessage()

func (*OperatorJoinedServices) Reset added in v1.3.0

func (m *OperatorJoinedServices) Reset()

func (*OperatorJoinedServices) Size added in v1.3.0

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

func (*OperatorJoinedServices) String added in v1.3.0

func (m *OperatorJoinedServices) String() string

func (*OperatorJoinedServices) Unmarshal added in v1.3.0

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

func (*OperatorJoinedServices) Validate added in v1.3.0

func (o *OperatorJoinedServices) Validate() error

func (*OperatorJoinedServices) XXX_DiscardUnknown added in v1.3.0

func (m *OperatorJoinedServices) XXX_DiscardUnknown()

func (*OperatorJoinedServices) XXX_Marshal added in v1.3.0

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

func (*OperatorJoinedServices) XXX_Merge added in v1.3.0

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

func (*OperatorJoinedServices) XXX_Size added in v1.3.0

func (m *OperatorJoinedServices) XXX_Size() int

func (*OperatorJoinedServices) XXX_Unmarshal added in v1.3.0

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

type OperatorRestakingHooks

type OperatorRestakingHooks interface {
	BeforeOperatorDelegationCreated(ctx sdk.Context, operatorID uint32, delegator string) error
	BeforeOperatorDelegationSharesModified(ctx sdk.Context, operatorID uint32, delegator string) error
	AfterOperatorDelegationModified(ctx sdk.Context, operatorID uint32, delegator string) error
	BeforeOperatorDelegationRemoved(ctx sdk.Context, operatorID uint32, delegator string) error
}

type OperatorsKeeper

type OperatorsKeeper interface {
	GetOperator(ctx sdk.Context, operatorID uint32) (operatorstypes.Operator, bool)
	SaveOperator(ctx sdk.Context, operator operatorstypes.Operator) error
	IterateOperators(ctx sdk.Context, cb func(operatorstypes.Operator) bool)
	GetOperators(ctx sdk.Context) []operatorstypes.Operator
	SaveOperatorParams(ctx sdk.Context, operatorID uint32, params operatorstypes.OperatorParams) error
	GetOperatorParams(ctx sdk.Context, operatorID uint32) (operatorstypes.OperatorParams, error)
}

type Params

type Params struct {
	// UnbondingTime represents the time that will take for assets to be unbonded
	// after the user initiates an unbonding request. This will be applied to all
	// types of restaking: pool, operator and service restaking.
	UnbondingTime time.Duration `protobuf:"varint,1,opt,name=unbonding_time,json=unbondingTime,proto3,stdduration" json:"unbonding_time,omitempty"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams return a Params instance with default values set

func NewParams

func NewParams(unbondingTime time.Duration) Params

NewParams returns a new Params instance

func (*Params) Descriptor

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

func (*Params) GetUnbondingTime

func (m *Params) GetUnbondingTime() time.Duration

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

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) Validate

func (p *Params) Validate() error

Validate performs basic validation 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 PoolRestakingHooks

type PoolRestakingHooks interface {
	BeforePoolDelegationCreated(ctx sdk.Context, poolID uint32, delegator string) error
	BeforePoolDelegationSharesModified(ctx sdk.Context, poolID uint32, delegator string) error
	AfterPoolDelegationModified(ctx sdk.Context, poolID uint32, delegator string) error
	BeforePoolDelegationRemoved(ctx sdk.Context, poolID uint32, delegator string) error
}

type PoolsKeeper

type PoolsKeeper interface {
	GetPoolByDenom(ctx sdk.Context, denom string) (poolstypes.Pool, bool)
	CreateOrGetPoolByDenom(ctx sdk.Context, denom string) (poolstypes.Pool, error)
	GetPool(ctx sdk.Context, poolID uint32) (poolstypes.Pool, bool)
	SavePool(ctx sdk.Context, pool poolstypes.Pool) error
	IteratePools(ctx sdk.Context, cb func(poolstypes.Pool) bool)
	GetPools(ctx sdk.Context) []poolstypes.Pool
}

type QueryClient

type QueryClient interface {
	// OperatorJoinedServices queries the services that an operator has joined.
	OperatorJoinedServices(ctx context.Context, in *QueryOperatorJoinedServicesRequest, opts ...grpc.CallOption) (*QueryOperatorJoinedServicesResponse, error)
	// ServiceAllowedOperators queries the allowed operators for a given service.
	ServiceAllowedOperators(ctx context.Context, in *QueryServiceAllowedOperatorsRequest, opts ...grpc.CallOption) (*QueryServiceAllowedOperatorsResponse, error)
	// ServiceSecuringPools queries the pools that are securing a given service.
	ServiceSecuringPools(ctx context.Context, in *QueryServiceSecuringPoolsRequest, opts ...grpc.CallOption) (*QueryServiceSecuringPoolsResponse, error)
	ServiceOperators(ctx context.Context, in *QueryServiceOperatorsRequest, opts ...grpc.CallOption) (*QueryServiceOperatorsResponse, error)
	// PoolDelegations queries the delegations info for the given pool.
	PoolDelegations(ctx context.Context, in *QueryPoolDelegationsRequest, opts ...grpc.CallOption) (*QueryPoolDelegationsResponse, error)
	// PoolDelegation queries the delegation info for the given pool and
	// delegator.
	PoolDelegation(ctx context.Context, in *QueryPoolDelegationRequest, opts ...grpc.CallOption) (*QueryPoolDelegationResponse, error)
	// PoolUnbondingDelegations queries the unbonding delegations info for the
	// given pool.
	PoolUnbondingDelegations(ctx context.Context, in *QueryPoolUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryPoolUnbondingDelegationsResponse, error)
	// PoolUnbondingDelegation queries the unbonding delegation info for the given
	// pool and delegator.
	PoolUnbondingDelegation(ctx context.Context, in *QueryPoolUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryPoolUnbondingDelegationResponse, error)
	// OperatorDelegations queries the delegations info for the given operator.
	OperatorDelegations(ctx context.Context, in *QueryOperatorDelegationsRequest, opts ...grpc.CallOption) (*QueryOperatorDelegationsResponse, error)
	// OperatorDelegation queries the delegation info for the given operator and
	// delegator.
	OperatorDelegation(ctx context.Context, in *QueryOperatorDelegationRequest, opts ...grpc.CallOption) (*QueryOperatorDelegationResponse, error)
	// OperatorUnbondingDelegations queries the unbonding delegations info for the
	// given operator.
	OperatorUnbondingDelegations(ctx context.Context, in *QueryOperatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryOperatorUnbondingDelegationsResponse, error)
	// OperatorUnbondingDelegation queries the unbonding delegation info for the
	// given operator and delegator.
	OperatorUnbondingDelegation(ctx context.Context, in *QueryOperatorUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryOperatorUnbondingDelegationResponse, error)
	// ServiceDelegations queries the delegations info for the given service.
	ServiceDelegations(ctx context.Context, in *QueryServiceDelegationsRequest, opts ...grpc.CallOption) (*QueryServiceDelegationsResponse, error)
	// ServiceDelegation queries the delegation info for the given service and
	// delegator.
	ServiceDelegation(ctx context.Context, in *QueryServiceDelegationRequest, opts ...grpc.CallOption) (*QueryServiceDelegationResponse, error)
	// ServiceUnbondingDelegations queries the unbonding delegations info for the
	// given service.
	ServiceUnbondingDelegations(ctx context.Context, in *QueryServiceUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryServiceUnbondingDelegationsResponse, error)
	// ServiceUnbondingDelegation queries the unbonding delegation info for the
	// given service and delegator.
	ServiceUnbondingDelegation(ctx context.Context, in *QueryServiceUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryServiceUnbondingDelegationResponse, error)
	// DelegatorPoolDelegations queries all the pool delegations of a given
	// delegator address.
	DelegatorPoolDelegations(ctx context.Context, in *QueryDelegatorPoolDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorPoolDelegationsResponse, error)
	// DelegatorPoolUnbondingDelegations queries all the pool unbonding
	// delegations of a given delegator address.
	DelegatorPoolUnbondingDelegations(ctx context.Context, in *QueryDelegatorPoolUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorPoolUnbondingDelegationsResponse, error)
	// DelegatorOperatorDelegations queries all the operator delegations of a
	// given delegator address.
	DelegatorOperatorDelegations(ctx context.Context, in *QueryDelegatorOperatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorOperatorDelegationsResponse, error)
	// DelegatorOperatorUnbondingDelegations queries all the operator unbonding
	// delegations of a given delegator address.
	DelegatorOperatorUnbondingDelegations(ctx context.Context, in *QueryDelegatorOperatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorOperatorUnbondingDelegationsResponse, error)
	// DelegatorServiceDelegations queries all the service delegations of a given
	// delegator address.
	DelegatorServiceDelegations(ctx context.Context, in *QueryDelegatorServiceDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorServiceDelegationsResponse, error)
	// DelegatorServiceUnbondingDelegations queries all the service unbonding
	// delegations of a given delegator address.
	DelegatorServiceUnbondingDelegations(ctx context.Context, in *QueryDelegatorServiceUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorServiceUnbondingDelegationsResponse, error)
	// DelegatorPools queries all pools info for given delegator
	// address.
	DelegatorPools(ctx context.Context, in *QueryDelegatorPoolsRequest, opts ...grpc.CallOption) (*QueryDelegatorPoolsResponse, error)
	// DelegatorPool queries the pool info for given delegator and pool id.
	DelegatorPool(ctx context.Context, in *QueryDelegatorPoolRequest, opts ...grpc.CallOption) (*QueryDelegatorPoolResponse, error)
	// DelegatorOperators queries all operators info for given delegator
	DelegatorOperators(ctx context.Context, in *QueryDelegatorOperatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorOperatorsResponse, error)
	// DelegatorOperator queries the operator info for given delegator and
	// operator id.
	DelegatorOperator(ctx context.Context, in *QueryDelegatorOperatorRequest, opts ...grpc.CallOption) (*QueryDelegatorOperatorResponse, error)
	// DelegatorServices queries all services info for given delegator
	DelegatorServices(ctx context.Context, in *QueryDelegatorServicesRequest, opts ...grpc.CallOption) (*QueryDelegatorServicesResponse, error)
	// DelegatorService queries the service info for given delegator and service
	// id.
	DelegatorService(ctx context.Context, in *QueryDelegatorServiceRequest, opts ...grpc.CallOption) (*QueryDelegatorServiceResponse, error)
	// Params queries the restaking parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryDelegatorOperatorDelegationsRequest

type QueryDelegatorOperatorDelegationsRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorOperatorDelegationsRequest is request type for the Query/DelegatorOperatorDelegations RPC method.

func NewQueryDelegatorOperatorDelegationsRequest

func NewQueryDelegatorOperatorDelegationsRequest(delegatorAddress string, pagination *query.PageRequest) *QueryDelegatorOperatorDelegationsRequest

NewQueryDelegatorOperatorDelegationsRequest creates a new QueryDelegatorOperatorDelegationsRequest instance

func (*QueryDelegatorOperatorDelegationsRequest) Descriptor

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

func (*QueryDelegatorOperatorDelegationsRequest) GetDelegatorAddress

func (m *QueryDelegatorOperatorDelegationsRequest) GetDelegatorAddress() string

func (*QueryDelegatorOperatorDelegationsRequest) GetPagination

func (*QueryDelegatorOperatorDelegationsRequest) Marshal

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

func (*QueryDelegatorOperatorDelegationsRequest) MarshalTo

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

func (*QueryDelegatorOperatorDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorDelegationsRequest) ProtoMessage

func (*QueryDelegatorOperatorDelegationsRequest) Reset

func (*QueryDelegatorOperatorDelegationsRequest) Size

func (*QueryDelegatorOperatorDelegationsRequest) String

func (*QueryDelegatorOperatorDelegationsRequest) Unmarshal

func (*QueryDelegatorOperatorDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorOperatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorOperatorDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorOperatorDelegationsRequest) XXX_Merge

func (*QueryDelegatorOperatorDelegationsRequest) XXX_Size

func (*QueryDelegatorOperatorDelegationsRequest) XXX_Unmarshal

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

type QueryDelegatorOperatorDelegationsResponse

type QueryDelegatorOperatorDelegationsResponse struct {
	// Delegations is the list of delegations
	Delegations []DelegationResponse `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorOperatorDelegationsResponse is response type for the Query/DelegatorOperatorDelegations RPC method.

func (*QueryDelegatorOperatorDelegationsResponse) Descriptor

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

func (*QueryDelegatorOperatorDelegationsResponse) GetDelegations

func (*QueryDelegatorOperatorDelegationsResponse) GetPagination

func (*QueryDelegatorOperatorDelegationsResponse) Marshal

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

func (*QueryDelegatorOperatorDelegationsResponse) MarshalTo

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

func (*QueryDelegatorOperatorDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorDelegationsResponse) ProtoMessage

func (*QueryDelegatorOperatorDelegationsResponse) Reset

func (*QueryDelegatorOperatorDelegationsResponse) Size

func (*QueryDelegatorOperatorDelegationsResponse) String

func (*QueryDelegatorOperatorDelegationsResponse) Unmarshal

func (*QueryDelegatorOperatorDelegationsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorOperatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorOperatorDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorOperatorDelegationsResponse) XXX_Merge

func (*QueryDelegatorOperatorDelegationsResponse) XXX_Size

func (*QueryDelegatorOperatorDelegationsResponse) XXX_Unmarshal

type QueryDelegatorOperatorRequest

type QueryDelegatorOperatorRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// OperatorId is the ID of the operator to query
	OperatorId uint32 `protobuf:"varint,2,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
}

QueryDelegatorOperatorRequest is request type for the Query/DelegatorOperator RPC method.

func NewQueryDelegatorOperatorRequest

func NewQueryDelegatorOperatorRequest(delegatorAddress string, operatorID uint32) *QueryDelegatorOperatorRequest

NewQueryDelegatorOperatorRequest creates a new QueryDelegatorOperatorRequest instance

func (*QueryDelegatorOperatorRequest) Descriptor

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

func (*QueryDelegatorOperatorRequest) GetDelegatorAddress

func (m *QueryDelegatorOperatorRequest) GetDelegatorAddress() string

func (*QueryDelegatorOperatorRequest) GetOperatorId

func (m *QueryDelegatorOperatorRequest) GetOperatorId() uint32

func (*QueryDelegatorOperatorRequest) Marshal

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

func (*QueryDelegatorOperatorRequest) MarshalTo

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

func (*QueryDelegatorOperatorRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorRequest) ProtoMessage

func (*QueryDelegatorOperatorRequest) ProtoMessage()

func (*QueryDelegatorOperatorRequest) Reset

func (m *QueryDelegatorOperatorRequest) Reset()

func (*QueryDelegatorOperatorRequest) Size

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

func (*QueryDelegatorOperatorRequest) String

func (*QueryDelegatorOperatorRequest) Unmarshal

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

func (*QueryDelegatorOperatorRequest) XXX_DiscardUnknown

func (m *QueryDelegatorOperatorRequest) XXX_DiscardUnknown()

func (*QueryDelegatorOperatorRequest) XXX_Marshal

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

func (*QueryDelegatorOperatorRequest) XXX_Merge

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

func (*QueryDelegatorOperatorRequest) XXX_Size

func (m *QueryDelegatorOperatorRequest) XXX_Size() int

func (*QueryDelegatorOperatorRequest) XXX_Unmarshal

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

type QueryDelegatorOperatorResponse

type QueryDelegatorOperatorResponse struct {
	// Operator is the operator
	Operator types.Operator `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator"`
}

QueryDelegatorOperatorResponse is response type for the Query/DelegatorOperator RPC method.

func (*QueryDelegatorOperatorResponse) Descriptor

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

func (*QueryDelegatorOperatorResponse) GetOperator

func (*QueryDelegatorOperatorResponse) Marshal

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

func (*QueryDelegatorOperatorResponse) MarshalTo

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

func (*QueryDelegatorOperatorResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorResponse) ProtoMessage

func (*QueryDelegatorOperatorResponse) ProtoMessage()

func (*QueryDelegatorOperatorResponse) Reset

func (m *QueryDelegatorOperatorResponse) Reset()

func (*QueryDelegatorOperatorResponse) Size

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

func (*QueryDelegatorOperatorResponse) String

func (*QueryDelegatorOperatorResponse) Unmarshal

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

func (*QueryDelegatorOperatorResponse) XXX_DiscardUnknown

func (m *QueryDelegatorOperatorResponse) XXX_DiscardUnknown()

func (*QueryDelegatorOperatorResponse) XXX_Marshal

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

func (*QueryDelegatorOperatorResponse) XXX_Merge

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

func (*QueryDelegatorOperatorResponse) XXX_Size

func (m *QueryDelegatorOperatorResponse) XXX_Size() int

func (*QueryDelegatorOperatorResponse) XXX_Unmarshal

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

type QueryDelegatorOperatorUnbondingDelegationsRequest

type QueryDelegatorOperatorUnbondingDelegationsRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorOperatorUnbondingDelegationsRequest is request type for the Query/DelegatorOperatorUnbondingDelegations RPC method.

func NewQueryDelegatorOperatorUnbondingDelegationsRequest

func NewQueryDelegatorOperatorUnbondingDelegationsRequest(delegatorAddress string, pagination *query.PageRequest) *QueryDelegatorOperatorUnbondingDelegationsRequest

NewQueryDelegatorOperatorUnbondingDelegationsRequest creates a new QueryDelegatorOperatorUnbondingDelegationsRequest instance

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) Descriptor

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) GetDelegatorAddress

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) GetPagination

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) Marshal

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) MarshalTo

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) ProtoMessage

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) Reset

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) Size

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) String

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) Unmarshal

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorOperatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) XXX_Merge

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) XXX_Size

func (*QueryDelegatorOperatorUnbondingDelegationsRequest) XXX_Unmarshal

type QueryDelegatorOperatorUnbondingDelegationsResponse

type QueryDelegatorOperatorUnbondingDelegationsResponse struct {
	// UnbondingDelegations is the list of unbonding delegations
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorOperatorUnbondingDelegationsResponse is response type for the Query/DelegatorOperatorUnbondingDelegations RPC method.

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) Descriptor

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) GetPagination

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) GetUnbondingDelegations

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) Marshal

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) MarshalTo

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) ProtoMessage

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) Reset

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) Size

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) String

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) Unmarshal

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) XXX_DiscardUnknown

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) XXX_Merge

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) XXX_Size

func (*QueryDelegatorOperatorUnbondingDelegationsResponse) XXX_Unmarshal

type QueryDelegatorOperatorsRequest

type QueryDelegatorOperatorsRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorOperatorsRequest is request type for the Query/DelegatorOperators RPC method.

func NewQueryDelegatorOperatorsRequest

func NewQueryDelegatorOperatorsRequest(delegatorAddress string, pagination *query.PageRequest) *QueryDelegatorOperatorsRequest

NewQueryDelegatorOperatorsRequest creates a new QueryDelegatorOperatorsRequest instance

func (*QueryDelegatorOperatorsRequest) Descriptor

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

func (*QueryDelegatorOperatorsRequest) GetDelegatorAddress

func (m *QueryDelegatorOperatorsRequest) GetDelegatorAddress() string

func (*QueryDelegatorOperatorsRequest) GetPagination

func (m *QueryDelegatorOperatorsRequest) GetPagination() *query.PageRequest

func (*QueryDelegatorOperatorsRequest) Marshal

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

func (*QueryDelegatorOperatorsRequest) MarshalTo

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

func (*QueryDelegatorOperatorsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorsRequest) ProtoMessage

func (*QueryDelegatorOperatorsRequest) ProtoMessage()

func (*QueryDelegatorOperatorsRequest) Reset

func (m *QueryDelegatorOperatorsRequest) Reset()

func (*QueryDelegatorOperatorsRequest) Size

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

func (*QueryDelegatorOperatorsRequest) String

func (*QueryDelegatorOperatorsRequest) Unmarshal

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

func (*QueryDelegatorOperatorsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorOperatorsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorOperatorsRequest) XXX_Marshal

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

func (*QueryDelegatorOperatorsRequest) XXX_Merge

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

func (*QueryDelegatorOperatorsRequest) XXX_Size

func (m *QueryDelegatorOperatorsRequest) XXX_Size() int

func (*QueryDelegatorOperatorsRequest) XXX_Unmarshal

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

type QueryDelegatorOperatorsResponse

type QueryDelegatorOperatorsResponse struct {
	// Operators is the list of operators
	Operators []types.Operator `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorOperatorsResponse is response type for the Query/DelegatorOperators RPC method.

func (*QueryDelegatorOperatorsResponse) Descriptor

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

func (*QueryDelegatorOperatorsResponse) GetOperators

func (m *QueryDelegatorOperatorsResponse) GetOperators() []types.Operator

func (*QueryDelegatorOperatorsResponse) GetPagination

func (*QueryDelegatorOperatorsResponse) Marshal

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

func (*QueryDelegatorOperatorsResponse) MarshalTo

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

func (*QueryDelegatorOperatorsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorOperatorsResponse) ProtoMessage

func (*QueryDelegatorOperatorsResponse) ProtoMessage()

func (*QueryDelegatorOperatorsResponse) Reset

func (*QueryDelegatorOperatorsResponse) Size

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

func (*QueryDelegatorOperatorsResponse) String

func (*QueryDelegatorOperatorsResponse) Unmarshal

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

func (*QueryDelegatorOperatorsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorOperatorsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorOperatorsResponse) XXX_Marshal

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

func (*QueryDelegatorOperatorsResponse) XXX_Merge

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

func (*QueryDelegatorOperatorsResponse) XXX_Size

func (m *QueryDelegatorOperatorsResponse) XXX_Size() int

func (*QueryDelegatorOperatorsResponse) XXX_Unmarshal

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

type QueryDelegatorPoolDelegationsRequest

type QueryDelegatorPoolDelegationsRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorPoolDelegationsRequest is request type for the Query/DelegatorPoolDelegations RPC method.

func NewQueryDelegatorPoolDelegationsRequest

func NewQueryDelegatorPoolDelegationsRequest(delegatorAddress string, pagination *query.PageRequest) *QueryDelegatorPoolDelegationsRequest

NewQueryDelegatorPoolDelegationsRequest creates a new QueryDelegatorPoolDelegationsRequest instance

func (*QueryDelegatorPoolDelegationsRequest) Descriptor

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

func (*QueryDelegatorPoolDelegationsRequest) GetDelegatorAddress

func (m *QueryDelegatorPoolDelegationsRequest) GetDelegatorAddress() string

func (*QueryDelegatorPoolDelegationsRequest) GetPagination

func (*QueryDelegatorPoolDelegationsRequest) Marshal

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

func (*QueryDelegatorPoolDelegationsRequest) MarshalTo

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

func (*QueryDelegatorPoolDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorPoolDelegationsRequest) ProtoMessage

func (*QueryDelegatorPoolDelegationsRequest) ProtoMessage()

func (*QueryDelegatorPoolDelegationsRequest) Reset

func (*QueryDelegatorPoolDelegationsRequest) Size

func (*QueryDelegatorPoolDelegationsRequest) String

func (*QueryDelegatorPoolDelegationsRequest) Unmarshal

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

func (*QueryDelegatorPoolDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorPoolDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorPoolDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorPoolDelegationsRequest) XXX_Merge

func (*QueryDelegatorPoolDelegationsRequest) XXX_Size

func (*QueryDelegatorPoolDelegationsRequest) XXX_Unmarshal

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

type QueryDelegatorPoolDelegationsResponse

type QueryDelegatorPoolDelegationsResponse struct {
	// Delegations is the list of delegations
	Delegations []DelegationResponse `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorPoolDelegationsResponse is response type for the Query/DelegatorPoolDelegations RPC method.

func (*QueryDelegatorPoolDelegationsResponse) Descriptor

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

func (*QueryDelegatorPoolDelegationsResponse) GetDelegations

func (*QueryDelegatorPoolDelegationsResponse) GetPagination

func (*QueryDelegatorPoolDelegationsResponse) Marshal

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

func (*QueryDelegatorPoolDelegationsResponse) MarshalTo

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

func (*QueryDelegatorPoolDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorPoolDelegationsResponse) ProtoMessage

func (*QueryDelegatorPoolDelegationsResponse) ProtoMessage()

func (*QueryDelegatorPoolDelegationsResponse) Reset

func (*QueryDelegatorPoolDelegationsResponse) Size

func (*QueryDelegatorPoolDelegationsResponse) String

func (*QueryDelegatorPoolDelegationsResponse) Unmarshal

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

func (*QueryDelegatorPoolDelegationsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorPoolDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorPoolDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorPoolDelegationsResponse) XXX_Merge

func (*QueryDelegatorPoolDelegationsResponse) XXX_Size

func (*QueryDelegatorPoolDelegationsResponse) XXX_Unmarshal

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

type QueryDelegatorPoolRequest

type QueryDelegatorPoolRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// PoolId is the ID of the pool to query
	PoolId uint32 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
}

QueryDelegatorPoolRequest is request type for the Query/DelegatorPool RPC method.

func NewQueryDelegatorPoolRequest

func NewQueryDelegatorPoolRequest(delegatorAddress string, poolID uint32) *QueryDelegatorPoolRequest

NewQueryDelegatorPoolRequest creates a new QueryDelegatorPoolRequest instance

func (*QueryDelegatorPoolRequest) Descriptor

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

func (*QueryDelegatorPoolRequest) GetDelegatorAddress

func (m *QueryDelegatorPoolRequest) GetDelegatorAddress() string

func (*QueryDelegatorPoolRequest) GetPoolId

func (m *QueryDelegatorPoolRequest) GetPoolId() uint32

func (*QueryDelegatorPoolRequest) Marshal

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

func (*QueryDelegatorPoolRequest) MarshalTo

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

func (*QueryDelegatorPoolRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorPoolRequest) ProtoMessage

func (*QueryDelegatorPoolRequest) ProtoMessage()

func (*QueryDelegatorPoolRequest) Reset

func (m *QueryDelegatorPoolRequest) Reset()

func (*QueryDelegatorPoolRequest) Size

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

func (*QueryDelegatorPoolRequest) String

func (m *QueryDelegatorPoolRequest) String() string

func (*QueryDelegatorPoolRequest) Unmarshal

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

func (*QueryDelegatorPoolRequest) XXX_DiscardUnknown

func (m *QueryDelegatorPoolRequest) XXX_DiscardUnknown()

func (*QueryDelegatorPoolRequest) XXX_Marshal

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

func (*QueryDelegatorPoolRequest) XXX_Merge

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

func (*QueryDelegatorPoolRequest) XXX_Size

func (m *QueryDelegatorPoolRequest) XXX_Size() int

func (*QueryDelegatorPoolRequest) XXX_Unmarshal

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

type QueryDelegatorPoolResponse

type QueryDelegatorPoolResponse struct {
	// Pool is the pool
	Pool types1.Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"`
}

QueryDelegatorPoolResponse is response type for the Query/DelegatorPool RPC method.

func (*QueryDelegatorPoolResponse) Descriptor

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

func (*QueryDelegatorPoolResponse) GetPool

func (m *QueryDelegatorPoolResponse) GetPool() types1.Pool

func (*QueryDelegatorPoolResponse) Marshal

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

func (*QueryDelegatorPoolResponse) MarshalTo

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

func (*QueryDelegatorPoolResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorPoolResponse) ProtoMessage

func (*QueryDelegatorPoolResponse) ProtoMessage()

func (*QueryDelegatorPoolResponse) Reset

func (m *QueryDelegatorPoolResponse) Reset()

func (*QueryDelegatorPoolResponse) Size

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

func (*QueryDelegatorPoolResponse) String

func (m *QueryDelegatorPoolResponse) String() string

func (*QueryDelegatorPoolResponse) Unmarshal

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

func (*QueryDelegatorPoolResponse) XXX_DiscardUnknown

func (m *QueryDelegatorPoolResponse) XXX_DiscardUnknown()

func (*QueryDelegatorPoolResponse) XXX_Marshal

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

func (*QueryDelegatorPoolResponse) XXX_Merge

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

func (*QueryDelegatorPoolResponse) XXX_Size

func (m *QueryDelegatorPoolResponse) XXX_Size() int

func (*QueryDelegatorPoolResponse) XXX_Unmarshal

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

type QueryDelegatorPoolUnbondingDelegationsRequest

type QueryDelegatorPoolUnbondingDelegationsRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorPoolUnbondingDelegationsRequest is request type for the Query/DelegatorPoolUnbondingDelegations RPC method.

func NewQueryDelegatorPoolUnbondingDelegationsRequest

func NewQueryDelegatorPoolUnbondingDelegationsRequest(delegatorAddress string, pagination *query.PageRequest) *QueryDelegatorPoolUnbondingDelegationsRequest

NewQueryDelegatorPoolUnbondingDelegationsRequest creates a new QueryDelegatorPoolUnbondingDelegationsRequest instance

func (*QueryDelegatorPoolUnbondingDelegationsRequest) Descriptor

func (*QueryDelegatorPoolUnbondingDelegationsRequest) GetDelegatorAddress

func (m *QueryDelegatorPoolUnbondingDelegationsRequest) GetDelegatorAddress() string

func (*QueryDelegatorPoolUnbondingDelegationsRequest) GetPagination

func (*QueryDelegatorPoolUnbondingDelegationsRequest) Marshal

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

func (*QueryDelegatorPoolUnbondingDelegationsRequest) MarshalTo

func (*QueryDelegatorPoolUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorPoolUnbondingDelegationsRequest) ProtoMessage

func (*QueryDelegatorPoolUnbondingDelegationsRequest) Reset

func (*QueryDelegatorPoolUnbondingDelegationsRequest) Size

func (*QueryDelegatorPoolUnbondingDelegationsRequest) String

func (*QueryDelegatorPoolUnbondingDelegationsRequest) Unmarshal

func (*QueryDelegatorPoolUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorPoolUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorPoolUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorPoolUnbondingDelegationsRequest) XXX_Merge

func (*QueryDelegatorPoolUnbondingDelegationsRequest) XXX_Size

func (*QueryDelegatorPoolUnbondingDelegationsRequest) XXX_Unmarshal

type QueryDelegatorPoolUnbondingDelegationsResponse

type QueryDelegatorPoolUnbondingDelegationsResponse struct {
	// UnbondingDelegations is the list of unbonding delegations
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorPoolUnbondingDelegationsResponse is response type for the Query/DelegatorPoolUnbondingDelegations RPC method.

func (*QueryDelegatorPoolUnbondingDelegationsResponse) Descriptor

func (*QueryDelegatorPoolUnbondingDelegationsResponse) GetPagination

func (*QueryDelegatorPoolUnbondingDelegationsResponse) GetUnbondingDelegations

func (*QueryDelegatorPoolUnbondingDelegationsResponse) Marshal

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

func (*QueryDelegatorPoolUnbondingDelegationsResponse) MarshalTo

func (*QueryDelegatorPoolUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorPoolUnbondingDelegationsResponse) ProtoMessage

func (*QueryDelegatorPoolUnbondingDelegationsResponse) Reset

func (*QueryDelegatorPoolUnbondingDelegationsResponse) Size

func (*QueryDelegatorPoolUnbondingDelegationsResponse) String

func (*QueryDelegatorPoolUnbondingDelegationsResponse) Unmarshal

func (*QueryDelegatorPoolUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorPoolUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorPoolUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorPoolUnbondingDelegationsResponse) XXX_Merge

func (*QueryDelegatorPoolUnbondingDelegationsResponse) XXX_Size

func (*QueryDelegatorPoolUnbondingDelegationsResponse) XXX_Unmarshal

type QueryDelegatorPoolsRequest

type QueryDelegatorPoolsRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorPoolsRequest is request type for the Query/DelegatorPools RPC method.

func NewQueryDelegatorPoolsRequest

func NewQueryDelegatorPoolsRequest(delegatorAddress string, pagination *query.PageRequest) *QueryDelegatorPoolsRequest

NewQueryDelegatorPoolsRequest creates a new QueryDelegatorPoolsRequest instance

func (*QueryDelegatorPoolsRequest) Descriptor

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

func (*QueryDelegatorPoolsRequest) GetDelegatorAddress

func (m *QueryDelegatorPoolsRequest) GetDelegatorAddress() string

func (*QueryDelegatorPoolsRequest) GetPagination

func (m *QueryDelegatorPoolsRequest) GetPagination() *query.PageRequest

func (*QueryDelegatorPoolsRequest) Marshal

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

func (*QueryDelegatorPoolsRequest) MarshalTo

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

func (*QueryDelegatorPoolsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorPoolsRequest) ProtoMessage

func (*QueryDelegatorPoolsRequest) ProtoMessage()

func (*QueryDelegatorPoolsRequest) Reset

func (m *QueryDelegatorPoolsRequest) Reset()

func (*QueryDelegatorPoolsRequest) Size

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

func (*QueryDelegatorPoolsRequest) String

func (m *QueryDelegatorPoolsRequest) String() string

func (*QueryDelegatorPoolsRequest) Unmarshal

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

func (*QueryDelegatorPoolsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorPoolsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorPoolsRequest) XXX_Marshal

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

func (*QueryDelegatorPoolsRequest) XXX_Merge

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

func (*QueryDelegatorPoolsRequest) XXX_Size

func (m *QueryDelegatorPoolsRequest) XXX_Size() int

func (*QueryDelegatorPoolsRequest) XXX_Unmarshal

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

type QueryDelegatorPoolsResponse

type QueryDelegatorPoolsResponse struct {
	// Pools is the list of pools
	Pools []types1.Pool `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorPoolsResponse is response type for the Query/DelegatorPools RPC method.

func (*QueryDelegatorPoolsResponse) Descriptor

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

func (*QueryDelegatorPoolsResponse) GetPagination

func (m *QueryDelegatorPoolsResponse) GetPagination() *query.PageResponse

func (*QueryDelegatorPoolsResponse) GetPools

func (m *QueryDelegatorPoolsResponse) GetPools() []types1.Pool

func (*QueryDelegatorPoolsResponse) Marshal

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

func (*QueryDelegatorPoolsResponse) MarshalTo

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

func (*QueryDelegatorPoolsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorPoolsResponse) ProtoMessage

func (*QueryDelegatorPoolsResponse) ProtoMessage()

func (*QueryDelegatorPoolsResponse) Reset

func (m *QueryDelegatorPoolsResponse) Reset()

func (*QueryDelegatorPoolsResponse) Size

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

func (*QueryDelegatorPoolsResponse) String

func (m *QueryDelegatorPoolsResponse) String() string

func (*QueryDelegatorPoolsResponse) Unmarshal

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

func (*QueryDelegatorPoolsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorPoolsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorPoolsResponse) XXX_Marshal

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

func (*QueryDelegatorPoolsResponse) XXX_Merge

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

func (*QueryDelegatorPoolsResponse) XXX_Size

func (m *QueryDelegatorPoolsResponse) XXX_Size() int

func (*QueryDelegatorPoolsResponse) XXX_Unmarshal

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

type QueryDelegatorServiceDelegationsRequest

type QueryDelegatorServiceDelegationsRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorServiceDelegationsRequest is request type for the Query/DelegatorServiceDelegations RPC method.

func NewQueryDelegatorServiceDelegationsRequest

func NewQueryDelegatorServiceDelegationsRequest(delegatorAddress string, pagination *query.PageRequest) *QueryDelegatorServiceDelegationsRequest

NewQueryDelegatorServiceDelegationsRequest creates a new QueryDelegatorServiceDelegationsRequest instance

func (*QueryDelegatorServiceDelegationsRequest) Descriptor

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

func (*QueryDelegatorServiceDelegationsRequest) GetDelegatorAddress

func (m *QueryDelegatorServiceDelegationsRequest) GetDelegatorAddress() string

func (*QueryDelegatorServiceDelegationsRequest) GetPagination

func (*QueryDelegatorServiceDelegationsRequest) Marshal

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

func (*QueryDelegatorServiceDelegationsRequest) MarshalTo

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

func (*QueryDelegatorServiceDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorServiceDelegationsRequest) ProtoMessage

func (*QueryDelegatorServiceDelegationsRequest) Reset

func (*QueryDelegatorServiceDelegationsRequest) Size

func (*QueryDelegatorServiceDelegationsRequest) String

func (*QueryDelegatorServiceDelegationsRequest) Unmarshal

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

func (*QueryDelegatorServiceDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorServiceDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorServiceDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorServiceDelegationsRequest) XXX_Merge

func (*QueryDelegatorServiceDelegationsRequest) XXX_Size

func (*QueryDelegatorServiceDelegationsRequest) XXX_Unmarshal

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

type QueryDelegatorServiceDelegationsResponse

type QueryDelegatorServiceDelegationsResponse struct {
	// Delegations is the list of delegations
	Delegations []DelegationResponse `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorServiceDelegationsResponse is response type for the Query/DelegatorServiceDelegations RPC method.

func (*QueryDelegatorServiceDelegationsResponse) Descriptor

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

func (*QueryDelegatorServiceDelegationsResponse) GetDelegations

func (*QueryDelegatorServiceDelegationsResponse) GetPagination

func (*QueryDelegatorServiceDelegationsResponse) Marshal

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

func (*QueryDelegatorServiceDelegationsResponse) MarshalTo

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

func (*QueryDelegatorServiceDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorServiceDelegationsResponse) ProtoMessage

func (*QueryDelegatorServiceDelegationsResponse) Reset

func (*QueryDelegatorServiceDelegationsResponse) Size

func (*QueryDelegatorServiceDelegationsResponse) String

func (*QueryDelegatorServiceDelegationsResponse) Unmarshal

func (*QueryDelegatorServiceDelegationsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorServiceDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorServiceDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorServiceDelegationsResponse) XXX_Merge

func (*QueryDelegatorServiceDelegationsResponse) XXX_Size

func (*QueryDelegatorServiceDelegationsResponse) XXX_Unmarshal

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

type QueryDelegatorServiceRequest

type QueryDelegatorServiceRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// ServiceId is the ID of the service to query
	ServiceId uint32 `protobuf:"varint,2,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
}

QueryDelegatorServiceRequest is request type for the Query/DelegatorService RPC method.

func NewQueryDelegatorServiceRequest

func NewQueryDelegatorServiceRequest(delegatorAddress string, serviceID uint32) *QueryDelegatorServiceRequest

NewQueryDelegatorServiceRequest creates a new QueryDelegatorServiceRequest instance

func (*QueryDelegatorServiceRequest) Descriptor

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

func (*QueryDelegatorServiceRequest) GetDelegatorAddress

func (m *QueryDelegatorServiceRequest) GetDelegatorAddress() string

func (*QueryDelegatorServiceRequest) GetServiceId

func (m *QueryDelegatorServiceRequest) GetServiceId() uint32

func (*QueryDelegatorServiceRequest) Marshal

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

func (*QueryDelegatorServiceRequest) MarshalTo

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

func (*QueryDelegatorServiceRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorServiceRequest) ProtoMessage

func (*QueryDelegatorServiceRequest) ProtoMessage()

func (*QueryDelegatorServiceRequest) Reset

func (m *QueryDelegatorServiceRequest) Reset()

func (*QueryDelegatorServiceRequest) Size

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

func (*QueryDelegatorServiceRequest) String

func (*QueryDelegatorServiceRequest) Unmarshal

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

func (*QueryDelegatorServiceRequest) XXX_DiscardUnknown

func (m *QueryDelegatorServiceRequest) XXX_DiscardUnknown()

func (*QueryDelegatorServiceRequest) XXX_Marshal

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

func (*QueryDelegatorServiceRequest) XXX_Merge

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

func (*QueryDelegatorServiceRequest) XXX_Size

func (m *QueryDelegatorServiceRequest) XXX_Size() int

func (*QueryDelegatorServiceRequest) XXX_Unmarshal

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

type QueryDelegatorServiceResponse

type QueryDelegatorServiceResponse struct {
	// Service is the service
	Service types2.Service `protobuf:"bytes,1,opt,name=service,proto3" json:"service"`
}

QueryDelegatorServiceResponse is response type for the Query/DelegatorService RPC method.

func (*QueryDelegatorServiceResponse) Descriptor

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

func (*QueryDelegatorServiceResponse) GetService

func (*QueryDelegatorServiceResponse) Marshal

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

func (*QueryDelegatorServiceResponse) MarshalTo

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

func (*QueryDelegatorServiceResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorServiceResponse) ProtoMessage

func (*QueryDelegatorServiceResponse) ProtoMessage()

func (*QueryDelegatorServiceResponse) Reset

func (m *QueryDelegatorServiceResponse) Reset()

func (*QueryDelegatorServiceResponse) Size

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

func (*QueryDelegatorServiceResponse) String

func (*QueryDelegatorServiceResponse) Unmarshal

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

func (*QueryDelegatorServiceResponse) XXX_DiscardUnknown

func (m *QueryDelegatorServiceResponse) XXX_DiscardUnknown()

func (*QueryDelegatorServiceResponse) XXX_Marshal

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

func (*QueryDelegatorServiceResponse) XXX_Merge

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

func (*QueryDelegatorServiceResponse) XXX_Size

func (m *QueryDelegatorServiceResponse) XXX_Size() int

func (*QueryDelegatorServiceResponse) XXX_Unmarshal

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

type QueryDelegatorServiceUnbondingDelegationsRequest

type QueryDelegatorServiceUnbondingDelegationsRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorServiceUnbondingDelegationsRequest is request type for the Query/DelegatorServiceUnbondingDelegations RPC method.

func NewQueryDelegatorServiceUnbondingDelegationsRequest

func NewQueryDelegatorServiceUnbondingDelegationsRequest(delegatorAddress string, pagination *query.PageRequest) *QueryDelegatorServiceUnbondingDelegationsRequest

NewQueryDelegatorServiceUnbondingDelegationsRequest creates a new QueryDelegatorServiceUnbondingDelegationsRequest instance

func (*QueryDelegatorServiceUnbondingDelegationsRequest) Descriptor

func (*QueryDelegatorServiceUnbondingDelegationsRequest) GetDelegatorAddress

func (*QueryDelegatorServiceUnbondingDelegationsRequest) GetPagination

func (*QueryDelegatorServiceUnbondingDelegationsRequest) Marshal

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

func (*QueryDelegatorServiceUnbondingDelegationsRequest) MarshalTo

func (*QueryDelegatorServiceUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorServiceUnbondingDelegationsRequest) ProtoMessage

func (*QueryDelegatorServiceUnbondingDelegationsRequest) Reset

func (*QueryDelegatorServiceUnbondingDelegationsRequest) Size

func (*QueryDelegatorServiceUnbondingDelegationsRequest) String

func (*QueryDelegatorServiceUnbondingDelegationsRequest) Unmarshal

func (*QueryDelegatorServiceUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryDelegatorServiceUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryDelegatorServiceUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryDelegatorServiceUnbondingDelegationsRequest) XXX_Merge

func (*QueryDelegatorServiceUnbondingDelegationsRequest) XXX_Size

func (*QueryDelegatorServiceUnbondingDelegationsRequest) XXX_Unmarshal

type QueryDelegatorServiceUnbondingDelegationsResponse

type QueryDelegatorServiceUnbondingDelegationsResponse struct {
	// UnbondingDelegations is the list of unbonding delegations
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorServiceUnbondingDelegationsResponse is response type for the Query/DelegatorServiceUnbondingDelegations RPC method.

func (*QueryDelegatorServiceUnbondingDelegationsResponse) Descriptor

func (*QueryDelegatorServiceUnbondingDelegationsResponse) GetPagination

func (*QueryDelegatorServiceUnbondingDelegationsResponse) GetUnbondingDelegations

func (*QueryDelegatorServiceUnbondingDelegationsResponse) Marshal

func (*QueryDelegatorServiceUnbondingDelegationsResponse) MarshalTo

func (*QueryDelegatorServiceUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorServiceUnbondingDelegationsResponse) ProtoMessage

func (*QueryDelegatorServiceUnbondingDelegationsResponse) Reset

func (*QueryDelegatorServiceUnbondingDelegationsResponse) Size

func (*QueryDelegatorServiceUnbondingDelegationsResponse) String

func (*QueryDelegatorServiceUnbondingDelegationsResponse) Unmarshal

func (*QueryDelegatorServiceUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryDelegatorServiceUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryDelegatorServiceUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryDelegatorServiceUnbondingDelegationsResponse) XXX_Merge

func (*QueryDelegatorServiceUnbondingDelegationsResponse) XXX_Size

func (*QueryDelegatorServiceUnbondingDelegationsResponse) XXX_Unmarshal

type QueryDelegatorServicesRequest

type QueryDelegatorServicesRequest struct {
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorServicesRequest is request type for the Query/DelegatorServices RPC method.

func NewQueryDelegatorServicesRequest

func NewQueryDelegatorServicesRequest(delegatorAddress string, pagination *query.PageRequest) *QueryDelegatorServicesRequest

NewQueryDelegatorServicesRequest creates a new QueryDelegatorServicesRequest instance

func (*QueryDelegatorServicesRequest) Descriptor

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

func (*QueryDelegatorServicesRequest) GetDelegatorAddress

func (m *QueryDelegatorServicesRequest) GetDelegatorAddress() string

func (*QueryDelegatorServicesRequest) GetPagination

func (m *QueryDelegatorServicesRequest) GetPagination() *query.PageRequest

func (*QueryDelegatorServicesRequest) Marshal

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

func (*QueryDelegatorServicesRequest) MarshalTo

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

func (*QueryDelegatorServicesRequest) MarshalToSizedBuffer

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

func (*QueryDelegatorServicesRequest) ProtoMessage

func (*QueryDelegatorServicesRequest) ProtoMessage()

func (*QueryDelegatorServicesRequest) Reset

func (m *QueryDelegatorServicesRequest) Reset()

func (*QueryDelegatorServicesRequest) Size

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

func (*QueryDelegatorServicesRequest) String

func (*QueryDelegatorServicesRequest) Unmarshal

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

func (*QueryDelegatorServicesRequest) XXX_DiscardUnknown

func (m *QueryDelegatorServicesRequest) XXX_DiscardUnknown()

func (*QueryDelegatorServicesRequest) XXX_Marshal

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

func (*QueryDelegatorServicesRequest) XXX_Merge

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

func (*QueryDelegatorServicesRequest) XXX_Size

func (m *QueryDelegatorServicesRequest) XXX_Size() int

func (*QueryDelegatorServicesRequest) XXX_Unmarshal

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

type QueryDelegatorServicesResponse

type QueryDelegatorServicesResponse struct {
	// Services is the list of services
	Services []types2.Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDelegatorServicesResponse is response type for the Query/DelegatorServices RPC method.

func (*QueryDelegatorServicesResponse) Descriptor

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

func (*QueryDelegatorServicesResponse) GetPagination

func (*QueryDelegatorServicesResponse) GetServices

func (m *QueryDelegatorServicesResponse) GetServices() []types2.Service

func (*QueryDelegatorServicesResponse) Marshal

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

func (*QueryDelegatorServicesResponse) MarshalTo

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

func (*QueryDelegatorServicesResponse) MarshalToSizedBuffer

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

func (*QueryDelegatorServicesResponse) ProtoMessage

func (*QueryDelegatorServicesResponse) ProtoMessage()

func (*QueryDelegatorServicesResponse) Reset

func (m *QueryDelegatorServicesResponse) Reset()

func (*QueryDelegatorServicesResponse) Size

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

func (*QueryDelegatorServicesResponse) String

func (*QueryDelegatorServicesResponse) Unmarshal

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

func (*QueryDelegatorServicesResponse) XXX_DiscardUnknown

func (m *QueryDelegatorServicesResponse) XXX_DiscardUnknown()

func (*QueryDelegatorServicesResponse) XXX_Marshal

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

func (*QueryDelegatorServicesResponse) XXX_Merge

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

func (*QueryDelegatorServicesResponse) XXX_Size

func (m *QueryDelegatorServicesResponse) XXX_Size() int

func (*QueryDelegatorServicesResponse) XXX_Unmarshal

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

type QueryOperatorDelegationRequest

type QueryOperatorDelegationRequest struct {
	// OperatorId is the ID of the operator to query
	OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

QueryOperatorDelegationRequest is request type for the Query/OperatorDelegation RPC method.

func NewQueryOperatorDelegationRequest

func NewQueryOperatorDelegationRequest(operatorID uint32, delegatorAddress string) *QueryOperatorDelegationRequest

NewQueryOperatorDelegationRequest creates a new QueryOperatorDelegationRequest instance

func (*QueryOperatorDelegationRequest) Descriptor

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

func (*QueryOperatorDelegationRequest) GetDelegatorAddress

func (m *QueryOperatorDelegationRequest) GetDelegatorAddress() string

func (*QueryOperatorDelegationRequest) GetOperatorId

func (m *QueryOperatorDelegationRequest) GetOperatorId() uint32

func (*QueryOperatorDelegationRequest) Marshal

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

func (*QueryOperatorDelegationRequest) MarshalTo

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

func (*QueryOperatorDelegationRequest) MarshalToSizedBuffer

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

func (*QueryOperatorDelegationRequest) ProtoMessage

func (*QueryOperatorDelegationRequest) ProtoMessage()

func (*QueryOperatorDelegationRequest) Reset

func (m *QueryOperatorDelegationRequest) Reset()

func (*QueryOperatorDelegationRequest) Size

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

func (*QueryOperatorDelegationRequest) String

func (*QueryOperatorDelegationRequest) Unmarshal

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

func (*QueryOperatorDelegationRequest) XXX_DiscardUnknown

func (m *QueryOperatorDelegationRequest) XXX_DiscardUnknown()

func (*QueryOperatorDelegationRequest) XXX_Marshal

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

func (*QueryOperatorDelegationRequest) XXX_Merge

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

func (*QueryOperatorDelegationRequest) XXX_Size

func (m *QueryOperatorDelegationRequest) XXX_Size() int

func (*QueryOperatorDelegationRequest) XXX_Unmarshal

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

type QueryOperatorDelegationResponse

type QueryOperatorDelegationResponse struct {
	// Delegation is the delegation
	Delegation DelegationResponse `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"`
}

QueryOperatorDelegationResponse is response type for the Query/OperatorDelegation RPC method.

func (*QueryOperatorDelegationResponse) Descriptor

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

func (*QueryOperatorDelegationResponse) GetDelegation

func (*QueryOperatorDelegationResponse) Marshal

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

func (*QueryOperatorDelegationResponse) MarshalTo

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

func (*QueryOperatorDelegationResponse) MarshalToSizedBuffer

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

func (*QueryOperatorDelegationResponse) ProtoMessage

func (*QueryOperatorDelegationResponse) ProtoMessage()

func (*QueryOperatorDelegationResponse) Reset

func (*QueryOperatorDelegationResponse) Size

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

func (*QueryOperatorDelegationResponse) String

func (*QueryOperatorDelegationResponse) Unmarshal

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

func (*QueryOperatorDelegationResponse) XXX_DiscardUnknown

func (m *QueryOperatorDelegationResponse) XXX_DiscardUnknown()

func (*QueryOperatorDelegationResponse) XXX_Marshal

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

func (*QueryOperatorDelegationResponse) XXX_Merge

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

func (*QueryOperatorDelegationResponse) XXX_Size

func (m *QueryOperatorDelegationResponse) XXX_Size() int

func (*QueryOperatorDelegationResponse) XXX_Unmarshal

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

type QueryOperatorDelegationsRequest

type QueryOperatorDelegationsRequest struct {
	// OperatorId is the ID of the operator to query
	OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorDelegationsRequest is request type for the Query/OperatorDelegations RPC method.

func NewQueryOperatorDelegationsRequest

func NewQueryOperatorDelegationsRequest(operatorID uint32, pagination *query.PageRequest) *QueryOperatorDelegationsRequest

NewQueryOperatorDelegationsRequest creates a new QueryOperatorDelegationsRequest instance

func (*QueryOperatorDelegationsRequest) Descriptor

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

func (*QueryOperatorDelegationsRequest) GetOperatorId

func (m *QueryOperatorDelegationsRequest) GetOperatorId() uint32

func (*QueryOperatorDelegationsRequest) GetPagination

func (*QueryOperatorDelegationsRequest) Marshal

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

func (*QueryOperatorDelegationsRequest) MarshalTo

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

func (*QueryOperatorDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryOperatorDelegationsRequest) ProtoMessage

func (*QueryOperatorDelegationsRequest) ProtoMessage()

func (*QueryOperatorDelegationsRequest) Reset

func (*QueryOperatorDelegationsRequest) Size

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

func (*QueryOperatorDelegationsRequest) String

func (*QueryOperatorDelegationsRequest) Unmarshal

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

func (*QueryOperatorDelegationsRequest) XXX_DiscardUnknown

func (m *QueryOperatorDelegationsRequest) XXX_DiscardUnknown()

func (*QueryOperatorDelegationsRequest) XXX_Marshal

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

func (*QueryOperatorDelegationsRequest) XXX_Merge

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

func (*QueryOperatorDelegationsRequest) XXX_Size

func (m *QueryOperatorDelegationsRequest) XXX_Size() int

func (*QueryOperatorDelegationsRequest) XXX_Unmarshal

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

type QueryOperatorDelegationsResponse

type QueryOperatorDelegationsResponse struct {
	// Delegations is the list of delegations
	Delegations []DelegationResponse `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorDelegationsResponse is response type for the Query/OperatorDelegations RPC method.

func (*QueryOperatorDelegationsResponse) Descriptor

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

func (*QueryOperatorDelegationsResponse) GetDelegations

func (*QueryOperatorDelegationsResponse) GetPagination

func (*QueryOperatorDelegationsResponse) Marshal

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

func (*QueryOperatorDelegationsResponse) MarshalTo

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

func (*QueryOperatorDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryOperatorDelegationsResponse) ProtoMessage

func (*QueryOperatorDelegationsResponse) ProtoMessage()

func (*QueryOperatorDelegationsResponse) Reset

func (*QueryOperatorDelegationsResponse) Size

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

func (*QueryOperatorDelegationsResponse) String

func (*QueryOperatorDelegationsResponse) Unmarshal

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

func (*QueryOperatorDelegationsResponse) XXX_DiscardUnknown

func (m *QueryOperatorDelegationsResponse) XXX_DiscardUnknown()

func (*QueryOperatorDelegationsResponse) XXX_Marshal

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

func (*QueryOperatorDelegationsResponse) XXX_Merge

func (*QueryOperatorDelegationsResponse) XXX_Size

func (m *QueryOperatorDelegationsResponse) XXX_Size() int

func (*QueryOperatorDelegationsResponse) XXX_Unmarshal

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

type QueryOperatorJoinedServicesRequest added in v1.3.0

type QueryOperatorJoinedServicesRequest struct {
	// OperatorId is the ID of the operator to query
	OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorJoinedServicesRequest is request type for the Query/OperatorJoinedServices RPC method.

func NewQueryOperatorJoinedServicesRequest added in v1.3.0

func NewQueryOperatorJoinedServicesRequest(operatorID uint32, pagination *query.PageRequest) *QueryOperatorJoinedServicesRequest

NewQueryOperatorJoinedServicesRequest creates a new QueryOperatorJoinedServicesRequest instance

func (*QueryOperatorJoinedServicesRequest) Descriptor added in v1.3.0

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

func (*QueryOperatorJoinedServicesRequest) GetOperatorId added in v1.3.0

func (m *QueryOperatorJoinedServicesRequest) GetOperatorId() uint32

func (*QueryOperatorJoinedServicesRequest) GetPagination added in v1.3.0

func (*QueryOperatorJoinedServicesRequest) Marshal added in v1.3.0

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

func (*QueryOperatorJoinedServicesRequest) MarshalTo added in v1.3.0

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

func (*QueryOperatorJoinedServicesRequest) MarshalToSizedBuffer added in v1.3.0

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

func (*QueryOperatorJoinedServicesRequest) ProtoMessage added in v1.3.0

func (*QueryOperatorJoinedServicesRequest) ProtoMessage()

func (*QueryOperatorJoinedServicesRequest) Reset added in v1.3.0

func (*QueryOperatorJoinedServicesRequest) Size added in v1.3.0

func (*QueryOperatorJoinedServicesRequest) String added in v1.3.0

func (*QueryOperatorJoinedServicesRequest) Unmarshal added in v1.3.0

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

func (*QueryOperatorJoinedServicesRequest) XXX_DiscardUnknown added in v1.3.0

func (m *QueryOperatorJoinedServicesRequest) XXX_DiscardUnknown()

func (*QueryOperatorJoinedServicesRequest) XXX_Marshal added in v1.3.0

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

func (*QueryOperatorJoinedServicesRequest) XXX_Merge added in v1.3.0

func (*QueryOperatorJoinedServicesRequest) XXX_Size added in v1.3.0

func (*QueryOperatorJoinedServicesRequest) XXX_Unmarshal added in v1.3.0

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

type QueryOperatorJoinedServicesResponse added in v1.3.0

type QueryOperatorJoinedServicesResponse struct {
	// ServiceIds is the list of services joined by the operator.
	ServiceIds []uint32 `protobuf:"varint,1,rep,packed,name=service_ids,json=serviceIds,proto3" json:"service_ids,omitempty"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorJoinedServicesResponse is response type for the Query/OperatorJoinedServices RPC method.

func (*QueryOperatorJoinedServicesResponse) Descriptor added in v1.3.0

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

func (*QueryOperatorJoinedServicesResponse) GetPagination added in v1.3.0

func (*QueryOperatorJoinedServicesResponse) GetServiceIds added in v1.3.0

func (m *QueryOperatorJoinedServicesResponse) GetServiceIds() []uint32

func (*QueryOperatorJoinedServicesResponse) Marshal added in v1.3.0

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

func (*QueryOperatorJoinedServicesResponse) MarshalTo added in v1.3.0

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

func (*QueryOperatorJoinedServicesResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*QueryOperatorJoinedServicesResponse) ProtoMessage added in v1.3.0

func (*QueryOperatorJoinedServicesResponse) ProtoMessage()

func (*QueryOperatorJoinedServicesResponse) Reset added in v1.3.0

func (*QueryOperatorJoinedServicesResponse) Size added in v1.3.0

func (*QueryOperatorJoinedServicesResponse) String added in v1.3.0

func (*QueryOperatorJoinedServicesResponse) Unmarshal added in v1.3.0

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

func (*QueryOperatorJoinedServicesResponse) XXX_DiscardUnknown added in v1.3.0

func (m *QueryOperatorJoinedServicesResponse) XXX_DiscardUnknown()

func (*QueryOperatorJoinedServicesResponse) XXX_Marshal added in v1.3.0

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

func (*QueryOperatorJoinedServicesResponse) XXX_Merge added in v1.3.0

func (*QueryOperatorJoinedServicesResponse) XXX_Size added in v1.3.0

func (*QueryOperatorJoinedServicesResponse) XXX_Unmarshal added in v1.3.0

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

type QueryOperatorUnbondingDelegationRequest

type QueryOperatorUnbondingDelegationRequest struct {
	// OperatorId is the ID of the operator to query
	OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

QueryOperatorUnbondingDelegationRequest is request type for the Query/OperatorUnbondingDelegation RPC method.

func NewQueryOperatorUnbondingDelegationRequest

func NewQueryOperatorUnbondingDelegationRequest(operatorID uint32, delegatorAddress string) *QueryOperatorUnbondingDelegationRequest

NewQueryOperatorUnbondingDelegationRequest creates a new QueryOperatorUnbondingDelegationRequest instance

func (*QueryOperatorUnbondingDelegationRequest) Descriptor

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

func (*QueryOperatorUnbondingDelegationRequest) GetDelegatorAddress

func (m *QueryOperatorUnbondingDelegationRequest) GetDelegatorAddress() string

func (*QueryOperatorUnbondingDelegationRequest) GetOperatorId

func (*QueryOperatorUnbondingDelegationRequest) Marshal

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

func (*QueryOperatorUnbondingDelegationRequest) MarshalTo

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

func (*QueryOperatorUnbondingDelegationRequest) MarshalToSizedBuffer

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

func (*QueryOperatorUnbondingDelegationRequest) ProtoMessage

func (*QueryOperatorUnbondingDelegationRequest) Reset

func (*QueryOperatorUnbondingDelegationRequest) Size

func (*QueryOperatorUnbondingDelegationRequest) String

func (*QueryOperatorUnbondingDelegationRequest) Unmarshal

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

func (*QueryOperatorUnbondingDelegationRequest) XXX_DiscardUnknown

func (m *QueryOperatorUnbondingDelegationRequest) XXX_DiscardUnknown()

func (*QueryOperatorUnbondingDelegationRequest) XXX_Marshal

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

func (*QueryOperatorUnbondingDelegationRequest) XXX_Merge

func (*QueryOperatorUnbondingDelegationRequest) XXX_Size

func (*QueryOperatorUnbondingDelegationRequest) XXX_Unmarshal

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

type QueryOperatorUnbondingDelegationResponse

type QueryOperatorUnbondingDelegationResponse struct {
	// UnbondingDelegation is the unbonding delegation
	UnbondingDelegation UnbondingDelegation `protobuf:"bytes,1,opt,name=unbonding_delegation,json=unbondingDelegation,proto3" json:"unbonding_delegation"`
}

QueryOperatorUnbondingDelegationResponse is response type for the Query/OperatorUnbondingDelegation RPC method.

func (*QueryOperatorUnbondingDelegationResponse) Descriptor

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

func (*QueryOperatorUnbondingDelegationResponse) GetUnbondingDelegation

func (*QueryOperatorUnbondingDelegationResponse) Marshal

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

func (*QueryOperatorUnbondingDelegationResponse) MarshalTo

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

func (*QueryOperatorUnbondingDelegationResponse) MarshalToSizedBuffer

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

func (*QueryOperatorUnbondingDelegationResponse) ProtoMessage

func (*QueryOperatorUnbondingDelegationResponse) Reset

func (*QueryOperatorUnbondingDelegationResponse) Size

func (*QueryOperatorUnbondingDelegationResponse) String

func (*QueryOperatorUnbondingDelegationResponse) Unmarshal

func (*QueryOperatorUnbondingDelegationResponse) XXX_DiscardUnknown

func (m *QueryOperatorUnbondingDelegationResponse) XXX_DiscardUnknown()

func (*QueryOperatorUnbondingDelegationResponse) XXX_Marshal

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

func (*QueryOperatorUnbondingDelegationResponse) XXX_Merge

func (*QueryOperatorUnbondingDelegationResponse) XXX_Size

func (*QueryOperatorUnbondingDelegationResponse) XXX_Unmarshal

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

type QueryOperatorUnbondingDelegationsRequest

type QueryOperatorUnbondingDelegationsRequest struct {
	// OperatorId is the ID of the operator to query
	OperatorId uint32 `protobuf:"varint,1,opt,name=operator_id,json=operatorId,proto3" json:"operator_id,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorUnbondingDelegationsRequest is request type for the Query/OperatorUnbondingDelegations RPC method.

func NewQueryOperatorUnbondingDelegationsRequest

func NewQueryOperatorUnbondingDelegationsRequest(operatorID uint32, pagination *query.PageRequest) *QueryOperatorUnbondingDelegationsRequest

NewQueryOperatorUnbondingDelegationsRequest creates a new QueryOperatorUnbondingDelegationsRequest instance

func (*QueryOperatorUnbondingDelegationsRequest) Descriptor

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

func (*QueryOperatorUnbondingDelegationsRequest) GetOperatorId

func (*QueryOperatorUnbondingDelegationsRequest) GetPagination

func (*QueryOperatorUnbondingDelegationsRequest) Marshal

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

func (*QueryOperatorUnbondingDelegationsRequest) MarshalTo

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

func (*QueryOperatorUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryOperatorUnbondingDelegationsRequest) ProtoMessage

func (*QueryOperatorUnbondingDelegationsRequest) Reset

func (*QueryOperatorUnbondingDelegationsRequest) Size

func (*QueryOperatorUnbondingDelegationsRequest) String

func (*QueryOperatorUnbondingDelegationsRequest) Unmarshal

func (*QueryOperatorUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryOperatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryOperatorUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryOperatorUnbondingDelegationsRequest) XXX_Merge

func (*QueryOperatorUnbondingDelegationsRequest) XXX_Size

func (*QueryOperatorUnbondingDelegationsRequest) XXX_Unmarshal

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

type QueryOperatorUnbondingDelegationsResponse

type QueryOperatorUnbondingDelegationsResponse struct {
	// UnbondingDelegations is the list of unbonding delegations
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryOperatorUnbondingDelegationsResponse is response type for the Query/OperatorUnbondingDelegations RPC method.

func (*QueryOperatorUnbondingDelegationsResponse) Descriptor

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

func (*QueryOperatorUnbondingDelegationsResponse) GetPagination

func (*QueryOperatorUnbondingDelegationsResponse) GetUnbondingDelegations

func (m *QueryOperatorUnbondingDelegationsResponse) GetUnbondingDelegations() []UnbondingDelegation

func (*QueryOperatorUnbondingDelegationsResponse) Marshal

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

func (*QueryOperatorUnbondingDelegationsResponse) MarshalTo

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

func (*QueryOperatorUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryOperatorUnbondingDelegationsResponse) ProtoMessage

func (*QueryOperatorUnbondingDelegationsResponse) Reset

func (*QueryOperatorUnbondingDelegationsResponse) Size

func (*QueryOperatorUnbondingDelegationsResponse) String

func (*QueryOperatorUnbondingDelegationsResponse) Unmarshal

func (*QueryOperatorUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryOperatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryOperatorUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryOperatorUnbondingDelegationsResponse) XXX_Merge

func (*QueryOperatorUnbondingDelegationsResponse) XXX_Size

func (*QueryOperatorUnbondingDelegationsResponse) XXX_Unmarshal

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func NewQueryParamsRequest

func NewQueryParamsRequest() *QueryParamsRequest

NewQueryParamsRequest creates a new QueryParamsRequest instance

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 QueryPoolDelegationRequest

type QueryPoolDelegationRequest struct {
	// PoolId is the ID of the pool to query
	PoolId uint32 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

QueryPoolDelegationRequest is request type for the Query/PoolDelegation RPC method.

func NewQueryPoolDelegationRequest

func NewQueryPoolDelegationRequest(poolID uint32, delegatorAddress string) *QueryPoolDelegationRequest

NewQueryPoolDelegationRequest creates a new QueryPoolDelegationRequest instance

func (*QueryPoolDelegationRequest) Descriptor

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

func (*QueryPoolDelegationRequest) GetDelegatorAddress

func (m *QueryPoolDelegationRequest) GetDelegatorAddress() string

func (*QueryPoolDelegationRequest) GetPoolId

func (m *QueryPoolDelegationRequest) GetPoolId() uint32

func (*QueryPoolDelegationRequest) Marshal

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

func (*QueryPoolDelegationRequest) MarshalTo

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

func (*QueryPoolDelegationRequest) MarshalToSizedBuffer

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

func (*QueryPoolDelegationRequest) ProtoMessage

func (*QueryPoolDelegationRequest) ProtoMessage()

func (*QueryPoolDelegationRequest) Reset

func (m *QueryPoolDelegationRequest) Reset()

func (*QueryPoolDelegationRequest) Size

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

func (*QueryPoolDelegationRequest) String

func (m *QueryPoolDelegationRequest) String() string

func (*QueryPoolDelegationRequest) Unmarshal

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

func (*QueryPoolDelegationRequest) XXX_DiscardUnknown

func (m *QueryPoolDelegationRequest) XXX_DiscardUnknown()

func (*QueryPoolDelegationRequest) XXX_Marshal

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

func (*QueryPoolDelegationRequest) XXX_Merge

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

func (*QueryPoolDelegationRequest) XXX_Size

func (m *QueryPoolDelegationRequest) XXX_Size() int

func (*QueryPoolDelegationRequest) XXX_Unmarshal

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

type QueryPoolDelegationResponse

type QueryPoolDelegationResponse struct {
	// Delegation is the delegation
	Delegation DelegationResponse `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"`
}

QueryPoolDelegationResponse is response type for the Query/PoolDelegation RPC method.

func (*QueryPoolDelegationResponse) Descriptor

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

func (*QueryPoolDelegationResponse) GetDelegation

func (*QueryPoolDelegationResponse) Marshal

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

func (*QueryPoolDelegationResponse) MarshalTo

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

func (*QueryPoolDelegationResponse) MarshalToSizedBuffer

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

func (*QueryPoolDelegationResponse) ProtoMessage

func (*QueryPoolDelegationResponse) ProtoMessage()

func (*QueryPoolDelegationResponse) Reset

func (m *QueryPoolDelegationResponse) Reset()

func (*QueryPoolDelegationResponse) Size

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

func (*QueryPoolDelegationResponse) String

func (m *QueryPoolDelegationResponse) String() string

func (*QueryPoolDelegationResponse) Unmarshal

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

func (*QueryPoolDelegationResponse) XXX_DiscardUnknown

func (m *QueryPoolDelegationResponse) XXX_DiscardUnknown()

func (*QueryPoolDelegationResponse) XXX_Marshal

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

func (*QueryPoolDelegationResponse) XXX_Merge

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

func (*QueryPoolDelegationResponse) XXX_Size

func (m *QueryPoolDelegationResponse) XXX_Size() int

func (*QueryPoolDelegationResponse) XXX_Unmarshal

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

type QueryPoolDelegationsRequest

type QueryPoolDelegationsRequest struct {
	// PoolId is the ID of the pool to query.
	PoolId uint32 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPoolDelegationsRequest is request type for the Query/PoolDelegations RPC method.

func NewQueryPoolDelegationsRequest

func NewQueryPoolDelegationsRequest(poolID uint32, pagination *query.PageRequest) *QueryPoolDelegationsRequest

NewQueryPoolDelegationsRequest creates a new QueryPoolDelegationsRequest instance

func (*QueryPoolDelegationsRequest) Descriptor

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

func (*QueryPoolDelegationsRequest) GetPagination

func (m *QueryPoolDelegationsRequest) GetPagination() *query.PageRequest

func (*QueryPoolDelegationsRequest) GetPoolId

func (m *QueryPoolDelegationsRequest) GetPoolId() uint32

func (*QueryPoolDelegationsRequest) Marshal

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

func (*QueryPoolDelegationsRequest) MarshalTo

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

func (*QueryPoolDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryPoolDelegationsRequest) ProtoMessage

func (*QueryPoolDelegationsRequest) ProtoMessage()

func (*QueryPoolDelegationsRequest) Reset

func (m *QueryPoolDelegationsRequest) Reset()

func (*QueryPoolDelegationsRequest) Size

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

func (*QueryPoolDelegationsRequest) String

func (m *QueryPoolDelegationsRequest) String() string

func (*QueryPoolDelegationsRequest) Unmarshal

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

func (*QueryPoolDelegationsRequest) XXX_DiscardUnknown

func (m *QueryPoolDelegationsRequest) XXX_DiscardUnknown()

func (*QueryPoolDelegationsRequest) XXX_Marshal

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

func (*QueryPoolDelegationsRequest) XXX_Merge

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

func (*QueryPoolDelegationsRequest) XXX_Size

func (m *QueryPoolDelegationsRequest) XXX_Size() int

func (*QueryPoolDelegationsRequest) XXX_Unmarshal

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

type QueryPoolDelegationsResponse

type QueryPoolDelegationsResponse struct {
	// Delegations is the list of delegations.
	Delegations []DelegationResponse `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPoolDelegationsResponse is response type for the Query/PoolDelegations RPC method.

func (*QueryPoolDelegationsResponse) Descriptor

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

func (*QueryPoolDelegationsResponse) GetDelegations

func (m *QueryPoolDelegationsResponse) GetDelegations() []DelegationResponse

func (*QueryPoolDelegationsResponse) GetPagination

func (m *QueryPoolDelegationsResponse) GetPagination() *query.PageResponse

func (*QueryPoolDelegationsResponse) Marshal

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

func (*QueryPoolDelegationsResponse) MarshalTo

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

func (*QueryPoolDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryPoolDelegationsResponse) ProtoMessage

func (*QueryPoolDelegationsResponse) ProtoMessage()

func (*QueryPoolDelegationsResponse) Reset

func (m *QueryPoolDelegationsResponse) Reset()

func (*QueryPoolDelegationsResponse) Size

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

func (*QueryPoolDelegationsResponse) String

func (*QueryPoolDelegationsResponse) Unmarshal

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

func (*QueryPoolDelegationsResponse) XXX_DiscardUnknown

func (m *QueryPoolDelegationsResponse) XXX_DiscardUnknown()

func (*QueryPoolDelegationsResponse) XXX_Marshal

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

func (*QueryPoolDelegationsResponse) XXX_Merge

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

func (*QueryPoolDelegationsResponse) XXX_Size

func (m *QueryPoolDelegationsResponse) XXX_Size() int

func (*QueryPoolDelegationsResponse) XXX_Unmarshal

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

type QueryPoolUnbondingDelegationRequest

type QueryPoolUnbondingDelegationRequest struct {
	PoolId           uint32 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

QueryPoolUnbondingDelegationRequest is request type for the Query/PoolUnbondingDelegation RPC method.

func NewQueryPoolUnbondingDelegationRequest

func NewQueryPoolUnbondingDelegationRequest(poolID uint32, delegatorAddress string) *QueryPoolUnbondingDelegationRequest

NewQueryPoolUnbondingDelegationRequest creates a new QueryPoolUnbondingDelegationRequest instance

func (*QueryPoolUnbondingDelegationRequest) Descriptor

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

func (*QueryPoolUnbondingDelegationRequest) GetDelegatorAddress

func (m *QueryPoolUnbondingDelegationRequest) GetDelegatorAddress() string

func (*QueryPoolUnbondingDelegationRequest) GetPoolId

func (*QueryPoolUnbondingDelegationRequest) Marshal

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

func (*QueryPoolUnbondingDelegationRequest) MarshalTo

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

func (*QueryPoolUnbondingDelegationRequest) MarshalToSizedBuffer

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

func (*QueryPoolUnbondingDelegationRequest) ProtoMessage

func (*QueryPoolUnbondingDelegationRequest) ProtoMessage()

func (*QueryPoolUnbondingDelegationRequest) Reset

func (*QueryPoolUnbondingDelegationRequest) Size

func (*QueryPoolUnbondingDelegationRequest) String

func (*QueryPoolUnbondingDelegationRequest) Unmarshal

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

func (*QueryPoolUnbondingDelegationRequest) XXX_DiscardUnknown

func (m *QueryPoolUnbondingDelegationRequest) XXX_DiscardUnknown()

func (*QueryPoolUnbondingDelegationRequest) XXX_Marshal

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

func (*QueryPoolUnbondingDelegationRequest) XXX_Merge

func (*QueryPoolUnbondingDelegationRequest) XXX_Size

func (*QueryPoolUnbondingDelegationRequest) XXX_Unmarshal

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

type QueryPoolUnbondingDelegationResponse

type QueryPoolUnbondingDelegationResponse struct {
	UnbondingDelegation UnbondingDelegation `protobuf:"bytes,1,opt,name=unbonding_delegation,json=unbondingDelegation,proto3" json:"unbonding_delegation"`
}

QueryPoolUnbondingDelegationResponse is response type for the Query/PoolUnbondingDelegation RPC method.

func (*QueryPoolUnbondingDelegationResponse) Descriptor

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

func (*QueryPoolUnbondingDelegationResponse) GetUnbondingDelegation

func (m *QueryPoolUnbondingDelegationResponse) GetUnbondingDelegation() UnbondingDelegation

func (*QueryPoolUnbondingDelegationResponse) Marshal

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

func (*QueryPoolUnbondingDelegationResponse) MarshalTo

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

func (*QueryPoolUnbondingDelegationResponse) MarshalToSizedBuffer

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

func (*QueryPoolUnbondingDelegationResponse) ProtoMessage

func (*QueryPoolUnbondingDelegationResponse) ProtoMessage()

func (*QueryPoolUnbondingDelegationResponse) Reset

func (*QueryPoolUnbondingDelegationResponse) Size

func (*QueryPoolUnbondingDelegationResponse) String

func (*QueryPoolUnbondingDelegationResponse) Unmarshal

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

func (*QueryPoolUnbondingDelegationResponse) XXX_DiscardUnknown

func (m *QueryPoolUnbondingDelegationResponse) XXX_DiscardUnknown()

func (*QueryPoolUnbondingDelegationResponse) XXX_Marshal

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

func (*QueryPoolUnbondingDelegationResponse) XXX_Merge

func (*QueryPoolUnbondingDelegationResponse) XXX_Size

func (*QueryPoolUnbondingDelegationResponse) XXX_Unmarshal

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

type QueryPoolUnbondingDelegationsRequest

type QueryPoolUnbondingDelegationsRequest struct {
	PoolId     uint32             `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPoolUnbondingDelegationsRequest is request type for the Query/PoolUnbondingDelegations RPC method.

func NewQueryPoolUnbondingDelegationsRequest

func NewQueryPoolUnbondingDelegationsRequest(poolID uint32, pagination *query.PageRequest) *QueryPoolUnbondingDelegationsRequest

NewQueryPoolUnbondingDelegationsRequest creates a new QueryPoolUnbondingDelegationsRequest instance

func (*QueryPoolUnbondingDelegationsRequest) Descriptor

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

func (*QueryPoolUnbondingDelegationsRequest) GetPagination

func (*QueryPoolUnbondingDelegationsRequest) GetPoolId

func (*QueryPoolUnbondingDelegationsRequest) Marshal

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

func (*QueryPoolUnbondingDelegationsRequest) MarshalTo

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

func (*QueryPoolUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryPoolUnbondingDelegationsRequest) ProtoMessage

func (*QueryPoolUnbondingDelegationsRequest) ProtoMessage()

func (*QueryPoolUnbondingDelegationsRequest) Reset

func (*QueryPoolUnbondingDelegationsRequest) Size

func (*QueryPoolUnbondingDelegationsRequest) String

func (*QueryPoolUnbondingDelegationsRequest) Unmarshal

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

func (*QueryPoolUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryPoolUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryPoolUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryPoolUnbondingDelegationsRequest) XXX_Merge

func (*QueryPoolUnbondingDelegationsRequest) XXX_Size

func (*QueryPoolUnbondingDelegationsRequest) XXX_Unmarshal

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

type QueryPoolUnbondingDelegationsResponse

type QueryPoolUnbondingDelegationsResponse struct {
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	Pagination           *query.PageResponse   `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryPoolUnbondingDelegationsResponse is response type for the Query/PoolUnbondingDelegations RPC method.

func (*QueryPoolUnbondingDelegationsResponse) Descriptor

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

func (*QueryPoolUnbondingDelegationsResponse) GetPagination

func (*QueryPoolUnbondingDelegationsResponse) GetUnbondingDelegations

func (m *QueryPoolUnbondingDelegationsResponse) GetUnbondingDelegations() []UnbondingDelegation

func (*QueryPoolUnbondingDelegationsResponse) Marshal

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

func (*QueryPoolUnbondingDelegationsResponse) MarshalTo

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

func (*QueryPoolUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryPoolUnbondingDelegationsResponse) ProtoMessage

func (*QueryPoolUnbondingDelegationsResponse) ProtoMessage()

func (*QueryPoolUnbondingDelegationsResponse) Reset

func (*QueryPoolUnbondingDelegationsResponse) Size

func (*QueryPoolUnbondingDelegationsResponse) String

func (*QueryPoolUnbondingDelegationsResponse) Unmarshal

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

func (*QueryPoolUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryPoolUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryPoolUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryPoolUnbondingDelegationsResponse) XXX_Merge

func (*QueryPoolUnbondingDelegationsResponse) XXX_Size

func (*QueryPoolUnbondingDelegationsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// OperatorJoinedServices queries the services that an operator has joined.
	OperatorJoinedServices(context.Context, *QueryOperatorJoinedServicesRequest) (*QueryOperatorJoinedServicesResponse, error)
	// ServiceAllowedOperators queries the allowed operators for a given service.
	ServiceAllowedOperators(context.Context, *QueryServiceAllowedOperatorsRequest) (*QueryServiceAllowedOperatorsResponse, error)
	// ServiceSecuringPools queries the pools that are securing a given service.
	ServiceSecuringPools(context.Context, *QueryServiceSecuringPoolsRequest) (*QueryServiceSecuringPoolsResponse, error)
	ServiceOperators(context.Context, *QueryServiceOperatorsRequest) (*QueryServiceOperatorsResponse, error)
	// PoolDelegations queries the delegations info for the given pool.
	PoolDelegations(context.Context, *QueryPoolDelegationsRequest) (*QueryPoolDelegationsResponse, error)
	// PoolDelegation queries the delegation info for the given pool and
	// delegator.
	PoolDelegation(context.Context, *QueryPoolDelegationRequest) (*QueryPoolDelegationResponse, error)
	// PoolUnbondingDelegations queries the unbonding delegations info for the
	// given pool.
	PoolUnbondingDelegations(context.Context, *QueryPoolUnbondingDelegationsRequest) (*QueryPoolUnbondingDelegationsResponse, error)
	// PoolUnbondingDelegation queries the unbonding delegation info for the given
	// pool and delegator.
	PoolUnbondingDelegation(context.Context, *QueryPoolUnbondingDelegationRequest) (*QueryPoolUnbondingDelegationResponse, error)
	// OperatorDelegations queries the delegations info for the given operator.
	OperatorDelegations(context.Context, *QueryOperatorDelegationsRequest) (*QueryOperatorDelegationsResponse, error)
	// OperatorDelegation queries the delegation info for the given operator and
	// delegator.
	OperatorDelegation(context.Context, *QueryOperatorDelegationRequest) (*QueryOperatorDelegationResponse, error)
	// OperatorUnbondingDelegations queries the unbonding delegations info for the
	// given operator.
	OperatorUnbondingDelegations(context.Context, *QueryOperatorUnbondingDelegationsRequest) (*QueryOperatorUnbondingDelegationsResponse, error)
	// OperatorUnbondingDelegation queries the unbonding delegation info for the
	// given operator and delegator.
	OperatorUnbondingDelegation(context.Context, *QueryOperatorUnbondingDelegationRequest) (*QueryOperatorUnbondingDelegationResponse, error)
	// ServiceDelegations queries the delegations info for the given service.
	ServiceDelegations(context.Context, *QueryServiceDelegationsRequest) (*QueryServiceDelegationsResponse, error)
	// ServiceDelegation queries the delegation info for the given service and
	// delegator.
	ServiceDelegation(context.Context, *QueryServiceDelegationRequest) (*QueryServiceDelegationResponse, error)
	// ServiceUnbondingDelegations queries the unbonding delegations info for the
	// given service.
	ServiceUnbondingDelegations(context.Context, *QueryServiceUnbondingDelegationsRequest) (*QueryServiceUnbondingDelegationsResponse, error)
	// ServiceUnbondingDelegation queries the unbonding delegation info for the
	// given service and delegator.
	ServiceUnbondingDelegation(context.Context, *QueryServiceUnbondingDelegationRequest) (*QueryServiceUnbondingDelegationResponse, error)
	// DelegatorPoolDelegations queries all the pool delegations of a given
	// delegator address.
	DelegatorPoolDelegations(context.Context, *QueryDelegatorPoolDelegationsRequest) (*QueryDelegatorPoolDelegationsResponse, error)
	// DelegatorPoolUnbondingDelegations queries all the pool unbonding
	// delegations of a given delegator address.
	DelegatorPoolUnbondingDelegations(context.Context, *QueryDelegatorPoolUnbondingDelegationsRequest) (*QueryDelegatorPoolUnbondingDelegationsResponse, error)
	// DelegatorOperatorDelegations queries all the operator delegations of a
	// given delegator address.
	DelegatorOperatorDelegations(context.Context, *QueryDelegatorOperatorDelegationsRequest) (*QueryDelegatorOperatorDelegationsResponse, error)
	// DelegatorOperatorUnbondingDelegations queries all the operator unbonding
	// delegations of a given delegator address.
	DelegatorOperatorUnbondingDelegations(context.Context, *QueryDelegatorOperatorUnbondingDelegationsRequest) (*QueryDelegatorOperatorUnbondingDelegationsResponse, error)
	// DelegatorServiceDelegations queries all the service delegations of a given
	// delegator address.
	DelegatorServiceDelegations(context.Context, *QueryDelegatorServiceDelegationsRequest) (*QueryDelegatorServiceDelegationsResponse, error)
	// DelegatorServiceUnbondingDelegations queries all the service unbonding
	// delegations of a given delegator address.
	DelegatorServiceUnbondingDelegations(context.Context, *QueryDelegatorServiceUnbondingDelegationsRequest) (*QueryDelegatorServiceUnbondingDelegationsResponse, error)
	// DelegatorPools queries all pools info for given delegator
	// address.
	DelegatorPools(context.Context, *QueryDelegatorPoolsRequest) (*QueryDelegatorPoolsResponse, error)
	// DelegatorPool queries the pool info for given delegator and pool id.
	DelegatorPool(context.Context, *QueryDelegatorPoolRequest) (*QueryDelegatorPoolResponse, error)
	// DelegatorOperators queries all operators info for given delegator
	DelegatorOperators(context.Context, *QueryDelegatorOperatorsRequest) (*QueryDelegatorOperatorsResponse, error)
	// DelegatorOperator queries the operator info for given delegator and
	// operator id.
	DelegatorOperator(context.Context, *QueryDelegatorOperatorRequest) (*QueryDelegatorOperatorResponse, error)
	// DelegatorServices queries all services info for given delegator
	DelegatorServices(context.Context, *QueryDelegatorServicesRequest) (*QueryDelegatorServicesResponse, error)
	// DelegatorService queries the service info for given delegator and service
	// id.
	DelegatorService(context.Context, *QueryDelegatorServiceRequest) (*QueryDelegatorServiceResponse, error)
	// Params queries the restaking parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryServiceAllowedOperatorsRequest added in v1.3.0

type QueryServiceAllowedOperatorsRequest struct {
	// ServiceId is the ID of the service to query
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceAllowedOperatorsRequest is request type for the Query/ServiceAllowedOperators RPC method.

func NewQueryServiceAllowedOperatorsRequest added in v1.3.0

func NewQueryServiceAllowedOperatorsRequest(serviceID uint32, pagination *query.PageRequest) *QueryServiceAllowedOperatorsRequest

NewQueryServiceAllowedOperatorsRequest creates a new QueryServiceAllowedOperatorsRequest instance

func (*QueryServiceAllowedOperatorsRequest) Descriptor added in v1.3.0

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

func (*QueryServiceAllowedOperatorsRequest) GetPagination added in v1.3.0

func (*QueryServiceAllowedOperatorsRequest) GetServiceId added in v1.3.0

func (m *QueryServiceAllowedOperatorsRequest) GetServiceId() uint32

func (*QueryServiceAllowedOperatorsRequest) Marshal added in v1.3.0

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

func (*QueryServiceAllowedOperatorsRequest) MarshalTo added in v1.3.0

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

func (*QueryServiceAllowedOperatorsRequest) MarshalToSizedBuffer added in v1.3.0

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

func (*QueryServiceAllowedOperatorsRequest) ProtoMessage added in v1.3.0

func (*QueryServiceAllowedOperatorsRequest) ProtoMessage()

func (*QueryServiceAllowedOperatorsRequest) Reset added in v1.3.0

func (*QueryServiceAllowedOperatorsRequest) Size added in v1.3.0

func (*QueryServiceAllowedOperatorsRequest) String added in v1.3.0

func (*QueryServiceAllowedOperatorsRequest) Unmarshal added in v1.3.0

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

func (*QueryServiceAllowedOperatorsRequest) XXX_DiscardUnknown added in v1.3.0

func (m *QueryServiceAllowedOperatorsRequest) XXX_DiscardUnknown()

func (*QueryServiceAllowedOperatorsRequest) XXX_Marshal added in v1.3.0

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

func (*QueryServiceAllowedOperatorsRequest) XXX_Merge added in v1.3.0

func (*QueryServiceAllowedOperatorsRequest) XXX_Size added in v1.3.0

func (*QueryServiceAllowedOperatorsRequest) XXX_Unmarshal added in v1.3.0

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

type QueryServiceAllowedOperatorsResponse added in v1.3.0

type QueryServiceAllowedOperatorsResponse struct {
	// OperatorIds is the list of operators allowed to validate the service
	OperatorIds []uint32 `protobuf:"varint,1,rep,packed,name=operator_ids,json=operatorIds,proto3" json:"operator_ids,omitempty"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceAllowedOperatorsResponse is response type for the Query/ServiceAllowedOperators RPC method.

func (*QueryServiceAllowedOperatorsResponse) Descriptor added in v1.3.0

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

func (*QueryServiceAllowedOperatorsResponse) GetOperatorIds added in v1.3.0

func (m *QueryServiceAllowedOperatorsResponse) GetOperatorIds() []uint32

func (*QueryServiceAllowedOperatorsResponse) GetPagination added in v1.3.0

func (*QueryServiceAllowedOperatorsResponse) Marshal added in v1.3.0

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

func (*QueryServiceAllowedOperatorsResponse) MarshalTo added in v1.3.0

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

func (*QueryServiceAllowedOperatorsResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*QueryServiceAllowedOperatorsResponse) ProtoMessage added in v1.3.0

func (*QueryServiceAllowedOperatorsResponse) ProtoMessage()

func (*QueryServiceAllowedOperatorsResponse) Reset added in v1.3.0

func (*QueryServiceAllowedOperatorsResponse) Size added in v1.3.0

func (*QueryServiceAllowedOperatorsResponse) String added in v1.3.0

func (*QueryServiceAllowedOperatorsResponse) Unmarshal added in v1.3.0

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

func (*QueryServiceAllowedOperatorsResponse) XXX_DiscardUnknown added in v1.3.0

func (m *QueryServiceAllowedOperatorsResponse) XXX_DiscardUnknown()

func (*QueryServiceAllowedOperatorsResponse) XXX_Marshal added in v1.3.0

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

func (*QueryServiceAllowedOperatorsResponse) XXX_Merge added in v1.3.0

func (*QueryServiceAllowedOperatorsResponse) XXX_Size added in v1.3.0

func (*QueryServiceAllowedOperatorsResponse) XXX_Unmarshal added in v1.3.0

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

type QueryServiceDelegationRequest

type QueryServiceDelegationRequest struct {
	// ServiceId is the ID of the service to query
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

QueryServiceDelegationRequest is request type for the Query/ServiceDelegation RPC method.

func NewQueryServiceDelegationRequest

func NewQueryServiceDelegationRequest(serviceID uint32, delegatorAddress string) *QueryServiceDelegationRequest

NewQueryServiceDelegationRequest creates a new QueryServiceDelegationRequest instance

func (*QueryServiceDelegationRequest) Descriptor

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

func (*QueryServiceDelegationRequest) GetDelegatorAddress

func (m *QueryServiceDelegationRequest) GetDelegatorAddress() string

func (*QueryServiceDelegationRequest) GetServiceId

func (m *QueryServiceDelegationRequest) GetServiceId() uint32

func (*QueryServiceDelegationRequest) Marshal

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

func (*QueryServiceDelegationRequest) MarshalTo

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

func (*QueryServiceDelegationRequest) MarshalToSizedBuffer

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

func (*QueryServiceDelegationRequest) ProtoMessage

func (*QueryServiceDelegationRequest) ProtoMessage()

func (*QueryServiceDelegationRequest) Reset

func (m *QueryServiceDelegationRequest) Reset()

func (*QueryServiceDelegationRequest) Size

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

func (*QueryServiceDelegationRequest) String

func (*QueryServiceDelegationRequest) Unmarshal

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

func (*QueryServiceDelegationRequest) XXX_DiscardUnknown

func (m *QueryServiceDelegationRequest) XXX_DiscardUnknown()

func (*QueryServiceDelegationRequest) XXX_Marshal

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

func (*QueryServiceDelegationRequest) XXX_Merge

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

func (*QueryServiceDelegationRequest) XXX_Size

func (m *QueryServiceDelegationRequest) XXX_Size() int

func (*QueryServiceDelegationRequest) XXX_Unmarshal

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

type QueryServiceDelegationResponse

type QueryServiceDelegationResponse struct {
	// Delegation is the delegation
	Delegation DelegationResponse `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation"`
}

QueryServiceDelegationResponse is response type for the Query/ServiceDelegation RPC method.

func (*QueryServiceDelegationResponse) Descriptor

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

func (*QueryServiceDelegationResponse) GetDelegation

func (*QueryServiceDelegationResponse) Marshal

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

func (*QueryServiceDelegationResponse) MarshalTo

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

func (*QueryServiceDelegationResponse) MarshalToSizedBuffer

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

func (*QueryServiceDelegationResponse) ProtoMessage

func (*QueryServiceDelegationResponse) ProtoMessage()

func (*QueryServiceDelegationResponse) Reset

func (m *QueryServiceDelegationResponse) Reset()

func (*QueryServiceDelegationResponse) Size

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

func (*QueryServiceDelegationResponse) String

func (*QueryServiceDelegationResponse) Unmarshal

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

func (*QueryServiceDelegationResponse) XXX_DiscardUnknown

func (m *QueryServiceDelegationResponse) XXX_DiscardUnknown()

func (*QueryServiceDelegationResponse) XXX_Marshal

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

func (*QueryServiceDelegationResponse) XXX_Merge

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

func (*QueryServiceDelegationResponse) XXX_Size

func (m *QueryServiceDelegationResponse) XXX_Size() int

func (*QueryServiceDelegationResponse) XXX_Unmarshal

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

type QueryServiceDelegationsRequest

type QueryServiceDelegationsRequest struct {
	// ServiceId is the ID of the service to query
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceDelegationsRequest is request type for the Query/ServiceDelegations RPC method.

func NewQueryServiceDelegationsRequest

func NewQueryServiceDelegationsRequest(serviceID uint32, pagination *query.PageRequest) *QueryServiceDelegationsRequest

NewQueryServiceDelegationsRequest creates a new QueryServiceDelegationsRequest instance

func (*QueryServiceDelegationsRequest) Descriptor

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

func (*QueryServiceDelegationsRequest) GetPagination

func (m *QueryServiceDelegationsRequest) GetPagination() *query.PageRequest

func (*QueryServiceDelegationsRequest) GetServiceId

func (m *QueryServiceDelegationsRequest) GetServiceId() uint32

func (*QueryServiceDelegationsRequest) Marshal

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

func (*QueryServiceDelegationsRequest) MarshalTo

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

func (*QueryServiceDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryServiceDelegationsRequest) ProtoMessage

func (*QueryServiceDelegationsRequest) ProtoMessage()

func (*QueryServiceDelegationsRequest) Reset

func (m *QueryServiceDelegationsRequest) Reset()

func (*QueryServiceDelegationsRequest) Size

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

func (*QueryServiceDelegationsRequest) String

func (*QueryServiceDelegationsRequest) Unmarshal

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

func (*QueryServiceDelegationsRequest) XXX_DiscardUnknown

func (m *QueryServiceDelegationsRequest) XXX_DiscardUnknown()

func (*QueryServiceDelegationsRequest) XXX_Marshal

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

func (*QueryServiceDelegationsRequest) XXX_Merge

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

func (*QueryServiceDelegationsRequest) XXX_Size

func (m *QueryServiceDelegationsRequest) XXX_Size() int

func (*QueryServiceDelegationsRequest) XXX_Unmarshal

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

type QueryServiceDelegationsResponse

type QueryServiceDelegationsResponse struct {
	// Delegations is the list of delegations
	Delegations []DelegationResponse `protobuf:"bytes,1,rep,name=delegations,proto3" json:"delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceDelegationsResponse is response type for the Query/ServiceDelegations RPC method.

func (*QueryServiceDelegationsResponse) Descriptor

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

func (*QueryServiceDelegationsResponse) GetDelegations

func (*QueryServiceDelegationsResponse) GetPagination

func (*QueryServiceDelegationsResponse) Marshal

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

func (*QueryServiceDelegationsResponse) MarshalTo

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

func (*QueryServiceDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryServiceDelegationsResponse) ProtoMessage

func (*QueryServiceDelegationsResponse) ProtoMessage()

func (*QueryServiceDelegationsResponse) Reset

func (*QueryServiceDelegationsResponse) Size

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

func (*QueryServiceDelegationsResponse) String

func (*QueryServiceDelegationsResponse) Unmarshal

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

func (*QueryServiceDelegationsResponse) XXX_DiscardUnknown

func (m *QueryServiceDelegationsResponse) XXX_DiscardUnknown()

func (*QueryServiceDelegationsResponse) XXX_Marshal

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

func (*QueryServiceDelegationsResponse) XXX_Merge

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

func (*QueryServiceDelegationsResponse) XXX_Size

func (m *QueryServiceDelegationsResponse) XXX_Size() int

func (*QueryServiceDelegationsResponse) XXX_Unmarshal

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

type QueryServiceOperatorsRequest added in v1.3.0

type QueryServiceOperatorsRequest struct {
	// ServiceId is the ID of the service to query
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceOperatorsRequest is request type for the Query/ServiceOperators RPC method.

func NewQueryServiceOperatorsRequest added in v1.3.0

func NewQueryServiceOperatorsRequest(serviceID uint32, pagination *query.PageRequest) *QueryServiceOperatorsRequest

NewQueryServiceOperatorsRequest creates a new QueryServiceOperatorsRequest instance

func (*QueryServiceOperatorsRequest) Descriptor added in v1.3.0

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

func (*QueryServiceOperatorsRequest) GetPagination added in v1.3.0

func (m *QueryServiceOperatorsRequest) GetPagination() *query.PageRequest

func (*QueryServiceOperatorsRequest) GetServiceId added in v1.3.0

func (m *QueryServiceOperatorsRequest) GetServiceId() uint32

func (*QueryServiceOperatorsRequest) Marshal added in v1.3.0

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

func (*QueryServiceOperatorsRequest) MarshalTo added in v1.3.0

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

func (*QueryServiceOperatorsRequest) MarshalToSizedBuffer added in v1.3.0

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

func (*QueryServiceOperatorsRequest) ProtoMessage added in v1.3.0

func (*QueryServiceOperatorsRequest) ProtoMessage()

func (*QueryServiceOperatorsRequest) Reset added in v1.3.0

func (m *QueryServiceOperatorsRequest) Reset()

func (*QueryServiceOperatorsRequest) Size added in v1.3.0

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

func (*QueryServiceOperatorsRequest) String added in v1.3.0

func (*QueryServiceOperatorsRequest) Unmarshal added in v1.3.0

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

func (*QueryServiceOperatorsRequest) XXX_DiscardUnknown added in v1.3.0

func (m *QueryServiceOperatorsRequest) XXX_DiscardUnknown()

func (*QueryServiceOperatorsRequest) XXX_Marshal added in v1.3.0

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

func (*QueryServiceOperatorsRequest) XXX_Merge added in v1.3.0

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

func (*QueryServiceOperatorsRequest) XXX_Size added in v1.3.0

func (m *QueryServiceOperatorsRequest) XXX_Size() int

func (*QueryServiceOperatorsRequest) XXX_Unmarshal added in v1.3.0

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

type QueryServiceOperatorsResponse added in v1.3.0

type QueryServiceOperatorsResponse struct {
	// Operators is the list of operators
	Operators []types.Operator `protobuf:"bytes,1,rep,name=operators,proto3" json:"operators"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceOperatorsResponse is response type for the Query/ServiceOperators RPC method.

func (*QueryServiceOperatorsResponse) Descriptor added in v1.3.0

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

func (*QueryServiceOperatorsResponse) GetOperators added in v1.3.0

func (m *QueryServiceOperatorsResponse) GetOperators() []types.Operator

func (*QueryServiceOperatorsResponse) GetPagination added in v1.3.0

func (m *QueryServiceOperatorsResponse) GetPagination() *query.PageResponse

func (*QueryServiceOperatorsResponse) Marshal added in v1.3.0

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

func (*QueryServiceOperatorsResponse) MarshalTo added in v1.3.0

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

func (*QueryServiceOperatorsResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*QueryServiceOperatorsResponse) ProtoMessage added in v1.3.0

func (*QueryServiceOperatorsResponse) ProtoMessage()

func (*QueryServiceOperatorsResponse) Reset added in v1.3.0

func (m *QueryServiceOperatorsResponse) Reset()

func (*QueryServiceOperatorsResponse) Size added in v1.3.0

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

func (*QueryServiceOperatorsResponse) String added in v1.3.0

func (*QueryServiceOperatorsResponse) Unmarshal added in v1.3.0

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

func (*QueryServiceOperatorsResponse) XXX_DiscardUnknown added in v1.3.0

func (m *QueryServiceOperatorsResponse) XXX_DiscardUnknown()

func (*QueryServiceOperatorsResponse) XXX_Marshal added in v1.3.0

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

func (*QueryServiceOperatorsResponse) XXX_Merge added in v1.3.0

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

func (*QueryServiceOperatorsResponse) XXX_Size added in v1.3.0

func (m *QueryServiceOperatorsResponse) XXX_Size() int

func (*QueryServiceOperatorsResponse) XXX_Unmarshal added in v1.3.0

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

type QueryServiceSecuringPoolsRequest added in v1.3.0

type QueryServiceSecuringPoolsRequest struct {
	// ServiceId is the ID of the service to query.
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceSecuringPoolsRequest is request type for the Query/ServiceSecuringPools RPC method.

func NewQueryServiceSecuringPoolsRequest added in v1.3.0

func NewQueryServiceSecuringPoolsRequest(serviceID uint32, pagination *query.PageRequest) *QueryServiceSecuringPoolsRequest

NewQueryServiceSecuringPoolsRequest creates a new QueryServiceSecuringPoolsRequest instance

func (*QueryServiceSecuringPoolsRequest) Descriptor added in v1.3.0

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

func (*QueryServiceSecuringPoolsRequest) GetPagination added in v1.3.0

func (*QueryServiceSecuringPoolsRequest) GetServiceId added in v1.3.0

func (m *QueryServiceSecuringPoolsRequest) GetServiceId() uint32

func (*QueryServiceSecuringPoolsRequest) Marshal added in v1.3.0

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

func (*QueryServiceSecuringPoolsRequest) MarshalTo added in v1.3.0

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

func (*QueryServiceSecuringPoolsRequest) MarshalToSizedBuffer added in v1.3.0

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

func (*QueryServiceSecuringPoolsRequest) ProtoMessage added in v1.3.0

func (*QueryServiceSecuringPoolsRequest) ProtoMessage()

func (*QueryServiceSecuringPoolsRequest) Reset added in v1.3.0

func (*QueryServiceSecuringPoolsRequest) Size added in v1.3.0

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

func (*QueryServiceSecuringPoolsRequest) String added in v1.3.0

func (*QueryServiceSecuringPoolsRequest) Unmarshal added in v1.3.0

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

func (*QueryServiceSecuringPoolsRequest) XXX_DiscardUnknown added in v1.3.0

func (m *QueryServiceSecuringPoolsRequest) XXX_DiscardUnknown()

func (*QueryServiceSecuringPoolsRequest) XXX_Marshal added in v1.3.0

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

func (*QueryServiceSecuringPoolsRequest) XXX_Merge added in v1.3.0

func (*QueryServiceSecuringPoolsRequest) XXX_Size added in v1.3.0

func (m *QueryServiceSecuringPoolsRequest) XXX_Size() int

func (*QueryServiceSecuringPoolsRequest) XXX_Unmarshal added in v1.3.0

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

type QueryServiceSecuringPoolsResponse added in v1.3.0

type QueryServiceSecuringPoolsResponse struct {
	// PoolIds is the list of pools from which the service is allowed to borrow
	// security.
	PoolIds []uint32 `protobuf:"varint,1,rep,packed,name=pool_ids,json=poolIds,proto3" json:"pool_ids,omitempty"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceSecuringPoolsResponse is response type for the Query/ServiceSecuringPools RPC method.

func (*QueryServiceSecuringPoolsResponse) Descriptor added in v1.3.0

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

func (*QueryServiceSecuringPoolsResponse) GetPagination added in v1.3.0

func (*QueryServiceSecuringPoolsResponse) GetPoolIds added in v1.3.0

func (m *QueryServiceSecuringPoolsResponse) GetPoolIds() []uint32

func (*QueryServiceSecuringPoolsResponse) Marshal added in v1.3.0

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

func (*QueryServiceSecuringPoolsResponse) MarshalTo added in v1.3.0

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

func (*QueryServiceSecuringPoolsResponse) MarshalToSizedBuffer added in v1.3.0

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

func (*QueryServiceSecuringPoolsResponse) ProtoMessage added in v1.3.0

func (*QueryServiceSecuringPoolsResponse) ProtoMessage()

func (*QueryServiceSecuringPoolsResponse) Reset added in v1.3.0

func (*QueryServiceSecuringPoolsResponse) Size added in v1.3.0

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

func (*QueryServiceSecuringPoolsResponse) String added in v1.3.0

func (*QueryServiceSecuringPoolsResponse) Unmarshal added in v1.3.0

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

func (*QueryServiceSecuringPoolsResponse) XXX_DiscardUnknown added in v1.3.0

func (m *QueryServiceSecuringPoolsResponse) XXX_DiscardUnknown()

func (*QueryServiceSecuringPoolsResponse) XXX_Marshal added in v1.3.0

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

func (*QueryServiceSecuringPoolsResponse) XXX_Merge added in v1.3.0

func (*QueryServiceSecuringPoolsResponse) XXX_Size added in v1.3.0

func (m *QueryServiceSecuringPoolsResponse) XXX_Size() int

func (*QueryServiceSecuringPoolsResponse) XXX_Unmarshal added in v1.3.0

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

type QueryServiceUnbondingDelegationRequest

type QueryServiceUnbondingDelegationRequest struct {
	// ServiceId is the ID of the service to query
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// DelegatorAddress is the address of the delegator to query
	DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
}

QueryServiceUnbondingDelegationRequest is request type for the Query/ServiceUnbondingDelegation RPC method.

func NewQueryServiceUnbondingDelegationRequest

func NewQueryServiceUnbondingDelegationRequest(serviceID uint32, delegatorAddress string) *QueryServiceUnbondingDelegationRequest

NewQueryServiceUnbondingDelegationRequest creates a new QueryServiceUnbondingDelegationRequest instance

func (*QueryServiceUnbondingDelegationRequest) Descriptor

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

func (*QueryServiceUnbondingDelegationRequest) GetDelegatorAddress

func (m *QueryServiceUnbondingDelegationRequest) GetDelegatorAddress() string

func (*QueryServiceUnbondingDelegationRequest) GetServiceId

func (*QueryServiceUnbondingDelegationRequest) Marshal

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

func (*QueryServiceUnbondingDelegationRequest) MarshalTo

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

func (*QueryServiceUnbondingDelegationRequest) MarshalToSizedBuffer

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

func (*QueryServiceUnbondingDelegationRequest) ProtoMessage

func (*QueryServiceUnbondingDelegationRequest) Reset

func (*QueryServiceUnbondingDelegationRequest) Size

func (*QueryServiceUnbondingDelegationRequest) String

func (*QueryServiceUnbondingDelegationRequest) Unmarshal

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

func (*QueryServiceUnbondingDelegationRequest) XXX_DiscardUnknown

func (m *QueryServiceUnbondingDelegationRequest) XXX_DiscardUnknown()

func (*QueryServiceUnbondingDelegationRequest) XXX_Marshal

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

func (*QueryServiceUnbondingDelegationRequest) XXX_Merge

func (*QueryServiceUnbondingDelegationRequest) XXX_Size

func (*QueryServiceUnbondingDelegationRequest) XXX_Unmarshal

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

type QueryServiceUnbondingDelegationResponse

type QueryServiceUnbondingDelegationResponse struct {
	// UnbondingDelegation is the unbonding delegation
	UnbondingDelegation UnbondingDelegation `protobuf:"bytes,1,opt,name=unbonding_delegation,json=unbondingDelegation,proto3" json:"unbonding_delegation"`
}

QueryServiceUnbondingDelegationResponse is response type for the Query/ServiceUnbondingDelegation RPC method.

func (*QueryServiceUnbondingDelegationResponse) Descriptor

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

func (*QueryServiceUnbondingDelegationResponse) GetUnbondingDelegation

func (*QueryServiceUnbondingDelegationResponse) Marshal

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

func (*QueryServiceUnbondingDelegationResponse) MarshalTo

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

func (*QueryServiceUnbondingDelegationResponse) MarshalToSizedBuffer

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

func (*QueryServiceUnbondingDelegationResponse) ProtoMessage

func (*QueryServiceUnbondingDelegationResponse) Reset

func (*QueryServiceUnbondingDelegationResponse) Size

func (*QueryServiceUnbondingDelegationResponse) String

func (*QueryServiceUnbondingDelegationResponse) Unmarshal

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

func (*QueryServiceUnbondingDelegationResponse) XXX_DiscardUnknown

func (m *QueryServiceUnbondingDelegationResponse) XXX_DiscardUnknown()

func (*QueryServiceUnbondingDelegationResponse) XXX_Marshal

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

func (*QueryServiceUnbondingDelegationResponse) XXX_Merge

func (*QueryServiceUnbondingDelegationResponse) XXX_Size

func (*QueryServiceUnbondingDelegationResponse) XXX_Unmarshal

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

type QueryServiceUnbondingDelegationsRequest

type QueryServiceUnbondingDelegationsRequest struct {
	// ServiceId is the ID of the service to query
	ServiceId uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceUnbondingDelegationsRequest is request type for the Query/ServiceUnbondingDelegations RPC method.

func NewQueryServiceUnbondingDelegationsRequest

func NewQueryServiceUnbondingDelegationsRequest(serviceID uint32, pagination *query.PageRequest) *QueryServiceUnbondingDelegationsRequest

NewQueryServiceUnbondingDelegationsRequest creates a new QueryServiceUnbondingDelegationsRequest instance

func (*QueryServiceUnbondingDelegationsRequest) Descriptor

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

func (*QueryServiceUnbondingDelegationsRequest) GetPagination

func (*QueryServiceUnbondingDelegationsRequest) GetServiceId

func (*QueryServiceUnbondingDelegationsRequest) Marshal

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

func (*QueryServiceUnbondingDelegationsRequest) MarshalTo

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

func (*QueryServiceUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryServiceUnbondingDelegationsRequest) ProtoMessage

func (*QueryServiceUnbondingDelegationsRequest) Reset

func (*QueryServiceUnbondingDelegationsRequest) Size

func (*QueryServiceUnbondingDelegationsRequest) String

func (*QueryServiceUnbondingDelegationsRequest) Unmarshal

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

func (*QueryServiceUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryServiceUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryServiceUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryServiceUnbondingDelegationsRequest) XXX_Merge

func (*QueryServiceUnbondingDelegationsRequest) XXX_Size

func (*QueryServiceUnbondingDelegationsRequest) XXX_Unmarshal

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

type QueryServiceUnbondingDelegationsResponse

type QueryServiceUnbondingDelegationsResponse struct {
	// UnbondingDelegations is the list of unbonding delegations
	UnbondingDelegations []UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations"`
	// Pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryServiceUnbondingDelegationsResponse is response type for the Query/ServiceUnbondingDelegations RPC method.

func (*QueryServiceUnbondingDelegationsResponse) Descriptor

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

func (*QueryServiceUnbondingDelegationsResponse) GetPagination

func (*QueryServiceUnbondingDelegationsResponse) GetUnbondingDelegations

func (m *QueryServiceUnbondingDelegationsResponse) GetUnbondingDelegations() []UnbondingDelegation

func (*QueryServiceUnbondingDelegationsResponse) Marshal

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

func (*QueryServiceUnbondingDelegationsResponse) MarshalTo

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

func (*QueryServiceUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryServiceUnbondingDelegationsResponse) ProtoMessage

func (*QueryServiceUnbondingDelegationsResponse) Reset

func (*QueryServiceUnbondingDelegationsResponse) Size

func (*QueryServiceUnbondingDelegationsResponse) String

func (*QueryServiceUnbondingDelegationsResponse) Unmarshal

func (*QueryServiceUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryServiceUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryServiceUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryServiceUnbondingDelegationsResponse) XXX_Merge

func (*QueryServiceUnbondingDelegationsResponse) XXX_Size

func (*QueryServiceUnbondingDelegationsResponse) XXX_Unmarshal

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

type RestakingHooks

type RestakingHooks interface {
	PoolRestakingHooks
	OperatorRestakingHooks
	ServiceRestakingHooks
	AfterUnbondingInitiated(ctx sdk.Context, unbondingDelegationID uint64) error
}

type ServiceAllowedOperators added in v1.3.0

type ServiceAllowedOperators struct {
	// ServiceID is the ID of the service.
	ServiceID uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// OperatorIDs defines the allowed operator IDs.
	OperatorIDs []uint32 `protobuf:"varint,2,rep,packed,name=operator_ids,json=operatorIds,proto3" json:"operator_ids,omitempty"`
}

ServiceAllowedOperators represents the operators allowed to secure a a service.

func NewServiceAllowedOperators added in v1.3.0

func NewServiceAllowedOperators(serviceID uint32, operatorIDs []uint32) ServiceAllowedOperators

NewServiceAllowedOperators creates a new instance of ServiceAllowedOperators.

func (*ServiceAllowedOperators) Descriptor added in v1.3.0

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

func (*ServiceAllowedOperators) GetOperatorIDs added in v1.3.0

func (m *ServiceAllowedOperators) GetOperatorIDs() []uint32

func (*ServiceAllowedOperators) GetServiceID added in v1.3.0

func (m *ServiceAllowedOperators) GetServiceID() uint32

func (*ServiceAllowedOperators) Marshal added in v1.3.0

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

func (*ServiceAllowedOperators) MarshalTo added in v1.3.0

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

func (*ServiceAllowedOperators) MarshalToSizedBuffer added in v1.3.0

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

func (*ServiceAllowedOperators) ProtoMessage added in v1.3.0

func (*ServiceAllowedOperators) ProtoMessage()

func (*ServiceAllowedOperators) Reset added in v1.3.0

func (m *ServiceAllowedOperators) Reset()

func (*ServiceAllowedOperators) Size added in v1.3.0

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

func (*ServiceAllowedOperators) String added in v1.3.0

func (m *ServiceAllowedOperators) String() string

func (*ServiceAllowedOperators) Unmarshal added in v1.3.0

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

func (*ServiceAllowedOperators) Validate added in v1.3.0

func (r *ServiceAllowedOperators) Validate() error

func (*ServiceAllowedOperators) XXX_DiscardUnknown added in v1.3.0

func (m *ServiceAllowedOperators) XXX_DiscardUnknown()

func (*ServiceAllowedOperators) XXX_Marshal added in v1.3.0

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

func (*ServiceAllowedOperators) XXX_Merge added in v1.3.0

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

func (*ServiceAllowedOperators) XXX_Size added in v1.3.0

func (m *ServiceAllowedOperators) XXX_Size() int

func (*ServiceAllowedOperators) XXX_Unmarshal added in v1.3.0

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

type ServiceRestakingHooks

type ServiceRestakingHooks interface {
	BeforeServiceDelegationCreated(ctx sdk.Context, serviceID uint32, delegator string) error
	BeforeServiceDelegationSharesModified(ctx sdk.Context, serviceID uint32, delegator string) error
	AfterServiceDelegationModified(ctx sdk.Context, serviceID uint32, delegator string) error
	BeforeServiceDelegationRemoved(ctx sdk.Context, serviceID uint32, delegator string) error
}

type ServiceSecuringPools added in v1.3.0

type ServiceSecuringPools struct {
	// ServiceID is the ID of the service.
	ServiceID uint32 `protobuf:"varint,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// PoolIDs defines the IDs of the pools from which the service can borrow
	// security.
	PoolIDs []uint32 `protobuf:"varint,2,rep,packed,name=pool_ids,json=poolIds,proto3" json:"pool_ids,omitempty"`
}

ServiceSecuringPools represents the list pools from which a service can borrow security

func NewServiceSecuringPools added in v1.3.0

func NewServiceSecuringPools(serviceID uint32, poolIDs []uint32) ServiceSecuringPools

NewServiceSecuringPools creates a new instance of ServiceSecuringPools.

func (*ServiceSecuringPools) Descriptor added in v1.3.0

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

func (*ServiceSecuringPools) GetPoolIDs added in v1.3.0

func (m *ServiceSecuringPools) GetPoolIDs() []uint32

func (*ServiceSecuringPools) GetServiceID added in v1.3.0

func (m *ServiceSecuringPools) GetServiceID() uint32

func (*ServiceSecuringPools) Marshal added in v1.3.0

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

func (*ServiceSecuringPools) MarshalTo added in v1.3.0

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

func (*ServiceSecuringPools) MarshalToSizedBuffer added in v1.3.0

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

func (*ServiceSecuringPools) ProtoMessage added in v1.3.0

func (*ServiceSecuringPools) ProtoMessage()

func (*ServiceSecuringPools) Reset added in v1.3.0

func (m *ServiceSecuringPools) Reset()

func (*ServiceSecuringPools) Size added in v1.3.0

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

func (*ServiceSecuringPools) String added in v1.3.0

func (m *ServiceSecuringPools) String() string

func (*ServiceSecuringPools) Unmarshal added in v1.3.0

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

func (*ServiceSecuringPools) Validate added in v1.3.0

func (r *ServiceSecuringPools) Validate() error

func (*ServiceSecuringPools) XXX_DiscardUnknown added in v1.3.0

func (m *ServiceSecuringPools) XXX_DiscardUnknown()

func (*ServiceSecuringPools) XXX_Marshal added in v1.3.0

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

func (*ServiceSecuringPools) XXX_Merge added in v1.3.0

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

func (*ServiceSecuringPools) XXX_Size added in v1.3.0

func (m *ServiceSecuringPools) XXX_Size() int

func (*ServiceSecuringPools) XXX_Unmarshal added in v1.3.0

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

type ServicesKeeper

type ServicesKeeper interface {
	GetService(ctx sdk.Context, serviceID uint32) (servicestypes.Service, bool)
	SaveService(ctx sdk.Context, service servicestypes.Service) error
	IterateServices(ctx sdk.Context, cb func(servicestypes.Service) bool)
	GetServices(ctx sdk.Context) []servicestypes.Service
	DeactivateService(ctx sdk.Context, serviceID uint32) error
}

type UnbondingDelegation

type UnbondingDelegation struct {
	// Type is the type of the unbonding delegation.
	Type DelegationType `protobuf:"varint,1,opt,name=type,proto3,enum=milkyway.restaking.v1.DelegationType" json:"type,omitempty"`
	// DelegatorAddress is the encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,2,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// TargetID is the ID of the target from which the tokens will be undelegated
	// (pool, service, operator)
	TargetID uint32 `protobuf:"varint,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
	// Entries are the unbonding delegation entries.
	Entries []UnbondingDelegationEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries"`
}

UnbondingDelegation stores all of a single delegator's unbonding bonds for a single target in an time-ordered list.

func MustUnmarshalUnbondingDelegation

func MustUnmarshalUnbondingDelegation(cdc codec.BinaryCodec, bz []byte) UnbondingDelegation

MustUnmarshalUnbondingDelegation unmarshals the unbonding delegation from the given bytes using the provided codec

func NewOperatorUnbondingDelegation

func NewOperatorUnbondingDelegation(
	delegatorAddress string, operatorID uint32,
	creationHeight int64, completionTime time.Time, balance sdk.Coins, id uint64,
) UnbondingDelegation

NewOperatorUnbondingDelegation creates a new UnbondingDelegation instance representing an unbonding delegation to an operator

func NewPoolUnbondingDelegation

func NewPoolUnbondingDelegation(
	delegatorAddress string, poolID uint32,
	creationHeight int64, completionTime time.Time, balance sdk.Coins, id uint64,
) UnbondingDelegation

NewPoolUnbondingDelegation creates a new UnbondingDelegation instance representing an unbonding delegation to a pool

func NewServiceUnbondingDelegation

func NewServiceUnbondingDelegation(
	delegatorAddress string, serviceID uint32,
	creationHeight int64, completionTime time.Time, balance sdk.Coins, id uint64,
) UnbondingDelegation

NewServiceUnbondingDelegation creates a new UnbondingDelegation instance representing an unbonding delegation to a service

func UnmarshalUnbondingDelegation

func UnmarshalUnbondingDelegation(cdc codec.BinaryCodec, bz []byte) (UnbondingDelegation, error)

UnmarshalUnbondingDelegation unmarshals the unbonding delegation from the given bytes using the provided codec

func (*UnbondingDelegation) AddEntry

func (ubd *UnbondingDelegation) AddEntry(creationHeight int64, completionTime time.Time, balance sdk.Coins, unbondingID uint64) bool

AddEntry allows to append a new entry to the unbonding delegation

func (*UnbondingDelegation) Descriptor

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

func (*UnbondingDelegation) Marshal

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

func (*UnbondingDelegation) MarshalTo

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

func (*UnbondingDelegation) MarshalToSizedBuffer

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

func (*UnbondingDelegation) ProtoMessage

func (*UnbondingDelegation) ProtoMessage()

func (*UnbondingDelegation) RemoveEntry

func (ubd *UnbondingDelegation) RemoveEntry(i int64)

RemoveEntry removes the entry at index i from the unbonding delegation

func (*UnbondingDelegation) Reset

func (m *UnbondingDelegation) Reset()

func (*UnbondingDelegation) Size

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

func (*UnbondingDelegation) String

func (m *UnbondingDelegation) String() string

func (*UnbondingDelegation) Unmarshal

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

func (UnbondingDelegation) Validate

func (ubd UnbondingDelegation) Validate() error

Validate validates the unbonding delegation

func (*UnbondingDelegation) XXX_DiscardUnknown

func (m *UnbondingDelegation) XXX_DiscardUnknown()

func (*UnbondingDelegation) XXX_Marshal

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

func (*UnbondingDelegation) XXX_Merge

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

func (*UnbondingDelegation) XXX_Size

func (m *UnbondingDelegation) XXX_Size() int

func (*UnbondingDelegation) XXX_Unmarshal

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

type UnbondingDelegationBuilder

type UnbondingDelegationBuilder func(
	delegatorAddress string, targetID uint32,
	creationHeight int64, minTime time.Time, balance sdk.Coins, id uint64,
) UnbondingDelegation

type UnbondingDelegationEntry

type UnbondingDelegationEntry struct {
	// CreationHeight is the height which the unbonding took place.
	CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// CompletionTime is the unix time for unbonding completion.
	CompletionTime time.Time `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
	// InitialBalance defines the tokens initially scheduled to receive at
	// completion.
	InitialBalance github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */
	// Balance defines the tokens to receive at completion.
	Balance github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,4,rep,name=balance,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"balance"`
	// Incrementing id that uniquely identifies this entry
	UnbondingID uint64 `protobuf:"varint,5,opt,name=unbonding_id,json=unbondingId,proto3" json:"unbonding_id,omitempty"`
}

UnbondingDelegationEntry defines an unbonding object with relevant metadata.

func NewUnbondingDelegationEntry

func NewUnbondingDelegationEntry(creationHeight int64, completionTime time.Time, balance sdk.Coins, unbondingID uint64) UnbondingDelegationEntry

NewUnbondingDelegationEntry creates a new UnbondingDelegationEntry instance

func (*UnbondingDelegationEntry) Descriptor

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

func (*UnbondingDelegationEntry) Equal

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

func (*UnbondingDelegationEntry) GetBalance

func (*UnbondingDelegationEntry) GetCompletionTime

func (m *UnbondingDelegationEntry) GetCompletionTime() time.Time

func (*UnbondingDelegationEntry) GetCreationHeight

func (m *UnbondingDelegationEntry) GetCreationHeight() int64

func (*UnbondingDelegationEntry) GetInitialBalance

func (*UnbondingDelegationEntry) GetUnbondingID

func (m *UnbondingDelegationEntry) GetUnbondingID() uint64

func (UnbondingDelegationEntry) IsMature

func (e UnbondingDelegationEntry) IsMature(currentTime time.Time) bool

IsMature tells whether is the current entry mature

func (*UnbondingDelegationEntry) Marshal

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

func (*UnbondingDelegationEntry) MarshalTo

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

func (*UnbondingDelegationEntry) MarshalToSizedBuffer

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

func (*UnbondingDelegationEntry) ProtoMessage

func (*UnbondingDelegationEntry) ProtoMessage()

func (*UnbondingDelegationEntry) Reset

func (m *UnbondingDelegationEntry) Reset()

func (*UnbondingDelegationEntry) Size

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

func (*UnbondingDelegationEntry) String

func (m *UnbondingDelegationEntry) String() string

func (*UnbondingDelegationEntry) Unmarshal

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

func (UnbondingDelegationEntry) Validate

func (e UnbondingDelegationEntry) Validate() error

Validate validates the unbonding delegation entry

func (*UnbondingDelegationEntry) XXX_DiscardUnknown

func (m *UnbondingDelegationEntry) XXX_DiscardUnknown()

func (*UnbondingDelegationEntry) XXX_Marshal

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

func (*UnbondingDelegationEntry) XXX_Merge

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

func (*UnbondingDelegationEntry) XXX_Size

func (m *UnbondingDelegationEntry) XXX_Size() int

func (*UnbondingDelegationEntry) XXX_Unmarshal

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

type UnbondingDelegationKeyBuilder

type UnbondingDelegationKeyBuilder func(delegatorAddress string, targetID uint32) []byte

type UndelegationData

type UndelegationData struct {
	Amount                   sdk.Coins
	Delegator                string
	Target                   DelegationTarget
	BuildUnbondingDelegation UnbondingDelegationBuilder
	Hooks                    DelegationHooks
	Shares                   sdk.DecCoins
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddOperatorToAllowList added in v1.3.0

func (*UnimplementedMsgServer) BorrowPoolSecurity added in v1.3.0

func (*UnimplementedMsgServer) CeasePoolSecurityBorrow added in v1.3.0

func (*UnimplementedMsgServer) DelegateOperator

func (*UnimplementedMsgServer) DelegatePool

func (*UnimplementedMsgServer) DelegateService

func (*UnimplementedMsgServer) JoinService added in v1.3.0

func (*UnimplementedMsgServer) LeaveService added in v1.3.0

func (*UnimplementedMsgServer) RemoveOperatorFromAllowlist added in v1.3.0

func (*UnimplementedMsgServer) UndelegateOperator

func (*UnimplementedMsgServer) UndelegatePool

func (*UnimplementedMsgServer) UndelegateService

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DelegatorOperator

func (*UnimplementedQueryServer) DelegatorOperators

func (*UnimplementedQueryServer) DelegatorPool

func (*UnimplementedQueryServer) DelegatorPools

func (*UnimplementedQueryServer) DelegatorService

func (*UnimplementedQueryServer) DelegatorServices

func (*UnimplementedQueryServer) OperatorDelegation

func (*UnimplementedQueryServer) OperatorDelegations

func (*UnimplementedQueryServer) OperatorJoinedServices added in v1.3.0

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) PoolDelegation

func (*UnimplementedQueryServer) PoolDelegations

func (*UnimplementedQueryServer) ServiceAllowedOperators added in v1.3.0

func (*UnimplementedQueryServer) ServiceDelegation

func (*UnimplementedQueryServer) ServiceDelegations

func (*UnimplementedQueryServer) ServiceOperators added in v1.3.0

func (*UnimplementedQueryServer) ServiceSecuringPools added in v1.3.0

Jump to

Keyboard shortcuts

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