Documentation ¶
Index ¶
Constants ¶
View Source
const (
EVMStateRootMessage message.MessageType = "EVMStateRootMessage"
)
View Source
const (
MAX_BLOCK_RANGE int64 = 1000
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountProof ¶ added in v1.0.3
type AccountProof struct { AccountProof []string `json:"accountProof"` StorageProof []StorageProof `json:"storageProof"` }
type BeaconClient ¶ added in v1.0.3
type BeaconClient interface { BeaconBlockHeader( ctx context.Context, opts *api.BeaconBlockHeaderOpts, ) ( *api.Response[*apiv1.BeaconBlockHeader], error, ) }
type Client ¶ added in v1.0.3
type Client interface { CallContext(ctx context.Context, target interface{}, rpcMethod string, args ...interface{}) error FetchEventLogs(ctx context.Context, contractAddress common.Address, event string, startBlock *big.Int, endBlock *big.Int) ([]types.Log, error) BlockByHash(ctx context.Context, hash common.Hash) (*types.Block, error) TransactionReceipt(ctx context.Context, txHash common.Hash) (*types.Receipt, error) }
type DepositEventHandler ¶ added in v1.0.3
type DepositEventHandler struct {
// contains filtered or unexported fields
}
func NewDepositEventHandler ¶ added in v1.0.3
type EventFetcher ¶
type HashiEventHandler ¶ added in v1.0.3
type HashiEventHandler struct {
// contains filtered or unexported fields
}
func NewHashiEventHandler ¶ added in v1.0.3
func NewHashiEventHandler( domainID uint8, client Client, beaconClient BeaconClient, receiptProver ReceiptProver, rootProver RootProver, yahoAddress common.Address, chainIDS map[uint8]uint64, msgChan chan []*message.Message) *HashiEventHandler
type ReceiptProver ¶ added in v1.0.3
type RootProver ¶ added in v1.0.3
type StateRootEventHandler ¶
type StateRootEventHandler struct {
// contains filtered or unexported fields
}
func NewStateRootEventHandler ¶
func NewStateRootEventHandler( msgChan chan []*message.Message, eventFetcher EventFetcher, stateRootAddress common.Address, domainID uint8, ) *StateRootEventHandler
func (*StateRootEventHandler) HandleEvents ¶
HandleEvents fetches state root submitted events and sends message to origin domain
type StorageProof ¶ added in v1.0.3
type StorageProof struct {
Proof []string `json:"proof"`
}
Click to show internal directories.
Click to hide internal directories.