Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AccountAttributeKey(acc sdk.AccAddress, attr Attribute) []byte
- func AccountAttributesKeyPrefix(acc sdk.AccAddress) []byte
- func AccountAttributesNameKeyPrefix(acc sdk.AccAddress, attributeName string) []byte
- func GetNameKeyBytes(name string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SplitAccountAttributeKey(key []byte) (addr sdk.AccAddress, nameID []byte, valueID []byte)
- func ValidAttributeType(attributeType AttributeType) bool
- type AccountKeeper
- type Attribute
- func (*Attribute) Descriptor() ([]byte, []int)
- func (m *Attribute) GetAddress() string
- func (m *Attribute) GetAttributeType() AttributeType
- func (m *Attribute) GetName() string
- func (m *Attribute) GetValue() []byte
- func (a Attribute) Hash() []byte
- func (m *Attribute) Marshal() (dAtA []byte, err error)
- func (m *Attribute) MarshalTo(dAtA []byte) (int, error)
- func (m *Attribute) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Attribute) ProtoMessage()
- func (m *Attribute) Reset()
- func (m *Attribute) Size() (n int)
- func (a Attribute) String() string
- func (m *Attribute) Unmarshal(dAtA []byte) error
- func (a Attribute) ValidateBasic() error
- func (m *Attribute) XXX_DiscardUnknown()
- func (m *Attribute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Attribute) XXX_Merge(src proto.Message)
- func (m *Attribute) XXX_Size() int
- func (m *Attribute) XXX_Unmarshal(b []byte) error
- type AttributeType
- type EventAttributeAdd
- func (*EventAttributeAdd) Descriptor() ([]byte, []int)
- func (m *EventAttributeAdd) GetAccount() string
- func (m *EventAttributeAdd) GetName() string
- func (m *EventAttributeAdd) GetOwner() string
- func (m *EventAttributeAdd) GetType() string
- func (m *EventAttributeAdd) GetValue() string
- func (m *EventAttributeAdd) Marshal() (dAtA []byte, err error)
- func (m *EventAttributeAdd) MarshalTo(dAtA []byte) (int, error)
- func (m *EventAttributeAdd) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventAttributeAdd) ProtoMessage()
- func (m *EventAttributeAdd) Reset()
- func (m *EventAttributeAdd) Size() (n int)
- func (m *EventAttributeAdd) String() string
- func (m *EventAttributeAdd) Unmarshal(dAtA []byte) error
- func (m *EventAttributeAdd) XXX_DiscardUnknown()
- func (m *EventAttributeAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventAttributeAdd) XXX_Merge(src proto.Message)
- func (m *EventAttributeAdd) XXX_Size() int
- func (m *EventAttributeAdd) XXX_Unmarshal(b []byte) error
- type EventAttributeDelete
- func (*EventAttributeDelete) Descriptor() ([]byte, []int)
- func (m *EventAttributeDelete) GetAccount() string
- func (m *EventAttributeDelete) GetName() string
- func (m *EventAttributeDelete) GetOwner() string
- func (m *EventAttributeDelete) Marshal() (dAtA []byte, err error)
- func (m *EventAttributeDelete) MarshalTo(dAtA []byte) (int, error)
- func (m *EventAttributeDelete) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventAttributeDelete) ProtoMessage()
- func (m *EventAttributeDelete) Reset()
- func (m *EventAttributeDelete) Size() (n int)
- func (m *EventAttributeDelete) String() string
- func (m *EventAttributeDelete) Unmarshal(dAtA []byte) error
- func (m *EventAttributeDelete) XXX_DiscardUnknown()
- func (m *EventAttributeDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventAttributeDelete) XXX_Merge(src proto.Message)
- func (m *EventAttributeDelete) XXX_Size() int
- func (m *EventAttributeDelete) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (state GenesisState) ValidateBasic() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgAddAttributeRequest
- func (*MsgAddAttributeRequest) Descriptor() ([]byte, []int)
- func (msg MsgAddAttributeRequest) GetSignBytes() []byte
- func (msg MsgAddAttributeRequest) GetSigners() []sdk.AccAddress
- func (m *MsgAddAttributeRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgAddAttributeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddAttributeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddAttributeRequest) ProtoMessage()
- func (m *MsgAddAttributeRequest) Reset()
- func (msg MsgAddAttributeRequest) Route() string
- func (m *MsgAddAttributeRequest) Size() (n int)
- func (msg MsgAddAttributeRequest) String() string
- func (msg MsgAddAttributeRequest) Type() string
- func (m *MsgAddAttributeRequest) Unmarshal(dAtA []byte) error
- func (msg MsgAddAttributeRequest) ValidateBasic() error
- func (m *MsgAddAttributeRequest) XXX_DiscardUnknown()
- func (m *MsgAddAttributeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddAttributeRequest) XXX_Merge(src proto.Message)
- func (m *MsgAddAttributeRequest) XXX_Size() int
- func (m *MsgAddAttributeRequest) XXX_Unmarshal(b []byte) error
- type MsgAddAttributeResponse
- func (*MsgAddAttributeResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddAttributeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddAttributeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddAttributeResponse) ProtoMessage()
- func (m *MsgAddAttributeResponse) Reset()
- func (m *MsgAddAttributeResponse) Size() (n int)
- func (m *MsgAddAttributeResponse) String() string
- func (m *MsgAddAttributeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddAttributeResponse) XXX_DiscardUnknown()
- func (m *MsgAddAttributeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddAttributeResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddAttributeResponse) XXX_Size() int
- func (m *MsgAddAttributeResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDeleteAttributeRequest
- func (*MsgDeleteAttributeRequest) Descriptor() ([]byte, []int)
- func (msg MsgDeleteAttributeRequest) GetSignBytes() []byte
- func (msg MsgDeleteAttributeRequest) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteAttributeRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteAttributeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteAttributeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteAttributeRequest) ProtoMessage()
- func (m *MsgDeleteAttributeRequest) Reset()
- func (msg MsgDeleteAttributeRequest) Route() string
- func (m *MsgDeleteAttributeRequest) Size() (n int)
- func (msg MsgDeleteAttributeRequest) String() string
- func (msg MsgDeleteAttributeRequest) Type() string
- func (m *MsgDeleteAttributeRequest) Unmarshal(dAtA []byte) error
- func (msg MsgDeleteAttributeRequest) ValidateBasic() error
- func (m *MsgDeleteAttributeRequest) XXX_DiscardUnknown()
- func (m *MsgDeleteAttributeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteAttributeRequest) XXX_Merge(src proto.Message)
- func (m *MsgDeleteAttributeRequest) XXX_Size() int
- func (m *MsgDeleteAttributeRequest) XXX_Unmarshal(b []byte) error
- type MsgDeleteAttributeResponse
- func (*MsgDeleteAttributeResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteAttributeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteAttributeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteAttributeResponse) ProtoMessage()
- func (m *MsgDeleteAttributeResponse) Reset()
- func (m *MsgDeleteAttributeResponse) Size() (n int)
- func (m *MsgDeleteAttributeResponse) String() string
- func (m *MsgDeleteAttributeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteAttributeResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteAttributeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteAttributeResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteAttributeResponse) XXX_Size() int
- func (m *MsgDeleteAttributeResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type NameKeeper
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMaxValueLength() uint32
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (params *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (params Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAttributeRequest
- func (*QueryAttributeRequest) Descriptor() ([]byte, []int)
- func (m *QueryAttributeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAttributeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAttributeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAttributeRequest) ProtoMessage()
- func (m *QueryAttributeRequest) Reset()
- func (m *QueryAttributeRequest) Size() (n int)
- func (m *QueryAttributeRequest) String() string
- func (m *QueryAttributeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAttributeRequest) XXX_DiscardUnknown()
- func (m *QueryAttributeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAttributeRequest) XXX_Merge(src proto.Message)
- func (m *QueryAttributeRequest) XXX_Size() int
- func (m *QueryAttributeRequest) XXX_Unmarshal(b []byte) error
- type QueryAttributeResponse
- func (*QueryAttributeResponse) Descriptor() ([]byte, []int)
- func (m *QueryAttributeResponse) GetAccount() string
- func (m *QueryAttributeResponse) GetAttributes() []Attribute
- func (m *QueryAttributeResponse) GetPagination() *query.PageResponse
- func (m *QueryAttributeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAttributeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAttributeResponse) ProtoMessage()
- func (m *QueryAttributeResponse) Reset()
- func (m *QueryAttributeResponse) Size() (n int)
- func (m *QueryAttributeResponse) String() string
- func (m *QueryAttributeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAttributeResponse) XXX_DiscardUnknown()
- func (m *QueryAttributeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAttributeResponse) XXX_Merge(src proto.Message)
- func (m *QueryAttributeResponse) XXX_Size() int
- func (m *QueryAttributeResponse) XXX_Unmarshal(b []byte) error
- type QueryAttributesRequest
- func (*QueryAttributesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAttributesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAttributesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAttributesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAttributesRequest) ProtoMessage()
- func (m *QueryAttributesRequest) Reset()
- func (m *QueryAttributesRequest) Size() (n int)
- func (m *QueryAttributesRequest) String() string
- func (m *QueryAttributesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAttributesRequest) XXX_DiscardUnknown()
- func (m *QueryAttributesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAttributesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAttributesRequest) XXX_Size() int
- func (m *QueryAttributesRequest) XXX_Unmarshal(b []byte) error
- type QueryAttributesResponse
- func (*QueryAttributesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAttributesResponse) GetAccount() string
- func (m *QueryAttributesResponse) GetAttributes() []Attribute
- func (m *QueryAttributesResponse) GetPagination() *query.PageResponse
- func (m *QueryAttributesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAttributesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAttributesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAttributesResponse) ProtoMessage()
- func (m *QueryAttributesResponse) Reset()
- func (m *QueryAttributesResponse) Size() (n int)
- func (m *QueryAttributesResponse) String() string
- func (m *QueryAttributesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAttributesResponse) XXX_DiscardUnknown()
- func (m *QueryAttributesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAttributesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAttributesResponse) XXX_Size() int
- func (m *QueryAttributesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryScanRequest
- func (*QueryScanRequest) Descriptor() ([]byte, []int)
- func (m *QueryScanRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryScanRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryScanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryScanRequest) ProtoMessage()
- func (m *QueryScanRequest) Reset()
- func (m *QueryScanRequest) Size() (n int)
- func (m *QueryScanRequest) String() string
- func (m *QueryScanRequest) Unmarshal(dAtA []byte) error
- func (m *QueryScanRequest) XXX_DiscardUnknown()
- func (m *QueryScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryScanRequest) XXX_Merge(src proto.Message)
- func (m *QueryScanRequest) XXX_Size() int
- func (m *QueryScanRequest) XXX_Unmarshal(b []byte) error
- type QueryScanResponse
- func (*QueryScanResponse) Descriptor() ([]byte, []int)
- func (m *QueryScanResponse) GetAccount() string
- func (m *QueryScanResponse) GetAttributes() []Attribute
- func (m *QueryScanResponse) GetPagination() *query.PageResponse
- func (m *QueryScanResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryScanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryScanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryScanResponse) ProtoMessage()
- func (m *QueryScanResponse) Reset()
- func (m *QueryScanResponse) Size() (n int)
- func (m *QueryScanResponse) String() string
- func (m *QueryScanResponse) Unmarshal(dAtA []byte) error
- func (m *QueryScanResponse) XXX_DiscardUnknown()
- func (m *QueryScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryScanResponse) XXX_Merge(src proto.Message)
- func (m *QueryScanResponse) XXX_Size() int
- func (m *QueryScanResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Attribute(ctx context.Context, req *QueryAttributeRequest) (*QueryAttributeResponse, error)
- func (*UnimplementedQueryServer) Attributes(ctx context.Context, req *QueryAttributesRequest) (*QueryAttributesResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Scan(ctx context.Context, req *QueryScanRequest) (*QueryScanResponse, error)
Constants ¶
const ( // The type of event generated when account attributes are added. EventTypeAttributeAdded string = "account_attribute_added" // The type of event generated when account attributes are removed. EventTypeAttributeDeleted string = "account_attribute_deleted" AttributeKeyAttribute string = "attribute" AttributeKeyNameAttribute string = "attribute_name" AttributeKeyAccountAddress string = "account_address" // EventTelemetryKeyAdd add telemetry metrics key EventTelemetryKeyAdd string = "add" // EventTelemetryKeyDelete delete telemetry metrics key EventTelemetryKeyDelete string = "delete" // EventTelemetryLabelName name telemetry metrics label EventTelemetryLabelName string = "name" // EventTelemetryLabelType type telemetry metrics label EventTelemetryLabelType string = "type" // EventTelemetryLabelOwner owner telemetry metrics label EventTelemetryLabelOwner string = "owner" // EventTelemetryKeyAccount acount telemetry metrics label EventTelemetryLabelAccount string = "account" // EventTelemetryKeyAccount size telemetry metrics label EventTelemetryLabelSize string = "size" )
const ( // ModuleName is the name of the module ModuleName = "attribute" // StoreKey is the store key string for account StoreKey = ModuleName // RouterKey is the message route for account RouterKey = ModuleName // QuerierRoute is the querier route for account QuerierRoute = ModuleName )
const ( TypeMsgAddAttribute = "add_attribute" TypeMsgDeleteAttribute = "delete_attribute" )
const ( QueryParams = "params" QueryAttribute = "attribute" QueryAttributes = "attributes" QueryScanAttributes = "scan" )
querier keys
const (
DefaultMaxValueLength = 10000
)
Default parameter namespace
Variables ¶
var ( ErrInvalidLengthAttribute = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAttribute = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAttribute = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // Legacy amino encoded objects use this key prefix AttributeKeyPrefixAmino = []byte{0x00} AttributeKeyPrefix = []byte{0x01} AttributeKeyLength = 1 + sdk.AddrLen + 32 + 32 // prefix length + address + name-hash + value-hash )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var AttributeType_name = map[int32]string{
0: "ATTRIBUTE_TYPE_UNSPECIFIED",
1: "ATTRIBUTE_TYPE_UUID",
2: "ATTRIBUTE_TYPE_JSON",
3: "ATTRIBUTE_TYPE_STRING",
4: "ATTRIBUTE_TYPE_URI",
5: "ATTRIBUTE_TYPE_INT",
6: "ATTRIBUTE_TYPE_FLOAT",
7: "ATTRIBUTE_TYPE_PROTO",
8: "ATTRIBUTE_TYPE_BYTES",
}
var AttributeType_value = map[string]int32{
"ATTRIBUTE_TYPE_UNSPECIFIED": 0,
"ATTRIBUTE_TYPE_UUID": 1,
"ATTRIBUTE_TYPE_JSON": 2,
"ATTRIBUTE_TYPE_STRING": 3,
"ATTRIBUTE_TYPE_URI": 4,
"ATTRIBUTE_TYPE_INT": 5,
"ATTRIBUTE_TYPE_FLOAT": 6,
"ATTRIBUTE_TYPE_PROTO": 7,
"ATTRIBUTE_TYPE_BYTES": 8,
}
var ( // ModuleCdc references the global x/attribute module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/attribute and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
var (
ParamStoreKeyMaxValueLength = []byte("MaxValueLength")
)
Parameter store keys
Functions ¶
func AccountAttributeKey ¶
func AccountAttributeKey(acc sdk.AccAddress, attr Attribute) []byte
AccountAttributeKey creates a key for an account attribute
func AccountAttributesKeyPrefix ¶
func AccountAttributesKeyPrefix(acc sdk.AccAddress) []byte
AccountAttributesKeyPrefix returns a prefix key for all attributes on an account
func AccountAttributesNameKeyPrefix ¶
func AccountAttributesNameKeyPrefix(acc sdk.AccAddress, attributeName string) []byte
AccountAttributesNameKeyPrefix returns a prefix key for all attributes with a given name on an account
func GetNameKeyBytes ¶
GetNameKeyBytes returns a set of bytes that uniquely identifies the given name
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers all the necessary types and interfaces for the account module.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 SplitAccountAttributeKey ¶
func SplitAccountAttributeKey(key []byte) (addr sdk.AccAddress, nameID []byte, valueID []byte)
func ValidAttributeType ¶
func ValidAttributeType(attributeType AttributeType) bool
ValidAttributeType returns true if the attribute type option is valid and false otherwise.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}
AccountKeeper defines the expected account keeper used for simulations (noalias)
type Attribute ¶
type Attribute struct { // The attribute name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The attribute value. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // The attribute value type. AttributeType AttributeType `` /* 144-byte string literal not displayed */ // The address the attribute is bound to Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` }
Attribute holds a typed key/value structure for data associated with an account
func NewAttribute ¶
func NewAttribute(name string, account sdk.AccAddress, attrType AttributeType, value []byte) Attribute
NewAttribute creates a new instance of an Attribute
func (*Attribute) Descriptor ¶
func (*Attribute) GetAddress ¶
func (*Attribute) GetAttributeType ¶
func (m *Attribute) GetAttributeType() AttributeType
func (*Attribute) MarshalToSizedBuffer ¶
func (*Attribute) ProtoMessage ¶
func (*Attribute) ProtoMessage()
func (Attribute) ValidateBasic ¶ added in v0.3.0
ValidateBascic ensures an attribute is valid.
func (*Attribute) XXX_DiscardUnknown ¶
func (m *Attribute) XXX_DiscardUnknown()
func (*Attribute) XXX_Marshal ¶
func (*Attribute) XXX_Unmarshal ¶
type AttributeType ¶
type AttributeType int32
AttributeType defines the type of the data stored in the attribute value
const ( // ATTRIBUTE_TYPE_UNSPECIFIED defines an unknown/invalid type AttributeType_Unspecified AttributeType = 0 // ATTRIBUTE_TYPE_UUID defines an attribute value that contains a string value representation of a V4 uuid AttributeType_UUID AttributeType = 1 // ATTRIBUTE_TYPE_JSON defines an attribute value that contains a byte string containing json data AttributeType_JSON AttributeType = 2 // ATTRIBUTE_TYPE_STRING defines an attribute value that contains a generic string value AttributeType_String AttributeType = 3 // ATTRIBUTE_TYPE_URI defines an attribute value that contains a URI AttributeType_Uri AttributeType = 4 // ATTRIBUTE_TYPE_INT defines an attribute value that contains an integer (cast as int64) AttributeType_Int AttributeType = 5 // ATTRIBUTE_TYPE_FLOAT defines an attribute value that contains a float AttributeType_Float AttributeType = 6 // ATTRIBUTE_TYPE_PROTO defines an attribute value that contains a serialized proto value in bytes AttributeType_Proto AttributeType = 7 // ATTRIBUTE_TYPE_BYTES defines an attribute value that contains an untyped array of bytes AttributeType_Bytes AttributeType = 8 )
func AttributeTypeFromString ¶
func AttributeTypeFromString(str string) (AttributeType, error)
AttributeTypeFromString returns a AttributeType from a string. It returns an error if the string is invalid.
func (AttributeType) EnumDescriptor ¶
func (AttributeType) EnumDescriptor() ([]byte, []int)
func (AttributeType) Format ¶
func (at AttributeType) Format(s fmt.State, verb rune)
Format implements the fmt.Formatter interface.
func (AttributeType) Marshal ¶
func (at AttributeType) Marshal() ([]byte, error)
Marshal needed for protobuf compatibility.
func (AttributeType) String ¶
func (x AttributeType) String() string
func (*AttributeType) Unmarshal ¶
func (at *AttributeType) Unmarshal(data []byte) error
Unmarshal needed for protobuf compatibility.
type EventAttributeAdd ¶ added in v1.3.0
type EventAttributeAdd struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` }
EventAttributeAdd event emitted when attribute is added
func NewEventAttributeAdd ¶ added in v1.3.0
func NewEventAttributeAdd(attribute Attribute, owner string) *EventAttributeAdd
func (*EventAttributeAdd) Descriptor ¶ added in v1.3.0
func (*EventAttributeAdd) Descriptor() ([]byte, []int)
func (*EventAttributeAdd) GetAccount ¶ added in v1.3.0
func (m *EventAttributeAdd) GetAccount() string
func (*EventAttributeAdd) GetName ¶ added in v1.3.0
func (m *EventAttributeAdd) GetName() string
func (*EventAttributeAdd) GetOwner ¶ added in v1.3.0
func (m *EventAttributeAdd) GetOwner() string
func (*EventAttributeAdd) GetType ¶ added in v1.3.0
func (m *EventAttributeAdd) GetType() string
func (*EventAttributeAdd) GetValue ¶ added in v1.3.0
func (m *EventAttributeAdd) GetValue() string
func (*EventAttributeAdd) Marshal ¶ added in v1.3.0
func (m *EventAttributeAdd) Marshal() (dAtA []byte, err error)
func (*EventAttributeAdd) MarshalTo ¶ added in v1.3.0
func (m *EventAttributeAdd) MarshalTo(dAtA []byte) (int, error)
func (*EventAttributeAdd) MarshalToSizedBuffer ¶ added in v1.3.0
func (m *EventAttributeAdd) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventAttributeAdd) ProtoMessage ¶ added in v1.3.0
func (*EventAttributeAdd) ProtoMessage()
func (*EventAttributeAdd) Reset ¶ added in v1.3.0
func (m *EventAttributeAdd) Reset()
func (*EventAttributeAdd) Size ¶ added in v1.3.0
func (m *EventAttributeAdd) Size() (n int)
func (*EventAttributeAdd) String ¶ added in v1.3.0
func (m *EventAttributeAdd) String() string
func (*EventAttributeAdd) Unmarshal ¶ added in v1.3.0
func (m *EventAttributeAdd) Unmarshal(dAtA []byte) error
func (*EventAttributeAdd) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *EventAttributeAdd) XXX_DiscardUnknown()
func (*EventAttributeAdd) XXX_Marshal ¶ added in v1.3.0
func (m *EventAttributeAdd) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventAttributeAdd) XXX_Merge ¶ added in v1.3.0
func (m *EventAttributeAdd) XXX_Merge(src proto.Message)
func (*EventAttributeAdd) XXX_Size ¶ added in v1.3.0
func (m *EventAttributeAdd) XXX_Size() int
func (*EventAttributeAdd) XXX_Unmarshal ¶ added in v1.3.0
func (m *EventAttributeAdd) XXX_Unmarshal(b []byte) error
type EventAttributeDelete ¶ added in v1.3.0
type EventAttributeDelete struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` }
EventAttributeDelete event emitted when attribute is deleted
func NewEventAttributeDelete ¶ added in v1.3.0
func NewEventAttributeDelete(name string, account string, owner string) *EventAttributeDelete
func (*EventAttributeDelete) Descriptor ¶ added in v1.3.0
func (*EventAttributeDelete) Descriptor() ([]byte, []int)
func (*EventAttributeDelete) GetAccount ¶ added in v1.3.0
func (m *EventAttributeDelete) GetAccount() string
func (*EventAttributeDelete) GetName ¶ added in v1.3.0
func (m *EventAttributeDelete) GetName() string
func (*EventAttributeDelete) GetOwner ¶ added in v1.3.0
func (m *EventAttributeDelete) GetOwner() string
func (*EventAttributeDelete) Marshal ¶ added in v1.3.0
func (m *EventAttributeDelete) Marshal() (dAtA []byte, err error)
func (*EventAttributeDelete) MarshalTo ¶ added in v1.3.0
func (m *EventAttributeDelete) MarshalTo(dAtA []byte) (int, error)
func (*EventAttributeDelete) MarshalToSizedBuffer ¶ added in v1.3.0
func (m *EventAttributeDelete) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventAttributeDelete) ProtoMessage ¶ added in v1.3.0
func (*EventAttributeDelete) ProtoMessage()
func (*EventAttributeDelete) Reset ¶ added in v1.3.0
func (m *EventAttributeDelete) Reset()
func (*EventAttributeDelete) Size ¶ added in v1.3.0
func (m *EventAttributeDelete) Size() (n int)
func (*EventAttributeDelete) String ¶ added in v1.3.0
func (m *EventAttributeDelete) String() string
func (*EventAttributeDelete) Unmarshal ¶ added in v1.3.0
func (m *EventAttributeDelete) Unmarshal(dAtA []byte) error
func (*EventAttributeDelete) XXX_DiscardUnknown ¶ added in v1.3.0
func (m *EventAttributeDelete) XXX_DiscardUnknown()
func (*EventAttributeDelete) XXX_Marshal ¶ added in v1.3.0
func (m *EventAttributeDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventAttributeDelete) XXX_Merge ¶ added in v1.3.0
func (m *EventAttributeDelete) XXX_Merge(src proto.Message)
func (*EventAttributeDelete) XXX_Size ¶ added in v1.3.0
func (m *EventAttributeDelete) XXX_Size() int
func (*EventAttributeDelete) XXX_Unmarshal ¶ added in v1.3.0
func (m *EventAttributeDelete) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // params defines all the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // deposits defines all the deposits present at genesis. Attributes []Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes"` }
GenesisState defines the attribute module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns the default module state at genesis.
func NewGenesisState ¶
func NewGenesisState(params Params, attributes []Attribute) *GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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) ValidateBasic ¶ added in v0.3.0
func (state GenesisState) ValidateBasic() error
ValidateBasic ensures a genesis state is valid.
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 MsgAddAttributeRequest ¶
type MsgAddAttributeRequest struct { // The attribute name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The attribute value. Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // The attribute value type. AttributeType AttributeType `` /* 144-byte string literal not displayed */ // The account to add the attribute to. Account string `protobuf:"bytes,4,opt,name=account,proto3" json:"account,omitempty"` // The address that the name must resolve to. Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgAddAttributeRequest defines an sdk.Msg type that is used to add a new attribute to an account Attributes may only be set in an account by the account that the attribute name resolves to.
func NewMsgAddAttributeRequest ¶
func NewMsgAddAttributeRequest(account sdk.AccAddress, owner sdk.AccAddress, name string, attributeType AttributeType, value []byte) *MsgAddAttributeRequest
NewMsgAddAttributeRequest creates a new add attribute message
func (*MsgAddAttributeRequest) Descriptor ¶
func (*MsgAddAttributeRequest) Descriptor() ([]byte, []int)
func (MsgAddAttributeRequest) GetSignBytes ¶
func (msg MsgAddAttributeRequest) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgAddAttributeRequest) GetSigners ¶
func (msg MsgAddAttributeRequest) GetSigners() []sdk.AccAddress
GetSigners indicates that the message must have been signed by the name owner.
func (*MsgAddAttributeRequest) Marshal ¶
func (m *MsgAddAttributeRequest) Marshal() (dAtA []byte, err error)
func (*MsgAddAttributeRequest) MarshalTo ¶
func (m *MsgAddAttributeRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddAttributeRequest) MarshalToSizedBuffer ¶
func (m *MsgAddAttributeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddAttributeRequest) ProtoMessage ¶
func (*MsgAddAttributeRequest) ProtoMessage()
func (*MsgAddAttributeRequest) Reset ¶
func (m *MsgAddAttributeRequest) Reset()
func (MsgAddAttributeRequest) Route ¶
func (msg MsgAddAttributeRequest) Route() string
Route returns the name of the module.
func (*MsgAddAttributeRequest) Size ¶
func (m *MsgAddAttributeRequest) Size() (n int)
func (MsgAddAttributeRequest) String ¶
func (msg MsgAddAttributeRequest) String() string
String implements stringer interface
func (MsgAddAttributeRequest) Type ¶
func (msg MsgAddAttributeRequest) Type() string
Type returns the message action.
func (*MsgAddAttributeRequest) Unmarshal ¶
func (m *MsgAddAttributeRequest) Unmarshal(dAtA []byte) error
func (MsgAddAttributeRequest) ValidateBasic ¶
func (msg MsgAddAttributeRequest) ValidateBasic() error
ValidateBasic runs stateless validation checks on the message.
func (*MsgAddAttributeRequest) XXX_DiscardUnknown ¶
func (m *MsgAddAttributeRequest) XXX_DiscardUnknown()
func (*MsgAddAttributeRequest) XXX_Marshal ¶
func (m *MsgAddAttributeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddAttributeRequest) XXX_Merge ¶
func (m *MsgAddAttributeRequest) XXX_Merge(src proto.Message)
func (*MsgAddAttributeRequest) XXX_Size ¶
func (m *MsgAddAttributeRequest) XXX_Size() int
func (*MsgAddAttributeRequest) XXX_Unmarshal ¶
func (m *MsgAddAttributeRequest) XXX_Unmarshal(b []byte) error
type MsgAddAttributeResponse ¶
type MsgAddAttributeResponse struct { }
MsgAddAttributeResponse defines the Msg/Vote response type.
func (*MsgAddAttributeResponse) Descriptor ¶
func (*MsgAddAttributeResponse) Descriptor() ([]byte, []int)
func (*MsgAddAttributeResponse) Marshal ¶
func (m *MsgAddAttributeResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddAttributeResponse) MarshalTo ¶
func (m *MsgAddAttributeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddAttributeResponse) MarshalToSizedBuffer ¶
func (m *MsgAddAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddAttributeResponse) ProtoMessage ¶
func (*MsgAddAttributeResponse) ProtoMessage()
func (*MsgAddAttributeResponse) Reset ¶
func (m *MsgAddAttributeResponse) Reset()
func (*MsgAddAttributeResponse) Size ¶
func (m *MsgAddAttributeResponse) Size() (n int)
func (*MsgAddAttributeResponse) String ¶
func (m *MsgAddAttributeResponse) String() string
func (*MsgAddAttributeResponse) Unmarshal ¶
func (m *MsgAddAttributeResponse) Unmarshal(dAtA []byte) error
func (*MsgAddAttributeResponse) XXX_DiscardUnknown ¶
func (m *MsgAddAttributeResponse) XXX_DiscardUnknown()
func (*MsgAddAttributeResponse) XXX_Marshal ¶
func (m *MsgAddAttributeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddAttributeResponse) XXX_Merge ¶
func (m *MsgAddAttributeResponse) XXX_Merge(src proto.Message)
func (*MsgAddAttributeResponse) XXX_Size ¶
func (m *MsgAddAttributeResponse) XXX_Size() int
func (*MsgAddAttributeResponse) XXX_Unmarshal ¶
func (m *MsgAddAttributeResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // AddAttribute defines a method to verify a particular invariance. AddAttribute(ctx context.Context, in *MsgAddAttributeRequest, opts ...grpc.CallOption) (*MsgAddAttributeResponse, error) // DeleteAttribute defines a method to verify a particular invariance. DeleteAttribute(ctx context.Context, in *MsgDeleteAttributeRequest, opts ...grpc.CallOption) (*MsgDeleteAttributeResponse, 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 MsgDeleteAttributeRequest ¶
type MsgDeleteAttributeRequest struct { // The attribute name. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The account to add the attribute to. Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"` // The address that the name must resolve to. Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgDeleteAttributeRequest defines a message to delete an attribute from an account Attributes may only be remove from an account by the account that the attribute name resolves to.
func NewMsgDeleteAttributeRequest ¶
func NewMsgDeleteAttributeRequest(account sdk.AccAddress, owner sdk.AccAddress, name string) *MsgDeleteAttributeRequest
NewMsgDeleteAttributeRequest creates a new add attribute message
func (*MsgDeleteAttributeRequest) Descriptor ¶
func (*MsgDeleteAttributeRequest) Descriptor() ([]byte, []int)
func (MsgDeleteAttributeRequest) GetSignBytes ¶
func (msg MsgDeleteAttributeRequest) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgDeleteAttributeRequest) GetSigners ¶
func (msg MsgDeleteAttributeRequest) GetSigners() []sdk.AccAddress
GetSigners indicates that the message must have been signed by the name owner.
func (*MsgDeleteAttributeRequest) Marshal ¶
func (m *MsgDeleteAttributeRequest) Marshal() (dAtA []byte, err error)
func (*MsgDeleteAttributeRequest) MarshalTo ¶
func (m *MsgDeleteAttributeRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteAttributeRequest) MarshalToSizedBuffer ¶
func (m *MsgDeleteAttributeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteAttributeRequest) ProtoMessage ¶
func (*MsgDeleteAttributeRequest) ProtoMessage()
func (*MsgDeleteAttributeRequest) Reset ¶
func (m *MsgDeleteAttributeRequest) Reset()
func (MsgDeleteAttributeRequest) Route ¶
func (msg MsgDeleteAttributeRequest) Route() string
Route returns the name of the module.
func (*MsgDeleteAttributeRequest) Size ¶
func (m *MsgDeleteAttributeRequest) Size() (n int)
func (MsgDeleteAttributeRequest) String ¶
func (msg MsgDeleteAttributeRequest) String() string
String implements stringer interface
func (MsgDeleteAttributeRequest) Type ¶
func (msg MsgDeleteAttributeRequest) Type() string
Type returns the message action.
func (*MsgDeleteAttributeRequest) Unmarshal ¶
func (m *MsgDeleteAttributeRequest) Unmarshal(dAtA []byte) error
func (MsgDeleteAttributeRequest) ValidateBasic ¶
func (msg MsgDeleteAttributeRequest) ValidateBasic() error
ValidateBasic runs stateless validation checks on the message.
func (*MsgDeleteAttributeRequest) XXX_DiscardUnknown ¶
func (m *MsgDeleteAttributeRequest) XXX_DiscardUnknown()
func (*MsgDeleteAttributeRequest) XXX_Marshal ¶
func (m *MsgDeleteAttributeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteAttributeRequest) XXX_Merge ¶
func (m *MsgDeleteAttributeRequest) XXX_Merge(src proto.Message)
func (*MsgDeleteAttributeRequest) XXX_Size ¶
func (m *MsgDeleteAttributeRequest) XXX_Size() int
func (*MsgDeleteAttributeRequest) XXX_Unmarshal ¶
func (m *MsgDeleteAttributeRequest) XXX_Unmarshal(b []byte) error
type MsgDeleteAttributeResponse ¶
type MsgDeleteAttributeResponse struct { }
MsgDeleteAttributeResponse defines the Msg/Vote response type.
func (*MsgDeleteAttributeResponse) Descriptor ¶
func (*MsgDeleteAttributeResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteAttributeResponse) Marshal ¶
func (m *MsgDeleteAttributeResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteAttributeResponse) MarshalTo ¶
func (m *MsgDeleteAttributeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteAttributeResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteAttributeResponse) ProtoMessage ¶
func (*MsgDeleteAttributeResponse) ProtoMessage()
func (*MsgDeleteAttributeResponse) Reset ¶
func (m *MsgDeleteAttributeResponse) Reset()
func (*MsgDeleteAttributeResponse) Size ¶
func (m *MsgDeleteAttributeResponse) Size() (n int)
func (*MsgDeleteAttributeResponse) String ¶
func (m *MsgDeleteAttributeResponse) String() string
func (*MsgDeleteAttributeResponse) Unmarshal ¶
func (m *MsgDeleteAttributeResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteAttributeResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteAttributeResponse) XXX_DiscardUnknown()
func (*MsgDeleteAttributeResponse) XXX_Marshal ¶
func (m *MsgDeleteAttributeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteAttributeResponse) XXX_Merge ¶
func (m *MsgDeleteAttributeResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteAttributeResponse) XXX_Size ¶
func (m *MsgDeleteAttributeResponse) XXX_Size() int
func (*MsgDeleteAttributeResponse) XXX_Unmarshal ¶
func (m *MsgDeleteAttributeResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // AddAttribute defines a method to verify a particular invariance. AddAttribute(context.Context, *MsgAddAttributeRequest) (*MsgAddAttributeResponse, error) // DeleteAttribute defines a method to verify a particular invariance. DeleteAttribute(context.Context, *MsgDeleteAttributeRequest) (*MsgDeleteAttributeResponse, error) }
MsgServer is the server API for Msg service.
type NameKeeper ¶
type NameKeeper interface { ResolvesTo(ctx sdk.Context, name string, addr sdk.AccAddress) bool Normalize(ctx sdk.Context, name string) (string, error) GetRecordByName(ctx sdk.Context, name string) (record *nametypes.NameRecord, err error) }
NameKeeper defines the expected account keeper used for simulations (noalias)
type Params ¶
type Params struct { // maximum length of data to allow in an attribute value MaxValueLength uint32 `protobuf:"varint,1,opt,name=max_value_length,json=maxValueLength,proto3" json:"max_value_length,omitempty"` }
Params defines the set of params for the attribute module.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams defines the parameters for this module
func (*Params) Descriptor ¶
func (*Params) GetMaxValueLength ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (params *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs - Implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryAttributeRequest ¶
type QueryAttributeRequest struct { // account defines the address to query for. Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // name is the attribute name to query for Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAttributeRequest is the request type for the Query/Attribute method.
func (*QueryAttributeRequest) Descriptor ¶
func (*QueryAttributeRequest) Descriptor() ([]byte, []int)
func (*QueryAttributeRequest) Marshal ¶
func (m *QueryAttributeRequest) Marshal() (dAtA []byte, err error)
func (*QueryAttributeRequest) MarshalTo ¶
func (m *QueryAttributeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAttributeRequest) MarshalToSizedBuffer ¶
func (m *QueryAttributeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAttributeRequest) ProtoMessage ¶
func (*QueryAttributeRequest) ProtoMessage()
func (*QueryAttributeRequest) Reset ¶
func (m *QueryAttributeRequest) Reset()
func (*QueryAttributeRequest) Size ¶
func (m *QueryAttributeRequest) Size() (n int)
func (*QueryAttributeRequest) String ¶
func (m *QueryAttributeRequest) String() string
func (*QueryAttributeRequest) Unmarshal ¶
func (m *QueryAttributeRequest) Unmarshal(dAtA []byte) error
func (*QueryAttributeRequest) XXX_DiscardUnknown ¶
func (m *QueryAttributeRequest) XXX_DiscardUnknown()
func (*QueryAttributeRequest) XXX_Marshal ¶
func (m *QueryAttributeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAttributeRequest) XXX_Merge ¶
func (m *QueryAttributeRequest) XXX_Merge(src proto.Message)
func (*QueryAttributeRequest) XXX_Size ¶
func (m *QueryAttributeRequest) XXX_Size() int
func (*QueryAttributeRequest) XXX_Unmarshal ¶
func (m *QueryAttributeRequest) XXX_Unmarshal(b []byte) error
type QueryAttributeResponse ¶
type QueryAttributeResponse struct { // a string containing the address of the account the attributes are assigned to. Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // a list of attribute values Attributes []Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes"` // pagination defines an optional pagination for the request. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAttributeResponse is the response type for the Query/Attribute method.
func (*QueryAttributeResponse) Descriptor ¶
func (*QueryAttributeResponse) Descriptor() ([]byte, []int)
func (*QueryAttributeResponse) GetAccount ¶
func (m *QueryAttributeResponse) GetAccount() string
func (*QueryAttributeResponse) GetAttributes ¶
func (m *QueryAttributeResponse) GetAttributes() []Attribute
func (*QueryAttributeResponse) GetPagination ¶
func (m *QueryAttributeResponse) GetPagination() *query.PageResponse
func (*QueryAttributeResponse) Marshal ¶
func (m *QueryAttributeResponse) Marshal() (dAtA []byte, err error)
func (*QueryAttributeResponse) MarshalTo ¶
func (m *QueryAttributeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAttributeResponse) MarshalToSizedBuffer ¶
func (m *QueryAttributeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAttributeResponse) ProtoMessage ¶
func (*QueryAttributeResponse) ProtoMessage()
func (*QueryAttributeResponse) Reset ¶
func (m *QueryAttributeResponse) Reset()
func (*QueryAttributeResponse) Size ¶
func (m *QueryAttributeResponse) Size() (n int)
func (*QueryAttributeResponse) String ¶
func (m *QueryAttributeResponse) String() string
func (*QueryAttributeResponse) Unmarshal ¶
func (m *QueryAttributeResponse) Unmarshal(dAtA []byte) error
func (*QueryAttributeResponse) XXX_DiscardUnknown ¶
func (m *QueryAttributeResponse) XXX_DiscardUnknown()
func (*QueryAttributeResponse) XXX_Marshal ¶
func (m *QueryAttributeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAttributeResponse) XXX_Merge ¶
func (m *QueryAttributeResponse) XXX_Merge(src proto.Message)
func (*QueryAttributeResponse) XXX_Size ¶
func (m *QueryAttributeResponse) XXX_Size() int
func (*QueryAttributeResponse) XXX_Unmarshal ¶
func (m *QueryAttributeResponse) XXX_Unmarshal(b []byte) error
type QueryAttributesRequest ¶
type QueryAttributesRequest struct { // account defines the address to query for. Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAttributesRequest is the request type for the Query/Attributes method.
func (*QueryAttributesRequest) Descriptor ¶
func (*QueryAttributesRequest) Descriptor() ([]byte, []int)
func (*QueryAttributesRequest) Marshal ¶
func (m *QueryAttributesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAttributesRequest) MarshalTo ¶
func (m *QueryAttributesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAttributesRequest) MarshalToSizedBuffer ¶
func (m *QueryAttributesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAttributesRequest) ProtoMessage ¶
func (*QueryAttributesRequest) ProtoMessage()
func (*QueryAttributesRequest) Reset ¶
func (m *QueryAttributesRequest) Reset()
func (*QueryAttributesRequest) Size ¶
func (m *QueryAttributesRequest) Size() (n int)
func (*QueryAttributesRequest) String ¶
func (m *QueryAttributesRequest) String() string
func (*QueryAttributesRequest) Unmarshal ¶
func (m *QueryAttributesRequest) Unmarshal(dAtA []byte) error
func (*QueryAttributesRequest) XXX_DiscardUnknown ¶
func (m *QueryAttributesRequest) XXX_DiscardUnknown()
func (*QueryAttributesRequest) XXX_Marshal ¶
func (m *QueryAttributesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAttributesRequest) XXX_Merge ¶
func (m *QueryAttributesRequest) XXX_Merge(src proto.Message)
func (*QueryAttributesRequest) XXX_Size ¶
func (m *QueryAttributesRequest) XXX_Size() int
func (*QueryAttributesRequest) XXX_Unmarshal ¶
func (m *QueryAttributesRequest) XXX_Unmarshal(b []byte) error
type QueryAttributesResponse ¶
type QueryAttributesResponse struct { // a string containing the address of the account the attributes are assigned to= Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // a list of attribute values Attributes []Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes"` // pagination defines an optional pagination for the request. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryAttributesResponse is the response type for the Query/Attribute method.
func (*QueryAttributesResponse) Descriptor ¶
func (*QueryAttributesResponse) Descriptor() ([]byte, []int)
func (*QueryAttributesResponse) GetAccount ¶
func (m *QueryAttributesResponse) GetAccount() string
func (*QueryAttributesResponse) GetAttributes ¶
func (m *QueryAttributesResponse) GetAttributes() []Attribute
func (*QueryAttributesResponse) GetPagination ¶
func (m *QueryAttributesResponse) GetPagination() *query.PageResponse
func (*QueryAttributesResponse) Marshal ¶
func (m *QueryAttributesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAttributesResponse) MarshalTo ¶
func (m *QueryAttributesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAttributesResponse) MarshalToSizedBuffer ¶
func (m *QueryAttributesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAttributesResponse) ProtoMessage ¶
func (*QueryAttributesResponse) ProtoMessage()
func (*QueryAttributesResponse) Reset ¶
func (m *QueryAttributesResponse) Reset()
func (*QueryAttributesResponse) Size ¶
func (m *QueryAttributesResponse) Size() (n int)
func (*QueryAttributesResponse) String ¶
func (m *QueryAttributesResponse) String() string
func (*QueryAttributesResponse) Unmarshal ¶
func (m *QueryAttributesResponse) Unmarshal(dAtA []byte) error
func (*QueryAttributesResponse) XXX_DiscardUnknown ¶
func (m *QueryAttributesResponse) XXX_DiscardUnknown()
func (*QueryAttributesResponse) XXX_Marshal ¶
func (m *QueryAttributesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAttributesResponse) XXX_Merge ¶
func (m *QueryAttributesResponse) XXX_Merge(src proto.Message)
func (*QueryAttributesResponse) XXX_Size ¶
func (m *QueryAttributesResponse) XXX_Size() int
func (*QueryAttributesResponse) XXX_Unmarshal ¶
func (m *QueryAttributesResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Params queries params of the attribute module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Attribute queries attributes on a given account (address) for one (or more) with the given name Attribute(ctx context.Context, in *QueryAttributeRequest, opts ...grpc.CallOption) (*QueryAttributeResponse, error) // Attributes queries attributes on a given account (address) for any defined attributes Attributes(ctx context.Context, in *QueryAttributesRequest, opts ...grpc.CallOption) (*QueryAttributesResponse, error) // Scan queries attributes on a given account (address) for any that match the provided suffix Scan(ctx context.Context, in *QueryScanRequest, opts ...grpc.CallOption) (*QueryScanResponse, 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 the 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 defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the 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 QueryScanRequest ¶
type QueryScanRequest struct { // account defines the address to query for. Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // name defines the partial attribute name to search for base on names being in RDNS format. Suffix string `protobuf:"bytes,2,opt,name=suffix,proto3" json:"suffix,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryScanRequest is the request type for the Query/Scan account attributes method.
func (*QueryScanRequest) Descriptor ¶
func (*QueryScanRequest) Descriptor() ([]byte, []int)
func (*QueryScanRequest) Marshal ¶
func (m *QueryScanRequest) Marshal() (dAtA []byte, err error)
func (*QueryScanRequest) MarshalToSizedBuffer ¶
func (m *QueryScanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryScanRequest) ProtoMessage ¶
func (*QueryScanRequest) ProtoMessage()
func (*QueryScanRequest) Reset ¶
func (m *QueryScanRequest) Reset()
func (*QueryScanRequest) Size ¶
func (m *QueryScanRequest) Size() (n int)
func (*QueryScanRequest) String ¶
func (m *QueryScanRequest) String() string
func (*QueryScanRequest) Unmarshal ¶
func (m *QueryScanRequest) Unmarshal(dAtA []byte) error
func (*QueryScanRequest) XXX_DiscardUnknown ¶
func (m *QueryScanRequest) XXX_DiscardUnknown()
func (*QueryScanRequest) XXX_Marshal ¶
func (m *QueryScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryScanRequest) XXX_Merge ¶
func (m *QueryScanRequest) XXX_Merge(src proto.Message)
func (*QueryScanRequest) XXX_Size ¶
func (m *QueryScanRequest) XXX_Size() int
func (*QueryScanRequest) XXX_Unmarshal ¶
func (m *QueryScanRequest) XXX_Unmarshal(b []byte) error
type QueryScanResponse ¶
type QueryScanResponse struct { // a string containing the address of the account the attributes are assigned to= Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // a list of attribute values Attributes []Attribute `protobuf:"bytes,2,rep,name=attributes,proto3" json:"attributes"` // pagination defines an optional pagination for the request. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryScanResponse is the response type for the Query/Attribute method.
func (*QueryScanResponse) Descriptor ¶
func (*QueryScanResponse) Descriptor() ([]byte, []int)
func (*QueryScanResponse) GetAccount ¶
func (m *QueryScanResponse) GetAccount() string
func (*QueryScanResponse) GetAttributes ¶
func (m *QueryScanResponse) GetAttributes() []Attribute
func (*QueryScanResponse) GetPagination ¶
func (m *QueryScanResponse) GetPagination() *query.PageResponse
func (*QueryScanResponse) Marshal ¶
func (m *QueryScanResponse) Marshal() (dAtA []byte, err error)
func (*QueryScanResponse) MarshalTo ¶
func (m *QueryScanResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryScanResponse) MarshalToSizedBuffer ¶
func (m *QueryScanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryScanResponse) ProtoMessage ¶
func (*QueryScanResponse) ProtoMessage()
func (*QueryScanResponse) Reset ¶
func (m *QueryScanResponse) Reset()
func (*QueryScanResponse) Size ¶
func (m *QueryScanResponse) Size() (n int)
func (*QueryScanResponse) String ¶
func (m *QueryScanResponse) String() string
func (*QueryScanResponse) Unmarshal ¶
func (m *QueryScanResponse) Unmarshal(dAtA []byte) error
func (*QueryScanResponse) XXX_DiscardUnknown ¶
func (m *QueryScanResponse) XXX_DiscardUnknown()
func (*QueryScanResponse) XXX_Marshal ¶
func (m *QueryScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryScanResponse) XXX_Merge ¶
func (m *QueryScanResponse) XXX_Merge(src proto.Message)
func (*QueryScanResponse) XXX_Size ¶
func (m *QueryScanResponse) XXX_Size() int
func (*QueryScanResponse) XXX_Unmarshal ¶
func (m *QueryScanResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Params queries params of the attribute module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Attribute queries attributes on a given account (address) for one (or more) with the given name Attribute(context.Context, *QueryAttributeRequest) (*QueryAttributeResponse, error) // Attributes queries attributes on a given account (address) for any defined attributes Attributes(context.Context, *QueryAttributesRequest) (*QueryAttributesResponse, error) // Scan queries attributes on a given account (address) for any that match the provided suffix Scan(context.Context, *QueryScanRequest) (*QueryScanResponse, 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) AddAttribute ¶
func (*UnimplementedMsgServer) AddAttribute(ctx context.Context, req *MsgAddAttributeRequest) (*MsgAddAttributeResponse, error)
func (*UnimplementedMsgServer) DeleteAttribute ¶
func (*UnimplementedMsgServer) DeleteAttribute(ctx context.Context, req *MsgDeleteAttributeRequest) (*MsgDeleteAttributeResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Attribute ¶
func (*UnimplementedQueryServer) Attribute(ctx context.Context, req *QueryAttributeRequest) (*QueryAttributeResponse, error)
func (*UnimplementedQueryServer) Attributes ¶
func (*UnimplementedQueryServer) Attributes(ctx context.Context, req *QueryAttributesRequest) (*QueryAttributesResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Scan ¶
func (*UnimplementedQueryServer) Scan(ctx context.Context, req *QueryScanRequest) (*QueryScanResponse, error)