types

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: GPL-3.0 Imports: 29 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 = "addressbook"

	// 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_addressbook"
)
View Source
const (
	TypeMsgCreateAddress = "create_address"
	TypeMsgUpdateAddress = "update_address"
	TypeMsgDeleteAddress = "delete_address"

	MinNetworkLength = 1
	MaxNetworkLength = 256
	MinLabelLength   = 1
	MaxLabelLength   = 256
	MinValueLength   = 1
	MaxValueLength   = 256
)
View Source
const (
	// AddressKeyPrefix is the prefix to retrieve all Address
	AddressKeyPrefix = "Address/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	ErrInvalidLengthAddress        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAddress          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAddress = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidNetwork   = sdkerrors.Register(ModuleName, 1100, "invalid network")
	ErrInvalidLabel     = sdkerrors.Register(ModuleName, 1101, "invalid label")
	ErrKeyAlreadyExists = sdkerrors.Register(ModuleName, 1102, "key already exist")
	ErrKeyNotFound      = sdkerrors.Register(ModuleName, 1103, "key not found")
	ErrInvalidValue     = sdkerrors.Register(ModuleName, 1104, "invalid value")
)

x/addressbook 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 (
	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 (
	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 AddressKey

func AddressKey(owner, network, label string) []byte

AddressKey returns the store key to retrieve a Address from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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)

Types

type AccountKeeper

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

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

type Address

type Address struct {
	Network string `protobuf:"bytes,1,opt,name=network,proto3" json:"network,omitempty"`
	Label   string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	Value   string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	Creator string `protobuf:"bytes,4,opt,name=creator,proto3" json:"creator,omitempty"`
}

func (*Address) Descriptor

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

func (*Address) GetCreator

func (m *Address) GetCreator() string

func (*Address) GetLabel

func (m *Address) GetLabel() string

func (*Address) GetNetwork

func (m *Address) GetNetwork() string

func (*Address) GetValue

func (m *Address) GetValue() string

func (*Address) Marshal

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

func (*Address) MarshalTo

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

func (*Address) MarshalToSizedBuffer

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

func (*Address) ProtoMessage

func (*Address) ProtoMessage()

func (*Address) Reset

func (m *Address) Reset()

func (*Address) Size

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

func (*Address) String

func (m *Address) String() string

func (*Address) Unmarshal

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

func (*Address) XXX_DiscardUnknown

func (m *Address) XXX_DiscardUnknown()

func (*Address) XXX_Marshal

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

func (*Address) XXX_Merge

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

func (*Address) XXX_Size

func (m *Address) XXX_Size() int

func (*Address) XXX_Unmarshal

func (m *Address) 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 GenesisState

type GenesisState struct {
	Params      Params    `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	AddressList []Address `protobuf:"bytes,2,rep,name=addressList,proto3" json:"addressList"`
}

GenesisState defines the addressbook 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) GetAddressList

func (m *GenesisState) GetAddressList() []Address

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 {
	CreateAddress(ctx context.Context, in *MsgCreateAddress, opts ...grpc.CallOption) (*MsgCreateAddressResponse, error)
	UpdateAddress(ctx context.Context, in *MsgUpdateAddress, opts ...grpc.CallOption) (*MsgUpdateAddressResponse, error)
	DeleteAddress(ctx context.Context, in *MsgDeleteAddress, opts ...grpc.CallOption) (*MsgDeleteAddressResponse, 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 MsgCreateAddress

type MsgCreateAddress struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Label   string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	Value   string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
}

func NewMsgCreateAddress

func NewMsgCreateAddress(creator, network, label, value string) *MsgCreateAddress

func (*MsgCreateAddress) Descriptor

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

func (*MsgCreateAddress) GetCreator

func (m *MsgCreateAddress) GetCreator() string

func (*MsgCreateAddress) GetLabel

func (m *MsgCreateAddress) GetLabel() string

func (*MsgCreateAddress) GetNetwork

func (m *MsgCreateAddress) GetNetwork() string

func (*MsgCreateAddress) GetSignBytes

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

func (*MsgCreateAddress) GetSigners

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

func (*MsgCreateAddress) GetValue

func (m *MsgCreateAddress) GetValue() string

func (*MsgCreateAddress) Marshal

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

func (*MsgCreateAddress) MarshalTo

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

func (*MsgCreateAddress) MarshalToSizedBuffer

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

func (*MsgCreateAddress) ProtoMessage

func (*MsgCreateAddress) ProtoMessage()

func (*MsgCreateAddress) Reset

func (m *MsgCreateAddress) Reset()

func (*MsgCreateAddress) Route

func (msg *MsgCreateAddress) Route() string

func (*MsgCreateAddress) Size

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

func (*MsgCreateAddress) String

func (m *MsgCreateAddress) String() string

func (*MsgCreateAddress) Type

func (msg *MsgCreateAddress) Type() string

func (*MsgCreateAddress) Unmarshal

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

func (*MsgCreateAddress) ValidateBasic

func (msg *MsgCreateAddress) ValidateBasic() error

func (*MsgCreateAddress) XXX_DiscardUnknown

func (m *MsgCreateAddress) XXX_DiscardUnknown()

func (*MsgCreateAddress) XXX_Marshal

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

func (*MsgCreateAddress) XXX_Merge

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

func (*MsgCreateAddress) XXX_Size

func (m *MsgCreateAddress) XXX_Size() int

func (*MsgCreateAddress) XXX_Unmarshal

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

type MsgCreateAddressResponse

type MsgCreateAddressResponse struct {
}

func (*MsgCreateAddressResponse) Descriptor

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

func (*MsgCreateAddressResponse) Marshal

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

func (*MsgCreateAddressResponse) MarshalTo

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

func (*MsgCreateAddressResponse) MarshalToSizedBuffer

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

func (*MsgCreateAddressResponse) ProtoMessage

func (*MsgCreateAddressResponse) ProtoMessage()

func (*MsgCreateAddressResponse) Reset

func (m *MsgCreateAddressResponse) Reset()

func (*MsgCreateAddressResponse) Size

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

func (*MsgCreateAddressResponse) String

func (m *MsgCreateAddressResponse) String() string

func (*MsgCreateAddressResponse) Unmarshal

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

func (*MsgCreateAddressResponse) XXX_DiscardUnknown

func (m *MsgCreateAddressResponse) XXX_DiscardUnknown()

func (*MsgCreateAddressResponse) XXX_Marshal

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

func (*MsgCreateAddressResponse) XXX_Merge

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

func (*MsgCreateAddressResponse) XXX_Size

func (m *MsgCreateAddressResponse) XXX_Size() int

func (*MsgCreateAddressResponse) XXX_Unmarshal

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

type MsgDeleteAddress

type MsgDeleteAddress struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Label   string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
}

func NewMsgDeleteAddress

func NewMsgDeleteAddress(creator, network, label string) *MsgDeleteAddress

func (*MsgDeleteAddress) Descriptor

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

func (*MsgDeleteAddress) GetCreator

func (m *MsgDeleteAddress) GetCreator() string

func (*MsgDeleteAddress) GetLabel

func (m *MsgDeleteAddress) GetLabel() string

func (*MsgDeleteAddress) GetNetwork

func (m *MsgDeleteAddress) GetNetwork() string

func (*MsgDeleteAddress) GetSignBytes

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

func (*MsgDeleteAddress) GetSigners

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

func (*MsgDeleteAddress) Marshal

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

func (*MsgDeleteAddress) MarshalTo

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

func (*MsgDeleteAddress) MarshalToSizedBuffer

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

func (*MsgDeleteAddress) ProtoMessage

func (*MsgDeleteAddress) ProtoMessage()

func (*MsgDeleteAddress) Reset

func (m *MsgDeleteAddress) Reset()

func (*MsgDeleteAddress) Route

func (msg *MsgDeleteAddress) Route() string

func (*MsgDeleteAddress) Size

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

func (*MsgDeleteAddress) String

func (m *MsgDeleteAddress) String() string

func (*MsgDeleteAddress) Type

func (msg *MsgDeleteAddress) Type() string

func (*MsgDeleteAddress) Unmarshal

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

func (*MsgDeleteAddress) ValidateBasic

func (msg *MsgDeleteAddress) ValidateBasic() error

func (*MsgDeleteAddress) XXX_DiscardUnknown

func (m *MsgDeleteAddress) XXX_DiscardUnknown()

func (*MsgDeleteAddress) XXX_Marshal

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

func (*MsgDeleteAddress) XXX_Merge

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

func (*MsgDeleteAddress) XXX_Size

func (m *MsgDeleteAddress) XXX_Size() int

func (*MsgDeleteAddress) XXX_Unmarshal

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

type MsgDeleteAddressResponse

type MsgDeleteAddressResponse struct {
}

func (*MsgDeleteAddressResponse) Descriptor

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

func (*MsgDeleteAddressResponse) Marshal

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

func (*MsgDeleteAddressResponse) MarshalTo

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

func (*MsgDeleteAddressResponse) MarshalToSizedBuffer

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

func (*MsgDeleteAddressResponse) ProtoMessage

func (*MsgDeleteAddressResponse) ProtoMessage()

func (*MsgDeleteAddressResponse) Reset

func (m *MsgDeleteAddressResponse) Reset()

func (*MsgDeleteAddressResponse) Size

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

func (*MsgDeleteAddressResponse) String

func (m *MsgDeleteAddressResponse) String() string

func (*MsgDeleteAddressResponse) Unmarshal

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

func (*MsgDeleteAddressResponse) XXX_DiscardUnknown

func (m *MsgDeleteAddressResponse) XXX_DiscardUnknown()

func (*MsgDeleteAddressResponse) XXX_Marshal

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

func (*MsgDeleteAddressResponse) XXX_Merge

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

func (*MsgDeleteAddressResponse) XXX_Size

func (m *MsgDeleteAddressResponse) XXX_Size() int

func (*MsgDeleteAddressResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgUpdateAddress

type MsgUpdateAddress struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Label   string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
	Value   string `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`
}

func NewMsgUpdateAddress

func NewMsgUpdateAddress(creator, network, label, value string) *MsgUpdateAddress

func (*MsgUpdateAddress) Descriptor

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

func (*MsgUpdateAddress) GetCreator

func (m *MsgUpdateAddress) GetCreator() string

func (*MsgUpdateAddress) GetLabel

func (m *MsgUpdateAddress) GetLabel() string

func (*MsgUpdateAddress) GetNetwork

func (m *MsgUpdateAddress) GetNetwork() string

func (*MsgUpdateAddress) GetSignBytes

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

func (*MsgUpdateAddress) GetSigners

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

func (*MsgUpdateAddress) GetValue

func (m *MsgUpdateAddress) GetValue() string

func (*MsgUpdateAddress) Marshal

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

func (*MsgUpdateAddress) MarshalTo

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

func (*MsgUpdateAddress) MarshalToSizedBuffer

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

func (*MsgUpdateAddress) ProtoMessage

func (*MsgUpdateAddress) ProtoMessage()

func (*MsgUpdateAddress) Reset

func (m *MsgUpdateAddress) Reset()

func (*MsgUpdateAddress) Route

func (msg *MsgUpdateAddress) Route() string

func (*MsgUpdateAddress) Size

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

func (*MsgUpdateAddress) String

func (m *MsgUpdateAddress) String() string

func (*MsgUpdateAddress) Type

func (msg *MsgUpdateAddress) Type() string

func (*MsgUpdateAddress) Unmarshal

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

func (*MsgUpdateAddress) ValidateBasic

func (msg *MsgUpdateAddress) ValidateBasic() error

func (*MsgUpdateAddress) XXX_DiscardUnknown

func (m *MsgUpdateAddress) XXX_DiscardUnknown()

func (*MsgUpdateAddress) XXX_Marshal

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

func (*MsgUpdateAddress) XXX_Merge

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

func (*MsgUpdateAddress) XXX_Size

func (m *MsgUpdateAddress) XXX_Size() int

func (*MsgUpdateAddress) XXX_Unmarshal

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

type MsgUpdateAddressResponse

type MsgUpdateAddressResponse struct {
}

func (*MsgUpdateAddressResponse) Descriptor

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

func (*MsgUpdateAddressResponse) Marshal

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

func (*MsgUpdateAddressResponse) MarshalTo

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

func (*MsgUpdateAddressResponse) MarshalToSizedBuffer

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

func (*MsgUpdateAddressResponse) ProtoMessage

func (*MsgUpdateAddressResponse) ProtoMessage()

func (*MsgUpdateAddressResponse) Reset

func (m *MsgUpdateAddressResponse) Reset()

func (*MsgUpdateAddressResponse) Size

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

func (*MsgUpdateAddressResponse) String

func (m *MsgUpdateAddressResponse) String() string

func (*MsgUpdateAddressResponse) Unmarshal

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

func (*MsgUpdateAddressResponse) XXX_DiscardUnknown

func (m *MsgUpdateAddressResponse) XXX_DiscardUnknown()

func (*MsgUpdateAddressResponse) XXX_Marshal

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

func (*MsgUpdateAddressResponse) XXX_Merge

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

func (*MsgUpdateAddressResponse) XXX_Size

func (m *MsgUpdateAddressResponse) XXX_Size() int

func (*MsgUpdateAddressResponse) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String 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 QueryAllAddressRequest

type QueryAllAddressRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAddressRequest) Descriptor

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

func (*QueryAllAddressRequest) GetPagination

func (m *QueryAllAddressRequest) GetPagination() *query.PageRequest

func (*QueryAllAddressRequest) Marshal

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

func (*QueryAllAddressRequest) MarshalTo

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

func (*QueryAllAddressRequest) MarshalToSizedBuffer

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

func (*QueryAllAddressRequest) ProtoMessage

func (*QueryAllAddressRequest) ProtoMessage()

func (*QueryAllAddressRequest) Reset

func (m *QueryAllAddressRequest) Reset()

func (*QueryAllAddressRequest) Size

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

func (*QueryAllAddressRequest) String

func (m *QueryAllAddressRequest) String() string

func (*QueryAllAddressRequest) Unmarshal

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

func (*QueryAllAddressRequest) XXX_DiscardUnknown

func (m *QueryAllAddressRequest) XXX_DiscardUnknown()

func (*QueryAllAddressRequest) XXX_Marshal

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

func (*QueryAllAddressRequest) XXX_Merge

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

func (*QueryAllAddressRequest) XXX_Size

func (m *QueryAllAddressRequest) XXX_Size() int

func (*QueryAllAddressRequest) XXX_Unmarshal

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

type QueryAllAddressResponse

type QueryAllAddressResponse struct {
	Address    []Address           `protobuf:"bytes,1,rep,name=address,proto3" json:"address"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllAddressResponse) Descriptor

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

func (*QueryAllAddressResponse) GetAddress

func (m *QueryAllAddressResponse) GetAddress() []Address

func (*QueryAllAddressResponse) GetPagination

func (m *QueryAllAddressResponse) GetPagination() *query.PageResponse

func (*QueryAllAddressResponse) Marshal

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

func (*QueryAllAddressResponse) MarshalTo

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

func (*QueryAllAddressResponse) MarshalToSizedBuffer

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

func (*QueryAllAddressResponse) ProtoMessage

func (*QueryAllAddressResponse) ProtoMessage()

func (*QueryAllAddressResponse) Reset

func (m *QueryAllAddressResponse) Reset()

func (*QueryAllAddressResponse) Size

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

func (*QueryAllAddressResponse) String

func (m *QueryAllAddressResponse) String() string

func (*QueryAllAddressResponse) Unmarshal

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

func (*QueryAllAddressResponse) XXX_DiscardUnknown

func (m *QueryAllAddressResponse) XXX_DiscardUnknown()

func (*QueryAllAddressResponse) XXX_Marshal

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

func (*QueryAllAddressResponse) XXX_Merge

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

func (*QueryAllAddressResponse) XXX_Size

func (m *QueryAllAddressResponse) XXX_Size() int

func (*QueryAllAddressResponse) XXX_Unmarshal

func (m *QueryAllAddressResponse) 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 Address by owner, network and label.
	Address(ctx context.Context, in *QueryGetAddressRequest, opts ...grpc.CallOption) (*QueryGetAddressResponse, error)
	// Queries a list of Address items.
	AddressAll(ctx context.Context, in *QueryAllAddressRequest, opts ...grpc.CallOption) (*QueryAllAddressResponse, 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 QueryGetAddressRequest

type QueryGetAddressRequest struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Network string `protobuf:"bytes,2,opt,name=network,proto3" json:"network,omitempty"`
	Label   string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`
}

func (*QueryGetAddressRequest) Descriptor

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

func (*QueryGetAddressRequest) GetCreator

func (m *QueryGetAddressRequest) GetCreator() string

func (*QueryGetAddressRequest) GetLabel

func (m *QueryGetAddressRequest) GetLabel() string

func (*QueryGetAddressRequest) GetNetwork

func (m *QueryGetAddressRequest) GetNetwork() string

func (*QueryGetAddressRequest) Marshal

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

func (*QueryGetAddressRequest) MarshalTo

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

func (*QueryGetAddressRequest) MarshalToSizedBuffer

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

func (*QueryGetAddressRequest) ProtoMessage

func (*QueryGetAddressRequest) ProtoMessage()

func (*QueryGetAddressRequest) Reset

func (m *QueryGetAddressRequest) Reset()

func (*QueryGetAddressRequest) Size

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

func (*QueryGetAddressRequest) String

func (m *QueryGetAddressRequest) String() string

func (*QueryGetAddressRequest) Unmarshal

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

func (*QueryGetAddressRequest) XXX_DiscardUnknown

func (m *QueryGetAddressRequest) XXX_DiscardUnknown()

func (*QueryGetAddressRequest) XXX_Marshal

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

func (*QueryGetAddressRequest) XXX_Merge

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

func (*QueryGetAddressRequest) XXX_Size

func (m *QueryGetAddressRequest) XXX_Size() int

func (*QueryGetAddressRequest) XXX_Unmarshal

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

type QueryGetAddressResponse

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

func (*QueryGetAddressResponse) Descriptor

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

func (*QueryGetAddressResponse) GetAddress

func (m *QueryGetAddressResponse) GetAddress() Address

func (*QueryGetAddressResponse) Marshal

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

func (*QueryGetAddressResponse) MarshalTo

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

func (*QueryGetAddressResponse) MarshalToSizedBuffer

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

func (*QueryGetAddressResponse) ProtoMessage

func (*QueryGetAddressResponse) ProtoMessage()

func (*QueryGetAddressResponse) Reset

func (m *QueryGetAddressResponse) Reset()

func (*QueryGetAddressResponse) Size

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

func (*QueryGetAddressResponse) String

func (m *QueryGetAddressResponse) String() string

func (*QueryGetAddressResponse) Unmarshal

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

func (*QueryGetAddressResponse) XXX_DiscardUnknown

func (m *QueryGetAddressResponse) XXX_DiscardUnknown()

func (*QueryGetAddressResponse) XXX_Marshal

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

func (*QueryGetAddressResponse) XXX_Merge

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

func (*QueryGetAddressResponse) XXX_Size

func (m *QueryGetAddressResponse) XXX_Size() int

func (*QueryGetAddressResponse) XXX_Unmarshal

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

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 Address by owner, network and label.
	Address(context.Context, *QueryGetAddressRequest) (*QueryGetAddressResponse, error)
	// Queries a list of Address items.
	AddressAll(context.Context, *QueryAllAddressRequest) (*QueryAllAddressResponse, 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) CreateAddress

func (*UnimplementedMsgServer) DeleteAddress

func (*UnimplementedMsgServer) UpdateAddress

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Address

func (*UnimplementedQueryServer) AddressAll

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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