types

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 43 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// EventTypeAttributeAdded emitted when account attributes are added.
	EventTypeAttributeAdded string = "account_attribute_added"
	// EventTypeAttributeUpdated emitted when account attributes are updated.
	EventTypeAttributeUpdated string = "account_attribute_updated"
	// EventTypeAttributeUpdated emitted when a attribute's expiration date is updated.
	EventTypeAttributeExpirationUpdated string = "account_attribute_expiration_updated"
	// EventTypeAttributeDeleted emitted when account attributes are removed.
	EventTypeAttributeDeleted string = "account_attribute_deleted"
	// EventTypeAttributeDistinctDeleted emitted when a distinct account attribute is deleted.
	EventTypeAttributeDistinctDeleted string = "account_attribute_distinct_deleted"
	// EventTypeDeletedExpired emitted when attributes have expired and been deleted in begin blocker
	EventTypeDeletedExpired string = "attribute_deleted_expired"

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

	// 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

	// AccountDataName is the name of the attribute used to store account data.
	AccountDataName = "accountdata"
)
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}
	AttributeAddrLookupKeyPrefix = []byte{0x03}
	AttributeExpirationKeyPrefix = []byte{0x04}
)
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.NewProtoCodec(types.NewInterfaceRegistry())
)
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 AttributeExpireKey added in v1.16.0

func AttributeExpireKey(attr Attribute) []byte

AttributeExpireKey returns a key for expiration AttributeExpirationKeyPrefix[epoch][AccAddress bytes][name hash][attribute hash]

func AttributeNameAddrKeyPrefix added in v1.15.0

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

AttributeNameAddrKeyPrefix returns a prefix key for attribute and address

func AttributeNameKeyPrefix added in v1.15.0

func AttributeNameKeyPrefix(attributeName string) []byte

AttributeNameKeyPrefix returns a prefix key for all addresses with attribute name

func GetAddrAttributeKeyFromExpireKey added in v1.16.0

func GetAddrAttributeKeyFromExpireKey(key []byte) []byte

GetAddrAttributeKeyFromExpireKey returns the AddrAttribute key from attribute expiration key

func GetAddressFromKey added in v1.15.0

func GetAddressFromKey(nameAddrKey []byte) (sdk.AccAddress, error)

GetAddressFromKey returns the AccAddress from full attribute address key ([prefix][name hash][length + AccAddress bytes][attribute hash])

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 GetAttributeExpireTimePrefix added in v1.16.0

func GetAttributeExpireTimePrefix(expireTime time.Time) []byte

GetAttributeExpireTimePrefix returns a prefix for expired time AttributeExpirationKeyPrefix[epoch]

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 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
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
}

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"`
	// Time that an attribute will expire.
	ExpirationDate *time.Time `protobuf:"bytes,5,opt,name=expiration_date,json=expirationDate,proto3,stdtime" json:"expiration_date,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, expirationDate *time.Time) 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) GetExpirationDate added in v1.16.0

func (m *Attribute) GetExpirationDate() *time.Time

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 EventAccountDataUpdated added in v1.16.0

type EventAccountDataUpdated struct {
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

EventAccountDataUpdated event emitted when accountdata is set, updated, or deleted.

func (*EventAccountDataUpdated) Descriptor added in v1.16.0

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

func (*EventAccountDataUpdated) GetAccount added in v1.16.0

func (m *EventAccountDataUpdated) GetAccount() string

func (*EventAccountDataUpdated) Marshal added in v1.16.0

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

func (*EventAccountDataUpdated) MarshalTo added in v1.16.0

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

func (*EventAccountDataUpdated) MarshalToSizedBuffer added in v1.16.0

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

func (*EventAccountDataUpdated) ProtoMessage added in v1.16.0

func (*EventAccountDataUpdated) ProtoMessage()

func (*EventAccountDataUpdated) Reset added in v1.16.0

func (m *EventAccountDataUpdated) Reset()

func (*EventAccountDataUpdated) Size added in v1.16.0

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

func (*EventAccountDataUpdated) String added in v1.16.0

func (m *EventAccountDataUpdated) String() string

func (*EventAccountDataUpdated) Unmarshal added in v1.16.0

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

func (*EventAccountDataUpdated) XXX_DiscardUnknown added in v1.16.0

func (m *EventAccountDataUpdated) XXX_DiscardUnknown()

func (*EventAccountDataUpdated) XXX_Marshal added in v1.16.0

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

func (*EventAccountDataUpdated) XXX_Merge added in v1.16.0

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

func (*EventAccountDataUpdated) XXX_Size added in v1.16.0

func (m *EventAccountDataUpdated) XXX_Size() int

func (*EventAccountDataUpdated) XXX_Unmarshal added in v1.16.0

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

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"`
	Expiration string `protobuf:"bytes,6,opt,name=expiration,proto3" json:"expiration,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) GetExpiration added in v1.16.0

func (m *EventAttributeAdd) GetExpiration() 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 EventAttributeExpirationUpdate added in v1.16.0

type EventAttributeExpirationUpdate 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"`
	Account            string `protobuf:"bytes,3,opt,name=account,proto3" json:"account,omitempty"`
	Owner              string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	OriginalExpiration string `protobuf:"bytes,5,opt,name=original_expiration,json=originalExpiration,proto3" json:"original_expiration,omitempty"`
	UpdatedExpiration  string `protobuf:"bytes,6,opt,name=updated_expiration,json=updatedExpiration,proto3" json:"updated_expiration,omitempty"`
}

EventAttributeExpirationUpdate event emitted when attribute expiration is updated

func NewEventAttributeExpirationUpdate added in v1.16.0

func NewEventAttributeExpirationUpdate(attribute Attribute, originalExpiration *time.Time, owner string) *EventAttributeExpirationUpdate

func (*EventAttributeExpirationUpdate) Descriptor added in v1.16.0

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

func (*EventAttributeExpirationUpdate) GetAccount added in v1.16.0

func (m *EventAttributeExpirationUpdate) GetAccount() string

func (*EventAttributeExpirationUpdate) GetName added in v1.16.0

func (*EventAttributeExpirationUpdate) GetOriginalExpiration added in v1.16.0

func (m *EventAttributeExpirationUpdate) GetOriginalExpiration() string

func (*EventAttributeExpirationUpdate) GetOwner added in v1.16.0

func (m *EventAttributeExpirationUpdate) GetOwner() string

func (*EventAttributeExpirationUpdate) GetUpdatedExpiration added in v1.16.0

func (m *EventAttributeExpirationUpdate) GetUpdatedExpiration() string

func (*EventAttributeExpirationUpdate) GetValue added in v1.16.0

func (m *EventAttributeExpirationUpdate) GetValue() string

func (*EventAttributeExpirationUpdate) Marshal added in v1.16.0

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

func (*EventAttributeExpirationUpdate) MarshalTo added in v1.16.0

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

func (*EventAttributeExpirationUpdate) MarshalToSizedBuffer added in v1.16.0

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

func (*EventAttributeExpirationUpdate) ProtoMessage added in v1.16.0

func (*EventAttributeExpirationUpdate) ProtoMessage()

func (*EventAttributeExpirationUpdate) Reset added in v1.16.0

func (m *EventAttributeExpirationUpdate) Reset()

func (*EventAttributeExpirationUpdate) Size added in v1.16.0

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

func (*EventAttributeExpirationUpdate) String added in v1.16.0

func (*EventAttributeExpirationUpdate) Unmarshal added in v1.16.0

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

func (*EventAttributeExpirationUpdate) XXX_DiscardUnknown added in v1.16.0

func (m *EventAttributeExpirationUpdate) XXX_DiscardUnknown()

func (*EventAttributeExpirationUpdate) XXX_Marshal added in v1.16.0

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

func (*EventAttributeExpirationUpdate) XXX_Merge added in v1.16.0

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

func (*EventAttributeExpirationUpdate) XXX_Size added in v1.16.0

func (m *EventAttributeExpirationUpdate) XXX_Size() int

func (*EventAttributeExpirationUpdate) XXX_Unmarshal added in v1.16.0

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

type EventAttributeExpired added in v1.16.0

type EventAttributeExpired struct {
	Name          string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ValueHash     string `protobuf:"bytes,2,opt,name=value_hash,json=valueHash,proto3" json:"value_hash,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"`
	Expiration    string `protobuf:"bytes,5,opt,name=expiration,proto3" json:"expiration,omitempty"`
}

EventAttributeExpired event emitted when attribute has expired and been deleted in BeginBlocker

func NewEventAttributeExpired added in v1.16.0

func NewEventAttributeExpired(attribute Attribute) *EventAttributeExpired

func (*EventAttributeExpired) Descriptor added in v1.16.0

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

func (*EventAttributeExpired) GetAccount added in v1.16.0

func (m *EventAttributeExpired) GetAccount() string

func (*EventAttributeExpired) GetAttributeType added in v1.16.0

func (m *EventAttributeExpired) GetAttributeType() string

func (*EventAttributeExpired) GetExpiration added in v1.16.0

func (m *EventAttributeExpired) GetExpiration() string

func (*EventAttributeExpired) GetName added in v1.16.0

func (m *EventAttributeExpired) GetName() string

func (*EventAttributeExpired) GetValueHash added in v1.16.0

func (m *EventAttributeExpired) GetValueHash() string

func (*EventAttributeExpired) Marshal added in v1.16.0

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

func (*EventAttributeExpired) MarshalTo added in v1.16.0

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

func (*EventAttributeExpired) MarshalToSizedBuffer added in v1.16.0

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

func (*EventAttributeExpired) ProtoMessage added in v1.16.0

func (*EventAttributeExpired) ProtoMessage()

func (*EventAttributeExpired) Reset added in v1.16.0

func (m *EventAttributeExpired) Reset()

func (*EventAttributeExpired) Size added in v1.16.0

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

func (*EventAttributeExpired) String added in v1.16.0

func (m *EventAttributeExpired) String() string

func (*EventAttributeExpired) Unmarshal added in v1.16.0

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

func (*EventAttributeExpired) XXX_DiscardUnknown added in v1.16.0

func (m *EventAttributeExpired) XXX_DiscardUnknown()

func (*EventAttributeExpired) XXX_Marshal added in v1.16.0

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

func (*EventAttributeExpired) XXX_Merge added in v1.16.0

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

func (*EventAttributeExpired) XXX_Size added in v1.16.0

func (m *EventAttributeExpired) XXX_Size() int

func (*EventAttributeExpired) XXX_Unmarshal added in v1.16.0

func (m *EventAttributeExpired) 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"`
	// Time that an attribute will expire.
	ExpirationDate *time.Time `protobuf:"bytes,6,opt,name=expiration_date,json=expirationDate,proto3,stdtime" json:"expiration_date,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) 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) Size

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

func (MsgAddAttributeRequest) String

func (msg MsgAddAttributeRequest) String() string

String implements stringer interface

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/AddAttribute 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)
	// UpdateAttributeExpiration defines a method to verify a particular invariance.
	UpdateAttributeExpiration(ctx context.Context, in *MsgUpdateAttributeExpirationRequest, opts ...grpc.CallOption) (*MsgUpdateAttributeExpirationResponse, 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)
	// SetAccountData defines a method for setting/updating an account's accountdata attribute.
	SetAccountData(ctx context.Context, in *MsgSetAccountDataRequest, opts ...grpc.CallOption) (*MsgSetAccountDataResponse, 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 removed 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) 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) Size

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

func (MsgDeleteAttributeRequest) String

func (msg MsgDeleteAttributeRequest) String() string

String implements stringer interface

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/DeleteAttribute 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 removed 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) 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) 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) 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/DeleteDistinctAttribute 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)
	// UpdateAttributeExpiration defines a method to verify a particular invariance.
	UpdateAttributeExpiration(context.Context, *MsgUpdateAttributeExpirationRequest) (*MsgUpdateAttributeExpirationResponse, 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)
	// SetAccountData defines a method for setting/updating an account's accountdata attribute.
	SetAccountData(context.Context, *MsgSetAccountDataRequest) (*MsgSetAccountDataResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetAccountDataRequest added in v1.16.0

type MsgSetAccountDataRequest struct {
	Value   string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
}

MsgSetAccountDataRequest defines a message to set an account's accountdata attribute.

func (*MsgSetAccountDataRequest) Descriptor added in v1.16.0

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

func (*MsgSetAccountDataRequest) GetAccount added in v1.16.0

func (m *MsgSetAccountDataRequest) GetAccount() string

func (MsgSetAccountDataRequest) GetSigners added in v1.16.0

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

GetSigners indicates that the message must have been signed by the account.

func (*MsgSetAccountDataRequest) GetValue added in v1.16.0

func (m *MsgSetAccountDataRequest) GetValue() string

func (*MsgSetAccountDataRequest) Marshal added in v1.16.0

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

func (*MsgSetAccountDataRequest) MarshalTo added in v1.16.0

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

func (*MsgSetAccountDataRequest) MarshalToSizedBuffer added in v1.16.0

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

func (*MsgSetAccountDataRequest) ProtoMessage added in v1.16.0

func (*MsgSetAccountDataRequest) ProtoMessage()

func (*MsgSetAccountDataRequest) Reset added in v1.16.0

func (m *MsgSetAccountDataRequest) Reset()

func (*MsgSetAccountDataRequest) Size added in v1.16.0

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

func (*MsgSetAccountDataRequest) String added in v1.16.0

func (m *MsgSetAccountDataRequest) String() string

func (*MsgSetAccountDataRequest) Unmarshal added in v1.16.0

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

func (MsgSetAccountDataRequest) ValidateBasic added in v1.16.0

func (msg MsgSetAccountDataRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgSetAccountDataRequest) XXX_DiscardUnknown added in v1.16.0

func (m *MsgSetAccountDataRequest) XXX_DiscardUnknown()

func (*MsgSetAccountDataRequest) XXX_Marshal added in v1.16.0

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

func (*MsgSetAccountDataRequest) XXX_Merge added in v1.16.0

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

func (*MsgSetAccountDataRequest) XXX_Size added in v1.16.0

func (m *MsgSetAccountDataRequest) XXX_Size() int

func (*MsgSetAccountDataRequest) XXX_Unmarshal added in v1.16.0

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

type MsgSetAccountDataResponse added in v1.16.0

type MsgSetAccountDataResponse struct {
}

MsgSetAccountDataResponse defines the Msg/SetAccountData response type.

func (*MsgSetAccountDataResponse) Descriptor added in v1.16.0

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

func (*MsgSetAccountDataResponse) Marshal added in v1.16.0

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

func (*MsgSetAccountDataResponse) MarshalTo added in v1.16.0

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

func (*MsgSetAccountDataResponse) MarshalToSizedBuffer added in v1.16.0

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

func (*MsgSetAccountDataResponse) ProtoMessage added in v1.16.0

func (*MsgSetAccountDataResponse) ProtoMessage()

func (*MsgSetAccountDataResponse) Reset added in v1.16.0

func (m *MsgSetAccountDataResponse) Reset()

func (*MsgSetAccountDataResponse) Size added in v1.16.0

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

func (*MsgSetAccountDataResponse) String added in v1.16.0

func (m *MsgSetAccountDataResponse) String() string

func (*MsgSetAccountDataResponse) Unmarshal added in v1.16.0

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

func (*MsgSetAccountDataResponse) XXX_DiscardUnknown added in v1.16.0

func (m *MsgSetAccountDataResponse) XXX_DiscardUnknown()

func (*MsgSetAccountDataResponse) XXX_Marshal added in v1.16.0

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

func (*MsgSetAccountDataResponse) XXX_Merge added in v1.16.0

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

func (*MsgSetAccountDataResponse) XXX_Size added in v1.16.0

func (m *MsgSetAccountDataResponse) XXX_Size() int

func (*MsgSetAccountDataResponse) XXX_Unmarshal added in v1.16.0

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

type MsgUpdateAttributeExpirationRequest added in v1.16.0

type MsgUpdateAttributeExpirationRequest struct {
	// The attribute name.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The original attribute value.
	Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// Time that an attribute will expire.
	ExpirationDate *time.Time `protobuf:"bytes,3,opt,name=expiration_date,json=expirationDate,proto3,stdtime" json:"expiration_date,omitempty"`
	// 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"`
}

MsgUpdateAttributeExpirationRequest defines an sdk.Msg type that is used to update an existing attribute's expiration date

func NewMsgUpdateAttributeExpirationRequest added in v1.16.0

func NewMsgUpdateAttributeExpirationRequest(account, name, value string, expirationDate *time.Time, owner sdk.AccAddress) *MsgUpdateAttributeExpirationRequest

NewMsgUpdateAttributeRequest creates a new add attribute message

func (*MsgUpdateAttributeExpirationRequest) Descriptor added in v1.16.0

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

func (*MsgUpdateAttributeExpirationRequest) Equal added in v1.16.0

func (this *MsgUpdateAttributeExpirationRequest) Equal(that interface{}) bool

func (*MsgUpdateAttributeExpirationRequest) GetAccount added in v1.16.0

func (*MsgUpdateAttributeExpirationRequest) GetExpirationDate added in v1.16.0

func (m *MsgUpdateAttributeExpirationRequest) GetExpirationDate() *time.Time

func (*MsgUpdateAttributeExpirationRequest) GetName added in v1.16.0

func (*MsgUpdateAttributeExpirationRequest) GetOwner added in v1.16.0

func (MsgUpdateAttributeExpirationRequest) GetSigners added in v1.16.0

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

func (*MsgUpdateAttributeExpirationRequest) GetValue added in v1.16.0

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

func (*MsgUpdateAttributeExpirationRequest) Marshal added in v1.16.0

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

func (*MsgUpdateAttributeExpirationRequest) MarshalTo added in v1.16.0

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

func (*MsgUpdateAttributeExpirationRequest) MarshalToSizedBuffer added in v1.16.0

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

func (*MsgUpdateAttributeExpirationRequest) ProtoMessage added in v1.16.0

func (*MsgUpdateAttributeExpirationRequest) ProtoMessage()

func (*MsgUpdateAttributeExpirationRequest) Reset added in v1.16.0

func (*MsgUpdateAttributeExpirationRequest) Size added in v1.16.0

func (*MsgUpdateAttributeExpirationRequest) String added in v1.16.0

func (*MsgUpdateAttributeExpirationRequest) Unmarshal added in v1.16.0

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

func (MsgUpdateAttributeExpirationRequest) ValidateBasic added in v1.16.0

func (msg MsgUpdateAttributeExpirationRequest) ValidateBasic() error

ValidateBasic runs stateless validation checks on the message.

func (*MsgUpdateAttributeExpirationRequest) XXX_DiscardUnknown added in v1.16.0

func (m *MsgUpdateAttributeExpirationRequest) XXX_DiscardUnknown()

func (*MsgUpdateAttributeExpirationRequest) XXX_Marshal added in v1.16.0

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

func (*MsgUpdateAttributeExpirationRequest) XXX_Merge added in v1.16.0

func (*MsgUpdateAttributeExpirationRequest) XXX_Size added in v1.16.0

func (*MsgUpdateAttributeExpirationRequest) XXX_Unmarshal added in v1.16.0

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

type MsgUpdateAttributeExpirationResponse added in v1.16.0

type MsgUpdateAttributeExpirationResponse struct {
}

MsgUpdateAttributeExpirationResponse defines the Msg/Vote response type.

func (*MsgUpdateAttributeExpirationResponse) Descriptor added in v1.16.0

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

func (*MsgUpdateAttributeExpirationResponse) Marshal added in v1.16.0

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

func (*MsgUpdateAttributeExpirationResponse) MarshalTo added in v1.16.0

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

func (*MsgUpdateAttributeExpirationResponse) MarshalToSizedBuffer added in v1.16.0

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

func (*MsgUpdateAttributeExpirationResponse) ProtoMessage added in v1.16.0

func (*MsgUpdateAttributeExpirationResponse) ProtoMessage()

func (*MsgUpdateAttributeExpirationResponse) Reset added in v1.16.0

func (*MsgUpdateAttributeExpirationResponse) Size added in v1.16.0

func (*MsgUpdateAttributeExpirationResponse) String added in v1.16.0

func (*MsgUpdateAttributeExpirationResponse) Unmarshal added in v1.16.0

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

func (*MsgUpdateAttributeExpirationResponse) XXX_DiscardUnknown added in v1.16.0

func (m *MsgUpdateAttributeExpirationResponse) XXX_DiscardUnknown()

func (*MsgUpdateAttributeExpirationResponse) XXX_Marshal added in v1.16.0

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

func (*MsgUpdateAttributeExpirationResponse) XXX_Merge added in v1.16.0

func (*MsgUpdateAttributeExpirationResponse) XXX_Size added in v1.16.0

func (*MsgUpdateAttributeExpirationResponse) XXX_Unmarshal added in v1.16.0

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

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) 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) 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) 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/UpdateAttribute 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
	SetAttributeKeeper(attrKeeper nametypes.AttributeKeeper)
	SetNameRecord(ctx sdk.Context, name string, addr sdk.AccAddress, restrict bool) error
	UpdateNameRecord(ctx sdk.Context, name string, addr sdk.AccAddress, restrict bool) error
	IterateRecords(ctx sdk.Context, prefix []byte, handle func(nametypes.NameRecord) error) 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 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 QueryAccountDataRequest added in v1.16.0

type QueryAccountDataRequest struct {
	// account is the bech32 address of the account to get the data for
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

QueryAccountDataRequest is the request type for the Query/AccountData method.

func (*QueryAccountDataRequest) Descriptor added in v1.16.0

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

func (*QueryAccountDataRequest) GetAccount added in v1.16.0

func (m *QueryAccountDataRequest) GetAccount() string

func (*QueryAccountDataRequest) Marshal added in v1.16.0

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

func (*QueryAccountDataRequest) MarshalTo added in v1.16.0

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

func (*QueryAccountDataRequest) MarshalToSizedBuffer added in v1.16.0

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

func (*QueryAccountDataRequest) ProtoMessage added in v1.16.0

func (*QueryAccountDataRequest) ProtoMessage()

func (*QueryAccountDataRequest) Reset added in v1.16.0

func (m *QueryAccountDataRequest) Reset()

func (*QueryAccountDataRequest) Size added in v1.16.0

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

func (*QueryAccountDataRequest) String added in v1.16.0

func (m *QueryAccountDataRequest) String() string

func (*QueryAccountDataRequest) Unmarshal added in v1.16.0

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

func (*QueryAccountDataRequest) XXX_DiscardUnknown added in v1.16.0

func (m *QueryAccountDataRequest) XXX_DiscardUnknown()

func (*QueryAccountDataRequest) XXX_Marshal added in v1.16.0

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

func (*QueryAccountDataRequest) XXX_Merge added in v1.16.0

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

func (*QueryAccountDataRequest) XXX_Size added in v1.16.0

func (m *QueryAccountDataRequest) XXX_Size() int

func (*QueryAccountDataRequest) XXX_Unmarshal added in v1.16.0

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

type QueryAccountDataResponse added in v1.16.0

type QueryAccountDataResponse struct {
	// value is the accountdata attribute value for the requested account.
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

QueryAccountDataResponse is the response type for the Query/AccountData method.

func (*QueryAccountDataResponse) Descriptor added in v1.16.0

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

func (*QueryAccountDataResponse) GetValue added in v1.16.0

func (m *QueryAccountDataResponse) GetValue() string

func (*QueryAccountDataResponse) Marshal added in v1.16.0

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

func (*QueryAccountDataResponse) MarshalTo added in v1.16.0

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

func (*QueryAccountDataResponse) MarshalToSizedBuffer added in v1.16.0

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

func (*QueryAccountDataResponse) ProtoMessage added in v1.16.0

func (*QueryAccountDataResponse) ProtoMessage()

func (*QueryAccountDataResponse) Reset added in v1.16.0

func (m *QueryAccountDataResponse) Reset()

func (*QueryAccountDataResponse) Size added in v1.16.0

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

func (*QueryAccountDataResponse) String added in v1.16.0

func (m *QueryAccountDataResponse) String() string

func (*QueryAccountDataResponse) Unmarshal added in v1.16.0

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

func (*QueryAccountDataResponse) XXX_DiscardUnknown added in v1.16.0

func (m *QueryAccountDataResponse) XXX_DiscardUnknown()

func (*QueryAccountDataResponse) XXX_Marshal added in v1.16.0

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

func (*QueryAccountDataResponse) XXX_Merge added in v1.16.0

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

func (*QueryAccountDataResponse) XXX_Size added in v1.16.0

func (m *QueryAccountDataResponse) XXX_Size() int

func (*QueryAccountDataResponse) XXX_Unmarshal added in v1.16.0

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

type QueryAttributeAccountsRequest added in v1.15.0

type QueryAttributeAccountsRequest struct {
	// name is the attribute name to query for
	AttributeName string `protobuf:"bytes,1,opt,name=attribute_name,json=attributeName,proto3" json:"attribute_name,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,99,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAttributeAccountsRequest is the request type for the Query/AttributeAccounts method.

func (*QueryAttributeAccountsRequest) Descriptor added in v1.15.0

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

func (*QueryAttributeAccountsRequest) GetAttributeName added in v1.15.0

func (m *QueryAttributeAccountsRequest) GetAttributeName() string

func (*QueryAttributeAccountsRequest) GetPagination added in v1.15.0

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

func (*QueryAttributeAccountsRequest) Marshal added in v1.15.0

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

func (*QueryAttributeAccountsRequest) MarshalTo added in v1.15.0

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

func (*QueryAttributeAccountsRequest) MarshalToSizedBuffer added in v1.15.0

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

func (*QueryAttributeAccountsRequest) ProtoMessage added in v1.15.0

func (*QueryAttributeAccountsRequest) ProtoMessage()

func (*QueryAttributeAccountsRequest) Reset added in v1.15.0

func (m *QueryAttributeAccountsRequest) Reset()

func (*QueryAttributeAccountsRequest) Size added in v1.15.0

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

func (*QueryAttributeAccountsRequest) String added in v1.15.0

func (*QueryAttributeAccountsRequest) Unmarshal added in v1.15.0

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

func (*QueryAttributeAccountsRequest) XXX_DiscardUnknown added in v1.15.0

func (m *QueryAttributeAccountsRequest) XXX_DiscardUnknown()

func (*QueryAttributeAccountsRequest) XXX_Marshal added in v1.15.0

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

func (*QueryAttributeAccountsRequest) XXX_Merge added in v1.15.0

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

func (*QueryAttributeAccountsRequest) XXX_Size added in v1.15.0

func (m *QueryAttributeAccountsRequest) XXX_Size() int

func (*QueryAttributeAccountsRequest) XXX_Unmarshal added in v1.15.0

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

type QueryAttributeAccountsResponse added in v1.15.0

type QueryAttributeAccountsResponse struct {
	// list of account addresses that have attributes of request name
	Accounts []string `protobuf:"bytes,1,rep,name=accounts,proto3" json:"accounts,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageResponse `protobuf:"bytes,99,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAttributeAccountsResponse is the response type for the Query/AttributeAccounts method.

func (*QueryAttributeAccountsResponse) Descriptor added in v1.15.0

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

func (*QueryAttributeAccountsResponse) GetAccounts added in v1.15.0

func (m *QueryAttributeAccountsResponse) GetAccounts() []string

func (*QueryAttributeAccountsResponse) GetPagination added in v1.15.0

func (*QueryAttributeAccountsResponse) Marshal added in v1.15.0

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

func (*QueryAttributeAccountsResponse) MarshalTo added in v1.15.0

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

func (*QueryAttributeAccountsResponse) MarshalToSizedBuffer added in v1.15.0

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

func (*QueryAttributeAccountsResponse) ProtoMessage added in v1.15.0

func (*QueryAttributeAccountsResponse) ProtoMessage()

func (*QueryAttributeAccountsResponse) Reset added in v1.15.0

func (m *QueryAttributeAccountsResponse) Reset()

func (*QueryAttributeAccountsResponse) Size added in v1.15.0

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

func (*QueryAttributeAccountsResponse) String added in v1.15.0

func (*QueryAttributeAccountsResponse) Unmarshal added in v1.15.0

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

func (*QueryAttributeAccountsResponse) XXX_DiscardUnknown added in v1.15.0

func (m *QueryAttributeAccountsResponse) XXX_DiscardUnknown()

func (*QueryAttributeAccountsResponse) XXX_Marshal added in v1.15.0

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

func (*QueryAttributeAccountsResponse) XXX_Merge added in v1.15.0

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

func (*QueryAttributeAccountsResponse) XXX_Size added in v1.15.0

func (m *QueryAttributeAccountsResponse) XXX_Size() int

func (*QueryAttributeAccountsResponse) XXX_Unmarshal added in v1.15.0

func (m *QueryAttributeAccountsResponse) 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/Attributes 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)
	// AttributeAccounts queries accounts on a given attribute name
	AttributeAccounts(ctx context.Context, in *QueryAttributeAccountsRequest, opts ...grpc.CallOption) (*QueryAttributeAccountsResponse, error)
	// AccountData returns the accountdata for a specified account.
	AccountData(ctx context.Context, in *QueryAccountDataRequest, opts ...grpc.CallOption) (*QueryAccountDataResponse, 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 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/Scan 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)
	// AttributeAccounts queries accounts on a given attribute name
	AttributeAccounts(context.Context, *QueryAttributeAccountsRequest) (*QueryAttributeAccountsResponse, error)
	// AccountData returns the accountdata for a specified account.
	AccountData(context.Context, *QueryAccountDataRequest) (*QueryAccountDataResponse, 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) SetAccountData added in v1.16.0

func (*UnimplementedMsgServer) UpdateAttribute added in v1.5.0

func (*UnimplementedMsgServer) UpdateAttributeExpiration added in v1.16.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AccountData added in v1.16.0

func (*UnimplementedQueryServer) Attribute

func (*UnimplementedQueryServer) AttributeAccounts added in v1.15.0

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