contracts

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	coreContracts.Contract
}

func NewExecutorContract

func NewExecutorContract(
	address common.Address,
	client client.Client,
	transactor transactor.Transactor,
) *Executor

func (*Executor) ExecuteProposals

func (c *Executor) ExecuteProposals(
	props []ExecutorProposal,
	accountProof [][]byte,
	slot *big.Int,
	opts transactor.TransactOptions,
) (*common.Hash, error)

func (*Executor) IsProposalExecuted

func (c *Executor) IsProposalExecuted(p *proposal.Proposal) (bool, error)

type ExecutorProposal

type ExecutorProposal struct {
	OriginDomainID uint8
	SecurityModel  uint8
	DepositNonce   uint64
	ResourceID     [32]byte
	Data           []byte
	StorageProof   [][]byte
}

Jump to

Keyboard shortcuts

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