system

package
v0.28.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoTransactions = fmt.Errorf("no transactions")
)

Functions

func GenerateDeploymentTransaction

func GenerateDeploymentTransaction(initCode []byte, wallet wallet.Wallet, logger gethlog.Logger) (*common.L2Tx, error)

func GetPlaceholderWallet

func GetPlaceholderWallet(chainID *big.Int, logger gethlog.Logger) wallet.Wallet

func MessageBusInitTransaction

func MessageBusInitTransaction(wallet wallet.Wallet, logger gethlog.Logger) (*common.L2Tx, error)

func SystemDeployerInitTransaction

func SystemDeployerInitTransaction(wallet wallet.Wallet, logger gethlog.Logger, eoaOwner gethcommon.Address) (*common.L2Tx, error)

func VerifyLogs

func VerifyLogs(receipt *types.Receipt) error

Types

type SystemContractAddresses

type SystemContractAddresses map[string]*gethcommon.Address

func DeriveAddresses

func DeriveAddresses(receipt *types.Receipt) (SystemContractAddresses, error)

func (*SystemContractAddresses) ToString

func (s *SystemContractAddresses) ToString() string

type SystemContractCallbacks

type SystemContractCallbacks interface {
	GetOwner() gethcommon.Address
	Initialize(batch *core.Batch, receipts types.Receipts, msgBusManager SystemContractsInitializable) error
	Load() error
	CreateOnBatchEndTransaction(ctx context.Context, stateDB *state.StateDB, transactions common.L2Transactions, receipts types.Receipts) (*types.Transaction, error)
	TransactionPostProcessor() *gethcommon.Address
	VerifyOnBlockReceipt(transactions common.L2Transactions, receipt *types.Receipt) (bool, error)
}

func NewSystemContractCallbacks

func NewSystemContractCallbacks(ownerWallet wallet.Wallet, storage storage.Storage, logger gethlog.Logger) SystemContractCallbacks

type SystemContractsInitializable

type SystemContractsInitializable interface {
	Initialize(SystemContractAddresses) error
}

Jump to

Keyboard shortcuts

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