Documentation ¶
Index ¶
- Variables
- func ApplicationLinkClientIDKey(clientID string) []byte
- func BlockerPrefix(blocker string) []byte
- func BlockerSubspacePrefix(blocker string, subspace string) []byte
- func ChainLinksStoreKey(user, chainName, address string) []byte
- func DTagStoreKey(dTag string) []byte
- func DTagTransferRequestStoreKey(sender, recipient string) []byte
- func IncomingDTagTransferRequestsPrefix(recipient string) []byte
- func MigrateStore(ctx sdk.Context, ak authkeeper.AccountKeeper, storeKey sdk.StoreKey, ...) error
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RelationshipsStoreKey(user, subspace, recipient string) []byte
- func UserApplicationLinkKey(user, application, username string) []byte
- func UserApplicationLinksPrefix(user string) []byte
- func UserBlockStoreKey(blocker string, subspace string, blockedUser string) []byte
- func UserChainLinksPrefix(user string) []byte
- func UserRelationshipsPrefix(user string) []byte
- func UserRelationshipsSubspacePrefix(user, subspace string) []byte
- type AddressData
- type Base58Address
- func (*Base58Address) Descriptor() ([]byte, []int)
- func (this *Base58Address) Equal(that interface{}) bool
- func (b Base58Address) GetValue() string
- func (m *Base58Address) Marshal() (dAtA []byte, err error)
- func (m *Base58Address) MarshalTo(dAtA []byte) (int, error)
- func (m *Base58Address) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Base58Address) ProtoMessage()
- func (m *Base58Address) Reset()
- func (m *Base58Address) Size() (n int)
- func (m *Base58Address) String() string
- func (m *Base58Address) Unmarshal(dAtA []byte) error
- func (b Base58Address) Validate() error
- func (b Base58Address) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
- func (m *Base58Address) XXX_DiscardUnknown()
- func (m *Base58Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Base58Address) XXX_Merge(src proto.Message)
- func (m *Base58Address) XXX_Size() int
- func (m *Base58Address) XXX_Unmarshal(b []byte) error
- type Bech32Address
- func (*Bech32Address) Descriptor() ([]byte, []int)
- func (this *Bech32Address) Equal(that interface{}) bool
- func (b Bech32Address) GetValue() string
- func (m *Bech32Address) Marshal() (dAtA []byte, err error)
- func (m *Bech32Address) MarshalTo(dAtA []byte) (int, error)
- func (m *Bech32Address) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bech32Address) ProtoMessage()
- func (m *Bech32Address) Reset()
- func (m *Bech32Address) Size() (n int)
- func (m *Bech32Address) String() string
- func (m *Bech32Address) Unmarshal(dAtA []byte) error
- func (b Bech32Address) Validate() error
- func (b Bech32Address) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
- func (m *Bech32Address) XXX_DiscardUnknown()
- func (m *Bech32Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bech32Address) XXX_Merge(src proto.Message)
- func (m *Bech32Address) XXX_Size() int
- func (m *Bech32Address) XXX_Unmarshal(b []byte) error
- type ChainConfig
- func (*ChainConfig) Descriptor() ([]byte, []int)
- func (this *ChainConfig) Equal(that interface{}) bool
- func (m *ChainConfig) Marshal() (dAtA []byte, err error)
- func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainConfig) ProtoMessage()
- func (m *ChainConfig) Reset()
- func (m *ChainConfig) Size() (n int)
- func (m *ChainConfig) String() string
- func (m *ChainConfig) Unmarshal(dAtA []byte) error
- func (m *ChainConfig) XXX_DiscardUnknown()
- func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainConfig) XXX_Merge(src proto.Message)
- func (m *ChainConfig) XXX_Size() int
- func (m *ChainConfig) XXX_Unmarshal(b []byte) error
- type ChainLink
- func (*ChainLink) Descriptor() ([]byte, []int)
- func (this *ChainLink) Equal(that interface{}) bool
- func (m *ChainLink) Marshal() (dAtA []byte, err error)
- func (m *ChainLink) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainLink) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainLink) ProtoMessage()
- func (m *ChainLink) Reset()
- func (m *ChainLink) Size() (n int)
- func (m *ChainLink) String() string
- func (m *ChainLink) Unmarshal(dAtA []byte) error
- func (m *ChainLink) XXX_DiscardUnknown()
- func (m *ChainLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainLink) XXX_Merge(src proto.Message)
- func (m *ChainLink) XXX_Size() int
- func (m *ChainLink) XXX_Unmarshal(b []byte) error
- type HexAddress
- func (*HexAddress) Descriptor() ([]byte, []int)
- func (this *HexAddress) Equal(that interface{}) bool
- func (h HexAddress) GetValue() string
- func (m *HexAddress) Marshal() (dAtA []byte, err error)
- func (m *HexAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *HexAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HexAddress) ProtoMessage()
- func (m *HexAddress) Reset()
- func (m *HexAddress) Size() (n int)
- func (m *HexAddress) String() string
- func (m *HexAddress) Unmarshal(dAtA []byte) error
- func (h HexAddress) Validate() error
- func (h HexAddress) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
- func (m *HexAddress) XXX_DiscardUnknown()
- func (m *HexAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HexAddress) XXX_Merge(src proto.Message)
- func (m *HexAddress) XXX_Size() int
- func (m *HexAddress) XXX_Unmarshal(b []byte) error
- type Keeper
- func (k Keeper) DeleteBlocks(ctx sdk.Context)
- func (k Keeper) DeleteRelationships(ctx sdk.Context)
- func (k Keeper) GetBlocks(ctx sdk.Context) []UserBlock
- func (k Keeper) GetRelationships(ctx sdk.Context) []Relationship
- func (k Keeper) IterateApplicationLinkClientIDKeys(ctx sdk.Context, fn func(index int64, key []byte, value []byte) (stop bool))
- func (k Keeper) IterateApplicationLinks(ctx sdk.Context, ...)
- func (k Keeper) IterateBlocks(ctx sdk.Context, fn func(index int64, relationship UserBlock) (stop bool))
- func (k Keeper) IterateChainLinks(ctx sdk.Context, fn func(index int64, chainLink ChainLink) (stop bool))
- func (k Keeper) IterateDTagTransferRequests(ctx sdk.Context, ...)
- func (k Keeper) IterateDTags(ctx sdk.Context, fn func(index int64, dTag string, value []byte) (stop bool))
- func (k Keeper) IterateRelationships(ctx sdk.Context, fn func(index int64, relationship Relationship) (stop bool))
- type Pictures
- func (*Pictures) Descriptor() ([]byte, []int)
- func (this *Pictures) Equal(that interface{}) bool
- func (m *Pictures) GetCover() string
- func (m *Pictures) GetProfile() string
- func (m *Pictures) Marshal() (dAtA []byte, err error)
- func (m *Pictures) MarshalTo(dAtA []byte) (int, error)
- func (m *Pictures) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pictures) ProtoMessage()
- func (m *Pictures) Reset()
- func (m *Pictures) Size() (n int)
- func (m *Pictures) String() string
- func (m *Pictures) Unmarshal(dAtA []byte) error
- func (m *Pictures) XXX_DiscardUnknown()
- func (m *Pictures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pictures) XXX_Merge(src proto.Message)
- func (m *Pictures) XXX_Size() int
- func (m *Pictures) XXX_Unmarshal(b []byte) error
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)
- func (p *Profile) GetAccount() authtypes.AccountI
- func (p *Profile) GetAccountNumber() uint64
- func (p *Profile) GetAddress() sdk.AccAddress
- func (p *Profile) GetDelegatedFree() sdk.Coins
- func (p *Profile) GetDelegatedVesting() sdk.Coins
- func (p *Profile) GetEndTime() int64
- func (p *Profile) GetOriginalVesting() sdk.Coins
- func (p *Profile) GetPubKey() cryptotypes.PubKey
- func (p *Profile) GetSequence() uint64
- func (p *Profile) GetStartTime() int64
- func (p *Profile) GetVestedCoins(blockTime time.Time) sdk.Coins
- func (p *Profile) GetVestingCoins(blockTime time.Time) sdk.Coins
- func (p *Profile) LockedCoins(blockTime time.Time) sdk.Coins
- func (m *Profile) Marshal() (dAtA []byte, err error)
- func (p *Profile) MarshalJSON() ([]byte, error)
- func (m *Profile) MarshalTo(dAtA []byte) (int, error)
- func (m *Profile) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Profile) MarshalYAML() (interface{}, error)
- func (*Profile) ProtoMessage()
- func (m *Profile) Reset()
- func (p *Profile) SetAccountNumber(accountNumber uint64) error
- func (p *Profile) SetAddress(addr sdk.AccAddress) error
- func (p *Profile) SetPubKey(pubKey cryptotypes.PubKey) error
- func (p *Profile) SetSequence(sequence uint64) error
- func (m *Profile) Size() (n int)
- func (p *Profile) String() string
- func (p *Profile) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
- func (p *Profile) TrackUndelegation(amount sdk.Coins)
- func (m *Profile) Unmarshal(dAtA []byte) error
- func (p *Profile) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *Profile) XXX_DiscardUnknown()
- func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Profile) XXX_Merge(src proto.Message)
- func (m *Profile) XXX_Size() int
- func (m *Profile) XXX_Unmarshal(b []byte) error
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)
- func (this *Proof) Equal(that interface{}) bool
- func (m *Proof) Marshal() (dAtA []byte, err error)
- func (m *Proof) MarshalTo(dAtA []byte) (int, error)
- func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Proof) ProtoMessage()
- func (m *Proof) Reset()
- func (m *Proof) Size() (n int)
- func (m *Proof) String() string
- func (m *Proof) Unmarshal(dAtA []byte) error
- func (m *Proof) XXX_DiscardUnknown()
- func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proof) XXX_Merge(src proto.Message)
- func (m *Proof) XXX_Size() int
- func (m *Proof) XXX_Unmarshal(b []byte) error
- type Relationship
- func (*Relationship) Descriptor() ([]byte, []int)
- func (this *Relationship) Equal(that interface{}) bool
- func (m *Relationship) GetCreator() string
- func (m *Relationship) GetRecipient() string
- func (m *Relationship) GetSubspaceID() string
- func (m *Relationship) Marshal() (dAtA []byte, err error)
- func (m *Relationship) MarshalTo(dAtA []byte) (int, error)
- func (m *Relationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Relationship) ProtoMessage()
- func (m *Relationship) Reset()
- func (m *Relationship) Size() (n int)
- func (m *Relationship) String() string
- func (m *Relationship) Unmarshal(dAtA []byte) error
- func (m *Relationship) XXX_DiscardUnknown()
- func (m *Relationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Relationship) XXX_Merge(src proto.Message)
- func (m *Relationship) XXX_Size() int
- func (m *Relationship) XXX_Unmarshal(b []byte) error
- type UserBlock
- func (*UserBlock) Descriptor() ([]byte, []int)
- func (this *UserBlock) Equal(that interface{}) bool
- func (m *UserBlock) GetBlocked() string
- func (m *UserBlock) GetBlocker() string
- func (m *UserBlock) GetReason() string
- func (m *UserBlock) GetSubspaceID() string
- func (m *UserBlock) Marshal() (dAtA []byte, err error)
- func (m *UserBlock) MarshalTo(dAtA []byte) (int, error)
- func (m *UserBlock) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserBlock) ProtoMessage()
- func (m *UserBlock) Reset()
- func (m *UserBlock) Size() (n int)
- func (m *UserBlock) String() string
- func (m *UserBlock) Unmarshal(dAtA []byte) error
- func (m *UserBlock) XXX_DiscardUnknown()
- func (m *UserBlock) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserBlock) XXX_Merge(src proto.Message)
- func (m *UserBlock) XXX_Size() int
- func (m *UserBlock) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var ( DTagPrefix = []byte("dtag") DTagTransferRequestPrefix = []byte("transfer_request") RelationshipsStorePrefix = []byte("relationships") UsersBlocksStorePrefix = []byte("users_blocks") ChainLinksPrefix = []byte("chain_links") UserApplicationLinkPrefix = []byte("user_application_link") ApplicationLinkClientIDPrefix = []byte("client_id") )
var ( ErrInvalidLengthModelsChainLinks = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModelsChainLinks = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModelsChainLinks = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func ApplicationLinkClientIDKey ¶
ApplicationLinkClientIDKey returns the key used to store the reference to the application link associated with the specified client id
func BlockerPrefix ¶
BlockerPrefix returns the store prefix used to store the blocks created by the given blocker
func BlockerSubspacePrefix ¶
BlockerSubspacePrefix returns the store prefix used to store the blocks that the given blocker has created inside the specified subspace
func ChainLinksStoreKey ¶
ChainLinksStoreKey returns the store key used to store the chain links containing the given data
func DTagStoreKey ¶
DTagStoreKey turns a DTag into the key used to store the address associated with it into the store
func DTagTransferRequestStoreKey ¶
DTagTransferRequestStoreKey returns the store key used to save the DTag transfer request made from the sender towards the recipient
func IncomingDTagTransferRequestsPrefix ¶
IncomingDTagTransferRequestsPrefix returns the prefix used to store all the DTag transfer requests that have been made towards the given recipient
func MigrateStore ¶
func MigrateStore(ctx sdk.Context, ak authkeeper.AccountKeeper, storeKey sdk.StoreKey, amino *codec.LegacyAmino, cdc codec.BinaryCodec) error
MigrateStore performs in-place store migrations from v4 to v5 The migration includes:
- migrating all the profiles to have the proper Protobuf type - delete all the relationships - delete all the user blocks
NOTE: This method must be called AFTER the migration from v0 to v1 of the x/relationships module.
If this order is not preserved, all relationships and blocks WILL BE DELETED.
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RelationshipsStoreKey ¶
RelationshipsStoreKey returns the store key used to store the relationships containing the given data
func UserApplicationLinkKey ¶
UserApplicationLinkKey returns the key used to store the data about the application link of the given user for the specified application and username
func UserApplicationLinksPrefix ¶
UserApplicationLinksPrefix returns the store prefix used to identify all the application links for the given user
func UserBlockStoreKey ¶
UserBlockStoreKey returns the store key used to save the block made by the given blocker, inside the specified subspace and towards the given blocked user
func UserChainLinksPrefix ¶
UserChainLinksPrefix returns the store prefix used to identify all the chain links for the given user
func UserRelationshipsPrefix ¶
UserRelationshipsPrefix returns the prefix used to store all relationships created by the user with the given address
func UserRelationshipsSubspacePrefix ¶
UserRelationshipsSubspacePrefix returns the prefix used to store all the relationships created by the user with the given address for the subspace having the given id
Types ¶
type AddressData ¶
type AddressData interface { proto.Message // Validate checks the validity of the AddressData Validate() error // GetValue returns the address value GetValue() string // VerifyPubKey verifies that the given public key is associated with this address data VerifyPubKey(key cryptotypes.PubKey) (bool, error) }
AddressData is an interface representing a generic external chain address
type Base58Address ¶
type Base58Address struct { // Value contains the Base58-encoded address Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty" yaml:"value"` }
Base58Address represents a Base58-encoded address
func (*Base58Address) Descriptor ¶
func (*Base58Address) Descriptor() ([]byte, []int)
func (*Base58Address) Equal ¶
func (this *Base58Address) Equal(that interface{}) bool
func (Base58Address) GetValue ¶
func (b Base58Address) GetValue() string
GetValue implements AddressData
func (*Base58Address) Marshal ¶
func (m *Base58Address) Marshal() (dAtA []byte, err error)
func (*Base58Address) MarshalToSizedBuffer ¶
func (m *Base58Address) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Base58Address) ProtoMessage ¶
func (*Base58Address) ProtoMessage()
func (*Base58Address) Reset ¶
func (m *Base58Address) Reset()
func (*Base58Address) Size ¶
func (m *Base58Address) Size() (n int)
func (*Base58Address) String ¶
func (m *Base58Address) String() string
func (*Base58Address) Unmarshal ¶
func (m *Base58Address) Unmarshal(dAtA []byte) error
func (Base58Address) Validate ¶
func (b Base58Address) Validate() error
Validate implements AddressData
func (Base58Address) VerifyPubKey ¶
func (b Base58Address) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
VerifyPubKey implements AddressData
func (*Base58Address) XXX_DiscardUnknown ¶
func (m *Base58Address) XXX_DiscardUnknown()
func (*Base58Address) XXX_Marshal ¶
func (m *Base58Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Base58Address) XXX_Merge ¶
func (m *Base58Address) XXX_Merge(src proto.Message)
func (*Base58Address) XXX_Size ¶
func (m *Base58Address) XXX_Size() int
func (*Base58Address) XXX_Unmarshal ¶
func (m *Base58Address) XXX_Unmarshal(b []byte) error
type Bech32Address ¶
type Bech32Address struct { // Value represents the Bech-32 encoded address value Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty" yaml:"value"` // Prefix represents the HRP of the Bech32 address Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty" yaml:"prefix"` }
Bech32Address represents a Bech32-encoded address
func (*Bech32Address) Descriptor ¶
func (*Bech32Address) Descriptor() ([]byte, []int)
func (*Bech32Address) Equal ¶
func (this *Bech32Address) Equal(that interface{}) bool
func (Bech32Address) GetValue ¶
func (b Bech32Address) GetValue() string
GetValue implements AddressData
func (*Bech32Address) Marshal ¶
func (m *Bech32Address) Marshal() (dAtA []byte, err error)
func (*Bech32Address) MarshalToSizedBuffer ¶
func (m *Bech32Address) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Bech32Address) ProtoMessage ¶
func (*Bech32Address) ProtoMessage()
func (*Bech32Address) Reset ¶
func (m *Bech32Address) Reset()
func (*Bech32Address) Size ¶
func (m *Bech32Address) Size() (n int)
func (*Bech32Address) String ¶
func (m *Bech32Address) String() string
func (*Bech32Address) Unmarshal ¶
func (m *Bech32Address) Unmarshal(dAtA []byte) error
func (Bech32Address) Validate ¶
func (b Bech32Address) Validate() error
Validate implements AddressData
func (Bech32Address) VerifyPubKey ¶
func (b Bech32Address) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
VerifyPubKey implements AddressData
func (*Bech32Address) XXX_DiscardUnknown ¶
func (m *Bech32Address) XXX_DiscardUnknown()
func (*Bech32Address) XXX_Marshal ¶
func (m *Bech32Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Bech32Address) XXX_Merge ¶
func (m *Bech32Address) XXX_Merge(src proto.Message)
func (*Bech32Address) XXX_Size ¶
func (m *Bech32Address) XXX_Size() int
func (*Bech32Address) XXX_Unmarshal ¶
func (m *Bech32Address) XXX_Unmarshal(b []byte) error
type ChainConfig ¶
type ChainConfig struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" yaml:"name"`
}
ChainConfig contains the data of the chain with which the link is made.
func (*ChainConfig) Descriptor ¶
func (*ChainConfig) Descriptor() ([]byte, []int)
func (*ChainConfig) Equal ¶
func (this *ChainConfig) Equal(that interface{}) bool
func (*ChainConfig) Marshal ¶
func (m *ChainConfig) Marshal() (dAtA []byte, err error)
func (*ChainConfig) MarshalToSizedBuffer ¶
func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ChainConfig) ProtoMessage ¶
func (*ChainConfig) ProtoMessage()
func (*ChainConfig) Reset ¶
func (m *ChainConfig) Reset()
func (*ChainConfig) Size ¶
func (m *ChainConfig) Size() (n int)
func (*ChainConfig) String ¶
func (m *ChainConfig) String() string
func (*ChainConfig) Unmarshal ¶
func (m *ChainConfig) Unmarshal(dAtA []byte) error
func (*ChainConfig) XXX_DiscardUnknown ¶
func (m *ChainConfig) XXX_DiscardUnknown()
func (*ChainConfig) XXX_Marshal ¶
func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainConfig) XXX_Merge ¶
func (m *ChainConfig) XXX_Merge(src proto.Message)
func (*ChainConfig) XXX_Size ¶
func (m *ChainConfig) XXX_Size() int
func (*ChainConfig) XXX_Unmarshal ¶
func (m *ChainConfig) XXX_Unmarshal(b []byte) error
type ChainLink ¶
type ChainLink struct { // User defines the destination profile address to link User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" yaml:"user"` // Address contains the data of the external chain address to be connected // with the Desmos profile Address *types.Any `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty" yaml:"address"` // Proof contains the ownership proof of the external chain address Proof Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof" yaml:"proof"` // ChainConfig contains the configuration of the external chain ChainConfig ChainConfig `protobuf:"bytes,4,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config" yaml:"chain_config"` // CreationTime represents the time in which the link has been created CreationTime time.Time `protobuf:"bytes,5,opt,name=creation_time,json=creationTime,proto3,stdtime" json:"creation_time" yaml:"creation_time"` }
ChainLink contains the data representing either an inter- or cross- chain link
func (*ChainLink) Descriptor ¶
func (*ChainLink) MarshalToSizedBuffer ¶
func (*ChainLink) ProtoMessage ¶
func (*ChainLink) ProtoMessage()
func (*ChainLink) XXX_DiscardUnknown ¶
func (m *ChainLink) XXX_DiscardUnknown()
func (*ChainLink) XXX_Marshal ¶
func (*ChainLink) XXX_Unmarshal ¶
type HexAddress ¶
type HexAddress struct { // Value represents the hex address value Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty" yaml:"value"` // Prefix represents the optional prefix used during address encoding (e.g. // 0x) Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty" yaml:"prefix"` }
HexAddress represents an Hex-encoded address NOTE: Currently it only supports keccak256-uncompressed addresses
func (*HexAddress) Descriptor ¶
func (*HexAddress) Descriptor() ([]byte, []int)
func (*HexAddress) Equal ¶
func (this *HexAddress) Equal(that interface{}) bool
func (*HexAddress) Marshal ¶
func (m *HexAddress) Marshal() (dAtA []byte, err error)
func (*HexAddress) MarshalToSizedBuffer ¶
func (m *HexAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HexAddress) ProtoMessage ¶
func (*HexAddress) ProtoMessage()
func (*HexAddress) Reset ¶
func (m *HexAddress) Reset()
func (*HexAddress) Size ¶
func (m *HexAddress) Size() (n int)
func (*HexAddress) String ¶
func (m *HexAddress) String() string
func (*HexAddress) Unmarshal ¶
func (m *HexAddress) Unmarshal(dAtA []byte) error
func (HexAddress) VerifyPubKey ¶
func (h HexAddress) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
VerifyPubKey implements AddressData
func (*HexAddress) XXX_DiscardUnknown ¶
func (m *HexAddress) XXX_DiscardUnknown()
func (*HexAddress) XXX_Marshal ¶
func (m *HexAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HexAddress) XXX_Merge ¶
func (m *HexAddress) XXX_Merge(src proto.Message)
func (*HexAddress) XXX_Size ¶
func (m *HexAddress) XXX_Size() int
func (*HexAddress) XXX_Unmarshal ¶
func (m *HexAddress) XXX_Unmarshal(b []byte) error
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) DeleteBlocks ¶
func (Keeper) DeleteRelationships ¶
func (Keeper) GetRelationships ¶
func (k Keeper) GetRelationships(ctx sdk.Context) []Relationship
func (Keeper) IterateApplicationLinkClientIDKeys ¶
func (Keeper) IterateApplicationLinks ¶
func (Keeper) IterateBlocks ¶
func (Keeper) IterateChainLinks ¶
func (Keeper) IterateDTagTransferRequests ¶
func (Keeper) IterateDTags ¶
func (Keeper) IterateRelationships ¶
type Pictures ¶
type Pictures struct { // Profile contains the URL to the profile picture Profile string `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty" yaml:"profile"` // Cover contains the URL to the cover picture Cover string `protobuf:"bytes,2,opt,name=cover,proto3" json:"cover,omitempty" yaml:"cover"` }
Pictures contains the data of a user profile's related pictures
func (*Pictures) Descriptor ¶
func (*Pictures) GetProfile ¶
func (*Pictures) MarshalToSizedBuffer ¶
func (*Pictures) ProtoMessage ¶
func (*Pictures) ProtoMessage()
func (*Pictures) XXX_DiscardUnknown ¶
func (m *Pictures) XXX_DiscardUnknown()
func (*Pictures) XXX_Marshal ¶
func (*Pictures) XXX_Unmarshal ¶
type Profile ¶
type Profile struct { // Account represents the base Cosmos account associated with this profile Account *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // DTag represents the unique tag of this profile DTag string `protobuf:"bytes,2,opt,name=dtag,proto3" json:"dtag,omitempty" yaml:"dtag"` // Nickname contains the custom human readable name of the profile Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty" yaml:"nickname"` // Bio contains the biography of the profile Bio string `protobuf:"bytes,4,opt,name=bio,proto3" json:"bio,omitempty" yaml:"bio"` // Pictures contains the data about the pictures associated with he profile Pictures Pictures `protobuf:"bytes,5,opt,name=pictures,proto3" json:"pictures" yaml:"pictures"` // CreationTime represents the time in which the profile has been created CreationDate time.Time `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"` }
Profile represents a generic first on Desmos, containing the information of a single user
func NewProfile ¶
func NewProfile( dTag string, nickname, bio string, pictures Pictures, creationDate time.Time, account authtypes.AccountI, ) (*Profile, error)
NewProfile builds a new profile having the given DTag, creator and creation date
func (*Profile) Descriptor ¶
func (*Profile) GetAccount ¶
GetAccount returns the underlying account as an authtypes.AccountI instance
func (*Profile) GetAccountNumber ¶
GetAccountNumber implements authtypes.AccountI
func (*Profile) GetAddress ¶
func (p *Profile) GetAddress() sdk.AccAddress
GetAddress implements authtypes.AccountI
func (*Profile) GetDelegatedFree ¶
GetDelegatedFree implements exported.VestingAccount
func (*Profile) GetDelegatedVesting ¶
GetDelegatedVesting implements exported.VestingAccount
func (*Profile) GetEndTime ¶
GetEndTime implements exported.VestingAccount
func (*Profile) GetOriginalVesting ¶
GetOriginalVesting implements exported.VestingAccount
func (*Profile) GetPubKey ¶
func (p *Profile) GetPubKey() cryptotypes.PubKey
GetPubKey implements authtypes.AccountI
func (*Profile) GetSequence ¶
GetSequence implements authtypes.AccountI
func (*Profile) GetStartTime ¶
GetStartTime implements exported.VestingAccount
func (*Profile) GetVestedCoins ¶
GetVestedCoins implements exported.VestingAccount
func (*Profile) GetVestingCoins ¶
GetVestingCoins implements exported.VestingAccount
func (*Profile) LockedCoins ¶
LockedCoins implements exported.VestingAccount
func (*Profile) MarshalJSON ¶
MarshalJSON returns the JSON representation of a Profile.
func (*Profile) MarshalToSizedBuffer ¶
func (*Profile) MarshalYAML ¶
MarshalYAML returns the YAML representation of a Profile.
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) SetAccountNumber ¶
SetAccountNumber implements authtypes.AccountI
func (*Profile) SetAddress ¶
func (p *Profile) SetAddress(addr sdk.AccAddress) error
SetAddress implements authtypes.AccountI
func (*Profile) SetPubKey ¶
func (p *Profile) SetPubKey(pubKey cryptotypes.PubKey) error
SetPubKey implements authtypes.AccountI
func (*Profile) SetSequence ¶
SetSequence implements authtypes.AccountI
func (*Profile) TrackDelegation ¶
TrackDelegation implements exported.VestingAccount
func (*Profile) TrackUndelegation ¶
TrackUndelegation implements exported.VestingAccount
func (*Profile) UnpackInterfaces ¶
func (p *Profile) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (*Profile) XXX_DiscardUnknown ¶
func (m *Profile) XXX_DiscardUnknown()
func (*Profile) XXX_Marshal ¶
func (*Profile) XXX_Unmarshal ¶
type Proof ¶
type Proof struct { // PubKey represents the public key associated with the address for which to // prove the ownership PubKey *types.Any `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty" yaml:"pub_key"` // Signature represents the hex-encoded signature of the PlainText value Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" yaml:"signature"` // PlainText represents the hex-encoded value signed in order to produce the // Signature PlainText string `protobuf:"bytes,3,opt,name=plain_text,json=plainText,proto3" json:"plain_text,omitempty" yaml:"plain_text"` }
Proof contains all the data used to verify a signature when linking an account to a profile
func (*Proof) Descriptor ¶
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) XXX_DiscardUnknown ¶
func (m *Proof) XXX_DiscardUnknown()
func (*Proof) XXX_Marshal ¶
func (*Proof) XXX_Unmarshal ¶
type Relationship ¶
type Relationship struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"` Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty" yaml:"recipient"` SubspaceID string `protobuf:"bytes,3,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace"` }
Relationship is the struct of a relationship. It represent the concept of "follow" of traditional social networks.
func (*Relationship) Descriptor ¶
func (*Relationship) Descriptor() ([]byte, []int)
func (*Relationship) Equal ¶
func (this *Relationship) Equal(that interface{}) bool
func (*Relationship) GetCreator ¶
func (m *Relationship) GetCreator() string
func (*Relationship) GetRecipient ¶
func (m *Relationship) GetRecipient() string
func (*Relationship) GetSubspaceID ¶
func (m *Relationship) GetSubspaceID() string
func (*Relationship) Marshal ¶
func (m *Relationship) Marshal() (dAtA []byte, err error)
func (*Relationship) MarshalToSizedBuffer ¶
func (m *Relationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Relationship) ProtoMessage ¶
func (*Relationship) ProtoMessage()
func (*Relationship) Reset ¶
func (m *Relationship) Reset()
func (*Relationship) Size ¶
func (m *Relationship) Size() (n int)
func (*Relationship) String ¶
func (m *Relationship) String() string
func (*Relationship) Unmarshal ¶
func (m *Relationship) Unmarshal(dAtA []byte) error
func (*Relationship) XXX_DiscardUnknown ¶
func (m *Relationship) XXX_DiscardUnknown()
func (*Relationship) XXX_Marshal ¶
func (m *Relationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Relationship) XXX_Merge ¶
func (m *Relationship) XXX_Merge(src proto.Message)
func (*Relationship) XXX_Size ¶
func (m *Relationship) XXX_Size() int
func (*Relationship) XXX_Unmarshal ¶
func (m *Relationship) XXX_Unmarshal(b []byte) error
type UserBlock ¶
type UserBlock struct { // Blocker represents the address of the user blocking another one Blocker string `protobuf:"bytes,1,opt,name=blocker,proto3" json:"blocker,omitempty" yaml:"blocker"` // Blocked represents the address of the blocked user Blocked string `protobuf:"bytes,2,opt,name=blocked,proto3" json:"blocked,omitempty" yaml:"blocked"` // Reason represents the optional reason the user has been blocked for. Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty" yaml:"reason"` // SubspaceID represents the ID of the subspace inside which the user should // be blocked SubspaceID string `protobuf:"bytes,4,opt,name=subspace_id,json=subspaceId,proto3" json:"subspace_id,omitempty" yaml:"subspace"` }
UserBlock represents the fact that the Blocker has blocked the given Blocked user.
func (*UserBlock) Descriptor ¶
func (*UserBlock) GetBlocked ¶
func (*UserBlock) GetBlocker ¶
func (*UserBlock) GetSubspaceID ¶
func (*UserBlock) MarshalToSizedBuffer ¶
func (*UserBlock) ProtoMessage ¶
func (*UserBlock) ProtoMessage()
func (*UserBlock) XXX_DiscardUnknown ¶
func (m *UserBlock) XXX_DiscardUnknown()