Documentation ¶
Index ¶
- func ContainAny[T constraints.Ordered](src []T, trg T) bool
- func DecodeToString(v string) (string, error)
- func FilterNonAccountAddresses(addresses []string) []string
- func GetAndPublishAccount(ctx context.Context, address string, height int64, ...) error
- func GetGenesisAccounts(appState map[string]json.RawMessage, cdc codec.Codec) ([]types.Account, error)
- func NewModuleLogger(name string) *zerolog.Logger
- func ParseCoinsFromString(value string) (types.Coins, error)
- func TimeFromPtr(t *time.Time) time.Time
- type AccountCache
- type AccountPublisher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainAny ¶
func ContainAny[T constraints.Ordered](src []T, trg T) bool
func DecodeToString ¶ added in v0.2.4
func FilterNonAccountAddresses ¶
FilterNonAccountAddresses returns a slice containing only account addresses.
func GetAndPublishAccount ¶ added in v0.3.2
func GetAndPublishAccount( ctx context.Context, address string, height int64, cache AccountCache[string, int64], publisher AccountPublisher, client authtypes.QueryClient, ) error
GetAndPublishAccount retrieves the account from the given address and publishes it.
func GetGenesisAccounts ¶
func GetGenesisAccounts(appState map[string]json.RawMessage, cdc codec.Codec) ([]types.Account, error)
GetGenesisAccounts parses the given appState and returns the genesis accounts
func NewModuleLogger ¶ added in v1.0.0
func ParseCoinsFromString ¶
ParseCoinsFromString converts string to coin type
Types ¶
type AccountCache ¶ added in v0.3.2
type AccountCache[K, V comparable] interface { UpdateCacheValue(K, V) bool }
Click to show internal directories.
Click to hide internal directories.