Documentation
¶
Index ¶
- func AdaptBlock(response *clients.Block) (*core.Block, error)
- func AdaptStateUpdate(response *clients.StateUpdate) (*core.StateUpdate, error)
- type Gateway
- func (g *Gateway) BlockByNumber(ctx context.Context, blockNumber uint64) (*core.Block, error)
- func (g *Gateway) Class(ctx context.Context, classHash *felt.Felt) (*core.Class, error)
- func (g *Gateway) StateUpdate(ctx context.Context, blockNumber uint64) (*core.StateUpdate, error)
- func (g *Gateway) Transaction(ctx context.Context, transactionHash *felt.Felt) (core.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdaptStateUpdate ¶
func AdaptStateUpdate(response *clients.StateUpdate) (*core.StateUpdate, error)
Types ¶
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶
func NewGatewayWithClient ¶
func NewGatewayWithClient(client *clients.GatewayClient) *Gateway
func (*Gateway) BlockByNumber ¶
BlockByNumber gets the block for a given block number from the feeder gateway, then adapts it to the core.Block type.
func (*Gateway) Class ¶
Class gets the class for a given class hash from the feeder gateway, then adapts it to the core.Class type.
func (*Gateway) StateUpdate ¶
StateUpdate gets the state update for a given block number from the feeder gateway, then adapts it to the core.StateUpdate type.
func (*Gateway) Transaction ¶
func (g *Gateway) Transaction(ctx context.Context, transactionHash *felt.Felt) (core.Transaction, error)
Transaction gets the transaction for a given transaction hash from the feeder gateway, then adapts it to the appropriate core.Transaction types.
Click to show internal directories.
Click to hide internal directories.