Documentation
¶
Overview ¶
Package scanner follows blockchain activity and delivers it to address subscribers.
Index ¶
- Variables
- func Canonical(n, a string) (string, error)
- func ConfigureNetworks(store *Store, networks map[string]Network, ...)
- func ConnectTONPeer(ctx context.Context, pool *liteclient.ConnectionPool, raw string) error
- func EVMChainID(name string) int64
- func Handler(s *Store, consumers map[string]string) (http.Handler, error)
- func IsEVM(name string) bool
- func ManagementProtocols() map[string][]string
- func NativeAsset(name string) string
- func NeedsHistory(network, protocol string) bool
- func PaymentEvidence(network string, raw json.RawMessage) (json.RawMessage, error)
- func Protocols(network string) []string
- func Supported(name string) bool
- func TONReadSlice(ctx context.Context, n Network, master *ton.BlockIDExt, ...) (*cell.Slice, error)
- func ValidateEndpoint(n Network) error
- func ValidateNetwork(n Network) error
- func Wakeups(s Source) <-chan struct{}
- type Activity
- type AssetEventLayout
- type AssetEventRules
- type Client
- type Delivery
- type Evidence
- type Feed
- type LookupAttempt
- type ManagementCapabilities
- type MigrationManifest
- type Network
- type Node
- type NodeEndpoint
- type NodeOptions
- type NodeRegistry
- type NodeRoute
- type Reconciler
- type Reconciliation
- type Registration
- type RouteInventory
- type Source
- type SourcePool
- type Store
- type SubscriptionReceipt
- type TONData
- type Termination
- type Watch
Constants ¶
This section is empty.
Variables ¶
var ( ErrNetworkNotConfigured = engine.ErrNetworkNotConfigured ErrCursorNotReady = feed.ErrCursorNotReady )
Functions ¶
func ConfigureNetworks ¶
func ConfigureNetworks(store *Store, networks map[string]Network, head func(context.Context, string) (int64, error))
ConfigureNetworks supplies an embedded store with raw chain heads for subscription boundaries. Call before serving requests. The standalone node registry configures this automatically.
func ConnectTONPeer ¶
func ConnectTONPeer(ctx context.Context, pool *liteclient.ConnectionPool, raw string) error
ConnectTONPeer opens a mainnet-verified ADNL connection for a selected registry endpoint.
func EVMChainID ¶
EVMChainID returns the configured EVM chain ID, or zero for other networks.
func ManagementProtocols ¶
ManagementProtocols lists admin-selectable transports, including height and strict lookup endpoints.
func NativeAsset ¶
NativeAsset returns the native top-level transfer asset when supported.
func NeedsHistory ¶
NeedsHistory reports whether a transport requires a companion history endpoint.
func PaymentEvidence ¶
func PaymentEvidence(network string, raw json.RawMessage) (json.RawMessage, error)
PaymentEvidence normalizes chain-native hash lookup data for a payment consumer.
func TONReadSlice ¶
func TONReadSlice(ctx context.Context, n Network, master *ton.BlockIDExt, contract *address.Address, method string, arg *cell.Cell) (*cell.Slice, error)
TONReadSlice runs a TON contract getter and returns its result as a slice.
func ValidateEndpoint ¶
ValidateEndpoint checks a primary endpoint before selecting a history node.
func ValidateNetwork ¶
ValidateNetwork validates a complete network configuration.
Types ¶
type AssetEventLayout ¶
type AssetEventLayout = chains.AssetEventLayout
type AssetEventRules ¶
type AssetEventRules = chains.AssetEventRules
type LookupAttempt ¶
type LookupAttempt = nodes.LookupAttempt
type ManagementCapabilities ¶
type ManagementCapabilities = nodes.ManagementCapabilities
type MigrationManifest ¶
type MigrationManifest = nodes.MigrationManifest
type NodeEndpoint ¶
type NodeEndpoint = nodes.NodeEndpoint
type NodeOptions ¶
type NodeOptions = nodes.NodeOptions
type NodeRegistry ¶
type NodeRegistry = nodes.NodeRegistry
func NewNodeRegistry ¶
NewNodeRegistry loads built-in, configured and persisted nodes.
func NewNodeRegistryWithBlockedHosts ¶
func NewNodeRegistryWithBlockedHosts(ctx context.Context, s *Store, networks []Network, hosts []string) (*NodeRegistry, error)
NewNodeRegistryWithBlockedHosts also excludes matching endpoint hosts and their subdomains.
type Reconciler ¶
type Reconciler = feed.Reconciler
type Reconciliation ¶
type Reconciliation = feed.Reconciliation
type Registration ¶
type Registration = feed.Registration
type RouteInventory ¶
type RouteInventory = nodes.RouteInventory
type SourcePool ¶
type SourcePool = nodes.SourcePool
func NewSourcePool ¶
func NewSourcePool(ctx context.Context, network string) *SourcePool
NewSourcePool distributes ranges across nodes of a single concrete network.
type SubscriptionReceipt ¶
type SubscriptionReceipt = feed.SubscriptionReceipt
type Termination ¶
type Termination = feed.Termination