tools

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 4 Imported by: 0

README

Tools

Here are some QoL tools used by the framework.

compile_contracts.py

A proof of concept script to conveniently compile solidity source and generate golang bindings.

Run with python3 ./tools/compile_contracts.py

This will:

  1. Install a local version of hardhat
  2. Use hardhat to compile solidity source code
  3. Use abigen to generate golang bindings for the compiled contracts
  4. Cleanup hardhat installation and files

external_adapter.go

A simple external adapter implementation for local chainlink nodes to interact with. Used for local testing.

tools.go

Basic import for the ginkgo test framework.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// ProjectRoot Root folder of this project
	ProjectRoot = filepath.Join(filepath.Dir(b), "/..")
	// ContractsDir path to our contracts
	ContractsDir = filepath.Join(ProjectRoot, "contracts")
	// EthereumContractsDir path to our ethereum contracts
	EthereumContractsDir = filepath.Join(ContractsDir, "ethereum")
)

Functions

func MarshallTemplate added in v0.0.2

func MarshallTemplate(jobSpec interface{}, name, templateString string) (string, error)

MarshallTemplate Helper to marshall templates

Types

This section is empty.

Jump to

Keyboard shortcuts

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