Documentation ¶
Index ¶
- Constants
- func EventErr(t string, upd bool, err error) error
- func PrintDbr(d *dbr.SelectStmt) *dbr.SelectStmt
- type AccumulateBalancesAmount
- type AccumulateBalancesTransactions
- type AddressBech32
- type AddressChain
- type Addresses
- type Assets
- type CamLastBlockCache
- type CountLastBlockCache
- type CvmAccount
- type CvmAddresses
- type CvmBlocks
- type CvmLogs
- type CvmTransactionsAtomic
- type CvmTransactionsTxdata
- type KeyValueStore
- type MockPersist
- func (m *MockPersist) InsertAccumulateBalancesReceived(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) error
- func (m *MockPersist) InsertAccumulateBalancesSent(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) error
- func (m *MockPersist) InsertAccumulateBalancesTransactions(ctx context.Context, runner dbr.SessionRunner, ...) error
- func (m *MockPersist) InsertAddressBech32(ctx context.Context, runner dbr.SessionRunner, v *AddressBech32, b bool) error
- func (m *MockPersist) InsertAddressChain(ctx context.Context, runner dbr.SessionRunner, v *AddressChain, b bool) error
- func (m *MockPersist) InsertAddresses(ctx context.Context, runner dbr.SessionRunner, v *Addresses, b bool) error
- func (m *MockPersist) InsertAssets(ctx context.Context, runner dbr.SessionRunner, v *Assets, b bool) error
- func (m *MockPersist) InsertCamLastBlockCache(ctx context.Context, runner dbr.SessionRunner, v *CamLastBlockCache, flag bool) error
- func (m *MockPersist) InsertCvmAccount(ctx context.Context, runner dbr.SessionRunner, v *CvmAccount, b bool) error
- func (m *MockPersist) InsertCvmAddresses(ctx context.Context, runner dbr.SessionRunner, v *CvmAddresses, b bool) error
- func (m *MockPersist) InsertCvmBlocks(ctx context.Context, runner dbr.SessionRunner, v *CvmBlocks) error
- func (m *MockPersist) InsertCvmTransactionsAtomic(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsAtomic, ...) error
- func (m *MockPersist) InsertCvmTransactionsTxdata(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdata, ...) error
- func (m *MockPersist) InsertKeyValueStore(ctx context.Context, runner dbr.SessionRunner, v *KeyValueStore) error
- func (m *MockPersist) InsertNodeIndex(ctx context.Context, runner dbr.SessionRunner, v *NodeIndex, _ bool) error
- func (m *MockPersist) InsertOutputAddressAccumulateIn(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate, ...) error
- func (m *MockPersist) InsertOutputAddressAccumulateOut(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate, ...) error
- func (m *MockPersist) InsertOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses, b bool) error
- func (m *MockPersist) InsertOutputTxsAccumulate(ctx context.Context, runner dbr.SessionRunner, v *OutputTxsAccumulate) error
- func (m *MockPersist) InsertOutputs(ctx context.Context, runner dbr.SessionRunner, v *Outputs, b bool) error
- func (m *MockPersist) InsertOutputsRedeeming(ctx context.Context, runner dbr.SessionRunner, v *OutputsRedeeming, b bool) error
- func (m *MockPersist) InsertPvmBlocks(ctx context.Context, runner dbr.SessionRunner, v *PvmBlocks, b bool) error
- func (m *MockPersist) InsertRewards(ctx context.Context, runner dbr.SessionRunner, v *Rewards, b bool) error
- func (m *MockPersist) InsertTransactions(ctx context.Context, runner dbr.SessionRunner, v *Transactions, b bool) error
- func (m *MockPersist) InsertTransactionsBlock(ctx context.Context, runner dbr.SessionRunner, v *TransactionsBlock, b bool) error
- func (m *MockPersist) InsertTransactionsEpoch(ctx context.Context, runner dbr.SessionRunner, v *TransactionsEpoch, b bool) error
- func (m *MockPersist) InsertTransactionsRewardsOwners(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwners, ...) error
- func (m *MockPersist) InsertTransactionsRewardsOwnersAddress(ctx context.Context, runner dbr.SessionRunner, ...) error
- func (m *MockPersist) InsertTransactionsRewardsOwnersOutputs(ctx context.Context, runner dbr.SessionRunner, ...) error
- func (m *MockPersist) InsertTransactionsValidator(ctx context.Context, runner dbr.SessionRunner, v *TransactionsValidator, ...) error
- func (m *MockPersist) InsertTxPool(ctx context.Context, runner dbr.SessionRunner, v *TxPool) error
- func (m *MockPersist) QueryAccumulateBalancesReceived(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) (*AccumulateBalancesAmount, error)
- func (m *MockPersist) QueryAccumulateBalancesSent(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) (*AccumulateBalancesAmount, error)
- func (m *MockPersist) QueryAccumulateBalancesTransactions(ctx context.Context, runner dbr.SessionRunner, ...) (*AccumulateBalancesTransactions, error)
- func (m *MockPersist) QueryAddressBech32(ctx context.Context, runner dbr.SessionRunner, v *AddressBech32) (*AddressBech32, error)
- func (m *MockPersist) QueryAddressChain(ctx context.Context, runner dbr.SessionRunner, v *AddressChain) (*AddressChain, error)
- func (m *MockPersist) QueryAddresses(ctx context.Context, runner dbr.SessionRunner, v *Addresses) (*Addresses, error)
- func (m *MockPersist) QueryAssets(ctx context.Context, runner dbr.SessionRunner, v *Assets) (*Assets, error)
- func (m *MockPersist) QueryCamLastBlockCache(ctx context.Context, runner dbr.SessionRunner, v *CamLastBlockCache) (*CamLastBlockCache, error)
- func (m *MockPersist) QueryCountLastBlockCache(ctx context.Context, runner dbr.SessionRunner, v *CamLastBlockCache) (*CountLastBlockCache, error)
- func (m *MockPersist) QueryCvmAccount(ctx context.Context, runner dbr.SessionRunner, v *CvmAccount) (*CvmAccount, error)
- func (m *MockPersist) QueryCvmAddresses(ctx context.Context, runner dbr.SessionRunner, v *CvmAddresses) (*CvmAddresses, error)
- func (m *MockPersist) QueryCvmBlock(ctx context.Context, runner dbr.SessionRunner, v *CvmBlocks) (*CvmBlocks, error)
- func (m *MockPersist) QueryCvmTransactionsAtomic(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsAtomic) (*CvmTransactionsAtomic, error)
- func (m *MockPersist) QueryCvmTransactionsTxdata(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdata) (*CvmTransactionsTxdata, error)
- func (m *MockPersist) QueryKeyValueStore(ctx context.Context, runner dbr.SessionRunner, v *KeyValueStore) (*KeyValueStore, error)
- func (m *MockPersist) QueryNodeIndex(ctx context.Context, runner dbr.SessionRunner, v *NodeIndex) (*NodeIndex, error)
- func (m *MockPersist) QueryOutputAddressAccumulateIn(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate) (*OutputAddressAccumulate, error)
- func (m *MockPersist) QueryOutputAddressAccumulateOut(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate) (*OutputAddressAccumulate, error)
- func (m *MockPersist) QueryOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses) (*OutputAddresses, error)
- func (m *MockPersist) QueryOutputTxsAccumulate(ctx context.Context, runner dbr.SessionRunner, v *OutputTxsAccumulate) (*OutputTxsAccumulate, error)
- func (m *MockPersist) QueryOutputs(ctx context.Context, runner dbr.SessionRunner, v *Outputs) (*Outputs, error)
- func (m *MockPersist) QueryOutputsRedeeming(ctx context.Context, runner dbr.SessionRunner, v *OutputsRedeeming) (*OutputsRedeeming, error)
- func (m *MockPersist) QueryPvmBlocks(ctx context.Context, runner dbr.SessionRunner, v *PvmBlocks) (*PvmBlocks, error)
- func (m *MockPersist) QueryRewards(ctx context.Context, runner dbr.SessionRunner, v *Rewards) (*Rewards, error)
- func (m *MockPersist) QueryTransactions(ctx context.Context, runner dbr.SessionRunner, v *Transactions) (*Transactions, error)
- func (m *MockPersist) QueryTransactionsBlock(ctx context.Context, runner dbr.SessionRunner, v *TransactionsBlock) (*TransactionsBlock, error)
- func (m *MockPersist) QueryTransactionsEpoch(ctx context.Context, runner dbr.SessionRunner, v *TransactionsEpoch) (*TransactionsEpoch, error)
- func (m *MockPersist) QueryTransactionsRewardsOwners(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwners) (*TransactionsRewardsOwners, error)
- func (m *MockPersist) QueryTransactionsRewardsOwnersAddress(ctx context.Context, runner dbr.SessionRunner, ...) (*TransactionsRewardsOwnersAddress, error)
- func (m *MockPersist) QueryTransactionsRewardsOwnersOutputs(ctx context.Context, runner dbr.SessionRunner, ...) (*TransactionsRewardsOwnersOutputs, error)
- func (m *MockPersist) QueryTransactionsValidator(ctx context.Context, runner dbr.SessionRunner, v *TransactionsValidator) (*TransactionsValidator, error)
- func (m *MockPersist) QueryTxPool(ctx context.Context, runner dbr.SessionRunner, v *TxPool) (*TxPool, error)
- func (m *MockPersist) RemoveTxPool(ctx context.Context, runner dbr.SessionRunner, v *TxPool) error
- func (m *MockPersist) UpdateNodeIndex(ctx context.Context, runner dbr.SessionRunner, v *NodeIndex) error
- func (m *MockPersist) UpdateOutputAddressAccumulateInOutputsProcessed(ctx context.Context, runner dbr.SessionRunner, id string) error
- func (m *MockPersist) UpdateOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses) error
- func (m *MockPersist) UpdateRewardsProcessed(ctx context.Context, sess dbr.SessionRunner, v *Rewards) error
- type NodeIndex
- type OutputAddressAccumulate
- type OutputAddresses
- type OutputTxsAccumulate
- type Outputs
- type OutputsRedeeming
- type Persist
- type PvmBlocks
- type Rewards
- type Transactions
- type TransactionsBlock
- type TransactionsEpoch
- type TransactionsRewardsOwners
- type TransactionsRewardsOwnersAddress
- type TransactionsRewardsOwnersOutputs
- type TransactionsValidator
- type TxPool
Constants ¶
View Source
const ( TableTransactions = "avm_transactions" TableOutputsRedeeming = "avm_outputs_redeeming" TableOutputs = "avm_outputs" TableAssets = "avm_assets" TableAddresses = "addresses" TableAddressChain = "address_chain" TableOutputAddresses = "avm_output_addresses" TableTransactionsEpochs = "transactions_epoch" TableCvmAddresses = "cvm_addresses" TableCvmBlocks = "cvm_blocks" TableCvmTransactionsAtomic = "cvm_transactions_atomic" TableCvmTransactionsTxdata = "cvm_transactions_txdata" TableCvmAccounts = "cvm_accounts" TablePvmBlocks = "pvm_blocks" TableRewards = "rewards" TableTransactionsValidator = "transactions_validator" TableTransactionsBlock = "transactions_block" TableAddressBech32 = "addresses_bech32" TableOutputAddressAccumulateOut = "output_addresses_accumulate_out" TableOutputAddressAccumulateIn = "output_addresses_accumulate_in" TableOutputTxsAccumulate = "output_txs_accumulate" TableAccumulateBalancesReceived = "accumulate_balances_received" TableAccumulateBalancesSent = "accumulate_balances_sent" TableAccumulateBalancesTransactions = "accumulate_balances_transactions" TableTransactionsRewardsOwners = "transactions_rewards_owners" TableTransactionsRewardsOwnersAddress = "transactions_rewards_owners_address" TableTransactionsRewardsOwnersOutputs = "transactions_rewards_owners_outputs" TableTxPool = "tx_pool" TableKeyValueStore = "key_value_store" TableNodeIndex = "node_index" TableCamLastBlockCache = "cam_last_block_cache" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccumulateBalancesAmount ¶
type AccumulateBalancesAmount struct { ID string ChainID string AssetID string Address string TotalAmount string UtxoCount string UpdatedAt time.Time }
func (*AccumulateBalancesAmount) ComputeID ¶
func (b *AccumulateBalancesAmount) ComputeID()
type AccumulateBalancesTransactions ¶
type AccumulateBalancesTransactions struct { ID string ChainID string AssetID string Address string TransactionCount string UpdatedAt time.Time }
func (*AccumulateBalancesTransactions) ComputeID ¶
func (b *AccumulateBalancesTransactions) ComputeID()
type AddressBech32 ¶
type AddressChain ¶
type CamLastBlockCache ¶
type CountLastBlockCache ¶
type CountLastBlockCache struct {
Cnt uint64
}
type CvmAccount ¶
type CvmAddresses ¶
type CvmLogs ¶
type CvmTransactionsAtomic ¶
type CvmTransactionsTxdata ¶
type KeyValueStore ¶
type MockPersist ¶
type MockPersist struct { Transactions map[string]*Transactions Outputs map[string]*Outputs OutputsRedeeming map[string]*OutputsRedeeming CvmTransactionsAtomic map[string]*CvmTransactionsAtomic CvmTransactionsTxdata map[string]*CvmTransactionsTxdata CvmAccounts map[string]*CvmAccount CvmBlocks map[string]*CvmBlocks CamLastBlockCache map[string]*CamLastBlockCache CountLastBlockCache map[string]*CountLastBlockCache CvmAddresses map[string]*CvmAddresses TransactionsValidator map[string]*TransactionsValidator TransactionsBlock map[string]*TransactionsBlock Rewards map[string]*Rewards Addresses map[string]*Addresses AddressChain map[string]*AddressChain OutputAddresses map[string]*OutputAddresses Assets map[string]*Assets TransactionsEpoch map[string]*TransactionsEpoch PvmBlocks map[string]*PvmBlocks AddressBech32 map[string]*AddressBech32 OutputAddressAccumulateOut map[string]*OutputAddressAccumulate OutputAddressAccumulateIn map[string]*OutputAddressAccumulate OutputTxsAccumulate map[string]*OutputTxsAccumulate AccumulateBalancesReceived map[string]*AccumulateBalancesAmount AccumulateBalancesSent map[string]*AccumulateBalancesAmount AccumulateBalancesTransactions map[string]*AccumulateBalancesTransactions TransactionsRewardsOwnersAddress map[string]*TransactionsRewardsOwnersAddress TransactionsRewardsOwnersOutputs map[string]*TransactionsRewardsOwnersOutputs TransactionsRewardsOwners map[string]*TransactionsRewardsOwners TxPool map[string]*TxPool KeyValueStore map[string]*KeyValueStore NodeIndex map[string]*NodeIndex // contains filtered or unexported fields }
func NewPersistMock ¶
func NewPersistMock() *MockPersist
func (*MockPersist) InsertAccumulateBalancesReceived ¶
func (m *MockPersist) InsertAccumulateBalancesReceived(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) error
func (*MockPersist) InsertAccumulateBalancesSent ¶
func (m *MockPersist) InsertAccumulateBalancesSent(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) error
func (*MockPersist) InsertAccumulateBalancesTransactions ¶
func (m *MockPersist) InsertAccumulateBalancesTransactions(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesTransactions) error
func (*MockPersist) InsertAddressBech32 ¶
func (m *MockPersist) InsertAddressBech32(ctx context.Context, runner dbr.SessionRunner, v *AddressBech32, b bool) error
func (*MockPersist) InsertAddressChain ¶
func (m *MockPersist) InsertAddressChain(ctx context.Context, runner dbr.SessionRunner, v *AddressChain, b bool) error
func (*MockPersist) InsertAddresses ¶
func (*MockPersist) InsertAssets ¶
func (*MockPersist) InsertCamLastBlockCache ¶
func (m *MockPersist) InsertCamLastBlockCache(ctx context.Context, runner dbr.SessionRunner, v *CamLastBlockCache, flag bool) error
func (*MockPersist) InsertCvmAccount ¶
func (m *MockPersist) InsertCvmAccount(ctx context.Context, runner dbr.SessionRunner, v *CvmAccount, b bool) error
func (*MockPersist) InsertCvmAddresses ¶
func (m *MockPersist) InsertCvmAddresses(ctx context.Context, runner dbr.SessionRunner, v *CvmAddresses, b bool) error
func (*MockPersist) InsertCvmBlocks ¶
func (m *MockPersist) InsertCvmBlocks(ctx context.Context, runner dbr.SessionRunner, v *CvmBlocks) error
func (*MockPersist) InsertCvmTransactionsAtomic ¶
func (m *MockPersist) InsertCvmTransactionsAtomic(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsAtomic, b bool) error
func (*MockPersist) InsertCvmTransactionsTxdata ¶
func (m *MockPersist) InsertCvmTransactionsTxdata(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdata, b bool) error
func (*MockPersist) InsertKeyValueStore ¶
func (m *MockPersist) InsertKeyValueStore(ctx context.Context, runner dbr.SessionRunner, v *KeyValueStore) error
func (*MockPersist) InsertNodeIndex ¶
func (*MockPersist) InsertOutputAddressAccumulateIn ¶
func (m *MockPersist) InsertOutputAddressAccumulateIn(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate, _ bool) error
func (*MockPersist) InsertOutputAddressAccumulateOut ¶
func (m *MockPersist) InsertOutputAddressAccumulateOut(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate, _ bool) error
func (*MockPersist) InsertOutputAddresses ¶
func (m *MockPersist) InsertOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses, b bool) error
func (*MockPersist) InsertOutputTxsAccumulate ¶
func (m *MockPersist) InsertOutputTxsAccumulate(ctx context.Context, runner dbr.SessionRunner, v *OutputTxsAccumulate) error
func (*MockPersist) InsertOutputs ¶
func (*MockPersist) InsertOutputsRedeeming ¶
func (m *MockPersist) InsertOutputsRedeeming(ctx context.Context, runner dbr.SessionRunner, v *OutputsRedeeming, b bool) error
func (*MockPersist) InsertPvmBlocks ¶
func (*MockPersist) InsertRewards ¶
func (*MockPersist) InsertTransactions ¶
func (m *MockPersist) InsertTransactions(ctx context.Context, runner dbr.SessionRunner, v *Transactions, b bool) error
func (*MockPersist) InsertTransactionsBlock ¶
func (m *MockPersist) InsertTransactionsBlock(ctx context.Context, runner dbr.SessionRunner, v *TransactionsBlock, b bool) error
func (*MockPersist) InsertTransactionsEpoch ¶
func (m *MockPersist) InsertTransactionsEpoch(ctx context.Context, runner dbr.SessionRunner, v *TransactionsEpoch, b bool) error
func (*MockPersist) InsertTransactionsRewardsOwners ¶
func (m *MockPersist) InsertTransactionsRewardsOwners(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwners, b bool) error
func (*MockPersist) InsertTransactionsRewardsOwnersAddress ¶
func (m *MockPersist) InsertTransactionsRewardsOwnersAddress(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwnersAddress, b bool) error
func (*MockPersist) InsertTransactionsRewardsOwnersOutputs ¶
func (m *MockPersist) InsertTransactionsRewardsOwnersOutputs(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwnersOutputs, b bool) error
func (*MockPersist) InsertTransactionsValidator ¶
func (m *MockPersist) InsertTransactionsValidator(ctx context.Context, runner dbr.SessionRunner, v *TransactionsValidator, b bool) error
func (*MockPersist) InsertTxPool ¶
func (m *MockPersist) InsertTxPool(ctx context.Context, runner dbr.SessionRunner, v *TxPool) error
func (*MockPersist) QueryAccumulateBalancesReceived ¶
func (m *MockPersist) QueryAccumulateBalancesReceived(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) (*AccumulateBalancesAmount, error)
func (*MockPersist) QueryAccumulateBalancesSent ¶
func (m *MockPersist) QueryAccumulateBalancesSent(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesAmount) (*AccumulateBalancesAmount, error)
func (*MockPersist) QueryAccumulateBalancesTransactions ¶
func (m *MockPersist) QueryAccumulateBalancesTransactions(ctx context.Context, runner dbr.SessionRunner, v *AccumulateBalancesTransactions) (*AccumulateBalancesTransactions, error)
func (*MockPersist) QueryAddressBech32 ¶
func (m *MockPersist) QueryAddressBech32(ctx context.Context, runner dbr.SessionRunner, v *AddressBech32) (*AddressBech32, error)
func (*MockPersist) QueryAddressChain ¶
func (m *MockPersist) QueryAddressChain(ctx context.Context, runner dbr.SessionRunner, v *AddressChain) (*AddressChain, error)
func (*MockPersist) QueryAddresses ¶
func (*MockPersist) QueryAssets ¶
func (*MockPersist) QueryCamLastBlockCache ¶
func (m *MockPersist) QueryCamLastBlockCache(ctx context.Context, runner dbr.SessionRunner, v *CamLastBlockCache) (*CamLastBlockCache, error)
func (*MockPersist) QueryCountLastBlockCache ¶
func (m *MockPersist) QueryCountLastBlockCache(ctx context.Context, runner dbr.SessionRunner, v *CamLastBlockCache) (*CountLastBlockCache, error)
this mock needs to be enriched
func (*MockPersist) QueryCvmAccount ¶
func (m *MockPersist) QueryCvmAccount(ctx context.Context, runner dbr.SessionRunner, v *CvmAccount) (*CvmAccount, error)
func (*MockPersist) QueryCvmAddresses ¶
func (m *MockPersist) QueryCvmAddresses(ctx context.Context, runner dbr.SessionRunner, v *CvmAddresses) (*CvmAddresses, error)
func (*MockPersist) QueryCvmBlock ¶
func (*MockPersist) QueryCvmTransactionsAtomic ¶
func (m *MockPersist) QueryCvmTransactionsAtomic(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsAtomic) (*CvmTransactionsAtomic, error)
func (*MockPersist) QueryCvmTransactionsTxdata ¶
func (m *MockPersist) QueryCvmTransactionsTxdata(ctx context.Context, runner dbr.SessionRunner, v *CvmTransactionsTxdata) (*CvmTransactionsTxdata, error)
func (*MockPersist) QueryKeyValueStore ¶
func (m *MockPersist) QueryKeyValueStore(ctx context.Context, runner dbr.SessionRunner, v *KeyValueStore) (*KeyValueStore, error)
func (*MockPersist) QueryNodeIndex ¶
func (*MockPersist) QueryOutputAddressAccumulateIn ¶
func (m *MockPersist) QueryOutputAddressAccumulateIn(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate) (*OutputAddressAccumulate, error)
func (*MockPersist) QueryOutputAddressAccumulateOut ¶
func (m *MockPersist) QueryOutputAddressAccumulateOut(ctx context.Context, runner dbr.SessionRunner, v *OutputAddressAccumulate) (*OutputAddressAccumulate, error)
func (*MockPersist) QueryOutputAddresses ¶
func (m *MockPersist) QueryOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses) (*OutputAddresses, error)
func (*MockPersist) QueryOutputTxsAccumulate ¶
func (m *MockPersist) QueryOutputTxsAccumulate(ctx context.Context, runner dbr.SessionRunner, v *OutputTxsAccumulate) (*OutputTxsAccumulate, error)
func (*MockPersist) QueryOutputs ¶
func (*MockPersist) QueryOutputsRedeeming ¶
func (m *MockPersist) QueryOutputsRedeeming(ctx context.Context, runner dbr.SessionRunner, v *OutputsRedeeming) (*OutputsRedeeming, error)
func (*MockPersist) QueryPvmBlocks ¶
func (*MockPersist) QueryRewards ¶
func (*MockPersist) QueryTransactions ¶
func (m *MockPersist) QueryTransactions(ctx context.Context, runner dbr.SessionRunner, v *Transactions) (*Transactions, error)
func (*MockPersist) QueryTransactionsBlock ¶
func (m *MockPersist) QueryTransactionsBlock(ctx context.Context, runner dbr.SessionRunner, v *TransactionsBlock) (*TransactionsBlock, error)
func (*MockPersist) QueryTransactionsEpoch ¶
func (m *MockPersist) QueryTransactionsEpoch(ctx context.Context, runner dbr.SessionRunner, v *TransactionsEpoch) (*TransactionsEpoch, error)
func (*MockPersist) QueryTransactionsRewardsOwners ¶
func (m *MockPersist) QueryTransactionsRewardsOwners(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwners) (*TransactionsRewardsOwners, error)
func (*MockPersist) QueryTransactionsRewardsOwnersAddress ¶
func (m *MockPersist) QueryTransactionsRewardsOwnersAddress(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwnersAddress) (*TransactionsRewardsOwnersAddress, error)
func (*MockPersist) QueryTransactionsRewardsOwnersOutputs ¶
func (m *MockPersist) QueryTransactionsRewardsOwnersOutputs(ctx context.Context, runner dbr.SessionRunner, v *TransactionsRewardsOwnersOutputs) (*TransactionsRewardsOwnersOutputs, error)
func (*MockPersist) QueryTransactionsValidator ¶
func (m *MockPersist) QueryTransactionsValidator(ctx context.Context, runner dbr.SessionRunner, v *TransactionsValidator) (*TransactionsValidator, error)
func (*MockPersist) QueryTxPool ¶
func (*MockPersist) RemoveTxPool ¶
func (m *MockPersist) RemoveTxPool(ctx context.Context, runner dbr.SessionRunner, v *TxPool) error
func (*MockPersist) UpdateNodeIndex ¶
func (m *MockPersist) UpdateNodeIndex(ctx context.Context, runner dbr.SessionRunner, v *NodeIndex) error
func (*MockPersist) UpdateOutputAddressAccumulateInOutputsProcessed ¶
func (m *MockPersist) UpdateOutputAddressAccumulateInOutputsProcessed(ctx context.Context, runner dbr.SessionRunner, id string) error
func (*MockPersist) UpdateOutputAddresses ¶
func (m *MockPersist) UpdateOutputAddresses(ctx context.Context, runner dbr.SessionRunner, v *OutputAddresses) error
func (*MockPersist) UpdateRewardsProcessed ¶
func (m *MockPersist) UpdateRewardsProcessed(ctx context.Context, sess dbr.SessionRunner, v *Rewards) error
type OutputAddressAccumulate ¶
type OutputAddressAccumulate struct { ID string OutputID string Address string Processed int OutputProcessed int TransactionID string OutputIndex uint32 CreatedAt time.Time }
func (*OutputAddressAccumulate) ComputeID ¶
func (b *OutputAddressAccumulate) ComputeID()
type OutputAddresses ¶
type OutputTxsAccumulate ¶
type OutputTxsAccumulate struct { ID string ChainID string AssetID string Address string TransactionID string Processed int CreatedAt time.Time }
func (*OutputTxsAccumulate) ComputeID ¶
func (b *OutputTxsAccumulate) ComputeID()
type Outputs ¶
type Outputs struct { ID string ChainID string TransactionID string OutputIndex uint32 OutputType models.OutputType AssetID string Amount uint64 Locktime uint64 Threshold uint32 GroupID uint32 Payload []byte StakeLocktime uint64 Stake bool Frozen bool Stakeableout bool Genesisutxo bool CreatedAt time.Time }
type OutputsRedeeming ¶
type Persist ¶
type Persist interface { QueryTransactions( context.Context, dbr.SessionRunner, *Transactions, ) (*Transactions, error) InsertTransactions( context.Context, dbr.SessionRunner, *Transactions, bool, ) error QueryOutputsRedeeming( context.Context, dbr.SessionRunner, *OutputsRedeeming, ) (*OutputsRedeeming, error) InsertOutputsRedeeming( context.Context, dbr.SessionRunner, *OutputsRedeeming, bool, ) error QueryOutputs( context.Context, dbr.SessionRunner, *Outputs, ) (*Outputs, error) InsertOutputs( context.Context, dbr.SessionRunner, *Outputs, bool, ) error QueryAssets( context.Context, dbr.SessionRunner, *Assets, ) (*Assets, error) InsertAssets( context.Context, dbr.SessionRunner, *Assets, bool, ) error QueryAddresses( context.Context, dbr.SessionRunner, *Addresses, ) (*Addresses, error) InsertAddresses( context.Context, dbr.SessionRunner, *Addresses, bool, ) error QueryAddressChain( context.Context, dbr.SessionRunner, *AddressChain, ) (*AddressChain, error) InsertAddressChain( context.Context, dbr.SessionRunner, *AddressChain, bool, ) error QueryOutputAddresses( context.Context, dbr.SessionRunner, *OutputAddresses, ) (*OutputAddresses, error) InsertOutputAddresses( context.Context, dbr.SessionRunner, *OutputAddresses, bool, ) error UpdateOutputAddresses( context.Context, dbr.SessionRunner, *OutputAddresses, ) error QueryTransactionsEpoch( context.Context, dbr.SessionRunner, *TransactionsEpoch, ) (*TransactionsEpoch, error) InsertTransactionsEpoch( context.Context, dbr.SessionRunner, *TransactionsEpoch, bool, ) error QueryCvmBlock( context.Context, dbr.SessionRunner, *CvmBlocks, ) (*CvmBlocks, error) InsertCvmBlocks( context.Context, dbr.SessionRunner, *CvmBlocks, ) error QueryCountLastBlockCache( context.Context, dbr.SessionRunner, *CamLastBlockCache, ) (*CountLastBlockCache, error) QueryCamLastBlockCache( context.Context, dbr.SessionRunner, *CamLastBlockCache, ) (*CamLastBlockCache, error) InsertCamLastBlockCache( context.Context, dbr.SessionRunner, *CamLastBlockCache, bool, ) error QueryCvmAddresses( context.Context, dbr.SessionRunner, *CvmAddresses, ) (*CvmAddresses, error) InsertCvmAddresses( context.Context, dbr.SessionRunner, *CvmAddresses, bool, ) error QueryCvmTransactionsAtomic( context.Context, dbr.SessionRunner, *CvmTransactionsAtomic, ) (*CvmTransactionsAtomic, error) InsertCvmTransactionsAtomic( context.Context, dbr.SessionRunner, *CvmTransactionsAtomic, bool, ) error QueryCvmTransactionsTxdata( context.Context, dbr.SessionRunner, *CvmTransactionsTxdata, ) (*CvmTransactionsTxdata, error) InsertCvmTransactionsTxdata( context.Context, dbr.SessionRunner, *CvmTransactionsTxdata, bool, ) error QueryCvmAccount( ctx context.Context, sess dbr.SessionRunner, q *CvmAccount, ) (*CvmAccount, error) InsertCvmAccount( ctx context.Context, sess dbr.SessionRunner, v *CvmAccount, upd bool, ) error QueryPvmBlocks( context.Context, dbr.SessionRunner, *PvmBlocks, ) (*PvmBlocks, error) InsertPvmBlocks( context.Context, dbr.SessionRunner, *PvmBlocks, bool, ) error QueryRewards( context.Context, dbr.SessionRunner, *Rewards, ) (*Rewards, error) InsertRewards( context.Context, dbr.SessionRunner, *Rewards, bool, ) error UpdateRewardsProcessed( context.Context, dbr.SessionRunner, *Rewards, ) error QueryTransactionsValidator( context.Context, dbr.SessionRunner, *TransactionsValidator, ) (*TransactionsValidator, error) InsertTransactionsValidator( context.Context, dbr.SessionRunner, *TransactionsValidator, bool, ) error QueryTransactionsBlock( context.Context, dbr.SessionRunner, *TransactionsBlock, ) (*TransactionsBlock, error) InsertTransactionsBlock( context.Context, dbr.SessionRunner, *TransactionsBlock, bool, ) error QueryAddressBech32( context.Context, dbr.SessionRunner, *AddressBech32, ) (*AddressBech32, error) InsertAddressBech32( context.Context, dbr.SessionRunner, *AddressBech32, bool, ) error QueryOutputAddressAccumulateOut( context.Context, dbr.SessionRunner, *OutputAddressAccumulate, ) (*OutputAddressAccumulate, error) InsertOutputAddressAccumulateOut( context.Context, dbr.SessionRunner, *OutputAddressAccumulate, bool, ) error QueryOutputAddressAccumulateIn( context.Context, dbr.SessionRunner, *OutputAddressAccumulate, ) (*OutputAddressAccumulate, error) InsertOutputAddressAccumulateIn( context.Context, dbr.SessionRunner, *OutputAddressAccumulate, bool, ) error UpdateOutputAddressAccumulateInOutputsProcessed( context.Context, dbr.SessionRunner, string, ) error QueryOutputTxsAccumulate( context.Context, dbr.SessionRunner, *OutputTxsAccumulate, ) (*OutputTxsAccumulate, error) InsertOutputTxsAccumulate( context.Context, dbr.SessionRunner, *OutputTxsAccumulate, ) error QueryAccumulateBalancesReceived( context.Context, dbr.SessionRunner, *AccumulateBalancesAmount, ) (*AccumulateBalancesAmount, error) InsertAccumulateBalancesReceived( context.Context, dbr.SessionRunner, *AccumulateBalancesAmount, ) error QueryAccumulateBalancesSent( context.Context, dbr.SessionRunner, *AccumulateBalancesAmount, ) (*AccumulateBalancesAmount, error) InsertAccumulateBalancesSent( context.Context, dbr.SessionRunner, *AccumulateBalancesAmount, ) error QueryAccumulateBalancesTransactions( context.Context, dbr.SessionRunner, *AccumulateBalancesTransactions, ) (*AccumulateBalancesTransactions, error) InsertAccumulateBalancesTransactions( context.Context, dbr.SessionRunner, *AccumulateBalancesTransactions, ) error QueryTransactionsRewardsOwnersAddress( context.Context, dbr.SessionRunner, *TransactionsRewardsOwnersAddress, ) (*TransactionsRewardsOwnersAddress, error) InsertTransactionsRewardsOwnersAddress( context.Context, dbr.SessionRunner, *TransactionsRewardsOwnersAddress, bool, ) error QueryTransactionsRewardsOwnersOutputs( context.Context, dbr.SessionRunner, *TransactionsRewardsOwnersOutputs, ) (*TransactionsRewardsOwnersOutputs, error) InsertTransactionsRewardsOwnersOutputs( context.Context, dbr.SessionRunner, *TransactionsRewardsOwnersOutputs, bool, ) error QueryTransactionsRewardsOwners( context.Context, dbr.SessionRunner, *TransactionsRewardsOwners, ) (*TransactionsRewardsOwners, error) InsertTransactionsRewardsOwners( context.Context, dbr.SessionRunner, *TransactionsRewardsOwners, bool, ) error QueryTxPool( context.Context, dbr.SessionRunner, *TxPool, ) (*TxPool, error) InsertTxPool( context.Context, dbr.SessionRunner, *TxPool, ) error RemoveTxPool( context.Context, dbr.SessionRunner, *TxPool, ) error QueryKeyValueStore( context.Context, dbr.SessionRunner, *KeyValueStore, ) (*KeyValueStore, error) InsertKeyValueStore( context.Context, dbr.SessionRunner, *KeyValueStore, ) error QueryNodeIndex( context.Context, dbr.SessionRunner, *NodeIndex, ) (*NodeIndex, error) InsertNodeIndex( context.Context, dbr.SessionRunner, *NodeIndex, bool, ) error UpdateNodeIndex( context.Context, dbr.SessionRunner, *NodeIndex, ) error }
func NewPersist ¶
func NewPersist() Persist
type Transactions ¶
type TransactionsBlock ¶
type TransactionsEpoch ¶
type TransactionsValidator ¶
Click to show internal directories.
Click to hide internal directories.