Documentation
¶
Overview ¶
Copyright (c) 2020 The JaxNetwork developers Use of this source code is governed by an ISC license that can be found in the LICENSE file.
Index ¶
- type CSVStorage
- type UTXORepo
- func (collector *UTXORepo) Balance(shardId uint32, addresses ...string) (int64, error)
- func (collector *UTXORepo) CollectFromRPC(rpcClient *rpcclient.Client, shardID uint32, filter map[string]bool) error
- func (collector *UTXORepo) Index() *txmodels.UTXOIndex
- func (collector *UTXORepo) ListUTXOs(skip, take int64, flags map[string]string) (int64, txmodels.UTXORows, error)
- func (collector *UTXORepo) ReadIndex() error
- func (collector *UTXORepo) RedeemScript(address string) (script string)
- func (collector *UTXORepo) ResetUsedFlag()
- func (collector *UTXORepo) SaveIndex() error
- func (collector *UTXORepo) SelectForAmount(amount int64, shardID uint32, addresses ...string) (txmodels.UTXORows, error)
- func (collector *UTXORepo) SetIndex(index *txmodels.UTXOIndex)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVStorage ¶
type CSVStorage struct {
// contains filtered or unexported fields
}
func NewCSVStorage ¶
func NewCSVStorage(path string) *CSVStorage
func (*CSVStorage) Close ¶
func (storage *CSVStorage) Close()
type UTXORepo ¶ added in v0.1.6
type UTXORepo struct {
// contains filtered or unexported fields
}
func NewUTXORepo ¶ added in v0.1.6
func (*UTXORepo) CollectFromRPC ¶ added in v0.1.6
func (*UTXORepo) RedeemScript ¶ added in v0.1.6
func (*UTXORepo) ResetUsedFlag ¶ added in v0.1.6
func (collector *UTXORepo) ResetUsedFlag()
func (*UTXORepo) SelectForAmount ¶ added in v0.1.6
Click to show internal directories.
Click to hide internal directories.