utils

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	USER_AGENT = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1944.0 Safari/537.36"
)

Variables

View Source
var (
	DefaultAxieSiteRequestHeaders = map[string]string{
		"User-Agent": USER_AGENT,
	}
)

Functions

func CallGetHttpApi

func CallGetHttpApi(apiUrl string, headers map[string]string) ([]byte, error)

func CallPostHttpApi

func CallPostHttpApi(apiUrl string, jsonStruct interface{}, headers map[string]string) ([]byte, error)

func EthAddrToRoninAddr

func EthAddrToRoninAddr(addr string) string

func GetPublicKeyFromPrivateKeyStr

func GetPublicKeyFromPrivateKeyStr(privateKeyStr string) string

func NodejsHashData

func NodejsHashData(data []byte) []byte

func RoninAddrToEthAddr

func RoninAddrToEthAddr(addr string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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