Documentation ¶
Index ¶
- Constants
- Variables
- func IsValidAminoTxSig(value []byte, expectedMemo string, cdc *codec.LegacyAmino) bool
- func IsValidDirectTxSig(value []byte, expectedMemo string, cdc codec.BinaryCodec) bool
- func IsValidTextSig(value []byte, expectedValue string) bool
- func MustMarshalApplicationLink(cdc codec.BinaryCodec, link ApplicationLink) []byte
- func MustMarshalChainLink(cdc codec.BinaryCodec, link ChainLink) []byte
- func ParamKeyTable() paramstypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func SignatureDataToCosmosSignatureData(unpacker codectypes.AnyUnpacker, s SignatureData) (signing.SignatureData, error)
- func ValidateBioParams(i interface{}) error
- func ValidateDTagParams(i interface{}) error
- func ValidateNicknameParams(i interface{}) error
- func ValidateOracleParams(i interface{}) error
- type AddressData
- type ApplicationLink
- func (*ApplicationLink) Descriptor() ([]byte, []int)
- func (this *ApplicationLink) Equal(that interface{}) bool
- func (l *ApplicationLink) IsVerificationCompleted() bool
- func (l *ApplicationLink) IsVerificationOngoing() bool
- func (m *ApplicationLink) Marshal() (dAtA []byte, err error)
- func (m *ApplicationLink) MarshalTo(dAtA []byte) (int, error)
- func (m *ApplicationLink) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ApplicationLink) ProtoMessage()
- func (m *ApplicationLink) Reset()
- func (m *ApplicationLink) Size() (n int)
- func (m *ApplicationLink) String() string
- func (m *ApplicationLink) Unmarshal(dAtA []byte) error
- func (l ApplicationLink) Validate() error
- func (m *ApplicationLink) XXX_DiscardUnknown()
- func (m *ApplicationLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplicationLink) XXX_Merge(src proto.Message)
- func (m *ApplicationLink) XXX_Size() int
- func (m *ApplicationLink) XXX_Unmarshal(b []byte) error
- type ApplicationLinkState
- type Base58Address
- func (*Base58Address) Descriptor() ([]byte, []int)
- func (this *Base58Address) Equal(that interface{}) bool
- func (b Base58Address) GetValue() string
- func (m *Base58Address) Marshal() (dAtA []byte, err error)
- func (m *Base58Address) MarshalTo(dAtA []byte) (int, error)
- func (m *Base58Address) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Base58Address) ProtoMessage()
- func (m *Base58Address) Reset()
- func (m *Base58Address) Size() (n int)
- func (m *Base58Address) String() string
- func (m *Base58Address) Unmarshal(dAtA []byte) error
- func (b Base58Address) Validate() error
- func (b Base58Address) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
- func (m *Base58Address) XXX_DiscardUnknown()
- func (m *Base58Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Base58Address) XXX_Merge(src proto.Message)
- func (m *Base58Address) XXX_Size() int
- func (m *Base58Address) XXX_Unmarshal(b []byte) error
- type Bech32Address
- func (*Bech32Address) Descriptor() ([]byte, []int)
- func (this *Bech32Address) Equal(that interface{}) bool
- func (b Bech32Address) GetValue() string
- func (m *Bech32Address) Marshal() (dAtA []byte, err error)
- func (m *Bech32Address) MarshalTo(dAtA []byte) (int, error)
- func (m *Bech32Address) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bech32Address) ProtoMessage()
- func (m *Bech32Address) Reset()
- func (m *Bech32Address) Size() (n int)
- func (m *Bech32Address) String() string
- func (m *Bech32Address) Unmarshal(dAtA []byte) error
- func (b Bech32Address) Validate() error
- func (b Bech32Address) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
- func (m *Bech32Address) XXX_DiscardUnknown()
- func (m *Bech32Address) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bech32Address) XXX_Merge(src proto.Message)
- func (m *Bech32Address) XXX_Size() int
- func (m *Bech32Address) XXX_Unmarshal(b []byte) error
- type BioParams
- func (*BioParams) Descriptor() ([]byte, []int)
- func (m *BioParams) Marshal() (dAtA []byte, err error)
- func (m *BioParams) MarshalTo(dAtA []byte) (int, error)
- func (m *BioParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BioParams) ProtoMessage()
- func (m *BioParams) Reset()
- func (m *BioParams) Size() (n int)
- func (m *BioParams) String() string
- func (m *BioParams) Unmarshal(dAtA []byte) error
- func (m *BioParams) XXX_DiscardUnknown()
- func (m *BioParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BioParams) XXX_Merge(src proto.Message)
- func (m *BioParams) XXX_Size() int
- func (m *BioParams) XXX_Unmarshal(b []byte) error
- type ChainConfig
- func (*ChainConfig) Descriptor() ([]byte, []int)
- func (this *ChainConfig) Equal(that interface{}) bool
- func (m *ChainConfig) Marshal() (dAtA []byte, err error)
- func (m *ChainConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainConfig) ProtoMessage()
- func (m *ChainConfig) Reset()
- func (m *ChainConfig) Size() (n int)
- func (m *ChainConfig) String() string
- func (m *ChainConfig) Unmarshal(dAtA []byte) error
- func (c ChainConfig) Validate() error
- func (m *ChainConfig) XXX_DiscardUnknown()
- func (m *ChainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainConfig) XXX_Merge(src proto.Message)
- func (m *ChainConfig) XXX_Size() int
- func (m *ChainConfig) XXX_Unmarshal(b []byte) error
- type ChainLink
- func (*ChainLink) Descriptor() ([]byte, []int)
- func (this *ChainLink) Equal(that interface{}) bool
- func (link ChainLink) GetAddressData() AddressData
- func (m *ChainLink) Marshal() (dAtA []byte, err error)
- func (m *ChainLink) MarshalTo(dAtA []byte) (int, error)
- func (m *ChainLink) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ChainLink) ProtoMessage()
- func (m *ChainLink) Reset()
- func (m *ChainLink) Size() (n int)
- func (m *ChainLink) String() string
- func (m *ChainLink) Unmarshal(dAtA []byte) error
- func (link *ChainLink) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (link ChainLink) Validate() error
- func (m *ChainLink) XXX_DiscardUnknown()
- func (m *ChainLink) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainLink) XXX_Merge(src proto.Message)
- func (m *ChainLink) XXX_Size() int
- func (m *ChainLink) XXX_Unmarshal(b []byte) error
- type DTagParams
- func (*DTagParams) Descriptor() ([]byte, []int)
- func (m *DTagParams) Marshal() (dAtA []byte, err error)
- func (m *DTagParams) MarshalTo(dAtA []byte) (int, error)
- func (m *DTagParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DTagParams) ProtoMessage()
- func (m *DTagParams) Reset()
- func (m *DTagParams) Size() (n int)
- func (m *DTagParams) String() string
- func (m *DTagParams) Unmarshal(dAtA []byte) error
- func (m *DTagParams) XXX_DiscardUnknown()
- func (m *DTagParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DTagParams) XXX_Merge(src proto.Message)
- func (m *DTagParams) XXX_Size() int
- func (m *DTagParams) XXX_Unmarshal(b []byte) error
- type DTagTransferRequest
- func (*DTagTransferRequest) Descriptor() ([]byte, []int)
- func (this *DTagTransferRequest) Equal(that interface{}) bool
- func (m *DTagTransferRequest) Marshal() (dAtA []byte, err error)
- func (m *DTagTransferRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *DTagTransferRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DTagTransferRequest) ProtoMessage()
- func (m *DTagTransferRequest) Reset()
- func (m *DTagTransferRequest) Size() (n int)
- func (m *DTagTransferRequest) String() string
- func (m *DTagTransferRequest) Unmarshal(dAtA []byte) error
- func (request DTagTransferRequest) Validate() error
- func (m *DTagTransferRequest) XXX_DiscardUnknown()
- func (m *DTagTransferRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DTagTransferRequest) XXX_Merge(src proto.Message)
- func (m *DTagTransferRequest) XXX_Size() int
- func (m *DTagTransferRequest) XXX_Unmarshal(b []byte) error
- type Data
- func (*Data) Descriptor() ([]byte, []int)
- func (this *Data) Equal(that interface{}) bool
- func (m *Data) Marshal() (dAtA []byte, err error)
- func (m *Data) MarshalTo(dAtA []byte) (int, error)
- func (m *Data) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Data) ProtoMessage()
- func (m *Data) Reset()
- func (m *Data) Size() (n int)
- func (m *Data) String() string
- func (m *Data) Unmarshal(dAtA []byte) error
- func (d Data) Validate() error
- func (m *Data) XXX_DiscardUnknown()
- func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Data) XXX_Merge(src proto.Message)
- func (m *Data) XXX_Size() int
- func (m *Data) XXX_Unmarshal(b []byte) error
- type HexAddress
- func (*HexAddress) Descriptor() ([]byte, []int)
- func (this *HexAddress) Equal(that interface{}) bool
- func (h HexAddress) GetValue() string
- func (m *HexAddress) Marshal() (dAtA []byte, err error)
- func (m *HexAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *HexAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*HexAddress) ProtoMessage()
- func (m *HexAddress) Reset()
- func (m *HexAddress) Size() (n int)
- func (m *HexAddress) String() string
- func (m *HexAddress) Unmarshal(dAtA []byte) error
- func (h HexAddress) Validate() error
- func (h HexAddress) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
- func (m *HexAddress) XXX_DiscardUnknown()
- func (m *HexAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *HexAddress) XXX_Merge(src proto.Message)
- func (m *HexAddress) XXX_Size() int
- func (m *HexAddress) XXX_Unmarshal(b []byte) error
- type MultiSignatureData
- func (*MultiSignatureData) Descriptor() ([]byte, []int)
- func (this *MultiSignatureData) Equal(that interface{}) bool
- func (m *MultiSignatureData) Marshal() (dAtA []byte, err error)
- func (m *MultiSignatureData) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiSignatureData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiSignatureData) ProtoMessage()
- func (m *MultiSignatureData) Reset()
- func (m *MultiSignatureData) Size() (n int)
- func (m *MultiSignatureData) String() string
- func (m *MultiSignatureData) Unmarshal(dAtA []byte) error
- func (s *MultiSignatureData) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *MultiSignatureData) XXX_DiscardUnknown()
- func (m *MultiSignatureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiSignatureData) XXX_Merge(src proto.Message)
- func (m *MultiSignatureData) XXX_Size() int
- func (m *MultiSignatureData) XXX_Unmarshal(b []byte) error
- type NicknameParams
- func (*NicknameParams) Descriptor() ([]byte, []int)
- func (m *NicknameParams) Marshal() (dAtA []byte, err error)
- func (m *NicknameParams) MarshalTo(dAtA []byte) (int, error)
- func (m *NicknameParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NicknameParams) ProtoMessage()
- func (m *NicknameParams) Reset()
- func (m *NicknameParams) Size() (n int)
- func (m *NicknameParams) String() string
- func (m *NicknameParams) Unmarshal(dAtA []byte) error
- func (m *NicknameParams) XXX_DiscardUnknown()
- func (m *NicknameParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NicknameParams) XXX_Merge(src proto.Message)
- func (m *NicknameParams) XXX_Size() int
- func (m *NicknameParams) XXX_Unmarshal(b []byte) error
- type OracleParams
- func (*OracleParams) Descriptor() ([]byte, []int)
- func (m *OracleParams) Marshal() (dAtA []byte, err error)
- func (m *OracleParams) MarshalTo(dAtA []byte) (int, error)
- func (m *OracleParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OracleParams) ProtoMessage()
- func (m *OracleParams) Reset()
- func (m *OracleParams) Size() (n int)
- func (m *OracleParams) String() string
- func (m *OracleParams) Unmarshal(dAtA []byte) error
- func (m *OracleParams) XXX_DiscardUnknown()
- func (m *OracleParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OracleParams) XXX_Merge(src proto.Message)
- func (m *OracleParams) XXX_Size() int
- func (m *OracleParams) XXX_Unmarshal(b []byte) error
- type OracleRequest
- func (*OracleRequest) Descriptor() ([]byte, []int)
- func (this *OracleRequest) Equal(that interface{}) bool
- func (m *OracleRequest) Marshal() (dAtA []byte, err error)
- func (m *OracleRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *OracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OracleRequest) ProtoMessage()
- func (m *OracleRequest) Reset()
- func (m *OracleRequest) Size() (n int)
- func (m *OracleRequest) String() string
- func (m *OracleRequest) Unmarshal(dAtA []byte) error
- func (o OracleRequest) Validate() error
- func (m *OracleRequest) XXX_DiscardUnknown()
- func (m *OracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OracleRequest) XXX_Merge(src proto.Message)
- func (m *OracleRequest) XXX_Size() int
- func (m *OracleRequest) XXX_Unmarshal(b []byte) error
- type OracleRequest_CallData
- func (*OracleRequest_CallData) Descriptor() ([]byte, []int)
- func (this *OracleRequest_CallData) Equal(that interface{}) bool
- func (m *OracleRequest_CallData) GetApplication() string
- func (m *OracleRequest_CallData) GetCallData() string
- func (m *OracleRequest_CallData) Marshal() (dAtA []byte, err error)
- func (m *OracleRequest_CallData) MarshalTo(dAtA []byte) (int, error)
- func (m *OracleRequest_CallData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OracleRequest_CallData) ProtoMessage()
- func (m *OracleRequest_CallData) Reset()
- func (m *OracleRequest_CallData) Size() (n int)
- func (m *OracleRequest_CallData) String() string
- func (m *OracleRequest_CallData) Unmarshal(dAtA []byte) error
- func (c OracleRequest_CallData) Validate() error
- func (m *OracleRequest_CallData) XXX_DiscardUnknown()
- func (m *OracleRequest_CallData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OracleRequest_CallData) XXX_Merge(src proto.Message)
- func (m *OracleRequest_CallData) XXX_Size() int
- func (m *OracleRequest_CallData) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (params *Params) ParamSetPairs() paramstypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (params Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Pictures
- func (*Pictures) Descriptor() ([]byte, []int)
- func (this *Pictures) Equal(that interface{}) bool
- func (m *Pictures) GetCover() string
- func (m *Pictures) GetProfile() string
- func (m *Pictures) Marshal() (dAtA []byte, err error)
- func (m *Pictures) MarshalTo(dAtA []byte) (int, error)
- func (m *Pictures) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pictures) ProtoMessage()
- func (m *Pictures) Reset()
- func (m *Pictures) Size() (n int)
- func (m *Pictures) String() string
- func (m *Pictures) Unmarshal(dAtA []byte) error
- func (pic Pictures) Validate() error
- func (m *Pictures) XXX_DiscardUnknown()
- func (m *Pictures) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pictures) XXX_Merge(src proto.Message)
- func (m *Pictures) XXX_Size() int
- func (m *Pictures) XXX_Unmarshal(b []byte) error
- type Profile
- func (*Profile) Descriptor() ([]byte, []int)
- func (p *Profile) GetAccount() authtypes.AccountI
- func (p *Profile) GetAccountNumber() uint64
- func (p *Profile) GetAddress() sdk.AccAddress
- func (p *Profile) GetDelegatedFree() sdk.Coins
- func (p *Profile) GetDelegatedVesting() sdk.Coins
- func (p *Profile) GetEndTime() int64
- func (p *Profile) GetOriginalVesting() sdk.Coins
- func (p *Profile) GetPubKey() cryptotypes.PubKey
- func (p *Profile) GetSequence() uint64
- func (p *Profile) GetStartTime() int64
- func (p *Profile) GetVestedCoins(blockTime time.Time) sdk.Coins
- func (p *Profile) GetVestingCoins(blockTime time.Time) sdk.Coins
- func (p *Profile) LockedCoins(blockTime time.Time) sdk.Coins
- func (m *Profile) Marshal() (dAtA []byte, err error)
- func (p *Profile) MarshalJSON() ([]byte, error)
- func (m *Profile) MarshalTo(dAtA []byte) (int, error)
- func (m *Profile) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Profile) MarshalYAML() (interface{}, error)
- func (*Profile) ProtoMessage()
- func (m *Profile) Reset()
- func (p *Profile) SetAccountNumber(accountNumber uint64) error
- func (p *Profile) SetAddress(addr sdk.AccAddress) error
- func (p *Profile) SetPubKey(pubKey cryptotypes.PubKey) error
- func (p *Profile) SetSequence(sequence uint64) error
- func (m *Profile) Size() (n int)
- func (p *Profile) String() string
- func (p *Profile) TrackDelegation(blockTime time.Time, balance, amount sdk.Coins)
- func (p *Profile) TrackUndelegation(amount sdk.Coins)
- func (m *Profile) Unmarshal(dAtA []byte) error
- func (p *Profile) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (m *Profile) XXX_DiscardUnknown()
- func (m *Profile) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Profile) XXX_Merge(src proto.Message)
- func (m *Profile) XXX_Size() int
- func (m *Profile) XXX_Unmarshal(b []byte) error
- type Proof
- func (*Proof) Descriptor() ([]byte, []int)
- func (this *Proof) Equal(that interface{}) bool
- func (m *Proof) Marshal() (dAtA []byte, err error)
- func (m *Proof) MarshalTo(dAtA []byte) (int, error)
- func (m *Proof) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Proof) ProtoMessage()
- func (m *Proof) Reset()
- func (m *Proof) Size() (n int)
- func (m *Proof) String() string
- func (m *Proof) Unmarshal(dAtA []byte) error
- func (p *Proof) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (p Proof) Validate() error
- func (p Proof) Verify(cdc codec.BinaryCodec, legacyAmino *codec.LegacyAmino, owner string, ...) error
- func (m *Proof) XXX_DiscardUnknown()
- func (m *Proof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proof) XXX_Merge(src proto.Message)
- func (m *Proof) XXX_Size() int
- func (m *Proof) XXX_Unmarshal(b []byte) error
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (this *Result) Equal(that interface{}) bool
- func (m *Result) GetFailed() *Result_Failed
- func (m *Result) GetSuccess() *Result_Success
- func (m *Result) GetSum() isResult_Sum
- func (m *Result) Marshal() (dAtA []byte, err error)
- func (m *Result) MarshalTo(dAtA []byte) (int, error)
- func (m *Result) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) Size() (n int)
- func (m *Result) String() string
- func (m *Result) Unmarshal(dAtA []byte) error
- func (r *Result) Validate() error
- func (m *Result) XXX_DiscardUnknown()
- func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Result) XXX_Merge(src proto.Message)
- func (*Result) XXX_OneofWrappers() []interface{}
- func (m *Result) XXX_Size() int
- func (m *Result) XXX_Unmarshal(b []byte) error
- type Result_Failed
- func (*Result_Failed) Descriptor() ([]byte, []int)
- func (this *Result_Failed) Equal(that interface{}) bool
- func (m *Result_Failed) Marshal() (dAtA []byte, err error)
- func (m *Result_Failed) MarshalTo(dAtA []byte) (int, error)
- func (m *Result_Failed) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Result_Failed) ProtoMessage()
- func (m *Result_Failed) Reset()
- func (m *Result_Failed) Size() (n int)
- func (m *Result_Failed) String() string
- func (m *Result_Failed) Unmarshal(dAtA []byte) error
- func (m *Result_Failed) XXX_DiscardUnknown()
- func (m *Result_Failed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Result_Failed) XXX_Merge(src proto.Message)
- func (m *Result_Failed) XXX_Size() int
- func (m *Result_Failed) XXX_Unmarshal(b []byte) error
- type Result_Failed_
- type Result_Success
- func (*Result_Success) Descriptor() ([]byte, []int)
- func (this *Result_Success) Equal(that interface{}) bool
- func (m *Result_Success) Marshal() (dAtA []byte, err error)
- func (m *Result_Success) MarshalTo(dAtA []byte) (int, error)
- func (m *Result_Success) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Result_Success) ProtoMessage()
- func (m *Result_Success) Reset()
- func (m *Result_Success) Size() (n int)
- func (m *Result_Success) String() string
- func (m *Result_Success) Unmarshal(dAtA []byte) error
- func (m *Result_Success) XXX_DiscardUnknown()
- func (m *Result_Success) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Result_Success) XXX_Merge(src proto.Message)
- func (m *Result_Success) XXX_Size() int
- func (m *Result_Success) XXX_Unmarshal(b []byte) error
- type Result_Success_
- type SignatureData
- type SingleSignatureData
- func (*SingleSignatureData) Descriptor() ([]byte, []int)
- func (this *SingleSignatureData) Equal(that interface{}) bool
- func (m *SingleSignatureData) Marshal() (dAtA []byte, err error)
- func (m *SingleSignatureData) MarshalTo(dAtA []byte) (int, error)
- func (m *SingleSignatureData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SingleSignatureData) ProtoMessage()
- func (m *SingleSignatureData) Reset()
- func (m *SingleSignatureData) Size() (n int)
- func (m *SingleSignatureData) String() string
- func (m *SingleSignatureData) Unmarshal(dAtA []byte) error
- func (m *SingleSignatureData) XXX_DiscardUnknown()
- func (m *SingleSignatureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SingleSignatureData) XXX_Merge(src proto.Message)
- func (m *SingleSignatureData) XXX_Size() int
- func (m *SingleSignatureData) XXX_Unmarshal(b []byte) error
Constants ¶
const (
// DefaultParamsSpace represents the default paramspace for the Params keeper
DefaultParamsSpace = "profiles"
)
Variables ¶
var ( ErrInvalidLengthModelsAppLinks = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModelsAppLinks = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModelsAppLinks = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthModelsChainLinks = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModelsChainLinks = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModelsChainLinks = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthModelsDtagRequests = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModelsDtagRequests = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModelsDtagRequests = fmt.Errorf("proto: unexpected end of group") )
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) )
Default profile paramsModule
var ( NicknameParamsKey = []byte("NicknameParams") DTagParamsKey = []byte("DTagParams") BioParamsKey = []byte("MaxBioLen") OracleParamsKey = []byte("OracleParams") )
Parameters store keys
var ( ErrInvalidLengthModelsParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModelsParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModelsParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthModelsProfile = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModelsProfile = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModelsProfile = fmt.Errorf("proto: unexpected end of group") )
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",
}
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,
}
Functions ¶
func IsValidAminoTxSig ¶
func IsValidAminoTxSig(value []byte, expectedMemo string, cdc *codec.LegacyAmino) bool
IsValidAminoTxSig tells whether the given value has been generated using SIGN_MODE_AMINO_JSON and signing a transaction that contains a memo field equals to the given expected value
func IsValidDirectTxSig ¶
func IsValidDirectTxSig(value []byte, expectedMemo string, cdc codec.BinaryCodec) bool
IsValidDirectTxSig tells whether the given value has been generated using SIGN_MODE_DIRECT and signing a transaction that contains a memo field equals to the given expected value
func IsValidTextSig ¶
IsValidTextSig tells whether the given value has been generated using SIGN_MODE_TEXTUAL and signing the given expected value
func MustMarshalApplicationLink ¶
func MustMarshalApplicationLink(cdc codec.BinaryCodec, link ApplicationLink) []byte
MustMarshalApplicationLink serializes the given application link using the provided BinaryCodec
func MustMarshalChainLink ¶
func MustMarshalChainLink(cdc codec.BinaryCodec, link ChainLink) []byte
MustMarshalChainLink serializes the given chain link using the provided BinaryCodec
func ParamKeyTable ¶
func ParamKeyTable() paramstypes.KeyTable
ParamKeyTable Key declaration for parameters
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func SignatureDataToCosmosSignatureData ¶
func SignatureDataToCosmosSignatureData(unpacker codectypes.AnyUnpacker, s SignatureData) (signing.SignatureData, error)
SignatureDataToCosmosSignatureData allows to convert the given SignatureData to a Cosmos SignatureData instance unpacking the proto.Any instance using the given unpacker.
func ValidateBioParams ¶
func ValidateBioParams(i interface{}) error
func ValidateDTagParams ¶
func ValidateDTagParams(i interface{}) error
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
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 ApplicationLink ¶
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.v2.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"` }
ApplicationLink contains the data of a link to a centralized application
func MustUnmarshalApplicationLink ¶
func MustUnmarshalApplicationLink(cdc codec.BinaryCodec, bz []byte) ApplicationLink
MustUnmarshalApplicationLink deserializes the given byte array as an application link using the provided BinaryCodec
func NewApplicationLink ¶
func NewApplicationLink( user string, data Data, state ApplicationLinkState, oracleRequest OracleRequest, result *Result, creationTime 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) 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) 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) 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 ¶
NewBioParams creates a new BioParams obj
func (*BioParams) Descriptor ¶
func (*BioParams) MarshalToSizedBuffer ¶
func (*BioParams) ProtoMessage ¶
func (*BioParams) ProtoMessage()
func (*BioParams) XXX_DiscardUnknown ¶
func (m *BioParams) XXX_DiscardUnknown()
func (*BioParams) XXX_Marshal ¶
func (*BioParams) XXX_Unmarshal ¶
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) 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 ¶
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 ¶
func MustUnmarshalChainLink(codec codec.BinaryCodec, bz []byte) ChainLink
MustUnmarshalChainLink deserializes the given byte array as a chain link using the provided BinaryCodec
func NewChainLink ¶
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) GetAddressData ¶
func (link ChainLink) GetAddressData() AddressData
GetAddressData returns the AddressData associated with this chain link
func (*ChainLink) MarshalToSizedBuffer ¶
func (*ChainLink) ProtoMessage ¶
func (*ChainLink) ProtoMessage()
func (*ChainLink) UnpackInterfaces ¶
func (link *ChainLink) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (*ChainLink) XXX_DiscardUnknown ¶
func (m *ChainLink) XXX_DiscardUnknown()
func (*ChainLink) XXX_Marshal ¶
func (*ChainLink) XXX_Unmarshal ¶
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) 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 (*Data) Descriptor ¶
func (*Data) ProtoMessage ¶
func (*Data) ProtoMessage()
func (*Data) XXX_DiscardUnknown ¶
func (m *Data) XXX_DiscardUnknown()
func (*Data) XXX_Unmarshal ¶
type HexAddress ¶
type HexAddress struct { // Value represents the hex address value Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty" yaml:"value"` // Prefix represents the optional prefix used during address encoding (e.g. // 0x) Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3" json:"prefix,omitempty" yaml:"prefix"` }
HexAddress represents an Hex-encoded address NOTE: Currently it only supports keccak256-uncompressed addresses
func 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) Marshal ¶
func (m *HexAddress) Marshal() (dAtA []byte, err error)
func (*HexAddress) MarshalToSizedBuffer ¶
func (m *HexAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*HexAddress) ProtoMessage ¶
func (*HexAddress) ProtoMessage()
func (*HexAddress) Reset ¶
func (m *HexAddress) Reset()
func (*HexAddress) Size ¶
func (m *HexAddress) Size() (n int)
func (*HexAddress) String ¶
func (m *HexAddress) String() string
func (*HexAddress) Unmarshal ¶
func (m *HexAddress) Unmarshal(dAtA []byte) error
func (HexAddress) VerifyPubKey ¶
func (h HexAddress) VerifyPubKey(key cryptotypes.PubKey) (bool, error)
VerifyPubKey implements AddressData
func (*HexAddress) XXX_DiscardUnknown ¶
func (m *HexAddress) XXX_DiscardUnknown()
func (*HexAddress) XXX_Marshal ¶
func (m *HexAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*HexAddress) XXX_Merge ¶
func (m *HexAddress) XXX_Merge(src proto.Message)
func (*HexAddress) XXX_Size ¶
func (m *HexAddress) XXX_Size() int
func (*HexAddress) XXX_Unmarshal ¶
func (m *HexAddress) XXX_Unmarshal(b []byte) error
type MultiSignatureData ¶
type MultiSignatureData 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"` // Signatures is the signatures of the multi-signature Signatures []*types.Any `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"` }
MultiSignatureData is the signature data for a multisig public key
func (*MultiSignatureData) Descriptor ¶
func (*MultiSignatureData) Descriptor() ([]byte, []int)
func (*MultiSignatureData) Equal ¶
func (this *MultiSignatureData) Equal(that interface{}) bool
func (*MultiSignatureData) Marshal ¶
func (m *MultiSignatureData) Marshal() (dAtA []byte, err error)
func (*MultiSignatureData) MarshalTo ¶
func (m *MultiSignatureData) MarshalTo(dAtA []byte) (int, error)
func (*MultiSignatureData) MarshalToSizedBuffer ¶
func (m *MultiSignatureData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiSignatureData) ProtoMessage ¶
func (*MultiSignatureData) ProtoMessage()
func (*MultiSignatureData) Reset ¶
func (m *MultiSignatureData) Reset()
func (*MultiSignatureData) Size ¶
func (m *MultiSignatureData) Size() (n int)
func (*MultiSignatureData) String ¶
func (m *MultiSignatureData) String() string
func (*MultiSignatureData) Unmarshal ¶
func (m *MultiSignatureData) Unmarshal(dAtA []byte) error
func (*MultiSignatureData) UnpackInterfaces ¶
func (s *MultiSignatureData) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (*MultiSignatureData) XXX_DiscardUnknown ¶
func (m *MultiSignatureData) XXX_DiscardUnknown()
func (*MultiSignatureData) XXX_Marshal ¶
func (m *MultiSignatureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiSignatureData) XXX_Merge ¶
func (m *MultiSignatureData) XXX_Merge(src proto.Message)
func (*MultiSignatureData) XXX_Size ¶
func (m *MultiSignatureData) XXX_Size() int
func (*MultiSignatureData) XXX_Unmarshal ¶
func (m *MultiSignatureData) XXX_Unmarshal(b []byte) error
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) 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) 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) 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"` }
Params contains the parameters for the profiles module
func NewParams ¶
func NewParams(nickname NicknameParams, dTag DTagParams, bio BioParams, oracle OracleParams) Params
NewParams creates a new ProfileParams obj
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
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) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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 ¶
NewPictures is a constructor function for Pictures
func (*Pictures) Descriptor ¶
func (*Pictures) GetProfile ¶
func (*Pictures) MarshalToSizedBuffer ¶
func (*Pictures) ProtoMessage ¶
func (*Pictures) ProtoMessage()
func (*Pictures) XXX_DiscardUnknown ¶
func (m *Pictures) XXX_DiscardUnknown()
func (*Pictures) XXX_Marshal ¶
func (*Pictures) XXX_Unmarshal ¶
type Profile ¶
type Profile struct { // Account represents the base Cosmos account associated with this profile Account *types.Any `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // DTag represents the unique tag of this profile DTag string `protobuf:"bytes,2,opt,name=dtag,proto3" json:"dtag,omitempty" yaml:"dtag"` // Nickname contains the custom human readable name of the profile Nickname string `protobuf:"bytes,3,opt,name=nickname,proto3" json:"nickname,omitempty" yaml:"nickname"` // Bio contains the biography of the profile Bio string `protobuf:"bytes,4,opt,name=bio,proto3" json:"bio,omitempty" yaml:"bio"` // Pictures contains the data about the pictures associated with he profile Pictures Pictures `protobuf:"bytes,5,opt,name=pictures,proto3" json:"pictures" yaml:"pictures"` // CreationTime represents the time in which the profile has been created CreationDate time.Time `protobuf:"bytes,6,opt,name=creation_date,json=creationDate,proto3,stdtime" json:"creation_date" yaml:"creation_date"` }
Profile represents a generic first on 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) GetAccount ¶
GetAccount returns the underlying account as an authtypes.AccountI instance
func (*Profile) GetAccountNumber ¶
GetAccountNumber implements authtypes.AccountI
func (*Profile) GetAddress ¶
func (p *Profile) GetAddress() sdk.AccAddress
GetAddress implements authtypes.AccountI
func (*Profile) GetDelegatedFree ¶
GetDelegatedFree implements exported.VestingAccount
func (*Profile) GetDelegatedVesting ¶
GetDelegatedVesting implements exported.VestingAccount
func (*Profile) GetEndTime ¶
GetEndTime implements exported.VestingAccount
func (*Profile) GetOriginalVesting ¶
GetOriginalVesting implements exported.VestingAccount
func (*Profile) GetPubKey ¶
func (p *Profile) GetPubKey() cryptotypes.PubKey
GetPubKey implements authtypes.AccountI
func (*Profile) GetSequence ¶
GetSequence implements authtypes.AccountI
func (*Profile) GetStartTime ¶
GetStartTime implements exported.VestingAccount
func (*Profile) GetVestedCoins ¶
GetVestedCoins implements exported.VestingAccount
func (*Profile) GetVestingCoins ¶
GetVestingCoins implements exported.VestingAccount
func (*Profile) LockedCoins ¶
LockedCoins implements exported.VestingAccount
func (*Profile) MarshalJSON ¶
MarshalJSON returns the JSON representation of a Profile.
func (*Profile) MarshalToSizedBuffer ¶
func (*Profile) MarshalYAML ¶
MarshalYAML returns the YAML representation of a Profile.
func (*Profile) ProtoMessage ¶
func (*Profile) ProtoMessage()
func (*Profile) SetAccountNumber ¶
SetAccountNumber implements authtypes.AccountI
func (*Profile) SetAddress ¶
func (p *Profile) SetAddress(addr sdk.AccAddress) error
SetAddress implements authtypes.AccountI
func (*Profile) SetPubKey ¶
func (p *Profile) SetPubKey(pubKey cryptotypes.PubKey) error
SetPubKey implements authtypes.AccountI
func (*Profile) SetSequence ¶
SetSequence implements authtypes.AccountI
func (*Profile) TrackDelegation ¶
TrackDelegation implements exported.VestingAccount
func (*Profile) TrackUndelegation ¶
TrackUndelegation implements exported.VestingAccount
func (*Profile) UnpackInterfaces ¶
func (p *Profile) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (*Profile) XXX_DiscardUnknown ¶
func (m *Profile) XXX_DiscardUnknown()
func (*Profile) XXX_Marshal ¶
func (*Profile) XXX_Unmarshal ¶
type Proof ¶
type Proof struct { // PubKey represents the public key associated with the address for which to // prove the ownership PubKey *types.Any `protobuf:"bytes,1,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty" yaml:"pub_key"` // Signature represents the hex-encoded signature of the PlainText value Signature *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 SignatureData, plainText string) Proof
NewProof is a constructor function for Proof
func (*Proof) Descriptor ¶
func (*Proof) ProtoMessage ¶
func (*Proof) ProtoMessage()
func (*Proof) UnpackInterfaces ¶
func (p *Proof) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements codectypes.UnpackInterfacesMessage
func (Proof) Verify ¶
func (p Proof) Verify(cdc codec.BinaryCodec, legacyAmino *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 (*Proof) XXX_Unmarshal ¶
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 ¶
NewErrorResult allows to build a new Result instance representing an error
func NewSuccessResult ¶
NewSuccessResult allows to build a new Result instance representing a success
func (*Result) Descriptor ¶
func (*Result) GetFailed ¶
func (m *Result) GetFailed() *Result_Failed
func (*Result) GetSuccess ¶
func (m *Result) GetSuccess() *Result_Success
func (*Result) MarshalToSizedBuffer ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
func (*Result) XXX_DiscardUnknown ¶
func (m *Result) XXX_DiscardUnknown()
func (*Result) XXX_Marshal ¶
func (*Result) XXX_OneofWrappers ¶
func (*Result) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Result) XXX_Unmarshal ¶
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) 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_) 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) 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_) 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 SignatureData ¶
SignatureData represents a generic single- or multi- signature data
func SignatureDataFromCosmosSignatureData ¶
func SignatureDataFromCosmosSignatureData(data signing.SignatureData) (SignatureData, error)
SignatureDataFromCosmosSignatureData allows to create a SignatureData instance from the given Cosmos SignatureData
type SingleSignatureData ¶
type SingleSignatureData struct { // Mode is the signing mode of the single signer Mode signing.SignMode `protobuf:"varint,1,opt,name=mode,proto3,enum=cosmos.tx.signing.v1beta1.SignMode" json:"mode,omitempty"` // Signature is the raw signature bytes Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` }
SingleSignatureData is the signature data for a single signer
func (*SingleSignatureData) Descriptor ¶
func (*SingleSignatureData) Descriptor() ([]byte, []int)
func (*SingleSignatureData) Equal ¶
func (this *SingleSignatureData) Equal(that interface{}) bool
func (*SingleSignatureData) Marshal ¶
func (m *SingleSignatureData) Marshal() (dAtA []byte, err error)
func (*SingleSignatureData) MarshalTo ¶
func (m *SingleSignatureData) MarshalTo(dAtA []byte) (int, error)
func (*SingleSignatureData) MarshalToSizedBuffer ¶
func (m *SingleSignatureData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SingleSignatureData) ProtoMessage ¶
func (*SingleSignatureData) ProtoMessage()
func (*SingleSignatureData) Reset ¶
func (m *SingleSignatureData) Reset()
func (*SingleSignatureData) Size ¶
func (m *SingleSignatureData) Size() (n int)
func (*SingleSignatureData) String ¶
func (m *SingleSignatureData) String() string
func (*SingleSignatureData) Unmarshal ¶
func (m *SingleSignatureData) Unmarshal(dAtA []byte) error
func (*SingleSignatureData) XXX_DiscardUnknown ¶
func (m *SingleSignatureData) XXX_DiscardUnknown()
func (*SingleSignatureData) XXX_Marshal ¶
func (m *SingleSignatureData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SingleSignatureData) XXX_Merge ¶
func (m *SingleSignatureData) XXX_Merge(src proto.Message)
func (*SingleSignatureData) XXX_Size ¶
func (m *SingleSignatureData) XXX_Size() int
func (*SingleSignatureData) XXX_Unmarshal ¶
func (m *SingleSignatureData) XXX_Unmarshal(b []byte) error