Documentation
¶
Overview ¶
Package compat provides compatibility shims for functions removed from go-ethereum
Package compat provides compatibility helpers for uint256 and hexutil conversions
Index ¶
- func BigMax(x, y *big.Int) *big.Int
- func BigMin(x, y *big.Int) *big.Int
- func BigPow(a, b int64) *big.Int
- func CompileSolidity(solc string, sourcefiles ...string) (map[string]*Contract, error)
- func CompileSolidityString(source, solc string) (map[string]*Contract, error)
- func S256() elliptic.Curve
- func S256Big(x *big.Int) *big.Int
- func SolidityVersion() string
- func U256(x *big.Int) *big.Int
- func U256Bytes(n *big.Int) []byte
- func U256FromBig(b *big.Int) *uint256.Int
- func U256Hex(u *uint256.Int) string
- func U256HexBig(b *big.Int) string
- type Contract
- type ContractInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompileSolidity ¶
CompileSolidity is a stub for the removed function
func CompileSolidityString ¶
CompileSolidityString is a stub for the removed function
func SolidityVersion ¶
func SolidityVersion() string
SolidityVersion returns a hardcoded version since the function was removed
func U256FromBig ¶
U256FromBig converts a big.Int to uint256.Int
func U256HexBig ¶
U256HexBig keeps old call-sites that passed *big.Int
Types ¶
type Contract ¶
type Contract struct {
Code string
Info ContractInfo
}
Contract represents a compiled contract (stub)
Click to show internal directories.
Click to hide internal directories.