util

package
v0.0.0-...-48232e7 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package util contains utilities for Ethereal

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DNSDomainHash

func DNSDomainHash(domain string) (hash [32]byte)

DNSDomainHash hashes a domain name

func StringToTokenValue

func StringToTokenValue(input string, decimals uint8) (output *big.Int, err error)

StringToTokenValue converts a string to a number of tokens

func TokenValueToString

func TokenValueToString(input *big.Int, decimals uint8, usePrefix bool) (output string)

TokenValueToString converts a token value to a suitable string representation

Types

type Contract

type Contract struct {
	Name   string
	Abi    abi.ABI
	Binary []byte
}

Contract contains some basic information about a contract

func ParseCombinedJSON

func ParseCombinedJSON(input string, name string) (*Contract, error)

ParseCombinedJSON parses a combined JSON output of solc for a specific contract

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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