Documentation ¶
Index ¶
- type Backend
- func (b *Backend) AddInboxMessage(msg message.Message, sender common.Address) (common.Hash, error)
- func (b *Backend) ExportData() ([]byte, error)
- func (b *Backend) PendingSnapshot() (*snapshot.Snapshot, error)
- func (b *Backend) PendingTransactionCount(_ context.Context, _ common.Address) *uint64
- func (b *Backend) Reorg(height uint64) error
- func (b *Backend) SendTransaction(_ context.Context, tx *types.Transaction) error
- func (b *Backend) SubscribeNewTxsEvent(ch chan<- core2.NewTxsEvent) event.Subscription
- type EVM
- type L1BlockInfo
- type L1Emulator
- func (b *L1Emulator) BlockIdForHeight(_ context.Context, height *common.TimeBlocks) (*common.BlockId, error)
- func (b *L1Emulator) GenerateBlock() L1BlockInfo
- func (b *L1Emulator) IncreaseTime(amount int64)
- func (b *L1Emulator) Latest() L1BlockInfo
- func (b *L1Emulator) Reorg(height uint64)
- func (b *L1Emulator) SetTime(timestamp int64)
- func (b *L1Emulator) TimestampForBlockHash(_ context.Context, hash common.Hash) (*big.Int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
func NewBackend ¶
func NewDevNode ¶
func (*Backend) AddInboxMessage ¶
func (*Backend) ExportData ¶
func (*Backend) PendingSnapshot ¶
Return nil if no pending snapshot is available
func (*Backend) PendingTransactionCount ¶
Return nil if no pending transaction count is available
func (*Backend) SendTransaction ¶
func (*Backend) SubscribeNewTxsEvent ¶
func (b *Backend) SubscribeNewTxsEvent(ch chan<- core2.NewTxsEvent) event.Subscription
type L1BlockInfo ¶
type L1BlockInfo struct {
// contains filtered or unexported fields
}
type L1Emulator ¶
func NewL1Emulator ¶
func NewL1Emulator() *L1Emulator
func (*L1Emulator) BlockIdForHeight ¶
func (b *L1Emulator) BlockIdForHeight(_ context.Context, height *common.TimeBlocks) (*common.BlockId, error)
func (*L1Emulator) GenerateBlock ¶
func (b *L1Emulator) GenerateBlock() L1BlockInfo
func (*L1Emulator) IncreaseTime ¶
func (b *L1Emulator) IncreaseTime(amount int64)
func (*L1Emulator) Latest ¶
func (b *L1Emulator) Latest() L1BlockInfo
func (*L1Emulator) Reorg ¶
func (b *L1Emulator) Reorg(height uint64)
func (*L1Emulator) SetTime ¶
func (b *L1Emulator) SetTime(timestamp int64)
func (*L1Emulator) TimestampForBlockHash ¶
Click to show internal directories.
Click to hide internal directories.