Documentation ¶
Index ¶
- Constants
- Variables
- func CallGetHttpApi(apiUrl string, headers map[string]string) ([]byte, error)
- func CallPostHttpApi(apiUrl string, jsonStruct interface{}, headers map[string]string) ([]byte, error)
- func EthAddrToRoninAddr(addr string) string
- func GetPublicKeyFromPrivateKeyStr(privateKeyStr string) string
- func NodejsHashData(data []byte) []byte
- func RoninAddrToEthAddr(addr string) string
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 CallPostHttpApi ¶
func EthAddrToRoninAddr ¶
func NodejsHashData ¶
func RoninAddrToEthAddr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.