Documentation ¶
Index ¶
- func AccountFromAddr(addr string) authtypes.AccountI
- func AssertNoProfileError(profile *types.Profile, err error) *types.Profile
- func BuildContext(keys map[string]*sdk.KVStoreKey, tKeys map[string]*sdk.TransientStoreKey, ...) sdk.Context
- func DefaultConfig() network.Config
- func MultiSignatureProtoFromAnyHex(unpacker codectypes.AnyUnpacker, hexEncodedSignatureData string) types.SignatureData
- func NewAny(value proto.Message) *codectypes.Any
- func NewAppConstructor(encodingCfg params.EncodingConfig) network.AppConstructor
- func ProfileFromAddr(address string) *types.Profile
- func PubKeyFromBech32(pubKey string) cryptotypes.PubKey
- func PubKeyFromJSON(cdc codec.Codec, pubKey string) cryptotypes.PubKey
- func SingleSignatureProtoFromHex(s string) types.SignatureData
- type ChainLinkAccount
- func (a ChainLinkAccount) Bech32Address() *types.Bech32Address
- func (a ChainLinkAccount) Bech32Proof(user string) types.Proof
- func (a ChainLinkAccount) Bech32SignatureData(signedValue string) types.SignatureData
- func (a ChainLinkAccount) ChainName() string
- func (a ChainLinkAccount) GetBech32ChainLink(user string, date time.Time) types.ChainLink
- func (a ChainLinkAccount) PubKeyAny() *codectypes.Any
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccountFromAddr ¶
func AssertNoProfileError ¶
func BuildContext ¶ added in v3.1.0
func BuildContext( keys map[string]*sdk.KVStoreKey, tKeys map[string]*sdk.TransientStoreKey, memKeys map[string]*sdk.MemoryStoreKey, ) sdk.Context
func DefaultConfig ¶
DefaultConfig returns a sane default configuration suitable for nearly all testing requirements.
func MultiSignatureProtoFromAnyHex ¶
func MultiSignatureProtoFromAnyHex(unpacker codectypes.AnyUnpacker, hexEncodedSignatureData string) types.SignatureData
MultiSignatureProtoFromAnyHex convert the hex-encoded string of the MultiSignature Any value to SignatureData
func NewAppConstructor ¶
func NewAppConstructor(encodingCfg params.EncodingConfig) network.AppConstructor
NewAppConstructor returns a new Desmos AppConstructor
func ProfileFromAddr ¶
func PubKeyFromBech32 ¶
func PubKeyFromBech32(pubKey string) cryptotypes.PubKey
func PubKeyFromJSON ¶ added in v3.1.0
func PubKeyFromJSON(cdc codec.Codec, pubKey string) cryptotypes.PubKey
func SingleSignatureProtoFromHex ¶
func SingleSignatureProtoFromHex(s string) types.SignatureData
SingleSignatureProtoFromHex convert the hex-encoded string of the single signature to SignatureData
Types ¶
type ChainLinkAccount ¶ added in v3.1.0
type ChainLinkAccount struct {
// contains filtered or unexported fields
}
func GetChainLinkAccount ¶ added in v3.1.0
func GetChainLinkAccount(chainName string, bech32Prefix string) ChainLinkAccount
func (ChainLinkAccount) Bech32Address ¶ added in v3.1.0
func (a ChainLinkAccount) Bech32Address() *types.Bech32Address
func (ChainLinkAccount) Bech32Proof ¶ added in v3.1.0
func (a ChainLinkAccount) Bech32Proof(user string) types.Proof
func (ChainLinkAccount) Bech32SignatureData ¶ added in v3.1.0
func (a ChainLinkAccount) Bech32SignatureData(signedValue string) types.SignatureData
func (ChainLinkAccount) ChainName ¶ added in v3.1.0
func (a ChainLinkAccount) ChainName() string
func (ChainLinkAccount) GetBech32ChainLink ¶ added in v3.1.0
func (ChainLinkAccount) PubKeyAny ¶ added in v3.1.0
func (a ChainLinkAccount) PubKeyAny() *codectypes.Any
Click to show internal directories.
Click to hide internal directories.