Documentation ¶
Index ¶
- Variables
- type Brc20Balance
- type Brc20EventDeploy
- type Brc20EventInscribeTransfer
- type Brc20EventMint
- type Brc20EventTransferTransfer
- type Brc20IndexedBlock
- type Brc20IndexerState
- type Brc20InscriptionEntry
- type Brc20InscriptionEntryState
- type Brc20InscriptionTransfer
- type Brc20ProcessorStat
- type Brc20TickEntry
- type Brc20TickEntryState
- type CreateEventDeploysBatchResults
- type CreateEventDeploysParams
- type CreateEventInscribeTransfersBatchResults
- type CreateEventInscribeTransfersParams
- type CreateEventMintsBatchResults
- type CreateEventMintsParams
- type CreateEventTransferTransfersBatchResults
- type CreateEventTransferTransfersParams
- type CreateIndexedBlockParams
- type CreateIndexerStateParams
- type CreateInscriptionEntriesBatchResults
- type CreateInscriptionEntriesParams
- type CreateInscriptionEntryStatesBatchResults
- type CreateInscriptionEntryStatesParams
- type CreateInscriptionTransfersBatchResults
- type CreateInscriptionTransfersParams
- type CreateProcessorStatsParams
- type CreateTickEntriesBatchResults
- type CreateTickEntriesParams
- type CreateTickEntryStatesBatchResults
- type CreateTickEntryStatesParams
- type DBTX
- type GetBalancesBatchAtHeightParams
- type GetInscriptionEntriesByIdsRow
- type GetInscriptionNumbersByIdsRow
- type GetInscriptionParentsByIdsRow
- type GetInscriptionTransfersInOutPointsParams
- type GetInscriptionTransfersInOutPointsRow
- type GetLatestEventIdsRow
- type GetTickEntriesByTicksRow
- type Queries
- func (q *Queries) CreateEventDeploys(ctx context.Context, arg []CreateEventDeploysParams) *CreateEventDeploysBatchResults
- func (q *Queries) CreateEventInscribeTransfers(ctx context.Context, arg []CreateEventInscribeTransfersParams) *CreateEventInscribeTransfersBatchResults
- func (q *Queries) CreateEventMints(ctx context.Context, arg []CreateEventMintsParams) *CreateEventMintsBatchResults
- func (q *Queries) CreateEventTransferTransfers(ctx context.Context, arg []CreateEventTransferTransfersParams) *CreateEventTransferTransfersBatchResults
- func (q *Queries) CreateIndexedBlock(ctx context.Context, arg CreateIndexedBlockParams) error
- func (q *Queries) CreateIndexerState(ctx context.Context, arg CreateIndexerStateParams) error
- func (q *Queries) CreateInscriptionEntries(ctx context.Context, arg []CreateInscriptionEntriesParams) *CreateInscriptionEntriesBatchResults
- func (q *Queries) CreateInscriptionEntryStates(ctx context.Context, arg []CreateInscriptionEntryStatesParams) *CreateInscriptionEntryStatesBatchResults
- func (q *Queries) CreateInscriptionTransfers(ctx context.Context, arg []CreateInscriptionTransfersParams) *CreateInscriptionTransfersBatchResults
- func (q *Queries) CreateProcessorStats(ctx context.Context, arg CreateProcessorStatsParams) error
- func (q *Queries) CreateTickEntries(ctx context.Context, arg []CreateTickEntriesParams) *CreateTickEntriesBatchResults
- func (q *Queries) CreateTickEntryStates(ctx context.Context, arg []CreateTickEntryStatesParams) *CreateTickEntryStatesBatchResults
- func (q *Queries) DeleteBalancesSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteEventDeploysSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteEventInscribeTransfersSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteEventMintsSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteEventTransferTransfersSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteIndexedBlocksSinceHeight(ctx context.Context, height int32) error
- func (q *Queries) DeleteInscriptionEntriesSinceHeight(ctx context.Context, createdAtHeight int32) error
- func (q *Queries) DeleteInscriptionEntryStatesSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteInscriptionTransfersSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteProcessorStatsSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) DeleteTickEntriesSinceHeight(ctx context.Context, deployedAtHeight int32) error
- func (q *Queries) DeleteTickEntryStatesSinceHeight(ctx context.Context, blockHeight int32) error
- func (q *Queries) GetBalancesBatchAtHeight(ctx context.Context, arg GetBalancesBatchAtHeightParams) ([]Brc20Balance, error)
- func (q *Queries) GetEventInscribeTransfersByInscriptionIds(ctx context.Context, inscriptionIds []string) ([]Brc20EventInscribeTransfer, error)
- func (q *Queries) GetIndexedBlockByHeight(ctx context.Context, height int32) (Brc20IndexedBlock, error)
- func (q *Queries) GetInscriptionEntriesByIds(ctx context.Context, inscriptionIds []string) ([]GetInscriptionEntriesByIdsRow, error)
- func (q *Queries) GetInscriptionNumbersByIds(ctx context.Context, inscriptionIds []string) ([]GetInscriptionNumbersByIdsRow, error)
- func (q *Queries) GetInscriptionParentsByIds(ctx context.Context, inscriptionIds []string) ([]GetInscriptionParentsByIdsRow, error)
- func (q *Queries) GetInscriptionTransfersInOutPoints(ctx context.Context, arg GetInscriptionTransfersInOutPointsParams) ([]GetInscriptionTransfersInOutPointsRow, error)
- func (q *Queries) GetLatestEventIds(ctx context.Context) (GetLatestEventIdsRow, error)
- func (q *Queries) GetLatestIndexedBlock(ctx context.Context) (Brc20IndexedBlock, error)
- func (q *Queries) GetLatestIndexerState(ctx context.Context) (Brc20IndexerState, error)
- func (q *Queries) GetLatestProcessorStats(ctx context.Context) (Brc20ProcessorStat, error)
- func (q *Queries) GetTickEntriesByTicks(ctx context.Context, ticks []string) ([]GetTickEntriesByTicksRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBatchAlreadyClosed = errors.New("batch already closed")
)
Functions ¶
This section is empty.
Types ¶
type Brc20Balance ¶
type Brc20EventDeploy ¶
type Brc20EventDeploy struct { Id int64 InscriptionID string InscriptionNumber int64 Tick string OriginalTick string TxHash string BlockHeight int32 TxIndex int32 Timestamp pgtype.Timestamp Pkscript string Satpoint string TotalSupply pgtype.Numeric Decimals int16 LimitPerMint pgtype.Numeric IsSelfMint bool }
type Brc20EventMint ¶
type Brc20EventTransferTransfer ¶
type Brc20EventTransferTransfer struct { Id int64 InscriptionID string InscriptionNumber int64 Tick string OriginalTick string TxHash string BlockHeight int32 TxIndex int32 Timestamp pgtype.Timestamp FromPkscript string FromSatpoint string FromInputIndex int32 ToPkscript string ToSatpoint string ToOutputIndex int32 SpentAsFee bool Amount pgtype.Numeric }
type Brc20IndexedBlock ¶
type Brc20IndexerState ¶
type Brc20InscriptionEntry ¶
type Brc20InscriptionEntry struct { Id string Number int64 SequenceNumber int64 Delegate pgtype.Text Metadata []byte Metaprotocol pgtype.Text Parents []string Pointer pgtype.Int8 Content []byte ContentEncoding pgtype.Text ContentType pgtype.Text Cursed bool CursedForBrc20 bool CreatedAt pgtype.Timestamp CreatedAtHeight int32 }
type Brc20InscriptionTransfer ¶
type Brc20InscriptionTransfer struct { InscriptionID string BlockHeight int32 TxIndex int32 TxHash string FromInputIndex int32 OldSatpointTxHash pgtype.Text OldSatpointOutIdx pgtype.Int4 OldSatpointOffset pgtype.Int8 NewSatpointTxHash pgtype.Text NewSatpointOutIdx pgtype.Int4 NewSatpointOffset pgtype.Int8 NewPkscript string NewOutputValue int64 SentAsFee bool TransferCount int32 }
type Brc20ProcessorStat ¶
type Brc20TickEntry ¶
type Brc20TickEntryState ¶
type CreateEventDeploysBatchResults ¶
type CreateEventDeploysBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateEventDeploysBatchResults) Close ¶
func (b *CreateEventDeploysBatchResults) Close() error
func (*CreateEventDeploysBatchResults) Exec ¶
func (b *CreateEventDeploysBatchResults) Exec(f func(int, error))
type CreateEventDeploysParams ¶
type CreateEventDeploysParams struct { InscriptionID string InscriptionNumber int64 Tick string OriginalTick string TxHash string BlockHeight int32 TxIndex int32 Timestamp pgtype.Timestamp Pkscript string Satpoint string TotalSupply pgtype.Numeric Decimals int16 LimitPerMint pgtype.Numeric IsSelfMint bool }
type CreateEventInscribeTransfersBatchResults ¶
type CreateEventInscribeTransfersBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateEventInscribeTransfersBatchResults) Close ¶
func (b *CreateEventInscribeTransfersBatchResults) Close() error
func (*CreateEventInscribeTransfersBatchResults) Exec ¶
func (b *CreateEventInscribeTransfersBatchResults) Exec(f func(int, error))
type CreateEventMintsBatchResults ¶
type CreateEventMintsBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateEventMintsBatchResults) Close ¶
func (b *CreateEventMintsBatchResults) Close() error
func (*CreateEventMintsBatchResults) Exec ¶
func (b *CreateEventMintsBatchResults) Exec(f func(int, error))
type CreateEventMintsParams ¶
type CreateEventTransferTransfersBatchResults ¶
type CreateEventTransferTransfersBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateEventTransferTransfersBatchResults) Close ¶
func (b *CreateEventTransferTransfersBatchResults) Close() error
func (*CreateEventTransferTransfersBatchResults) Exec ¶
func (b *CreateEventTransferTransfersBatchResults) Exec(f func(int, error))
type CreateEventTransferTransfersParams ¶
type CreateEventTransferTransfersParams struct { InscriptionID string InscriptionNumber int64 Tick string OriginalTick string TxHash string BlockHeight int32 TxIndex int32 Timestamp pgtype.Timestamp FromPkscript string FromSatpoint string FromInputIndex int32 ToPkscript string ToSatpoint string ToOutputIndex int32 SpentAsFee bool Amount pgtype.Numeric }
type CreateInscriptionEntriesBatchResults ¶
type CreateInscriptionEntriesBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateInscriptionEntriesBatchResults) Close ¶
func (b *CreateInscriptionEntriesBatchResults) Close() error
func (*CreateInscriptionEntriesBatchResults) Exec ¶
func (b *CreateInscriptionEntriesBatchResults) Exec(f func(int, error))
type CreateInscriptionEntriesParams ¶
type CreateInscriptionEntriesParams struct { Id string Number int64 SequenceNumber int64 Delegate pgtype.Text Metadata []byte Metaprotocol pgtype.Text Parents []string Pointer pgtype.Int8 Content []byte ContentEncoding pgtype.Text ContentType pgtype.Text Cursed bool CursedForBrc20 bool CreatedAt pgtype.Timestamp CreatedAtHeight int32 }
type CreateInscriptionEntryStatesBatchResults ¶
type CreateInscriptionEntryStatesBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateInscriptionEntryStatesBatchResults) Close ¶
func (b *CreateInscriptionEntryStatesBatchResults) Close() error
func (*CreateInscriptionEntryStatesBatchResults) Exec ¶
func (b *CreateInscriptionEntryStatesBatchResults) Exec(f func(int, error))
type CreateInscriptionTransfersBatchResults ¶
type CreateInscriptionTransfersBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateInscriptionTransfersBatchResults) Close ¶
func (b *CreateInscriptionTransfersBatchResults) Close() error
func (*CreateInscriptionTransfersBatchResults) Exec ¶
func (b *CreateInscriptionTransfersBatchResults) Exec(f func(int, error))
type CreateInscriptionTransfersParams ¶
type CreateInscriptionTransfersParams struct { InscriptionID string BlockHeight int32 TxIndex int32 TxHash string FromInputIndex int32 OldSatpointTxHash pgtype.Text OldSatpointOutIdx pgtype.Int4 OldSatpointOffset pgtype.Int8 NewSatpointTxHash pgtype.Text NewSatpointOutIdx pgtype.Int4 NewSatpointOffset pgtype.Int8 NewPkscript string NewOutputValue int64 SentAsFee bool TransferCount int32 }
type CreateTickEntriesBatchResults ¶
type CreateTickEntriesBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateTickEntriesBatchResults) Close ¶
func (b *CreateTickEntriesBatchResults) Close() error
func (*CreateTickEntriesBatchResults) Exec ¶
func (b *CreateTickEntriesBatchResults) Exec(f func(int, error))
type CreateTickEntriesParams ¶
type CreateTickEntryStatesBatchResults ¶
type CreateTickEntryStatesBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateTickEntryStatesBatchResults) Close ¶
func (b *CreateTickEntryStatesBatchResults) Close() error
func (*CreateTickEntryStatesBatchResults) Exec ¶
func (b *CreateTickEntryStatesBatchResults) Exec(f func(int, error))
type GetInscriptionEntriesByIdsRow ¶
type GetInscriptionEntriesByIdsRow struct { Id string Number int64 SequenceNumber int64 Delegate pgtype.Text Metadata []byte Metaprotocol pgtype.Text Parents []string Pointer pgtype.Int8 Content []byte ContentEncoding pgtype.Text ContentType pgtype.Text Cursed bool CursedForBrc20 bool CreatedAt pgtype.Timestamp CreatedAtHeight int32 Id_2 pgtype.Text BlockHeight pgtype.Int4 TransferCount pgtype.Int4 }
type GetInscriptionTransfersInOutPointsRow ¶
type GetInscriptionTransfersInOutPointsRow struct { InscriptionID string BlockHeight int32 TxIndex int32 TxHash string FromInputIndex int32 OldSatpointTxHash pgtype.Text OldSatpointOutIdx pgtype.Int4 OldSatpointOffset pgtype.Int8 NewSatpointTxHash pgtype.Text NewSatpointOutIdx pgtype.Int4 NewSatpointOffset pgtype.Int8 NewPkscript string NewOutputValue int64 SentAsFee bool TransferCount int32 Content []byte }
type GetLatestEventIdsRow ¶
type GetTickEntriesByTicksRow ¶
type GetTickEntriesByTicksRow struct { Tick string OriginalTick string TotalSupply pgtype.Numeric Decimals int16 LimitPerMint pgtype.Numeric IsSelfMint bool DeployInscriptionID string DeployedAt pgtype.Timestamp DeployedAtHeight int32 Tick_2 pgtype.Text BlockHeight pgtype.Int4 MintedAmount pgtype.Numeric BurnedAmount pgtype.Numeric CompletedAt pgtype.Timestamp CompletedAtHeight pgtype.Int4 }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateEventDeploys ¶
func (q *Queries) CreateEventDeploys(ctx context.Context, arg []CreateEventDeploysParams) *CreateEventDeploysBatchResults
func (*Queries) CreateEventInscribeTransfers ¶
func (q *Queries) CreateEventInscribeTransfers(ctx context.Context, arg []CreateEventInscribeTransfersParams) *CreateEventInscribeTransfersBatchResults
func (*Queries) CreateEventMints ¶
func (q *Queries) CreateEventMints(ctx context.Context, arg []CreateEventMintsParams) *CreateEventMintsBatchResults
func (*Queries) CreateEventTransferTransfers ¶
func (q *Queries) CreateEventTransferTransfers(ctx context.Context, arg []CreateEventTransferTransfersParams) *CreateEventTransferTransfersBatchResults
func (*Queries) CreateIndexedBlock ¶
func (q *Queries) CreateIndexedBlock(ctx context.Context, arg CreateIndexedBlockParams) error
func (*Queries) CreateIndexerState ¶
func (q *Queries) CreateIndexerState(ctx context.Context, arg CreateIndexerStateParams) error
func (*Queries) CreateInscriptionEntries ¶
func (q *Queries) CreateInscriptionEntries(ctx context.Context, arg []CreateInscriptionEntriesParams) *CreateInscriptionEntriesBatchResults
func (*Queries) CreateInscriptionEntryStates ¶
func (q *Queries) CreateInscriptionEntryStates(ctx context.Context, arg []CreateInscriptionEntryStatesParams) *CreateInscriptionEntryStatesBatchResults
func (*Queries) CreateInscriptionTransfers ¶
func (q *Queries) CreateInscriptionTransfers(ctx context.Context, arg []CreateInscriptionTransfersParams) *CreateInscriptionTransfersBatchResults
func (*Queries) CreateProcessorStats ¶
func (q *Queries) CreateProcessorStats(ctx context.Context, arg CreateProcessorStatsParams) error
func (*Queries) CreateTickEntries ¶
func (q *Queries) CreateTickEntries(ctx context.Context, arg []CreateTickEntriesParams) *CreateTickEntriesBatchResults
func (*Queries) CreateTickEntryStates ¶
func (q *Queries) CreateTickEntryStates(ctx context.Context, arg []CreateTickEntryStatesParams) *CreateTickEntryStatesBatchResults
func (*Queries) DeleteBalancesSinceHeight ¶
func (*Queries) DeleteEventDeploysSinceHeight ¶
func (*Queries) DeleteEventInscribeTransfersSinceHeight ¶
func (*Queries) DeleteEventMintsSinceHeight ¶
func (*Queries) DeleteEventTransferTransfersSinceHeight ¶
func (*Queries) DeleteIndexedBlocksSinceHeight ¶
func (*Queries) DeleteInscriptionEntriesSinceHeight ¶
func (*Queries) DeleteInscriptionEntryStatesSinceHeight ¶
func (*Queries) DeleteInscriptionTransfersSinceHeight ¶
func (*Queries) DeleteProcessorStatsSinceHeight ¶
func (*Queries) DeleteTickEntriesSinceHeight ¶
func (*Queries) DeleteTickEntryStatesSinceHeight ¶
func (*Queries) GetBalancesBatchAtHeight ¶
func (q *Queries) GetBalancesBatchAtHeight(ctx context.Context, arg GetBalancesBatchAtHeightParams) ([]Brc20Balance, error)
func (*Queries) GetEventInscribeTransfersByInscriptionIds ¶
func (*Queries) GetIndexedBlockByHeight ¶
func (*Queries) GetInscriptionEntriesByIds ¶
func (*Queries) GetInscriptionNumbersByIds ¶
func (*Queries) GetInscriptionParentsByIds ¶
func (*Queries) GetInscriptionTransfersInOutPoints ¶
func (q *Queries) GetInscriptionTransfersInOutPoints(ctx context.Context, arg GetInscriptionTransfersInOutPointsParams) ([]GetInscriptionTransfersInOutPointsRow, error)
func (*Queries) GetLatestEventIds ¶
func (q *Queries) GetLatestEventIds(ctx context.Context) (GetLatestEventIdsRow, error)
func (*Queries) GetLatestIndexedBlock ¶
func (q *Queries) GetLatestIndexedBlock(ctx context.Context) (Brc20IndexedBlock, error)
func (*Queries) GetLatestIndexerState ¶
func (q *Queries) GetLatestIndexerState(ctx context.Context) (Brc20IndexerState, error)
func (*Queries) GetLatestProcessorStats ¶
func (q *Queries) GetLatestProcessorStats(ctx context.Context) (Brc20ProcessorStat, error)
func (*Queries) GetTickEntriesByTicks ¶
Click to show internal directories.
Click to hide internal directories.