package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev

# Packages

Package bind generates Ethereum contract Go bindings.

# Functions

ConvertType converts an interface of a runtime type into a interface of the given type e.g.
JSON returns a parsed ABI interface and error if it failed.
MakeTopics converts a filter query argument list into a filter topic set.
NewEvent creates a new Event.
NewMethod creates a new Method.
NewType creates a new reflection type of abi type given in t.
ParseAddressFromKey pulls out the address value from a map with provided key, and validates the data type for it.
ParseBigIntFromKey pulls out the *big.Int value from a map with provided key, and validates the data type for it.
ParseTopics converts the indexed topic fields into actual log field values.
ParseTopicsIntoMap converts the indexed topic field-value pairs into map key-value pairs.
ParseUint32FromKey pulls out the uint64 value from a map with provided key, and validates the data type for it.
ReadFixedBytes uses reflection to create a fixed array to be read from.
ReadInteger reads the integer based on its kind and returns the appropriate value.
ToCamelCase converts an under-score string to a camel-case string.
U256 converts a big Int into a 256bit EVM number.
UnpackRevert resolves the abi-encoded revert reason.

# Constants

Type enumerator.
Type enumerator.
Type enumerator.
Type enumerator.
Constructor represents the constructor of the contract.
Fallback represents the fallback function.
Type enumerator.
Type enumerator.
Function represents a normal function.
Type enumerator.
Type enumerator.
Type enumerator.
Receive represents the receive function.
Type enumerator.
Type enumerator.
Type enumerator.
Type enumerator.

# Variables

MaxInt256 is the maximum value that can be represented by a int256.
MaxUint256 is the maximum value that can be represented by a uint256.

# Structs

The ABI holds information about a contract's context and available invokable methods.
Argument holds the name of the argument and the corresponding type.
ArgumentMarshaling is a struct for argument.
Event is an event potentially triggered by the EVM's LOG mechanism.
Method represents a callable given a `Name` and whether the method is a constant.
Type is the reflection of the supported argument type.

# Type aliases

Arguments is a list of Argument.
FunctionType represents different types of functions a contract might have.