types

package
v2.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 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

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

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

func StateSumIsInteger

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

func ValidateSubDistributors

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

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

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

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

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

func (*DestinationShare) GetDestination

func (m *DestinationShare) GetDestination() Account

func (*DestinationShare) GetName

func (m *DestinationShare) GetName() string

func (*DestinationShare) Marshal

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

func (*DestinationShare) MarshalTo

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

func (*DestinationShare) MarshalToSizedBuffer

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

func (*DestinationShare) ProtoMessage

func (*DestinationShare) ProtoMessage()

func (*DestinationShare) Reset

func (m *DestinationShare) Reset()

func (*DestinationShare) Size

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

func (*DestinationShare) String

func (m *DestinationShare) String() string

func (*DestinationShare) Unmarshal

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

func (*DestinationShare) XXX_DiscardUnknown

func (m *DestinationShare) XXX_DiscardUnknown()

func (*DestinationShare) XXX_Marshal

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

func (*DestinationShare) XXX_Merge

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

func (*DestinationShare) XXX_Size

func (m *DestinationShare) XXX_Size() int

func (*DestinationShare) XXX_Unmarshal

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

type Destinations

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

func (destinations Destinations) CheckIfSharesSumIsBetween0And1() error

func (*Destinations) Descriptor

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

func (*Destinations) GetPrimaryShare

func (m *Destinations) GetPrimaryShare() Account

func (*Destinations) GetShares

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

func (*Destinations) Marshal

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

func (*Destinations) MarshalTo

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

func (*Destinations) MarshalToSizedBuffer

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

func (*Destinations) ProtoMessage

func (*Destinations) ProtoMessage()

func (*Destinations) Reset

func (m *Destinations) Reset()

func (*Destinations) Size

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

func (*Destinations) String

func (m *Destinations) String() string

func (*Destinations) Unmarshal

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

func (Destinations) Validate

func (destinations Destinations) Validate(primaryShareName string) error

func (*Destinations) XXX_DiscardUnknown

func (m *Destinations) XXX_DiscardUnknown()

func (*Destinations) XXX_Marshal

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

func (*Destinations) XXX_Merge

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

func (*Destinations) XXX_Size

func (m *Destinations) XXX_Size() int

func (*Destinations) XXX_Unmarshal

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

type EventDistribution

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

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

func (*EventDistribution) GetAmount

func (*EventDistribution) GetDestination

func (m *EventDistribution) GetDestination() *Account

func (*EventDistribution) GetShareName

func (m *EventDistribution) GetShareName() string

func (*EventDistribution) GetSources

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

func (*EventDistribution) GetSubdistributor

func (m *EventDistribution) GetSubdistributor() string

func (*EventDistribution) Marshal

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

func (*EventDistribution) MarshalTo

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

func (*EventDistribution) MarshalToSizedBuffer

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

func (*EventDistribution) ProtoMessage

func (*EventDistribution) ProtoMessage()

func (*EventDistribution) Reset

func (m *EventDistribution) Reset()

func (*EventDistribution) Size

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

func (*EventDistribution) String

func (m *EventDistribution) String() string

func (*EventDistribution) Unmarshal

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

func (*EventDistribution) XXX_DiscardUnknown

func (m *EventDistribution) XXX_DiscardUnknown()

func (*EventDistribution) XXX_Marshal

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

func (*EventDistribution) XXX_Merge

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

func (*EventDistribution) XXX_Size

func (m *EventDistribution) XXX_Size() int

func (*EventDistribution) XXX_Unmarshal

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

type EventDistributionBurn

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

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

func (*EventDistributionBurn) GetAmount

func (*EventDistributionBurn) GetSources

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

func (*EventDistributionBurn) GetSubdistributor

func (m *EventDistributionBurn) GetSubdistributor() string

func (*EventDistributionBurn) Marshal

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

func (*EventDistributionBurn) MarshalTo

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

func (*EventDistributionBurn) MarshalToSizedBuffer

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

func (*EventDistributionBurn) ProtoMessage

func (*EventDistributionBurn) ProtoMessage()

func (*EventDistributionBurn) Reset

func (m *EventDistributionBurn) Reset()

func (*EventDistributionBurn) Size

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

func (*EventDistributionBurn) String

func (m *EventDistributionBurn) String() string

func (*EventDistributionBurn) Unmarshal

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

func (*EventDistributionBurn) XXX_DiscardUnknown

func (m *EventDistributionBurn) XXX_DiscardUnknown()

func (*EventDistributionBurn) XXX_Marshal

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

func (*EventDistributionBurn) XXX_Merge

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

func (*EventDistributionBurn) XXX_Size

func (m *EventDistributionBurn) XXX_Size() int

func (*EventDistributionBurn) XXX_Unmarshal

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

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

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetSignBytes

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

func (*MsgUpdateParams) GetSigners

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

func (*MsgUpdateParams) GetSubDistributors

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

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Route

func (msg *MsgUpdateParams) Route() string

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Type

func (msg *MsgUpdateParams) Type() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) ValidateBasic

func (msg *MsgUpdateParams) ValidateBasic() error

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type MsgUpdateSubDistributorBurnShareParam

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

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

func (*MsgUpdateSubDistributorBurnShareParam) GetAuthority

func (*MsgUpdateSubDistributorBurnShareParam) GetSignBytes

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

func (*MsgUpdateSubDistributorBurnShareParam) GetSigners

func (*MsgUpdateSubDistributorBurnShareParam) GetSubDistributorName

func (m *MsgUpdateSubDistributorBurnShareParam) GetSubDistributorName() string

func (*MsgUpdateSubDistributorBurnShareParam) Marshal

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

func (*MsgUpdateSubDistributorBurnShareParam) MarshalTo

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

func (*MsgUpdateSubDistributorBurnShareParam) MarshalToSizedBuffer

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

func (*MsgUpdateSubDistributorBurnShareParam) ProtoMessage

func (*MsgUpdateSubDistributorBurnShareParam) ProtoMessage()

func (*MsgUpdateSubDistributorBurnShareParam) Reset

func (*MsgUpdateSubDistributorBurnShareParam) Route

func (*MsgUpdateSubDistributorBurnShareParam) Size

func (*MsgUpdateSubDistributorBurnShareParam) String

func (*MsgUpdateSubDistributorBurnShareParam) Type

func (*MsgUpdateSubDistributorBurnShareParam) Unmarshal

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

func (*MsgUpdateSubDistributorBurnShareParam) ValidateBasic

func (msg *MsgUpdateSubDistributorBurnShareParam) ValidateBasic() error

func (*MsgUpdateSubDistributorBurnShareParam) XXX_DiscardUnknown

func (m *MsgUpdateSubDistributorBurnShareParam) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorBurnShareParam) XXX_Marshal

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

func (*MsgUpdateSubDistributorBurnShareParam) XXX_Merge

func (*MsgUpdateSubDistributorBurnShareParam) XXX_Size

func (*MsgUpdateSubDistributorBurnShareParam) XXX_Unmarshal

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

type MsgUpdateSubDistributorBurnShareParamResponse

type MsgUpdateSubDistributorBurnShareParamResponse struct {
}

func (*MsgUpdateSubDistributorBurnShareParamResponse) Descriptor

func (*MsgUpdateSubDistributorBurnShareParamResponse) Marshal

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

func (*MsgUpdateSubDistributorBurnShareParamResponse) MarshalTo

func (*MsgUpdateSubDistributorBurnShareParamResponse) MarshalToSizedBuffer

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

func (*MsgUpdateSubDistributorBurnShareParamResponse) ProtoMessage

func (*MsgUpdateSubDistributorBurnShareParamResponse) Reset

func (*MsgUpdateSubDistributorBurnShareParamResponse) Size

func (*MsgUpdateSubDistributorBurnShareParamResponse) String

func (*MsgUpdateSubDistributorBurnShareParamResponse) Unmarshal

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_DiscardUnknown

func (m *MsgUpdateSubDistributorBurnShareParamResponse) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Marshal

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

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Merge

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Size

func (*MsgUpdateSubDistributorBurnShareParamResponse) XXX_Unmarshal

type MsgUpdateSubDistributorDestinationShareParam

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

func (*MsgUpdateSubDistributorDestinationShareParam) GetAuthority

func (*MsgUpdateSubDistributorDestinationShareParam) GetDestinationName

func (m *MsgUpdateSubDistributorDestinationShareParam) GetDestinationName() string

func (*MsgUpdateSubDistributorDestinationShareParam) GetSignBytes

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

func (*MsgUpdateSubDistributorDestinationShareParam) GetSigners

func (*MsgUpdateSubDistributorDestinationShareParam) GetSubDistributorName

func (m *MsgUpdateSubDistributorDestinationShareParam) GetSubDistributorName() string

func (*MsgUpdateSubDistributorDestinationShareParam) Marshal

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

func (*MsgUpdateSubDistributorDestinationShareParam) MarshalTo

func (*MsgUpdateSubDistributorDestinationShareParam) MarshalToSizedBuffer

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

func (*MsgUpdateSubDistributorDestinationShareParam) ProtoMessage

func (*MsgUpdateSubDistributorDestinationShareParam) Reset

func (*MsgUpdateSubDistributorDestinationShareParam) Route

func (*MsgUpdateSubDistributorDestinationShareParam) Size

func (*MsgUpdateSubDistributorDestinationShareParam) String

func (*MsgUpdateSubDistributorDestinationShareParam) Type

func (*MsgUpdateSubDistributorDestinationShareParam) Unmarshal

func (*MsgUpdateSubDistributorDestinationShareParam) ValidateBasic

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_DiscardUnknown

func (m *MsgUpdateSubDistributorDestinationShareParam) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Marshal

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

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Merge

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Size

func (*MsgUpdateSubDistributorDestinationShareParam) XXX_Unmarshal

type MsgUpdateSubDistributorDestinationShareParamResponse

type MsgUpdateSubDistributorDestinationShareParamResponse struct {
}

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Descriptor

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Marshal

func (*MsgUpdateSubDistributorDestinationShareParamResponse) MarshalTo

func (*MsgUpdateSubDistributorDestinationShareParamResponse) MarshalToSizedBuffer

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

func (*MsgUpdateSubDistributorDestinationShareParamResponse) ProtoMessage

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Reset

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Size

func (*MsgUpdateSubDistributorDestinationShareParamResponse) String

func (*MsgUpdateSubDistributorDestinationShareParamResponse) Unmarshal

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_DiscardUnknown

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Marshal

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

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Merge

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Size

func (*MsgUpdateSubDistributorDestinationShareParamResponse) XXX_Unmarshal

type MsgUpdateSubDistributorParam

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

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

func (*MsgUpdateSubDistributorParam) GetAuthority

func (m *MsgUpdateSubDistributorParam) GetAuthority() string

func (*MsgUpdateSubDistributorParam) GetSignBytes

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

func (*MsgUpdateSubDistributorParam) GetSigners

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

func (*MsgUpdateSubDistributorParam) GetSubDistributor

func (m *MsgUpdateSubDistributorParam) GetSubDistributor() *SubDistributor

func (*MsgUpdateSubDistributorParam) Marshal

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

func (*MsgUpdateSubDistributorParam) MarshalTo

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

func (*MsgUpdateSubDistributorParam) MarshalToSizedBuffer

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

func (*MsgUpdateSubDistributorParam) ProtoMessage

func (*MsgUpdateSubDistributorParam) ProtoMessage()

func (*MsgUpdateSubDistributorParam) Reset

func (m *MsgUpdateSubDistributorParam) Reset()

func (*MsgUpdateSubDistributorParam) Route

func (msg *MsgUpdateSubDistributorParam) Route() string

func (*MsgUpdateSubDistributorParam) Size

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

func (*MsgUpdateSubDistributorParam) String

func (*MsgUpdateSubDistributorParam) Type

func (*MsgUpdateSubDistributorParam) Unmarshal

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

func (*MsgUpdateSubDistributorParam) ValidateBasic

func (msg *MsgUpdateSubDistributorParam) ValidateBasic() error

func (*MsgUpdateSubDistributorParam) XXX_DiscardUnknown

func (m *MsgUpdateSubDistributorParam) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorParam) XXX_Marshal

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

func (*MsgUpdateSubDistributorParam) XXX_Merge

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

func (*MsgUpdateSubDistributorParam) XXX_Size

func (m *MsgUpdateSubDistributorParam) XXX_Size() int

func (*MsgUpdateSubDistributorParam) XXX_Unmarshal

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

type MsgUpdateSubDistributorParamResponse

type MsgUpdateSubDistributorParamResponse struct {
}

func (*MsgUpdateSubDistributorParamResponse) Descriptor

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

func (*MsgUpdateSubDistributorParamResponse) Marshal

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

func (*MsgUpdateSubDistributorParamResponse) MarshalTo

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

func (*MsgUpdateSubDistributorParamResponse) MarshalToSizedBuffer

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

func (*MsgUpdateSubDistributorParamResponse) ProtoMessage

func (*MsgUpdateSubDistributorParamResponse) ProtoMessage()

func (*MsgUpdateSubDistributorParamResponse) Reset

func (*MsgUpdateSubDistributorParamResponse) Size

func (*MsgUpdateSubDistributorParamResponse) String

func (*MsgUpdateSubDistributorParamResponse) Unmarshal

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

func (*MsgUpdateSubDistributorParamResponse) XXX_DiscardUnknown

func (m *MsgUpdateSubDistributorParamResponse) XXX_DiscardUnknown()

func (*MsgUpdateSubDistributorParamResponse) XXX_Marshal

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

func (*MsgUpdateSubDistributorParamResponse) XXX_Merge

func (*MsgUpdateSubDistributorParamResponse) XXX_Size

func (*MsgUpdateSubDistributorParamResponse) XXX_Unmarshal

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

func (State) GetStateKey

func (state State) GetStateKey() string

func (State) IsNegative

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

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

func (m *SubDistributor) GetDestinations() Destinations

func (*SubDistributor) GetName

func (m *SubDistributor) GetName() string

func (SubDistributor) GetPrimaryShareName

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

func (*UnimplementedMsgServer) UpdateSubDistributorParam

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