Documentation ¶
Index ¶
- type Feeder
- func (f *Feeder) BlockByNumber(ctx context.Context, blockNumber uint64) (*core.Block, error)
- func (f *Feeder) BlockLatest(ctx context.Context) (*core.Block, error)
- func (f *Feeder) BlockPending(ctx context.Context) (*core.Block, error)
- func (f *Feeder) Class(ctx context.Context, classHash *felt.Felt) (core.Class, error)
- func (f *Feeder) StateUpdate(ctx context.Context, blockNumber uint64) (*core.StateUpdate, error)
- func (f *Feeder) StateUpdatePending(ctx context.Context) (*core.StateUpdate, error)
- func (f *Feeder) Transaction(ctx context.Context, transactionHash *felt.Felt) (core.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feeder ¶
type Feeder struct {
// contains filtered or unexported fields
}
func (*Feeder) BlockByNumber ¶
BlockByNumber gets the block for a given block number from the feeder, then adapts it to the core.Block type.
func (*Feeder) BlockLatest ¶ added in v0.3.0
BlockLatest gets the latest block from the feeder, then adapts it to the core.Block type.
func (*Feeder) BlockPending ¶ added in v0.4.0
BlockPending gets the pending block from the feeder, then adapts it to the core.Block type.
func (*Feeder) Class ¶
Class gets the class for a given class hash from the feeder, then adapts it to the core.Class type.
func (*Feeder) StateUpdate ¶
StateUpdate gets the state update for a given block number from the feeder, then adapts it to the core.StateUpdate type.
func (*Feeder) StateUpdatePending ¶ added in v0.4.0
StateUpdatePending gets the state update for the pending block from the feeder, then adapts it to the core.StateUpdate type.
func (*Feeder) Transaction ¶
func (f *Feeder) Transaction(ctx context.Context, transactionHash *felt.Felt) (core.Transaction, error)
Transaction gets the transaction for a given transaction hash from the feeder, then adapts it to the appropriate core.Transaction types.