testutil

package
v3.2.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountFromAddr

func AccountFromAddr(addr string) authtypes.AccountI

func AssertNoProfileError

func AssertNoProfileError(profile *types.Profile, err error) *types.Profile

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

func DefaultConfig() network.Config

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 NewAny

func NewAny(value proto.Message) *codectypes.Any

func NewAppConstructor

func NewAppConstructor(encodingCfg params.EncodingConfig) network.AppConstructor

NewAppConstructor returns a new Desmos AppConstructor

func ProfileFromAddr

func ProfileFromAddr(address string) *types.Profile

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 (a ChainLinkAccount) GetBech32ChainLink(user string, date time.Time) types.ChainLink

func (ChainLinkAccount) PubKeyAny added in v3.1.0

func (a ChainLinkAccount) PubKeyAny() *codectypes.Any

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL