types

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

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

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

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

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

	DistributorMainAccount = "distributor_main_account"

	ValidatorsRewardsCollector = "validators_rewards_collector"

	GreenEnergyBoosterCollector = "green_energy_booster_collector"

	GovernanceBoosterCollector = "governance_booster_collector"

	BurnStateKey = "burn_state_key"

	BurnDestination = "burn_destination"
)
View Source
const (
	// Account Types
	InternalAccount = "INTERNAL_ACCOUNT"
	ModuleAccount   = "MODULE_ACCOUNT"
	Main            = "MAIN"
	BaseAccount     = "BASE_ACCOUNT"
	// Other consts
	UnknownAccount = "Unknown"
	Burn           = "BURN"
	Destination    = "DESTINATION"
	Source         = "SOURCE"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgUpdateParams = "update_params"
View Source
const TypeMsgUpdateSubDistributorBurnShareParam = "update_sub_distributor_burn_share_param"
View Source
const TypeMsgUpdateSubDistributorDestinationShareParam = "update_sub_distributor_destination_share_param"
View Source
const TypeMsgUpdateSubDistributorParam = "update_single_subdistributor_param"

Variables

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ParamsKey      = []byte{0x00}
	StateKeyPrefix = []byte{0x04}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSubDistributor        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSubDistributor          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSubDistributor = 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 (
	DefaultSubDistributors = []SubDistributor{
		{
			Name: "default_distributor",
			Destinations: Destinations{
				PrimaryShare: Account{
					Id:   ValidatorsRewardsCollector,
					Type: ModuleAccount,
				},
				BurnShare: sdk.ZeroDec(),
			},
			Sources: []*Account{
				{
					Id:   "",
					Type: Main,
				},
			},
		},
	}
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v1.3.0

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SetMaccPerms added in v1.1.0

func SetMaccPerms(perms map[string][]string)

func StateSumIsInteger added in v1.1.0

func StateSumIsInteger(states []State) (sdk.Coins, error)

func ValidateSubDistributors added in v1.1.0

func ValidateSubDistributors(subDistributors []SubDistributor) error

Types

type Account

type Account struct {
	Id   string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
}

func (*Account) Descriptor

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

func (Account) GetAccountKey added in v1.1.0

func (account Account) GetAccountKey() string

func (*Account) GetId

func (m *Account) GetId() string

func (*Account) GetType

func (m *Account) GetType() string

func (*Account) Marshal

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

func (*Account) MarshalTo

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

func (*Account) MarshalToSizedBuffer

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

func (*Account) ProtoMessage

func (*Account) ProtoMessage()

func (*Account) Reset

func (m *Account) Reset()

func (*Account) Size

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

func (*Account) String

func (m *Account) String() string

func (*Account) Unmarshal

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

func (Account) Validate added in v1.1.0

func (account Account) Validate() error

func (*Account) XXX_DiscardUnknown

func (m *Account) XXX_DiscardUnknown()

func (*Account) XXX_Marshal

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

func (*Account) XXX_Merge

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

func (*Account) XXX_Size

func (m *Account) XXX_Size() int

func (*Account) XXX_Unmarshal

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

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
	// Methods imported from account should be defined here
	GetModuleAccount(ctx sdk.Context, moduleName string) types.ModuleAccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	// Methods imported from bank should be defined here
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to retrieve account balances.

type DestinationShare added in v1.1.0

type DestinationShare struct {
	Name        string                                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Share       github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=share,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"share" yaml:"share"`
	Destination Account                                `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination"`
}

func (*DestinationShare) Descriptor added in v1.1.0

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

func (*DestinationShare) GetDestination added in v1.1.0

func (m *DestinationShare) GetDestination() Account

func (*DestinationShare) GetName added in v1.1.0

func (m *DestinationShare) GetName() string

func (*DestinationShare) Marshal added in v1.1.0

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

func (*DestinationShare) MarshalTo added in v1.1.0

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

func (*DestinationShare) MarshalToSizedBuffer added in v1.1.0

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

func (*DestinationShare) ProtoMessage added in v1.1.0

func (*DestinationShare) ProtoMessage()

func (*DestinationShare) Reset added in v1.1.0

func (m *DestinationShare) Reset()

func (*DestinationShare) Size added in v1.1.0

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

func (*DestinationShare) String added in v1.1.0

func (m *DestinationShare) String() string

func (*DestinationShare) Unmarshal added in v1.1.0

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

func (*DestinationShare) XXX_DiscardUnknown added in v1.1.0

func (m *DestinationShare) XXX_DiscardUnknown()

func (*DestinationShare) XXX_Marshal added in v1.1.0

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

func (*DestinationShare) XXX_Merge added in v1.1.0

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

func (*DestinationShare) XXX_Size added in v1.1.0

func (m *DestinationShare) XXX_Size() int

func (*DestinationShare) XXX_Unmarshal added in v1.1.0

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

type Destinations added in v1.1.0

type Destinations struct {
	PrimaryShare Account                                `protobuf:"bytes,1,opt,name=primary_share,json=primaryShare,proto3" json:"primary_share"`
	BurnShare    github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
	Shares       []*DestinationShare                    `protobuf:"bytes,3,rep,name=shares,proto3" json:"shares,omitempty"`
}

func (Destinations) CheckIfSharesSumIsBetween0And1 added in v1.1.0

func (destinations Destinations) CheckIfSharesSumIsBetween0And1() error

func (*Destinations) Descriptor added in v1.1.0

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

func (*Destinations) GetPrimaryShare added in v1.1.0

func (m *Destinations) GetPrimaryShare() Account

func (*Destinations) GetShares added in v1.1.0

func (m *Destinations) GetShares() []*DestinationShare

func (*Destinations) Marshal added in v1.1.0

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

func (*Destinations) MarshalTo added in v1.1.0

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

func (*Destinations) MarshalToSizedBuffer added in v1.1.0

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

func (*Destinations) ProtoMessage added in v1.1.0

func (*Destinations) ProtoMessage()

func (*Destinations) Reset added in v1.1.0

func (m *Destinations) Reset()

func (*Destinations) Size added in v1.1.0

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

func (*Destinations) String added in v1.1.0

func (m *Destinations) String() string

func (*Destinations) Unmarshal added in v1.1.0

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

func (Destinations) Validate added in v1.1.0

func (destinations Destinations) Validate(primaryShareName string) error

func (*Destinations) XXX_DiscardUnknown added in v1.1.0

func (m *Destinations) XXX_DiscardUnknown()

func (*Destinations) XXX_Marshal added in v1.1.0

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

func (*Destinations) XXX_Merge added in v1.1.0

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

func (*Destinations) XXX_Size added in v1.1.0

func (m *Destinations) XXX_Size() int

func (*Destinations) XXX_Unmarshal added in v1.1.0

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

type EventDistribution added in v1.3.0

type EventDistribution struct {
	Subdistributor string                                      `protobuf:"bytes,1,opt,name=subdistributor,proto3" json:"subdistributor,omitempty"`
	ShareName      string                                      `protobuf:"bytes,2,opt,name=share_name,json=shareName,proto3" json:"share_name,omitempty"`
	Sources        []*Account                                  `protobuf:"bytes,3,rep,name=sources,proto3" json:"sources,omitempty"`
	Destination    *Account                                    `protobuf:"bytes,4,opt,name=destination,proto3" json:"destination,omitempty"`
	Amount         github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 126-byte string literal not displayed */
}

func (*EventDistribution) Descriptor added in v1.3.0

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

func (*EventDistribution) GetAmount added in v1.3.0

func (*EventDistribution) GetDestination added in v1.3.0

func (m *EventDistribution) GetDestination() *Account

func (*EventDistribution) GetShareName added in v1.3.0

func (m *EventDistribution) GetShareName() string

func (*EventDistribution) GetSources added in v1.3.0

func (m *EventDistribution) GetSources() []*Account

func (*EventDistribution) GetSubdistributor added in v1.3.0

func (m *EventDistribution) GetSubdistributor() string

func (*EventDistribution) Marshal added in v1.3.0

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

func (*EventDistribution) MarshalTo added in v1.3.0

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

func (*EventDistribution) MarshalToSizedBuffer added in v1.3.0

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

func (*EventDistribution) ProtoMessage added in v1.3.0

func (*EventDistribution) ProtoMessage()

func (*EventDistribution) Reset added in v1.3.0

func (m *EventDistribution) Reset()

func (*EventDistribution) Size added in v1.3.0

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

func (*EventDistribution) String added in v1.3.0

func (m *EventDistribution) String() string

func (*EventDistribution) Unmarshal added in v1.3.0

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

func (*EventDistribution) XXX_DiscardUnknown added in v1.3.0

func (m *EventDistribution) XXX_DiscardUnknown()

func (*EventDistribution) XXX_Marshal added in v1.3.0

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

func (*EventDistribution) XXX_Merge added in v1.3.0

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

func (*EventDistribution) XXX_Size added in v1.3.0

func (m *EventDistribution) XXX_Size() int

func (*EventDistribution) XXX_Unmarshal added in v1.3.0

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

type EventDistributionBurn added in v1.3.0

type EventDistributionBurn struct {
	Subdistributor string                                      `protobuf:"bytes,1,opt,name=subdistributor,proto3" json:"subdistributor,omitempty"`
	Sources        []*Account                                  `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
	Amount         github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 126-byte string literal not displayed */
}

func (*EventDistributionBurn) Descriptor added in v1.3.0

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

func (*EventDistributionBurn) GetAmount added in v1.3.0

func (*EventDistributionBurn) GetSources added in v1.3.0

func (m *EventDistributionBurn) GetSources() []*Account

func (*EventDistributionBurn) GetSubdistributor added in v1.3.0

func (m *EventDistributionBurn) GetSubdistributor() string

func (*EventDistributionBurn) Marshal added in v1.3.0

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

func (*EventDistributionBurn) MarshalTo added in v1.3.0

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

func (*EventDistributionBurn) MarshalToSizedBuffer added in v1.3.0

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

func (*EventDistributionBurn) ProtoMessage added in v1.3.0

func (*EventDistributionBurn) ProtoMessage()

func (*EventDistributionBurn) Reset added in v1.3.0

func (m *EventDistributionBurn) Reset()

func (*EventDistributionBurn) Size added in v1.3.0

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

func (*EventDistributionBurn) String added in v1.3.0

func (m *EventDistributionBurn) String() string

func (*EventDistributionBurn) Unmarshal added in v1.3.0

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

func (*EventDistributionBurn) XXX_DiscardUnknown added in v1.3.0

func (m *EventDistributionBurn) XXX_DiscardUnknown()

func (*EventDistributionBurn) XXX_Marshal added in v1.3.0

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

func (*EventDistributionBurn) XXX_Merge added in v1.3.0

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

func (*EventDistributionBurn) XXX_Size added in v1.3.0

func (m *EventDistributionBurn) XXX_Size() int

func (*EventDistributionBurn) XXX_Unmarshal added in v1.3.0

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

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// this line is used by starport scaffolding # genesis/proto/state
	States []*State `protobuf:"bytes,2,rep,name=states,proto3" json:"states,omitempty"`
}

GenesisState defines the cfedistributor module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetStates

func (m *GenesisState) GetStates() []*State

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	UpdateSubDistributorParam(ctx context.Context, in *MsgUpdateSubDistributorParam, opts ...grpc.CallOption) (*MsgUpdateSubDistributorParamResponse, error)
	UpdateSubDistributorDestinationShareParam(ctx context.Context, in *MsgUpdateSubDistributorDestinationShareParam, opts ...grpc.CallOption) (*MsgUpdateSubDistributorDestinationShareParamResponse, error)
	UpdateSubDistributorBurnShareParam(ctx context.Context, in *MsgUpdateSubDistributorBurnShareParam, opts ...grpc.CallOption) (*MsgUpdateSubDistributorBurnShareParamResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	UpdateSubDistributorParam(context.Context, *MsgUpdateSubDistributorParam) (*MsgUpdateSubDistributorParamResponse, error)
	UpdateSubDistributorDestinationShareParam(context.Context, *MsgUpdateSubDistributorDestinationShareParam) (*MsgUpdateSubDistributorDestinationShareParamResponse, error)
	UpdateSubDistributorBurnShareParam(context.Context, *MsgUpdateSubDistributorBurnShareParam) (*MsgUpdateSubDistributorBurnShareParamResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams added in v1.2.0

type MsgUpdateParams struct {
	// authority is the address of the governance account.
	Authority       string           `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	SubDistributors []SubDistributor `protobuf:"bytes,2,rep,name=sub_distributors,json=subDistributors,proto3" json:"sub_distributors"`
}

func (*MsgUpdateParams) Descriptor added in v1.2.0

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

func (*MsgUpdateParams) GetAuthority added in v1.2.0

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetSignBytes added in v1.2.0

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

func (*MsgUpdateParams) GetSigners added in v1.2.0

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

func (*MsgUpdateParams) GetSubDistributors added in v1.2.0

func (m *MsgUpdateParams) GetSubDistributors() []SubDistributor

func (*MsgUpdateParams) Marshal added in v1.2.0

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

func (*MsgUpdateParams) MarshalTo added in v1.2.0

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgUpdateParams) ProtoMessage added in v1.2.0

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v1.2.0

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Route added in v1.2.0

func (msg *MsgUpdateParams) Route() string

func (*MsgUpdateParams) Size added in v1.2.0

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

func (*MsgUpdateParams) String added in v1.2.0

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Type added in v1.2.0

func (msg *MsgUpdateParams) Type() string

func (*MsgUpdateParams) Unmarshal added in v1.2.0

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

func (*MsgUpdateParams) ValidateBasic added in v1.2.0

func (msg *MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown added in v1.2.0

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v1.2.0

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

func (*MsgUpdateParams) XXX_Merge added in v1.2.0

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

func (*MsgUpdateParams) XXX_Size added in v1.2.0

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v1.2.0

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

type MsgUpdateParamsResponse added in v1.2.0

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor added in v1.2.0

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

func (*MsgUpdateParamsResponse) Marshal added in v1.2.0

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

func (*MsgUpdateParamsResponse) MarshalTo added in v1.2.0

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v1.2.0

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v1.2.0

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v1.2.0

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

func (*MsgUpdateParamsResponse) String added in v1.2.0

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v1.2.0

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v1.2.0

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v1.2.0

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v1.2.0

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

func (*MsgUpdateParamsResponse) XXX_Size added in v1.2.0

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v1.2.0

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

type MsgUpdateSubDistributorBurnShareParam added in v1.2.0

type MsgUpdateSubDistributorBurnShareParam struct {
	Authority          string                                 `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	SubDistributorName string                                 `protobuf:"bytes,2,opt,name=sub_distributor_name,json=subDistributorName,proto3" json:"sub_distributor_name,omitempty"`
	BurnShare          github_com_cosmos_cosmos_sdk_types.Dec `` /* 146-byte string literal not displayed */
}

func (*MsgUpdateSubDistributorBurnShareParam) Descriptor added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParam) GetAuthority added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) GetSignBytes added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParam) GetSigners added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) GetSubDistributorName added in v1.2.0

func (m *MsgUpdateSubDistributorBurnShareParam) GetSubDistributorName() string

func (*MsgUpdateSubDistributorBurnShareParam) Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParam) MarshalTo added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParam) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParam) ProtoMessage added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) ProtoMessage()

func (*MsgUpdateSubDistributorBurnShareParam) Reset added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) Route added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) Size added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) String added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) Type added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) Unmarshal added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParam) ValidateBasic added in v1.2.0

func (msg *MsgUpdateSubDistributorBurnShareParam) ValidateBasic() error

func (*MsgUpdateSubDistributorBurnShareParam) XXX_DiscardUnknown added in v1.2.0

func (m *MsgUpdateSubDistributorBurnShareParam) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorBurnShareParam) XXX_Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParam) XXX_Merge added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) XXX_Size added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParam) XXX_Unmarshal added in v1.2.0

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

type MsgUpdateSubDistributorBurnShareParamResponse added in v1.2.0

type MsgUpdateSubDistributorBurnShareParamResponse struct {
}

func (*MsgUpdateSubDistributorBurnShareParamResponse) Descriptor added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParamResponse) Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParamResponse) MarshalTo added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParamResponse) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParamResponse) ProtoMessage added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParamResponse) Reset added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParamResponse) Size added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParamResponse) String added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParamResponse) Unmarshal added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_DiscardUnknown added in v1.2.0

func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Merge added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Size added in v1.2.0

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Unmarshal added in v1.2.0

type MsgUpdateSubDistributorDestinationShareParam added in v1.2.0

type MsgUpdateSubDistributorDestinationShareParam struct {
	Authority          string                                 `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	SubDistributorName string                                 `protobuf:"bytes,2,opt,name=sub_distributor_name,json=subDistributorName,proto3" json:"sub_distributor_name,omitempty"`
	DestinationName    string                                 `protobuf:"bytes,3,opt,name=destination_name,json=destinationName,proto3" json:"destination_name,omitempty"`
	Share              github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=share,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"share" yaml:"share"`
}

func (*MsgUpdateSubDistributorDestinationShareParam) Descriptor added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) GetAuthority added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) GetDestinationName added in v1.2.0

func (m *MsgUpdateSubDistributorDestinationShareParam) GetDestinationName() string

func (*MsgUpdateSubDistributorDestinationShareParam) GetSignBytes added in v1.2.0

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

func (*MsgUpdateSubDistributorDestinationShareParam) GetSigners added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) GetSubDistributorName added in v1.2.0

func (m *MsgUpdateSubDistributorDestinationShareParam) GetSubDistributorName() string

func (*MsgUpdateSubDistributorDestinationShareParam) Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorDestinationShareParam) MarshalTo added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgUpdateSubDistributorDestinationShareParam) ProtoMessage added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) Reset added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) Route added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) Size added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) String added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) Type added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) Unmarshal added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) ValidateBasic added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_DiscardUnknown added in v1.2.0

func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Merge added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Size added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Unmarshal added in v1.2.0

type MsgUpdateSubDistributorDestinationShareParamResponse added in v1.2.0

type MsgUpdateSubDistributorDestinationShareParamResponse struct {
}

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Descriptor added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Marshal added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) MarshalTo added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgUpdateSubDistributorDestinationShareParamResponse) ProtoMessage added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Reset added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Size added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) String added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Unmarshal added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_DiscardUnknown added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Merge added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Size added in v1.2.0

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Unmarshal added in v1.2.0

type MsgUpdateSubDistributorParam added in v1.2.0

type MsgUpdateSubDistributorParam struct {
	// authority is the address of the governance account.
	Authority      string          `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	SubDistributor *SubDistributor `protobuf:"bytes,2,opt,name=sub_distributor,json=subDistributor,proto3" json:"sub_distributor,omitempty"`
}

func (*MsgUpdateSubDistributorParam) Descriptor added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) GetAuthority added in v1.2.0

func (m *MsgUpdateSubDistributorParam) GetAuthority() string

func (*MsgUpdateSubDistributorParam) GetSignBytes added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) GetSigners added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) GetSubDistributor added in v1.2.0

func (m *MsgUpdateSubDistributorParam) GetSubDistributor() *SubDistributor

func (*MsgUpdateSubDistributorParam) Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) MarshalTo added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) ProtoMessage added in v1.2.0

func (*MsgUpdateSubDistributorParam) ProtoMessage()

func (*MsgUpdateSubDistributorParam) Reset added in v1.2.0

func (m *MsgUpdateSubDistributorParam) Reset()

func (*MsgUpdateSubDistributorParam) Route added in v1.2.0

func (msg *MsgUpdateSubDistributorParam) Route() string

func (*MsgUpdateSubDistributorParam) Size added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) String added in v1.2.0

func (*MsgUpdateSubDistributorParam) Type added in v1.2.0

func (*MsgUpdateSubDistributorParam) Unmarshal added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) ValidateBasic added in v1.2.0

func (msg *MsgUpdateSubDistributorParam) ValidateBasic() error

func (*MsgUpdateSubDistributorParam) XXX_DiscardUnknown added in v1.2.0

func (m *MsgUpdateSubDistributorParam) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorParam) XXX_Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) XXX_Merge added in v1.2.0

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

func (*MsgUpdateSubDistributorParam) XXX_Size added in v1.2.0

func (m *MsgUpdateSubDistributorParam) XXX_Size() int

func (*MsgUpdateSubDistributorParam) XXX_Unmarshal added in v1.2.0

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

type MsgUpdateSubDistributorParamResponse added in v1.2.0

type MsgUpdateSubDistributorParamResponse struct {
}

func (*MsgUpdateSubDistributorParamResponse) Descriptor added in v1.2.0

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

func (*MsgUpdateSubDistributorParamResponse) Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorParamResponse) MarshalTo added in v1.2.0

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

func (*MsgUpdateSubDistributorParamResponse) MarshalToSizedBuffer added in v1.2.0

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

func (*MsgUpdateSubDistributorParamResponse) ProtoMessage added in v1.2.0

func (*MsgUpdateSubDistributorParamResponse) ProtoMessage()

func (*MsgUpdateSubDistributorParamResponse) Reset added in v1.2.0

func (*MsgUpdateSubDistributorParamResponse) Size added in v1.2.0

func (*MsgUpdateSubDistributorParamResponse) String added in v1.2.0

func (*MsgUpdateSubDistributorParamResponse) Unmarshal added in v1.2.0

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

func (*MsgUpdateSubDistributorParamResponse) XXX_DiscardUnknown added in v1.2.0

func (m *MsgUpdateSubDistributorParamResponse) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorParamResponse) XXX_Marshal added in v1.2.0

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

func (*MsgUpdateSubDistributorParamResponse) XXX_Merge added in v1.2.0

func (*MsgUpdateSubDistributorParamResponse) XXX_Size added in v1.2.0

func (*MsgUpdateSubDistributorParamResponse) XXX_Unmarshal added in v1.2.0

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

type Params

type Params struct {
	SubDistributors []SubDistributor `protobuf:"bytes,1,rep,name=sub_distributors,json=subDistributors,proto3" json:"sub_distributors"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(subDistributors []SubDistributor) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetSubDistributors

func (m *Params) GetSubDistributors() []SubDistributor

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of States items.
	States(ctx context.Context, in *QueryStatesRequest, opts ...grpc.CallOption) (*QueryStatesResponse, error)
}

QueryClient is the client API for Query service.

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

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of States items.
	States(context.Context, *QueryStatesRequest) (*QueryStatesResponse, error)
}

QueryServer is the server API for Query service.

type QueryStatesRequest

type QueryStatesRequest struct {
}

func (*QueryStatesRequest) Descriptor

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

func (*QueryStatesRequest) Marshal

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

func (*QueryStatesRequest) MarshalTo

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

func (*QueryStatesRequest) MarshalToSizedBuffer

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

func (*QueryStatesRequest) ProtoMessage

func (*QueryStatesRequest) ProtoMessage()

func (*QueryStatesRequest) Reset

func (m *QueryStatesRequest) Reset()

func (*QueryStatesRequest) Size

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

func (*QueryStatesRequest) String

func (m *QueryStatesRequest) String() string

func (*QueryStatesRequest) Unmarshal

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

func (*QueryStatesRequest) XXX_DiscardUnknown

func (m *QueryStatesRequest) XXX_DiscardUnknown()

func (*QueryStatesRequest) XXX_Marshal

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

func (*QueryStatesRequest) XXX_Merge

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

func (*QueryStatesRequest) XXX_Size

func (m *QueryStatesRequest) XXX_Size() int

func (*QueryStatesRequest) XXX_Unmarshal

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

type QueryStatesResponse

type QueryStatesResponse struct {
	States                    []State      `protobuf:"bytes,1,rep,name=states,proto3" json:"states"`
	CoinsOnDistributorAccount []types.Coin `` /* 130-byte string literal not displayed */
}

func (*QueryStatesResponse) Descriptor

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

func (*QueryStatesResponse) GetCoinsOnDistributorAccount

func (m *QueryStatesResponse) GetCoinsOnDistributorAccount() []types.Coin

func (*QueryStatesResponse) GetStates

func (m *QueryStatesResponse) GetStates() []State

func (*QueryStatesResponse) Marshal

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

func (*QueryStatesResponse) MarshalTo

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

func (*QueryStatesResponse) MarshalToSizedBuffer

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

func (*QueryStatesResponse) ProtoMessage

func (*QueryStatesResponse) ProtoMessage()

func (*QueryStatesResponse) Reset

func (m *QueryStatesResponse) Reset()

func (*QueryStatesResponse) Size

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

func (*QueryStatesResponse) String

func (m *QueryStatesResponse) String() string

func (*QueryStatesResponse) Unmarshal

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

func (*QueryStatesResponse) XXX_DiscardUnknown

func (m *QueryStatesResponse) XXX_DiscardUnknown()

func (*QueryStatesResponse) XXX_Marshal

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

func (*QueryStatesResponse) XXX_Merge

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

func (*QueryStatesResponse) XXX_Size

func (m *QueryStatesResponse) XXX_Size() int

func (*QueryStatesResponse) XXX_Unmarshal

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

type State

type State struct {
	Account *Account                                    `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	Burn    bool                                        `protobuf:"varint,2,opt,name=burn,proto3" json:"burn,omitempty"`
	Remains github_com_cosmos_cosmos_sdk_types.DecCoins `` /* 129-byte string literal not displayed */
}

func (*State) Descriptor

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

func (*State) GetAccount

func (m *State) GetAccount() *Account

func (*State) GetBurn

func (m *State) GetBurn() bool

func (*State) GetRemains added in v1.1.0

func (State) GetStateKey added in v1.1.0

func (state State) GetStateKey() string

func (State) IsNegative added in v1.1.0

func (s State) IsNegative() error

func (*State) Marshal

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

func (*State) MarshalTo

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

func (*State) MarshalToSizedBuffer

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

func (*State) ProtoMessage

func (*State) ProtoMessage()

func (*State) Reset

func (m *State) Reset()

func (*State) Size

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

func (*State) String

func (m *State) String() string

func (*State) Unmarshal

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

func (State) Validate added in v1.1.0

func (s State) Validate() error

func (*State) XXX_DiscardUnknown

func (m *State) XXX_DiscardUnknown()

func (*State) XXX_Marshal

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

func (*State) XXX_Merge

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

func (*State) XXX_Size

func (m *State) XXX_Size() int

func (*State) XXX_Unmarshal

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

type SubDistributor

type SubDistributor struct {
	Name         string       `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Sources      []*Account   `protobuf:"bytes,2,rep,name=sources,proto3" json:"sources,omitempty"`
	Destinations Destinations `protobuf:"bytes,3,opt,name=destinations,proto3" json:"destinations"`
}

func (*SubDistributor) Descriptor

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

func (*SubDistributor) GetDestinations added in v1.1.0

func (m *SubDistributor) GetDestinations() Destinations

func (*SubDistributor) GetName

func (m *SubDistributor) GetName() string

func (SubDistributor) GetPrimaryShareName added in v1.1.0

func (subdistributor SubDistributor) GetPrimaryShareName() string

func (*SubDistributor) GetSources

func (m *SubDistributor) GetSources() []*Account

func (*SubDistributor) Marshal

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

func (*SubDistributor) MarshalTo

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

func (*SubDistributor) MarshalToSizedBuffer

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

func (*SubDistributor) ProtoMessage

func (*SubDistributor) ProtoMessage()

func (*SubDistributor) Reset

func (m *SubDistributor) Reset()

func (*SubDistributor) Size

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

func (*SubDistributor) String

func (m *SubDistributor) String() string

func (*SubDistributor) Unmarshal

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

func (SubDistributor) Validate

func (subdistributor SubDistributor) Validate() error

func (*SubDistributor) XXX_DiscardUnknown

func (m *SubDistributor) XXX_DiscardUnknown()

func (*SubDistributor) XXX_Marshal

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

func (*SubDistributor) XXX_Merge

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

func (*SubDistributor) XXX_Size

func (m *SubDistributor) XXX_Size() int

func (*SubDistributor) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateParams added in v1.2.0

func (*UnimplementedMsgServer) UpdateSubDistributorBurnShareParam added in v1.2.0

func (*UnimplementedMsgServer) UpdateSubDistributorDestinationShareParam added in v1.2.0

func (*UnimplementedMsgServer) UpdateSubDistributorParam added in v1.2.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) States

Jump to

Keyboard shortcuts

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