addresses

package
v1.3.1 Latest Latest
Warning

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

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

Documentation

Overview

This package manages the contract addresses.

The addresses depend on the deployment of the contracts and should be provided by the node user. This module offers an option to load these addresses from a config file, compatible with the output of `sunodo address-book --json`. This package also contain the addresses for the test environment as hard-coded values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Book

type Book struct {
	CartesiDAppFactory  common.Address
	DAppAddressRelay    common.Address
	ERC1155BatchPortal  common.Address
	ERC1155SinglePortal common.Address
	ERC20Portal         common.Address
	ERC721Portal        common.Address
	EtherPortal         common.Address
	InputBox            common.Address
	CartesiDApp         common.Address
}

List of contract addresses.

func GetBookFromFile

func GetBookFromFile(path string) (*Book, error)

Get the address book from json File.

func GetTestBook

func GetTestBook() *Book

Get the addresses for the test environment.

Jump to

Keyboard shortcuts

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