Documentation
¶
Index ¶
- type Reconciler
- func (r *Reconciler) GetAssets(txs []*types.Transaction) ([]*types.Name, bool, error)
- func (r *Reconciler) GetStatements(node *types.AppNode[types.Transaction]) ([]types.Statement, error)
- func (r *Reconciler) GetTransfers(txs []*types.Transaction) ([]*types.Transfer, bool, error)
- func (r *Reconciler) HasFilters() bool
- func (r *Reconciler) String() string
- type ReconcilerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reconciler ¶
type Reconciler struct {
Connection *rpc.Connection
Opts *ReconcilerOptions
ShowDebugging bool
RemoveAirdrops bool
Running map[assetHolder]runningBalance
AssetMap map[assetHolder]*types.Name
Names map[base.Address]types.Name
}
----------------------------------------------------------------- Reconciler performs reconciliation of blockchain data for a specific account. It manages connections, options, and intermediate data structures.
func NewReconciler ¶
func NewReconciler(conn *rpc.Connection, opts *ReconcilerOptions) *Reconciler
-----------------------------------------------------------------
func (*Reconciler) GetAssets ¶
func (r *Reconciler) GetAssets(txs []*types.Transaction) ([]*types.Name, bool, error)
-----------------------------------------------------------------
func (*Reconciler) GetStatements ¶
func (r *Reconciler) GetStatements(node *types.AppNode[types.Transaction]) ([]types.Statement, error)
-----------------------------------------------------------------
func (*Reconciler) GetTransfers ¶
func (r *Reconciler) GetTransfers(txs []*types.Transaction) ([]*types.Transfer, bool, error)
-----------------------------------------------------------------
func (*Reconciler) HasFilters ¶
func (r *Reconciler) HasFilters() bool
-----------------------------------------------------------------
func (*Reconciler) String ¶
func (r *Reconciler) String() string
-----------------------------------------------------------------
type ReconcilerOptions ¶
type ReconcilerOptions struct {
AccountFor base.Address
FirstBlock base.Blknum
LastBlock base.Blknum
AsEther bool
UseTraces bool
Reversed bool
AssetFilters []base.Address
AppFilters *types.AppearanceFilter
}
----------------------------------------------------------------- ReconcilerOptions defines the configuration options for the Reconciler. It includes filters, block ranges, and appearance settings for reconciliation.