contracts

package
v1.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes32Array added in v1.0.3

func Bytes32Array(array [][]byte) [][32]byte

func SliceTo32Bytes added in v1.0.3

func SliceTo32Bytes(in []byte) [32]byte

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
}

type HashiAdapterContract added in v1.0.3

type HashiAdapterContract struct {
	coreContracts.Contract
}

func NewHashiAdapterContract added in v1.0.3

func NewHashiAdapterContract(
	address common.Address,
	client client.Client,
	transactor transactor.Transactor,
) *HashiAdapterContract

func (*HashiAdapterContract) VerifyAndStoreDispatchedMessage added in v1.0.3

func (c *HashiAdapterContract) VerifyAndStoreDispatchedMessage(
	srcSlot uint64,
	txSlot uint64,
	receiptsRootProof [][]byte,
	receiptsRoot [32]byte,
	receiptProof [][]byte,
	txIndexRLPEncoded []byte,
	logIndex *big.Int,
	opts transactor.TransactOptions,
) (*common.Hash, error)

Jump to

Keyboard shortcuts

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