evmabi

package
v0.2.11 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

README

EVM ABIs

This directory contains a Go package with Ethereum-compatible smart contract application binary interfaces (ABIs) and the Solidity sources.

These interfaces are stable, so we don't have to maintain/rebuild them much. We currently use the Remix web IDE to compile the Solidity sources (e.g. contracts/ERC20.sol) into JSON files containing EVM bytecode and ABI records (e.g. contracts/artifacts/ERC20.json). This is not automated, so for other developers' convenience, check in the compiled JSON files.

The Go code embeds the JSON files and parses them into go-ethereum ABI structures.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ERC165 = MustUnmarshalABI(artifactERC165JSON)
View Source
var ERC20 = MustUnmarshalABI(artifactERC20JSON)
View Source
var ERC721 = MustUnmarshalABI(artifactERC721JSON)
View Source
var ERC721Enumerable = MustUnmarshalABI(artifactERC721EnumerableJSON)
View Source
var ERC721Metadata = MustUnmarshalABI(artifactERC721MetadataJSON)
View Source
var ERC721TokenReceiver = MustUnmarshalABI(artifactERC721TokenReceiverJSON)
View Source
var WROSE = MustUnmarshalABI(artifactWROSEJSON)

Functions

func MustUnmarshalABI added in v0.1.17

func MustUnmarshalABI(artifactJSON []byte) *abi.ABI

Types

This section is empty.

Jump to

Keyboard shortcuts

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