Documentation ¶
Index ¶
- type ExprReconstructor
- func (er *ExprReconstructor) Reconstruct(value []byte, hint ExprReconstructorHint) string
- func (er *ExprReconstructor) ReconstructFromBigInt(value *big.Int) string
- func (er *ExprReconstructor) ReconstructFromUint64(value uint64) string
- func (er *ExprReconstructor) ReconstructList(values [][]byte, hint ExprReconstructorHint) string
- type ExprReconstructorHint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExprReconstructor ¶
type ExprReconstructor struct {
Bech32Addr bool
}
ExprReconstructor is a component that attempts to convert raw bytes to a human-readable format.
func (*ExprReconstructor) Reconstruct ¶
func (er *ExprReconstructor) Reconstruct(value []byte, hint ExprReconstructorHint) string
Reconstruct will return the string representation of the provided value
func (*ExprReconstructor) ReconstructFromBigInt ¶
func (er *ExprReconstructor) ReconstructFromBigInt(value *big.Int) string
ReconstructFromBigInt will return the string of the provided big int
func (*ExprReconstructor) ReconstructFromUint64 ¶
func (er *ExprReconstructor) ReconstructFromUint64(value uint64) string
ReconstructFromUint64 will return the string of the provided uint64
func (*ExprReconstructor) ReconstructList ¶
func (er *ExprReconstructor) ReconstructList(values [][]byte, hint ExprReconstructorHint) string
ReconstructList will return the string of the provided values list
type ExprReconstructorHint ¶
type ExprReconstructorHint uint64
ExprReconstructorHint type definition
const ( // NoHint indicates that the type if not known NoHint ExprReconstructorHint = iota // NumberHint hints that value should be a number NumberHint // AddressHint hints that value should be an address AddressHint // StrHint hints that value should be a string expression, e.g. a username, "str:..." StrHint // CodeHint hints that value should be a smart contract code, normally loaded from a file CodeHint )
Click to show internal directories.
Click to hide internal directories.