types

package
v1.11.1-rc4 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 38 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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 updated.
	EventTypeAttributeUpdated string = "account_attribute_updated"
	// The type of event generated when account attributes are removed.
	EventTypeAttributeDeleted string = "account_attribute_deleted"
	// The type of event generated when a distinct account attribute is deleted.
	EventTypeAttributeDistinctDeleted string = "account_attribute_distinct_deleted"

	AttributeKeyAttribute      string = "attribute"
	AttributeKeyNameAttribute  string = "attribute_name"
	AttributeKeyAccountAddress string = "account_address"

	// EventTelemetryKeyAdd add telemetry metrics key
	EventTelemetryKeyAdd string = "add"
	// EventTelemetryKeyUpdate add telemetry metrics key
	EventTelemetryKeyUpdate string = "update"
	// EventTelemetryKeyDelete delete telemetry metrics key
	EventTelemetryKeyDelete string = "delete"
	// EventTelemetryKeyDistinctDelete delete telemetry metrics key
	EventTelemetryKeyDistinctDelete string = "distinct_delete"
	// EventTelemetryLabelName name telemetry metrics label
	EventTelemetryLabelName string = "name"
	// EventTelemetryLabelName name telemetry metrics label
	EventTelemetryLabelValue string = "value"
	// 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"
)
View Source
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
)
View Source
const (
	TypeMsgAddAttribute            = "add_attribute"
	TypeMsgUpdateAttribute         = "update_attribute"
	TypeMsgDeleteAttribute         = "delete_attribute"
	TypeMsgDeleteDistinctAttribute = "delete_distinct_attribute"
)
View Source
const (
	QueryParams         = "params"
	QueryAttribute      = "attribute"
	QueryAttributes     = "attributes"
	QueryScanAttributes = "scan"
)

querier keys

View Source
const (
	DefaultMaxValueLength = 10000
)

Default parameter namespace

Variables

View Source
var (
	ErrInvalidLengthAttribute        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAttribute          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAttribute = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// Legacy amino encoded objects use this key prefix
	AttributeKeyPrefixAmino = []byte{0x00}
	AttributeKeyPrefix      = []byte{0x02}
)
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")
)
View Source
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",
}
View Source
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,
}
View Source
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)
)
View Source
var (
	ParamStoreKeyMaxValueLength = []byte("MaxValueLength")
)

Parameter store keys

Functions

func AddrAttributeKey added in v1.8.0

func AddrAttributeKey(addr []byte, attr Attribute) []byte

AddrAttributeKey creates a key for an account attribute

func AddrAttributesKeyPrefix added in v1.8.0

func AddrAttributesKeyPrefix(addr []byte) []byte

AddrAttributesKeyPrefix returns a prefix key for all attributes on an account

func AddrAttributesNameKeyPrefix added in v1.8.0

func AddrAttributesNameKeyPrefix(addr []byte, attributeName string) []byte

AddrAttributesNameKeyPrefix returns a prefix key for all attributes with a given name on an account

func AddrStrAttributesKeyPrefix added in v1.8.0

func AddrStrAttributesKeyPrefix(addr string) []byte

AddrStrAttributesKeyPrefix is the same as AddrAttributesKeyPrefix but takes in the address as a string.

func AddrStrAttributesNameKeyPrefix added in v1.8.0

func AddrStrAttributesNameKeyPrefix(addr string, attributeName string) []byte

AddrStrAttributesNameKeyPrefix is the same as AddrAttributesNameKeyPrefix but takes in the address as a string.

func GetAttributeAddressBytes added in v1.8.0

func GetAttributeAddressBytes(addr string) []byte

GetAttributeAddressBytes Gets the bytes of an address used in an attribute. If the address is neither an account address nor metadata address (or is an empty string), an empty byte slice is returned.

func GetNameKeyBytes

func GetNameKeyBytes(name string) []byte

GetNameKeyBytes returns a set of bytes that uniquely identifies the given name

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable for slashing module

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 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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidAttributeType

func ValidAttributeType(attributeType AttributeType) bool

ValidAttributeType returns true if the attribute type option is valid and false otherwise.

func ValidateAttributeAddress added in v1.8.0

func ValidateAttributeAddress(addr string) error

ValidateAttributeAddress validates that the provide string is a valid address for an attribute. Failures:

  • The provided address is empty
  • The provided address is neither an account address nor scope metadata address.

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, address string, attrType AttributeType, value []byte) Attribute

NewAttribute creates a new instance of an Attribute

func (*Attribute) Descriptor

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

func (*Attribute) GetAddress

func (m *Attribute) GetAddress() string

func (Attribute) GetAddressBytes added in v1.8.0

func (a Attribute) GetAddressBytes() []byte

GetAddressBytes Gets the bytes of this attribute's address. If the address is neither an account address nor metadata address (or is an empty string), an empty byte slice is returned.

func (*Attribute) GetAttributeType

func (m *Attribute) GetAttributeType() AttributeType

func (*Attribute) GetName

func (m *Attribute) GetName() string

func (*Attribute) GetValue

func (m *Attribute) GetValue() []byte

func (Attribute) Hash

func (a Attribute) Hash() []byte

Hash returns the SHA256 hash of the attribute value.

func (*Attribute) Marshal

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

func (*Attribute) MarshalTo

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

func (*Attribute) MarshalToSizedBuffer

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

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) Reset

func (m *Attribute) Reset()

func (*Attribute) Size

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

func (Attribute) String

func (a Attribute) String() string

String implements fmt.Stringer

func (*Attribute) Unmarshal

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

func (Attribute) ValidateBasic added in v0.3.0

func (a Attribute) ValidateBasic() error

ValidateBasic ensures an attribute is valid.

func (*Attribute) XXX_DiscardUnknown

func (m *Attribute) XXX_DiscardUnknown()

func (*Attribute) XXX_Marshal

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

func (*Attribute) XXX_Merge

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

func (*Attribute) XXX_Size

func (m *Attribute) XXX_Size() int

func (*Attribute) XXX_Unmarshal

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

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 EventAttributeDistinctDelete added in v1.5.0

type EventAttributeDistinctDelete 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"`
	AttributeType string `protobuf:"bytes,3,opt,name=attribute_type,json=attributeType,proto3" json:"attribute_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"`
}

EventAttributeDistinctDelete event emitted when attribute is deleted with matching value

func NewEventDistinctAttributeDelete added in v1.5.0

func NewEventDistinctAttributeDelete(name string, value string, account string, owner string) *EventAttributeDistinctDelete

func (*EventAttributeDistinctDelete) Descriptor added in v1.5.0

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

func (*EventAttributeDistinctDelete) GetAccount added in v1.5.0

func (m *EventAttributeDistinctDelete) GetAccount() string

func (*EventAttributeDistinctDelete) GetAttributeType added in v1.5.0

func (m *EventAttributeDistinctDelete) GetAttributeType() string

func (*EventAttributeDistinctDelete) GetName added in v1.5.0

func (m *EventAttributeDistinctDelete) GetName() string

func (*EventAttributeDistinctDelete) GetOwner added in v1.5.0

func (m *EventAttributeDistinctDelete) GetOwner() string

func (*EventAttributeDistinctDelete) GetValue added in v1.5.0

func (m *EventAttributeDistinctDelete) GetValue() string

func (*EventAttributeDistinctDelete) Marshal added in v1.5.0

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

func (*EventAttributeDistinctDelete) MarshalTo added in v1.5.0

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

func (*EventAttributeDistinctDelete) MarshalToSizedBuffer added in v1.5.0

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

func (*EventAttributeDistinctDelete) ProtoMessage added in v1.5.0

func (*EventAttributeDistinctDelete) ProtoMessage()

func (*EventAttributeDistinctDelete) Reset added in v1.5.0

func (m *EventAttributeDistinctDelete) Reset()

func (*EventAttributeDistinctDelete) Size added in v1.5.0

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

func (*EventAttributeDistinctDelete) String added in v1.5.0

func (*EventAttributeDistinctDelete) Unmarshal added in v1.5.0

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

func (*EventAttributeDistinctDelete) XXX_DiscardUnknown added in v1.5.0

func (m *EventAttributeDistinctDelete) XXX_DiscardUnknown()

func (*EventAttributeDistinctDelete) XXX_Marshal added in v1.5.0

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

func (*EventAttributeDistinctDelete) XXX_Merge added in v1.5.0

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

func (*EventAttributeDistinctDelete) XXX_Size added in v1.5.0

func (m *EventAttributeDistinctDelete) XXX_Size() int

func (*EventAttributeDistinctDelete) XXX_Unmarshal added in v1.5.0

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

type EventAttributeUpdate added in v1.5.0

type EventAttributeUpdate struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	OriginalValue string `protobuf:"bytes,2,opt,name=original_value,json=originalValue,proto3" json:"original_value,omitempty"`
	OriginalType  string `protobuf:"bytes,3,opt,name=original_type,json=originalType,proto3" json:"original_type,omitempty"`
	UpdateValue   string `protobuf:"bytes,4,opt,name=update_value,json=updateValue,proto3" json:"update_value,omitempty"`
	UpdateType    string `protobuf:"bytes,5,opt,name=update_type,json=updateType,proto3" json:"update_type,omitempty"`
	Account       string `protobuf:"bytes,6,opt,name=account,proto3" json:"account,omitempty"`
	Owner         string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
}

EventAttributeUpdate event emitted when attribute is updated

func NewEventAttributeUpdate added in v1.5.0

func NewEventAttributeUpdate(originalAttribute Attribute, updateAttribute Attribute, owner string) *EventAttributeUpdate

func (*EventAttributeUpdate) Descriptor added in v1.5.0

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

func (*EventAttributeUpdate) GetAccount added in v1.5.0

func (m *EventAttributeUpdate) GetAccount() string

func (*EventAttributeUpdate) GetName added in v1.5.0

func (m *EventAttributeUpdate) GetName() string

func (*EventAttributeUpdate) GetOriginalType added in v1.5.0

func (m *EventAttributeUpdate) GetOriginalType() string

func (*EventAttributeUpdate) GetOriginalValue added in v1.5.0

func (m *EventAttributeUpdate) GetOriginalValue() string

func (*EventAttributeUpdate) GetOwner added in v1.5.0

func (m *EventAttributeUpdate) GetOwner() string

func (*EventAttributeUpdate) GetUpdateType added in v1.5.0

func (m *EventAttributeUpdate) GetUpdateType() string

func (*EventAttributeUpdate) GetUpdateValue added in v1.5.0

func (m *EventAttributeUpdate) GetUpdateValue() string

func (*EventAttributeUpdate) Marshal added in v1.5.0

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

func (*EventAttributeUpdate) MarshalTo added in v1.5.0

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

func (*EventAttributeUpdate) MarshalToSizedBuffer added in v1.5.0

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

func (*EventAttributeUpdate) ProtoMessage added in v1.5.0

func (*EventAttributeUpdate) ProtoMessage()

func (*EventAttributeUpdate) Reset added in v1.5.0

func (m *EventAttributeUpdate) Reset()

func (*EventAttributeUpdate) Size added in v1.5.0

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

func (*EventAttributeUpdate) String added in v1.5.0

func (m *EventAttributeUpdate) String() string

func (*EventAttributeUpdate) Unmarshal added in v1.5.0

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

func (*EventAttributeUpdate) XXX_DiscardUnknown added in v1.5.0

func (m *EventAttributeUpdate) XXX_DiscardUnknown()

func (*EventAttributeUpdate) XXX_Marshal added in v1.5.0

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

func (*EventAttributeUpdate) XXX_Merge added in v1.5.0

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

func (*EventAttributeUpdate) XXX_Size added in v1.5.0

func (m *EventAttributeUpdate) XXX_Size() int

func (*EventAttributeUpdate) XXX_Unmarshal added in v1.5.0

func (m *EventAttributeUpdate) 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) 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) 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 string, 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)
	// UpdateAttribute defines a method to verify a particular invariance.
	UpdateAttribute(ctx context.Context, in *MsgUpdateAttributeRequest, opts ...grpc.CallOption) (*MsgUpdateAttributeResponse, error)
	// DeleteAttribute defines a method to verify a particular invariance.
	DeleteAttribute(ctx context.Context, in *MsgDeleteAttributeRequest, opts ...grpc.CallOption) (*MsgDeleteAttributeResponse, error)
	// DeleteDistinctAttribute defines a method to verify a particular invariance.
	DeleteDistinctAttribute(ctx context.Context, in *MsgDeleteDistinctAttributeRequest, opts ...grpc.CallOption) (*MsgDeleteDistinctAttributeResponse, 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 string, owner sdk.AccAddress, name string) *MsgDeleteAttributeRequest

NewMsgDeleteAttributeRequest deletes all attributes with specific name

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 MsgDeleteDistinctAttributeRequest added in v1.5.0

type MsgDeleteDistinctAttributeRequest 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 account to add the attribute to.
	Account string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
	// The address that the name must resolve to.
	Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
}

MsgDeleteDistinctAttributeRequest defines a message to delete an attribute with matching name, value, and type from an account Attributes may only be remove from an account by the account that the attribute name resolves to.

func NewMsgDeleteDistinctAttributeRequest added in v1.5.0

func NewMsgDeleteDistinctAttributeRequest(account string, owner sdk.AccAddress, name string, value []byte) *MsgDeleteDistinctAttributeRequest

NewMsgDeleteDistinctAttributeRequest deletes a attribute with specific value and type

func (*MsgDeleteDistinctAttributeRequest) Descriptor added in v1.5.0

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

func (MsgDeleteDistinctAttributeRequest) GetSignBytes added in v1.5.0

func (msg MsgDeleteDistinctAttributeRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgDeleteDistinctAttributeRequest) GetSigners added in v1.5.0

GetSigners indicates that the message must have been signed by the name owner.

func (*MsgDeleteDistinctAttributeRequest) Marshal added in v1.5.0

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

func (*MsgDeleteDistinctAttributeRequest) MarshalTo added in v1.5.0

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

func (*MsgDeleteDistinctAttributeRequest) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgDeleteDistinctAttributeRequest) ProtoMessage added in v1.5.0

func (*MsgDeleteDistinctAttributeRequest) ProtoMessage()

func (*MsgDeleteDistinctAttributeRequest) Reset added in v1.5.0

func (MsgDeleteDistinctAttributeRequest) Route added in v1.5.0

Route returns the name of the module.

func (*MsgDeleteDistinctAttributeRequest) Size added in v1.5.0

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

func (MsgDeleteDistinctAttributeRequest) String added in v1.5.0

String implements stringer interface

func (MsgDeleteDistinctAttributeRequest) Type added in v1.5.0

Type returns the message action.

func (*MsgDeleteDistinctAttributeRequest) Unmarshal added in v1.5.0

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

func (MsgDeleteDistinctAttributeRequest) ValidateBasic added in v1.5.0

func (msg MsgDeleteDistinctAttributeRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgDeleteDistinctAttributeRequest) XXX_DiscardUnknown added in v1.5.0

func (m *MsgDeleteDistinctAttributeRequest) XXX_DiscardUnknown()

func (*MsgDeleteDistinctAttributeRequest) XXX_Marshal added in v1.5.0

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

func (*MsgDeleteDistinctAttributeRequest) XXX_Merge added in v1.5.0

func (*MsgDeleteDistinctAttributeRequest) XXX_Size added in v1.5.0

func (m *MsgDeleteDistinctAttributeRequest) XXX_Size() int

func (*MsgDeleteDistinctAttributeRequest) XXX_Unmarshal added in v1.5.0

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

type MsgDeleteDistinctAttributeResponse added in v1.5.0

type MsgDeleteDistinctAttributeResponse struct {
}

MsgDeleteDistinctAttributeResponse defines the Msg/Vote response type.

func (*MsgDeleteDistinctAttributeResponse) Descriptor added in v1.5.0

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

func (*MsgDeleteDistinctAttributeResponse) Marshal added in v1.5.0

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

func (*MsgDeleteDistinctAttributeResponse) MarshalTo added in v1.5.0

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

func (*MsgDeleteDistinctAttributeResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgDeleteDistinctAttributeResponse) ProtoMessage added in v1.5.0

func (*MsgDeleteDistinctAttributeResponse) ProtoMessage()

func (*MsgDeleteDistinctAttributeResponse) Reset added in v1.5.0

func (*MsgDeleteDistinctAttributeResponse) Size added in v1.5.0

func (*MsgDeleteDistinctAttributeResponse) String added in v1.5.0

func (*MsgDeleteDistinctAttributeResponse) Unmarshal added in v1.5.0

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

func (*MsgDeleteDistinctAttributeResponse) XXX_DiscardUnknown added in v1.5.0

func (m *MsgDeleteDistinctAttributeResponse) XXX_DiscardUnknown()

func (*MsgDeleteDistinctAttributeResponse) XXX_Marshal added in v1.5.0

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

func (*MsgDeleteDistinctAttributeResponse) XXX_Merge added in v1.5.0

func (*MsgDeleteDistinctAttributeResponse) XXX_Size added in v1.5.0

func (*MsgDeleteDistinctAttributeResponse) XXX_Unmarshal added in v1.5.0

func (m *MsgDeleteDistinctAttributeResponse) 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)
	// UpdateAttribute defines a method to verify a particular invariance.
	UpdateAttribute(context.Context, *MsgUpdateAttributeRequest) (*MsgUpdateAttributeResponse, error)
	// DeleteAttribute defines a method to verify a particular invariance.
	DeleteAttribute(context.Context, *MsgDeleteAttributeRequest) (*MsgDeleteAttributeResponse, error)
	// DeleteDistinctAttribute defines a method to verify a particular invariance.
	DeleteDistinctAttribute(context.Context, *MsgDeleteDistinctAttributeRequest) (*MsgDeleteDistinctAttributeResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateAttributeRequest added in v1.5.0

type MsgUpdateAttributeRequest struct {
	// The attribute name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The original attribute value.
	OriginalValue []byte `protobuf:"bytes,2,opt,name=original_value,json=originalValue,proto3" json:"original_value,omitempty"`
	// The update attribute value.
	UpdateValue []byte `protobuf:"bytes,3,opt,name=update_value,json=updateValue,proto3" json:"update_value,omitempty"`
	// The original attribute value type.
	OriginalAttributeType AttributeType `` /* 170-byte string literal not displayed */
	// The update attribute value type.
	UpdateAttributeType AttributeType `` /* 164-byte string literal not displayed */
	// The account to add the attribute to.
	Account string `protobuf:"bytes,6,opt,name=account,proto3" json:"account,omitempty"`
	// The address that the name must resolve to.
	Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
}

MsgUpdateAttributeRequest defines an sdk.Msg type that is used to update an existing attribute to an account Attributes may only be set in an account by the account that the attribute name resolves to.

func NewMsgUpdateAttributeRequest added in v1.5.0

func NewMsgUpdateAttributeRequest(account string, owner sdk.AccAddress, name string, originalValue []byte, updateValue []byte, origAttrType AttributeType, updatedAttrType AttributeType) *MsgUpdateAttributeRequest

NewMsgUpdateAttributeRequest creates a new add attribute message

func (*MsgUpdateAttributeRequest) Descriptor added in v1.5.0

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

func (MsgUpdateAttributeRequest) GetSignBytes added in v1.5.0

func (msg MsgUpdateAttributeRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgUpdateAttributeRequest) GetSigners added in v1.5.0

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

GetSigners indicates that the message must have been signed by the name owner.

func (*MsgUpdateAttributeRequest) Marshal added in v1.5.0

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

func (*MsgUpdateAttributeRequest) MarshalTo added in v1.5.0

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

func (*MsgUpdateAttributeRequest) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgUpdateAttributeRequest) ProtoMessage added in v1.5.0

func (*MsgUpdateAttributeRequest) ProtoMessage()

func (*MsgUpdateAttributeRequest) Reset added in v1.5.0

func (m *MsgUpdateAttributeRequest) Reset()

func (MsgUpdateAttributeRequest) Route added in v1.5.0

func (msg MsgUpdateAttributeRequest) Route() string

Route returns the name of the module.

func (*MsgUpdateAttributeRequest) Size added in v1.5.0

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

func (MsgUpdateAttributeRequest) String added in v1.5.0

func (msg MsgUpdateAttributeRequest) String() string

String implements stringer interface

func (MsgUpdateAttributeRequest) Type added in v1.5.0

func (msg MsgUpdateAttributeRequest) Type() string

Type returns the message action.

func (*MsgUpdateAttributeRequest) Unmarshal added in v1.5.0

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

func (MsgUpdateAttributeRequest) ValidateBasic added in v1.5.0

func (msg MsgUpdateAttributeRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgUpdateAttributeRequest) XXX_DiscardUnknown added in v1.5.0

func (m *MsgUpdateAttributeRequest) XXX_DiscardUnknown()

func (*MsgUpdateAttributeRequest) XXX_Marshal added in v1.5.0

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

func (*MsgUpdateAttributeRequest) XXX_Merge added in v1.5.0

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

func (*MsgUpdateAttributeRequest) XXX_Size added in v1.5.0

func (m *MsgUpdateAttributeRequest) XXX_Size() int

func (*MsgUpdateAttributeRequest) XXX_Unmarshal added in v1.5.0

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

type MsgUpdateAttributeResponse added in v1.5.0

type MsgUpdateAttributeResponse struct {
}

MsgUpdateAttributeResponse defines the Msg/Vote response type.

func (*MsgUpdateAttributeResponse) Descriptor added in v1.5.0

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

func (*MsgUpdateAttributeResponse) Marshal added in v1.5.0

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

func (*MsgUpdateAttributeResponse) MarshalTo added in v1.5.0

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

func (*MsgUpdateAttributeResponse) MarshalToSizedBuffer added in v1.5.0

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

func (*MsgUpdateAttributeResponse) ProtoMessage added in v1.5.0

func (*MsgUpdateAttributeResponse) ProtoMessage()

func (*MsgUpdateAttributeResponse) Reset added in v1.5.0

func (m *MsgUpdateAttributeResponse) Reset()

func (*MsgUpdateAttributeResponse) Size added in v1.5.0

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

func (*MsgUpdateAttributeResponse) String added in v1.5.0

func (m *MsgUpdateAttributeResponse) String() string

func (*MsgUpdateAttributeResponse) Unmarshal added in v1.5.0

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

func (*MsgUpdateAttributeResponse) XXX_DiscardUnknown added in v1.5.0

func (m *MsgUpdateAttributeResponse) XXX_DiscardUnknown()

func (*MsgUpdateAttributeResponse) XXX_Marshal added in v1.5.0

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

func (*MsgUpdateAttributeResponse) XXX_Merge added in v1.5.0

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

func (*MsgUpdateAttributeResponse) XXX_Size added in v1.5.0

func (m *MsgUpdateAttributeResponse) XXX_Size() int

func (*MsgUpdateAttributeResponse) XXX_Unmarshal added in v1.5.0

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

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)
	NameExists(ctx sdk.Context, name string) bool
}

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 NewParams

func NewParams(
	maxValueLength uint32,
) Params

NewParams create a new Params object

func (*Params) Descriptor

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

func (*Params) GetMaxValueLength

func (m *Params) GetMaxValueLength() uint32

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 (params *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs - Implements 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 (params Params) String() string

String implements stringer interface

func (*Params) Unmarshal

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

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 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) MarshalTo

func (m *QueryScanRequest) MarshalTo(dAtA []byte) (int, 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) DeleteAttribute

func (*UnimplementedMsgServer) DeleteDistinctAttribute added in v1.5.0

func (*UnimplementedMsgServer) UpdateAttribute added in v1.5.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Attribute

func (*UnimplementedQueryServer) Attributes

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Scan

Jump to

Keyboard shortcuts

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