Documentation ¶
Index ¶
- Constants
- func NewEVMTransferMessage(source uint8, destination uint8, transfer TransferData, messageID string) *message.Message
- func NewEvmStateRootMessage(source uint8, destination uint8, stateRoot StateRootData, messageID string) *message.Message
- func NewHashiMessage(source uint8, destination uint8, data HashiData, messageID string) *message.Message
- type BlockFetcher
- type BlockStorer
- type EventHandler
- type HashiData
- type HashiMessageHandler
- type StateRootData
- type StateRootHandler
- type TransferData
- type TransferHandler
- type TransferType
Constants ¶
View Source
const ( HashiMessage message.MessageType = "HashiMessage" HashiProposal proposal.ProposalType = "HashiProposal" )
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 NewEvmStateRootMessage ¶
Types ¶
type BlockFetcher ¶
type BlockFetcher interface {
SignedBeaconBlock(ctx context.Context, opts *api.SignedBeaconBlockOpts) (*api.Response[*spec.VersionedSignedBeaconBlock], error)
}
type BlockStorer ¶
type EventHandler ¶ added in v1.0.3
type HashiMessageHandler ¶ added in v1.0.3
type HashiMessageHandler struct{}
func (*HashiMessageHandler) HandleMessage ¶ added in v1.0.3
type StateRootData ¶
type StateRootHandler ¶
type StateRootHandler struct {
// contains filtered or unexported fields
}
func NewStateRootHandler ¶
func NewStateRootHandler( domainID uint8, eventHandlers []EventHandler, blockFetcher BlockFetcher, blockStorer BlockStorer, 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 TransferData ¶
type TransferType ¶
type TransferType string
Click to show internal directories.
Click to hide internal directories.