facet

package
v0.0.0-...-726cabc Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Facet

type Facet struct {
	Diamond diamond
}

Facet was implemented to fix weird import cycle issues. It acts as a base class for all facets, providing access to various parts of a parent diamond.Diamond via the unexported "diamond" interface. Yeah, it's as hacky as it sounds.

func NewFacet

func NewFacet(f diamond) *Facet

NewFacet returns a *Facet, and should be passed something which quacks like a *diamond.Diamond.

func (*Facet) CallOpts

func (f *Facet) CallOpts() bind.CallOpts

CallOpts returns a non-pointer bind.CallOpts, in case that's necessary for some reason...

func (*Facet) ConstructorParams

func (f *Facet) ConstructorParams() (common.Address, *ethclient.Client)

ConstructorParams returns the Facet's diamond address and ethclient.Client, which are commonly used for abigen constructors.

Jump to

Keyboard shortcuts

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