Documentation ¶
Index ¶
- Constants
- func NewEVMTransferMessage(source uint8, destination uint8, transfer TransferData) *message.Message
- func NewEvmStateRootMessage(source uint8, destination uint8, stateRoot StateRootData) *message.Message
- type AccountProof
- type BlockFetcher
- type BlockStorer
- type Client
- type StateRootData
- type StateRootHandler
- type StorageProof
- type TransferData
- type TransferHandler
- type TransferType
Constants ¶
View Source
const ( EVMStateRootMessage message.MessageType = "EVMStateRootMessage" MAX_BLOCK_RANGE int64 = 1000 )
View Source
const ( EVMTransferMessage message.MessageType = "EVMTransferMessage" EVMTransferProposal proposal.ProposalType = "EVMTransferProposal" GenericTransfer TransferType = "genericTransfer" FungibleTransfer TransferType = "fungibleTransfer" )
Variables ¶
This section is empty.
Functions ¶
func NewEVMTransferMessage ¶
func NewEVMTransferMessage(source uint8, destination uint8, transfer TransferData) *message.Message
func NewEvmStateRootMessage ¶
func NewEvmStateRootMessage(source uint8, destination uint8, stateRoot StateRootData) *message.Message
Types ¶
type AccountProof ¶
type AccountProof struct { AccountProof []string `json:"accountProof"` StorageProof []StorageProof `json:"storageProof"` }
type BlockFetcher ¶
type BlockFetcher interface {
SignedBeaconBlock(ctx context.Context, opts *api.SignedBeaconBlockOpts) (*api.Response[*spec.VersionedSignedBeaconBlock], error)
}
type BlockStorer ¶
type StateRootData ¶
type StateRootHandler ¶
type StateRootHandler struct {
// contains filtered or unexported fields
}
func NewStateRootHandler ¶
func NewStateRootHandler( blockFetcher BlockFetcher, blockStorer BlockStorer, client Client, routerAddress common.Address, msgChan chan []*message.Message, domainID uint8, slotIndex uint8, genericResources []string, startBlock *big.Int, ) *StateRootHandler
func (*StateRootHandler) HandleMessage ¶
HandleMessage fetches deposits for the given state root and submits a transfer message with execution state proofs per transfer
type StorageProof ¶
type StorageProof struct {
Proof []string `json:"proof"`
}
type TransferData ¶
type TransferType ¶
type TransferType string
Click to show internal directories.
Click to hide internal directories.