contracts

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotImplemented = errors.New("not implemented")
)

Functions

func NewContractMagic

func NewContractMagic[C any, T any](
	constructor contractConstructorFunc[T],
	address common.Address,
	backend bind.ContractBackend,
	name NameType,
	version VersionType,
) (*C, error)

Types

type ContractBase

type ContractBase struct {
	// contains filtered or unexported fields
}

func NewContractBase

func NewContractBase(address common.Address, backend bind.ContractBackend,
	name NameType, version VersionType) *ContractBase

func (*ContractBase) Address

func (e *ContractBase) Address() common.Address

func (*ContractBase) Name

func (e *ContractBase) Name() string

func (*ContractBase) String

func (e *ContractBase) String() string

func (*ContractBase) Version

func (e *ContractBase) Version() string

type Contracts

type Contracts struct {
	Banana     ContractsBanana
	Elderberry ContractsElderberry
}

func NewContracts

func NewContracts(cfg config.L1Config, backend bind.ContractBackend) (*Contracts, error)

func (*Contracts) String

func (c *Contracts) String() string

type ContractsBanana

type ContractsBanana struct {
	GlobalExitRoot GlobalExitRootBananaType
	Rollup         RollupBananaType
	RollupManager  RollupManagerBananaType
}

func NewContractsBanana

func NewContractsBanana(cfg config.L1Config, backend bind.ContractBackend) (*ContractsBanana, error)

func (*ContractsBanana) String

func (c *ContractsBanana) String() string

type ContractsElderberry

type ContractsElderberry struct {
	GlobalExitRoot GlobalExitRootElderberryType
	Rollup         RollupElderberryType
	RollupManager  RollupManagerElderberryType
}

func NewContractsElderberry

func NewContractsElderberry(cfg config.L1Config, backend bind.ContractBackend) (*ContractsElderberry, error)

func (*ContractsElderberry) String

func (c *ContractsElderberry) String() string

type NameType

type NameType string
const (
	ContractNameDAProtocol     NameType = "daprotocol"
	ContractNameRollupManager  NameType = "rollupmanager"
	ContractNameGlobalExitRoot NameType = "globalexitroot"
	ContractNameRollup         NameType = "rollup"
)

type RollupElderberryType

type RollupElderberryType struct {
	*polygonvalidiumetrog.Polygonvalidiumetrog
	*ContractBase
}

type RollupManagerBananaType

type RollupManagerBananaType struct {
	*polygonrollupmanager.Polygonrollupmanager
	*ContractBase
}

type RollupManagerElderberryType

type RollupManagerElderberryType struct {
	*polygonrollupmanager.Polygonrollupmanager
	*ContractBase
}

type VersionType

type VersionType string
const (
	VersionBanana     VersionType = "banana"
	VersionElderberry VersionType = "elderberry"
)

Jump to

Keyboard shortcuts

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