util

package
v1.2.56 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 6 Imported by: 6

Documentation

Index

Constants

View Source
const (
	// CrosschainRequestCheckpointABIJSON checks the ETH ABI for compatibility of the CrossTalkRequest message
	CrosschainRequestCheckpointABIJSON = `` /* 1091-byte string literal not displayed */

	// CrosschainRequestNearCheckpointABIJSON checks the ETH ABI for compatibility of the CrossTalkRequest message
	CrosschainRequestNearCheckpointABIJSON = `` /* 1085-byte string literal not displayed */

	// CrosschainAckRequestCheckpointABIJSON checks the ETH ABI for compatibility of the CrossTalkAckRequest message
	CrosschainAckRequestCheckpointABIJSON = `` /* 782-byte string literal not displayed */

	// CrosschainAckRequestNearCheckpointABIJSON checks the ETH ABI for compatibility of the CrossTalkAckRequest message
	CrosschainAckRequestNearCheckpointABIJSON = `` /* 780-byte string literal not displayed */

	// ValsetCheckpointABIJSON checks the ETH ABI for compatibility of the Valset update message
	ValsetCheckpointABIJSON = `` /* 507-byte string literal not displayed */

	// OutgoingLogicCallABIJSON checks the ETH ABI for compatibility of the logic call message
	OutgoingLogicCallABIJSON = `` /* 1153-byte string literal not displayed */

	// OutboundBatchRequestEventABIJSON checks the ETH ABI for compatibility of the Outbound batch event
	OutboundBatchRequestEventABIJSON = `` /* 1286-byte string literal not displayed */

	// InboundSudoRequestABIJSON checks the ETH ABI for compatibility of the Inbound Batch request
	InboundSudoRequestABIJSON = `` /* 535-byte string literal not displayed */

	// OutboundAckSudoRequestABIJSON checks the ETH ABI for compatibility of the Outbound Ack request
	OutboundAckSudoRequestABIJSON = `` /* 777-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func AppendBytes

func AppendBytes(args ...[]byte) []byte

func GetPrefixFromBech32

func GetPrefixFromBech32(bech32str string) (string, error)

GetPrefixFromBech32 returns the human readable part of a bech32 string (excluding the 1 byte) Returns an error on too short input or when the 1 byte cannot be found Note: This is an excerpt from the Decode function for bech32 strings

func HashString

func HashString(input string) []byte

Hashing string using cryptographic MD5 function returns 128bit(16byte) value

func StrToFixByteArray

func StrToFixByteArray(s string) ([32]byte, error)

func UInt64Bytes

func UInt64Bytes(n uint64) []byte

UInt64Bytes uses the SDK byte marshaling to encode a uint64

func UInt64FromBytes

func UInt64FromBytes(s []byte) uint64

UInt64FromBytes create uint from binary big endian representation

func UInt64FromString

func UInt64FromString(s string) (uint64, error)

UInt64FromString to parse out a uint64 for a nonce

Types

This section is empty.

Jump to

Keyboard shortcuts

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