types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 55 Imported by: 12

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeCreateValidator = "create_validator"
	EventTypeUpdateValidator = "update_validator"
	EventTypeDelegate        = "delegate"
	EventTypeUndelegate      = "undelegate"

	AttributeKeyValOperator = "operator"
	AttributeKeyMoniker     = "moniker"
	AttributeKeyPubKeyHex   = "pubkey"
	AttributeValueCategory  = ModuleName
)

staking module event types

View Source
const (
	// ModuleName is the name of the gentx module
	ModuleName = "poe"

	// StoreKey is the string store representation
	StoreKey = ModuleName

	// QuerierRoute is the querier route for the staking module
	QuerierRoute = ModuleName

	// RouterKey is the msg router key for the staking module
	RouterKey = ModuleName

	// BondedPoolName is the bonded tokens module account name
	BondedPoolName = "bonded_tokens_pool"
)
View Source
const (
	TypeMsgCreateValidator = "create_validator"
	TypeMsgUpdateValidator = "update_validator"
	TypeMsgUndelegate      = "begin_unbonding"
	TypeMsgDelegate        = "delegate"
)
View Source
const (

	// DefaultHistoricalEntries entries is 10000. Apps that don't use IBC can ignore this
	// value by not adding the staking module to the application module manager's
	// SetOrderBeginBlockers.
	DefaultHistoricalEntries                uint32 = 10000
	DefaultInitialValidatorEngagementPoints uint64 = 1
)

PoE params default values

View Source
const DefaultBondDenom = "utgd"

Variables

View Source
var (
	ErrDeliverGenTXFailed              = sdkerrors.Register(ModuleName, 2, "tx failed")
	ErrValidatorPubKeyTypeNotSupported = sdkerrors.Register(ModuleName, 3, "validator pubkey type is not supported")
	ErrInvalidHistoricalInfo           = sdkerrors.Register(ModuleName, 4, "invalid historical info")
	ErrEmpty                           = sdkerrors.Register(ModuleName, 5, "empty")
	ErrInvalid                         = sdkerrors.Register(ModuleName, 6, "invalid")
	ErrNotFound                        = sdkerrors.Register(ModuleName, 7, "not found")
)
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 (
	ContractPrefix    = []byte{0x01}
	HistoricalInfoKey = []byte{0x02}
)

nolint

View Source
var (
	KeyHistoricalEntries          = []byte("HistoricalEntries")
	KeyInitialValEngagementPoints = []byte("InitialValidatorEngagementPoints")
	KeyMinDelegationAmounts       = []byte("MinDelegationAmounts")
)
View Source
var (
	ErrInvalidLengthPoe        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPoe          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPoe = 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 (
	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 references the global x/poe 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/staking and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var PoEContractType_name = map[int32]string{
	0:  "UNDEFINED",
	1:  "STAKING",
	2:  "VALSET",
	3:  "ENGAGEMENT",
	4:  "MIXER",
	5:  "DISTRIBUTION",
	6:  "OVERSIGHT_COMMUNITY",
	7:  "OVERSIGHT_COMMUNITY_PROPOSALS",
	8:  "COMMUNITY_POOL",
	9:  "VALIDATOR_VOTING",
	10: "ARBITER_POOL",
	11: "ARBITER_POOL_VOTING",
}
View Source
var PoEContractType_value = map[string]int32{
	"UNDEFINED":                     0,
	"STAKING":                       1,
	"VALSET":                        2,
	"ENGAGEMENT":                    3,
	"MIXER":                         4,
	"DISTRIBUTION":                  5,
	"OVERSIGHT_COMMUNITY":           6,
	"OVERSIGHT_COMMUNITY_PROPOSALS": 7,
	"COMMUNITY_POOL":                8,
	"VALIDATOR_VOTING":              9,
	"ARBITER_POOL":                  10,
	"ARBITER_POOL_VOTING":           11,
}

Functions

func IteratePoEContractTypes added in v0.8.0

func IteratePoEContractTypes(cb func(tp PoEContractType) bool)

IteratePoEContractTypes for each defined poe contract type the given callback is called deterministic. When the callback returns true the loop is aborted early

func MakeEncodingConfig

func MakeEncodingConfig(_ testing.TB) simappparams.EncodingConfig

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for PoE module

func RandomAccAddress

func RandomAccAddress() sdk.AccAddress

func RandomGenTX

func RandomGenTX(t *testing.T, power uint32, mutators ...func(*MsgCreateValidator)) (json.RawMessage, sdk.AccAddress, cryptotypes.PubKey)

RandomGenTX returns a signed genesis tx

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers the x/poe interfaces types with the interface registry

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the necessary x/poe interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SetGenTxsInAppGenesisState

func SetGenTxsInAppGenesisState(
	cdc codec.JSONCodec, txJSONEncoder sdk.TxEncoder, appGenesisState map[string]json.RawMessage, genTxs []sdk.Tx,
) (map[string]json.RawMessage, error)

SetGenTxsInAppGenesisState - sets the genesis transactions in the app genesis state

func SetGenesisOCMembersMutator added in v0.8.0

func SetGenesisOCMembersMutator(members ...sdk.AccAddress) func(m *GenesisState)

SetGenesisOCMembersMutator helper to overwrite the oversight community members within GenesisStateFixture

func SetGenesisStateInAppState

func SetGenesisStateInAppState(
	cdc codec.JSONCodec, appState map[string]json.RawMessage, genesisState *GenesisState,
) map[string]json.RawMessage

SetGenesisStateInAppState sets the genesis state within the expected app state

func ValidateGenesis

func ValidateGenesis(g GenesisState, txJSONDecoder sdk.TxDecoder) error

ValidateGenesis validates genesis for PoE module

func ValidatorFixture

func ValidatorFixture(mutators ...func(m *stakingtypes.Validator)) stakingtypes.Validator

Types

type AccountKeeper added in v0.6.2

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper is a subset of the SDK account keeper

type ArbiterPoolContractConfig added in v0.8.0

type ArbiterPoolContractConfig struct {
	// Name of TRUSTED_CIRCLE
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// EscrowAmount The required escrow amount, in the default denom (utgd)
	EscrowAmount types.Coin `protobuf:"bytes,2,opt,name=escrow_amount,json=escrowAmount,proto3" json:"escrow_amount"`
	// VotingRules rules for the tally
	VotingRules VotingRules `protobuf:"bytes,3,opt,name=voting_rules,json=votingRules,proto3" json:"voting_rules"`
	// DenyListContractAddress is an optional cw4 contract with list of addresses
	// denied to be part of TrustedCircle
	DenyListContractAddress string `` /* 134-byte string literal not displayed */
	// DisputeCost The required dispute amount, in the default denom (utgd)
	DisputeCost   types.Coin    `protobuf:"bytes,5,opt,name=dispute_cost,json=disputeCost,proto3" json:"dispute_cost"`
	WaitingPeriod time.Duration `protobuf:"bytes,6,opt,name=waiting_period,json=waitingPeriod,proto3,stdduration" json:"waiting_period"`
}

ArbiterPoolContractConfig initial setup config for the trusted circle

func (*ArbiterPoolContractConfig) Descriptor added in v0.8.0

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

func (*ArbiterPoolContractConfig) GetDenyListContractAddress added in v0.8.0

func (m *ArbiterPoolContractConfig) GetDenyListContractAddress() string

func (*ArbiterPoolContractConfig) GetDisputeCost added in v0.8.0

func (m *ArbiterPoolContractConfig) GetDisputeCost() types.Coin

func (*ArbiterPoolContractConfig) GetEscrowAmount added in v0.8.0

func (m *ArbiterPoolContractConfig) GetEscrowAmount() types.Coin

func (*ArbiterPoolContractConfig) GetName added in v0.8.0

func (m *ArbiterPoolContractConfig) GetName() string

func (*ArbiterPoolContractConfig) GetVotingRules added in v0.8.0

func (m *ArbiterPoolContractConfig) GetVotingRules() VotingRules

func (*ArbiterPoolContractConfig) GetWaitingPeriod added in v0.8.0

func (m *ArbiterPoolContractConfig) GetWaitingPeriod() time.Duration

func (*ArbiterPoolContractConfig) Marshal added in v0.8.0

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

func (*ArbiterPoolContractConfig) MarshalTo added in v0.8.0

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

func (*ArbiterPoolContractConfig) MarshalToSizedBuffer added in v0.8.0

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

func (*ArbiterPoolContractConfig) ProtoMessage added in v0.8.0

func (*ArbiterPoolContractConfig) ProtoMessage()

func (*ArbiterPoolContractConfig) Reset added in v0.8.0

func (m *ArbiterPoolContractConfig) Reset()

func (*ArbiterPoolContractConfig) Size added in v0.8.0

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

func (*ArbiterPoolContractConfig) String added in v0.8.0

func (m *ArbiterPoolContractConfig) String() string

func (*ArbiterPoolContractConfig) Unmarshal added in v0.8.0

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

func (ArbiterPoolContractConfig) ValidateBasic added in v0.8.0

func (c ArbiterPoolContractConfig) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*ArbiterPoolContractConfig) XXX_DiscardUnknown added in v0.8.0

func (m *ArbiterPoolContractConfig) XXX_DiscardUnknown()

func (*ArbiterPoolContractConfig) XXX_Marshal added in v0.8.0

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

func (*ArbiterPoolContractConfig) XXX_Merge added in v0.8.0

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

func (*ArbiterPoolContractConfig) XXX_Size added in v0.8.0

func (m *ArbiterPoolContractConfig) XXX_Size() int

func (*ArbiterPoolContractConfig) XXX_Unmarshal added in v0.8.0

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

type AuthKeeper added in v0.8.0

type AuthKeeper interface {
	GetModuleAddress(name string) sdk.AccAddress
}

AuthKeeper is a subset of the sdk auth/keeper

type BankKeeper added in v0.6.2

type BankKeeper interface {
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, s string, addr sdk.AccAddress, amt sdk.Coins) error
	UndelegateCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	DelegateCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
}

BankKeeper is a subset of the SDK bank keeper

type CommunityPoolContractConfig

type CommunityPoolContractConfig struct {
	// VotingRules rules for the tally
	VotingRules VotingRules `protobuf:"bytes,1,opt,name=voting_rules,json=votingRules,proto3" json:"voting_rules"`
}

CommunityPoolContractConfig initial setup config for the contract

func (*CommunityPoolContractConfig) Descriptor

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

func (*CommunityPoolContractConfig) GetVotingRules

func (m *CommunityPoolContractConfig) GetVotingRules() VotingRules

func (*CommunityPoolContractConfig) Marshal

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

func (*CommunityPoolContractConfig) MarshalTo

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

func (*CommunityPoolContractConfig) MarshalToSizedBuffer

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

func (*CommunityPoolContractConfig) ProtoMessage

func (*CommunityPoolContractConfig) ProtoMessage()

func (*CommunityPoolContractConfig) Reset

func (m *CommunityPoolContractConfig) Reset()

func (*CommunityPoolContractConfig) Size

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

func (*CommunityPoolContractConfig) String

func (m *CommunityPoolContractConfig) String() string

func (*CommunityPoolContractConfig) Unmarshal

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

func (CommunityPoolContractConfig) ValidateBasic

func (c CommunityPoolContractConfig) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*CommunityPoolContractConfig) XXX_DiscardUnknown

func (m *CommunityPoolContractConfig) XXX_DiscardUnknown()

func (*CommunityPoolContractConfig) XXX_Marshal

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

func (*CommunityPoolContractConfig) XXX_Merge

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

func (*CommunityPoolContractConfig) XXX_Size

func (m *CommunityPoolContractConfig) XXX_Size() int

func (*CommunityPoolContractConfig) XXX_Unmarshal

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

type EngagementContractConfig

type EngagementContractConfig struct {
	Halflife time.Duration `protobuf:"bytes,1,opt,name=halflife,proto3,stdduration" json:"halflife"`
}

EngagementContractConfig initial setup config

func (*EngagementContractConfig) Descriptor

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

func (*EngagementContractConfig) GetHalflife

func (m *EngagementContractConfig) GetHalflife() time.Duration

func (*EngagementContractConfig) Marshal

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

func (*EngagementContractConfig) MarshalTo

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

func (*EngagementContractConfig) MarshalToSizedBuffer

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

func (*EngagementContractConfig) ProtoMessage

func (*EngagementContractConfig) ProtoMessage()

func (*EngagementContractConfig) Reset

func (m *EngagementContractConfig) Reset()

func (*EngagementContractConfig) Size

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

func (*EngagementContractConfig) String

func (m *EngagementContractConfig) String() string

func (*EngagementContractConfig) Unmarshal

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

func (*EngagementContractConfig) ValidateBasic

func (c *EngagementContractConfig) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*EngagementContractConfig) XXX_DiscardUnknown

func (m *EngagementContractConfig) XXX_DiscardUnknown()

func (*EngagementContractConfig) XXX_Marshal

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

func (*EngagementContractConfig) XXX_Merge

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

func (*EngagementContractConfig) XXX_Size

func (m *EngagementContractConfig) XXX_Size() int

func (*EngagementContractConfig) XXX_Unmarshal

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

type Executor

type Executor interface {
	Execute(ctx sdk.Context, contractAddress sdk.AccAddress, caller sdk.AccAddress, msg []byte, coins sdk.Coins) ([]byte, error)
}

Executor with access to execute method

type GenesisState

type GenesisState struct {
	// params defines all the parameter of the module
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// SetupMode defines which scenario to apply on a genesis import.
	// Either it is a fresh chain that needs PoE contracts bootstrapped or
	// the module state has to be restored from a previous state dump.
	//
	// Types that are valid to be assigned to SetupMode:
	//	*GenesisState_SeedContracts
	//	*GenesisState_ImportDump
	SetupMode isGenesisState_SetupMode `protobuf_oneof:"setup_mode"`
}

GenesisState - initial state of module

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState default values

func GenesisStateFixture

func GenesisStateFixture(mutators ...func(m *GenesisState)) *GenesisState

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState

GetGenesisStateFromAppState gets the genesis state from the expected app state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetImportDump added in v1.0.0

func (m *GenesisState) GetImportDump() *ImportDump

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSeedContracts

func (m *GenesisState) GetSeedContracts() *SeedContracts

func (*GenesisState) GetSetupMode added in v1.0.0

func (m *GenesisState) GetSetupMode() isGenesisState_SetupMode

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_OneofWrappers added in v1.0.0

func (*GenesisState) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type GenesisState_ImportDump added in v1.0.0

type GenesisState_ImportDump struct {
	ImportDump *ImportDump `protobuf:"bytes,3,opt,name=import_dump,json=importDump,proto3,oneof" json:"import_dump,omitempty"`
}

func (*GenesisState_ImportDump) MarshalTo added in v1.0.0

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

func (*GenesisState_ImportDump) MarshalToSizedBuffer added in v1.0.0

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

func (*GenesisState_ImportDump) Size added in v1.0.0

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

type GenesisState_SeedContracts added in v1.0.0

type GenesisState_SeedContracts struct {
	SeedContracts *SeedContracts `protobuf:"bytes,2,opt,name=seed_contracts,json=seedContracts,proto3,oneof" json:"seed_contracts,omitempty"`
}

func (*GenesisState_SeedContracts) MarshalTo added in v1.0.0

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

func (*GenesisState_SeedContracts) MarshalToSizedBuffer added in v1.0.0

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

func (*GenesisState_SeedContracts) Size added in v1.0.0

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

type ImportDump added in v1.0.0

type ImportDump struct {
	// Contracts PoE contract addresses and types
	Contracts []PoEContract `protobuf:"bytes,1,rep,name=contracts,proto3" json:"contracts,omitempty"`
}

ImportDump has all module data for non seed mode.

func (*ImportDump) Descriptor added in v1.0.0

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

func (*ImportDump) GetContracts added in v1.0.0

func (m *ImportDump) GetContracts() []PoEContract

func (*ImportDump) Marshal added in v1.0.0

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

func (*ImportDump) MarshalTo added in v1.0.0

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

func (*ImportDump) MarshalToSizedBuffer added in v1.0.0

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

func (*ImportDump) ProtoMessage added in v1.0.0

func (*ImportDump) ProtoMessage()

func (*ImportDump) Reset added in v1.0.0

func (m *ImportDump) Reset()

func (*ImportDump) Size added in v1.0.0

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

func (*ImportDump) String added in v1.0.0

func (m *ImportDump) String() string

func (*ImportDump) Unmarshal added in v1.0.0

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

func (ImportDump) ValidateBasic added in v1.0.0

func (g ImportDump) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*ImportDump) XXX_DiscardUnknown added in v1.0.0

func (m *ImportDump) XXX_DiscardUnknown()

func (*ImportDump) XXX_Marshal added in v1.0.0

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

func (*ImportDump) XXX_Merge added in v1.0.0

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

func (*ImportDump) XXX_Size added in v1.0.0

func (m *ImportDump) XXX_Size() int

func (*ImportDump) XXX_Unmarshal added in v1.0.0

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

type MixerContractConfig added in v1.0.0

type MixerContractConfig struct {
	// Sigmoid returns a sigmoid-like value of staked amount times engagement
	// points. See the Proof-of-Engagement white-paper for details.
	Sigmoid MixerContractConfig_Sigmoid `protobuf:"bytes,1,opt,name=sigmoid,proto3" json:"sigmoid"`
}

Mixer contract setup. See https://github.com/confio/poe-contracts/tree/main/contracts/tg4-mixer

func (*MixerContractConfig) Descriptor added in v1.0.0

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

func (*MixerContractConfig) GetSigmoid added in v1.0.0

func (*MixerContractConfig) Marshal added in v1.0.0

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

func (*MixerContractConfig) MarshalTo added in v1.0.0

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

func (*MixerContractConfig) MarshalToSizedBuffer added in v1.0.0

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

func (*MixerContractConfig) ProtoMessage added in v1.0.0

func (*MixerContractConfig) ProtoMessage()

func (*MixerContractConfig) Reset added in v1.0.0

func (m *MixerContractConfig) Reset()

func (*MixerContractConfig) Size added in v1.0.0

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

func (*MixerContractConfig) String added in v1.0.0

func (m *MixerContractConfig) String() string

func (*MixerContractConfig) Unmarshal added in v1.0.0

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

func (*MixerContractConfig) ValidateBasic added in v1.0.0

func (m *MixerContractConfig) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*MixerContractConfig) XXX_DiscardUnknown added in v1.0.0

func (m *MixerContractConfig) XXX_DiscardUnknown()

func (*MixerContractConfig) XXX_Marshal added in v1.0.0

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

func (*MixerContractConfig) XXX_Merge added in v1.0.0

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

func (*MixerContractConfig) XXX_Size added in v1.0.0

func (m *MixerContractConfig) XXX_Size() int

func (*MixerContractConfig) XXX_Unmarshal added in v1.0.0

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

type MixerContractConfig_Sigmoid added in v1.0.0

type MixerContractConfig_Sigmoid struct {
	MaxPoints uint64                                 `protobuf:"varint,1,opt,name=max_points,json=maxPoints,proto3" json:"max_points,omitempty"`
	P         github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=p,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"p"`
	S         github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=s,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"s"`
}

func (*MixerContractConfig_Sigmoid) Descriptor added in v1.0.0

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

func (*MixerContractConfig_Sigmoid) GetMaxPoints added in v1.0.0

func (m *MixerContractConfig_Sigmoid) GetMaxPoints() uint64

func (*MixerContractConfig_Sigmoid) Marshal added in v1.0.0

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

func (*MixerContractConfig_Sigmoid) MarshalTo added in v1.0.0

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

func (*MixerContractConfig_Sigmoid) MarshalToSizedBuffer added in v1.0.0

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

func (*MixerContractConfig_Sigmoid) ProtoMessage added in v1.0.0

func (*MixerContractConfig_Sigmoid) ProtoMessage()

func (*MixerContractConfig_Sigmoid) Reset added in v1.0.0

func (m *MixerContractConfig_Sigmoid) Reset()

func (*MixerContractConfig_Sigmoid) Size added in v1.0.0

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

func (*MixerContractConfig_Sigmoid) String added in v1.0.0

func (m *MixerContractConfig_Sigmoid) String() string

func (*MixerContractConfig_Sigmoid) Unmarshal added in v1.0.0

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

func (*MixerContractConfig_Sigmoid) XXX_DiscardUnknown added in v1.0.0

func (m *MixerContractConfig_Sigmoid) XXX_DiscardUnknown()

func (*MixerContractConfig_Sigmoid) XXX_Marshal added in v1.0.0

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

func (*MixerContractConfig_Sigmoid) XXX_Merge added in v1.0.0

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

func (*MixerContractConfig_Sigmoid) XXX_Size added in v1.0.0

func (m *MixerContractConfig_Sigmoid) XXX_Size() int

func (*MixerContractConfig_Sigmoid) XXX_Unmarshal added in v1.0.0

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

type MsgClient

type MsgClient interface {
	// CreateValidator defines a method for creating a new validator.
	CreateValidator(ctx context.Context, in *MsgCreateValidator, opts ...grpc.CallOption) (*MsgCreateValidatorResponse, error)
	// MsgCreateValidator defines a method for updating validator metadata
	UpdateValidator(ctx context.Context, in *MsgUpdateValidator, opts ...grpc.CallOption) (*MsgUpdateValidatorResponse, error)
	// Delegate defines a method for performing a self delegation of coins
	// by a node operator
	Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error)
	// Undelegate defines a method for performing an undelegation from a
	// node operator
	Undelegate(ctx context.Context, in *MsgUndelegate, 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 MsgCreateValidator

type MsgCreateValidator struct {
	// Description meta data
	Description types.Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
	// OperatorAddress is the bech32 address string
	OperatorAddress string `` /* 130-byte string literal not displayed */
	// Pubkey public key
	Pubkey *types1.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	// Amount defines the initial staking amount from a liquid balance
	Amount types2.Coin `protobuf:"bytes,7,opt,name=amount,proto3" json:"amount"`
	// VestingAmount defines the initial staking amount from a vesting account
	// balance
	VestingAmount types2.Coin `protobuf:"bytes,8,opt,name=vesting_amount,json=vestingAmount,proto3" json:"vesting_amount"`
}

MsgCreateValidator defines a PoE message for creating a new validator. Based on the SDK staking.MsgCreateValidator

func MsgCreateValidatorFixture

func MsgCreateValidatorFixture(mutators ...func(m *MsgCreateValidator)) *MsgCreateValidator

func NewMsgCreateValidator

func NewMsgCreateValidator(
	valAddr sdk.AccAddress,
	pubKey cryptotypes.PubKey,
	selfDelegationLiquid sdk.Coin,
	selfDelegationVesting sdk.Coin,
	description stakingtypes.Description,
) (*MsgCreateValidator, error)

NewMsgCreateValidator creates a new MsgCreateValidator instance. Operator address and validator address are the same.

func (*MsgCreateValidator) Descriptor

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

func (MsgCreateValidator) GetSignBytes

func (msg MsgCreateValidator) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over.

func (MsgCreateValidator) GetSigners

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

GetSigners implements the sdk.Msg interface. It returns the address(es) that must sign over msg.GetSignBytes().

func (*MsgCreateValidator) Marshal

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

func (*MsgCreateValidator) MarshalTo

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

func (*MsgCreateValidator) MarshalToSizedBuffer

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

func (*MsgCreateValidator) ProtoMessage

func (*MsgCreateValidator) ProtoMessage()

func (*MsgCreateValidator) Reset

func (m *MsgCreateValidator) Reset()

func (MsgCreateValidator) Route

func (msg MsgCreateValidator) Route() string

Route implements the sdk.Msg interface.

func (*MsgCreateValidator) Size

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

func (*MsgCreateValidator) String

func (m *MsgCreateValidator) String() string

func (MsgCreateValidator) Type

func (msg MsgCreateValidator) Type() string

Type implements the sdk.Msg interface.

func (*MsgCreateValidator) Unmarshal

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

func (MsgCreateValidator) UnpackInterfaces

func (msg MsgCreateValidator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

func (MsgCreateValidator) ValidateBasic

func (msg MsgCreateValidator) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgCreateValidator) XXX_DiscardUnknown

func (m *MsgCreateValidator) XXX_DiscardUnknown()

func (*MsgCreateValidator) XXX_Marshal

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

func (*MsgCreateValidator) XXX_Merge

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

func (*MsgCreateValidator) XXX_Size

func (m *MsgCreateValidator) XXX_Size() int

func (*MsgCreateValidator) XXX_Unmarshal

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

type MsgCreateValidatorResponse

type MsgCreateValidatorResponse struct{}

MsgCreateValidatorResponse defines the MsgCreateValidator response type.

func (*MsgCreateValidatorResponse) Descriptor

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

func (*MsgCreateValidatorResponse) Marshal

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

func (*MsgCreateValidatorResponse) MarshalTo

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

func (*MsgCreateValidatorResponse) MarshalToSizedBuffer

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

func (*MsgCreateValidatorResponse) ProtoMessage

func (*MsgCreateValidatorResponse) ProtoMessage()

func (*MsgCreateValidatorResponse) Reset

func (m *MsgCreateValidatorResponse) Reset()

func (*MsgCreateValidatorResponse) Size

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

func (*MsgCreateValidatorResponse) String

func (m *MsgCreateValidatorResponse) String() string

func (*MsgCreateValidatorResponse) Unmarshal

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

func (*MsgCreateValidatorResponse) XXX_DiscardUnknown

func (m *MsgCreateValidatorResponse) XXX_DiscardUnknown()

func (*MsgCreateValidatorResponse) XXX_Marshal

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

func (*MsgCreateValidatorResponse) XXX_Merge

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

func (*MsgCreateValidatorResponse) XXX_Size

func (m *MsgCreateValidatorResponse) XXX_Size() int

func (*MsgCreateValidatorResponse) XXX_Unmarshal

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

type MsgDelegate

type MsgDelegate struct {
	OperatorAddress string      `` /* 130-byte string literal not displayed */
	Amount          types2.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
	VestingAmount   types2.Coin `protobuf:"bytes,3,opt,name=vesting_amount,json=vestingAmount,proto3" json:"vesting_amount"`
}

MsgDelegate defines a SDK message for performing a self delegation of coins by a node operator

func NewMsgDelegate

func NewMsgDelegate(delAddr sdk.AccAddress, amount sdk.Coin, vestingAmount sdk.Coin) *MsgDelegate

NewMsgDelegate constructor

func (*MsgDelegate) Descriptor

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

func (MsgDelegate) GetSignBytes

func (msg MsgDelegate) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgDelegate) GetSigners

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

GetSigners implements the sdk.Msg interface.

func (*MsgDelegate) Marshal

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

func (*MsgDelegate) MarshalTo

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

func (*MsgDelegate) MarshalToSizedBuffer

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

func (*MsgDelegate) ProtoMessage

func (*MsgDelegate) ProtoMessage()

func (*MsgDelegate) Reset

func (m *MsgDelegate) Reset()

func (MsgDelegate) Route

func (msg MsgDelegate) Route() string

Route implements the sdk.Msg interface.

func (*MsgDelegate) Size

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

func (*MsgDelegate) String

func (m *MsgDelegate) String() string

func (MsgDelegate) Type

func (msg MsgDelegate) Type() string

Type implements the sdk.Msg interface.

func (*MsgDelegate) Unmarshal

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

func (MsgDelegate) ValidateBasic

func (msg MsgDelegate) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgDelegate) XXX_DiscardUnknown

func (m *MsgDelegate) XXX_DiscardUnknown()

func (*MsgDelegate) XXX_Marshal

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

func (*MsgDelegate) XXX_Merge

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

func (*MsgDelegate) XXX_Size

func (m *MsgDelegate) XXX_Size() int

func (*MsgDelegate) XXX_Unmarshal

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

type MsgDelegateResponse

type MsgDelegateResponse struct{}

MsgDelegateResponse defines the Msg/Delegate response type.

func (*MsgDelegateResponse) Descriptor

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

func (*MsgDelegateResponse) Marshal

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

func (*MsgDelegateResponse) MarshalTo

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

func (*MsgDelegateResponse) MarshalToSizedBuffer

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

func (*MsgDelegateResponse) ProtoMessage

func (*MsgDelegateResponse) ProtoMessage()

func (*MsgDelegateResponse) Reset

func (m *MsgDelegateResponse) Reset()

func (*MsgDelegateResponse) Size

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

func (*MsgDelegateResponse) String

func (m *MsgDelegateResponse) String() string

func (*MsgDelegateResponse) Unmarshal

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

func (*MsgDelegateResponse) XXX_DiscardUnknown

func (m *MsgDelegateResponse) XXX_DiscardUnknown()

func (*MsgDelegateResponse) XXX_Marshal

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

func (*MsgDelegateResponse) XXX_Merge

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

func (*MsgDelegateResponse) XXX_Size

func (m *MsgDelegateResponse) XXX_Size() int

func (*MsgDelegateResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// CreateValidator defines a method for creating a new validator.
	CreateValidator(context.Context, *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
	// MsgCreateValidator defines a method for updating validator metadata
	UpdateValidator(context.Context, *MsgUpdateValidator) (*MsgUpdateValidatorResponse, error)
	// Delegate defines a method for performing a self delegation of coins
	// by a node operator
	Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error)
	// Undelegate defines a method for performing an undelegation from a
	// node operator
	Undelegate(context.Context, *MsgUndelegate) (*MsgUndelegateResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUndelegate

type MsgUndelegate struct {
	OperatorAddress string      `` /* 130-byte string literal not displayed */
	Amount          types2.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"`
}

MsgUndelegate defines a SDK message for performing an undelegation from a node operator

func NewMsgUndelegate

func NewMsgUndelegate(delAddr sdk.AccAddress, amount sdk.Coin) *MsgUndelegate

NewMsgUndelegate constructor

func (*MsgUndelegate) Descriptor

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

func (MsgUndelegate) GetSignBytes

func (msg MsgUndelegate) GetSignBytes() []byte

GetSignBytes implements the sdk.Msg interface.

func (MsgUndelegate) GetSigners

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

GetSigners implements the sdk.Msg interface.

func (*MsgUndelegate) Marshal

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

func (*MsgUndelegate) MarshalTo

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

func (*MsgUndelegate) MarshalToSizedBuffer

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

func (*MsgUndelegate) ProtoMessage

func (*MsgUndelegate) ProtoMessage()

func (*MsgUndelegate) Reset

func (m *MsgUndelegate) Reset()

func (MsgUndelegate) Route

func (msg MsgUndelegate) Route() string

Route implements the sdk.Msg interface.

func (*MsgUndelegate) Size

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

func (*MsgUndelegate) String

func (m *MsgUndelegate) String() string

func (MsgUndelegate) Type

func (msg MsgUndelegate) Type() string

Type implements the sdk.Msg interface.

func (*MsgUndelegate) Unmarshal

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

func (MsgUndelegate) ValidateBasic

func (msg MsgUndelegate) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgUndelegate) XXX_DiscardUnknown

func (m *MsgUndelegate) XXX_DiscardUnknown()

func (*MsgUndelegate) XXX_Marshal

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

func (*MsgUndelegate) XXX_Merge

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

func (*MsgUndelegate) XXX_Size

func (m *MsgUndelegate) XXX_Size() int

func (*MsgUndelegate) XXX_Unmarshal

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

type MsgUndelegateResponse

type MsgUndelegateResponse struct {
	CompletionTime time.Time `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3,stdtime" json:"completion_time"`
}

MsgUndelegateResponse defines the Msg/Undelegate response type.

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 MsgUpdateValidator

type MsgUpdateValidator struct {
	// New Description meta data
	Description types.Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"`
	// OperatorAddress is the bech32 address string
	// Also know as "signer" in other messages
	OperatorAddress string `` /* 130-byte string literal not displayed */
}

MsgCreateValidator defines a PoE message for updating validator metadata

func MsgUpdateValidatorFixture

func MsgUpdateValidatorFixture(mutators ...func(m *MsgUpdateValidator)) *MsgUpdateValidator

func NewMsgUpdateValidator

func NewMsgUpdateValidator(
	valAddr sdk.AccAddress,
	description stakingtypes.Description,
) *MsgUpdateValidator

NewMsgUpdateValidator creates a new MsgUpdateValidator instance. Operator address and validator address are the same.

func (*MsgUpdateValidator) Descriptor

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

func (MsgUpdateValidator) GetSignBytes

func (msg MsgUpdateValidator) GetSignBytes() []byte

GetSignBytes returns the message bytes to sign over.

func (MsgUpdateValidator) GetSigners

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

GetSigners implements the sdk.Msg interface. It returns the address(es) that must sign over msg.GetSignBytes().

func (*MsgUpdateValidator) Marshal

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

func (*MsgUpdateValidator) MarshalTo

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

func (*MsgUpdateValidator) MarshalToSizedBuffer

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

func (*MsgUpdateValidator) ProtoMessage

func (*MsgUpdateValidator) ProtoMessage()

func (*MsgUpdateValidator) Reset

func (m *MsgUpdateValidator) Reset()

func (MsgUpdateValidator) Route

func (msg MsgUpdateValidator) Route() string

Route implements the sdk.Msg interface.

func (*MsgUpdateValidator) Size

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

func (*MsgUpdateValidator) String

func (m *MsgUpdateValidator) String() string

func (MsgUpdateValidator) Type

func (msg MsgUpdateValidator) Type() string

Type implements the sdk.Msg interface.

func (*MsgUpdateValidator) Unmarshal

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

func (MsgUpdateValidator) ValidateBasic

func (msg MsgUpdateValidator) ValidateBasic() error

ValidateBasic implements the sdk.Msg interface.

func (*MsgUpdateValidator) XXX_DiscardUnknown

func (m *MsgUpdateValidator) XXX_DiscardUnknown()

func (*MsgUpdateValidator) XXX_Marshal

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

func (*MsgUpdateValidator) XXX_Merge

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

func (*MsgUpdateValidator) XXX_Size

func (m *MsgUpdateValidator) XXX_Size() int

func (*MsgUpdateValidator) XXX_Unmarshal

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

type MsgUpdateValidatorResponse

type MsgUpdateValidatorResponse struct{}

MsgUpdateValidatorResponse defines the MsgUpdateValidator response type.

func (*MsgUpdateValidatorResponse) Descriptor

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

func (*MsgUpdateValidatorResponse) Marshal

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

func (*MsgUpdateValidatorResponse) MarshalTo

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

func (*MsgUpdateValidatorResponse) MarshalToSizedBuffer

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

func (*MsgUpdateValidatorResponse) ProtoMessage

func (*MsgUpdateValidatorResponse) ProtoMessage()

func (*MsgUpdateValidatorResponse) Reset

func (m *MsgUpdateValidatorResponse) Reset()

func (*MsgUpdateValidatorResponse) Size

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

func (*MsgUpdateValidatorResponse) String

func (m *MsgUpdateValidatorResponse) String() string

func (*MsgUpdateValidatorResponse) Unmarshal

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

func (*MsgUpdateValidatorResponse) XXX_DiscardUnknown

func (m *MsgUpdateValidatorResponse) XXX_DiscardUnknown()

func (*MsgUpdateValidatorResponse) XXX_Marshal

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

func (*MsgUpdateValidatorResponse) XXX_Merge

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

func (*MsgUpdateValidatorResponse) XXX_Size

func (m *MsgUpdateValidatorResponse) XXX_Size() int

func (*MsgUpdateValidatorResponse) XXX_Unmarshal

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

type OversightCommitteeContractConfig

type OversightCommitteeContractConfig struct {
	// Name of TRUSTED_CIRCLE
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// EscrowAmount The required escrow amount, in the default denom (utgd)
	EscrowAmount types.Coin `protobuf:"bytes,2,opt,name=escrow_amount,json=escrowAmount,proto3" json:"escrow_amount"`
	// VotingRules rules for the tally
	VotingRules VotingRules `protobuf:"bytes,3,opt,name=voting_rules,json=votingRules,proto3" json:"voting_rules"`
	// DenyListContractAddress is an optional cw4 contract with list of addresses
	// denied to be part of TrustedCircle
	DenyListContractAddress string `` /* 134-byte string literal not displayed */
}

OversightCommitteeContractConfig initial setup config for the trusted circle

func (*OversightCommitteeContractConfig) Descriptor

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

func (*OversightCommitteeContractConfig) GetDenyListContractAddress

func (m *OversightCommitteeContractConfig) GetDenyListContractAddress() string

func (*OversightCommitteeContractConfig) GetEscrowAmount

func (m *OversightCommitteeContractConfig) GetEscrowAmount() types.Coin

func (*OversightCommitteeContractConfig) GetName

func (*OversightCommitteeContractConfig) GetVotingRules

func (m *OversightCommitteeContractConfig) GetVotingRules() VotingRules

func (*OversightCommitteeContractConfig) Marshal

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

func (*OversightCommitteeContractConfig) MarshalTo

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

func (*OversightCommitteeContractConfig) MarshalToSizedBuffer

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

func (*OversightCommitteeContractConfig) ProtoMessage

func (*OversightCommitteeContractConfig) ProtoMessage()

func (*OversightCommitteeContractConfig) Reset

func (*OversightCommitteeContractConfig) Size

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

func (*OversightCommitteeContractConfig) String

func (*OversightCommitteeContractConfig) Unmarshal

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

func (OversightCommitteeContractConfig) ValidateBasic

func (c OversightCommitteeContractConfig) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*OversightCommitteeContractConfig) XXX_DiscardUnknown

func (m *OversightCommitteeContractConfig) XXX_DiscardUnknown()

func (*OversightCommitteeContractConfig) XXX_Marshal

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

func (*OversightCommitteeContractConfig) XXX_Merge

func (*OversightCommitteeContractConfig) XXX_Size

func (m *OversightCommitteeContractConfig) XXX_Size() int

func (*OversightCommitteeContractConfig) XXX_Unmarshal

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

type Params

type Params struct {
	// HistoricalEntries is the number of historical entries to persist.
	HistoricalEntries uint32 `` /* 139-byte string literal not displayed */
	// InitialValEngagementPoints defines the number of engagement for any new
	// validator joining post genesis
	InitialValEngagementPoints uint64 `` /* 181-byte string literal not displayed */
	// MinDelegationAmount defines the minimum amount a post genesis validator
	// needs to self delegate to receive any engagement points. One must be
	// exceeded. No minimum condition set when empty.
	MinDelegationAmounts github_com_cosmos_cosmos_sdk_types.Coins `` /* 197-byte string literal not displayed */
}

Params defines the parameters for the PoE module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(historicalEntries uint32, engagementPoints uint64, min sdk.Coins) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetHistoricalEntries

func (m *Params) GetHistoricalEntries() uint32

func (*Params) GetInitialValEngagementPoints

func (m *Params) GetInitialValEngagementPoints() uint64

func (*Params) GetMinDelegationAmounts

func (m *Params) GetMinDelegationAmounts() github_com_cosmos_cosmos_sdk_types.Coins

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs Implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String returns a human-readable string representation of the parameters.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validate a set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type PoEContract

type PoEContract struct {
	// ContractType type.
	ContractType PoEContractType `` /* 138-byte string literal not displayed */
	// Address is the bech32 address string
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

PoEContract address and type information

func (*PoEContract) Descriptor

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

func (*PoEContract) GetAddress

func (m *PoEContract) GetAddress() string

func (*PoEContract) GetContractType

func (m *PoEContract) GetContractType() PoEContractType

func (*PoEContract) Marshal

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

func (*PoEContract) MarshalTo

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

func (*PoEContract) MarshalToSizedBuffer

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

func (*PoEContract) ProtoMessage

func (*PoEContract) ProtoMessage()

func (*PoEContract) Reset

func (m *PoEContract) Reset()

func (*PoEContract) Size

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

func (*PoEContract) String

func (m *PoEContract) String() string

func (*PoEContract) Unmarshal

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

func (PoEContract) ValidateBasic

func (c PoEContract) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*PoEContract) XXX_DiscardUnknown

func (m *PoEContract) XXX_DiscardUnknown()

func (*PoEContract) XXX_Marshal

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

func (*PoEContract) XXX_Merge

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

func (*PoEContract) XXX_Size

func (m *PoEContract) XXX_Size() int

func (*PoEContract) XXX_Unmarshal

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

type PoEContractType

type PoEContractType int32

PoEContractType type of PoE contract

const (
	PoEContractTypeUndefined                      PoEContractType = 0
	PoEContractTypeStaking                        PoEContractType = 1
	PoEContractTypeValset                         PoEContractType = 2
	PoEContractTypeEngagement                     PoEContractType = 3
	PoEContractTypeMixer                          PoEContractType = 4
	PoEContractTypeDistribution                   PoEContractType = 5
	PoEContractTypeOversightCommunity             PoEContractType = 6
	PoEContractTypeOversightCommunityGovProposals PoEContractType = 7
	PoEContractTypeCommunityPool                  PoEContractType = 8
	PoEContractTypeValidatorVoting                PoEContractType = 9
	PoEContractTypeArbiterPool                    PoEContractType = 10
	PoEContractTypeArbiterPoolVoting              PoEContractType = 11
)

func PoEContractTypeFrom

func PoEContractTypeFrom(s string) PoEContractType

PoEContractTypeFrom converts string representation to PoEContractType. Returns PoEContractTypeUndefined for unknown or misspelled values.

func (PoEContractType) EnumDescriptor

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

func (PoEContractType) String

func (x PoEContractType) String() string

func (PoEContractType) ValidateBasic

func (t PoEContractType) ValidateBasic() error

type QueryClient

type QueryClient interface {
	// ContractAddress queries the address for one of the PoE contracts
	ContractAddress(ctx context.Context, in *QueryContractAddressRequest, opts ...grpc.CallOption) (*QueryContractAddressResponse, error)
	// Validators queries all validators that match the given status.
	Validators(ctx context.Context, in *types1.QueryValidatorsRequest, opts ...grpc.CallOption) (*types1.QueryValidatorsResponse, error)
	// Validator queries validator info for given validator address.
	Validator(ctx context.Context, in *types1.QueryValidatorRequest, opts ...grpc.CallOption) (*types1.QueryValidatorResponse, error)
	// Validator queries validator info for given validator address.
	UnbondingPeriod(ctx context.Context, in *QueryUnbondingPeriodRequest, opts ...grpc.CallOption) (*QueryUnbondingPeriodResponse, error)
	// ValidatorDelegation queries self delegated amount for given validator.
	ValidatorDelegation(ctx context.Context, in *QueryValidatorDelegationRequest, opts ...grpc.CallOption) (*QueryValidatorDelegationResponse, error)
	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
	ValidatorUnbondingDelegations(ctx context.Context, in *QueryValidatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingDelegationsResponse, error)
	// HistoricalInfo queries the historical info for given height.
	HistoricalInfo(ctx context.Context, in *types1.QueryHistoricalInfoRequest, opts ...grpc.CallOption) (*types1.QueryHistoricalInfoResponse, error)
	// ValidatorOutstandingRewards queries rewards of a validator address.
	ValidatorOutstandingReward(ctx context.Context, in *QueryValidatorOutstandingRewardRequest, opts ...grpc.CallOption) (*QueryValidatorOutstandingRewardResponse, 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 QueryContractAddressRequest

type QueryContractAddressRequest struct {
	// ContractType is the type of contract
	ContractType PoEContractType `` /* 138-byte string literal not displayed */
}

QueryContractAddressRequest is the request type for the Query/ContractAddress RPC method.

func (*QueryContractAddressRequest) Descriptor

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

func (*QueryContractAddressRequest) Marshal

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

func (*QueryContractAddressRequest) MarshalTo

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

func (*QueryContractAddressRequest) MarshalToSizedBuffer

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

func (*QueryContractAddressRequest) ProtoMessage

func (*QueryContractAddressRequest) ProtoMessage()

func (*QueryContractAddressRequest) Reset

func (m *QueryContractAddressRequest) Reset()

func (*QueryContractAddressRequest) Size

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

func (*QueryContractAddressRequest) String

func (m *QueryContractAddressRequest) String() string

func (*QueryContractAddressRequest) Unmarshal

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

func (*QueryContractAddressRequest) XXX_DiscardUnknown

func (m *QueryContractAddressRequest) XXX_DiscardUnknown()

func (*QueryContractAddressRequest) XXX_Marshal

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

func (*QueryContractAddressRequest) XXX_Merge

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

func (*QueryContractAddressRequest) XXX_Size

func (m *QueryContractAddressRequest) XXX_Size() int

func (*QueryContractAddressRequest) XXX_Unmarshal

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

type QueryContractAddressResponse

type QueryContractAddressResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryContractAddressRequest is the response type for the Query/ContractAddress RPC method.

func (*QueryContractAddressResponse) Descriptor

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

func (*QueryContractAddressResponse) GetAddress

func (m *QueryContractAddressResponse) GetAddress() string

func (*QueryContractAddressResponse) Marshal

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

func (*QueryContractAddressResponse) MarshalTo

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

func (*QueryContractAddressResponse) MarshalToSizedBuffer

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

func (*QueryContractAddressResponse) ProtoMessage

func (*QueryContractAddressResponse) ProtoMessage()

func (*QueryContractAddressResponse) Reset

func (m *QueryContractAddressResponse) Reset()

func (*QueryContractAddressResponse) Size

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

func (*QueryContractAddressResponse) String

func (*QueryContractAddressResponse) Unmarshal

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

func (*QueryContractAddressResponse) XXX_DiscardUnknown

func (m *QueryContractAddressResponse) XXX_DiscardUnknown()

func (*QueryContractAddressResponse) XXX_Marshal

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

func (*QueryContractAddressResponse) XXX_Merge

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

func (*QueryContractAddressResponse) XXX_Size

func (m *QueryContractAddressResponse) XXX_Size() int

func (*QueryContractAddressResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// ContractAddress queries the address for one of the PoE contracts
	ContractAddress(context.Context, *QueryContractAddressRequest) (*QueryContractAddressResponse, error)
	// Validators queries all validators that match the given status.
	Validators(context.Context, *types1.QueryValidatorsRequest) (*types1.QueryValidatorsResponse, error)
	// Validator queries validator info for given validator address.
	Validator(context.Context, *types1.QueryValidatorRequest) (*types1.QueryValidatorResponse, error)
	// Validator queries validator info for given validator address.
	UnbondingPeriod(context.Context, *QueryUnbondingPeriodRequest) (*QueryUnbondingPeriodResponse, error)
	// ValidatorDelegation queries self delegated amount for given validator.
	ValidatorDelegation(context.Context, *QueryValidatorDelegationRequest) (*QueryValidatorDelegationResponse, error)
	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
	ValidatorUnbondingDelegations(context.Context, *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error)
	// HistoricalInfo queries the historical info for given height.
	HistoricalInfo(context.Context, *types1.QueryHistoricalInfoRequest) (*types1.QueryHistoricalInfoResponse, error)
	// ValidatorOutstandingRewards queries rewards of a validator address.
	ValidatorOutstandingReward(context.Context, *QueryValidatorOutstandingRewardRequest) (*QueryValidatorOutstandingRewardResponse, error)
}

QueryServer is the server API for Query service.

type QueryUnbondingPeriodRequest

type QueryUnbondingPeriodRequest struct{}

QueryUnbondingPeriodRequest is request type for the Query/UnbondingPeriod RPC method

func (*QueryUnbondingPeriodRequest) Descriptor

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

func (*QueryUnbondingPeriodRequest) Marshal

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

func (*QueryUnbondingPeriodRequest) MarshalTo

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

func (*QueryUnbondingPeriodRequest) MarshalToSizedBuffer

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

func (*QueryUnbondingPeriodRequest) ProtoMessage

func (*QueryUnbondingPeriodRequest) ProtoMessage()

func (*QueryUnbondingPeriodRequest) Reset

func (m *QueryUnbondingPeriodRequest) Reset()

func (*QueryUnbondingPeriodRequest) Size

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

func (*QueryUnbondingPeriodRequest) String

func (m *QueryUnbondingPeriodRequest) String() string

func (*QueryUnbondingPeriodRequest) Unmarshal

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

func (*QueryUnbondingPeriodRequest) XXX_DiscardUnknown

func (m *QueryUnbondingPeriodRequest) XXX_DiscardUnknown()

func (*QueryUnbondingPeriodRequest) XXX_Marshal

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

func (*QueryUnbondingPeriodRequest) XXX_Merge

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

func (*QueryUnbondingPeriodRequest) XXX_Size

func (m *QueryUnbondingPeriodRequest) XXX_Size() int

func (*QueryUnbondingPeriodRequest) XXX_Unmarshal

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

type QueryUnbondingPeriodResponse

type QueryUnbondingPeriodResponse struct {
	// Time is the time that must pass
	Time time.Duration `protobuf:"bytes,1,opt,name=time,proto3,stdduration" json:"time"`
}

QueryUnbondingPeriodResponse is response type for the Query/UnbondingPeriod RPC method

func (*QueryUnbondingPeriodResponse) Descriptor

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

func (*QueryUnbondingPeriodResponse) GetTime

func (*QueryUnbondingPeriodResponse) Marshal

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

func (*QueryUnbondingPeriodResponse) MarshalTo

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

func (*QueryUnbondingPeriodResponse) MarshalToSizedBuffer

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

func (*QueryUnbondingPeriodResponse) ProtoMessage

func (*QueryUnbondingPeriodResponse) ProtoMessage()

func (*QueryUnbondingPeriodResponse) Reset

func (m *QueryUnbondingPeriodResponse) Reset()

func (*QueryUnbondingPeriodResponse) Size

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

func (*QueryUnbondingPeriodResponse) String

func (*QueryUnbondingPeriodResponse) Unmarshal

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

func (*QueryUnbondingPeriodResponse) XXX_DiscardUnknown

func (m *QueryUnbondingPeriodResponse) XXX_DiscardUnknown()

func (*QueryUnbondingPeriodResponse) XXX_Marshal

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

func (*QueryUnbondingPeriodResponse) XXX_Merge

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

func (*QueryUnbondingPeriodResponse) XXX_Size

func (m *QueryUnbondingPeriodResponse) XXX_Size() int

func (*QueryUnbondingPeriodResponse) XXX_Unmarshal

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

type QueryValidatorDelegationRequest

type QueryValidatorDelegationRequest struct {
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryValidatorDelegationRequest is request type for the Query/ValidatorDelegation RPC method

func (*QueryValidatorDelegationRequest) Descriptor

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

func (*QueryValidatorDelegationRequest) GetValidatorAddr

func (m *QueryValidatorDelegationRequest) GetValidatorAddr() string

func (*QueryValidatorDelegationRequest) Marshal

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

func (*QueryValidatorDelegationRequest) MarshalTo

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

func (*QueryValidatorDelegationRequest) MarshalToSizedBuffer

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

func (*QueryValidatorDelegationRequest) ProtoMessage

func (*QueryValidatorDelegationRequest) ProtoMessage()

func (*QueryValidatorDelegationRequest) Reset

func (*QueryValidatorDelegationRequest) Size

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

func (*QueryValidatorDelegationRequest) String

func (*QueryValidatorDelegationRequest) Unmarshal

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

func (*QueryValidatorDelegationRequest) XXX_DiscardUnknown

func (m *QueryValidatorDelegationRequest) XXX_DiscardUnknown()

func (*QueryValidatorDelegationRequest) XXX_Marshal

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

func (*QueryValidatorDelegationRequest) XXX_Merge

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

func (*QueryValidatorDelegationRequest) XXX_Size

func (m *QueryValidatorDelegationRequest) XXX_Size() int

func (*QueryValidatorDelegationRequest) XXX_Unmarshal

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

type QueryValidatorDelegationResponse

type QueryValidatorDelegationResponse struct {
	Balance types.Coin `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance"`
}

QueryValidatorDelegationResponse is response type for the Query/ValidatorDelegation RPC method

func (*QueryValidatorDelegationResponse) Descriptor

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

func (*QueryValidatorDelegationResponse) GetBalance

func (*QueryValidatorDelegationResponse) Marshal

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

func (*QueryValidatorDelegationResponse) MarshalTo

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

func (*QueryValidatorDelegationResponse) MarshalToSizedBuffer

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

func (*QueryValidatorDelegationResponse) ProtoMessage

func (*QueryValidatorDelegationResponse) ProtoMessage()

func (*QueryValidatorDelegationResponse) Reset

func (*QueryValidatorDelegationResponse) Size

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

func (*QueryValidatorDelegationResponse) String

func (*QueryValidatorDelegationResponse) Unmarshal

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

func (*QueryValidatorDelegationResponse) XXX_DiscardUnknown

func (m *QueryValidatorDelegationResponse) XXX_DiscardUnknown()

func (*QueryValidatorDelegationResponse) XXX_Marshal

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

func (*QueryValidatorDelegationResponse) XXX_Merge

func (*QueryValidatorDelegationResponse) XXX_Size

func (m *QueryValidatorDelegationResponse) XXX_Size() int

func (*QueryValidatorDelegationResponse) XXX_Unmarshal

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

type QueryValidatorOutstandingRewardRequest

type QueryValidatorOutstandingRewardRequest struct {
	// validator_address defines the validator address to query for.
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
}

QueryValidatorOutstandingRewardRequest is the request type for the Query/ValidatorOutstandingReward RPC method.

func (*QueryValidatorOutstandingRewardRequest) Descriptor

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

func (*QueryValidatorOutstandingRewardRequest) GetValidatorAddress

func (m *QueryValidatorOutstandingRewardRequest) GetValidatorAddress() string

func (*QueryValidatorOutstandingRewardRequest) Marshal

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

func (*QueryValidatorOutstandingRewardRequest) MarshalTo

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

func (*QueryValidatorOutstandingRewardRequest) MarshalToSizedBuffer

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

func (*QueryValidatorOutstandingRewardRequest) ProtoMessage

func (*QueryValidatorOutstandingRewardRequest) Reset

func (*QueryValidatorOutstandingRewardRequest) Size

func (*QueryValidatorOutstandingRewardRequest) String

func (*QueryValidatorOutstandingRewardRequest) Unmarshal

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

func (*QueryValidatorOutstandingRewardRequest) XXX_DiscardUnknown

func (m *QueryValidatorOutstandingRewardRequest) XXX_DiscardUnknown()

func (*QueryValidatorOutstandingRewardRequest) XXX_Marshal

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

func (*QueryValidatorOutstandingRewardRequest) XXX_Merge

func (*QueryValidatorOutstandingRewardRequest) XXX_Size

func (*QueryValidatorOutstandingRewardRequest) XXX_Unmarshal

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

type QueryValidatorOutstandingRewardResponse

type QueryValidatorOutstandingRewardResponse struct {
	Reward types.DecCoin `protobuf:"bytes,1,opt,name=reward,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.DecCoin" json:"reward" yaml:"reward"`
}

QueryValidatorOutstandingRewardResponse is the response type for the Query/ValidatorOutstandingReward RPC method.

func (*QueryValidatorOutstandingRewardResponse) Descriptor

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

func (*QueryValidatorOutstandingRewardResponse) GetReward

func (*QueryValidatorOutstandingRewardResponse) Marshal

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

func (*QueryValidatorOutstandingRewardResponse) MarshalTo

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

func (*QueryValidatorOutstandingRewardResponse) MarshalToSizedBuffer

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

func (*QueryValidatorOutstandingRewardResponse) ProtoMessage

func (*QueryValidatorOutstandingRewardResponse) Reset

func (*QueryValidatorOutstandingRewardResponse) Size

func (*QueryValidatorOutstandingRewardResponse) String

func (*QueryValidatorOutstandingRewardResponse) Unmarshal

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

func (*QueryValidatorOutstandingRewardResponse) XXX_DiscardUnknown

func (m *QueryValidatorOutstandingRewardResponse) XXX_DiscardUnknown()

func (*QueryValidatorOutstandingRewardResponse) XXX_Marshal

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

func (*QueryValidatorOutstandingRewardResponse) XXX_Merge

func (*QueryValidatorOutstandingRewardResponse) XXX_Size

func (*QueryValidatorOutstandingRewardResponse) XXX_Unmarshal

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

type QueryValidatorUnbondingDelegationsRequest

type QueryValidatorUnbondingDelegationsRequest struct {
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method

func (*QueryValidatorUnbondingDelegationsRequest) Descriptor

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

func (*QueryValidatorUnbondingDelegationsRequest) GetPagination

func (*QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr

func (m *QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr() string

func (*QueryValidatorUnbondingDelegationsRequest) Marshal

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

func (*QueryValidatorUnbondingDelegationsRequest) MarshalTo

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

func (*QueryValidatorUnbondingDelegationsRequest) MarshalToSizedBuffer

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

func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage

func (*QueryValidatorUnbondingDelegationsRequest) Reset

func (*QueryValidatorUnbondingDelegationsRequest) Size

func (*QueryValidatorUnbondingDelegationsRequest) String

func (*QueryValidatorUnbondingDelegationsRequest) Unmarshal

func (*QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown

func (m *QueryValidatorUnbondingDelegationsRequest) XXX_DiscardUnknown()

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Marshal

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

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Merge

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Size

func (*QueryValidatorUnbondingDelegationsRequest) XXX_Unmarshal

type QueryValidatorUnbondingDelegationsResponse

type QueryValidatorUnbondingDelegationsResponse struct {
	Entries []types1.UnbondingDelegationEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method.

func (*QueryValidatorUnbondingDelegationsResponse) Descriptor

func (*QueryValidatorUnbondingDelegationsResponse) GetEntries

func (*QueryValidatorUnbondingDelegationsResponse) GetPagination

func (*QueryValidatorUnbondingDelegationsResponse) Marshal

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

func (*QueryValidatorUnbondingDelegationsResponse) MarshalTo

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

func (*QueryValidatorUnbondingDelegationsResponse) MarshalToSizedBuffer

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

func (*QueryValidatorUnbondingDelegationsResponse) ProtoMessage

func (*QueryValidatorUnbondingDelegationsResponse) Reset

func (*QueryValidatorUnbondingDelegationsResponse) Size

func (*QueryValidatorUnbondingDelegationsResponse) String

func (*QueryValidatorUnbondingDelegationsResponse) Unmarshal

func (*QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown

func (m *QueryValidatorUnbondingDelegationsResponse) XXX_DiscardUnknown()

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Marshal

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

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Merge

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Size

func (*QueryValidatorUnbondingDelegationsResponse) XXX_Unmarshal

type SeedContracts added in v1.0.0

type SeedContracts struct {
	// GenTxs defines the genesis transactions to create a validator.
	GenTxs []encoding_json.RawMessage `protobuf:"bytes,1,rep,name=gen_txs,json=genTxs,proto3,casttype=encoding/json.RawMessage" json:"gentxs" yaml:"gentxs"`
	// BootstrapAccountAddress single address that is set as bootstrap-account for
	// the PoE contracts in seed mode.
	BootstrapAccountAddress string `` /* 132-byte string literal not displayed */
	// Engagement weighted members of the engagement group. Validators should be
	// in here.
	Engagement               []TG4Member               `protobuf:"bytes,3,rep,name=engagement,proto3" json:"engagement,omitempty"`
	StakeContractConfig      *StakeContractConfig      `protobuf:"bytes,4,opt,name=stake_contract_config,json=stakeContractConfig,proto3" json:"stake_contract_config,omitempty"`
	ValsetContractConfig     *ValsetContractConfig     `protobuf:"bytes,5,opt,name=valset_contract_config,json=valsetContractConfig,proto3" json:"valset_contract_config,omitempty"`
	EngagementContractConfig *EngagementContractConfig `` /* 135-byte string literal not displayed */
	// BondDenom defines the bondable coin denomination.
	BondDenom                        string                            `protobuf:"bytes,7,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom,omitempty" yaml:"bond_denom"`
	OversightCommitteeContractConfig *OversightCommitteeContractConfig `` /* 161-byte string literal not displayed */
	CommunityPoolContractConfig      *CommunityPoolContractConfig      `` /* 146-byte string literal not displayed */
	ValidatorVotingContractConfig    *ValidatorVotingContractConfig    `` /* 153-byte string literal not displayed */
	OversightCommunityMembers        []string                          `` /* 139-byte string literal not displayed */
	ArbiterPoolMembers               []string                          `protobuf:"bytes,12,rep,name=arbiter_pool_members,json=arbiterPoolMembers,proto3" json:"arbiter_pool_members,omitempty"`
	ArbiterPoolContractConfig        *ArbiterPoolContractConfig        `` /* 141-byte string literal not displayed */
	MixerContractConfig              *MixerContractConfig              `protobuf:"bytes,14,opt,name=mixer_contract_config,json=mixerContractConfig,proto3" json:"mixer_contract_config,omitempty"`
}

SeedContracts contains the contract configuration and group members to setup all PoE contracts on chain.

func (*SeedContracts) Descriptor added in v1.0.0

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

func (*SeedContracts) GetArbiterPoolContractConfig added in v1.0.0

func (m *SeedContracts) GetArbiterPoolContractConfig() *ArbiterPoolContractConfig

func (*SeedContracts) GetArbiterPoolMembers added in v1.0.0

func (m *SeedContracts) GetArbiterPoolMembers() []string

func (*SeedContracts) GetBondDenom added in v1.0.0

func (m *SeedContracts) GetBondDenom() string

func (*SeedContracts) GetBootstrapAccountAddress added in v1.0.0

func (m *SeedContracts) GetBootstrapAccountAddress() string

func (*SeedContracts) GetCommunityPoolContractConfig added in v1.0.0

func (m *SeedContracts) GetCommunityPoolContractConfig() *CommunityPoolContractConfig

func (*SeedContracts) GetEngagement added in v1.0.0

func (m *SeedContracts) GetEngagement() []TG4Member

func (*SeedContracts) GetEngagementContractConfig added in v1.0.0

func (m *SeedContracts) GetEngagementContractConfig() *EngagementContractConfig

func (*SeedContracts) GetGenTxs added in v1.0.0

func (m *SeedContracts) GetGenTxs() []encoding_json.RawMessage

func (*SeedContracts) GetMixerContractConfig added in v1.0.0

func (m *SeedContracts) GetMixerContractConfig() *MixerContractConfig

func (*SeedContracts) GetOversightCommitteeContractConfig added in v1.0.0

func (m *SeedContracts) GetOversightCommitteeContractConfig() *OversightCommitteeContractConfig

func (*SeedContracts) GetOversightCommunityMembers added in v1.0.0

func (m *SeedContracts) GetOversightCommunityMembers() []string

func (*SeedContracts) GetStakeContractConfig added in v1.0.0

func (m *SeedContracts) GetStakeContractConfig() *StakeContractConfig

func (*SeedContracts) GetValidatorVotingContractConfig added in v1.0.0

func (m *SeedContracts) GetValidatorVotingContractConfig() *ValidatorVotingContractConfig

func (*SeedContracts) GetValsetContractConfig added in v1.0.0

func (m *SeedContracts) GetValsetContractConfig() *ValsetContractConfig

func (*SeedContracts) Marshal added in v1.0.0

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

func (*SeedContracts) MarshalTo added in v1.0.0

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

func (*SeedContracts) MarshalToSizedBuffer added in v1.0.0

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

func (*SeedContracts) ProtoMessage added in v1.0.0

func (*SeedContracts) ProtoMessage()

func (*SeedContracts) Reset added in v1.0.0

func (m *SeedContracts) Reset()

func (*SeedContracts) Size added in v1.0.0

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

func (*SeedContracts) String added in v1.0.0

func (m *SeedContracts) String() string

func (*SeedContracts) Unmarshal added in v1.0.0

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

func (*SeedContracts) XXX_DiscardUnknown added in v1.0.0

func (m *SeedContracts) XXX_DiscardUnknown()

func (*SeedContracts) XXX_Marshal added in v1.0.0

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

func (*SeedContracts) XXX_Merge added in v1.0.0

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

func (*SeedContracts) XXX_Size added in v1.0.0

func (m *SeedContracts) XXX_Size() int

func (*SeedContracts) XXX_Unmarshal added in v1.0.0

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

type SmartQuerier

type SmartQuerier interface {
	QuerySmart(ctx sdk.Context, contractAddr sdk.AccAddress, req []byte) ([]byte, error)
}

type StakeContractConfig

type StakeContractConfig struct {
	MinBond              uint64        `protobuf:"varint,1,opt,name=min_bond,json=minBond,proto3" json:"min_bond,omitempty"`
	TokensPerPoint       uint64        `protobuf:"varint,2,opt,name=tokens_per_point,json=tokensPerPoint,proto3" json:"tokens_per_point,omitempty"`
	UnbondingPeriod      time.Duration `protobuf:"bytes,3,opt,name=unbonding_period,json=unbondingPeriod,proto3,stdduration" json:"unbonding_period"`
	ClaimAutoreturnLimit uint32        `protobuf:"varint,4,opt,name=claim_autoreturn_limit,json=claimAutoreturnLimit,proto3" json:"claim_autoreturn_limit,omitempty"`
}

StakeContractConfig initial setup config

func (*StakeContractConfig) Descriptor

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

func (*StakeContractConfig) GetClaimAutoreturnLimit

func (m *StakeContractConfig) GetClaimAutoreturnLimit() uint32

func (*StakeContractConfig) GetMinBond

func (m *StakeContractConfig) GetMinBond() uint64

func (*StakeContractConfig) GetTokensPerPoint added in v0.6.2

func (m *StakeContractConfig) GetTokensPerPoint() uint64

func (*StakeContractConfig) GetUnbondingPeriod

func (m *StakeContractConfig) GetUnbondingPeriod() time.Duration

func (*StakeContractConfig) Marshal

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

func (*StakeContractConfig) MarshalTo

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

func (*StakeContractConfig) MarshalToSizedBuffer

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

func (*StakeContractConfig) ProtoMessage

func (*StakeContractConfig) ProtoMessage()

func (*StakeContractConfig) Reset

func (m *StakeContractConfig) Reset()

func (*StakeContractConfig) Size

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

func (*StakeContractConfig) String

func (m *StakeContractConfig) String() string

func (*StakeContractConfig) Unmarshal

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

func (StakeContractConfig) ValidateBasic

func (c StakeContractConfig) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*StakeContractConfig) XXX_DiscardUnknown

func (m *StakeContractConfig) XXX_DiscardUnknown()

func (*StakeContractConfig) XXX_Marshal

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

func (*StakeContractConfig) XXX_Merge

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

func (*StakeContractConfig) XXX_Size

func (m *StakeContractConfig) XXX_Size() int

func (*StakeContractConfig) XXX_Unmarshal

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

type Sudoer

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

Sudoer with access to sudo method

type TG4Member

type TG4Member struct {
	// Address is the bech32 address string
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address"`
	Points  uint64 `protobuf:"varint,2,opt,name=points,proto3" json:"points"`
}

TG4Member member of the Engagement group.

func (*TG4Member) Descriptor

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

func (*TG4Member) GetAddress

func (m *TG4Member) GetAddress() string

func (*TG4Member) GetPoints added in v0.6.2

func (m *TG4Member) GetPoints() uint64

func (*TG4Member) Marshal

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

func (*TG4Member) MarshalTo

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

func (*TG4Member) MarshalToSizedBuffer

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

func (*TG4Member) ProtoMessage

func (*TG4Member) ProtoMessage()

func (*TG4Member) Reset

func (m *TG4Member) Reset()

func (*TG4Member) Size

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

func (*TG4Member) String

func (m *TG4Member) String() string

func (*TG4Member) Unmarshal

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

func (TG4Member) ValidateBasic

func (c TG4Member) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*TG4Member) XXX_DiscardUnknown

func (m *TG4Member) XXX_DiscardUnknown()

func (*TG4Member) XXX_Marshal

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

func (*TG4Member) XXX_Merge

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

func (*TG4Member) XXX_Size

func (m *TG4Member) XXX_Size() int

func (*TG4Member) XXX_Unmarshal

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

type TWasmKeeper

type TWasmKeeper interface {
	SmartQuerier
	Sudoer
	GetContractKeeper() wasmtypes.ContractOpsKeeper
}

TWasmKeeper is a subset of x/twasm keeper

type UnimplementedMsgServer

type UnimplementedMsgServer struct{}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateValidator

func (*UnimplementedMsgServer) Delegate

func (*UnimplementedMsgServer) Undelegate

func (*UnimplementedMsgServer) UpdateValidator

type UnimplementedQueryServer

type UnimplementedQueryServer struct{}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ContractAddress

func (*UnimplementedQueryServer) UnbondingPeriod

func (*UnimplementedQueryServer) Validator

func (*UnimplementedQueryServer) ValidatorDelegation

func (*UnimplementedQueryServer) Validators

type ValidatorVotingContractConfig

type ValidatorVotingContractConfig struct {
	// VotingRules rules for the tally
	VotingRules VotingRules `protobuf:"bytes,1,opt,name=voting_rules,json=votingRules,proto3" json:"voting_rules"`
}

ValidatorVotingContractConfig CommunityPoolContractConfig

func (*ValidatorVotingContractConfig) Descriptor

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

func (*ValidatorVotingContractConfig) GetVotingRules

func (m *ValidatorVotingContractConfig) GetVotingRules() VotingRules

func (*ValidatorVotingContractConfig) Marshal

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

func (*ValidatorVotingContractConfig) MarshalTo

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

func (*ValidatorVotingContractConfig) MarshalToSizedBuffer

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

func (*ValidatorVotingContractConfig) ProtoMessage

func (*ValidatorVotingContractConfig) ProtoMessage()

func (*ValidatorVotingContractConfig) Reset

func (m *ValidatorVotingContractConfig) Reset()

func (*ValidatorVotingContractConfig) Size

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

func (*ValidatorVotingContractConfig) String

func (*ValidatorVotingContractConfig) Unmarshal

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

func (ValidatorVotingContractConfig) ValidateBasic

func (c ValidatorVotingContractConfig) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*ValidatorVotingContractConfig) XXX_DiscardUnknown

func (m *ValidatorVotingContractConfig) XXX_DiscardUnknown()

func (*ValidatorVotingContractConfig) XXX_Marshal

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

func (*ValidatorVotingContractConfig) XXX_Merge

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

func (*ValidatorVotingContractConfig) XXX_Size

func (m *ValidatorVotingContractConfig) XXX_Size() int

func (*ValidatorVotingContractConfig) XXX_Unmarshal

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

type ValsetContractConfig

type ValsetContractConfig struct {
	MinPoints uint64 `protobuf:"varint,1,opt,name=min_points,json=minPoints,proto3" json:"min_points,omitempty"`
	// MaxValidators The maximum number of validators that can be included in the
	// Tendermint validator set.
	MaxValidators uint32 `protobuf:"varint,2,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty"`
	// EpochLength We update the Tendermint validator set only once per epoch.
	// Epoch # is env.block.time/epoch_length (round down). The first block with a
	// new epoch number will trigger a new validator calculation.
	EpochLength time.Duration `protobuf:"bytes,3,opt,name=epoch_length,json=epochLength,proto3,stdduration" json:"epoch_length"`
	EpochReward types.Coin    `protobuf:"bytes,4,opt,name=epoch_reward,json=epochReward,proto3" json:"epoch_reward"`
	// Scaling is the factor to multiply cw4-group weights to produce the
	// Tendermint validator power
	Scaling uint32 `protobuf:"varint,5,opt,name=scaling,proto3" json:"scaling,omitempty"`
	// FeePercentage is the percentage of total accumulated fees that is
	// subtracted from tokens minted as rewards. 50% by default. To disable this
	// feature just set it to 0 (which effectively means that fees don't affect
	// the per-epoch reward).
	FeePercentage github_com_cosmos_cosmos_sdk_types.Dec `` /* 140-byte string literal not displayed */
	// CommunityPoolRewardRation in percentage
	CommunityPoolRewardRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 177-byte string literal not displayed */
	// EngagementRewardRatio reward ration in percentage for all
	EngagementRewardRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 166-byte string literal not displayed */
	// ValidatorRewardRation in percentage for all
	ValidatorRewardRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 163-byte string literal not displayed */
	// AutoUnjail if set to true, we will auto-unjail any validator after their
	// jailtime is over.
	AutoUnjail bool `protobuf:"varint,10,opt,name=auto_unjail,json=autoUnjail,proto3" json:"auto_unjail,omitempty"`
	// DoubleSignSlashRatio Validators who are caught double signing are jailed
	// forever and their bonded tokens are slashed based on this value.
	DoubleSignSlashRatio github_com_cosmos_cosmos_sdk_types.Dec `` /* 166-byte string literal not displayed */
	// When a validator joins the valset, verify they sign the first block since
	// joining or jail them for a period otherwise.
	//
	// The verification happens every time the validator becomes an active
	// validator, including when they are unjailed or when they just gain enough
	// power to participate.
	VerifyValidators bool `protobuf:"varint,12,opt,name=verify_validators,json=verifyValidators,proto3" json:"verify_validators,omitempty"`
	// OfflineJailDuration duration to jail a validator for in case they don't
	// sign their first epoch boundary block. After the period, they have to pass
	// verification again, ad infinitum.
	OfflineJailDuration time.Duration `protobuf:"bytes,13,opt,name=offlineJailDuration,proto3,stdduration" json:"offlineJailDuration"`
}

ValsetContractConfig initial setup config

func (*ValsetContractConfig) Descriptor

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

func (*ValsetContractConfig) GetAutoUnjail

func (m *ValsetContractConfig) GetAutoUnjail() bool

func (*ValsetContractConfig) GetEpochLength

func (m *ValsetContractConfig) GetEpochLength() time.Duration

func (*ValsetContractConfig) GetEpochReward

func (m *ValsetContractConfig) GetEpochReward() types.Coin

func (*ValsetContractConfig) GetMaxValidators

func (m *ValsetContractConfig) GetMaxValidators() uint32

func (*ValsetContractConfig) GetMinPoints added in v0.6.2

func (m *ValsetContractConfig) GetMinPoints() uint64

func (*ValsetContractConfig) GetOfflineJailDuration added in v1.0.0

func (m *ValsetContractConfig) GetOfflineJailDuration() time.Duration

func (*ValsetContractConfig) GetScaling

func (m *ValsetContractConfig) GetScaling() uint32

func (*ValsetContractConfig) GetVerifyValidators added in v1.0.0

func (m *ValsetContractConfig) GetVerifyValidators() bool

func (*ValsetContractConfig) Marshal

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

func (*ValsetContractConfig) MarshalTo

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

func (*ValsetContractConfig) MarshalToSizedBuffer

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

func (*ValsetContractConfig) ProtoMessage

func (*ValsetContractConfig) ProtoMessage()

func (*ValsetContractConfig) Reset

func (m *ValsetContractConfig) Reset()

func (*ValsetContractConfig) Size

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

func (*ValsetContractConfig) String

func (m *ValsetContractConfig) String() string

func (*ValsetContractConfig) Unmarshal

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

func (ValsetContractConfig) ValidateBasic

func (c ValsetContractConfig) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*ValsetContractConfig) XXX_DiscardUnknown

func (m *ValsetContractConfig) XXX_DiscardUnknown()

func (*ValsetContractConfig) XXX_Marshal

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

func (*ValsetContractConfig) XXX_Merge

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

func (*ValsetContractConfig) XXX_Size

func (m *ValsetContractConfig) XXX_Size() int

func (*ValsetContractConfig) XXX_Unmarshal

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

type VotingRules

type VotingRules struct {
	// VotingPeriod Voting period in days
	VotingPeriod uint32 `protobuf:"varint,1,opt,name=voting_period,json=votingPeriod,proto3" json:"voting_period,omitempty"`
	// Quorum  voting quorum percentage (1-100)
	Quorum github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=quorum,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"quorum"`
	// Threshold voting threshold percentage (50-100)
	Threshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=threshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"threshold"`
	// AllowEndEarly If true, and absolute threshold and quorum are met, we can
	// end before voting period finished. (Recommended value: true, unless you
	// have special needs)
	AllowEndEarly bool `protobuf:"varint,4,opt,name=allow_end_early,json=allowEndEarly,proto3" json:"allow_end_early,omitempty"`
}

VotingRules contains configuration for the tally.

func (*VotingRules) Descriptor

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

func (*VotingRules) GetAllowEndEarly

func (m *VotingRules) GetAllowEndEarly() bool

func (*VotingRules) GetVotingPeriod

func (m *VotingRules) GetVotingPeriod() uint32

func (*VotingRules) Marshal

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

func (*VotingRules) MarshalTo

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

func (*VotingRules) MarshalToSizedBuffer

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

func (*VotingRules) ProtoMessage

func (*VotingRules) ProtoMessage()

func (*VotingRules) Reset

func (m *VotingRules) Reset()

func (*VotingRules) Size

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

func (*VotingRules) String

func (m *VotingRules) String() string

func (*VotingRules) Unmarshal

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

func (VotingRules) ValidateBasic

func (v VotingRules) ValidateBasic() error

ValidateBasic ensure basic constraints

func (*VotingRules) XXX_DiscardUnknown

func (m *VotingRules) XXX_DiscardUnknown()

func (*VotingRules) XXX_Marshal

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

func (*VotingRules) XXX_Merge

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

func (*VotingRules) XXX_Size

func (m *VotingRules) XXX_Size() int

func (*VotingRules) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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