decode

package
v0.0.0-...-3f8eaf4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package package seperates out code that decode hex responses so as to avoid circular references

Index

Constants

This section is empty.

Variables

View Source
var AbiStringType goAbi.Type

TODO: Why can't we just use the call package to call into the token directly? Answer: this code was built before the call package

Functions

func ArticulateBool

func ArticulateBool(hexStr string) (result bool, err error)

ArticulateBool translates EVM hex into Go boolean

func ArticulateString

func ArticulateString(hex string) (strResult string, success bool)

ArticulateString tries to convert hex into a string of printable characters (ASCII only). If it was successful, then `success` is true.

func ArticulateStringOrBytes

func ArticulateStringOrBytes(hexStr string) (string, error)

ArticulateStringOrBytes tries to read string from either EVM string value or bytes32 hex

func SanitizeString

func SanitizeString(str string) (sanitized string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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