Documentation ¶
Overview ¶
Package blockchain contains definitions and functions that are shared by different implementations of the chain interface.
Index ¶
Constants ¶
View Source
const ( Adjudicator = "adjudicator" AssetETH = "ETH" )
Enumeration of contract names for perun node.
Variables ¶
This section is empty.
Functions ¶
func NewAssetERC20RegisteredError ¶
NewAssetERC20RegisteredError constructs and returns an AssetERC20RegisteredError.
func NewInvalidContractError ¶
NewInvalidContractError constructs and returns an InvalidContractError.
Types ¶
type AssetERC20RegisteredError ¶
AssetERC20RegisteredError indicates that an asset contract for the given ERC20 token was already registered.
func (AssetERC20RegisteredError) Error ¶
func (e AssetERC20RegisteredError) Error() string
Error implements error interface.
type InvalidContractError ¶
type InvalidContractError struct { Name string Address string // contains filtered or unexported fields }
InvalidContractError indicates an error in validating the contract on the blockchain.
func (InvalidContractError) Error ¶
func (e InvalidContractError) Error() string
Error implements error interface.
func (InvalidContractError) Unwrap ¶
func (e InvalidContractError) Unwrap() error
Unwrap returns the original error.
Directories ¶
Path | Synopsis |
---|---|
Package ethereum provides on-chain transaction backend and wallet backend for the ethereum blockchain platform.
|
Package ethereum provides on-chain transaction backend and wallet backend for the ethereum blockchain platform. |
ethereumtest
Package ethereumtest provides test helpers for using ethereum backend in test.
|
Package ethereumtest provides test helpers for using ethereum backend in test. |
internal
Package internal implements the ethereum related backend functionality.
|
Package internal implements the ethereum related backend functionality. |
Click to show internal directories.
Click to hide internal directories.