storage

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 10, 2021 License: ISC Imports: 9 Imported by: 0

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

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()

func (*CSVStorage) FetchData

func (storage *CSVStorage) FetchData() (txmodels.UTXORows, error)

func (*CSVStorage) SaveRows

func (storage *CSVStorage) SaveRows(rows []txmodels.UTXO) error

type UTXORepo added in v0.1.6

type UTXORepo struct {
	// contains filtered or unexported fields
}

func NewUTXORepo added in v0.1.6

func NewUTXORepo(dataDir string, additionalKeys ...string) UTXORepo

func (*UTXORepo) Balance added in v0.1.6

func (collector *UTXORepo) Balance(shardId uint32, addresses ...string) (int64, error)

func (*UTXORepo) CollectFromRPC added in v0.1.6

func (collector *UTXORepo) CollectFromRPC(rpcClient *rpcclient.Client, shardID uint32, filter map[string]bool) error

func (*UTXORepo) Index added in v0.1.6

func (collector *UTXORepo) Index() *txmodels.UTXOIndex

func (*UTXORepo) ListUTXOs added in v0.1.6

func (collector *UTXORepo) ListUTXOs(skip, take int64, flags map[string]string) (int64, txmodels.UTXORows, error)

func (*UTXORepo) ReadIndex added in v0.1.6

func (collector *UTXORepo) ReadIndex() error

func (*UTXORepo) RedeemScript added in v0.1.6

func (collector *UTXORepo) RedeemScript(address string) (script string)

func (*UTXORepo) ResetUsedFlag added in v0.1.6

func (collector *UTXORepo) ResetUsedFlag()

func (*UTXORepo) SaveIndex added in v0.1.6

func (collector *UTXORepo) SaveIndex() error

func (*UTXORepo) SelectForAmount added in v0.1.6

func (collector *UTXORepo) SelectForAmount(amount int64, shardID uint32, addresses ...string) (txmodels.UTXORows, error)

func (*UTXORepo) SetIndex added in v0.1.6

func (collector *UTXORepo) SetIndex(index *txmodels.UTXOIndex)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL