types

package
v0.0.0-...-b507993 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 34 Imported by: 4

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeSchedulerExec       = "scheduler_execution"
	EventTypeSchedulerRegistered = "scheduler_registered"
	EventTypeMaxCapLimitUpdated  = "max_cap_limit_updated"
	EventTypeUnbond              = "instant_unbond"
	EventTypeUpdateDelegation    = "update_delegation"
	EventTypeDelegate            = "instant_delegate"
)
View Source
const (
	AttributeKeyContractAddr         = "virtual_staking_contract"
	AttributeKeySchedulerNextExec    = "next_exececution_block"
	AttributeKeySchedulerExecSuccess = "execution_success"
	AttributeKeySchedulerRepeat      = "repeat"
	AttributeKeySchedulerExecError   = "error"
	AttributeKeyValidator            = "validator"
	AttributeKeyDelegator            = "delegator"
)
View Source
const (
	// ModuleName defines the module name.
	ModuleName = "meshsecurity"

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

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "memory:meshsecurity"

	// RouterKey is the message route
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key.
	QuerierRoute = ModuleName
)
View Source
const (
	// SchedulerTaskUndefined null value
	SchedulerTaskUndefined SchedulerTaskType = 0
	// SchedulerTaskHandleEpoch triggered by updates to the virtual staking max cap or by end of epoch
	SchedulerTaskHandleEpoch = 1
	// SchedulerTaskValsetUpdate triggered by any update on the active set. This includes add, remove, validator modifications, slashing, tombstone
	SchedulerTaskValsetUpdate = 2
)

Variables

View Source
var (
	ErrInvalid        = errorsmod.Register(ModuleName, 1, "invalid")
	ErrMaxCapExceeded = errorsmod.Register(ModuleName, 2, "max cap exceeded")
	ErrUnsupported    = errorsmod.Register(ModuleName, 3, "unsupported")
	ErrUnknown        = errorsmod.Register(ModuleName, 4, "unknown")
	ErrDuplicate      = errorsmod.Register(ModuleName, 5, "contract duplicated")
)
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 is the prefix for the module parameters
	ParamsKey                     = []byte{0x1}
	MaxCapLimitKeyPrefix          = []byte{0x2}
	TotalDelegatedAmountKeyPrefix = []byte{0x3}
	SchedulerKeyPrefix            = []byte{0x4}

	PipedValsetPrefix     = []byte{0x5}
	TombstoneStatusPrefix = []byte{0x6}
	DelegationKey         = []byte{0x7}
)
View Source
var (
	ErrInvalidLengthMeshsecurity        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMeshsecurity          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMeshsecurity = 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 (
	ErrInvalidLengthScheduler        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowScheduler          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupScheduler = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func BuildDelegationKey

func BuildDelegationKey(actor, delAddr sdk.AccAddress, valAddr sdk.ValAddress) []byte

BuildDelegationKey build the prefix for a delegator bond with validator

func BuildDelegationsKey

func BuildDelegationsKey(actor sdk.AccAddress) []byte

BuildDelegationsKey build the delegations's prefix for a contract

func BuildMaxCapLimitKey

func BuildMaxCapLimitKey(contractAddr sdk.AccAddress) []byte

BuildMaxCapLimitKey build max cap limit store key

func BuildPipedValsetOpKey

func BuildPipedValsetOpKey(op PipedValsetOperation, val sdk.ValAddress, slashInfo *SlashInfo) []byte

BuildPipedValsetOpKey build store key for the temporary valset operation store

func BuildSchedulerContractKey

func BuildSchedulerContractKey(tp SchedulerTaskType, blockHeight uint64, contractAddr sdk.AccAddress) ([]byte, error)

BuildSchedulerContractKey build store key

func BuildSchedulerHeightKeyPrefix

func BuildSchedulerHeightKeyPrefix(tp SchedulerTaskType, blockHeight uint64) ([]byte, error)

BuildSchedulerHeightKeyPrefix build store key prefix

func BuildSchedulerTypeKeyPrefix

func BuildSchedulerTypeKeyPrefix(tp SchedulerTaskType) ([]byte, error)

BuildSchedulerTypeKeyPrefix internal scheduler store key

func BuildTombstoneStatusKey

func BuildTombstoneStatusKey(valAddr sdk.ValAddress) []byte

BuildTombstoneStatusKey build store key for the tombstone validator status store

func BuildTotalDelegatedAmountKey

func BuildTotalDelegatedAmountKey(contractAddr sdk.AccAddress) []byte

BuildTotalDelegatedAmountKey build delegated amount store key for given contract

func EmitMaxCapLimitUpdatedEvent

func EmitMaxCapLimitUpdatedEvent(ctx sdk.Context, contractAddr sdk.AccAddress, amount sdk.Coin)

EmitMaxCapLimitUpdatedEvent emits an event signalling that max cap limit is updated

func EmitSchedulerExecutionEvent

func EmitSchedulerExecutionEvent(ctx sdk.Context, contractAddr sdk.AccAddress, err error)

EmitSchedulerExecutionEvent emits an event signalling a successful or failed scheduler execution and including the error details if any.

func EmitSchedulerRegisteredEvent

func EmitSchedulerRegisteredEvent(ctx sdk.Context, contractAddr sdk.AccAddress, nextExecBlock uint64, repeat bool)

EmitSchedulerRegisteredEvent emits an event signalling a new scheduler execution is registered

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces register types with interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec register types with legacy amino

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 ValidateGenesis

func ValidateGenesis(gs *GenesisState) error

ValidateGenesis does basic validation on genesis state

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI
}

AccountKeeper interface contains functions for getting accounts and the module address

type CommunityPoolKeeper

type CommunityPoolKeeper interface {
	WithdrawDelegationRewards(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (sdk.Coins, error)
}

CommunityPoolKeeper expected distribution keeper.

type Delegation

type Delegation struct {
	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the bech32-encoded address of the validator.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// amount define the delegation amount.
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount"`
}

Delegation represents the bond with tokens held by an account.

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

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

GenesisState defines meshsecurity module's genesis state.

func DefaultGenesisState

func DefaultGenesisState(denom string) *GenesisState

DefaultGenesisState default genesis state

func NewGenesisState

func NewGenesisState(params Params) *GenesisState

NewGenesisState constructor

func (*GenesisState) Descriptor

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

func (*GenesisState) Equal

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

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// SetVirtualStakingMaxCap creates or updates a maximum cap limit for virtual
	// staking coins
	SetVirtualStakingMaxCap(ctx context.Context, in *MsgSetVirtualStakingMaxCap, opts ...grpc.CallOption) (*MsgSetVirtualStakingMaxCapResponse, error)
	// SetPriceFeedContract sets the price feed contract to the chain
	// to trigger handle epoch task
	SetPriceFeedContract(ctx context.Context, in *MsgSetPriceFeedContract, opts ...grpc.CallOption) (*MsgSetPriceFeedContractResponse, 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 MsgServer

type MsgServer interface {
	// SetVirtualStakingMaxCap creates or updates a maximum cap limit for virtual
	// staking coins
	SetVirtualStakingMaxCap(context.Context, *MsgSetVirtualStakingMaxCap) (*MsgSetVirtualStakingMaxCapResponse, error)
	// SetPriceFeedContract sets the price feed contract to the chain
	// to trigger handle epoch task
	SetPriceFeedContract(context.Context, *MsgSetPriceFeedContract) (*MsgSetPriceFeedContractResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetPriceFeedContract

type MsgSetPriceFeedContract 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"`
	// Contract is the address of the price feed smart contract.
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
}

MsgSetPriceFeedContract sets the price feed contract to the chain to trigger handle epoch task

func (*MsgSetPriceFeedContract) Descriptor

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

func (MsgSetPriceFeedContract) GetSignBytes

func (msg MsgSetPriceFeedContract) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (MsgSetPriceFeedContract) GetSigners

func (msg MsgSetPriceFeedContract) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgSetPriceFeedContract.

func (*MsgSetPriceFeedContract) Marshal

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

func (*MsgSetPriceFeedContract) MarshalTo

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

func (*MsgSetPriceFeedContract) MarshalToSizedBuffer

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

func (*MsgSetPriceFeedContract) ProtoMessage

func (*MsgSetPriceFeedContract) ProtoMessage()

func (*MsgSetPriceFeedContract) Reset

func (m *MsgSetPriceFeedContract) Reset()

func (*MsgSetPriceFeedContract) Size

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

func (*MsgSetPriceFeedContract) String

func (m *MsgSetPriceFeedContract) String() string

func (*MsgSetPriceFeedContract) Unmarshal

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

func (MsgSetPriceFeedContract) ValidateBasic

func (msg MsgSetPriceFeedContract) ValidateBasic() error

ValidateBasic validate basic constraints

func (*MsgSetPriceFeedContract) XXX_DiscardUnknown

func (m *MsgSetPriceFeedContract) XXX_DiscardUnknown()

func (*MsgSetPriceFeedContract) XXX_Marshal

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

func (*MsgSetPriceFeedContract) XXX_Merge

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

func (*MsgSetPriceFeedContract) XXX_Size

func (m *MsgSetPriceFeedContract) XXX_Size() int

func (*MsgSetPriceFeedContract) XXX_Unmarshal

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

type MsgSetPriceFeedContractResponse

type MsgSetPriceFeedContractResponse struct {
}

MsgSetPriceFeedContractResponse returns result data.

func (*MsgSetPriceFeedContractResponse) Descriptor

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

func (*MsgSetPriceFeedContractResponse) Marshal

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

func (*MsgSetPriceFeedContractResponse) MarshalTo

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

func (*MsgSetPriceFeedContractResponse) MarshalToSizedBuffer

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

func (*MsgSetPriceFeedContractResponse) ProtoMessage

func (*MsgSetPriceFeedContractResponse) ProtoMessage()

func (*MsgSetPriceFeedContractResponse) Reset

func (*MsgSetPriceFeedContractResponse) Size

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

func (*MsgSetPriceFeedContractResponse) String

func (*MsgSetPriceFeedContractResponse) Unmarshal

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

func (*MsgSetPriceFeedContractResponse) XXX_DiscardUnknown

func (m *MsgSetPriceFeedContractResponse) XXX_DiscardUnknown()

func (*MsgSetPriceFeedContractResponse) XXX_Marshal

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

func (*MsgSetPriceFeedContractResponse) XXX_Merge

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

func (*MsgSetPriceFeedContractResponse) XXX_Size

func (m *MsgSetPriceFeedContractResponse) XXX_Size() int

func (*MsgSetPriceFeedContractResponse) XXX_Unmarshal

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

type MsgSetVirtualStakingMaxCap

type MsgSetVirtualStakingMaxCap 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"`
	// Contract is the address of the smart contract that is given permission
	// do virtual staking which includes minting and burning staking tokens.
	Contract string `protobuf:"bytes,2,opt,name=contract,proto3" json:"contract,omitempty"`
	// MaxCap is the limit up this the virtual tokens can be minted.
	MaxCap types.Coin `protobuf:"bytes,3,opt,name=max_cap,json=maxCap,proto3" json:"max_cap"`
}

MsgSetVirtualStakingMaxCap creates or updates a maximum cap limit for virtual staking coins to the given contract.

func (*MsgSetVirtualStakingMaxCap) Descriptor

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

func (MsgSetVirtualStakingMaxCap) GetSignBytes

func (msg MsgSetVirtualStakingMaxCap) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (MsgSetVirtualStakingMaxCap) GetSigners

func (msg MsgSetVirtualStakingMaxCap) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgSetVirtualStakingMaxCap.

func (*MsgSetVirtualStakingMaxCap) Marshal

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

func (*MsgSetVirtualStakingMaxCap) MarshalTo

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

func (*MsgSetVirtualStakingMaxCap) MarshalToSizedBuffer

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

func (*MsgSetVirtualStakingMaxCap) ProtoMessage

func (*MsgSetVirtualStakingMaxCap) ProtoMessage()

func (*MsgSetVirtualStakingMaxCap) Reset

func (m *MsgSetVirtualStakingMaxCap) Reset()

func (*MsgSetVirtualStakingMaxCap) Size

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

func (*MsgSetVirtualStakingMaxCap) String

func (m *MsgSetVirtualStakingMaxCap) String() string

func (*MsgSetVirtualStakingMaxCap) Unmarshal

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

func (MsgSetVirtualStakingMaxCap) ValidateBasic

func (msg MsgSetVirtualStakingMaxCap) ValidateBasic() error

ValidateBasic validate basic constraints

func (*MsgSetVirtualStakingMaxCap) XXX_DiscardUnknown

func (m *MsgSetVirtualStakingMaxCap) XXX_DiscardUnknown()

func (*MsgSetVirtualStakingMaxCap) XXX_Marshal

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

func (*MsgSetVirtualStakingMaxCap) XXX_Merge

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

func (*MsgSetVirtualStakingMaxCap) XXX_Size

func (m *MsgSetVirtualStakingMaxCap) XXX_Size() int

func (*MsgSetVirtualStakingMaxCap) XXX_Unmarshal

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

type MsgSetVirtualStakingMaxCapResponse

type MsgSetVirtualStakingMaxCapResponse struct {
}

MsgSetVirtualStakingMaxCap returns result data.

func (*MsgSetVirtualStakingMaxCapResponse) Descriptor

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

func (*MsgSetVirtualStakingMaxCapResponse) Marshal

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

func (*MsgSetVirtualStakingMaxCapResponse) MarshalTo

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

func (*MsgSetVirtualStakingMaxCapResponse) MarshalToSizedBuffer

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

func (*MsgSetVirtualStakingMaxCapResponse) ProtoMessage

func (*MsgSetVirtualStakingMaxCapResponse) ProtoMessage()

func (*MsgSetVirtualStakingMaxCapResponse) Reset

func (*MsgSetVirtualStakingMaxCapResponse) Size

func (*MsgSetVirtualStakingMaxCapResponse) String

func (*MsgSetVirtualStakingMaxCapResponse) Unmarshal

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

func (*MsgSetVirtualStakingMaxCapResponse) XXX_DiscardUnknown

func (m *MsgSetVirtualStakingMaxCapResponse) XXX_DiscardUnknown()

func (*MsgSetVirtualStakingMaxCapResponse) XXX_Marshal

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

func (*MsgSetVirtualStakingMaxCapResponse) XXX_Merge

func (*MsgSetVirtualStakingMaxCapResponse) XXX_Size

func (*MsgSetVirtualStakingMaxCapResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// TotalContractsMaxCap is the maximum that the sum of all contract max caps
	// must not exceed
	TotalContractsMaxCap types.Coin `protobuf:"bytes,1,opt,name=total_contracts_max_cap,json=totalContractsMaxCap,proto3" json:"total_contracts_max_cap"`
	// Epoch length is the number of blocks that defines an epoch
	EpochLength uint32 `protobuf:"varint,2,opt,name=epoch_length,json=epochLength,proto3" json:"epoch_length,omitempty"`
	// MaxGasEndBlocker defines the maximum gas that can be spent in a contract
	// sudo callback
	MaxGasEndBlocker uint32 `protobuf:"varint,3,opt,name=max_gas_end_blocker,json=maxGasEndBlocker,proto3" json:"max_gas_end_blocker,omitempty"`
}

Params defines the parameters for the x/meshsecurity module.

func DefaultParams

func DefaultParams(denom string) Params

DefaultParams returns default mesh-security parameters

func (*Params) Descriptor

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

func (*Params) Equal

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

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

func (p Params) ValidateBasic() error

ValidateBasic performs basic validation on mesh-security parameters.

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 PipedValsetOperation

type PipedValsetOperation byte
const (
	ValsetOperationUndefined PipedValsetOperation = iota
	ValidatorBonded
	ValidatorUnbonded
	ValidatorJailed
	ValidatorTombstoned
	ValidatorUnjailed
	ValidatorModified
	ValidatorSlashed
)

type QueryClient

type QueryClient interface {
	// VirtualStakingMaxCapLimit gets max cap limit for the given contract
	VirtualStakingMaxCapLimit(ctx context.Context, in *QueryVirtualStakingMaxCapLimitRequest, opts ...grpc.CallOption) (*QueryVirtualStakingMaxCapLimitResponse, error)
	// VirtualStakingMaxCapLimits gets max cap limits
	VirtualStakingMaxCapLimits(ctx context.Context, in *QueryVirtualStakingMaxCapLimitsRequest, opts ...grpc.CallOption) (*QueryVirtualStakingMaxCapLimitsResponse, error)
	// Params queries the parameters of x/meshsecurity module.
	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 QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

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

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// VirtualStakingMaxCapLimit gets max cap limit for the given contract
	VirtualStakingMaxCapLimit(context.Context, *QueryVirtualStakingMaxCapLimitRequest) (*QueryVirtualStakingMaxCapLimitResponse, error)
	// VirtualStakingMaxCapLimits gets max cap limits
	VirtualStakingMaxCapLimits(context.Context, *QueryVirtualStakingMaxCapLimitsRequest) (*QueryVirtualStakingMaxCapLimitsResponse, error)
	// Params queries the parameters of x/meshsecurity module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QueryVirtualStakingMaxCapLimitRequest

type QueryVirtualStakingMaxCapLimitRequest struct {
	// Address is the address of the contract to query
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryVirtualStakingMaxCapLimitRequest is the request type for the Query/VirtualStakingMaxCapLimit RPC method

func (*QueryVirtualStakingMaxCapLimitRequest) Descriptor

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

func (*QueryVirtualStakingMaxCapLimitRequest) Marshal

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

func (*QueryVirtualStakingMaxCapLimitRequest) MarshalTo

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

func (*QueryVirtualStakingMaxCapLimitRequest) MarshalToSizedBuffer

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

func (*QueryVirtualStakingMaxCapLimitRequest) ProtoMessage

func (*QueryVirtualStakingMaxCapLimitRequest) ProtoMessage()

func (*QueryVirtualStakingMaxCapLimitRequest) Reset

func (*QueryVirtualStakingMaxCapLimitRequest) Size

func (*QueryVirtualStakingMaxCapLimitRequest) String

func (*QueryVirtualStakingMaxCapLimitRequest) Unmarshal

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

func (*QueryVirtualStakingMaxCapLimitRequest) XXX_DiscardUnknown

func (m *QueryVirtualStakingMaxCapLimitRequest) XXX_DiscardUnknown()

func (*QueryVirtualStakingMaxCapLimitRequest) XXX_Marshal

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

func (*QueryVirtualStakingMaxCapLimitRequest) XXX_Merge

func (*QueryVirtualStakingMaxCapLimitRequest) XXX_Size

func (*QueryVirtualStakingMaxCapLimitRequest) XXX_Unmarshal

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

type QueryVirtualStakingMaxCapLimitResponse

type QueryVirtualStakingMaxCapLimitResponse struct {
	Delegated types.Coin `protobuf:"bytes,1,opt,name=delegated,proto3" json:"delegated"`
	Cap       types.Coin `protobuf:"bytes,2,opt,name=cap,proto3" json:"cap"`
}

QueryVirtualStakingMaxCapLimitResponse is the response type for the Query/VirtualStakingMaxCapLimit RPC method

func (*QueryVirtualStakingMaxCapLimitResponse) Descriptor

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

func (*QueryVirtualStakingMaxCapLimitResponse) Equal

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

func (*QueryVirtualStakingMaxCapLimitResponse) Marshal

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

func (*QueryVirtualStakingMaxCapLimitResponse) MarshalTo

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

func (*QueryVirtualStakingMaxCapLimitResponse) MarshalToSizedBuffer

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

func (*QueryVirtualStakingMaxCapLimitResponse) ProtoMessage

func (*QueryVirtualStakingMaxCapLimitResponse) Reset

func (*QueryVirtualStakingMaxCapLimitResponse) Size

func (*QueryVirtualStakingMaxCapLimitResponse) String

func (*QueryVirtualStakingMaxCapLimitResponse) Unmarshal

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

func (*QueryVirtualStakingMaxCapLimitResponse) XXX_DiscardUnknown

func (m *QueryVirtualStakingMaxCapLimitResponse) XXX_DiscardUnknown()

func (*QueryVirtualStakingMaxCapLimitResponse) XXX_Marshal

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

func (*QueryVirtualStakingMaxCapLimitResponse) XXX_Merge

func (*QueryVirtualStakingMaxCapLimitResponse) XXX_Size

func (*QueryVirtualStakingMaxCapLimitResponse) XXX_Unmarshal

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

type QueryVirtualStakingMaxCapLimitsRequest

type QueryVirtualStakingMaxCapLimitsRequest struct {
}

QueryVirtualStakingMaxCapLimitsRequest is the request type for the Query/VirtualStakingMaxCapLimits RPC method

func (*QueryVirtualStakingMaxCapLimitsRequest) Descriptor

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

func (*QueryVirtualStakingMaxCapLimitsRequest) Marshal

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

func (*QueryVirtualStakingMaxCapLimitsRequest) MarshalTo

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

func (*QueryVirtualStakingMaxCapLimitsRequest) MarshalToSizedBuffer

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

func (*QueryVirtualStakingMaxCapLimitsRequest) ProtoMessage

func (*QueryVirtualStakingMaxCapLimitsRequest) Reset

func (*QueryVirtualStakingMaxCapLimitsRequest) Size

func (*QueryVirtualStakingMaxCapLimitsRequest) String

func (*QueryVirtualStakingMaxCapLimitsRequest) Unmarshal

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

func (*QueryVirtualStakingMaxCapLimitsRequest) XXX_DiscardUnknown

func (m *QueryVirtualStakingMaxCapLimitsRequest) XXX_DiscardUnknown()

func (*QueryVirtualStakingMaxCapLimitsRequest) XXX_Marshal

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

func (*QueryVirtualStakingMaxCapLimitsRequest) XXX_Merge

func (*QueryVirtualStakingMaxCapLimitsRequest) XXX_Size

func (*QueryVirtualStakingMaxCapLimitsRequest) XXX_Unmarshal

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

type QueryVirtualStakingMaxCapLimitsResponse

type QueryVirtualStakingMaxCapLimitsResponse struct {
	MaxCapInfos []VirtualStakingMaxCapInfo `protobuf:"bytes,1,rep,name=max_cap_infos,json=maxCapInfos,proto3" json:"max_cap_infos"`
}

QueryVirtualStakingMaxCapLimitsResponse is the response type for the Query/VirtualStakingMaxCapLimits RPC method

func (*QueryVirtualStakingMaxCapLimitsResponse) Descriptor

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

func (*QueryVirtualStakingMaxCapLimitsResponse) Marshal

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

func (*QueryVirtualStakingMaxCapLimitsResponse) MarshalTo

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

func (*QueryVirtualStakingMaxCapLimitsResponse) MarshalToSizedBuffer

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

func (*QueryVirtualStakingMaxCapLimitsResponse) ProtoMessage

func (*QueryVirtualStakingMaxCapLimitsResponse) Reset

func (*QueryVirtualStakingMaxCapLimitsResponse) Size

func (*QueryVirtualStakingMaxCapLimitsResponse) String

func (*QueryVirtualStakingMaxCapLimitsResponse) Unmarshal

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

func (*QueryVirtualStakingMaxCapLimitsResponse) XXX_DiscardUnknown

func (m *QueryVirtualStakingMaxCapLimitsResponse) XXX_DiscardUnknown()

func (*QueryVirtualStakingMaxCapLimitsResponse) XXX_Marshal

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

func (*QueryVirtualStakingMaxCapLimitsResponse) XXX_Merge

func (*QueryVirtualStakingMaxCapLimitsResponse) XXX_Size

func (*QueryVirtualStakingMaxCapLimitsResponse) XXX_Unmarshal

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

type SDKBankKeeper

type SDKBankKeeper interface {
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amounts sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
}

type SDKStakingKeeper

type SDKStakingKeeper interface {
	BondDenom(ctx sdk.Context) string
	GetAllValidators(ctx sdk.Context) (validators []stakingtypes.Validator)
	GetValidator(ctx sdk.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, found bool)
	ValidateUnbondAmount(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, amt math.Int) (shares sdk.Dec, err error)
	Delegate(ctx sdk.Context, delAddr sdk.AccAddress, bondAmt math.Int, tokenSrc stakingtypes.BondStatus, validator stakingtypes.Validator, subtractAccount bool) (newShares sdk.Dec, err error)
	GetDelegation(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress) (delegation stakingtypes.Delegation, found bool)
	UnbondingTime(ctx sdk.Context) time.Duration
	GetParams(ctx sdk.Context) stakingtypes.Params
	Unbond(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, shares sdk.Dec) (amount math.Int, err error)
	IterateBondedValidatorsByPower(ctx sdk.Context, fn func(int64, stakingtypes.ValidatorI) bool)
	TotalBondedTokens(ctx sdk.Context) math.Int
	IterateDelegations(ctx sdk.Context, delegator sdk.AccAddress, fn func(int64, stakingtypes.DelegationI) bool)
	GetValidatorByConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress) (stakingtypes.Validator, bool)
}

SDKStakingKeeper expected staking keeper.

type SchedulerTaskType

type SchedulerTaskType byte

type SlashInfo

type SlashInfo struct {
	InfractionHeight int64
	Power            int64
	TotalSlashAmount string
	SlashFraction    string
	Infraction       int32
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) SetPriceFeedContract

func (*UnimplementedMsgServer) SetVirtualStakingMaxCap

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

type ValidatorAddress

type ValidatorAddress struct {
	// Address is the ValAddress bech32 string
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

ValidatorAddress payload data to be used with the scheduler

func (*ValidatorAddress) Descriptor

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

func (*ValidatorAddress) Marshal

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

func (*ValidatorAddress) MarshalTo

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

func (*ValidatorAddress) MarshalToSizedBuffer

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

func (*ValidatorAddress) ProtoMessage

func (*ValidatorAddress) ProtoMessage()

func (*ValidatorAddress) Reset

func (m *ValidatorAddress) Reset()

func (*ValidatorAddress) Size

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

func (*ValidatorAddress) String

func (m *ValidatorAddress) String() string

func (*ValidatorAddress) Unmarshal

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

func (*ValidatorAddress) XXX_DiscardUnknown

func (m *ValidatorAddress) XXX_DiscardUnknown()

func (*ValidatorAddress) XXX_Marshal

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

func (*ValidatorAddress) XXX_Merge

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

func (*ValidatorAddress) XXX_Size

func (m *ValidatorAddress) XXX_Size() int

func (*ValidatorAddress) XXX_Unmarshal

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

type VirtualStakingMaxCapInfo

type VirtualStakingMaxCapInfo struct {
	// Contract is the address of the contract
	Contract string `protobuf:"bytes,1,opt,name=contract,proto3" json:"contract,omitempty"`
	// Delegated is the total amount currently delegated
	Delegated types.Coin `protobuf:"bytes,2,opt,name=delegated,proto3" json:"delegated"`
	// Cap is the current max cap limit
	Cap types.Coin `protobuf:"bytes,3,opt,name=cap,proto3" json:"cap"`
}

VirtualStakingMaxCapInfo stores info about virtual staking max cap

func (*VirtualStakingMaxCapInfo) Descriptor

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

func (*VirtualStakingMaxCapInfo) Equal

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

func (*VirtualStakingMaxCapInfo) Marshal

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

func (*VirtualStakingMaxCapInfo) MarshalTo

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

func (*VirtualStakingMaxCapInfo) MarshalToSizedBuffer

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

func (*VirtualStakingMaxCapInfo) ProtoMessage

func (*VirtualStakingMaxCapInfo) ProtoMessage()

func (*VirtualStakingMaxCapInfo) Reset

func (m *VirtualStakingMaxCapInfo) Reset()

func (*VirtualStakingMaxCapInfo) Size

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

func (*VirtualStakingMaxCapInfo) String

func (m *VirtualStakingMaxCapInfo) String() string

func (*VirtualStakingMaxCapInfo) Unmarshal

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

func (*VirtualStakingMaxCapInfo) XXX_DiscardUnknown

func (m *VirtualStakingMaxCapInfo) XXX_DiscardUnknown()

func (*VirtualStakingMaxCapInfo) XXX_Marshal

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

func (*VirtualStakingMaxCapInfo) XXX_Merge

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

func (*VirtualStakingMaxCapInfo) XXX_Size

func (m *VirtualStakingMaxCapInfo) XXX_Size() int

func (*VirtualStakingMaxCapInfo) XXX_Unmarshal

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

type WasmKeeper

type WasmKeeper interface {
	Sudo(ctx sdk.Context, contractAddress sdk.AccAddress, msg []byte) ([]byte, error)
	HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool
}

WasmKeeper abstract wasm keeper

type XBankKeeper

type XBankKeeper interface {
	SDKBankKeeper
	AddSupplyOffset(ctx sdk.Context, denom string, offsetAmount math.Int)
}

type XStakingKeeper

type XStakingKeeper interface {
	SDKStakingKeeper
	InstantUndelegate(ctx sdk.Context, delAddr sdk.AccAddress, valAddr sdk.ValAddress, sharesAmount sdk.Dec) (sdk.Coins, error)
}

Jump to

Keyboard shortcuts

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