types

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: LGPL-3.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeAddDistributor    = "AddDistributor"
	EventTypeRemoveDistributor = "RemoveDistributor"

	EventTypeAddAdmin    = "AddAdmin"
	EventTypeRemoveAdmin = "RemoveAdmin"

	EventTypeAddDistributorProposal = "AddDistributorProposal"

	AttributeKeyAddress    = "address"
	AttributeKeyEndDate    = "endDate"
	AttributeKeyEditOption = "editOption"
)

distributorsauth module event types

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

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

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

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

	// QuerierRoute is the query router key for the distributorsauth module
	QuerierRoute = ModuleName
)
View Source
const (
	DistributorPrefix      = "distr-"
	DistributorAdminPrefix = "admin-"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const (
	// ProposalTypeChange defines the type for a ParameterChangeProposal
	ProposalTypeAddDistributor = "AddDistributorGov"
)

Variables

View Source
var (
	ErrInvalidLengthDistributorsauth        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDistributorsauth          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDistributorsauth = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrNoDistributorInStoreForAddress      = sdkerrors.Register(ModuleName, 1, "No distributor in store with address")
	ErrWrongDistributorAddress             = sdkerrors.Register(ModuleName, 2, "Not correct distributor address")
	ErrNoAdminInStoreForAddress            = sdkerrors.Register(ModuleName, 3, "No admin in store with address")
	ErrWrongAdminAddress                   = sdkerrors.Register(ModuleName, 4, "Not correct admin address")
	ErrSenderIsNotAnAdmin                  = sdkerrors.Register(ModuleName, 5, "Sender is not an admin")
	ErrWrongAdminEditOption                = sdkerrors.Register(ModuleName, 6, "Admin have no edit option")
	ErrDistributorEndDateLessThenBlockTime = sdkerrors.Register(ModuleName, 7, "End date less then block time")
)

x/distributorsauth module sentinel errors

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 (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func AddAdminEvent

func AddAdminEvent(address string, edit_option string) sdk.Event

AddAdminEvent construct a new admin add sdk.Event

func AddDistributoProposalEvent

func AddDistributoProposalEvent(address string, endDate string) sdk.Event

AddDistributoProposalEvent constructs a new distributor add proposal sdk.Event

func AddDistributorEvent

func AddDistributorEvent(address string, endDate string) sdk.Event

AddDistributorEvent constructs a new distributor add sdk.Event

func CheckDistrubutorEndDateExpire

func CheckDistrubutorEndDateExpire(ctx sdk.Context, endDate uint64) bool

func ContainsGenesisAdmin

func ContainsGenesisAdmin(addr string, admins []Admin) bool

func ContainsGenesisDistributor

func ContainsGenesisDistributor(addr string, distributors []DistributorInfo) bool

func EnsureBech32Address

func EnsureBech32Address(address string) (string, error)

func KeyPrefix

func KeyPrefix(p string) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgHandler

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

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

func RegisterMsgHandlerClient

func RegisterMsgHandlerClient(ctx context.Context, mux *runtime.ServeMux, client MsgClient) error

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

func RegisterMsgHandlerFromEndpoint

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

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

func RegisterMsgHandlerServer

func RegisterMsgHandlerServer(ctx context.Context, mux *runtime.ServeMux, server MsgServer) error

RegisterMsgHandlerServer registers the http handlers for service Msg to "mux". UnaryRPC :call MsgServer 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 RegisterMsgHandlerFromEndpoint instead.

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 RemoveAdminEvent

func RemoveAdminEvent(address string) sdk.Event

RemoveAdminEvent construct admin remove sdk.Event

func RemoveDistributorEvent

func RemoveDistributorEvent(address string) sdk.Event

RemoveDistributorEvent constructs distributor remove sdk.Event

func ValidateDistributor

func ValidateDistributor(address string) error

Types

type AccountKeeper

type AccountKeeper interface {
	// GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
	// Methods imported from account should be defined here
	IterateAccounts(ctx sdk.Context, cb func(account types.AccountI) (stop bool))
}

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

type AddDistributorProposal

type AddDistributorProposal struct {
	// title of proposal
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty" yaml:"title"`
	// description of proposal
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" yaml:"description"`
	// address of distributor
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty" yaml:"address"`
	// end_date of distributor
	EndDate uint64 `protobuf:"varint,4,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty" yaml:"end_date"`
	// deposit of proposal
	Deposit string `protobuf:"bytes,5,opt,name=deposit,proto3" json:"deposit,omitempty" yaml:"deposit"`
}

AddDistributorProposal with a deposit

func NewAddDistributorProposal

func NewAddDistributorProposal(title, description, address, deposit string, end_date uint64) *AddDistributorProposal

func (*AddDistributorProposal) Descriptor

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

func (*AddDistributorProposal) GetDescription

func (pcp *AddDistributorProposal) GetDescription() string

GetDescription returns the description of a parameter change proposal.

func (*AddDistributorProposal) GetTitle

func (pcp *AddDistributorProposal) GetTitle() string

GetTitle returns the title of a parameter change proposal.

func (*AddDistributorProposal) Marshal

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

func (*AddDistributorProposal) MarshalTo

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

func (*AddDistributorProposal) MarshalToSizedBuffer

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

func (*AddDistributorProposal) ProposalRoute

func (pcp *AddDistributorProposal) ProposalRoute() string

ProposalRoute returns the routing key of a parameter change proposal.

func (*AddDistributorProposal) ProposalType

func (pcp *AddDistributorProposal) ProposalType() string

ProposalType returns the type of a parameter change proposal.

func (*AddDistributorProposal) ProtoMessage

func (*AddDistributorProposal) ProtoMessage()

func (*AddDistributorProposal) Reset

func (m *AddDistributorProposal) Reset()

func (*AddDistributorProposal) Size

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

func (*AddDistributorProposal) String

func (m *AddDistributorProposal) String() string

func (*AddDistributorProposal) Unmarshal

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

func (*AddDistributorProposal) ValidateBasic

func (pcp *AddDistributorProposal) ValidateBasic() error

ValidateBasic validates the parameter change proposal

func (*AddDistributorProposal) XXX_DiscardUnknown

func (m *AddDistributorProposal) XXX_DiscardUnknown()

func (*AddDistributorProposal) XXX_Marshal

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

func (*AddDistributorProposal) XXX_Merge

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

func (*AddDistributorProposal) XXX_Size

func (m *AddDistributorProposal) XXX_Size() int

func (*AddDistributorProposal) XXX_Unmarshal

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

type Admin

type Admin struct {
	// address of admin
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// edit_option of admin
	EditOption bool `protobuf:"varint,2,opt,name=edit_option,json=editOption,proto3" json:"edit_option,omitempty"`
}

Admin is the struct of admin

func (*Admin) Descriptor

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

func (*Admin) GetAddress

func (m *Admin) GetAddress() string

func (*Admin) GetEditOption

func (m *Admin) GetEditOption() bool

func (*Admin) Marshal

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

func (*Admin) MarshalTo

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

func (*Admin) MarshalToSizedBuffer

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

func (*Admin) ProtoMessage

func (*Admin) ProtoMessage()

func (*Admin) Reset

func (m *Admin) Reset()

func (*Admin) Size

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

func (*Admin) String

func (m *Admin) String() string

func (*Admin) Unmarshal

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

func (*Admin) XXX_DiscardUnknown

func (m *Admin) XXX_DiscardUnknown()

func (*Admin) XXX_Marshal

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

func (*Admin) XXX_Merge

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

func (*Admin) XXX_Size

func (m *Admin) XXX_Size() int

func (*Admin) XXX_Unmarshal

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

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type DistributorInfo

type DistributorInfo struct {
	// address of distributor
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// end_date of distributor
	EndDate uint64 `protobuf:"varint,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
}

DistributorInfo is the struct of distributor

func (*DistributorInfo) Descriptor

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

func (*DistributorInfo) GetAddress

func (m *DistributorInfo) GetAddress() string

func (*DistributorInfo) GetEndDate

func (m *DistributorInfo) GetEndDate() uint64

func (*DistributorInfo) Marshal

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

func (*DistributorInfo) MarshalTo

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

func (*DistributorInfo) MarshalToSizedBuffer

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

func (*DistributorInfo) ProtoMessage

func (*DistributorInfo) ProtoMessage()

func (*DistributorInfo) Reset

func (m *DistributorInfo) Reset()

func (*DistributorInfo) Size

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

func (*DistributorInfo) String

func (m *DistributorInfo) String() string

func (*DistributorInfo) Unmarshal

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

func (*DistributorInfo) XXX_DiscardUnknown

func (m *DistributorInfo) XXX_DiscardUnknown()

func (*DistributorInfo) XXX_Marshal

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

func (*DistributorInfo) XXX_Merge

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

func (*DistributorInfo) XXX_Size

func (m *DistributorInfo) XXX_Size() int

func (*DistributorInfo) XXX_Unmarshal

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

type GenesisAdminIterator

type GenesisAdminIterator struct{}

GenesisAdminIterator implements genesis admin iteration.

type GenesisAdmins

type GenesisAdmins []Admin

func SanitizeGenesisAdmin

func SanitizeGenesisAdmin(genAdmins GenesisAdmins) GenesisAdmins

type GenesisDistributors

type GenesisDistributors []DistributorInfo

func SanitizeGenesisDistributor

func SanitizeGenesisDistributor(genDistr GenesisDistributors) GenesisDistributors

type GenesisState

type GenesisState struct {
	// admins list
	Admins []Admin `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins"`
	// distributors list
	Distributors []DistributorInfo `protobuf:"bytes,2,rep,name=distributors,proto3" json:"distributors"`
}

GenesisState defines the distributorsauth module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func GetGenesisStateFromAppState

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

func NewGenesisState

func NewGenesisState(admins []Admin, distributors []DistributorInfo) *GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAdmins

func (m *GenesisState) GetAdmins() []Admin

func (*GenesisState) GetDistributors

func (m *GenesisState) GetDistributors() []DistributorInfo

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 MsgAddAdmin

type MsgAddAdmin struct {
	// sender of the message
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// admin_address is the address of the admin account.
	AdminAddress string `protobuf:"bytes,2,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"`
	// edit_option is the option to edit the admin account.
	EditOption bool `protobuf:"varint,3,opt,name=edit_option,json=editOption,proto3" json:"edit_option,omitempty"`
}

MsgAddAdmin defines a AddAdmin message

func NewMsgAddAdmin

func NewMsgAddAdmin(sender sdk.AccAddress, address string, editOption bool) *MsgAddAdmin

func (*MsgAddAdmin) Descriptor

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

func (*MsgAddAdmin) GetAdminAddress

func (m *MsgAddAdmin) GetAdminAddress() string

func (*MsgAddAdmin) GetEditOption

func (m *MsgAddAdmin) GetEditOption() bool

func (*MsgAddAdmin) GetSender

func (m *MsgAddAdmin) GetSender() string

func (MsgAddAdmin) GetSignBytes

func (msg MsgAddAdmin) GetSignBytes() []byte

func (MsgAddAdmin) GetSigners

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

func (*MsgAddAdmin) Marshal

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

func (*MsgAddAdmin) MarshalTo

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

func (*MsgAddAdmin) MarshalToSizedBuffer

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

func (*MsgAddAdmin) ProtoMessage

func (*MsgAddAdmin) ProtoMessage()

func (*MsgAddAdmin) Reset

func (m *MsgAddAdmin) Reset()

func (MsgAddAdmin) Route

func (msg MsgAddAdmin) Route() string

func (*MsgAddAdmin) Size

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

func (*MsgAddAdmin) String

func (m *MsgAddAdmin) String() string

func (MsgAddAdmin) Type

func (msg MsgAddAdmin) Type() string

func (*MsgAddAdmin) Unmarshal

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

func (MsgAddAdmin) ValidateBasic

func (msg MsgAddAdmin) ValidateBasic() error

func (*MsgAddAdmin) XXX_DiscardUnknown

func (m *MsgAddAdmin) XXX_DiscardUnknown()

func (*MsgAddAdmin) XXX_Marshal

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

func (*MsgAddAdmin) XXX_Merge

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

func (*MsgAddAdmin) XXX_Size

func (m *MsgAddAdmin) XXX_Size() int

func (*MsgAddAdmin) XXX_Unmarshal

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

type MsgAddAdminResponse

type MsgAddAdminResponse struct {
}

MsgAddAdminResponse defines the MsgAddAdmin response type.

func (*MsgAddAdminResponse) Descriptor

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

func (*MsgAddAdminResponse) Marshal

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

func (*MsgAddAdminResponse) MarshalTo

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

func (*MsgAddAdminResponse) MarshalToSizedBuffer

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

func (*MsgAddAdminResponse) ProtoMessage

func (*MsgAddAdminResponse) ProtoMessage()

func (*MsgAddAdminResponse) Reset

func (m *MsgAddAdminResponse) Reset()

func (*MsgAddAdminResponse) Size

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

func (*MsgAddAdminResponse) String

func (m *MsgAddAdminResponse) String() string

func (*MsgAddAdminResponse) Unmarshal

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

func (*MsgAddAdminResponse) XXX_DiscardUnknown

func (m *MsgAddAdminResponse) XXX_DiscardUnknown()

func (*MsgAddAdminResponse) XXX_Marshal

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

func (*MsgAddAdminResponse) XXX_Merge

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

func (*MsgAddAdminResponse) XXX_Size

func (m *MsgAddAdminResponse) XXX_Size() int

func (*MsgAddAdminResponse) XXX_Unmarshal

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

type MsgAddDistributor

type MsgAddDistributor struct {
	// sender of the message
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// distributor_address is the address of the distributor account.
	DistributorAddress string `protobuf:"bytes,2,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"`
	// end_date is the date when the distributor account will be removed.
	EndDate uint64 `protobuf:"varint,3,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
}

MsgAddDistributor defines a AddDistributor message

func NewMsgAddDistributor

func NewMsgAddDistributor(sender sdk.AccAddress, address string, endDate uint64) *MsgAddDistributor

func (*MsgAddDistributor) Descriptor

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

func (*MsgAddDistributor) GetDistributorAddress

func (m *MsgAddDistributor) GetDistributorAddress() string

func (*MsgAddDistributor) GetEndDate

func (m *MsgAddDistributor) GetEndDate() uint64

func (*MsgAddDistributor) GetSender

func (m *MsgAddDistributor) GetSender() string

func (MsgAddDistributor) GetSignBytes

func (msg MsgAddDistributor) GetSignBytes() []byte

func (MsgAddDistributor) GetSigners

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

func (*MsgAddDistributor) Marshal

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

func (*MsgAddDistributor) MarshalTo

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

func (*MsgAddDistributor) MarshalToSizedBuffer

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

func (*MsgAddDistributor) ProtoMessage

func (*MsgAddDistributor) ProtoMessage()

func (*MsgAddDistributor) Reset

func (m *MsgAddDistributor) Reset()

func (MsgAddDistributor) Route

func (msg MsgAddDistributor) Route() string

func (*MsgAddDistributor) Size

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

func (*MsgAddDistributor) String

func (m *MsgAddDistributor) String() string

func (MsgAddDistributor) Type

func (msg MsgAddDistributor) Type() string

func (*MsgAddDistributor) Unmarshal

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

func (MsgAddDistributor) ValidateBasic

func (msg MsgAddDistributor) ValidateBasic() error

func (*MsgAddDistributor) XXX_DiscardUnknown

func (m *MsgAddDistributor) XXX_DiscardUnknown()

func (*MsgAddDistributor) XXX_Marshal

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

func (*MsgAddDistributor) XXX_Merge

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

func (*MsgAddDistributor) XXX_Size

func (m *MsgAddDistributor) XXX_Size() int

func (*MsgAddDistributor) XXX_Unmarshal

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

type MsgAddDistributorResponse

type MsgAddDistributorResponse struct {
}

MsgAddDistributorResponse defines the MsgAddDistributor response type.

func (*MsgAddDistributorResponse) Descriptor

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

func (*MsgAddDistributorResponse) Marshal

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

func (*MsgAddDistributorResponse) MarshalTo

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

func (*MsgAddDistributorResponse) MarshalToSizedBuffer

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

func (*MsgAddDistributorResponse) ProtoMessage

func (*MsgAddDistributorResponse) ProtoMessage()

func (*MsgAddDistributorResponse) Reset

func (m *MsgAddDistributorResponse) Reset()

func (*MsgAddDistributorResponse) Size

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

func (*MsgAddDistributorResponse) String

func (m *MsgAddDistributorResponse) String() string

func (*MsgAddDistributorResponse) Unmarshal

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

func (*MsgAddDistributorResponse) XXX_DiscardUnknown

func (m *MsgAddDistributorResponse) XXX_DiscardUnknown()

func (*MsgAddDistributorResponse) XXX_Marshal

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

func (*MsgAddDistributorResponse) XXX_Merge

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

func (*MsgAddDistributorResponse) XXX_Size

func (m *MsgAddDistributorResponse) XXX_Size() int

func (*MsgAddDistributorResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AddDistributor method
	AddDistributor(ctx context.Context, in *MsgAddDistributor, opts ...grpc.CallOption) (*MsgAddDistributorResponse, error)
	// RemoveDistributor method
	RemoveDistributor(ctx context.Context, in *MsgRemoveDistributor, opts ...grpc.CallOption) (*MsgRemoveDistributorResponse, error)
	// AddAdmin method
	AddAdmin(ctx context.Context, in *MsgAddAdmin, opts ...grpc.CallOption) (*MsgAddAdminResponse, error)
	// RemoveAdmin method
	RemoveAdmin(ctx context.Context, in *MsgRemoveAdmin, opts ...grpc.CallOption) (*MsgRemoveAdminResponse, 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 MsgRemoveAdmin

type MsgRemoveAdmin struct {
	// sender of the message
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// admin_address is the address of the admin account.
	AdminAddress string `protobuf:"bytes,2,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"`
}

MsgRemoveAdmin defines a RemoveAdmin message

func NewMsgRemoveAdmin

func NewMsgRemoveAdmin(fromAddress sdk.AccAddress, address string) *MsgRemoveAdmin

func (*MsgRemoveAdmin) Descriptor

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

func (*MsgRemoveAdmin) GetAdminAddress

func (m *MsgRemoveAdmin) GetAdminAddress() string

func (*MsgRemoveAdmin) GetSender

func (m *MsgRemoveAdmin) GetSender() string

func (*MsgRemoveAdmin) GetSignBytes

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

func (MsgRemoveAdmin) GetSigners

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

func (*MsgRemoveAdmin) Marshal

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

func (*MsgRemoveAdmin) MarshalTo

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

func (*MsgRemoveAdmin) MarshalToSizedBuffer

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

func (*MsgRemoveAdmin) ProtoMessage

func (*MsgRemoveAdmin) ProtoMessage()

func (*MsgRemoveAdmin) Reset

func (m *MsgRemoveAdmin) Reset()

func (*MsgRemoveAdmin) Route

func (msg *MsgRemoveAdmin) Route() string

func (*MsgRemoveAdmin) Size

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

func (*MsgRemoveAdmin) String

func (m *MsgRemoveAdmin) String() string

func (*MsgRemoveAdmin) Type

func (msg *MsgRemoveAdmin) Type() string

func (*MsgRemoveAdmin) Unmarshal

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

func (*MsgRemoveAdmin) ValidateBasic

func (msg *MsgRemoveAdmin) ValidateBasic() error

func (*MsgRemoveAdmin) XXX_DiscardUnknown

func (m *MsgRemoveAdmin) XXX_DiscardUnknown()

func (*MsgRemoveAdmin) XXX_Marshal

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

func (*MsgRemoveAdmin) XXX_Merge

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

func (*MsgRemoveAdmin) XXX_Size

func (m *MsgRemoveAdmin) XXX_Size() int

func (*MsgRemoveAdmin) XXX_Unmarshal

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

type MsgRemoveAdminResponse

type MsgRemoveAdminResponse struct {
}

MsgRemoveAdminResponse defines the MsgRemoveAdmin response type.

func (*MsgRemoveAdminResponse) Descriptor

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

func (*MsgRemoveAdminResponse) Marshal

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

func (*MsgRemoveAdminResponse) MarshalTo

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

func (*MsgRemoveAdminResponse) MarshalToSizedBuffer

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

func (*MsgRemoveAdminResponse) ProtoMessage

func (*MsgRemoveAdminResponse) ProtoMessage()

func (*MsgRemoveAdminResponse) Reset

func (m *MsgRemoveAdminResponse) Reset()

func (*MsgRemoveAdminResponse) Size

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

func (*MsgRemoveAdminResponse) String

func (m *MsgRemoveAdminResponse) String() string

func (*MsgRemoveAdminResponse) Unmarshal

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

func (*MsgRemoveAdminResponse) XXX_DiscardUnknown

func (m *MsgRemoveAdminResponse) XXX_DiscardUnknown()

func (*MsgRemoveAdminResponse) XXX_Marshal

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

func (*MsgRemoveAdminResponse) XXX_Merge

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

func (*MsgRemoveAdminResponse) XXX_Size

func (m *MsgRemoveAdminResponse) XXX_Size() int

func (*MsgRemoveAdminResponse) XXX_Unmarshal

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

type MsgRemoveDistributor

type MsgRemoveDistributor struct {
	// sender of the message
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// distributor_address is the address of the distributor account.
	DistributorAddress string `protobuf:"bytes,2,opt,name=distributor_address,json=distributorAddress,proto3" json:"distributor_address,omitempty"`
}

MsgRemoveDistributor defines a RemoveDistributor message

func NewMsgRemoveDistributor

func NewMsgRemoveDistributor(fromAddress sdk.AccAddress, address string) *MsgRemoveDistributor

func (*MsgRemoveDistributor) Descriptor

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

func (*MsgRemoveDistributor) GetDistributorAddress

func (m *MsgRemoveDistributor) GetDistributorAddress() string

func (*MsgRemoveDistributor) GetSender

func (m *MsgRemoveDistributor) GetSender() string

func (*MsgRemoveDistributor) GetSignBytes

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

func (MsgRemoveDistributor) GetSigners

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

func (*MsgRemoveDistributor) Marshal

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

func (*MsgRemoveDistributor) MarshalTo

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

func (*MsgRemoveDistributor) MarshalToSizedBuffer

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

func (*MsgRemoveDistributor) ProtoMessage

func (*MsgRemoveDistributor) ProtoMessage()

func (*MsgRemoveDistributor) Reset

func (m *MsgRemoveDistributor) Reset()

func (*MsgRemoveDistributor) Route

func (msg *MsgRemoveDistributor) Route() string

func (*MsgRemoveDistributor) Size

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

func (*MsgRemoveDistributor) String

func (m *MsgRemoveDistributor) String() string

func (*MsgRemoveDistributor) Type

func (msg *MsgRemoveDistributor) Type() string

func (*MsgRemoveDistributor) Unmarshal

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

func (*MsgRemoveDistributor) ValidateBasic

func (msg *MsgRemoveDistributor) ValidateBasic() error

func (*MsgRemoveDistributor) XXX_DiscardUnknown

func (m *MsgRemoveDistributor) XXX_DiscardUnknown()

func (*MsgRemoveDistributor) XXX_Marshal

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

func (*MsgRemoveDistributor) XXX_Merge

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

func (*MsgRemoveDistributor) XXX_Size

func (m *MsgRemoveDistributor) XXX_Size() int

func (*MsgRemoveDistributor) XXX_Unmarshal

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

type MsgRemoveDistributorResponse

type MsgRemoveDistributorResponse struct {
}

MsgRemoveDistributorResponse defines the MsgRemoveDistributor response type.

func (*MsgRemoveDistributorResponse) Descriptor

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

func (*MsgRemoveDistributorResponse) Marshal

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

func (*MsgRemoveDistributorResponse) MarshalTo

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

func (*MsgRemoveDistributorResponse) MarshalToSizedBuffer

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

func (*MsgRemoveDistributorResponse) ProtoMessage

func (*MsgRemoveDistributorResponse) ProtoMessage()

func (*MsgRemoveDistributorResponse) Reset

func (m *MsgRemoveDistributorResponse) Reset()

func (*MsgRemoveDistributorResponse) Size

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

func (*MsgRemoveDistributorResponse) String

func (*MsgRemoveDistributorResponse) Unmarshal

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

func (*MsgRemoveDistributorResponse) XXX_DiscardUnknown

func (m *MsgRemoveDistributorResponse) XXX_DiscardUnknown()

func (*MsgRemoveDistributorResponse) XXX_Marshal

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

func (*MsgRemoveDistributorResponse) XXX_Merge

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

func (*MsgRemoveDistributorResponse) XXX_Size

func (m *MsgRemoveDistributorResponse) XXX_Size() int

func (*MsgRemoveDistributorResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// AddDistributor method
	AddDistributor(context.Context, *MsgAddDistributor) (*MsgAddDistributorResponse, error)
	// RemoveDistributor method
	RemoveDistributor(context.Context, *MsgRemoveDistributor) (*MsgRemoveDistributorResponse, error)
	// AddAdmin method
	AddAdmin(context.Context, *MsgAddAdmin) (*MsgAddAdminResponse, error)
	// RemoveAdmin method
	RemoveAdmin(context.Context, *MsgRemoveAdmin) (*MsgRemoveAdminResponse, error)
}

MsgServer is the server API for Msg service.

type QueryAdminRequest

type QueryAdminRequest struct {
	// admin_addr defines the admin address to query for.
	AdminAddr string `protobuf:"bytes,1,opt,name=admin_addr,json=adminAddr,proto3" json:"admin_addr,omitempty"`
}

QueryAdminRequest is response type for the Query/Admin RPC method

func (*QueryAdminRequest) Descriptor

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

func (*QueryAdminRequest) GetAdminAddr

func (m *QueryAdminRequest) GetAdminAddr() string

func (*QueryAdminRequest) Marshal

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

func (*QueryAdminRequest) MarshalTo

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

func (*QueryAdminRequest) MarshalToSizedBuffer

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

func (*QueryAdminRequest) ProtoMessage

func (*QueryAdminRequest) ProtoMessage()

func (*QueryAdminRequest) Reset

func (m *QueryAdminRequest) Reset()

func (*QueryAdminRequest) Size

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

func (*QueryAdminRequest) String

func (m *QueryAdminRequest) String() string

func (*QueryAdminRequest) Unmarshal

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

func (*QueryAdminRequest) XXX_DiscardUnknown

func (m *QueryAdminRequest) XXX_DiscardUnknown()

func (*QueryAdminRequest) XXX_Marshal

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

func (*QueryAdminRequest) XXX_Merge

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

func (*QueryAdminRequest) XXX_Size

func (m *QueryAdminRequest) XXX_Size() int

func (*QueryAdminRequest) XXX_Unmarshal

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

type QueryAdminResponse

type QueryAdminResponse struct {
	// admin defines the admin info.
	Admin Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin"`
}

QueryAdminResponse is response type for the Query/Admin RPC method

func (*QueryAdminResponse) Descriptor

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

func (*QueryAdminResponse) GetAdmin

func (m *QueryAdminResponse) GetAdmin() Admin

func (*QueryAdminResponse) Marshal

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

func (*QueryAdminResponse) MarshalTo

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

func (*QueryAdminResponse) MarshalToSizedBuffer

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

func (*QueryAdminResponse) ProtoMessage

func (*QueryAdminResponse) ProtoMessage()

func (*QueryAdminResponse) Reset

func (m *QueryAdminResponse) Reset()

func (*QueryAdminResponse) Size

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

func (*QueryAdminResponse) String

func (m *QueryAdminResponse) String() string

func (*QueryAdminResponse) Unmarshal

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

func (*QueryAdminResponse) XXX_DiscardUnknown

func (m *QueryAdminResponse) XXX_DiscardUnknown()

func (*QueryAdminResponse) XXX_Marshal

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

func (*QueryAdminResponse) XXX_Merge

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

func (*QueryAdminResponse) XXX_Size

func (m *QueryAdminResponse) XXX_Size() int

func (*QueryAdminResponse) XXX_Unmarshal

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

type QueryAdminsRequest

type QueryAdminsRequest struct {
}

QueryAdminsRequest is request type for Query/Admns RPC method.

func (*QueryAdminsRequest) Descriptor

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

func (*QueryAdminsRequest) Marshal

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

func (*QueryAdminsRequest) MarshalTo

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

func (*QueryAdminsRequest) MarshalToSizedBuffer

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

func (*QueryAdminsRequest) ProtoMessage

func (*QueryAdminsRequest) ProtoMessage()

func (*QueryAdminsRequest) Reset

func (m *QueryAdminsRequest) Reset()

func (*QueryAdminsRequest) Size

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

func (*QueryAdminsRequest) String

func (m *QueryAdminsRequest) String() string

func (*QueryAdminsRequest) Unmarshal

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

func (*QueryAdminsRequest) XXX_DiscardUnknown

func (m *QueryAdminsRequest) XXX_DiscardUnknown()

func (*QueryAdminsRequest) XXX_Marshal

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

func (*QueryAdminsRequest) XXX_Merge

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

func (*QueryAdminsRequest) XXX_Size

func (m *QueryAdminsRequest) XXX_Size() int

func (*QueryAdminsRequest) XXX_Unmarshal

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

type QueryAdminsResponse

type QueryAdminsResponse struct {
	// admins contains all the queried admins.
	Admins []Admin `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins"`
}

QueryAdminsResponse is response type for the Query/Admins RPC method

func (*QueryAdminsResponse) Descriptor

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

func (*QueryAdminsResponse) GetAdmins

func (m *QueryAdminsResponse) GetAdmins() []Admin

func (*QueryAdminsResponse) Marshal

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

func (*QueryAdminsResponse) MarshalTo

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

func (*QueryAdminsResponse) MarshalToSizedBuffer

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

func (*QueryAdminsResponse) ProtoMessage

func (*QueryAdminsResponse) ProtoMessage()

func (*QueryAdminsResponse) Reset

func (m *QueryAdminsResponse) Reset()

func (*QueryAdminsResponse) Size

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

func (*QueryAdminsResponse) String

func (m *QueryAdminsResponse) String() string

func (*QueryAdminsResponse) Unmarshal

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

func (*QueryAdminsResponse) XXX_DiscardUnknown

func (m *QueryAdminsResponse) XXX_DiscardUnknown()

func (*QueryAdminsResponse) XXX_Marshal

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

func (*QueryAdminsResponse) XXX_Merge

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

func (*QueryAdminsResponse) XXX_Size

func (m *QueryAdminsResponse) XXX_Size() int

func (*QueryAdminsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Distributors info for all distributors
	Distributors(ctx context.Context, in *QueryDistributorsRequest, opts ...grpc.CallOption) (*QueryDistributorsResponse, error)
	// Distributor info for given distributor address.
	Distributor(ctx context.Context, in *QueryDistributorRequest, opts ...grpc.CallOption) (*QueryDistributorResponse, error)
	// Admins info for all admins
	Admins(ctx context.Context, in *QueryAdminsRequest, opts ...grpc.CallOption) (*QueryAdminsResponse, error)
	// Admin info for given admin address.
	Admin(ctx context.Context, in *QueryAdminRequest, opts ...grpc.CallOption) (*QueryAdminResponse, 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 QueryDistributorRequest

type QueryDistributorRequest struct {
	// distributor_addr defines the distributor address to query for.
	DistributorAddr string `protobuf:"bytes,1,opt,name=distributor_addr,json=distributorAddr,proto3" json:"distributor_addr,omitempty"`
}

QueryDistributorRequest is response type for the Query/Distributor RPC method

func (*QueryDistributorRequest) Descriptor

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

func (*QueryDistributorRequest) GetDistributorAddr

func (m *QueryDistributorRequest) GetDistributorAddr() string

func (*QueryDistributorRequest) Marshal

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

func (*QueryDistributorRequest) MarshalTo

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

func (*QueryDistributorRequest) MarshalToSizedBuffer

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

func (*QueryDistributorRequest) ProtoMessage

func (*QueryDistributorRequest) ProtoMessage()

func (*QueryDistributorRequest) Reset

func (m *QueryDistributorRequest) Reset()

func (*QueryDistributorRequest) Size

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

func (*QueryDistributorRequest) String

func (m *QueryDistributorRequest) String() string

func (*QueryDistributorRequest) Unmarshal

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

func (*QueryDistributorRequest) XXX_DiscardUnknown

func (m *QueryDistributorRequest) XXX_DiscardUnknown()

func (*QueryDistributorRequest) XXX_Marshal

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

func (*QueryDistributorRequest) XXX_Merge

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

func (*QueryDistributorRequest) XXX_Size

func (m *QueryDistributorRequest) XXX_Size() int

func (*QueryDistributorRequest) XXX_Unmarshal

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

type QueryDistributorResponse

type QueryDistributorResponse struct {
	// distributor defines the distributor info.
	Distributor DistributorInfo `protobuf:"bytes,1,opt,name=distributor,proto3" json:"distributor"`
}

QueryDistributorResponse is response type for the Query/Distributor RPC method

func (*QueryDistributorResponse) Descriptor

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

func (*QueryDistributorResponse) GetDistributor

func (m *QueryDistributorResponse) GetDistributor() DistributorInfo

func (*QueryDistributorResponse) Marshal

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

func (*QueryDistributorResponse) MarshalTo

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

func (*QueryDistributorResponse) MarshalToSizedBuffer

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

func (*QueryDistributorResponse) ProtoMessage

func (*QueryDistributorResponse) ProtoMessage()

func (*QueryDistributorResponse) Reset

func (m *QueryDistributorResponse) Reset()

func (*QueryDistributorResponse) Size

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

func (*QueryDistributorResponse) String

func (m *QueryDistributorResponse) String() string

func (*QueryDistributorResponse) Unmarshal

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

func (*QueryDistributorResponse) XXX_DiscardUnknown

func (m *QueryDistributorResponse) XXX_DiscardUnknown()

func (*QueryDistributorResponse) XXX_Marshal

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

func (*QueryDistributorResponse) XXX_Merge

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

func (*QueryDistributorResponse) XXX_Size

func (m *QueryDistributorResponse) XXX_Size() int

func (*QueryDistributorResponse) XXX_Unmarshal

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

type QueryDistributorsRequest

type QueryDistributorsRequest struct {
}

QueryDistributorsRequest is request type for Query/Distributors RPC method.

func (*QueryDistributorsRequest) Descriptor

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

func (*QueryDistributorsRequest) Marshal

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

func (*QueryDistributorsRequest) MarshalTo

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

func (*QueryDistributorsRequest) MarshalToSizedBuffer

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

func (*QueryDistributorsRequest) ProtoMessage

func (*QueryDistributorsRequest) ProtoMessage()

func (*QueryDistributorsRequest) Reset

func (m *QueryDistributorsRequest) Reset()

func (*QueryDistributorsRequest) Size

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

func (*QueryDistributorsRequest) String

func (m *QueryDistributorsRequest) String() string

func (*QueryDistributorsRequest) Unmarshal

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

func (*QueryDistributorsRequest) XXX_DiscardUnknown

func (m *QueryDistributorsRequest) XXX_DiscardUnknown()

func (*QueryDistributorsRequest) XXX_Marshal

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

func (*QueryDistributorsRequest) XXX_Merge

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

func (*QueryDistributorsRequest) XXX_Size

func (m *QueryDistributorsRequest) XXX_Size() int

func (*QueryDistributorsRequest) XXX_Unmarshal

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

type QueryDistributorsResponse

type QueryDistributorsResponse struct {
	// distributors contains all the queried distributors.
	Distributors []DistributorInfo `protobuf:"bytes,1,rep,name=distributors,proto3" json:"distributors"`
}

QueryDistributorsResponse is response type for the Query/Distributors RPC method

func (*QueryDistributorsResponse) Descriptor

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

func (*QueryDistributorsResponse) GetDistributors

func (m *QueryDistributorsResponse) GetDistributors() []DistributorInfo

func (*QueryDistributorsResponse) Marshal

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

func (*QueryDistributorsResponse) MarshalTo

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

func (*QueryDistributorsResponse) MarshalToSizedBuffer

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

func (*QueryDistributorsResponse) ProtoMessage

func (*QueryDistributorsResponse) ProtoMessage()

func (*QueryDistributorsResponse) Reset

func (m *QueryDistributorsResponse) Reset()

func (*QueryDistributorsResponse) Size

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

func (*QueryDistributorsResponse) String

func (m *QueryDistributorsResponse) String() string

func (*QueryDistributorsResponse) Unmarshal

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

func (*QueryDistributorsResponse) XXX_DiscardUnknown

func (m *QueryDistributorsResponse) XXX_DiscardUnknown()

func (*QueryDistributorsResponse) XXX_Marshal

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

func (*QueryDistributorsResponse) XXX_Merge

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

func (*QueryDistributorsResponse) XXX_Size

func (m *QueryDistributorsResponse) XXX_Size() int

func (*QueryDistributorsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Distributors info for all distributors
	Distributors(context.Context, *QueryDistributorsRequest) (*QueryDistributorsResponse, error)
	// Distributor info for given distributor address.
	Distributor(context.Context, *QueryDistributorRequest) (*QueryDistributorResponse, error)
	// Admins info for all admins
	Admins(context.Context, *QueryAdminsRequest) (*QueryAdminsResponse, error)
	// Admin info for given admin address.
	Admin(context.Context, *QueryAdminRequest) (*QueryAdminResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddAdmin

func (*UnimplementedMsgServer) AddDistributor

func (*UnimplementedMsgServer) RemoveAdmin

func (*UnimplementedMsgServer) RemoveDistributor

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Admin

func (*UnimplementedQueryServer) Admins

func (*UnimplementedQueryServer) Distributor

func (*UnimplementedQueryServer) Distributors

Jump to

Keyboard shortcuts

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