Documentation ¶
Index ¶
- Variables
- type CreateIndexedBlockParams
- type CreateOutPointBalancesBatchResults
- type CreateOutPointBalancesParams
- type CreateRuneBalanceAtBlockBatchResults
- type CreateRuneBalanceAtBlockParams
- type CreateRuneEntryParams
- type CreateRuneEntryStateParams
- type CreateRuneTransactionParams
- type CreateRunestoneParams
- type DBTX
- type GetBalanceByPkScriptAndRuneIdParams
- type GetBalancesByPkScriptParams
- type GetBalancesByPkScriptRow
- type GetBalancesByRuneIdParams
- type GetBalancesByRuneIdRow
- type GetLatestIndexerStatsRow
- type GetOutPointBalancesAtOutPointParams
- type GetRuneEntriesByRuneIdsAndHeightParams
- type GetRuneEntriesByRuneIdsAndHeightRow
- type GetRuneEntriesByRuneIdsRow
- type GetRuneTransactionsParams
- type GetRuneTransactionsRow
- type GetUnspentOutPointBalancesByPkScriptParams
- type Queries
- func (q *Queries) CountRuneEntries(ctx context.Context) (int64, error)
- func (q *Queries) CreateIndexedBlock(ctx context.Context, arg CreateIndexedBlockParams) error
- func (q *Queries) CreateOutPointBalances(ctx context.Context, arg []CreateOutPointBalancesParams) *CreateOutPointBalancesBatchResults
- func (q *Queries) CreateRuneBalanceAtBlock(ctx context.Context, arg []CreateRuneBalanceAtBlockParams) *CreateRuneBalanceAtBlockBatchResults
- func (q *Queries) CreateRuneEntry(ctx context.Context, arg CreateRuneEntryParams) error
- func (q *Queries) CreateRuneEntryState(ctx context.Context, arg CreateRuneEntryStateParams) error
- func (q *Queries) CreateRuneTransaction(ctx context.Context, arg CreateRuneTransactionParams) error
- func (q *Queries) CreateRunestone(ctx context.Context, arg CreateRunestoneParams) error
- func (q *Queries) DeleteIndexedBlockSinceHeight(ctx context.Context, height int32) error
- func (q *Queries) DeleteOutPointBalancesSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteRuneBalancesSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteRuneEntriesSinceHeight(ctx context.Context, etchingBlock int32) error
- func (q *Queries) DeleteRuneEntryStatesSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteRuneTransactionsSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteRunestonesSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) GetBalanceByPkScriptAndRuneId(ctx context.Context, arg GetBalanceByPkScriptAndRuneIdParams) (RunesBalance, error)
- func (q *Queries) GetBalancesByPkScript(ctx context.Context, arg GetBalancesByPkScriptParams) ([]GetBalancesByPkScriptRow, error)
- func (q *Queries) GetBalancesByRuneId(ctx context.Context, arg GetBalancesByRuneIdParams) ([]GetBalancesByRuneIdRow, error)
- func (q *Queries) GetIndexedBlockByHeight(ctx context.Context, height int32) (RunesIndexedBlock, error)
- func (q *Queries) GetLatestIndexedBlock(ctx context.Context) (RunesIndexedBlock, error)
- func (q *Queries) GetLatestIndexerState(ctx context.Context) (RunesIndexerState, error)
- func (q *Queries) GetLatestIndexerStats(ctx context.Context) (GetLatestIndexerStatsRow, error)
- func (q *Queries) GetOutPointBalancesAtOutPoint(ctx context.Context, arg GetOutPointBalancesAtOutPointParams) ([]RunesOutpointBalance, error)
- func (q *Queries) GetRuneEntriesByRuneIds(ctx context.Context, runeIds []string) ([]GetRuneEntriesByRuneIdsRow, error)
- func (q *Queries) GetRuneEntriesByRuneIdsAndHeight(ctx context.Context, arg GetRuneEntriesByRuneIdsAndHeightParams) ([]GetRuneEntriesByRuneIdsAndHeightRow, error)
- func (q *Queries) GetRuneIdFromRune(ctx context.Context, rune string) (string, error)
- func (q *Queries) GetRuneTransactions(ctx context.Context, arg GetRuneTransactionsParams) ([]GetRuneTransactionsRow, error)
- func (q *Queries) GetUnspentOutPointBalancesByPkScript(ctx context.Context, arg GetUnspentOutPointBalancesByPkScriptParams) ([]RunesOutpointBalance, error)
- func (q *Queries) SetIndexerState(ctx context.Context, arg SetIndexerStateParams) error
- func (q *Queries) SpendOutPointBalances(ctx context.Context, arg SpendOutPointBalancesParams) error
- func (q *Queries) UnspendOutPointBalancesSinceHeight(ctx context.Context, spentHeight pgtype.Int4) error
- func (q *Queries) UpdateIndexerStats(ctx context.Context, arg UpdateIndexerStatsParams) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type RunesBalance
- type RunesEntry
- type RunesEntryState
- type RunesIndexedBlock
- type RunesIndexerStat
- type RunesIndexerState
- type RunesOutpointBalance
- type RunesRunestone
- type RunesTransaction
- type SetIndexerStateParams
- type SpendOutPointBalancesParams
- type UpdateIndexerStatsParams
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBatchAlreadyClosed = errors.New("batch already closed")
)
Functions ¶
This section is empty.
Types ¶
type CreateOutPointBalancesBatchResults ¶
type CreateOutPointBalancesBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateOutPointBalancesBatchResults) Close ¶
func (b *CreateOutPointBalancesBatchResults) Close() error
func (*CreateOutPointBalancesBatchResults) Exec ¶
func (b *CreateOutPointBalancesBatchResults) Exec(f func(int, error))
type CreateRuneBalanceAtBlockBatchResults ¶
type CreateRuneBalanceAtBlockBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateRuneBalanceAtBlockBatchResults) Close ¶
func (b *CreateRuneBalanceAtBlockBatchResults) Close() error
func (*CreateRuneBalanceAtBlockBatchResults) Exec ¶
func (b *CreateRuneBalanceAtBlockBatchResults) Exec(f func(int, error))
type CreateRuneEntryParams ¶
type CreateRuneEntryParams struct { RuneID string Rune string Number int64 Spacers int32 Premine pgtype.Numeric Symbol int32 Divisibility int16 Terms bool TermsAmount pgtype.Numeric TermsCap pgtype.Numeric TermsHeightStart pgtype.Int4 TermsHeightEnd pgtype.Int4 TermsOffsetStart pgtype.Int4 TermsOffsetEnd pgtype.Int4 Turbo bool EtchingBlock int32 EtchingTxHash string EtchedAt pgtype.Timestamp }
type CreateRunestoneParams ¶
type CreateRunestoneParams struct { TxHash string BlockHeight int32 Etching bool EtchingDivisibility pgtype.Int2 EtchingPremine pgtype.Numeric EtchingRune pgtype.Text EtchingSpacers pgtype.Int4 EtchingSymbol pgtype.Int4 EtchingTerms pgtype.Bool EtchingTermsAmount pgtype.Numeric EtchingTermsCap pgtype.Numeric EtchingTermsHeightStart pgtype.Int4 EtchingTermsHeightEnd pgtype.Int4 EtchingTermsOffsetStart pgtype.Int4 EtchingTermsOffsetEnd pgtype.Int4 EtchingTurbo pgtype.Bool Edicts []byte Mint pgtype.Text Pointer pgtype.Int4 Cenotaph bool Flaws int32 }
type GetBalancesByRuneIdRow ¶
type GetRuneEntriesByRuneIdsAndHeightRow ¶
type GetRuneEntriesByRuneIdsAndHeightRow struct { RuneID string Number int64 Rune string Spacers int32 Premine pgtype.Numeric Symbol int32 Divisibility int16 Terms bool TermsAmount pgtype.Numeric TermsCap pgtype.Numeric TermsHeightStart pgtype.Int4 TermsHeightEnd pgtype.Int4 TermsOffsetStart pgtype.Int4 TermsOffsetEnd pgtype.Int4 Turbo bool EtchingBlock int32 EtchingTxHash string EtchedAt pgtype.Timestamp RuneID_2 pgtype.Text BlockHeight pgtype.Int4 Mints pgtype.Numeric BurnedAmount pgtype.Numeric CompletedAt pgtype.Timestamp CompletedAtHeight pgtype.Int4 }
type GetRuneEntriesByRuneIdsRow ¶
type GetRuneEntriesByRuneIdsRow struct { RuneID string Number int64 Rune string Spacers int32 Premine pgtype.Numeric Symbol int32 Divisibility int16 Terms bool TermsAmount pgtype.Numeric TermsCap pgtype.Numeric TermsHeightStart pgtype.Int4 TermsHeightEnd pgtype.Int4 TermsOffsetStart pgtype.Int4 TermsOffsetEnd pgtype.Int4 Turbo bool EtchingBlock int32 EtchingTxHash string EtchedAt pgtype.Timestamp RuneID_2 pgtype.Text BlockHeight pgtype.Int4 Mints pgtype.Numeric BurnedAmount pgtype.Numeric CompletedAt pgtype.Timestamp CompletedAtHeight pgtype.Int4 }
type GetRuneTransactionsRow ¶
type GetRuneTransactionsRow struct { Hash string BlockHeight int32 Index int32 Timestamp pgtype.Timestamp Inputs []byte Outputs []byte Mints []byte Burns []byte RuneEtched bool TxHash pgtype.Text BlockHeight_2 pgtype.Int4 Etching pgtype.Bool EtchingDivisibility pgtype.Int2 EtchingPremine pgtype.Numeric EtchingRune pgtype.Text EtchingSpacers pgtype.Int4 EtchingSymbol pgtype.Int4 EtchingTerms pgtype.Bool EtchingTermsAmount pgtype.Numeric EtchingTermsCap pgtype.Numeric EtchingTermsHeightStart pgtype.Int4 EtchingTermsHeightEnd pgtype.Int4 EtchingTermsOffsetStart pgtype.Int4 EtchingTermsOffsetEnd pgtype.Int4 EtchingTurbo pgtype.Bool Edicts []byte Mint pgtype.Text Pointer pgtype.Int4 Cenotaph pgtype.Bool Flaws pgtype.Int4 }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CountRuneEntries ¶
func (*Queries) CreateIndexedBlock ¶
func (q *Queries) CreateIndexedBlock(ctx context.Context, arg CreateIndexedBlockParams) error
func (*Queries) CreateOutPointBalances ¶
func (q *Queries) CreateOutPointBalances(ctx context.Context, arg []CreateOutPointBalancesParams) *CreateOutPointBalancesBatchResults
func (*Queries) CreateRuneBalanceAtBlock ¶
func (q *Queries) CreateRuneBalanceAtBlock(ctx context.Context, arg []CreateRuneBalanceAtBlockParams) *CreateRuneBalanceAtBlockBatchResults
func (*Queries) CreateRuneEntry ¶
func (q *Queries) CreateRuneEntry(ctx context.Context, arg CreateRuneEntryParams) error
func (*Queries) CreateRuneEntryState ¶
func (q *Queries) CreateRuneEntryState(ctx context.Context, arg CreateRuneEntryStateParams) error
func (*Queries) CreateRuneTransaction ¶
func (q *Queries) CreateRuneTransaction(ctx context.Context, arg CreateRuneTransactionParams) error
func (*Queries) CreateRunestone ¶
func (q *Queries) CreateRunestone(ctx context.Context, arg CreateRunestoneParams) error
func (*Queries) DeleteIndexedBlockSinceHeight ¶
func (*Queries) DeleteOutPointBalancesSinceHeight ¶
func (*Queries) DeleteRuneBalancesSinceHeight ¶
func (*Queries) DeleteRuneEntriesSinceHeight ¶
func (*Queries) DeleteRuneEntryStatesSinceHeight ¶
func (*Queries) DeleteRuneTransactionsSinceHeight ¶
func (*Queries) DeleteRunestonesSinceHeight ¶
func (*Queries) GetBalanceByPkScriptAndRuneId ¶
func (q *Queries) GetBalanceByPkScriptAndRuneId(ctx context.Context, arg GetBalanceByPkScriptAndRuneIdParams) (RunesBalance, error)
func (*Queries) GetBalancesByPkScript ¶
func (q *Queries) GetBalancesByPkScript(ctx context.Context, arg GetBalancesByPkScriptParams) ([]GetBalancesByPkScriptRow, error)
func (*Queries) GetBalancesByRuneId ¶
func (q *Queries) GetBalancesByRuneId(ctx context.Context, arg GetBalancesByRuneIdParams) ([]GetBalancesByRuneIdRow, error)
func (*Queries) GetIndexedBlockByHeight ¶
func (*Queries) GetLatestIndexedBlock ¶
func (q *Queries) GetLatestIndexedBlock(ctx context.Context) (RunesIndexedBlock, error)
func (*Queries) GetLatestIndexerState ¶
func (q *Queries) GetLatestIndexerState(ctx context.Context) (RunesIndexerState, error)
func (*Queries) GetLatestIndexerStats ¶
func (q *Queries) GetLatestIndexerStats(ctx context.Context) (GetLatestIndexerStatsRow, error)
func (*Queries) GetOutPointBalancesAtOutPoint ¶
func (q *Queries) GetOutPointBalancesAtOutPoint(ctx context.Context, arg GetOutPointBalancesAtOutPointParams) ([]RunesOutpointBalance, error)
func (*Queries) GetRuneEntriesByRuneIds ¶
func (*Queries) GetRuneEntriesByRuneIdsAndHeight ¶
func (q *Queries) GetRuneEntriesByRuneIdsAndHeight(ctx context.Context, arg GetRuneEntriesByRuneIdsAndHeightParams) ([]GetRuneEntriesByRuneIdsAndHeightRow, error)
func (*Queries) GetRuneIdFromRune ¶
func (*Queries) GetRuneTransactions ¶
func (q *Queries) GetRuneTransactions(ctx context.Context, arg GetRuneTransactionsParams) ([]GetRuneTransactionsRow, error)
func (*Queries) GetUnspentOutPointBalancesByPkScript ¶
func (q *Queries) GetUnspentOutPointBalancesByPkScript(ctx context.Context, arg GetUnspentOutPointBalancesByPkScriptParams) ([]RunesOutpointBalance, error)
func (*Queries) SetIndexerState ¶
func (q *Queries) SetIndexerState(ctx context.Context, arg SetIndexerStateParams) error
func (*Queries) SpendOutPointBalances ¶
func (q *Queries) SpendOutPointBalances(ctx context.Context, arg SpendOutPointBalancesParams) error
func (*Queries) UnspendOutPointBalancesSinceHeight ¶
func (*Queries) UpdateIndexerStats ¶
func (q *Queries) UpdateIndexerStats(ctx context.Context, arg UpdateIndexerStatsParams) error
type RunesBalance ¶
type RunesEntry ¶
type RunesEntry struct { RuneID string Number int64 Rune string Spacers int32 Premine pgtype.Numeric Symbol int32 Divisibility int16 Terms bool TermsAmount pgtype.Numeric TermsCap pgtype.Numeric TermsHeightStart pgtype.Int4 TermsHeightEnd pgtype.Int4 TermsOffsetStart pgtype.Int4 TermsOffsetEnd pgtype.Int4 Turbo bool EtchingBlock int32 EtchingTxHash string EtchedAt pgtype.Timestamp }
type RunesEntryState ¶
type RunesIndexedBlock ¶
type RunesIndexerStat ¶
type RunesIndexerStat struct { Id int64 ClientVersion string Network string CreatedAt pgtype.Timestamptz }
type RunesIndexerState ¶
type RunesIndexerState struct { Id int64 DbVersion int32 EventHashVersion int32 CreatedAt pgtype.Timestamptz }
type RunesOutpointBalance ¶
type RunesRunestone ¶
type RunesRunestone struct { TxHash string BlockHeight int32 Etching bool EtchingDivisibility pgtype.Int2 EtchingPremine pgtype.Numeric EtchingRune pgtype.Text EtchingSpacers pgtype.Int4 EtchingSymbol pgtype.Int4 EtchingTerms pgtype.Bool EtchingTermsAmount pgtype.Numeric EtchingTermsCap pgtype.Numeric EtchingTermsHeightStart pgtype.Int4 EtchingTermsHeightEnd pgtype.Int4 EtchingTermsOffsetStart pgtype.Int4 EtchingTermsOffsetEnd pgtype.Int4 EtchingTurbo pgtype.Bool Edicts []byte Mint pgtype.Text Pointer pgtype.Int4 Cenotaph bool Flaws int32 }
type RunesTransaction ¶
type SetIndexerStateParams ¶
Click to show internal directories.
Click to hide internal directories.