mirror of
https://github.com/alexgo-io/gaze-indexer.git
synced 2026-01-12 08:34:28 +08:00
* feat: implement pagination on get balance, get holders * feat: paginate get transactions * fix: remove debug * feat: implement pagination in get utxos * feat: sort response in get holders * feat: cap batch query * feat: add default limits to all endpoints * chore: rename endpoint funcs * fix: parse rune name spacers * feat(runes): add get token list api * fix(runes): use distinct to get token list * feat: remove unused code * fix: count holders distinct pkscript * feat: implement additional scopes * chore: comments * feat: implement search * refactor: switch to use paginationRequest * refactor: rename get token list to get tokens * fix: count total holders by rune ids * fix: rename file * fix: rename minting to ongoing * fix: get ongoing check rune is mintable * chore: disable gosec g115 * fix: pr --------- 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.27.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
|
|
}
|