integration

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

README

Spin up services:

docker-compose -f docker-compose.test.yml -f docker-compose.yml up -d db dapptools contract eth-server

Running unit tests:

make test_local

Running integration test:

make integrationtest_local

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContractDeployed

type ContractDeployed struct {
	Address         string `json:"address"`
	TransactionHash string `json:"txHash"`
	BlockNumber     int    `json:"blockNumber"`
	BlockHash       string `json:"blockHash"`
}

func DeployContract

func DeployContract() (*ContractDeployed, error)

type ContractDestroyed

type ContractDestroyed struct {
	BlockNumber int64 `json:"blockNumber"`
}

func DestroyContract

func DestroyContract(addr string) (*ContractDestroyed, error)

type Tx

type Tx struct {
	From            string   `json:"from"`
	To              string   `json:"to"`
	Value           *big.Int `json:"value"`
	TransactionHash string   `json:"txHash"`
	BlockNumber     int      `json:"blockNumber"`
	BlockHash       string   `json:"blockHash"`
}

func SendEth

func SendEth(to string, value string) (*Tx, error)

Jump to

Keyboard shortcuts

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