types

package
v0.0.0-...-0943177 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 58 Imported by: 0

Documentation

Overview

Package types

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ErrIBCTimeout         = "ibc connection timeout"
	ErrRequestExpired     = "oracle request expired"
	ErrRequestFailed      = "oracle request failed"
	ErrInvalidSignature   = "invalid signature"
	ErrInvalidAppUsername = "invalid application username"
)
View Source
const (
	EventTypeProfileSaved              = "save_profile"
	EventTypeProfileDeleted            = "delete_profile"
	EventTypeDTagTransferRequest       = "create_dtag_transfer_request"
	EventTypeDTagTransferAccept        = "accept_dtag_transfer_request"
	EventTypeDTagTransferRefuse        = "refuse_dtag_transfer_request"
	EventTypeDTagTransferCancel        = "cancel_dtag_transfer_request"
	EventTypeLinkChainAccount          = "link_chain_account"
	EventTypeUnlinkChainAccount        = "unlink_chain_account"
	EventTypeSetDefaultExternalAddress = "set_default_external_address"
	EventTypeLinkChainAccountPacket    = "link_chain_account_packet"
	EventTypePacket                    = "receive_profiles_verification_packet"
	EventTypeTimeout                   = "timeout"
	EventTypesApplicationLinkCreated   = "link_application"
	EventTypeApplicationLinkDeleted    = "unlink_application"
	EventTypesApplicationLinkSaved     = "application_link_saved"

	AttributeKeyProfileDTag                   = "profile_dtag"
	AttributeKeyProfileCreator                = "profile_creator"
	AttributeKeyProfileCreationTime           = "profile_creation_time"
	AttributeKeyRequestReceiver               = "request_receiver"
	AttributeKeyRequestSender                 = "request_sender"
	AttributeKeyDTagToTrade                   = "dtag_to_trade"
	AttributeKeyNewDTag                       = "new_dtag"
	AttributeKeyChainLinkExternalAddress      = "chain_link_external_address"
	AttributeKeyChainLinkOwner                = "chain_link_owner"
	AttributeKeyChainLinkChainName            = "chain_link_chain_name"
	AttributeKeyChainLinkCreationTime         = "chain_link_creation_time"
	AttributeKeyApplicationLinkExpirationTime = "application_link_expiration_time"
	AttributeKeyAckSuccess                    = "success"
	AttributeKeyUser                          = "user"
	AttributeKeyApplicationName               = "application_name"
	AttributeKeyApplicationUsername           = "application_username"
	AttributeKeyApplicationLinkCreationTime   = "application_link_creation_time"
	AttributeKeyOracleID                      = "oracle_id"
	AttributeKeyClientID                      = "client_id"
	AttributeKeyRequestID                     = "request_id"
	AttributeKeyResolveStatus                 = "resolve_status"
	AttributeKeyAck                           = "acknowledgement"
	AttributeKeyAckError                      = "error"

	AttributeValueCategory = ModuleName
)
View Source
const (
	ModuleName = "profiles"
	RouterKey  = ModuleName
	StoreKey   = ModuleName

	ActionSaveProfile               = "save_profile"
	ActionDeleteProfile             = "delete_profile"
	ActionRequestDTag               = "request_dtag_transfer"
	ActionAcceptDTagTransfer        = "accept_dtag_transfer_request"
	ActionRefuseDTagTransferRequest = "refuse_dtag_transfer_request"
	ActionCancelDTagTransferRequest = "cancel_dtag_transfer_request"
	ActionLinkChainAccount          = "link_chain_account"
	ActionUnlinkChainAccount        = "unlink_chain_account"
	ActionLinkApplication           = "link_application"
	ActionUnlinkApplication         = "unlink_application"
	ActionSetDefaultExternalAddress = "set_default_external_address"

	DoNotModify = "[do-not-modify]"

	// IBCPortID is the default port id that profiles module binds to.
	IBCPortID = "ibc-profiles"
)
View Source
const (
	// DefaultParamsSpace represents the default paramspace for the Params keeper
	DefaultParamsSpace           = ModuleName
	FourteenDaysCorrectionFactor = time.Hour * 24 * 14 // This value is the equivalent of 14 days in minutes
)

Variables

View Source
var (

	// AminoCdc references the global x/relationships 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/relationships and
	// defined at the application level.
	AminoCdc = codec.NewAminoCodec(amino)

	ModuleCdc = codec.NewProtoCodec(types.NewInterfaceRegistry())
)
View Source
var (
	ErrInvalidVersion      = sdkerrors.Register(ModuleName, 1, "invalid version")
	ErrMaxProfilesChannels = sdkerrors.Register(ModuleName, 2, "max profiles channels")

	ErrProfileNotFound = sdkerrors.Register(ModuleName, 10, "profile not found")

	ErrInvalidPacketData   = sdkerrors.Register(ModuleName, 31, "invalid packet data type")
	ErrInvalidChainLink    = sdkerrors.Register(ModuleName, 35, "invalid chain link")
	ErrDuplicatedChainLink = sdkerrors.Register(ModuleName, 36, "chain link already exists")
	ErrInvalidAddressData  = sdkerrors.Register(ModuleName, 37, "invalid address data")
	ErrInvalidProof        = sdkerrors.Register(ModuleName, 38, "invalid proof")
)
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 (
	Separator = []byte{0x00}

	// IBCPortKey defines the key to store the port ID in store
	IBCPortKey = []byte{0x01}

	DTagPrefix                    = []byte{0x10}
	DTagTransferRequestPrefix     = []byte{0x11}
	ChainLinksPrefix              = []byte{0x12}
	ApplicationLinkPrefix         = []byte{0x13}
	ApplicationLinkClientIDPrefix = []byte{0x14}

	ChainLinkChainPrefix         = []byte{0x15}
	ApplicationLinkAppPrefix     = []byte{0x16}
	ExpiringAppLinkTimePrefix    = []byte{0x17}
	DefaultExternalAddressPrefix = []byte{0x18}
)
View Source
var (
	ErrInvalidLengthModelsAppLinks        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModelsAppLinks          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModelsAppLinks = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthModelsChainLinks        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModelsChainLinks          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModelsChainLinks = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthModelsDtagRequests        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModelsDtagRequests          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModelsDtagRequests = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthModelsPackets        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModelsPackets          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModelsPackets = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultMinNicknameLength        = sdk.NewInt(2)
	DefaultMaxNicknameLength        = sdk.NewInt(1000) // Longest name on earth count 954 chars
	DefaultRegEx                    = `^[A-Za-z0-9_]+$`
	DefaultMinDTagLength            = sdk.NewInt(3)
	DefaultMaxDTagLength            = sdk.NewInt(30)
	DefaultMaxBioLength             = sdk.NewInt(1000)
	DefaultAppLinksValidityDuration = time.Hour * 24 * 365 // 1 year
)

Default profile paramsModule

View Source
var (
	NicknameParamsKey = []byte("NicknameParams")
	DTagParamsKey     = []byte("DTagParams")
	BioParamsKey      = []byte("MaxBioLen")
	OracleParamsKey   = []byte("OracleParams")
	AppLinksParamsKey = []byte("AppLinksParams")
)

Parameters store keys

View Source
var (
	ErrInvalidLengthModelsParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModelsParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModelsParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthModelsProfile        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModelsProfile          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModelsProfile = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgsAppLinks        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgsAppLinks          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgsAppLinks = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgsChainLinks        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgsChainLinks          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgsChainLinks = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgsDtagRequests        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgsDtagRequests          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgsDtagRequests = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsgsProfile        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsgsProfile          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsgsProfile = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// DefaultRelativePacketTimeoutHeight is the default packet timeout height (in blocks) relative
	// to the current block height of the counterparty chain provided by the client state. The
	// timeout is disabled when set to 0.
	DefaultRelativePacketTimeoutHeight = "0-1000"

	// DefaultRelativePacketTimeoutTimestamp is the default packet timeout timestamp (in nanoseconds)
	// relative to the current block timestamp of the counterparty chain provided by the client
	// state. The timeout is disabled when set to 0. The default is currently set to a 10 minute
	// timeout.
	DefaultRelativePacketTimeoutTimestamp = uint64((time.Duration(10) * time.Minute).Nanoseconds())
)
View Source
var (
	ErrInvalidLengthQueryAppLinks        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQueryAppLinks          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQueryAppLinks = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQueryChainLinks        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQueryChainLinks          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQueryChainLinks = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQueryDtagRequests        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQueryDtagRequests          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQueryDtagRequests = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQueryParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQueryParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQueryParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQueryProfile        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQueryProfile          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQueryProfile = fmt.Errorf("proto: unexpected end of group")
)
View Source
var ApplicationLinkState_name = map[int32]string{
	0: "APPLICATION_LINK_STATE_INITIALIZED_UNSPECIFIED",
	1: "APPLICATION_LINK_STATE_VERIFICATION_STARTED",
	2: "APPLICATION_LINK_STATE_VERIFICATION_ERROR",
	3: "APPLICATION_LINK_STATE_VERIFICATION_SUCCESS",
	4: "APPLICATION_LINK_STATE_TIMED_OUT",
}
View Source
var ApplicationLinkState_value = map[string]int32{
	"APPLICATION_LINK_STATE_INITIALIZED_UNSPECIFIED": 0,
	"APPLICATION_LINK_STATE_VERIFICATION_STARTED":    1,
	"APPLICATION_LINK_STATE_VERIFICATION_ERROR":      2,
	"APPLICATION_LINK_STATE_VERIFICATION_SUCCESS":    3,
	"APPLICATION_LINK_STATE_TIMED_OUT":               4,
}
View Source
var SignatureValueType_name = map[int32]string{
	0: "SIGNATURE_VALUE_TYPE_UNSPECIFIED",
	1: "SIGNATURE_VALUE_TYPE_RAW",
	2: "SIGNATURE_VALUE_TYPE_COSMOS_DIRECT",
	3: "SIGNATURE_VALUE_TYPE_COSMOS_AMINO",
	4: "SIGNATURE_VALUE_TYPE_EVM_PERSONAL_SIGN",
}
View Source
var SignatureValueType_value = map[string]int32{
	"SIGNATURE_VALUE_TYPE_UNSPECIFIED":       0,
	"SIGNATURE_VALUE_TYPE_RAW":               1,
	"SIGNATURE_VALUE_TYPE_COSMOS_DIRECT":     2,
	"SIGNATURE_VALUE_TYPE_COSMOS_AMINO":      3,
	"SIGNATURE_VALUE_TYPE_EVM_PERSONAL_SIGN": 4,
}

Functions

func ApplicationLinkAppKey

func ApplicationLinkAppKey(application string) []byte

ApplicationLinkAppKey returns the key used to store all the application links associated to the given application

func ApplicationLinkAppUsernameKey

func ApplicationLinkAppUsernameKey(application, username string) []byte

ApplicationLinkAppUsernameKey returns the key used to store all the application links for the given application and username

func ApplicationLinkClientIDKey

func ApplicationLinkClientIDKey(clientID string) []byte

ApplicationLinkClientIDKey returns the key used to store the reference to the application link associated with the specified client id

func ApplicationLinkExpiringTimeKey

func ApplicationLinkExpiringTimeKey(expirationTime time.Time, clientID string) []byte

ApplicationLinkExpiringTimeKey returns the key used to store the expirationTime of the application link associated with the given clientID

func ApplicationLinkExpiringTimePrefix

func ApplicationLinkExpiringTimePrefix(expirationTime time.Time) []byte

ApplicationLinkExpiringTimePrefix returns the store prefix used to identify the expiration time for application links

func ApplicationLinkOwnerKey

func ApplicationLinkOwnerKey(application, username, owner string) []byte

ApplicationLinkOwnerKey returns the key used to store the given owner associating it to the application link having the provided application and username

func ChainLinkChainAddressKey

func ChainLinkChainAddressKey(chainName, address string) []byte

ChainLinkChainAddressKey returns the key used to store all the links for the given chain and external address

func ChainLinkChainKey

func ChainLinkChainKey(chainName string) []byte

ChainLinkChainKey returns the key used to store all the chain links associated to the chain with the given name

func ChainLinkOwnerKey

func ChainLinkOwnerKey(chainName, target, owner string) []byte

ChainLinkOwnerKey returns the key to store the owner of the chain link to the given chain and external address

func ChainLinksStoreKey

func ChainLinksStoreKey(user, chainName, address string) []byte

ChainLinksStoreKey returns the store key used to store the chain links containing the given data

func DTagStoreKey

func DTagStoreKey(dTag string) []byte

DTagStoreKey turns a DTag into the key used to store the address associated with it into the store

func DTagTransferRequestStoreKey

func DTagTransferRequestStoreKey(sender, recipient string) []byte

DTagTransferRequestStoreKey returns the store key used to save the DTag transfer request made from the sender towards the recipient

func DefaultExternalAddressKey

func DefaultExternalAddressKey(owner, chainName string) []byte

DefaultExternalAddressKey returns the key used to store the address of the chain link which is set as default external address

func GetApplicationLinkOwnerData

func GetApplicationLinkOwnerData(key []byte) (application, username, owner string)

GetApplicationLinkOwnerData returns the application, username and owner from a given ApplicationLinkOwnerKey

func GetChainLinkOwnerData

func GetChainLinkOwnerData(key []byte) (chainName, target, owner string)

GetChainLinkOwnerData returns the application link chain name, target and owner from the given key

func GetDefaultExternalAddressData

func GetDefaultExternalAddressData(key []byte) (owner string, chainName string)

GetDefaultExternalAddressData returns the owner, chain name from a given DefaultExternalAddressKey

func IncomingDTagTransferRequestsPrefix

func IncomingDTagTransferRequestsPrefix(recipient string) []byte

IncomingDTagTransferRequestsPrefix returns the prefix used to store all the DTag transfer requests that have been made towards the given recipient

func MustMarshalApplicationLink(cdc codec.BinaryCodec, link ApplicationLink) []byte

MustMarshalApplicationLink serializes the given application link using the provided BinaryCodec

func MustMarshalChainLink(cdc codec.BinaryCodec, link ChainLink) []byte

MustMarshalChainLink serializes the given chain link using the provided BinaryCodec

func OwnerDefaultExternalAddressPrefix

func OwnerDefaultExternalAddressPrefix(owner string) []byte

OwnerDefaultExternalAddressPrefix returns the store prefix used to identify all the default external addresses for the given owner

func ParamKeyTable

func ParamKeyTable() paramstypes.KeyTable

ParamKeyTable Key declaration for parameters

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 SignatureToCosmosSignatureData

func SignatureToCosmosSignatureData(unpacker codectypes.AnyUnpacker, s Signature) (signing.SignatureData, error)

SignatureToCosmosSignatureData allows to convert the given Signature to a Cosmos SignatureData instance unpacking the proto.Any instance using the given unpacker.

func UserApplicationLinkKey

func UserApplicationLinkKey(user, application, username string) []byte

UserApplicationLinkKey returns the key used to store the data about the application link of the given user for the specified application and username

func UserApplicationLinksApplicationPrefix

func UserApplicationLinksApplicationPrefix(user, application string) []byte

UserApplicationLinksApplicationPrefix returns the store prefix used to identify all the application links for the given user and application

func UserApplicationLinksPrefix

func UserApplicationLinksPrefix(user string) []byte

UserApplicationLinksPrefix returns the store prefix used to identify all the application links for the given user

func UserChainLinksChainPrefix

func UserChainLinksChainPrefix(user, chainName string) []byte

UserChainLinksChainPrefix returns the store prefix used to identify all the chain links for the given user and chain

func UserChainLinksPrefix

func UserChainLinksPrefix(user string) []byte

UserChainLinksPrefix returns the store prefix used to identify all the chain links for the given user

func ValidateAminoTxValue

func ValidateAminoTxValue(value []byte, expectedMemo string, cdc *codec.LegacyAmino) error

ValidateAminoTxValue tells whether the given value has been properly encoded as an Amino transaction containing the expected value as the memo field value

func ValidateAppLinksParams

func ValidateAppLinksParams(i interface{}) error

func ValidateBioParams

func ValidateBioParams(i interface{}) error

func ValidateDTagParams

func ValidateDTagParams(i interface{}) error

func ValidateDirectTxValue

func ValidateDirectTxValue(value []byte, expectedMemo string, cdc codec.BinaryCodec) error

ValidateDirectTxValue tells whether the given value has been properly encoded as a Protobuf transaction containing the expected value as the memo field value

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis validates the given genesis state and returns an error if something is invalid

func ValidateNicknameParams

func ValidateNicknameParams(i interface{}) error

func ValidateOracleParams

func ValidateOracleParams(i interface{}) error

ValidateOracleParams returns an error if interface does not represent a valid OracleParams instance

func ValidatePersonalSignValue

func ValidatePersonalSignValue(value []byte, expectedValue string) error

ValidatePersonalSignValue tells whether the given value has been properly encoded using the EVM persona_sign specification

func ValidateRawValue

func ValidateRawValue(value []byte, expectedValue string) error

ValidateRawValue tells whether the given value has been properly encoded as a raw value

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

func UnpackAddressData

func UnpackAddressData(unpacker codectypes.AnyUnpacker, addressAny *codectypes.Any) (AddressData, error)

UnpackAddressData deserializes the given any type value as an address data using the provided unpacker

type AppLinksParams

type AppLinksParams struct {
	// Default validity duration before an application link expires
	ValidityDuration time.Duration `` /* 136-byte string literal not displayed */
}

AppLinksParams define the parameters related to the app links

func DefaultAppLinksParams

func DefaultAppLinksParams() AppLinksParams

func NewAppLinksParams

func NewAppLinksParams(validityDuration time.Duration) AppLinksParams

func (*AppLinksParams) Descriptor

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

func (*AppLinksParams) Marshal

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

func (*AppLinksParams) MarshalTo

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

func (*AppLinksParams) MarshalToSizedBuffer

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

func (*AppLinksParams) ProtoMessage

func (*AppLinksParams) ProtoMessage()

func (*AppLinksParams) Reset

func (m *AppLinksParams) Reset()

func (*AppLinksParams) Size

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

func (*AppLinksParams) String

func (m *AppLinksParams) String() string

func (*AppLinksParams) Unmarshal

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

func (*AppLinksParams) XXX_DiscardUnknown

func (m *AppLinksParams) XXX_DiscardUnknown()

func (*AppLinksParams) XXX_Marshal

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

func (*AppLinksParams) XXX_Merge

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

func (*AppLinksParams) XXX_Size

func (m *AppLinksParams) XXX_Size() int

func (*AppLinksParams) XXX_Unmarshal

func (m *AppLinksParams) XXX_Unmarshal(b []byte) error
type ApplicationLink struct {
	//  User to which the link is associated
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty" yaml:"user"`
	// Data contains the details of this specific link
	Data Data `protobuf:"bytes,2,opt,name=data,proto3" json:"data" yaml:"data"`
	// State of the link
	State ApplicationLinkState `protobuf:"varint,3,opt,name=state,proto3,enum=mage.profiles.v3.ApplicationLinkState" json:"state,omitempty" yaml:"state"`
	// OracleRequest represents the request that has been made to the oracle
	OracleRequest OracleRequest `protobuf:"bytes,4,opt,name=oracle_request,json=oracleRequest,proto3" json:"oracle_request" yaml:"oracle_request"`
	// Data coming from the result of the verification.
	// Only available when the state is STATE_SUCCESS
	Result *Result `protobuf:"bytes,5,opt,name=result,proto3" json:"result,omitempty" yaml:"result"`
	// CreationTime represents the time in which the link was created
	CreationTime time.Time `protobuf:"bytes,6,opt,name=creation_time,json=creationTime,proto3,stdtime" json:"creation_time" yaml:"creation_time"`
	// ExpirationTime represents the time in which the link will expire
	ExpirationTime time.Time `protobuf:"bytes,7,opt,name=expiration_time,json=expirationTime,proto3,stdtime" json:"expiration_time" yaml:"expiration_time"`
}

ApplicationLink contains the data of a link to a centralized application

func MustUnmarshalApplicationLink(cdc codec.BinaryCodec, bz []byte) ApplicationLink

MustUnmarshalApplicationLink deserializes the given byte array as an application link using the provided BinaryCodec

func NewApplicationLink(
	user string, data Data, state ApplicationLinkState, oracleRequest OracleRequest, result *Result, creationTime time.Time, expirationTime time.Time,
) ApplicationLink

NewApplicationLink allows to build a new ApplicationLink instance

func (*ApplicationLink) Descriptor

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

func (*ApplicationLink) Equal

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

func (*ApplicationLink) IsVerificationCompleted

func (l *ApplicationLink) IsVerificationCompleted() bool

IsVerificationCompleted tells whether the verification for the link has completed or not

func (*ApplicationLink) IsVerificationOngoing

func (l *ApplicationLink) IsVerificationOngoing() bool

IsVerificationOngoing tells whether the verification for the link is still ongoing

func (*ApplicationLink) Marshal

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

func (*ApplicationLink) MarshalTo

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

func (*ApplicationLink) MarshalToSizedBuffer

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

func (*ApplicationLink) ProtoMessage

func (*ApplicationLink) ProtoMessage()

func (*ApplicationLink) Reset

func (m *ApplicationLink) Reset()

func (*ApplicationLink) Size

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

func (*ApplicationLink) String

func (m *ApplicationLink) String() string

func (*ApplicationLink) Unmarshal

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

func (ApplicationLink) Validate

func (l ApplicationLink) Validate() error

Validate returns an error if the instance does not contain valid data

func (*ApplicationLink) XXX_DiscardUnknown

func (m *ApplicationLink) XXX_DiscardUnknown()

func (*ApplicationLink) XXX_Marshal

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

func (*ApplicationLink) XXX_Merge

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

func (*ApplicationLink) XXX_Size

func (m *ApplicationLink) XXX_Size() int

func (*ApplicationLink) XXX_Unmarshal

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

type ApplicationLinkState

type ApplicationLinkState int32

ApplicationLinkState defines if an application link is in the following states: STARTED, ERRORED, SUCCESSFUL, TIMED_OUT

const (
	// A link has just been initialized
	ApplicationLinkStateInitialized ApplicationLinkState = 0
	// A link has just started being verified
	AppLinkStateVerificationStarted ApplicationLinkState = 1
	// A link has errored during the verification process
	AppLinkStateVerificationError ApplicationLinkState = 2
	// A link has being verified successfully
	AppLinkStateVerificationSuccess ApplicationLinkState = 3
	// A link has timed out while waiting for the verification
	AppLinkStateVerificationTimedOut ApplicationLinkState = 4
)

func (ApplicationLinkState) EnumDescriptor

func (ApplicationLinkState) EnumDescriptor() ([]byte, []int)

func (ApplicationLinkState) String

func (x ApplicationLinkState) String() string

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 NewBase58Address

func NewBase58Address(value string) *Base58Address

NewBase58Address returns a new Base58Address instance

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

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

func NewBech32Address(value, prefix string) *Bech32Address

NewBech32Address returns a new Bech32Address instance

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

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

type BioParams struct {
	MaxLength github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
}

BioParams defines the parameters related to profile biography

func DefaultBioParams

func DefaultBioParams() BioParams

DefaultBioParams returns default params module

func NewBioParams

func NewBioParams(maxLength sdk.Int) BioParams

NewBioParams creates a new BioParams obj

func (*BioParams) Descriptor

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

func (*BioParams) Marshal

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

func (*BioParams) MarshalTo

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

func (*BioParams) MarshalToSizedBuffer

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

func (*BioParams) ProtoMessage

func (*BioParams) ProtoMessage()

func (*BioParams) Reset

func (m *BioParams) Reset()

func (*BioParams) Size

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

func (*BioParams) String

func (m *BioParams) String() string

func (*BioParams) Unmarshal

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

func (*BioParams) XXX_DiscardUnknown

func (m *BioParams) XXX_DiscardUnknown()

func (*BioParams) XXX_Marshal

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

func (*BioParams) XXX_Merge

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

func (*BioParams) XXX_Size

func (m *BioParams) XXX_Size() int

func (*BioParams) XXX_Unmarshal

func (m *BioParams) 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 NewChainConfig

func NewChainConfig(name string) ChainConfig

NewChainConfig allows to build a new ChainConfig instance

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

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

func (c ChainConfig) Validate() error

Validate checks the validity of the ChainConfig

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 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 Mage 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 MustUnmarshalChainLink(codec codec.BinaryCodec, bz []byte) ChainLink

MustUnmarshalChainLink deserializes the given byte array as a chain link using the provided BinaryCodec

func NewChainLink(user string, address AddressData, proof Proof, chainConfig ChainConfig, creationTime time.Time) ChainLink

NewChainLink returns a new ChainLink instance

func (*ChainLink) Descriptor

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

func (*ChainLink) Equal

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

func (ChainLink) GetAddressData

func (link ChainLink) GetAddressData() AddressData

GetAddressData returns the AddressData associated with this chain link

func (*ChainLink) Marshal

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

func (*ChainLink) MarshalTo

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

func (*ChainLink) MarshalToSizedBuffer

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

func (*ChainLink) ProtoMessage

func (*ChainLink) ProtoMessage()

func (*ChainLink) Reset

func (m *ChainLink) Reset()

func (*ChainLink) Size

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

func (*ChainLink) String

func (m *ChainLink) String() string

func (*ChainLink) Unmarshal

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

func (*ChainLink) UnpackInterfaces

func (link *ChainLink) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (ChainLink) Validate

func (link ChainLink) Validate() error

Validate checks the validity of the ChainLink

func (*ChainLink) XXX_DiscardUnknown

func (m *ChainLink) XXX_DiscardUnknown()

func (*ChainLink) XXX_Marshal

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

func (*ChainLink) XXX_Merge

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

func (*ChainLink) XXX_Size

func (m *ChainLink) XXX_Size() int

func (*ChainLink) XXX_Unmarshal

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

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)
	GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
	SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error
	ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error
}

ChannelKeeper defines the expected IBC channel keeper

type ClientKeeper

type ClientKeeper interface {
	GetClientConsensusState(ctx sdk.Context, clientID string) (connection ibcexported.ConsensusState, found bool)
}

ClientKeeper defines the expected IBC client keeper

type ConnectionKeeper

type ConnectionKeeper interface {
	GetConnection(ctx sdk.Context, connectionID string) (connection connectiontypes.ConnectionEnd, found bool)
}

ConnectionKeeper defines the expected IBC connection keeper

type CosmosMultiSignature

type CosmosMultiSignature struct {
	// Bitarray specifies which keys within the multisig are signing
	BitArray *types1.CompactBitArray `protobuf:"bytes,1,opt,name=bit_array,json=bitArray,proto3" json:"bit_array,omitempty" yaml:"bit_array"`
	// Signatures is the signatures of the multi-signature
	Signatures []*types.Any `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty" yaml:"signatures"`
}

CosmosMultiSignature is the signature data for a multisig public key

func NewCosmosMultiSignature

func NewCosmosMultiSignature(bitArray *cryptotypes.CompactBitArray, signatures []Signature) *CosmosMultiSignature

NewCosmosMultiSignature returns a new CosmosMultiSignature instance

func (*CosmosMultiSignature) Descriptor

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

func (*CosmosMultiSignature) Equal

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

func (*CosmosMultiSignature) GetValueType

func (s *CosmosMultiSignature) GetValueType() (SignatureValueType, error)

GetValueType implements CosmosSignature

func (*CosmosMultiSignature) Marshal

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

func (*CosmosMultiSignature) MarshalTo

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

func (*CosmosMultiSignature) MarshalToSizedBuffer

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

func (*CosmosMultiSignature) ProtoMessage

func (*CosmosMultiSignature) ProtoMessage()

func (*CosmosMultiSignature) Reset

func (m *CosmosMultiSignature) Reset()

func (*CosmosMultiSignature) Size

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

func (*CosmosMultiSignature) String

func (m *CosmosMultiSignature) String() string

func (*CosmosMultiSignature) Unmarshal

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

func (*CosmosMultiSignature) UnpackInterfaces

func (s *CosmosMultiSignature) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*CosmosMultiSignature) Validate

func (s *CosmosMultiSignature) Validate(cdc codec.BinaryCodec, amino *codec.LegacyAmino, plainText []byte, owner string) error

Validate implements Signature

func (*CosmosMultiSignature) Verify

func (s *CosmosMultiSignature) Verify(cdc codec.BinaryCodec, pubKey *codectypes.Any, plainText []byte) (cryptotypes.PubKey, error)

Verify implements Signature

func (*CosmosMultiSignature) XXX_DiscardUnknown

func (m *CosmosMultiSignature) XXX_DiscardUnknown()

func (*CosmosMultiSignature) XXX_Marshal

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

func (*CosmosMultiSignature) XXX_Merge

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

func (*CosmosMultiSignature) XXX_Size

func (m *CosmosMultiSignature) XXX_Size() int

func (*CosmosMultiSignature) XXX_Unmarshal

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

type DTagParams

type DTagParams struct {
	RegEx     string                                 `protobuf:"bytes,1,opt,name=reg_ex,json=regEx,proto3" json:"reg_ex,omitempty" yaml:"reg_ex"`
	MinLength github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
	MaxLength github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
}

DTagParams defines the parameters related to profile DTags

func DefaultDTagParams

func DefaultDTagParams() DTagParams

DefaultDTagParams return default paramsModule

func NewDTagParams

func NewDTagParams(regEx string, minLen, maxLen sdk.Int) DTagParams

NewDTagParams creates a new DTagParams obj

func (*DTagParams) Descriptor

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

func (*DTagParams) Marshal

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

func (*DTagParams) MarshalTo

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

func (*DTagParams) MarshalToSizedBuffer

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

func (*DTagParams) ProtoMessage

func (*DTagParams) ProtoMessage()

func (*DTagParams) Reset

func (m *DTagParams) Reset()

func (*DTagParams) Size

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

func (*DTagParams) String

func (m *DTagParams) String() string

func (*DTagParams) Unmarshal

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

func (*DTagParams) XXX_DiscardUnknown

func (m *DTagParams) XXX_DiscardUnknown()

func (*DTagParams) XXX_Marshal

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

func (*DTagParams) XXX_Merge

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

func (*DTagParams) XXX_Size

func (m *DTagParams) XXX_Size() int

func (*DTagParams) XXX_Unmarshal

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

type DTagTransferRequest

type DTagTransferRequest struct {
	// DTagToTrade contains the value of the DTag that should be transferred from
	// the receiver of the request to the sender
	DTagToTrade string `protobuf:"bytes,1,opt,name=dtag_to_trade,json=dtagToTrade,proto3" json:"dtag_to_trade,omitempty" yaml:"dtag_to_trade"`
	// Sender represents the address of the account that sent the request
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// Receiver represents the receiver of the request that, if accepted, will
	// give to the sender their DTag
	Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
}

DTagTransferRequest represent a DTag transfer request between two users

func MustUnmarshalDTagTransferRequest

func MustUnmarshalDTagTransferRequest(cdc codec.BinaryCodec, bz []byte) DTagTransferRequest

MustUnmarshalDTagTransferRequest unmarshalls the given byte array as a DTagTransferRequest using the provided marshaller

func NewDTagTransferRequest

func NewDTagTransferRequest(dTagToTrade string, sender, receiver string) DTagTransferRequest

func (*DTagTransferRequest) Descriptor

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

func (*DTagTransferRequest) Equal

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

func (*DTagTransferRequest) Marshal

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

func (*DTagTransferRequest) MarshalTo

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

func (*DTagTransferRequest) MarshalToSizedBuffer

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

func (*DTagTransferRequest) ProtoMessage

func (*DTagTransferRequest) ProtoMessage()

func (*DTagTransferRequest) Reset

func (m *DTagTransferRequest) Reset()

func (*DTagTransferRequest) Size

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

func (*DTagTransferRequest) String

func (m *DTagTransferRequest) String() string

func (*DTagTransferRequest) Unmarshal

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

func (DTagTransferRequest) Validate

func (request DTagTransferRequest) Validate() error

Validate checks the request validity

func (*DTagTransferRequest) XXX_DiscardUnknown

func (m *DTagTransferRequest) XXX_DiscardUnknown()

func (*DTagTransferRequest) XXX_Marshal

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

func (*DTagTransferRequest) XXX_Merge

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

func (*DTagTransferRequest) XXX_Size

func (m *DTagTransferRequest) XXX_Size() int

func (*DTagTransferRequest) XXX_Unmarshal

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

type Data

type Data struct {
	// The application name (eg. Twitter, GitHub, etc)
	Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty" yaml:"application"`
	// Username on the application (eg. Twitter tag, GitHub profile, etc)
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty" yaml:"username"`
}

Data contains the data associated to a specific user of a generic centralized application

func NewData

func NewData(application, username string) Data

NewData allows to build a new Data instance

func (*Data) Descriptor

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

func (*Data) Equal

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

func (*Data) Marshal

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

func (*Data) MarshalTo

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

func (*Data) MarshalToSizedBuffer

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

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) Reset

func (m *Data) Reset()

func (*Data) Size

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

func (*Data) String

func (m *Data) String() string

func (*Data) Unmarshal

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

func (Data) Validate

func (d Data) Validate() error

Validate returns an error if the instance does not contain valid data

func (*Data) XXX_DiscardUnknown

func (m *Data) XXX_DiscardUnknown()

func (*Data) XXX_Marshal

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

func (*Data) XXX_Merge

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

func (*Data) XXX_Size

func (m *Data) XXX_Size() int

func (*Data) XXX_Unmarshal

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

type DefaultExternalAddressEntry

type DefaultExternalAddressEntry struct {
	Owner     string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	Target    string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
}

DefaultExternalAddressEntry contains the data of a default extnernal address

func NewDefaultExternalAddressEntry

func NewDefaultExternalAddressEntry(owner, chainName, target string) DefaultExternalAddressEntry

NewDefaultExternalAddressEntry returns a new DefaultExternalAddressEntry instance

func (*DefaultExternalAddressEntry) Descriptor

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

func (*DefaultExternalAddressEntry) GetChainName

func (m *DefaultExternalAddressEntry) GetChainName() string

func (*DefaultExternalAddressEntry) GetOwner

func (m *DefaultExternalAddressEntry) GetOwner() string

func (*DefaultExternalAddressEntry) GetTarget

func (m *DefaultExternalAddressEntry) GetTarget() string

func (*DefaultExternalAddressEntry) Marshal

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

func (*DefaultExternalAddressEntry) MarshalTo

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

func (*DefaultExternalAddressEntry) MarshalToSizedBuffer

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

func (*DefaultExternalAddressEntry) ProtoMessage

func (*DefaultExternalAddressEntry) ProtoMessage()

func (*DefaultExternalAddressEntry) Reset

func (m *DefaultExternalAddressEntry) Reset()

func (*DefaultExternalAddressEntry) Size

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

func (*DefaultExternalAddressEntry) String

func (m *DefaultExternalAddressEntry) String() string

func (*DefaultExternalAddressEntry) Unmarshal

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

func (DefaultExternalAddressEntry) Validate

func (data DefaultExternalAddressEntry) Validate() error

Validate implements fmt.Validator

func (*DefaultExternalAddressEntry) XXX_DiscardUnknown

func (m *DefaultExternalAddressEntry) XXX_DiscardUnknown()

func (*DefaultExternalAddressEntry) XXX_Marshal

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

func (*DefaultExternalAddressEntry) XXX_Merge

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

func (*DefaultExternalAddressEntry) XXX_Size

func (m *DefaultExternalAddressEntry) XXX_Size() int

func (*DefaultExternalAddressEntry) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	DTagTransferRequests     []DTagTransferRequest         `` /* 143-byte string literal not displayed */
	ChainLinks               []ChainLink                   `protobuf:"bytes,2,rep,name=chain_links,json=chainLinks,proto3" json:"chain_links" yaml:"chain_links"`
	ApplicationLinks         []ApplicationLink             `protobuf:"bytes,3,rep,name=application_links,json=applicationLinks,proto3" json:"application_links" yaml:"application_links"`
	DefaultExternalAddresses []DefaultExternalAddressEntry `` /* 159-byte string literal not displayed */
	IBCPortID                string                        `protobuf:"bytes,5,opt,name=ibc_port_id,json=ibcPortId,proto3" json:"ibc_port_id,omitempty" yaml:"ibc_port_id"`
	Params                   Params                        `protobuf:"bytes,6,opt,name=params,proto3" json:"params" yaml:"params"`
}

GenesisState defines the profiles module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default GenesisState

func NewGenesisState

func NewGenesisState(
	requests []DTagTransferRequest,
	params Params, portID string,
	chainLinks []ChainLink,
	defaultExternalAddresses []DefaultExternalAddressEntry,
	applicationLinks []ApplicationLink,
) *GenesisState

NewGenesisState creates a new genesis state

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

func (g GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

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

func NewHexAddress(value, prefix string) *HexAddress

NewHexAddress returns a new HexAddress instance

func (*HexAddress) Descriptor

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

func (*HexAddress) Equal

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

func (HexAddress) GetValue

func (h HexAddress) GetValue() string

GetValue implements AddressData

func (*HexAddress) Marshal

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

func (*HexAddress) MarshalTo

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

func (h HexAddress) Validate() error

Validate implements AddressData

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 LinkChainAccountPacketAck

type LinkChainAccountPacketAck struct {
	// SourceAddress contains the external address that has been linked properly
	// with the profile
	SourceAddress string `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty"`
}

LinkChainAccountPacketAck defines a struct for the packet acknowledgment

func (*LinkChainAccountPacketAck) Descriptor

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

func (*LinkChainAccountPacketAck) Marshal

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

func (*LinkChainAccountPacketAck) MarshalTo

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

func (*LinkChainAccountPacketAck) MarshalToSizedBuffer

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

func (*LinkChainAccountPacketAck) ProtoMessage

func (*LinkChainAccountPacketAck) ProtoMessage()

func (*LinkChainAccountPacketAck) Reset

func (m *LinkChainAccountPacketAck) Reset()

func (*LinkChainAccountPacketAck) Size

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

func (*LinkChainAccountPacketAck) String

func (m *LinkChainAccountPacketAck) String() string

func (*LinkChainAccountPacketAck) Unmarshal

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

func (*LinkChainAccountPacketAck) XXX_DiscardUnknown

func (m *LinkChainAccountPacketAck) XXX_DiscardUnknown()

func (*LinkChainAccountPacketAck) XXX_Marshal

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

func (*LinkChainAccountPacketAck) XXX_Merge

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

func (*LinkChainAccountPacketAck) XXX_Size

func (m *LinkChainAccountPacketAck) XXX_Size() int

func (*LinkChainAccountPacketAck) XXX_Unmarshal

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

type LinkChainAccountPacketData

type LinkChainAccountPacketData struct {
	// SourceAddress contains the details of the external chain address
	SourceAddress *types.Any `protobuf:"bytes,1,opt,name=source_address,json=sourceAddress,proto3" json:"source_address,omitempty" yaml:"source_address"`
	// SourceProof represents the proof of ownership of the source address
	SourceProof Proof `protobuf:"bytes,2,opt,name=source_proof,json=sourceProof,proto3" json:"source_proof" yaml:"source_proof"`
	// SourceChainConfig contains the details of the source chain
	SourceChainConfig ChainConfig `` /* 131-byte string literal not displayed */
	// DestinationAddress represents the Mage address of the profile that should
	// be linked with the external account
	DestinationAddress string `` /* 142-byte string literal not displayed */
	// DestinationProof contains the proof of ownership of the DestinationAddress
	DestinationProof Proof `protobuf:"bytes,5,opt,name=destination_proof,json=destinationProof,proto3" json:"destination_proof" yaml:"destination_proof"`
}

LinkChainAccountPacketData defines the object that should be sent inside a MsgSendPacket when wanting to link an external chain to a Mage profile using IBC

func NewLinkChainAccountPacketData

func NewLinkChainAccountPacketData(
	sourceAddress AddressData,
	sourceProof Proof,
	sourceChainConfig ChainConfig,
	destinationAddress string,
	destinationProof Proof,
) LinkChainAccountPacketData

NewLinkChainAccountPacketData returns a new LinkChainAccountPacketData instance

func (*LinkChainAccountPacketData) Descriptor

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

func (LinkChainAccountPacketData) GetBytes

func (p LinkChainAccountPacketData) GetBytes() ([]byte, error)

GetBytes is a helper for serialising

func (*LinkChainAccountPacketData) Marshal

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

func (*LinkChainAccountPacketData) MarshalTo

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

func (*LinkChainAccountPacketData) MarshalToSizedBuffer

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

func (*LinkChainAccountPacketData) ProtoMessage

func (*LinkChainAccountPacketData) ProtoMessage()

func (*LinkChainAccountPacketData) Reset

func (m *LinkChainAccountPacketData) Reset()

func (*LinkChainAccountPacketData) Size

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

func (*LinkChainAccountPacketData) String

func (m *LinkChainAccountPacketData) String() string

func (*LinkChainAccountPacketData) Unmarshal

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

func (LinkChainAccountPacketData) Validate

func (p LinkChainAccountPacketData) Validate() error

Validate validates the LinkChainAccountPacketData

func (*LinkChainAccountPacketData) XXX_DiscardUnknown

func (m *LinkChainAccountPacketData) XXX_DiscardUnknown()

func (*LinkChainAccountPacketData) XXX_Marshal

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

func (*LinkChainAccountPacketData) XXX_Merge

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

func (*LinkChainAccountPacketData) XXX_Size

func (m *LinkChainAccountPacketData) XXX_Size() int

func (*LinkChainAccountPacketData) XXX_Unmarshal

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

type MsgAcceptDTagTransferRequest

type MsgAcceptDTagTransferRequest struct {
	// NewDTag represents the DTag that the request receiver will obtain if they
	// accept the request
	NewDTag string `protobuf:"bytes,1,opt,name=new_dtag,json=newDtag,proto3" json:"new_dtag,omitempty" yaml:"new_dtag"`
	// Sender represents the request sender
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// Receiver represents the request receiver
	Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
}

MsgAcceptDTagTransferRequest represents the message used to accept a DTag transfer request.

func NewMsgAcceptDTagTransferRequest

func NewMsgAcceptDTagTransferRequest(newDTag string, sender, receiver string) *MsgAcceptDTagTransferRequest

NewMsgAcceptDTagTransferRequest is a constructor for MsgAcceptDTagTransferRequest

func (*MsgAcceptDTagTransferRequest) Descriptor

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

func (*MsgAcceptDTagTransferRequest) GetNewDTag

func (m *MsgAcceptDTagTransferRequest) GetNewDTag() string

func (*MsgAcceptDTagTransferRequest) GetReceiver

func (m *MsgAcceptDTagTransferRequest) GetReceiver() string

func (*MsgAcceptDTagTransferRequest) GetSender

func (m *MsgAcceptDTagTransferRequest) GetSender() string

func (MsgAcceptDTagTransferRequest) GetSignBytes

func (msg MsgAcceptDTagTransferRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgAcceptDTagTransferRequest) GetSigners

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

GetSigners defines whose signature is required

func (*MsgAcceptDTagTransferRequest) Marshal

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

func (*MsgAcceptDTagTransferRequest) MarshalTo

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

func (*MsgAcceptDTagTransferRequest) MarshalToSizedBuffer

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

func (*MsgAcceptDTagTransferRequest) ProtoMessage

func (*MsgAcceptDTagTransferRequest) ProtoMessage()

func (*MsgAcceptDTagTransferRequest) Reset

func (m *MsgAcceptDTagTransferRequest) Reset()

func (MsgAcceptDTagTransferRequest) Route

Route should return the name of the module

func (*MsgAcceptDTagTransferRequest) Size

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

func (*MsgAcceptDTagTransferRequest) String

func (MsgAcceptDTagTransferRequest) Type

Type should return the action

func (*MsgAcceptDTagTransferRequest) Unmarshal

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

func (MsgAcceptDTagTransferRequest) ValidateBasic

func (msg MsgAcceptDTagTransferRequest) ValidateBasic() error

func (*MsgAcceptDTagTransferRequest) XXX_DiscardUnknown

func (m *MsgAcceptDTagTransferRequest) XXX_DiscardUnknown()

func (*MsgAcceptDTagTransferRequest) XXX_Marshal

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

func (*MsgAcceptDTagTransferRequest) XXX_Merge

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

func (*MsgAcceptDTagTransferRequest) XXX_Size

func (m *MsgAcceptDTagTransferRequest) XXX_Size() int

func (*MsgAcceptDTagTransferRequest) XXX_Unmarshal

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

type MsgAcceptDTagTransferRequestResponse

type MsgAcceptDTagTransferRequestResponse struct {
}

MsgAcceptDTagTransferRequestResponse defines the Msg/AcceptDTagTransferRequest response.

func (*MsgAcceptDTagTransferRequestResponse) Descriptor

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

func (*MsgAcceptDTagTransferRequestResponse) Marshal

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

func (*MsgAcceptDTagTransferRequestResponse) MarshalTo

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

func (*MsgAcceptDTagTransferRequestResponse) MarshalToSizedBuffer

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

func (*MsgAcceptDTagTransferRequestResponse) ProtoMessage

func (*MsgAcceptDTagTransferRequestResponse) ProtoMessage()

func (*MsgAcceptDTagTransferRequestResponse) Reset

func (*MsgAcceptDTagTransferRequestResponse) Size

func (*MsgAcceptDTagTransferRequestResponse) String

func (*MsgAcceptDTagTransferRequestResponse) Unmarshal

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

func (*MsgAcceptDTagTransferRequestResponse) XXX_DiscardUnknown

func (m *MsgAcceptDTagTransferRequestResponse) XXX_DiscardUnknown()

func (*MsgAcceptDTagTransferRequestResponse) XXX_Marshal

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

func (*MsgAcceptDTagTransferRequestResponse) XXX_Merge

func (*MsgAcceptDTagTransferRequestResponse) XXX_Size

func (*MsgAcceptDTagTransferRequestResponse) XXX_Unmarshal

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

type MsgCancelDTagTransferRequest

type MsgCancelDTagTransferRequest struct {
	// Receiver contains the address of the request receiver
	Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
	// Sender contains the address of the requets sender
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

MsgCancelDTagTransferRequest represents the message used to cancel a DTag transfer request.

func NewMsgCancelDTagTransferRequest

func NewMsgCancelDTagTransferRequest(sender, receiver string) *MsgCancelDTagTransferRequest

NewMsgCancelDTagTransferRequest is a constructor for MsgCancelDTagTransferRequest

func (*MsgCancelDTagTransferRequest) Descriptor

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

func (*MsgCancelDTagTransferRequest) GetReceiver

func (m *MsgCancelDTagTransferRequest) GetReceiver() string

func (*MsgCancelDTagTransferRequest) GetSender

func (m *MsgCancelDTagTransferRequest) GetSender() string

func (MsgCancelDTagTransferRequest) GetSignBytes

func (msg MsgCancelDTagTransferRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgCancelDTagTransferRequest) GetSigners

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

GetSigners defines whose signature is required

func (*MsgCancelDTagTransferRequest) Marshal

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

func (*MsgCancelDTagTransferRequest) MarshalTo

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

func (*MsgCancelDTagTransferRequest) MarshalToSizedBuffer

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

func (*MsgCancelDTagTransferRequest) ProtoMessage

func (*MsgCancelDTagTransferRequest) ProtoMessage()

func (*MsgCancelDTagTransferRequest) Reset

func (m *MsgCancelDTagTransferRequest) Reset()

func (MsgCancelDTagTransferRequest) Route

Route should return the name of the module

func (*MsgCancelDTagTransferRequest) Size

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

func (*MsgCancelDTagTransferRequest) String

func (MsgCancelDTagTransferRequest) Type

Type should return the action

func (*MsgCancelDTagTransferRequest) Unmarshal

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

func (MsgCancelDTagTransferRequest) ValidateBasic

func (msg MsgCancelDTagTransferRequest) ValidateBasic() error

func (*MsgCancelDTagTransferRequest) XXX_DiscardUnknown

func (m *MsgCancelDTagTransferRequest) XXX_DiscardUnknown()

func (*MsgCancelDTagTransferRequest) XXX_Marshal

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

func (*MsgCancelDTagTransferRequest) XXX_Merge

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

func (*MsgCancelDTagTransferRequest) XXX_Size

func (m *MsgCancelDTagTransferRequest) XXX_Size() int

func (*MsgCancelDTagTransferRequest) XXX_Unmarshal

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

type MsgCancelDTagTransferRequestResponse

type MsgCancelDTagTransferRequestResponse struct {
}

MsgCancelDTagTransferRequestResponse represents the Msg/CancelDTagTransferRequest response type.

func (*MsgCancelDTagTransferRequestResponse) Descriptor

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

func (*MsgCancelDTagTransferRequestResponse) Marshal

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

func (*MsgCancelDTagTransferRequestResponse) MarshalTo

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

func (*MsgCancelDTagTransferRequestResponse) MarshalToSizedBuffer

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

func (*MsgCancelDTagTransferRequestResponse) ProtoMessage

func (*MsgCancelDTagTransferRequestResponse) ProtoMessage()

func (*MsgCancelDTagTransferRequestResponse) Reset

func (*MsgCancelDTagTransferRequestResponse) Size

func (*MsgCancelDTagTransferRequestResponse) String

func (*MsgCancelDTagTransferRequestResponse) Unmarshal

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

func (*MsgCancelDTagTransferRequestResponse) XXX_DiscardUnknown

func (m *MsgCancelDTagTransferRequestResponse) XXX_DiscardUnknown()

func (*MsgCancelDTagTransferRequestResponse) XXX_Marshal

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

func (*MsgCancelDTagTransferRequestResponse) XXX_Merge

func (*MsgCancelDTagTransferRequestResponse) XXX_Size

func (*MsgCancelDTagTransferRequestResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// SaveProfile defines the method to save a profile
	SaveProfile(ctx context.Context, in *MsgSaveProfile, opts ...grpc.CallOption) (*MsgSaveProfileResponse, error)
	// DeleteProfile defines the method to delete an existing profile
	DeleteProfile(ctx context.Context, in *MsgDeleteProfile, opts ...grpc.CallOption) (*MsgDeleteProfileResponse, error)
	// RequestDTagTransfer defines the method to request another user to transfer
	// their DTag to you
	RequestDTagTransfer(ctx context.Context, in *MsgRequestDTagTransfer, opts ...grpc.CallOption) (*MsgRequestDTagTransferResponse, error)
	// CancelDTagTransferRequest defines the method to cancel an outgoing DTag
	// transfer request
	CancelDTagTransferRequest(ctx context.Context, in *MsgCancelDTagTransferRequest, opts ...grpc.CallOption) (*MsgCancelDTagTransferRequestResponse, error)
	// AcceptDTagTransferRequest defines the method to accept an incoming DTag
	// transfer request
	AcceptDTagTransferRequest(ctx context.Context, in *MsgAcceptDTagTransferRequest, opts ...grpc.CallOption) (*MsgAcceptDTagTransferRequestResponse, error)
	// RefuseDTagTransferRequest defines the method to refuse an incoming DTag
	// transfer request
	RefuseDTagTransferRequest(ctx context.Context, in *MsgRefuseDTagTransferRequest, opts ...grpc.CallOption) (*MsgRefuseDTagTransferRequestResponse, error)
	// LinkChainAccount defines a method to link an external chain account to a
	// profile
	LinkChainAccount(ctx context.Context, in *MsgLinkChainAccount, opts ...grpc.CallOption) (*MsgLinkChainAccountResponse, error)
	// UnlinkChainAccount defines a method to unlink an external chain account
	// from a profile
	UnlinkChainAccount(ctx context.Context, in *MsgUnlinkChainAccount, opts ...grpc.CallOption) (*MsgUnlinkChainAccountResponse, error)
	// SetDefaultExternalAddress allows to set a specific external address as the
	// default one for a given chain
	SetDefaultExternalAddress(ctx context.Context, in *MsgSetDefaultExternalAddress, opts ...grpc.CallOption) (*MsgSetDefaultExternalAddressResponse, error)
	// LinkApplication defines a method to create a centralized application
	// link
	LinkApplication(ctx context.Context, in *MsgLinkApplication, opts ...grpc.CallOption) (*MsgLinkApplicationResponse, error)
	// UnlinkApplication defines a method to remove a centralized application
	UnlinkApplication(ctx context.Context, in *MsgUnlinkApplication, opts ...grpc.CallOption) (*MsgUnlinkApplicationResponse, 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 MsgDeleteProfile

type MsgDeleteProfile struct {
	// Address associated to the profile to be deleted
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

MsgDeleteProfile represents the message used to delete an existing profile.

func NewMsgDeleteProfile

func NewMsgDeleteProfile(creator string) *MsgDeleteProfile

NewMsgDeleteProfile is a constructor function for MsgDeleteProfile

func (*MsgDeleteProfile) Descriptor

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

func (*MsgDeleteProfile) GetCreator

func (m *MsgDeleteProfile) GetCreator() string

func (MsgDeleteProfile) GetSignBytes

func (msg MsgDeleteProfile) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgDeleteProfile) GetSigners

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

GetSigners defines whose signature is required

func (*MsgDeleteProfile) Marshal

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

func (*MsgDeleteProfile) MarshalTo

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

func (*MsgDeleteProfile) MarshalToSizedBuffer

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

func (*MsgDeleteProfile) ProtoMessage

func (*MsgDeleteProfile) ProtoMessage()

func (*MsgDeleteProfile) Reset

func (m *MsgDeleteProfile) Reset()

func (MsgDeleteProfile) Route

func (msg MsgDeleteProfile) Route() string

Route should return the name of the module

func (*MsgDeleteProfile) Size

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

func (*MsgDeleteProfile) String

func (m *MsgDeleteProfile) String() string

func (MsgDeleteProfile) Type

func (msg MsgDeleteProfile) Type() string

Type should return the action

func (*MsgDeleteProfile) Unmarshal

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

func (MsgDeleteProfile) ValidateBasic

func (msg MsgDeleteProfile) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgDeleteProfile) XXX_DiscardUnknown

func (m *MsgDeleteProfile) XXX_DiscardUnknown()

func (*MsgDeleteProfile) XXX_Marshal

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

func (*MsgDeleteProfile) XXX_Merge

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

func (*MsgDeleteProfile) XXX_Size

func (m *MsgDeleteProfile) XXX_Size() int

func (*MsgDeleteProfile) XXX_Unmarshal

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

type MsgDeleteProfileResponse

type MsgDeleteProfileResponse struct {
}

MsgDeleteProfileResponse defines the Msg/DeleteProfile response type.

func (*MsgDeleteProfileResponse) Descriptor

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

func (*MsgDeleteProfileResponse) Marshal

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

func (*MsgDeleteProfileResponse) MarshalTo

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

func (*MsgDeleteProfileResponse) MarshalToSizedBuffer

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

func (*MsgDeleteProfileResponse) ProtoMessage

func (*MsgDeleteProfileResponse) ProtoMessage()

func (*MsgDeleteProfileResponse) Reset

func (m *MsgDeleteProfileResponse) Reset()

func (*MsgDeleteProfileResponse) Size

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

func (*MsgDeleteProfileResponse) String

func (m *MsgDeleteProfileResponse) String() string

func (*MsgDeleteProfileResponse) Unmarshal

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

func (*MsgDeleteProfileResponse) XXX_DiscardUnknown

func (m *MsgDeleteProfileResponse) XXX_DiscardUnknown()

func (*MsgDeleteProfileResponse) XXX_Marshal

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

func (*MsgDeleteProfileResponse) XXX_Merge

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

func (*MsgDeleteProfileResponse) XXX_Size

func (m *MsgDeleteProfileResponse) XXX_Size() int

func (*MsgDeleteProfileResponse) XXX_Unmarshal

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

type MsgLinkApplication

type MsgLinkApplication struct {
	// The sender of the connection request
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// LinkData contains the data related to the application to which connect
	LinkData Data `protobuf:"bytes,2,opt,name=link_data,json=linkData,proto3" json:"link_data" yaml:"link_data"`
	// Hex encoded call data that will be sent to the data source in order to
	// verify the link
	CallData string `protobuf:"bytes,3,opt,name=call_data,json=callData,proto3" json:"call_data,omitempty" yaml:"call_data"`
	// The port on which the packet will be sent
	SourcePort string `protobuf:"bytes,4,opt,name=source_port,json=sourcePort,proto3" json:"source_port,omitempty" yaml:"source_port"`
	// The channel by which the packet will be sent
	SourceChannel string `protobuf:"bytes,5,opt,name=source_channel,json=sourceChannel,proto3" json:"source_channel,omitempty" yaml:"source_channel"`
	// Timeout height relative to the current block height.
	// The timeout is disabled when set to 0.
	TimeoutHeight types.Height `protobuf:"bytes,6,opt,name=timeout_height,json=timeoutHeight,proto3" json:"timeout_height" yaml:"timeout_height"`
	// Timeout timestamp (in nanoseconds) relative to the current block timestamp.
	// The timeout is disabled when set to 0.
	TimeoutTimestamp uint64 `` /* 135-byte string literal not displayed */
}

MsgLinkApplication defines a msg to connect a profile with a centralized application account (eg. Twitter, GitHub, etc).

func NewMsgLinkApplication

func NewMsgLinkApplication(
	linkData Data, callData string, sender string,
	sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64,
) *MsgLinkApplication

NewMsgLinkApplication creates a new MsgLinkApplication instance

func (*MsgLinkApplication) Descriptor

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

func (*MsgLinkApplication) GetCallData

func (m *MsgLinkApplication) GetCallData() string

func (*MsgLinkApplication) GetLinkData

func (m *MsgLinkApplication) GetLinkData() Data

func (*MsgLinkApplication) GetSender

func (m *MsgLinkApplication) GetSender() string

func (MsgLinkApplication) GetSignBytes

func (msg MsgLinkApplication) GetSignBytes() []byte

GetSignBytes implements sdk.Msg.

func (MsgLinkApplication) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgLinkApplication) GetSourceChannel

func (m *MsgLinkApplication) GetSourceChannel() string

func (*MsgLinkApplication) GetSourcePort

func (m *MsgLinkApplication) GetSourcePort() string

func (*MsgLinkApplication) GetTimeoutHeight

func (m *MsgLinkApplication) GetTimeoutHeight() types.Height

func (*MsgLinkApplication) GetTimeoutTimestamp

func (m *MsgLinkApplication) GetTimeoutTimestamp() uint64

func (*MsgLinkApplication) Marshal

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

func (*MsgLinkApplication) MarshalTo

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

func (*MsgLinkApplication) MarshalToSizedBuffer

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

func (*MsgLinkApplication) ProtoMessage

func (*MsgLinkApplication) ProtoMessage()

func (*MsgLinkApplication) Reset

func (m *MsgLinkApplication) Reset()

func (MsgLinkApplication) Route

func (MsgLinkApplication) Route() string

Route implements sdk.Msg

func (*MsgLinkApplication) Size

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

func (*MsgLinkApplication) String

func (m *MsgLinkApplication) String() string

func (MsgLinkApplication) Type

func (MsgLinkApplication) Type() string

Type implements sdk.Msg

func (*MsgLinkApplication) Unmarshal

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

func (MsgLinkApplication) ValidateBasic

func (msg MsgLinkApplication) ValidateBasic() error

ValidateBasic performs a basic check of the MsgLinkApplication fields. NOTE: timeout height or timestamp values can be 0 to disable the timeout.

func (*MsgLinkApplication) XXX_DiscardUnknown

func (m *MsgLinkApplication) XXX_DiscardUnknown()

func (*MsgLinkApplication) XXX_Marshal

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

func (*MsgLinkApplication) XXX_Merge

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

func (*MsgLinkApplication) XXX_Size

func (m *MsgLinkApplication) XXX_Size() int

func (*MsgLinkApplication) XXX_Unmarshal

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

type MsgLinkApplicationResponse

type MsgLinkApplicationResponse struct {
}

MsgLinkApplicationResponse defines the Msg/LinkApplication response type.

func (*MsgLinkApplicationResponse) Descriptor

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

func (*MsgLinkApplicationResponse) Marshal

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

func (*MsgLinkApplicationResponse) MarshalTo

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

func (*MsgLinkApplicationResponse) MarshalToSizedBuffer

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

func (*MsgLinkApplicationResponse) ProtoMessage

func (*MsgLinkApplicationResponse) ProtoMessage()

func (*MsgLinkApplicationResponse) Reset

func (m *MsgLinkApplicationResponse) Reset()

func (*MsgLinkApplicationResponse) Size

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

func (*MsgLinkApplicationResponse) String

func (m *MsgLinkApplicationResponse) String() string

func (*MsgLinkApplicationResponse) Unmarshal

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

func (*MsgLinkApplicationResponse) XXX_DiscardUnknown

func (m *MsgLinkApplicationResponse) XXX_DiscardUnknown()

func (*MsgLinkApplicationResponse) XXX_Marshal

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

func (*MsgLinkApplicationResponse) XXX_Merge

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

func (*MsgLinkApplicationResponse) XXX_Size

func (m *MsgLinkApplicationResponse) XXX_Size() int

func (*MsgLinkApplicationResponse) XXX_Unmarshal

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

type MsgLinkChainAccount

type MsgLinkChainAccount struct {
	// ChainAddress contains the details of the external chain address to be
	// linked
	ChainAddress *types.Any `protobuf:"bytes,1,opt,name=chain_address,json=chainAddress,proto3" json:"chain_address,omitempty" yaml:"source_address"`
	// Proof contains the proof of ownership of the external chain address
	Proof Proof `protobuf:"bytes,2,opt,name=proof,proto3" json:"proof" yaml:"source_proof"`
	// ChainConfig contains the configuration of the external chain
	ChainConfig ChainConfig `protobuf:"bytes,3,opt,name=chain_config,json=chainConfig,proto3" json:"chain_config" yaml:"source_chain_config"`
	// Signer represents the Mage address associated with the
	// profile to which link the external account
	Signer string `protobuf:"bytes,4,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgLinkChainAccount represents a message to link an account to a profile.

func NewMsgLinkChainAccount

func NewMsgLinkChainAccount(
	chainAddress AddressData,
	proof Proof,
	chainConfig ChainConfig,
	signer string,
) *MsgLinkChainAccount

func (*MsgLinkChainAccount) Descriptor

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

func (*MsgLinkChainAccount) GetChainAddress

func (m *MsgLinkChainAccount) GetChainAddress() *types.Any

func (*MsgLinkChainAccount) GetChainConfig

func (m *MsgLinkChainAccount) GetChainConfig() ChainConfig

func (*MsgLinkChainAccount) GetProof

func (m *MsgLinkChainAccount) GetProof() Proof

func (MsgLinkChainAccount) GetSignBytes

func (msg MsgLinkChainAccount) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (*MsgLinkChainAccount) GetSigner

func (m *MsgLinkChainAccount) GetSigner() string

func (MsgLinkChainAccount) GetSigners

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

GetSigners defines whose signature is required

func (*MsgLinkChainAccount) Marshal

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

func (*MsgLinkChainAccount) MarshalTo

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

func (*MsgLinkChainAccount) MarshalToSizedBuffer

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

func (*MsgLinkChainAccount) ProtoMessage

func (*MsgLinkChainAccount) ProtoMessage()

func (*MsgLinkChainAccount) Reset

func (m *MsgLinkChainAccount) Reset()

func (MsgLinkChainAccount) Route

func (msg MsgLinkChainAccount) Route() string

Route should return the name of the module

func (*MsgLinkChainAccount) Size

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

func (*MsgLinkChainAccount) String

func (m *MsgLinkChainAccount) String() string

func (MsgLinkChainAccount) Type

func (msg MsgLinkChainAccount) Type() string

Type should return the action

func (*MsgLinkChainAccount) Unmarshal

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

func (*MsgLinkChainAccount) UnpackInterfaces

func (msg *MsgLinkChainAccount) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (MsgLinkChainAccount) ValidateBasic

func (msg MsgLinkChainAccount) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgLinkChainAccount) XXX_DiscardUnknown

func (m *MsgLinkChainAccount) XXX_DiscardUnknown()

func (*MsgLinkChainAccount) XXX_Marshal

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

func (*MsgLinkChainAccount) XXX_Merge

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

func (*MsgLinkChainAccount) XXX_Size

func (m *MsgLinkChainAccount) XXX_Size() int

func (*MsgLinkChainAccount) XXX_Unmarshal

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

type MsgLinkChainAccountResponse

type MsgLinkChainAccountResponse struct {
}

MsgLinkChainAccountResponse defines the Msg/LinkAccount response type.

func (*MsgLinkChainAccountResponse) Descriptor

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

func (*MsgLinkChainAccountResponse) Marshal

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

func (*MsgLinkChainAccountResponse) MarshalTo

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

func (*MsgLinkChainAccountResponse) MarshalToSizedBuffer

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

func (*MsgLinkChainAccountResponse) ProtoMessage

func (*MsgLinkChainAccountResponse) ProtoMessage()

func (*MsgLinkChainAccountResponse) Reset

func (m *MsgLinkChainAccountResponse) Reset()

func (*MsgLinkChainAccountResponse) Size

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

func (*MsgLinkChainAccountResponse) String

func (m *MsgLinkChainAccountResponse) String() string

func (*MsgLinkChainAccountResponse) Unmarshal

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

func (*MsgLinkChainAccountResponse) XXX_DiscardUnknown

func (m *MsgLinkChainAccountResponse) XXX_DiscardUnknown()

func (*MsgLinkChainAccountResponse) XXX_Marshal

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

func (*MsgLinkChainAccountResponse) XXX_Merge

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

func (*MsgLinkChainAccountResponse) XXX_Size

func (m *MsgLinkChainAccountResponse) XXX_Size() int

func (*MsgLinkChainAccountResponse) XXX_Unmarshal

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

type MsgRefuseDTagTransferRequest

type MsgRefuseDTagTransferRequest struct {
	// Sender represents the request sender
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// Receiver represents the request receiver
	Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
}

MsgRefuseDTagTransferRequest represents the message used to refuse a DTag transfer request.

func NewMsgRefuseDTagTransferRequest

func NewMsgRefuseDTagTransferRequest(sender, receiver string) *MsgRefuseDTagTransferRequest

NewMsgRefuseDTagTransferRequest is a constructor for MsgRefuseDTagTransferRequest

func (*MsgRefuseDTagTransferRequest) Descriptor

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

func (*MsgRefuseDTagTransferRequest) GetReceiver

func (m *MsgRefuseDTagTransferRequest) GetReceiver() string

func (*MsgRefuseDTagTransferRequest) GetSender

func (m *MsgRefuseDTagTransferRequest) GetSender() string

func (MsgRefuseDTagTransferRequest) GetSignBytes

func (msg MsgRefuseDTagTransferRequest) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgRefuseDTagTransferRequest) GetSigners

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

GetSigners defines whose signature is required

func (*MsgRefuseDTagTransferRequest) Marshal

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

func (*MsgRefuseDTagTransferRequest) MarshalTo

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

func (*MsgRefuseDTagTransferRequest) MarshalToSizedBuffer

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

func (*MsgRefuseDTagTransferRequest) ProtoMessage

func (*MsgRefuseDTagTransferRequest) ProtoMessage()

func (*MsgRefuseDTagTransferRequest) Reset

func (m *MsgRefuseDTagTransferRequest) Reset()

func (MsgRefuseDTagTransferRequest) Route

Route should return the name of the module

func (*MsgRefuseDTagTransferRequest) Size

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

func (*MsgRefuseDTagTransferRequest) String

func (MsgRefuseDTagTransferRequest) Type

Type should return the action

func (*MsgRefuseDTagTransferRequest) Unmarshal

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

func (MsgRefuseDTagTransferRequest) ValidateBasic

func (msg MsgRefuseDTagTransferRequest) ValidateBasic() error

func (*MsgRefuseDTagTransferRequest) XXX_DiscardUnknown

func (m *MsgRefuseDTagTransferRequest) XXX_DiscardUnknown()

func (*MsgRefuseDTagTransferRequest) XXX_Marshal

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

func (*MsgRefuseDTagTransferRequest) XXX_Merge

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

func (*MsgRefuseDTagTransferRequest) XXX_Size

func (m *MsgRefuseDTagTransferRequest) XXX_Size() int

func (*MsgRefuseDTagTransferRequest) XXX_Unmarshal

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

type MsgRefuseDTagTransferRequestResponse

type MsgRefuseDTagTransferRequestResponse struct {
}

MsgRefuseDTagTransferRequestResponse defines the Msg/RefuseDTagTransferRequest response.

func (*MsgRefuseDTagTransferRequestResponse) Descriptor

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

func (*MsgRefuseDTagTransferRequestResponse) Marshal

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

func (*MsgRefuseDTagTransferRequestResponse) MarshalTo

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

func (*MsgRefuseDTagTransferRequestResponse) MarshalToSizedBuffer

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

func (*MsgRefuseDTagTransferRequestResponse) ProtoMessage

func (*MsgRefuseDTagTransferRequestResponse) ProtoMessage()

func (*MsgRefuseDTagTransferRequestResponse) Reset

func (*MsgRefuseDTagTransferRequestResponse) Size

func (*MsgRefuseDTagTransferRequestResponse) String

func (*MsgRefuseDTagTransferRequestResponse) Unmarshal

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

func (*MsgRefuseDTagTransferRequestResponse) XXX_DiscardUnknown

func (m *MsgRefuseDTagTransferRequestResponse) XXX_DiscardUnknown()

func (*MsgRefuseDTagTransferRequestResponse) XXX_Marshal

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

func (*MsgRefuseDTagTransferRequestResponse) XXX_Merge

func (*MsgRefuseDTagTransferRequestResponse) XXX_Size

func (*MsgRefuseDTagTransferRequestResponse) XXX_Unmarshal

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

type MsgRequestDTagTransfer

type MsgRequestDTagTransfer struct {
	// Receiver contains the address of the request receiver that owns the DTag to
	// transfer if the request is accepted
	Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"`
	// Sender contains the address of the request sender that will receive the
	// receiver DTag if the requet is accepted
	Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

MsgRequestDTagTransfer represents the message used to request the DTag transfer to another user.

func NewMsgRequestDTagTransfer

func NewMsgRequestDTagTransfer(sender, receiver string) *MsgRequestDTagTransfer

NewMsgRequestDTagTransfer is a constructor function for MsgRequestDTagTransfer

func (*MsgRequestDTagTransfer) Descriptor

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

func (*MsgRequestDTagTransfer) GetReceiver

func (m *MsgRequestDTagTransfer) GetReceiver() string

func (*MsgRequestDTagTransfer) GetSender

func (m *MsgRequestDTagTransfer) GetSender() string

func (MsgRequestDTagTransfer) GetSignBytes

func (msg MsgRequestDTagTransfer) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgRequestDTagTransfer) GetSigners

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

GetSigners defines whose signature is required

func (*MsgRequestDTagTransfer) Marshal

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

func (*MsgRequestDTagTransfer) MarshalTo

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

func (*MsgRequestDTagTransfer) MarshalToSizedBuffer

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

func (*MsgRequestDTagTransfer) ProtoMessage

func (*MsgRequestDTagTransfer) ProtoMessage()

func (*MsgRequestDTagTransfer) Reset

func (m *MsgRequestDTagTransfer) Reset()

func (MsgRequestDTagTransfer) Route

func (msg MsgRequestDTagTransfer) Route() string

Route should return the name of the module

func (*MsgRequestDTagTransfer) Size

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

func (*MsgRequestDTagTransfer) String

func (m *MsgRequestDTagTransfer) String() string

func (MsgRequestDTagTransfer) Type

func (msg MsgRequestDTagTransfer) Type() string

Type should return the action

func (*MsgRequestDTagTransfer) Unmarshal

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

func (MsgRequestDTagTransfer) ValidateBasic

func (msg MsgRequestDTagTransfer) ValidateBasic() error

func (*MsgRequestDTagTransfer) XXX_DiscardUnknown

func (m *MsgRequestDTagTransfer) XXX_DiscardUnknown()

func (*MsgRequestDTagTransfer) XXX_Marshal

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

func (*MsgRequestDTagTransfer) XXX_Merge

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

func (*MsgRequestDTagTransfer) XXX_Size

func (m *MsgRequestDTagTransfer) XXX_Size() int

func (*MsgRequestDTagTransfer) XXX_Unmarshal

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

type MsgRequestDTagTransferResponse

type MsgRequestDTagTransferResponse struct {
}

MsgRequestDTagTransferResponse defines the Msg/RequestDTagTransfer response type.

func (*MsgRequestDTagTransferResponse) Descriptor

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

func (*MsgRequestDTagTransferResponse) Marshal

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

func (*MsgRequestDTagTransferResponse) MarshalTo

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

func (*MsgRequestDTagTransferResponse) MarshalToSizedBuffer

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

func (*MsgRequestDTagTransferResponse) ProtoMessage

func (*MsgRequestDTagTransferResponse) ProtoMessage()

func (*MsgRequestDTagTransferResponse) Reset

func (m *MsgRequestDTagTransferResponse) Reset()

func (*MsgRequestDTagTransferResponse) Size

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

func (*MsgRequestDTagTransferResponse) String

func (*MsgRequestDTagTransferResponse) Unmarshal

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

func (*MsgRequestDTagTransferResponse) XXX_DiscardUnknown

func (m *MsgRequestDTagTransferResponse) XXX_DiscardUnknown()

func (*MsgRequestDTagTransferResponse) XXX_Marshal

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

func (*MsgRequestDTagTransferResponse) XXX_Merge

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

func (*MsgRequestDTagTransferResponse) XXX_Size

func (m *MsgRequestDTagTransferResponse) XXX_Size() int

func (*MsgRequestDTagTransferResponse) XXX_Unmarshal

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

type MsgSaveProfile

type MsgSaveProfile struct {
	// DTag of the profile. If it shouldn't be changed, [do-no-modify] can be used
	// instead.
	DTag string `protobuf:"bytes,1,opt,name=dtag,proto3" json:"dtag,omitempty" yaml:"dtag"`
	// Nickname of the profile. If it shouldn't be changed, [do-no-modify] can be
	// used instead.
	Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty" yaml:"nickname"`
	// Bio of the profile. If it shouldn't be changed, [do-no-modify] can be used
	// instead.
	Bio string `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio,omitempty" yaml:"bio"`
	// URL to the profile picture. If it shouldn't be changed, [do-no-modify] can
	// be used instead.
	ProfilePicture string `` /* 126-byte string literal not displayed */
	// URL to the profile cover. If it shouldn't be changed, [do-no-modify] can be
	// used instead.
	CoverPicture string `protobuf:"bytes,5,opt,name=cover_picture,json=coverPicture,proto3" json:"cover_picture,omitempty" yaml:"cover_picture"`
	// Address of the user associated to the profile
	Creator string `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty" yaml:"creator"`
}

MsgSaveProfile represents a message to save a profile.

func NewMsgSaveProfile

func NewMsgSaveProfile(dTag string, nickname, bio, profilePic, coverPic string, creator string) *MsgSaveProfile

NewMsgSaveProfile returns a new MsgSaveProfile instance

func (*MsgSaveProfile) Descriptor

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

func (*MsgSaveProfile) GetBio

func (m *MsgSaveProfile) GetBio() string

func (*MsgSaveProfile) GetCoverPicture

func (m *MsgSaveProfile) GetCoverPicture() string

func (*MsgSaveProfile) GetCreator

func (m *MsgSaveProfile) GetCreator() string

func (*MsgSaveProfile) GetDTag

func (m *MsgSaveProfile) GetDTag() string

func (*MsgSaveProfile) GetNickname

func (m *MsgSaveProfile) GetNickname() string

func (*MsgSaveProfile) GetProfilePicture

func (m *MsgSaveProfile) GetProfilePicture() string

func (MsgSaveProfile) GetSignBytes

func (msg MsgSaveProfile) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgSaveProfile) GetSigners

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

GetSigners defines whose signature is required

func (*MsgSaveProfile) Marshal

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

func (*MsgSaveProfile) MarshalTo

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

func (*MsgSaveProfile) MarshalToSizedBuffer

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

func (*MsgSaveProfile) ProtoMessage

func (*MsgSaveProfile) ProtoMessage()

func (*MsgSaveProfile) Reset

func (m *MsgSaveProfile) Reset()

func (MsgSaveProfile) Route

func (msg MsgSaveProfile) Route() string

Route should return the name of the module

func (*MsgSaveProfile) Size

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

func (*MsgSaveProfile) String

func (m *MsgSaveProfile) String() string

func (MsgSaveProfile) Type

func (msg MsgSaveProfile) Type() string

Type should return the action

func (*MsgSaveProfile) Unmarshal

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

func (MsgSaveProfile) ValidateBasic

func (msg MsgSaveProfile) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgSaveProfile) XXX_DiscardUnknown

func (m *MsgSaveProfile) XXX_DiscardUnknown()

func (*MsgSaveProfile) XXX_Marshal

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

func (*MsgSaveProfile) XXX_Merge

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

func (*MsgSaveProfile) XXX_Size

func (m *MsgSaveProfile) XXX_Size() int

func (*MsgSaveProfile) XXX_Unmarshal

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

type MsgSaveProfileResponse

type MsgSaveProfileResponse struct {
}

MsgSaveProfileResponse defines the Msg/SaveProfile response type.

func (*MsgSaveProfileResponse) Descriptor

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

func (*MsgSaveProfileResponse) Marshal

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

func (*MsgSaveProfileResponse) MarshalTo

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

func (*MsgSaveProfileResponse) MarshalToSizedBuffer

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

func (*MsgSaveProfileResponse) ProtoMessage

func (*MsgSaveProfileResponse) ProtoMessage()

func (*MsgSaveProfileResponse) Reset

func (m *MsgSaveProfileResponse) Reset()

func (*MsgSaveProfileResponse) Size

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

func (*MsgSaveProfileResponse) String

func (m *MsgSaveProfileResponse) String() string

func (*MsgSaveProfileResponse) Unmarshal

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

func (*MsgSaveProfileResponse) XXX_DiscardUnknown

func (m *MsgSaveProfileResponse) XXX_DiscardUnknown()

func (*MsgSaveProfileResponse) XXX_Marshal

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

func (*MsgSaveProfileResponse) XXX_Merge

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

func (*MsgSaveProfileResponse) XXX_Size

func (m *MsgSaveProfileResponse) XXX_Size() int

func (*MsgSaveProfileResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// SaveProfile defines the method to save a profile
	SaveProfile(context.Context, *MsgSaveProfile) (*MsgSaveProfileResponse, error)
	// DeleteProfile defines the method to delete an existing profile
	DeleteProfile(context.Context, *MsgDeleteProfile) (*MsgDeleteProfileResponse, error)
	// RequestDTagTransfer defines the method to request another user to transfer
	// their DTag to you
	RequestDTagTransfer(context.Context, *MsgRequestDTagTransfer) (*MsgRequestDTagTransferResponse, error)
	// CancelDTagTransferRequest defines the method to cancel an outgoing DTag
	// transfer request
	CancelDTagTransferRequest(context.Context, *MsgCancelDTagTransferRequest) (*MsgCancelDTagTransferRequestResponse, error)
	// AcceptDTagTransferRequest defines the method to accept an incoming DTag
	// transfer request
	AcceptDTagTransferRequest(context.Context, *MsgAcceptDTagTransferRequest) (*MsgAcceptDTagTransferRequestResponse, error)
	// RefuseDTagTransferRequest defines the method to refuse an incoming DTag
	// transfer request
	RefuseDTagTransferRequest(context.Context, *MsgRefuseDTagTransferRequest) (*MsgRefuseDTagTransferRequestResponse, error)
	// LinkChainAccount defines a method to link an external chain account to a
	// profile
	LinkChainAccount(context.Context, *MsgLinkChainAccount) (*MsgLinkChainAccountResponse, error)
	// UnlinkChainAccount defines a method to unlink an external chain account
	// from a profile
	UnlinkChainAccount(context.Context, *MsgUnlinkChainAccount) (*MsgUnlinkChainAccountResponse, error)
	// SetDefaultExternalAddress allows to set a specific external address as the
	// default one for a given chain
	SetDefaultExternalAddress(context.Context, *MsgSetDefaultExternalAddress) (*MsgSetDefaultExternalAddressResponse, error)
	// LinkApplication defines a method to create a centralized application
	// link
	LinkApplication(context.Context, *MsgLinkApplication) (*MsgLinkApplicationResponse, error)
	// UnlinkApplication defines a method to remove a centralized application
	UnlinkApplication(context.Context, *MsgUnlinkApplication) (*MsgUnlinkApplicationResponse, error)
}

MsgServer is the server API for Msg service.

type MsgSetDefaultExternalAddress

type MsgSetDefaultExternalAddress struct {
	// Name of the chain for which to set the default address
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// Address to be set as the default one
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// User signing the message
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty"`
}

MsgSetDefaultExternalAddress represents the message used to set a default address for a specific chain

func NewMsgSetDefaultExternalAddress

func NewMsgSetDefaultExternalAddress(chainName, target, signer string) *MsgSetDefaultExternalAddress

func (*MsgSetDefaultExternalAddress) Descriptor

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

func (*MsgSetDefaultExternalAddress) GetChainName

func (m *MsgSetDefaultExternalAddress) GetChainName() string

func (MsgSetDefaultExternalAddress) GetSignBytes

func (msg MsgSetDefaultExternalAddress) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (*MsgSetDefaultExternalAddress) GetSigner

func (m *MsgSetDefaultExternalAddress) GetSigner() string

func (MsgSetDefaultExternalAddress) GetSigners

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

GetSigners defines whose signature is required

func (*MsgSetDefaultExternalAddress) GetTarget

func (m *MsgSetDefaultExternalAddress) GetTarget() string

func (*MsgSetDefaultExternalAddress) Marshal

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

func (*MsgSetDefaultExternalAddress) MarshalTo

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

func (*MsgSetDefaultExternalAddress) MarshalToSizedBuffer

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

func (*MsgSetDefaultExternalAddress) ProtoMessage

func (*MsgSetDefaultExternalAddress) ProtoMessage()

func (*MsgSetDefaultExternalAddress) Reset

func (m *MsgSetDefaultExternalAddress) Reset()

func (MsgSetDefaultExternalAddress) Route

Route should return the name of the module

func (*MsgSetDefaultExternalAddress) Size

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

func (*MsgSetDefaultExternalAddress) String

func (MsgSetDefaultExternalAddress) Type

Type should return the action

func (*MsgSetDefaultExternalAddress) Unmarshal

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

func (MsgSetDefaultExternalAddress) ValidateBasic

func (msg MsgSetDefaultExternalAddress) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgSetDefaultExternalAddress) XXX_DiscardUnknown

func (m *MsgSetDefaultExternalAddress) XXX_DiscardUnknown()

func (*MsgSetDefaultExternalAddress) XXX_Marshal

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

func (*MsgSetDefaultExternalAddress) XXX_Merge

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

func (*MsgSetDefaultExternalAddress) XXX_Size

func (m *MsgSetDefaultExternalAddress) XXX_Size() int

func (*MsgSetDefaultExternalAddress) XXX_Unmarshal

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

type MsgSetDefaultExternalAddressResponse

type MsgSetDefaultExternalAddressResponse struct {
}

MsgSetDefaultExternalAddressResponse represents the Msg/SetDefaultExternalAddress response type

func (*MsgSetDefaultExternalAddressResponse) Descriptor

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

func (*MsgSetDefaultExternalAddressResponse) Marshal

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

func (*MsgSetDefaultExternalAddressResponse) MarshalTo

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

func (*MsgSetDefaultExternalAddressResponse) MarshalToSizedBuffer

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

func (*MsgSetDefaultExternalAddressResponse) ProtoMessage

func (*MsgSetDefaultExternalAddressResponse) ProtoMessage()

func (*MsgSetDefaultExternalAddressResponse) Reset

func (*MsgSetDefaultExternalAddressResponse) Size

func (*MsgSetDefaultExternalAddressResponse) String

func (*MsgSetDefaultExternalAddressResponse) Unmarshal

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

func (*MsgSetDefaultExternalAddressResponse) XXX_DiscardUnknown

func (m *MsgSetDefaultExternalAddressResponse) XXX_DiscardUnknown()

func (*MsgSetDefaultExternalAddressResponse) XXX_Marshal

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

func (*MsgSetDefaultExternalAddressResponse) XXX_Merge

func (*MsgSetDefaultExternalAddressResponse) XXX_Size

func (*MsgSetDefaultExternalAddressResponse) XXX_Unmarshal

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

type MsgUnlinkApplication

type MsgUnlinkApplication struct {
	// Application represents the name of the application to unlink
	Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty" yaml:"application"`
	// Username represents the username inside the application to unlink
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty" yaml:"username"`
	// Signer represents the Mage account to which the application should be
	// unlinked
	Signer string `protobuf:"bytes,3,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"`
}

MsgUnlinkApplication defines a msg to delete an application link from a user profile

func NewMsgUnlinkApplication

func NewMsgUnlinkApplication(application, username string, signer string) *MsgUnlinkApplication

NewMsgUnlinkApplication creates a new MsgUnlinkApplication instance

func (*MsgUnlinkApplication) Descriptor

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

func (*MsgUnlinkApplication) GetApplication

func (m *MsgUnlinkApplication) GetApplication() string

func (MsgUnlinkApplication) GetSignBytes

func (msg MsgUnlinkApplication) GetSignBytes() []byte

GetSignBytes implements sdk.Msg.

func (*MsgUnlinkApplication) GetSigner

func (m *MsgUnlinkApplication) GetSigner() string

func (MsgUnlinkApplication) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgUnlinkApplication) GetUsername

func (m *MsgUnlinkApplication) GetUsername() string

func (*MsgUnlinkApplication) Marshal

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

func (*MsgUnlinkApplication) MarshalTo

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

func (*MsgUnlinkApplication) MarshalToSizedBuffer

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

func (*MsgUnlinkApplication) ProtoMessage

func (*MsgUnlinkApplication) ProtoMessage()

func (*MsgUnlinkApplication) Reset

func (m *MsgUnlinkApplication) Reset()

func (MsgUnlinkApplication) Route

func (MsgUnlinkApplication) Route() string

Route implements sdk.Msg

func (*MsgUnlinkApplication) Size

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

func (*MsgUnlinkApplication) String

func (m *MsgUnlinkApplication) String() string

func (MsgUnlinkApplication) Type

Type implements sdk.Msg

func (*MsgUnlinkApplication) Unmarshal

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

func (MsgUnlinkApplication) ValidateBasic

func (msg MsgUnlinkApplication) ValidateBasic() error

ValidateBasic performs a basic check of the MsgUnlinkApplication fields. NOTE: timeout height or timestamp values can be 0 to disable the timeout.

func (*MsgUnlinkApplication) XXX_DiscardUnknown

func (m *MsgUnlinkApplication) XXX_DiscardUnknown()

func (*MsgUnlinkApplication) XXX_Marshal

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

func (*MsgUnlinkApplication) XXX_Merge

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

func (*MsgUnlinkApplication) XXX_Size

func (m *MsgUnlinkApplication) XXX_Size() int

func (*MsgUnlinkApplication) XXX_Unmarshal

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

type MsgUnlinkApplicationResponse

type MsgUnlinkApplicationResponse struct {
}

MsgUnlinkApplicationResponse defines the Msg/UnlinkApplication response type.

func (*MsgUnlinkApplicationResponse) Descriptor

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

func (*MsgUnlinkApplicationResponse) Marshal

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

func (*MsgUnlinkApplicationResponse) MarshalTo

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

func (*MsgUnlinkApplicationResponse) MarshalToSizedBuffer

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

func (*MsgUnlinkApplicationResponse) ProtoMessage

func (*MsgUnlinkApplicationResponse) ProtoMessage()

func (*MsgUnlinkApplicationResponse) Reset

func (m *MsgUnlinkApplicationResponse) Reset()

func (*MsgUnlinkApplicationResponse) Size

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

func (*MsgUnlinkApplicationResponse) String

func (*MsgUnlinkApplicationResponse) Unmarshal

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

func (*MsgUnlinkApplicationResponse) XXX_DiscardUnknown

func (m *MsgUnlinkApplicationResponse) XXX_DiscardUnknown()

func (*MsgUnlinkApplicationResponse) XXX_Marshal

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

func (*MsgUnlinkApplicationResponse) XXX_Merge

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

func (*MsgUnlinkApplicationResponse) XXX_Size

func (m *MsgUnlinkApplicationResponse) XXX_Size() int

func (*MsgUnlinkApplicationResponse) XXX_Unmarshal

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

type MsgUnlinkChainAccount

type MsgUnlinkChainAccount struct {
	// Owner represents the Mage profile from which to remove the link
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty" yaml:"owner"`
	// ChainName represents the name of the chain to which the link to remove is
	// associated
	ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty" yaml:"chain_name"`
	// Target represents the external address to be removed
	Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty" yaml:"target"`
}

MsgUnlinkChainAccount represents a message to unlink an account from a profile.

func NewMsgUnlinkChainAccount

func NewMsgUnlinkChainAccount(owner, chainName, target string) *MsgUnlinkChainAccount

func (*MsgUnlinkChainAccount) Descriptor

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

func (*MsgUnlinkChainAccount) GetChainName

func (m *MsgUnlinkChainAccount) GetChainName() string

func (*MsgUnlinkChainAccount) GetOwner

func (m *MsgUnlinkChainAccount) GetOwner() string

func (MsgUnlinkChainAccount) GetSignBytes

func (msg MsgUnlinkChainAccount) GetSignBytes() []byte

GetSignBytes encodes the message for signing

func (MsgUnlinkChainAccount) GetSigners

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

GetSigners defines whose signature is required

func (*MsgUnlinkChainAccount) GetTarget

func (m *MsgUnlinkChainAccount) GetTarget() string

func (*MsgUnlinkChainAccount) Marshal

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

func (*MsgUnlinkChainAccount) MarshalTo

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

func (*MsgUnlinkChainAccount) MarshalToSizedBuffer

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

func (*MsgUnlinkChainAccount) ProtoMessage

func (*MsgUnlinkChainAccount) ProtoMessage()

func (*MsgUnlinkChainAccount) Reset

func (m *MsgUnlinkChainAccount) Reset()

func (MsgUnlinkChainAccount) Route

func (msg MsgUnlinkChainAccount) Route() string

Route should return the name of the module

func (*MsgUnlinkChainAccount) Size

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

func (*MsgUnlinkChainAccount) String

func (m *MsgUnlinkChainAccount) String() string

func (MsgUnlinkChainAccount) Type

func (msg MsgUnlinkChainAccount) Type() string

Type should return the action

func (*MsgUnlinkChainAccount) Unmarshal

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

func (MsgUnlinkChainAccount) ValidateBasic

func (msg MsgUnlinkChainAccount) ValidateBasic() error

ValidateBasic runs stateless checks on the message

func (*MsgUnlinkChainAccount) XXX_DiscardUnknown

func (m *MsgUnlinkChainAccount) XXX_DiscardUnknown()

func (*MsgUnlinkChainAccount) XXX_Marshal

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

func (*MsgUnlinkChainAccount) XXX_Merge

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

func (*MsgUnlinkChainAccount) XXX_Size

func (m *MsgUnlinkChainAccount) XXX_Size() int

func (*MsgUnlinkChainAccount) XXX_Unmarshal

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

type MsgUnlinkChainAccountResponse

type MsgUnlinkChainAccountResponse struct {
}

MsgUnlinkChainAccountResponse defines the Msg/UnlinkAccount response type.

func (*MsgUnlinkChainAccountResponse) Descriptor

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

func (*MsgUnlinkChainAccountResponse) Marshal

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

func (*MsgUnlinkChainAccountResponse) MarshalTo

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

func (*MsgUnlinkChainAccountResponse) MarshalToSizedBuffer

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

func (*MsgUnlinkChainAccountResponse) ProtoMessage

func (*MsgUnlinkChainAccountResponse) ProtoMessage()

func (*MsgUnlinkChainAccountResponse) Reset

func (m *MsgUnlinkChainAccountResponse) Reset()

func (*MsgUnlinkChainAccountResponse) Size

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

func (*MsgUnlinkChainAccountResponse) String

func (*MsgUnlinkChainAccountResponse) Unmarshal

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

func (*MsgUnlinkChainAccountResponse) XXX_DiscardUnknown

func (m *MsgUnlinkChainAccountResponse) XXX_DiscardUnknown()

func (*MsgUnlinkChainAccountResponse) XXX_Marshal

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

func (*MsgUnlinkChainAccountResponse) XXX_Merge

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

func (*MsgUnlinkChainAccountResponse) XXX_Size

func (m *MsgUnlinkChainAccountResponse) XXX_Size() int

func (*MsgUnlinkChainAccountResponse) XXX_Unmarshal

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

type MultiProfilesHooks

type MultiProfilesHooks []ProfilesHooks

MultiProfilesHooks combines multiple profiles hooks, all hook functions are run in array sequence

func NewMultiProfilesHooks

func NewMultiProfilesHooks(hooks ...ProfilesHooks) MultiProfilesHooks

func (MultiProfilesHooks) AfterApplicationLinkDeleted

func (h MultiProfilesHooks) AfterApplicationLinkDeleted(ctx sdk.Context, link ApplicationLink)

AfterUserPermissionDeleted implements ProfilesHooks

func (MultiProfilesHooks) AfterApplicationLinkSaved

func (h MultiProfilesHooks) AfterApplicationLinkSaved(ctx sdk.Context, link ApplicationLink)

AfterApplicationLinkSaved implements ProfilesHooks

func (MultiProfilesHooks) AfterChainLinkDeleted

func (h MultiProfilesHooks) AfterChainLinkDeleted(ctx sdk.Context, link ChainLink)

AfterChainLinkDeleted implements ProfilesHooks

func (MultiProfilesHooks) AfterChainLinkSaved

func (h MultiProfilesHooks) AfterChainLinkSaved(ctx sdk.Context, link ChainLink)

AfterChainLinkSaved implements ProfilesHooks

func (MultiProfilesHooks) AfterDTagTransferRequestAccepted

func (h MultiProfilesHooks) AfterDTagTransferRequestAccepted(ctx sdk.Context, request DTagTransferRequest, newDTag string)

AfterDTagTransferRequestAccepted implements ProfilesHooks

func (MultiProfilesHooks) AfterDTagTransferRequestCreated

func (h MultiProfilesHooks) AfterDTagTransferRequestCreated(ctx sdk.Context, request DTagTransferRequest)

AfterDTagTransferRequestCreated implements ProfilesHooks

func (MultiProfilesHooks) AfterDTagTransferRequestDeleted

func (h MultiProfilesHooks) AfterDTagTransferRequestDeleted(ctx sdk.Context, sender, recipient string)

AfterDTagTransferRequestDeleted implements ProfilesHooks

func (MultiProfilesHooks) AfterProfileDeleted

func (h MultiProfilesHooks) AfterProfileDeleted(ctx sdk.Context, profile *Profile)

AfterProfileDeleted implements ProfilesHooks

func (MultiProfilesHooks) AfterProfileSaved

func (h MultiProfilesHooks) AfterProfileSaved(ctx sdk.Context, profile *Profile)

AfterProfileSaved implements ProfilesHooks

type NicknameParams

type NicknameParams struct {
	MinLength github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
	MaxLength github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
}

NicknameParams defines the parameters related to the profiles nicknames

func DefaultNicknameParams

func DefaultNicknameParams() NicknameParams

DefaultNicknameParams return default nickname params

func NewNicknameParams

func NewNicknameParams(minLen, maxLen sdk.Int) NicknameParams

NewNicknameParams creates a new NicknameParams obj

func (*NicknameParams) Descriptor

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

func (*NicknameParams) Marshal

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

func (*NicknameParams) MarshalTo

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

func (*NicknameParams) MarshalToSizedBuffer

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

func (*NicknameParams) ProtoMessage

func (*NicknameParams) ProtoMessage()

func (*NicknameParams) Reset

func (m *NicknameParams) Reset()

func (*NicknameParams) Size

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

func (*NicknameParams) String

func (m *NicknameParams) String() string

func (*NicknameParams) Unmarshal

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

func (*NicknameParams) XXX_DiscardUnknown

func (m *NicknameParams) XXX_DiscardUnknown()

func (*NicknameParams) XXX_Marshal

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

func (*NicknameParams) XXX_Merge

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

func (*NicknameParams) XXX_Size

func (m *NicknameParams) XXX_Size() int

func (*NicknameParams) XXX_Unmarshal

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

type OracleParams

type OracleParams struct {
	// ScriptID represents the ID of the oracle script to be called to verify the
	// data
	ScriptID uint64 `protobuf:"varint,1,opt,name=script_id,json=scriptId,proto3" json:"script_id,omitempty" yaml:"script_id"`
	// AskCount represents the number of oracles to which ask to verify the data
	AskCount uint64 `protobuf:"varint,2,opt,name=ask_count,json=askCount,proto3" json:"ask_count,omitempty" yaml:"ask_count"`
	// MinCount represents the minimum count of oracles that should complete the
	// verification successfully
	MinCount uint64 `protobuf:"varint,3,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty" yaml:"min_count"`
	// PrepareGas represents the amount of gas to be used during the preparation
	// stage of the oracle script
	PrepareGas uint64 `protobuf:"varint,4,opt,name=prepare_gas,json=prepareGas,proto3" json:"prepare_gas,omitempty" yaml:"prepare_gas"`
	// ExecuteGas represents the amount of gas to be used during the execution of
	// the oracle script
	ExecuteGas uint64 `protobuf:"varint,5,opt,name=execute_gas,json=executeGas,proto3" json:"execute_gas,omitempty" yaml:"execute_gas"`
	// FeeAmount represents the amount of fees to be payed in order to execute the
	// oracle script
	FeeAmount github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
}

OracleParams defines the parameters related to the oracle that will be used to verify the ownership of a centralized application account by a Mage profile

func DefaultOracleParams

func DefaultOracleParams() OracleParams

DefaultOracleParams returns the default instance of OracleParams

func NewOracleParams

func NewOracleParams(
	scriptID uint64,
	askCount,
	minCount,
	prepareGas,
	executeGas uint64,
	feeAmount ...sdk.Coin,
) OracleParams

NewOracleParams creates a new Oracle Params instance

func (*OracleParams) Descriptor

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

func (*OracleParams) Marshal

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

func (*OracleParams) MarshalTo

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

func (*OracleParams) MarshalToSizedBuffer

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

func (*OracleParams) ProtoMessage

func (*OracleParams) ProtoMessage()

func (*OracleParams) Reset

func (m *OracleParams) Reset()

func (*OracleParams) Size

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

func (*OracleParams) String

func (m *OracleParams) String() string

func (*OracleParams) Unmarshal

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

func (*OracleParams) XXX_DiscardUnknown

func (m *OracleParams) XXX_DiscardUnknown()

func (*OracleParams) XXX_Marshal

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

func (*OracleParams) XXX_Merge

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

func (*OracleParams) XXX_Size

func (m *OracleParams) XXX_Size() int

func (*OracleParams) XXX_Unmarshal

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

type OracleRequest

type OracleRequest struct {
	// ID is the ID of the request
	ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	// OracleScriptID is ID of an oracle script
	OracleScriptID uint64 `` /* 130-byte string literal not displayed */
	// CallData contains the data used to perform the oracle request
	CallData OracleRequest_CallData `protobuf:"bytes,3,opt,name=call_data,json=callData,proto3" json:"call_data" yaml:"call_data"`
	// ClientID represents the ID of the client that has called the oracle script
	ClientID string `protobuf:"bytes,4,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty" yaml:"client_id"`
}

OracleRequest represents a generic oracle request used to verify the ownership of a centralized application account

func NewOracleRequest

func NewOracleRequest(id uint64, scriptID uint64, callData OracleRequest_CallData, clientID string) OracleRequest

NewOracleRequest allows to build a new OracleRequest instance

func (*OracleRequest) Descriptor

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

func (*OracleRequest) Equal

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

func (*OracleRequest) Marshal

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

func (*OracleRequest) MarshalTo

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

func (*OracleRequest) MarshalToSizedBuffer

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

func (*OracleRequest) ProtoMessage

func (*OracleRequest) ProtoMessage()

func (*OracleRequest) Reset

func (m *OracleRequest) Reset()

func (*OracleRequest) Size

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

func (*OracleRequest) String

func (m *OracleRequest) String() string

func (*OracleRequest) Unmarshal

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

func (OracleRequest) Validate

func (o OracleRequest) Validate() error

Validate returns an error if the instance does not contain valid data

func (*OracleRequest) XXX_DiscardUnknown

func (m *OracleRequest) XXX_DiscardUnknown()

func (*OracleRequest) XXX_Marshal

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

func (*OracleRequest) XXX_Merge

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

func (*OracleRequest) XXX_Size

func (m *OracleRequest) XXX_Size() int

func (*OracleRequest) XXX_Unmarshal

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

type OracleRequest_CallData

type OracleRequest_CallData struct {
	// The application for which the ownership should be verified
	Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty" yaml:"application"`
	// The hex encoded call data that should be used to verify the application
	// account ownership
	CallData string `protobuf:"bytes,2,opt,name=call_data,json=callData,proto3" json:"call_data,omitempty" yaml:"call_data"`
}

CallData contains the data sent to a single oracle request in order to verify the ownership of a centralized application by a Mage profile

func NewOracleRequestCallData

func NewOracleRequestCallData(application, callData string) OracleRequest_CallData

NewOracleRequestCallData allows to build a new OracleRequest_CallData instance

func (*OracleRequest_CallData) Descriptor

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

func (*OracleRequest_CallData) Equal

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

func (*OracleRequest_CallData) GetApplication

func (m *OracleRequest_CallData) GetApplication() string

func (*OracleRequest_CallData) GetCallData

func (m *OracleRequest_CallData) GetCallData() string

func (*OracleRequest_CallData) Marshal

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

func (*OracleRequest_CallData) MarshalTo

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

func (*OracleRequest_CallData) MarshalToSizedBuffer

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

func (*OracleRequest_CallData) ProtoMessage

func (*OracleRequest_CallData) ProtoMessage()

func (*OracleRequest_CallData) Reset

func (m *OracleRequest_CallData) Reset()

func (*OracleRequest_CallData) Size

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

func (*OracleRequest_CallData) String

func (m *OracleRequest_CallData) String() string

func (*OracleRequest_CallData) Unmarshal

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

func (OracleRequest_CallData) Validate

func (c OracleRequest_CallData) Validate() error

Validate returns an error if the instance does not contain valid data

func (*OracleRequest_CallData) XXX_DiscardUnknown

func (m *OracleRequest_CallData) XXX_DiscardUnknown()

func (*OracleRequest_CallData) XXX_Marshal

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

func (*OracleRequest_CallData) XXX_Merge

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

func (*OracleRequest_CallData) XXX_Size

func (m *OracleRequest_CallData) XXX_Size() int

func (*OracleRequest_CallData) XXX_Unmarshal

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

type Params

type Params struct {
	Nickname NicknameParams `protobuf:"bytes,1,opt,name=nickname,proto3" json:"nickname" yaml:"nickname"`
	DTag     DTagParams     `protobuf:"bytes,2,opt,name=dtag,proto3" json:"dtag" yaml:"dtag"`
	Bio      BioParams      `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio" yaml:"bio"`
	Oracle   OracleParams   `protobuf:"bytes,4,opt,name=oracle,proto3" json:"oracle" yaml:"oracle"`
	AppLinks AppLinksParams `protobuf:"bytes,5,opt,name=app_links,json=appLinks,proto3" json:"app_links" yaml:"app_links"`
}

Params contains the parameters for the profiles module

func DefaultParams

func DefaultParams() Params

DefaultParams return default paramsModule

func NewParams

func NewParams(nickname NicknameParams, dTag DTagParams, bio BioParams, oracle OracleParams, appLinks AppLinksParams) Params

NewParams creates a new ProfileParams obj

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (params *Params) ParamSetPairs() paramstypes.ParamSetPairs

ParamSetPairs implements the ParamSet interface and returns the key/value pairs of profile module's parameters.

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 (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (params Params) Validate() error

Validate perform basic checks on all parameters to ensure they are correct

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

func NewPictures(profile, cover string) Pictures

NewPictures is a constructor function for Pictures

func (*Pictures) Descriptor

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

func (*Pictures) Equal

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

func (*Pictures) GetCover

func (m *Pictures) GetCover() string

func (*Pictures) GetProfile

func (m *Pictures) GetProfile() string

func (*Pictures) Marshal

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

func (*Pictures) MarshalTo

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

func (*Pictures) MarshalToSizedBuffer

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

func (*Pictures) ProtoMessage

func (*Pictures) ProtoMessage()

func (*Pictures) Reset

func (m *Pictures) Reset()

func (*Pictures) Size

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

func (*Pictures) String

func (m *Pictures) String() string

func (*Pictures) Unmarshal

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

func (Pictures) Validate

func (pic Pictures) Validate() error

Validate check the validity of the Pictures

func (*Pictures) XXX_DiscardUnknown

func (m *Pictures) XXX_DiscardUnknown()

func (*Pictures) XXX_Marshal

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

func (*Pictures) XXX_Merge

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

func (*Pictures) XXX_Size

func (m *Pictures) XXX_Size() int

func (*Pictures) XXX_Unmarshal

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

type PortKeeper

type PortKeeper interface {
	BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability
}

PortKeeper defines the expected IBC port keeper

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 Mage, 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 NewProfileFromAccount

func NewProfileFromAccount(dTag string, account authtypes.AccountI, creationTime time.Time) (*Profile, error)

NewProfileFromAccount allows to build a new Profile instance from a provided DTag, and account and a creation time

func (*Profile) Descriptor

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

func (*Profile) GetAccount

func (p *Profile) GetAccount() authtypes.AccountI

GetAccount returns the underlying account as an authtypes.AccountI instance

func (*Profile) GetAccountNumber

func (p *Profile) GetAccountNumber() uint64

GetAccountNumber implements authtypes.AccountI

func (*Profile) GetAddress

func (p *Profile) GetAddress() sdk.AccAddress

GetAddress implements authtypes.AccountI

func (*Profile) GetDelegatedFree

func (p *Profile) GetDelegatedFree() sdk.Coins

GetDelegatedFree implements exported.VestingAccount

func (*Profile) GetDelegatedVesting

func (p *Profile) GetDelegatedVesting() sdk.Coins

GetDelegatedVesting implements exported.VestingAccount

func (*Profile) GetEndTime

func (p *Profile) GetEndTime() int64

GetEndTime implements exported.VestingAccount

func (*Profile) GetOriginalVesting

func (p *Profile) GetOriginalVesting() sdk.Coins

GetOriginalVesting implements exported.VestingAccount

func (*Profile) GetPubKey

func (p *Profile) GetPubKey() cryptotypes.PubKey

GetPubKey implements authtypes.AccountI

func (*Profile) GetSequence

func (p *Profile) GetSequence() uint64

GetSequence implements authtypes.AccountI

func (*Profile) GetStartTime

func (p *Profile) GetStartTime() int64

GetStartTime implements exported.VestingAccount

func (*Profile) GetVestedCoins

func (p *Profile) GetVestedCoins(blockTime time.Time) sdk.Coins

GetVestedCoins implements exported.VestingAccount

func (*Profile) GetVestingCoins

func (p *Profile) GetVestingCoins(blockTime time.Time) sdk.Coins

GetVestingCoins implements exported.VestingAccount

func (*Profile) LockedCoins

func (p *Profile) LockedCoins(blockTime time.Time) sdk.Coins

LockedCoins implements exported.VestingAccount

func (*Profile) Marshal

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

func (*Profile) MarshalJSON

func (p *Profile) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation of a Profile.

func (*Profile) MarshalTo

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

func (*Profile) MarshalToSizedBuffer

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

func (*Profile) MarshalYAML

func (p *Profile) MarshalYAML() (interface{}, error)

MarshalYAML returns the YAML representation of a Profile.

func (*Profile) ProtoMessage

func (*Profile) ProtoMessage()

func (*Profile) Reset

func (m *Profile) Reset()

func (*Profile) SetAccountNumber

func (p *Profile) SetAccountNumber(accountNumber uint64) error

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

func (p *Profile) SetSequence(sequence uint64) error

SetSequence implements authtypes.AccountI

func (*Profile) Size

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

func (*Profile) String

func (p *Profile) String() string

String implements authtypes.AccountI implements stringer

func (*Profile) TrackDelegation

func (p *Profile) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)

TrackDelegation implements exported.VestingAccount

func (*Profile) TrackUndelegation

func (p *Profile) TrackUndelegation(amount sdk.Coins)

TrackUndelegation implements exported.VestingAccount

func (*Profile) Unmarshal

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

func (*Profile) UnpackInterfaces

func (p *Profile) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*Profile) Update

func (p *Profile) Update(update *ProfileUpdate) (*Profile, error)

Update updates the fields of a given profile without validating it. Before storing the updated profile, a validation with Validate() should be performed.

func (*Profile) Validate

func (p *Profile) Validate() error

Validate check the validity of the Profile

func (*Profile) XXX_DiscardUnknown

func (m *Profile) XXX_DiscardUnknown()

func (*Profile) XXX_Marshal

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

func (*Profile) XXX_Merge

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

func (*Profile) XXX_Size

func (m *Profile) XXX_Size() int

func (*Profile) XXX_Unmarshal

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

type ProfileUpdate

type ProfileUpdate struct {
	DTag     string
	Nickname string
	Bio      string
	Pictures Pictures
}

ProfileUpdate contains all the data that can be updated about a profile. When performing an update, if a field should not be edited then it must be set to types.DoNotModify

func NewProfileUpdate

func NewProfileUpdate(dTag, nickname, bio string, pictures Pictures) *ProfileUpdate

NewProfileUpdate builds a new ProfileUpdate instance containing the given data

type ProfilesHooks

type ProfilesHooks interface {
	AfterProfileSaved(ctx sdk.Context, profile *Profile)   // Must be called when a profile is saved
	AfterProfileDeleted(ctx sdk.Context, profile *Profile) // Must be called when a profile is deleted

	AfterDTagTransferRequestCreated(ctx sdk.Context, request DTagTransferRequest)                  // Must be called then a DTag transfer request is created
	AfterDTagTransferRequestAccepted(ctx sdk.Context, request DTagTransferRequest, newDTag string) // Must be called when a DTag transfer request is accepted
	AfterDTagTransferRequestDeleted(ctx sdk.Context, sender, recipient string)                     // Must be called when a DTag transfer request is deleted

	AfterChainLinkSaved(ctx sdk.Context, link ChainLink)   // Must be called when a chain link is saved
	AfterChainLinkDeleted(ctx sdk.Context, link ChainLink) // Must be called when a chain link is deleted

	AfterApplicationLinkSaved(ctx sdk.Context, link ApplicationLink)   // Must be called when an application link is saved
	AfterApplicationLinkDeleted(ctx sdk.Context, link ApplicationLink) // Must be called when an application link is deleted
}

ProfilesHooks event hooks for profiles objects (noalias)

type ProfilesMsg

type ProfilesMsg struct {
	SaveProfile               *json.RawMessage `json:"save_profile"`
	DeleteProfile             *json.RawMessage `json:"delete_profile"`
	RequestDtagTransfer       *json.RawMessage `json:"request_dtag_transfer"`
	AcceptDtagTransferRequest *json.RawMessage `json:"accept_dtag_transfer_request"`
	RefuseDtagTransferRequest *json.RawMessage `json:"refuse_dtag_transfer_request"`
	CancelDtagTransferRequest *json.RawMessage `json:"cancel_dtag_transfer_request"`
	LinkChainAccount          *json.RawMessage `json:"link_chain_account"`
	UnlinkChainAccount        *json.RawMessage `json:"unlink_chain_account"`
	SetDefaultExternalAddress *json.RawMessage `json:"set_default_external_address"`
	LinkApplication           *json.RawMessage `json:"link_application"`
	UnlinkApplication         *json.RawMessage `json:"unlink_application"`
}

type ProfilesQuery

type ProfilesQuery struct {
	Profile                      *json.RawMessage `json:"profile"`
	IncomingDtagTransferRequests *json.RawMessage `json:"incoming_dtag_transfer_requests"`
	ChainLinks                   *json.RawMessage `json:"chain_links"`
	ChainLinkOwners              *json.RawMessage `json:"chain_link_owners"`
	DefaultExternalAddresses     *json.RawMessage `json:"default_external_addresses"`
	ApplicationLinks             *json.RawMessage `json:"application_links"`
	ApplicationLinkByClientID    *json.RawMessage `json:"application_link_by_client_id"`
	ApplicationLinkOwners        *json.RawMessage `json:"application_link_owners"`
}

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 *types.Any `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 NewProof

func NewProof(pubKey cryptotypes.PubKey, signature Signature, plainText string) Proof

NewProof is a constructor function for Proof

func (*Proof) Descriptor

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

func (*Proof) Equal

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

func (Proof) GetSignature

func (p Proof) GetSignature() (Signature, error)

GetSignature returns the Signature associated to this proof

func (*Proof) Marshal

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

func (*Proof) MarshalTo

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

func (*Proof) MarshalToSizedBuffer

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

func (*Proof) ProtoMessage

func (*Proof) ProtoMessage()

func (*Proof) Reset

func (m *Proof) Reset()

func (*Proof) Size

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

func (*Proof) String

func (m *Proof) String() string

func (*Proof) Unmarshal

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

func (*Proof) UnpackInterfaces

func (p *Proof) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (Proof) Validate

func (p Proof) Validate() error

Validate checks the validity of the Proof

func (Proof) Verify

func (p Proof) Verify(cdc codec.BinaryCodec, amino *codec.LegacyAmino, owner string, address AddressData) error

Verify verifies the signature using the given plain text and public key. It returns and error if something is invalid.

func (*Proof) XXX_DiscardUnknown

func (m *Proof) XXX_DiscardUnknown()

func (*Proof) XXX_Marshal

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

func (*Proof) XXX_Merge

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

func (*Proof) XXX_Size

func (m *Proof) XXX_Size() int

func (*Proof) XXX_Unmarshal

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

type QueryApplicationLinkByClientIDRequest

type QueryApplicationLinkByClientIDRequest struct {
	// ClientID represents the ID of the client to which search the link for
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
}

QueryApplicationLinkByClientIDRequest contains the data of the request that can be used to get an application link based on a client id

func NewQueryApplicationLinkByClientIDRequest

func NewQueryApplicationLinkByClientIDRequest(clientID string) *QueryApplicationLinkByClientIDRequest

NewQueryApplicationLinkByClientIDRequest returns a new QueryApplicationLinkByClientIDRequest instance

func (*QueryApplicationLinkByClientIDRequest) Descriptor

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

func (*QueryApplicationLinkByClientIDRequest) GetClientId

func (*QueryApplicationLinkByClientIDRequest) Marshal

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

func (*QueryApplicationLinkByClientIDRequest) MarshalTo

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

func (*QueryApplicationLinkByClientIDRequest) MarshalToSizedBuffer

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

func (*QueryApplicationLinkByClientIDRequest) ProtoMessage

func (*QueryApplicationLinkByClientIDRequest) ProtoMessage()

func (*QueryApplicationLinkByClientIDRequest) Reset

func (*QueryApplicationLinkByClientIDRequest) Size

func (*QueryApplicationLinkByClientIDRequest) String

func (*QueryApplicationLinkByClientIDRequest) Unmarshal

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

func (*QueryApplicationLinkByClientIDRequest) XXX_DiscardUnknown

func (m *QueryApplicationLinkByClientIDRequest) XXX_DiscardUnknown()

func (*QueryApplicationLinkByClientIDRequest) XXX_Marshal

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

func (*QueryApplicationLinkByClientIDRequest) XXX_Merge

func (*QueryApplicationLinkByClientIDRequest) XXX_Size

func (*QueryApplicationLinkByClientIDRequest) XXX_Unmarshal

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

type QueryApplicationLinkByClientIDResponse

type QueryApplicationLinkByClientIDResponse struct {
	Link ApplicationLink `protobuf:"bytes,1,opt,name=link,proto3" json:"link"`
}

QueryApplicationLinkByClientIDResponse contains the data returned by the request allowing to get an application link using a client id

func (*QueryApplicationLinkByClientIDResponse) Descriptor

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

func (*QueryApplicationLinkByClientIDResponse) Marshal

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

func (*QueryApplicationLinkByClientIDResponse) MarshalTo

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

func (*QueryApplicationLinkByClientIDResponse) MarshalToSizedBuffer

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

func (*QueryApplicationLinkByClientIDResponse) ProtoMessage

func (*QueryApplicationLinkByClientIDResponse) Reset

func (*QueryApplicationLinkByClientIDResponse) Size

func (*QueryApplicationLinkByClientIDResponse) String

func (*QueryApplicationLinkByClientIDResponse) Unmarshal

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

func (*QueryApplicationLinkByClientIDResponse) XXX_DiscardUnknown

func (m *QueryApplicationLinkByClientIDResponse) XXX_DiscardUnknown()

func (*QueryApplicationLinkByClientIDResponse) XXX_Marshal

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

func (*QueryApplicationLinkByClientIDResponse) XXX_Merge

func (*QueryApplicationLinkByClientIDResponse) XXX_Size

func (*QueryApplicationLinkByClientIDResponse) XXX_Unmarshal

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

type QueryApplicationLinkOwnersRequest

type QueryApplicationLinkOwnersRequest struct {
	// (Optional) Application name to search link owners of. If not specified, all
	// links stored will be searched instead.
	Application string `protobuf:"bytes,1,opt,name=application,proto3" json:"application,omitempty"`
	// (Optional) Username to search for. This will only be used if the
	// application is specified as well
	Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
	// Pagination defines an optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryApplicationLinkOwnersRequest contains the data of the request that can be used to get application link owners

func NewQueryApplicationLinkOwnersRequest

func NewQueryApplicationLinkOwnersRequest(
	application, username string, pageReq *query.PageRequest,
) *QueryApplicationLinkOwnersRequest

NewQueryApplicationLinkOwnersRequest returns a new QueryApplicationLinkOwnersRequest instance

func (*QueryApplicationLinkOwnersRequest) Descriptor

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

func (*QueryApplicationLinkOwnersRequest) GetApplication

func (m *QueryApplicationLinkOwnersRequest) GetApplication() string

func (*QueryApplicationLinkOwnersRequest) GetPagination

func (*QueryApplicationLinkOwnersRequest) GetUsername

func (m *QueryApplicationLinkOwnersRequest) GetUsername() string

func (*QueryApplicationLinkOwnersRequest) Marshal

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

func (*QueryApplicationLinkOwnersRequest) MarshalTo

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

func (*QueryApplicationLinkOwnersRequest) MarshalToSizedBuffer

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

func (*QueryApplicationLinkOwnersRequest) ProtoMessage

func (*QueryApplicationLinkOwnersRequest) ProtoMessage()

func (*QueryApplicationLinkOwnersRequest) Reset

func (*QueryApplicationLinkOwnersRequest) Size

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

func (*QueryApplicationLinkOwnersRequest) String

func (*QueryApplicationLinkOwnersRequest) Unmarshal

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

func (*QueryApplicationLinkOwnersRequest) XXX_DiscardUnknown

func (m *QueryApplicationLinkOwnersRequest) XXX_DiscardUnknown()

func (*QueryApplicationLinkOwnersRequest) XXX_Marshal

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

func (*QueryApplicationLinkOwnersRequest) XXX_Merge

func (*QueryApplicationLinkOwnersRequest) XXX_Size

func (m *QueryApplicationLinkOwnersRequest) XXX_Size() int

func (*QueryApplicationLinkOwnersRequest) XXX_Unmarshal

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

type QueryApplicationLinkOwnersResponse

type QueryApplicationLinkOwnersResponse struct {
	// Addresses of the application links owners
	Owners []QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails `protobuf:"bytes,1,rep,name=owners,proto3" json:"owners"`
	// Pagination defines the pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryApplicationLinkOwnersResponse contains the data returned by the request allowing to get application link owners.

func (*QueryApplicationLinkOwnersResponse) Descriptor

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

func (*QueryApplicationLinkOwnersResponse) GetOwners

func (*QueryApplicationLinkOwnersResponse) GetPagination

func (*QueryApplicationLinkOwnersResponse) Marshal

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

func (*QueryApplicationLinkOwnersResponse) MarshalTo

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

func (*QueryApplicationLinkOwnersResponse) MarshalToSizedBuffer

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

func (*QueryApplicationLinkOwnersResponse) ProtoMessage

func (*QueryApplicationLinkOwnersResponse) ProtoMessage()

func (*QueryApplicationLinkOwnersResponse) Reset

func (*QueryApplicationLinkOwnersResponse) Size

func (*QueryApplicationLinkOwnersResponse) String

func (*QueryApplicationLinkOwnersResponse) Unmarshal

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

func (*QueryApplicationLinkOwnersResponse) XXX_DiscardUnknown

func (m *QueryApplicationLinkOwnersResponse) XXX_DiscardUnknown()

func (*QueryApplicationLinkOwnersResponse) XXX_Marshal

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

func (*QueryApplicationLinkOwnersResponse) XXX_Merge

func (*QueryApplicationLinkOwnersResponse) XXX_Size

func (*QueryApplicationLinkOwnersResponse) XXX_Unmarshal

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

type QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails

type QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails struct {
	User        string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	Application string `protobuf:"bytes,2,opt,name=application,proto3" json:"application,omitempty"`
	Username    string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
}

ApplicationLinkOwnerDetails contains the details of a single application link owner

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) Descriptor

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) GetApplication

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) GetUser

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) GetUsername

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) Marshal

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) MarshalTo

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) MarshalToSizedBuffer

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) ProtoMessage

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) Reset

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) Size

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) String

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) Unmarshal

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) XXX_DiscardUnknown

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) XXX_Marshal

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

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) XXX_Merge

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) XXX_Size

func (*QueryApplicationLinkOwnersResponse_ApplicationLinkOwnerDetails) XXX_Unmarshal

type QueryApplicationLinksRequest

type QueryApplicationLinksRequest struct {
	// (Optional) User contains the Mage profile address associated for which
	// the link should be searched for
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// (Optional) Application represents the application name associated with the
	// link. Used only if user is also set.
	Application string `protobuf:"bytes,2,opt,name=application,proto3" json:"application,omitempty"`
	// Username represents the username inside the application associated with the
	// link. Used only if application is also set.
	Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"`
	// Pagination defines an optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryUserApplicationLinkRequest represents the request used when querying an application link using an application name and username for a given user

func NewQueryApplicationLinksRequest

func NewQueryApplicationLinksRequest(
	user, application, username string, pageReq *query.PageRequest,
) *QueryApplicationLinksRequest

NewQueryApplicationLinksRequest returns a new QueryApplicationLinksRequest instance

func (*QueryApplicationLinksRequest) Descriptor

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

func (*QueryApplicationLinksRequest) GetApplication

func (m *QueryApplicationLinksRequest) GetApplication() string

func (*QueryApplicationLinksRequest) GetPagination

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

func (*QueryApplicationLinksRequest) GetUser

func (m *QueryApplicationLinksRequest) GetUser() string

func (*QueryApplicationLinksRequest) GetUsername

func (m *QueryApplicationLinksRequest) GetUsername() string

func (*QueryApplicationLinksRequest) Marshal

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

func (*QueryApplicationLinksRequest) MarshalTo

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

func (*QueryApplicationLinksRequest) MarshalToSizedBuffer

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

func (*QueryApplicationLinksRequest) ProtoMessage

func (*QueryApplicationLinksRequest) ProtoMessage()

func (*QueryApplicationLinksRequest) Reset

func (m *QueryApplicationLinksRequest) Reset()

func (*QueryApplicationLinksRequest) Size

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

func (*QueryApplicationLinksRequest) String

func (*QueryApplicationLinksRequest) Unmarshal

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

func (*QueryApplicationLinksRequest) XXX_DiscardUnknown

func (m *QueryApplicationLinksRequest) XXX_DiscardUnknown()

func (*QueryApplicationLinksRequest) XXX_Marshal

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

func (*QueryApplicationLinksRequest) XXX_Merge

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

func (*QueryApplicationLinksRequest) XXX_Size

func (m *QueryApplicationLinksRequest) XXX_Size() int

func (*QueryApplicationLinksRequest) XXX_Unmarshal

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

type QueryApplicationLinksResponse

type QueryApplicationLinksResponse struct {
	Links []ApplicationLink `protobuf:"bytes,1,rep,name=links,proto3" json:"links"`
	// Pagination defines the pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryApplicationLinksResponse represents the response to the query used to get the application links for a specific user

func (*QueryApplicationLinksResponse) Descriptor

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

func (*QueryApplicationLinksResponse) GetPagination

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

func (*QueryApplicationLinksResponse) Marshal

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

func (*QueryApplicationLinksResponse) MarshalTo

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

func (*QueryApplicationLinksResponse) MarshalToSizedBuffer

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

func (*QueryApplicationLinksResponse) ProtoMessage

func (*QueryApplicationLinksResponse) ProtoMessage()

func (*QueryApplicationLinksResponse) Reset

func (m *QueryApplicationLinksResponse) Reset()

func (*QueryApplicationLinksResponse) Size

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

func (*QueryApplicationLinksResponse) String

func (*QueryApplicationLinksResponse) Unmarshal

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

func (*QueryApplicationLinksResponse) XXX_DiscardUnknown

func (m *QueryApplicationLinksResponse) XXX_DiscardUnknown()

func (*QueryApplicationLinksResponse) XXX_Marshal

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

func (*QueryApplicationLinksResponse) XXX_Merge

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

func (*QueryApplicationLinksResponse) XXX_Size

func (m *QueryApplicationLinksResponse) XXX_Size() int

func (*QueryApplicationLinksResponse) XXX_Unmarshal

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

type QueryChainLinkOwnersRequest

type QueryChainLinkOwnersRequest struct {
	// (Optional) Chain name to search link owners of. If not specified, all
	// links stored will be searched instead.
	ChainName string `protobuf:"bytes,1,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// (Optional) External address to search for. This will only be used if the
	// chain name is specified as well
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// Pagination defines an optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryChainLinkOwnersRequest contains the data of the request that can be used to get chain link owners

func NewQueryChainLinkOwnersRequest

func NewQueryChainLinkOwnersRequest(chainName, target string, pageReq *query.PageRequest) *QueryChainLinkOwnersRequest

NewQueryChainLinkOwnersRequest returns a new QueryChainLinkOwnersRequest instance

func (*QueryChainLinkOwnersRequest) Descriptor

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

func (*QueryChainLinkOwnersRequest) GetChainName

func (m *QueryChainLinkOwnersRequest) GetChainName() string

func (*QueryChainLinkOwnersRequest) GetPagination

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

func (*QueryChainLinkOwnersRequest) GetTarget

func (m *QueryChainLinkOwnersRequest) GetTarget() string

func (*QueryChainLinkOwnersRequest) Marshal

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

func (*QueryChainLinkOwnersRequest) MarshalTo

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

func (*QueryChainLinkOwnersRequest) MarshalToSizedBuffer

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

func (*QueryChainLinkOwnersRequest) ProtoMessage

func (*QueryChainLinkOwnersRequest) ProtoMessage()

func (*QueryChainLinkOwnersRequest) Reset

func (m *QueryChainLinkOwnersRequest) Reset()

func (*QueryChainLinkOwnersRequest) Size

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

func (*QueryChainLinkOwnersRequest) String

func (m *QueryChainLinkOwnersRequest) String() string

func (*QueryChainLinkOwnersRequest) Unmarshal

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

func (*QueryChainLinkOwnersRequest) XXX_DiscardUnknown

func (m *QueryChainLinkOwnersRequest) XXX_DiscardUnknown()

func (*QueryChainLinkOwnersRequest) XXX_Marshal

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

func (*QueryChainLinkOwnersRequest) XXX_Merge

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

func (*QueryChainLinkOwnersRequest) XXX_Size

func (m *QueryChainLinkOwnersRequest) XXX_Size() int

func (*QueryChainLinkOwnersRequest) XXX_Unmarshal

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

type QueryChainLinkOwnersResponse

type QueryChainLinkOwnersResponse struct {
	// Addresses of the chain links owners
	Owners []QueryChainLinkOwnersResponse_ChainLinkOwnerDetails `protobuf:"bytes,1,rep,name=owners,proto3" json:"owners"`
	// Pagination defines the pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryChainLinkOwnersResponse contains the data returned by the request allowing to get chain link owners.

func (*QueryChainLinkOwnersResponse) Descriptor

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

func (*QueryChainLinkOwnersResponse) GetOwners

func (*QueryChainLinkOwnersResponse) GetPagination

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

func (*QueryChainLinkOwnersResponse) Marshal

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

func (*QueryChainLinkOwnersResponse) MarshalTo

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

func (*QueryChainLinkOwnersResponse) MarshalToSizedBuffer

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

func (*QueryChainLinkOwnersResponse) ProtoMessage

func (*QueryChainLinkOwnersResponse) ProtoMessage()

func (*QueryChainLinkOwnersResponse) Reset

func (m *QueryChainLinkOwnersResponse) Reset()

func (*QueryChainLinkOwnersResponse) Size

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

func (*QueryChainLinkOwnersResponse) String

func (*QueryChainLinkOwnersResponse) Unmarshal

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

func (*QueryChainLinkOwnersResponse) XXX_DiscardUnknown

func (m *QueryChainLinkOwnersResponse) XXX_DiscardUnknown()

func (*QueryChainLinkOwnersResponse) XXX_Marshal

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

func (*QueryChainLinkOwnersResponse) XXX_Merge

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

func (*QueryChainLinkOwnersResponse) XXX_Size

func (m *QueryChainLinkOwnersResponse) XXX_Size() int

func (*QueryChainLinkOwnersResponse) XXX_Unmarshal

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

type QueryChainLinkOwnersResponse_ChainLinkOwnerDetails

type QueryChainLinkOwnersResponse_ChainLinkOwnerDetails struct {
	User      string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	Target    string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
}

ChainLinkOwnerDetails contains the details of a single chain link owner

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) Descriptor

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) GetChainName

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) GetTarget

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) GetUser

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) Marshal

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) MarshalTo

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) MarshalToSizedBuffer

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

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) ProtoMessage

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) Reset

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) Size

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) String

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) Unmarshal

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) XXX_DiscardUnknown

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) XXX_Marshal

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

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) XXX_Merge

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) XXX_Size

func (*QueryChainLinkOwnersResponse_ChainLinkOwnerDetails) XXX_Unmarshal

type QueryChainLinksRequest

type QueryChainLinksRequest struct {
	// (optional) User represents the Mage address of the user to which search
	// the link for
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
	// (optional) ChainName contains the name of the chain to which search the
	// link for. Used only if user is also set
	ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// (optional) Target must contain the external address to which query the link
	// for. Used only if chain name is also set
	Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
	// Pagination defines an optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryChainLinksRequest represents the request that should be used in order to retrieve the link associated with the provided user, for the given chain and having the given target address

func NewQueryChainLinksRequest

func NewQueryChainLinksRequest(
	user, chainName, target string, pageReq *query.PageRequest,
) *QueryChainLinksRequest

NewQueryChainLinksRequest returns a new QueryChainLinksRequest instance

func (*QueryChainLinksRequest) Descriptor

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

func (*QueryChainLinksRequest) GetChainName

func (m *QueryChainLinksRequest) GetChainName() string

func (*QueryChainLinksRequest) GetPagination

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

func (*QueryChainLinksRequest) GetTarget

func (m *QueryChainLinksRequest) GetTarget() string

func (*QueryChainLinksRequest) GetUser

func (m *QueryChainLinksRequest) GetUser() string

func (*QueryChainLinksRequest) Marshal

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

func (*QueryChainLinksRequest) MarshalTo

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

func (*QueryChainLinksRequest) MarshalToSizedBuffer

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

func (*QueryChainLinksRequest) ProtoMessage

func (*QueryChainLinksRequest) ProtoMessage()

func (*QueryChainLinksRequest) Reset

func (m *QueryChainLinksRequest) Reset()

func (*QueryChainLinksRequest) Size

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

func (*QueryChainLinksRequest) String

func (m *QueryChainLinksRequest) String() string

func (*QueryChainLinksRequest) Unmarshal

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

func (*QueryChainLinksRequest) XXX_DiscardUnknown

func (m *QueryChainLinksRequest) XXX_DiscardUnknown()

func (*QueryChainLinksRequest) XXX_Marshal

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

func (*QueryChainLinksRequest) XXX_Merge

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

func (*QueryChainLinksRequest) XXX_Size

func (m *QueryChainLinksRequest) XXX_Size() int

func (*QueryChainLinksRequest) XXX_Unmarshal

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

type QueryChainLinksResponse

type QueryChainLinksResponse struct {
	Links []ChainLink `protobuf:"bytes,1,rep,name=links,proto3" json:"links"`
	// Pagination defines the pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryChainLinksResponse is the response type for the Query/ChainLinks RPC method.

func (*QueryChainLinksResponse) Descriptor

func (*QueryChainLinksResponse) Descriptor() ([]byte, []int)
func (m *QueryChainLinksResponse) GetLinks() []ChainLink

func (*QueryChainLinksResponse) GetPagination

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

func (*QueryChainLinksResponse) Marshal

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

func (*QueryChainLinksResponse) MarshalTo

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

func (*QueryChainLinksResponse) MarshalToSizedBuffer

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

func (*QueryChainLinksResponse) ProtoMessage

func (*QueryChainLinksResponse) ProtoMessage()

func (*QueryChainLinksResponse) Reset

func (m *QueryChainLinksResponse) Reset()

func (*QueryChainLinksResponse) Size

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

func (*QueryChainLinksResponse) String

func (m *QueryChainLinksResponse) String() string

func (*QueryChainLinksResponse) Unmarshal

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

func (*QueryChainLinksResponse) XXX_DiscardUnknown

func (m *QueryChainLinksResponse) XXX_DiscardUnknown()

func (*QueryChainLinksResponse) XXX_Marshal

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

func (*QueryChainLinksResponse) XXX_Merge

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

func (*QueryChainLinksResponse) XXX_Size

func (m *QueryChainLinksResponse) XXX_Size() int

func (*QueryChainLinksResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Profile queries the profile of a specific user given their DTag or address.
	// If the queried user does not have a profile, the returned response will
	// contain a null profile.
	Profile(ctx context.Context, in *QueryProfileRequest, opts ...grpc.CallOption) (*QueryProfileResponse, error)
	// IncomingDTagTransferRequests queries all the DTag transfers requests that
	// have been made towards the user with the given address
	IncomingDTagTransferRequests(ctx context.Context, in *QueryIncomingDTagTransferRequestsRequest, opts ...grpc.CallOption) (*QueryIncomingDTagTransferRequestsResponse, error)
	// ChainLinks queries the chain links associated to the given user, if
	// provided. Otherwise it queries all the chain links stored.
	ChainLinks(ctx context.Context, in *QueryChainLinksRequest, opts ...grpc.CallOption) (*QueryChainLinksResponse, error)
	// ChainLinkOwners queries for the owners of chain links, optionally searching
	// for a specific chain name and external address
	ChainLinkOwners(ctx context.Context, in *QueryChainLinkOwnersRequest, opts ...grpc.CallOption) (*QueryChainLinkOwnersResponse, error)
	// DefaultExternalAddresses queries the default addresses associated to the
	// given user and (optionally) chain name
	DefaultExternalAddresses(ctx context.Context, in *QueryDefaultExternalAddressesRequest, opts ...grpc.CallOption) (*QueryDefaultExternalAddressesResponse, error)
	// ApplicationLinks queries the applications links associated to the given
	// user, if provided. Otherwise, it queries all the application links stored.
	ApplicationLinks(ctx context.Context, in *QueryApplicationLinksRequest, opts ...grpc.CallOption) (*QueryApplicationLinksResponse, error)
	// ApplicationLinkByClientID queries a single application link for a given
	// client id.
	ApplicationLinkByClientID(ctx context.Context, in *QueryApplicationLinkByClientIDRequest, opts ...grpc.CallOption) (*QueryApplicationLinkByClientIDResponse, error)
	// ApplicationLinkOwners queries for the owners of applications links,
	// optionally searching for a specific application and username.
	ApplicationLinkOwners(ctx context.Context, in *QueryApplicationLinkOwnersRequest, opts ...grpc.CallOption) (*QueryApplicationLinkOwnersResponse, error)
	// Params queries the profiles module params
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryDefaultExternalAddressesRequest

type QueryDefaultExternalAddressesRequest struct {
	// (Optional) Owner for which to query the default addresses
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// (Optional) Chain name to query the default address for
	ChainName string `protobuf:"bytes,2,opt,name=chain_name,json=chainName,proto3" json:"chain_name,omitempty"`
	// Pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDefaultExternalAddressesRequest is the request type for Query/DefaultExternalAddresses RPC method

func NewQueryDefaultExternalAddressesRequest

func NewQueryDefaultExternalAddressesRequest(owner, chainName string, pageReq *query.PageRequest) *QueryDefaultExternalAddressesRequest

NewQueryDefaultExternalAddressesRequest returns a new QueryDefaultExternalAddressesRequest instance

func (*QueryDefaultExternalAddressesRequest) Descriptor

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

func (*QueryDefaultExternalAddressesRequest) GetChainName

func (m *QueryDefaultExternalAddressesRequest) GetChainName() string

func (*QueryDefaultExternalAddressesRequest) GetOwner

func (*QueryDefaultExternalAddressesRequest) GetPagination

func (*QueryDefaultExternalAddressesRequest) Marshal

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

func (*QueryDefaultExternalAddressesRequest) MarshalTo

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

func (*QueryDefaultExternalAddressesRequest) MarshalToSizedBuffer

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

func (*QueryDefaultExternalAddressesRequest) ProtoMessage

func (*QueryDefaultExternalAddressesRequest) ProtoMessage()

func (*QueryDefaultExternalAddressesRequest) Reset

func (*QueryDefaultExternalAddressesRequest) Size

func (*QueryDefaultExternalAddressesRequest) String

func (*QueryDefaultExternalAddressesRequest) Unmarshal

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

func (*QueryDefaultExternalAddressesRequest) XXX_DiscardUnknown

func (m *QueryDefaultExternalAddressesRequest) XXX_DiscardUnknown()

func (*QueryDefaultExternalAddressesRequest) XXX_Marshal

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

func (*QueryDefaultExternalAddressesRequest) XXX_Merge

func (*QueryDefaultExternalAddressesRequest) XXX_Size

func (*QueryDefaultExternalAddressesRequest) XXX_Unmarshal

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

type QueryDefaultExternalAddressesResponse

type QueryDefaultExternalAddressesResponse struct {
	// List of default addresses, each one represented by the associated chain
	// link
	Links      []ChainLink         `protobuf:"bytes,1,rep,name=links,proto3" json:"links"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryDefaultExternalAddressesResponse is the response type for Query/DefaultExternalAddresses RPC method

func (*QueryDefaultExternalAddressesResponse) Descriptor

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

func (*QueryDefaultExternalAddressesResponse) GetPagination

func (*QueryDefaultExternalAddressesResponse) Marshal

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

func (*QueryDefaultExternalAddressesResponse) MarshalTo

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

func (*QueryDefaultExternalAddressesResponse) MarshalToSizedBuffer

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

func (*QueryDefaultExternalAddressesResponse) ProtoMessage

func (*QueryDefaultExternalAddressesResponse) ProtoMessage()

func (*QueryDefaultExternalAddressesResponse) Reset

func (*QueryDefaultExternalAddressesResponse) Size

func (*QueryDefaultExternalAddressesResponse) String

func (*QueryDefaultExternalAddressesResponse) Unmarshal

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

func (*QueryDefaultExternalAddressesResponse) XXX_DiscardUnknown

func (m *QueryDefaultExternalAddressesResponse) XXX_DiscardUnknown()

func (*QueryDefaultExternalAddressesResponse) XXX_Marshal

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

func (*QueryDefaultExternalAddressesResponse) XXX_Merge

func (*QueryDefaultExternalAddressesResponse) XXX_Size

func (*QueryDefaultExternalAddressesResponse) XXX_Unmarshal

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

type QueryIncomingDTagTransferRequestsRequest

type QueryIncomingDTagTransferRequestsRequest struct {
	// (optional) Receiver represents the address of the user to which query the
	// incoming requests for
	Receiver string `protobuf:"bytes,1,opt,name=receiver,proto3" json:"receiver,omitempty"`
	// Pagination defines an optional pagination for the request
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryIncomingDTagTransferRequestsRequest is the request type for the Query/IncomingDTagTransferRequests RPC endpoint

func NewQueryIncomingDTagTransferRequestsRequest

func NewQueryIncomingDTagTransferRequestsRequest(
	receiver string, pagination *query.PageRequest,
) *QueryIncomingDTagTransferRequestsRequest

NewQueryIncomingDTagTransferRequestsRequest returns a new QueryIncomingDTagTransferRequestsRequest instance

func (*QueryIncomingDTagTransferRequestsRequest) Descriptor

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

func (*QueryIncomingDTagTransferRequestsRequest) Marshal

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

func (*QueryIncomingDTagTransferRequestsRequest) MarshalTo

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

func (*QueryIncomingDTagTransferRequestsRequest) MarshalToSizedBuffer

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

func (*QueryIncomingDTagTransferRequestsRequest) ProtoMessage

func (*QueryIncomingDTagTransferRequestsRequest) Reset

func (*QueryIncomingDTagTransferRequestsRequest) Size

func (*QueryIncomingDTagTransferRequestsRequest) String

func (*QueryIncomingDTagTransferRequestsRequest) Unmarshal

func (*QueryIncomingDTagTransferRequestsRequest) XXX_DiscardUnknown

func (m *QueryIncomingDTagTransferRequestsRequest) XXX_DiscardUnknown()

func (*QueryIncomingDTagTransferRequestsRequest) XXX_Marshal

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

func (*QueryIncomingDTagTransferRequestsRequest) XXX_Merge

func (*QueryIncomingDTagTransferRequestsRequest) XXX_Size

func (*QueryIncomingDTagTransferRequestsRequest) XXX_Unmarshal

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

type QueryIncomingDTagTransferRequestsResponse

type QueryIncomingDTagTransferRequestsResponse struct {
	// Requests represent the list of all the DTag transfer requests made towards
	// the user
	Requests []DTagTransferRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests"`
	// Pagination defines the pagination response
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryIncomingDTagTransferRequestsResponse is the response type for the Query/IncomingDTagTransferRequests RPC method.

func (*QueryIncomingDTagTransferRequestsResponse) Descriptor

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

func (*QueryIncomingDTagTransferRequestsResponse) GetPagination

func (*QueryIncomingDTagTransferRequestsResponse) GetRequests

func (*QueryIncomingDTagTransferRequestsResponse) Marshal

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

func (*QueryIncomingDTagTransferRequestsResponse) MarshalTo

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

func (*QueryIncomingDTagTransferRequestsResponse) MarshalToSizedBuffer

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

func (*QueryIncomingDTagTransferRequestsResponse) ProtoMessage

func (*QueryIncomingDTagTransferRequestsResponse) Reset

func (*QueryIncomingDTagTransferRequestsResponse) Size

func (*QueryIncomingDTagTransferRequestsResponse) String

func (*QueryIncomingDTagTransferRequestsResponse) Unmarshal

func (*QueryIncomingDTagTransferRequestsResponse) XXX_DiscardUnknown

func (m *QueryIncomingDTagTransferRequestsResponse) XXX_DiscardUnknown()

func (*QueryIncomingDTagTransferRequestsResponse) XXX_Marshal

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

func (*QueryIncomingDTagTransferRequestsResponse) XXX_Merge

func (*QueryIncomingDTagTransferRequestsResponse) XXX_Size

func (*QueryIncomingDTagTransferRequestsResponse) XXX_Unmarshal

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the request type for the Query/Params RPC endpoint

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

type QueryProfileRequest struct {
	// Address or DTag of the user to query the profile for
	User string `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"`
}

QueryProfileRequest is the request type for the Query/Profile RPC method.

func NewQueryProfileRequest

func NewQueryProfileRequest(user string) *QueryProfileRequest

NewQueryProfileRequest returns a new QueryProfileRequest containing the given data

func (*QueryProfileRequest) Descriptor

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

func (*QueryProfileRequest) Marshal

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

func (*QueryProfileRequest) MarshalTo

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

func (*QueryProfileRequest) MarshalToSizedBuffer

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

func (*QueryProfileRequest) ProtoMessage

func (*QueryProfileRequest) ProtoMessage()

func (*QueryProfileRequest) Reset

func (m *QueryProfileRequest) Reset()

func (*QueryProfileRequest) Size

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

func (*QueryProfileRequest) String

func (m *QueryProfileRequest) String() string

func (*QueryProfileRequest) Unmarshal

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

func (*QueryProfileRequest) XXX_DiscardUnknown

func (m *QueryProfileRequest) XXX_DiscardUnknown()

func (*QueryProfileRequest) XXX_Marshal

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

func (*QueryProfileRequest) XXX_Merge

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

func (*QueryProfileRequest) XXX_Size

func (m *QueryProfileRequest) XXX_Size() int

func (*QueryProfileRequest) XXX_Unmarshal

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

type QueryProfileResponse

type QueryProfileResponse struct {
	Profile *types.Any `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"`
}

QueryProfileResponse is the response type for the Query/Profile RPC method.

func (*QueryProfileResponse) Descriptor

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

func (*QueryProfileResponse) GetProfile

func (m *QueryProfileResponse) GetProfile() *types.Any

func (*QueryProfileResponse) Marshal

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

func (*QueryProfileResponse) MarshalTo

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

func (*QueryProfileResponse) MarshalToSizedBuffer

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

func (*QueryProfileResponse) ProtoMessage

func (*QueryProfileResponse) ProtoMessage()

func (*QueryProfileResponse) Reset

func (m *QueryProfileResponse) Reset()

func (*QueryProfileResponse) Size

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

func (*QueryProfileResponse) String

func (m *QueryProfileResponse) String() string

func (*QueryProfileResponse) Unmarshal

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

func (*QueryProfileResponse) UnpackInterfaces

func (r *QueryProfileResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

UnpackInterfaces implements codectypes.UnpackInterfacesMessage

func (*QueryProfileResponse) XXX_DiscardUnknown

func (m *QueryProfileResponse) XXX_DiscardUnknown()

func (*QueryProfileResponse) XXX_Marshal

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

func (*QueryProfileResponse) XXX_Merge

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

func (*QueryProfileResponse) XXX_Size

func (m *QueryProfileResponse) XXX_Size() int

func (*QueryProfileResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Profile queries the profile of a specific user given their DTag or address.
	// If the queried user does not have a profile, the returned response will
	// contain a null profile.
	Profile(context.Context, *QueryProfileRequest) (*QueryProfileResponse, error)
	// IncomingDTagTransferRequests queries all the DTag transfers requests that
	// have been made towards the user with the given address
	IncomingDTagTransferRequests(context.Context, *QueryIncomingDTagTransferRequestsRequest) (*QueryIncomingDTagTransferRequestsResponse, error)
	// ChainLinks queries the chain links associated to the given user, if
	// provided. Otherwise it queries all the chain links stored.
	ChainLinks(context.Context, *QueryChainLinksRequest) (*QueryChainLinksResponse, error)
	// ChainLinkOwners queries for the owners of chain links, optionally searching
	// for a specific chain name and external address
	ChainLinkOwners(context.Context, *QueryChainLinkOwnersRequest) (*QueryChainLinkOwnersResponse, error)
	// DefaultExternalAddresses queries the default addresses associated to the
	// given user and (optionally) chain name
	DefaultExternalAddresses(context.Context, *QueryDefaultExternalAddressesRequest) (*QueryDefaultExternalAddressesResponse, error)
	// ApplicationLinks queries the applications links associated to the given
	// user, if provided. Otherwise, it queries all the application links stored.
	ApplicationLinks(context.Context, *QueryApplicationLinksRequest) (*QueryApplicationLinksResponse, error)
	// ApplicationLinkByClientID queries a single application link for a given
	// client id.
	ApplicationLinkByClientID(context.Context, *QueryApplicationLinkByClientIDRequest) (*QueryApplicationLinkByClientIDResponse, error)
	// ApplicationLinkOwners queries for the owners of applications links,
	// optionally searching for a specific application and username.
	ApplicationLinkOwners(context.Context, *QueryApplicationLinkOwnersRequest) (*QueryApplicationLinkOwnersResponse, error)
	// Params queries the profiles module params
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type RelationshipsKeeper

type RelationshipsKeeper interface {
	// IsUserBlocked returns true if the provided blocker has blocked the given user for the given subspace.
	// If the provided subspace is empty, all subspaces will be checked
	HasUserBlocked(ctx sdk.Context, user, blocker string, subspaceID uint64) bool
}

RelationshipsKeeper represents the expected keeper used to interact with relationships

type Result

type Result struct {
	// sum is the oneof that specifies whether this represents a success or
	// failure result
	//
	// Types that are valid to be assigned to Sum:
	//	*Result_Success_
	//	*Result_Failed_
	Sum isResult_Sum `protobuf_oneof:"sum"`
}

Result represents a verification result

func NewErrorResult

func NewErrorResult(error string) *Result

NewErrorResult allows to build a new Result instance representing an error

func NewSuccessResult

func NewSuccessResult(value, signature string) *Result

NewSuccessResult allows to build a new Result instance representing a success

func (*Result) Descriptor

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

func (*Result) Equal

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

func (*Result) GetFailed

func (m *Result) GetFailed() *Result_Failed

func (*Result) GetSuccess

func (m *Result) GetSuccess() *Result_Success

func (*Result) GetSum

func (m *Result) GetSum() isResult_Sum

func (*Result) Marshal

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

func (*Result) MarshalTo

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

func (*Result) MarshalToSizedBuffer

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

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) Reset

func (m *Result) Reset()

func (*Result) Size

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

func (*Result) String

func (m *Result) String() string

func (*Result) Unmarshal

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

func (*Result) Validate

func (r *Result) Validate() error

Validate returns an error if the instance does not contain valid data

func (*Result) XXX_DiscardUnknown

func (m *Result) XXX_DiscardUnknown()

func (*Result) XXX_Marshal

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

func (*Result) XXX_Merge

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

func (*Result) XXX_OneofWrappers

func (*Result) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Result) XXX_Size

func (m *Result) XXX_Size() int

func (*Result) XXX_Unmarshal

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

type Result_Failed

type Result_Failed struct {
	// Error that is associated with the failure
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty" yaml:"error"`
}

Failed is the result of an application link that has not been verified successfully

func (*Result_Failed) Descriptor

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

func (*Result_Failed) Equal

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

func (*Result_Failed) Marshal

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

func (*Result_Failed) MarshalTo

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

func (*Result_Failed) MarshalToSizedBuffer

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

func (*Result_Failed) ProtoMessage

func (*Result_Failed) ProtoMessage()

func (*Result_Failed) Reset

func (m *Result_Failed) Reset()

func (*Result_Failed) Size

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

func (*Result_Failed) String

func (m *Result_Failed) String() string

func (*Result_Failed) Unmarshal

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

func (*Result_Failed) XXX_DiscardUnknown

func (m *Result_Failed) XXX_DiscardUnknown()

func (*Result_Failed) XXX_Marshal

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

func (*Result_Failed) XXX_Merge

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

func (*Result_Failed) XXX_Size

func (m *Result_Failed) XXX_Size() int

func (*Result_Failed) XXX_Unmarshal

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

type Result_Failed_

type Result_Failed_ struct {
	Failed *Result_Failed `protobuf:"bytes,2,opt,name=failed,proto3,oneof" json:"failed,omitempty"`
}

func (*Result_Failed_) Equal

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

func (*Result_Failed_) MarshalTo

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

func (*Result_Failed_) MarshalToSizedBuffer

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

func (*Result_Failed_) Size

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

func (Result_Failed_) Validate

func (r Result_Failed_) Validate() error

Validate returns an error if the instance does not contain valid data

type Result_Success

type Result_Success struct {
	// Hex-encoded value that has be signed by the profile
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty" yaml:"value"`
	// Hex-encoded signature that has been produced by signing the value
	Signature string `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" yaml:"signature"`
}

Success is the result of an application link that has been successfully verified

func (*Result_Success) Descriptor

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

func (*Result_Success) Equal

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

func (*Result_Success) Marshal

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

func (*Result_Success) MarshalTo

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

func (*Result_Success) MarshalToSizedBuffer

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

func (*Result_Success) ProtoMessage

func (*Result_Success) ProtoMessage()

func (*Result_Success) Reset

func (m *Result_Success) Reset()

func (*Result_Success) Size

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

func (*Result_Success) String

func (m *Result_Success) String() string

func (*Result_Success) Unmarshal

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

func (*Result_Success) XXX_DiscardUnknown

func (m *Result_Success) XXX_DiscardUnknown()

func (*Result_Success) XXX_Marshal

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

func (*Result_Success) XXX_Merge

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

func (*Result_Success) XXX_Size

func (m *Result_Success) XXX_Size() int

func (*Result_Success) XXX_Unmarshal

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

type Result_Success_

type Result_Success_ struct {
	Success *Result_Success `protobuf:"bytes,1,opt,name=success,proto3,oneof" json:"success,omitempty"`
}

func (*Result_Success_) Equal

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

func (*Result_Success_) MarshalTo

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

func (*Result_Success_) MarshalToSizedBuffer

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

func (*Result_Success_) Size

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

func (Result_Success_) Validate

func (r Result_Success_) Validate() error

Validate returns an error if the instance does not contain valid data

type ScopedKeeper

type ScopedKeeper interface {
	AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
	ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
	GetCapability(ctx sdk.Context, name string) (*capabilitytypes.Capability, bool)
}

ScopedKeeper defines the expected scoped keeper

type Signature

type Signature interface {
	proto.Message

	// GetValueType returns the type of the signature
	GetValueType() (SignatureValueType, error)

	// Validate checks the validity of the Signature
	Validate(cdc codec.BinaryCodec, amino *codec.LegacyAmino, plainText []byte, owner string) error

	// Verify allows to verify this signature using the given public key against the given plain text.
	// If the signature is valid, it returns the public key instance used to verify it
	Verify(cdc codec.BinaryCodec, pubKey *codectypes.Any, plainText []byte) (cryptotypes.PubKey, error)
}

Signature represents a generic signature data

func CosmosSignatureDataToSignature

func CosmosSignatureDataToSignature(data signing.SignatureData) (Signature, error)

CosmosSignatureDataToSignature allows to create a Signature instance from the given Cosmos signature data

type SignatureValueType

type SignatureValueType int32

SignatureValueType specifies all the possible signature types

const (
	// SIGNATURE_VALUE_TYPE_UNSPECIFIED specifies an unknown signing mode
	// and will be rejected
	SIGNATURE_VALUE_TYPE_UNSPECIFIED SignatureValueType = 0
	// SIGNATURE_VALUE_TYPE_RAW should be used when the value has been
	// signed as a raw byte array
	SIGNATURE_VALUE_TYPE_RAW SignatureValueType = 1
	// SIGNATURE_VALUE_TYPE_COSMOS_DIRECT should be used when the signed
	// value has been encoded as a Protobuf transaction containing the owner
	// address inside its memo field
	SIGNATURE_VALUE_TYPE_COSMOS_DIRECT SignatureValueType = 2
	// SIGNATURE_VALUE_TYPE_COSMOS_AMINO should be used when the value has
	// been encoded as an Amino transaction containing the owner address inside
	// its memo field
	SIGNATURE_VALUE_TYPE_COSMOS_AMINO SignatureValueType = 3
	// SIGNATURE_VALUE_TYPE_EVM_PERSONAL_SIGN should be used when the value
	// has been encoded following the EVM personal_sign specification
	SIGNATURE_VALUE_TYPE_EVM_PERSONAL_SIGN SignatureValueType = 4
)

func (SignatureValueType) EnumDescriptor

func (SignatureValueType) EnumDescriptor() ([]byte, []int)

func (SignatureValueType) String

func (x SignatureValueType) String() string

type SingleSignature

type SingleSignature struct {
	// Type represents the type of the signature value
	ValueType SignatureValueType `` /* 148-byte string literal not displayed */
	// Signature is the raw signature bytes
	Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty" yaml:"signature"`
}

SingleSignature is the signature data for a single signer

func NewSingleSignature

func NewSingleSignature(valueType SignatureValueType, signature []byte) *SingleSignature

NewSingleSignature returns a new CosmosSignature instance

func (*SingleSignature) Descriptor

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

func (*SingleSignature) Equal

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

func (*SingleSignature) GetValueType

func (s *SingleSignature) GetValueType() (SignatureValueType, error)

GetValueType implements CosmosSignature

func (*SingleSignature) Marshal

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

func (*SingleSignature) MarshalTo

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

func (*SingleSignature) MarshalToSizedBuffer

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

func (*SingleSignature) ProtoMessage

func (*SingleSignature) ProtoMessage()

func (*SingleSignature) Reset

func (m *SingleSignature) Reset()

func (*SingleSignature) Size

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

func (*SingleSignature) String

func (m *SingleSignature) String() string

func (*SingleSignature) Unmarshal

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

func (*SingleSignature) Validate

func (s *SingleSignature) Validate(cdc codec.BinaryCodec, amino *codec.LegacyAmino, plainText []byte, owner string) error

Validate implements Signature

func (*SingleSignature) Verify

func (s *SingleSignature) Verify(cdc codec.BinaryCodec, pubKey *codectypes.Any, plainText []byte) (cryptotypes.PubKey, error)

Verify implements Signature

func (*SingleSignature) XXX_DiscardUnknown

func (m *SingleSignature) XXX_DiscardUnknown()

func (*SingleSignature) XXX_Marshal

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

func (*SingleSignature) XXX_Merge

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

func (*SingleSignature) XXX_Size

func (m *SingleSignature) XXX_Size() int

func (*SingleSignature) XXX_Unmarshal

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

type SubspacesKeeper

type SubspacesKeeper interface {
	// HasSubspace tells if the subspace with the given id exists
	HasSubspace(ctx sdk.Context, subspaceID uint64) bool

	// GetAllSubspaces returns all the subspaces stored
	GetAllSubspaces(ctx sdk.Context) []subspacestypes.Subspace
}

SubspacesKeeper represents the expected keeper used to interact with subspaces

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AcceptDTagTransferRequest

func (*UnimplementedMsgServer) CancelDTagTransferRequest

func (*UnimplementedMsgServer) DeleteProfile

func (*UnimplementedMsgServer) LinkApplication

func (*UnimplementedMsgServer) LinkChainAccount

func (*UnimplementedMsgServer) RefuseDTagTransferRequest

func (*UnimplementedMsgServer) RequestDTagTransfer

func (*UnimplementedMsgServer) SaveProfile

func (*UnimplementedMsgServer) SetDefaultExternalAddress

func (*UnimplementedMsgServer) UnlinkApplication

func (*UnimplementedMsgServer) UnlinkChainAccount

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) ChainLinkOwners

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Profile

Jump to

Keyboard shortcuts

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