helper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(s []string, str string) bool

Contains checks if the slice contains the exact string

func CosmosStatusParser

func CosmosStatusParser(resp []byte) (
	string,
	int64,
	error,
)

func HandleOutOfNilResponse

func HandleOutOfNilResponse(logger *logrus.Entry)

func HexaNumberToInteger

func HexaNumberToInteger(hexaString string) string

func MakeBaseURL

func MakeBaseURL(port, ipAddress string) string

func MustExtractHostname

func MustExtractHostname(endpoint string) string

func ParseChainName

func ParseChainName(jobName string) (string, error)

func ParseToSchemaName

func ParseToSchemaName(chainID string) string

parse to pg schema name

func ParsingfromHexaNumberBaseDecimal

func ParsingfromHexaNumberBaseDecimal(intString string) (uint64, error)

func ParsingfromHexaNumberBaseHexaDecimal

func ParsingfromHexaNumberBaseHexaDecimal(intString string) (uint64, error)

func SetHttpURI

func SetHttpURI(rawRPCEndpoint string) string

func UnsetHttpURI

func UnsetHttpURI(baseURL string) (string, error)

func ValidateURL

func ValidateURL(inputURL string) bool

Types

type OnchainStatus

type OnchainStatus struct {
	ChainID     string
	BlockHeight int64
}

func GetOnChainStatus

func GetOnChainStatus(endpoints []string, protocolType string) OnchainStatus

type Result

type Result struct {
	Item    interface{}
	Success bool
}

Directories

Path Synopsis
ref; https://github.com/cosmos/btcutil/blob/master/bech32/bech32.go
ref; https://github.com/cosmos/btcutil/blob/master/bech32/bech32.go

Jump to

Keyboard shortcuts

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