Documentation ¶
Index ¶
- type Client
- type EthSubscriber
- func (s *EthSubscriber) ChainID(ctx context.Context) (*big.Int, error)
- func (s *EthSubscriber) Close()
- func (s *EthSubscriber) FinalisedHeight(ctx context.Context) (uint64, error)
- func (s *EthSubscriber) WatchLogStateUpdate(ctx context.Context, sink chan<- *contract.StarknetLogStateUpdate) (event.Subscription, error)
- type EventListener
- type SelectiveListener
- type Subscriber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(l1 Subscriber, chain *blockchain.Blockchain, log utils.SimpleLogger) *Client
func (*Client) WithEventListener ¶ added in v0.7.5
func (c *Client) WithEventListener(l EventListener) *Client
func (*Client) WithPollFinalisedInterval ¶ added in v0.6.0
WithPollFinalisedInterval sets the time to wait before checking for an update to the finalised L1 block.
type EthSubscriber ¶
type EthSubscriber struct {
// contains filtered or unexported fields
}
func NewEthSubscriber ¶
func NewEthSubscriber(ethClientAddress string, coreContractAddress common.Address) (*EthSubscriber, error)
func (*EthSubscriber) Close ¶
func (s *EthSubscriber) Close()
func (*EthSubscriber) FinalisedHeight ¶
func (s *EthSubscriber) FinalisedHeight(ctx context.Context) (uint64, error)
func (*EthSubscriber) WatchLogStateUpdate ¶
func (s *EthSubscriber) WatchLogStateUpdate(ctx context.Context, sink chan<- *contract.StarknetLogStateUpdate) (event.Subscription, error)
type EventListener ¶ added in v0.7.5
type SelectiveListener ¶ added in v0.7.5
func (SelectiveListener) OnNewL1Head ¶ added in v0.7.5
func (l SelectiveListener) OnNewL1Head(head *core.L1Head)
Click to show internal directories.
Click to hide internal directories.