blockchain

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

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

func NewAssetERC20RegisteredError(asset, symbol string) error

NewAssetERC20RegisteredError constructs and returns an AssetERC20RegisteredError.

func NewInvalidContractError

func NewInvalidContractError(name, address string, err error) error

NewInvalidContractError constructs and returns an InvalidContractError.

Types

type AssetERC20RegisteredError

type AssetERC20RegisteredError struct {
	Asset  string
	Symbol string
}

AssetERC20RegisteredError indicates that an asset contract for the given ERC20 token was already registered.

func (AssetERC20RegisteredError) Error

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.

Jump to

Keyboard shortcuts

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