Documentation ¶
Index ¶
- func RunMigrations(logger *common.Logger, pgConnectionString string, downFirst bool) error
- type BlockEvent
- type CommitSlaNodeReportParams
- type CommitSlaRollupParams
- type CoreAppState
- type CoreAttribute
- type CoreBlock
- type CoreEvent
- type CoreTxResult
- type CoreTxStat
- type CoreValidator
- type DBTX
- type EventAttribute
- type GetAppStateAtHeightRow
- type GetLatestAppStateRow
- type InsertRegisteredNodeParams
- type InsertTxStatParams
- type Queries
- func (q *Queries) CheckDatabaseExists(ctx context.Context, datname string) (bool, error)
- func (q *Queries) ClearUncommittedSlaNodeReports(ctx context.Context) error
- func (q *Queries) CommitSlaNodeReport(ctx context.Context, arg CommitSlaNodeReportParams) error
- func (q *Queries) CommitSlaRollup(ctx context.Context, arg CommitSlaRollupParams) (int32, error)
- func (q *Queries) GetAllRegisteredNodes(ctx context.Context) ([]CoreValidator, error)
- func (q *Queries) GetAppStateAtHeight(ctx context.Context, blockHeight int64) (GetAppStateAtHeightRow, error)
- func (q *Queries) GetBlock(ctx context.Context, height int64) (CoreBlock, error)
- func (q *Queries) GetBlockTransactions(ctx context.Context, blockID int64) ([]CoreTxResult, error)
- func (q *Queries) GetInProgressRollupReports(ctx context.Context) ([]SlaNodeReport, error)
- func (q *Queries) GetLatestAppState(ctx context.Context) (GetLatestAppStateRow, error)
- func (q *Queries) GetLatestSlaRollup(ctx context.Context) (SlaRollup, error)
- func (q *Queries) GetNodeByEndpoint(ctx context.Context, endpoint string) (CoreValidator, error)
- func (q *Queries) GetRecentBlocks(ctx context.Context) ([]CoreBlock, error)
- func (q *Queries) GetRecentRollups(ctx context.Context) ([]SlaRollup, error)
- func (q *Queries) GetRecentTxs(ctx context.Context) ([]CoreTxResult, error)
- func (q *Queries) GetRegisteredNodeByCometAddress(ctx context.Context, cometAddress string) (CoreValidator, error)
- func (q *Queries) GetRegisteredNodeByEthAddress(ctx context.Context, ethAddress string) (CoreValidator, error)
- func (q *Queries) GetRegisteredNodesByType(ctx context.Context, nodeType string) ([]CoreValidator, error)
- func (q *Queries) GetRollupReportsForId(ctx context.Context, slaRollupID pgtype.Int4) ([]SlaNodeReport, error)
- func (q *Queries) GetSlaRollupWithId(ctx context.Context, id int32) (SlaRollup, error)
- func (q *Queries) GetTx(ctx context.Context, lower string) (CoreTxResult, error)
- func (q *Queries) InsertRegisteredNode(ctx context.Context, arg InsertRegisteredNodeParams) error
- func (q *Queries) InsertTxStat(ctx context.Context, arg InsertTxStatParams) error
- func (q *Queries) TotalBlocks(ctx context.Context) (int64, error)
- func (q *Queries) TotalTransactions(ctx context.Context) (int64, error)
- func (q *Queries) TotalTransactionsByType(ctx context.Context, txType string) (int64, error)
- func (q *Queries) TotalTxResults(ctx context.Context) (int64, error)
- func (q *Queries) TotalValidators(ctx context.Context) (int64, error)
- func (q *Queries) TxsPerHour(ctx context.Context) ([]TxsPerHourRow, error)
- func (q *Queries) UpsertAppState(ctx context.Context, arg UpsertAppStateParams) error
- func (q *Queries) UpsertSlaRollupReport(ctx context.Context, address string) error
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
- type SlaNodeReport
- type SlaRollup
- type TxEvent
- type TxsPerHourRow
- type UpsertAppStateParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlockEvent ¶
type CommitSlaRollupParams ¶
type CoreAppState ¶
type CoreAttribute ¶
type CoreBlock ¶
type CoreBlock struct { Rowid int64 Height int64 ChainID string CreatedAt pgtype.Timestamptz }
type CoreTxResult ¶
type CoreTxStat ¶
type CoreValidator ¶
type EventAttribute ¶
type GetAppStateAtHeightRow ¶
type GetLatestAppStateRow ¶
type InsertTxStatParams ¶
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CheckDatabaseExists ¶
func (*Queries) ClearUncommittedSlaNodeReports ¶
func (*Queries) CommitSlaNodeReport ¶
func (q *Queries) CommitSlaNodeReport(ctx context.Context, arg CommitSlaNodeReportParams) error
func (*Queries) CommitSlaRollup ¶
func (*Queries) GetAllRegisteredNodes ¶
func (q *Queries) GetAllRegisteredNodes(ctx context.Context) ([]CoreValidator, error)
func (*Queries) GetAppStateAtHeight ¶
func (*Queries) GetBlockTransactions ¶
func (*Queries) GetInProgressRollupReports ¶
func (q *Queries) GetInProgressRollupReports(ctx context.Context) ([]SlaNodeReport, error)
func (*Queries) GetLatestAppState ¶
func (q *Queries) GetLatestAppState(ctx context.Context) (GetLatestAppStateRow, error)
func (*Queries) GetLatestSlaRollup ¶
func (*Queries) GetNodeByEndpoint ¶
func (*Queries) GetRecentBlocks ¶
func (*Queries) GetRecentRollups ¶
func (*Queries) GetRecentTxs ¶
func (q *Queries) GetRecentTxs(ctx context.Context) ([]CoreTxResult, error)
func (*Queries) GetRegisteredNodeByCometAddress ¶
func (*Queries) GetRegisteredNodeByEthAddress ¶
func (*Queries) GetRegisteredNodesByType ¶
func (*Queries) GetRollupReportsForId ¶
func (*Queries) GetSlaRollupWithId ¶
func (*Queries) InsertRegisteredNode ¶
func (q *Queries) InsertRegisteredNode(ctx context.Context, arg InsertRegisteredNodeParams) error
func (*Queries) InsertTxStat ¶
func (q *Queries) InsertTxStat(ctx context.Context, arg InsertTxStatParams) error
func (*Queries) TotalTransactions ¶
func (*Queries) TotalTransactionsByType ¶
func (*Queries) TotalTxResults ¶
func (*Queries) TotalValidators ¶
func (*Queries) TxsPerHour ¶
func (q *Queries) TxsPerHour(ctx context.Context) ([]TxsPerHourRow, error)
func (*Queries) UpsertAppState ¶
func (q *Queries) UpsertAppState(ctx context.Context, arg UpsertAppStateParams) error
func (*Queries) UpsertSlaRollupReport ¶
type SlaNodeReport ¶
type TxsPerHourRow ¶
type UpsertAppStateParams ¶
Click to show internal directories.
Click to hide internal directories.