mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-01-12 08:34:28 +08:00
* feat: recover nodesale module. * fix: refactored. * fix: fix table type. * fix: add entity * fix: bug UTC time. * ci: try to tidy before testing * ci: touch result file * ci: use echo to create new file * fix: try to skip test in ci * fix: remove os.Exit * fix: handle error * feat: add todo note * fix: Cannot run nodesale test because qtx is not initiated. * fix: 50% chance public key compare incorrectly. * fix: more consistent SQL * fix: sanity refactor. * fix: remove unused code. * fix: move last_block_default to config file. * fix: minor mistakes. * fix: * fix: refactor * fix: refactor * fix: delegate tx hash not record into db. * refactor: prepare for moving integration tests. * refactor: convert to unit tests. * fix: change to using input values since output values deducted fee. * feat: add extra unit test. * fix: wrong timestamp format. * fix: handle block timeout = 0 --------- Co-authored-by: Gaze <gazenw@users.noreply.github.com>
56 lines
1.1 KiB
Go
56 lines
1.1 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.26.0
|
|
|
|
package gen
|
|
|
|
import (
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
type Block struct {
|
|
BlockHeight int64
|
|
BlockHash string
|
|
Module string
|
|
}
|
|
|
|
type Event struct {
|
|
TxHash string
|
|
BlockHeight int64
|
|
TxIndex int32
|
|
WalletAddress string
|
|
Valid bool
|
|
Action int32
|
|
RawMessage []byte
|
|
ParsedMessage []byte
|
|
BlockTimestamp pgtype.Timestamp
|
|
BlockHash string
|
|
Metadata []byte
|
|
Reason string
|
|
}
|
|
|
|
type Node struct {
|
|
SaleBlock int64
|
|
SaleTxIndex int32
|
|
NodeID int32
|
|
TierIndex int32
|
|
DelegatedTo string
|
|
OwnerPublicKey string
|
|
PurchaseTxHash string
|
|
DelegateTxHash string
|
|
}
|
|
|
|
type NodeSale struct {
|
|
BlockHeight int64
|
|
TxIndex int32
|
|
Name string
|
|
StartsAt pgtype.Timestamp
|
|
EndsAt pgtype.Timestamp
|
|
Tiers [][]byte
|
|
SellerPublicKey string
|
|
MaxPerAddress int32
|
|
DeployTxHash string
|
|
MaxDiscountPercentage int32
|
|
SellerWallet string
|
|
}
|