Documentation ¶
Index ¶
- Constants
- Variables
- func DisableLog()
- func NeedsBabylonUpgradeAccount(a *model.Account, p *rpc.Params) bool
- func NeedsBabylonUpgradeContract(c *model.Contract, p *rpc.Params) bool
- func UpgradeToBabylon(c *model.Contract, p *rpc.Params, a *model.Account) error
- func UpgradeToBabylonAccount(a *model.Account, p *rpc.Params)
- func UseLogger(logger logpkg.Logger)
- type BlockProgressLogger
- type Builder
- func (b *Builder) AccountByAddress(addr tezos.Address) (*model.Account, bool)
- func (b *Builder) AccountById(id model.AccountID) (*model.Account, bool)
- func (b *Builder) Accounts() map[model.AccountID]*model.Account
- func (b *Builder) ActivateBaker(bkr *model.Baker)
- func (b *Builder) AppendActivationOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendAirdropOp(ctx context.Context, acc *model.Account, amount int64, p int) error
- func (b *Builder) AppendBallotOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendBigmapMigrationOp(ctx context.Context, acc *model.Account, c *model.Contract, p int, ...) error
- func (b *Builder) AppendContractMigrationOp(ctx context.Context, acc *model.Account, c *model.Contract, p int) error
- func (b *Builder) AppendDelegationOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendDepositsLimitOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendDoubleBakingOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendDoubleEndorsingOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendDrainDelegateOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendEndorsementOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendFinalizeUnstakeOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendImplicitBlockOps(ctx context.Context) error
- func (b *Builder) AppendImplicitEvents(ctx context.Context) error
- func (b *Builder) AppendImplicitUnstakeOp(ctx context.Context, src *model.Account, bkr *model.Baker, flows []*model.Flow, ...) error
- func (b *Builder) AppendInternalDelegationOp(ctx context.Context, origsrc *model.Account, origbkr *model.Baker, ...) error
- func (b *Builder) AppendInternalOriginationOp(ctx context.Context, origsrc *model.Account, origbkr *model.Baker, ...) error
- func (b *Builder) AppendInternalTransactionOp(ctx context.Context, origsrc *model.Account, origbkr *model.Baker, ...) error
- func (b *Builder) AppendInvoiceOp(ctx context.Context, acc *model.Account, amount int64, p int) error
- func (b *Builder) AppendMagicBakerRegistrationOp(ctx context.Context, bkr *model.Baker, p int) error
- func (b *Builder) AppendNormalTransactionOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendOriginationOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendProposalOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendRegisterConstantOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendRegularBlockOps(ctx context.Context, rollback bool) error
- func (b *Builder) AppendRevealOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendRollupOriginationOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendRollupTransactionOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendSeedNonceOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendSetDelegateParametersOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendSmartRollupOriginationOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendSmartRollupTransactionOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendStakeOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendStorageLimitOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendTransactionOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendTransferTicketOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendTxRollupOriginationOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendTxRollupTransactionOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendUnstakeOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendUpdateConsensusKeyOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AppendVdfRevelationOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
- func (b *Builder) AuditAccountDatabase(ctx context.Context, nofail bool) error
- func (b *Builder) AuditState(ctx context.Context, offset int64) error
- func (b *Builder) BakerByAddress(addr tezos.Address) (*model.Baker, bool)
- func (b *Builder) BakerById(id model.AccountID) (*model.Baker, bool)
- func (b *Builder) Bakers() map[model.AccountID]*model.Baker
- func (b *Builder) Build(ctx context.Context, tz *rpc.Bundle) (*model.Block, error)
- func (b *Builder) BuildGenesisBlock(ctx context.Context) (*model.Block, error)
- func (b *Builder) BuildReorg(ctx context.Context, tz *rpc.Bundle, parent *model.Block) (*model.Block, error)
- func (b *Builder) CacheStats() map[string]interface{}
- func (b *Builder) Clean()
- func (b *Builder) CleanReorg()
- func (b *Builder) ClearCache()
- func (b *Builder) Constants() micheline.ConstantDict
- func (b *Builder) ContractById(id model.AccountID) (*model.Contract, bool)
- func (b *Builder) Contracts() map[model.AccountID]*model.Contract
- func (b *Builder) DeactivateBaker(bkr *model.Baker)
- func (b *Builder) Decorate(ctx context.Context, rollback bool) error
- func (b *Builder) DumpState()
- func (b *Builder) FixOriginationBug(ctx context.Context, params *rpc.Params) error
- func (b *Builder) FixOxfordMigration(ctx context.Context) error
- func (b *Builder) Init(ctx context.Context, tip *model.ChainTip, c *rpc.Client) error
- func (b *Builder) InitAccounts(ctx context.Context) error
- func (b *Builder) IsLightMode() bool
- func (b *Builder) LoadAccountByAccountId(ctx context.Context, id model.AccountID) (*model.Account, error)
- func (b *Builder) LoadAccountByAddress(ctx context.Context, addr tezos.Address) (*model.Account, error)
- func (b *Builder) LoadConstants(ctx context.Context) error
- func (b *Builder) LoadContractByAccountId(ctx context.Context, id model.AccountID) (*model.Contract, error)
- func (b *Builder) LoadOfflineRightsHolders(ctx context.Context) error
- func (b *Builder) MigrateAdaptiveIssuance(ctx context.Context, params *rpc.Params) error
- func (b *Builder) MigrateAthens(ctx context.Context, oldparams, params *rpc.Params) error
- func (b *Builder) MigrateBabylon(ctx context.Context, oldparams, nextparams *rpc.Params) error
- func (b *Builder) MigrateCarthage(ctx context.Context, oldparams, params *rpc.Params) error
- func (b *Builder) MigrateGranada(ctx context.Context, oldparams, params *rpc.Params) error
- func (b *Builder) MigrateIthaca(ctx context.Context, oldparams, params *rpc.Params) error
- func (b *Builder) MigrateLima(ctx context.Context, oldparams, params *rpc.Params) error
- func (b *Builder) MigrateMumbai(ctx context.Context, oldparams, params *rpc.Params) error
- func (b *Builder) MigrateOxford(ctx context.Context, oldparams, params *rpc.Params) error
- func (b *Builder) MigrateProtocol(ctx context.Context, prevparams, nextparams *rpc.Params) error
- func (b *Builder) NewActivationFlow(acc *model.Account, aop *rpc.Activation, id model.OpRef) []*model.Flow
- func (b *Builder) NewAirdropFlow(acc *model.Account, amount int64, id model.OpRef) *model.Flow
- func (b *Builder) NewConstantRegistrationFlows(src *model.Account, srcbkr *model.Baker, fees, bal rpc.BalanceUpdates, ...) []*model.Flow
- func (b *Builder) NewDelegationFlows(src *model.Account, newbkr, oldbkr *model.Baker, fees, upd rpc.BalanceUpdates, ...) []*model.Flow
- func (b *Builder) NewDrainDelegateFlows(src, dst *model.Account, dbkr *model.Baker, bal rpc.BalanceUpdates, ...) (int64, int64, []*model.Flow)
- func (b *Builder) NewEndorserFlows(acc *model.Account, bal rpc.BalanceUpdates, id model.OpRef) []*model.Flow
- func (b *Builder) NewFeeFlows(src *model.Account, fees rpc.BalanceUpdates, id model.OpRef) ([]*model.Flow, int64)
- func (b *Builder) NewFinalizeUnstakeFlows(src *model.Account, bkr, auxbkr *model.Baker, fees, upd rpc.BalanceUpdates, ...) []*model.Flow
- func (b *Builder) NewImplicitFlows() []*model.Flow
- func (b *Builder) NewIncreasePaidStorageFlows(src *model.Account, srcbkr *model.Baker, fees, bal rpc.BalanceUpdates, ...) []*model.Flow
- func (b *Builder) NewInternalOriginationFlows(origsrc, src, dst *model.Account, origbkr, srcbkr, newbkr *model.Baker, ...) []*model.Flow
- func (b *Builder) NewInternalTransactionFlows(origsrc, src, dst *model.Account, origbkr, srcbkr, dstbkr *model.Baker, ...) []*model.Flow
- func (b *Builder) NewInvoiceFlow(acc *model.Account, amount int64, id model.OpRef) *model.Flow
- func (b *Builder) NewOriginationFlows(src, dst *model.Account, srcbkr, newbkr *model.Baker, ...) []*model.Flow
- func (b *Builder) NewPenaltyFlows(accuser, offender *model.Baker, bal rpc.BalanceUpdates, id model.OpRef) []*model.Flow
- func (b *Builder) NewRevealFlows(src *model.Account, bkr *model.Baker, fees rpc.BalanceUpdates, id model.OpRef) []*model.Flow
- func (b *Builder) NewRollupOriginationFlows(src, dst *model.Account, srcbkr *model.Baker, fees, bal rpc.BalanceUpdates, ...) []*model.Flow
- func (b *Builder) NewRollupTransactionFlows(src, dst, loser, winner, recv *model.Account, sbkr, lbkr, wbkr *model.Baker, ...) []*model.Flow
- func (b *Builder) NewSeedNonceFlows(bal rpc.BalanceUpdates, id model.OpRef) []*model.Flow
- func (b *Builder) NewSetDepositsLimitFlows(src *model.Account, fees rpc.BalanceUpdates, id model.OpRef) []*model.Flow
- func (b *Builder) NewStakeFlows(src *model.Account, bkr *model.Baker, fees, upd rpc.BalanceUpdates, ...) []*model.Flow
- func (b *Builder) NewSubsidyFlow(acc *model.Account, amount int64, id model.OpRef) *model.Flow
- func (b *Builder) NewTransactionFlows(src, dst *model.Account, sbkr, dbkr *model.Baker, ...) []*model.Flow
- func (b *Builder) NewTransferTicketFlows(src *model.Account, sbkr *model.Baker, fees, bal rpc.BalanceUpdates, ...) []*model.Flow
- func (b *Builder) NewUnstakeFlows(src *model.Account, bkr *model.Baker, fees, upd rpc.BalanceUpdates, ...) []*model.Flow
- func (b *Builder) NewUpdateConsensusKeyFlows(src *model.Account, fees rpc.BalanceUpdates, id model.OpRef) []*model.Flow
- func (b *Builder) OnDeactivate(ctx context.Context, rollback bool) error
- func (b *Builder) OnUpgrade(ctx context.Context, rollback bool) error
- func (b *Builder) Params(height int64) *rpc.Params
- func (b *Builder) PatchBigmapEvents(ctx context.Context, diff micheline.BigmapEvents, addr tezos.Address, ...) (micheline.BigmapEvents, error)
- func (b *Builder) Purge()
- func (b *Builder) RebuildFutureRightsAndIncome(ctx context.Context, params *rpc.Params) error
- func (b *Builder) RebuildIthacaSnapshotsRightsAndIncome(ctx context.Context, params *rpc.Params) error
- func (b *Builder) RegisterBaker(acc *model.Account, enable bool) *model.Baker
- func (b *Builder) RollbackStats(ctx context.Context) error
- func (b *Builder) RunBabylonAirdrop(ctx context.Context, params *rpc.Params) (int, error)
- func (b *Builder) RunBabylonUpgrade(ctx context.Context, params *rpc.Params, n int) error
- func (b *Builder) Sched() *task.Scheduler
- func (b *Builder) Table(key string) (*pack.Table, error)
- func (b *Builder) UnregisterBaker(baker *model.Baker)
- func (b *Builder) UpdateStats(ctx context.Context) error
- type Crawler
- func (c *Crawler) BlockByHeight(ctx context.Context, height int64) (*model.Block, error)
- func (c *Crawler) BlockHeightFromTime(ctx context.Context, tm time.Time) int64
- func (c *Crawler) CacheStats() map[string]interface{}
- func (c *Crawler) ChainByHeight(ctx context.Context, height int64) (*model.Chain, error)
- func (c *Crawler) Height() int64
- func (c *Crawler) Init(ctx context.Context, mode Mode) error
- func (c *Crawler) IsDegraded() bool
- func (c *Crawler) IsHealthy() bool
- func (c *Crawler) MaybeSnapshot(ctx context.Context) error
- func (c *Crawler) NextBlockTime() time.Time
- func (c *Crawler) Params() *rpc.Params
- func (c *Crawler) ParamsByCycle(cycle int64) *rpc.Params
- func (c *Crawler) ParamsByHeight(height int64) *rpc.Params
- func (c *Crawler) ParamsByProtocol(proto tezos.ProtocolHash) *rpc.Params
- func (c *Crawler) Rollback(ctx context.Context, height int64, ignoreErrors bool) error
- func (c *Crawler) SnapshotRequest(ctx context.Context) error
- func (c *Crawler) Start()
- func (c *Crawler) Status() CrawlerStatus
- func (c *Crawler) Stop(ctx context.Context)
- func (c *Crawler) SupplyByHeight(ctx context.Context, height int64) (*model.Supply, error)
- func (c *Crawler) Table(key string) (*pack.Table, error)
- func (c *Crawler) Time() time.Time
- func (c *Crawler) Tip() *model.ChainTip
- type CrawlerConfig
- type CrawlerStatus
- type Growth
- type IndexTip
- type Indexer
- func (m *Indexer) BakerPerformance(ctx context.Context, id model.AccountID, fromCycle, toCycle int64) ([3]int64, error)
- func (m *Indexer) BestHeight() int64
- func (m *Indexer) BlockByHash(ctx context.Context, h tezos.BlockHash, from, to int64) (*model.Block, error)
- func (m *Indexer) BlockByHeight(ctx context.Context, height int64) (*model.Block, error)
- func (m *Indexer) BlockByID(ctx context.Context, id uint64) (*model.Block, error)
- func (m *Indexer) BlockByParentId(ctx context.Context, id uint64) (*model.Block, error)
- func (m *Indexer) BlockHashByHeight(ctx context.Context, height int64) (tezos.BlockHash, error)
- func (m *Indexer) BlockHashById(ctx context.Context, id uint64) (tezos.BlockHash, error)
- func (m *Indexer) CacheStats() map[string]interface{}
- func (m *Indexer) ChainByHeight(ctx context.Context, height int64) (*model.Chain, error)
- func (m *Indexer) Close() error
- func (m *Indexer) ConnectBlock(ctx context.Context, block *model.Block, builder model.BlockBuilder) error
- func (m *Indexer) ConnectProtocol(ctx context.Context, next, prev *rpc.Params) error
- func (m *Indexer) CycleByNum(ctx context.Context, num int64) (*model.Cycle, error)
- func (m *Indexer) DeleteBlock(ctx context.Context, tz *rpc.Bundle) error
- func (m *Indexer) DisconnectBlock(ctx context.Context, block *model.Block, builder model.BlockBuilder, ...) error
- func (m *Indexer) ElectionByHeight(ctx context.Context, height int64) (*model.Election, error)
- func (m *Indexer) ElectionById(ctx context.Context, id model.ElectionID) (*model.Election, error)
- func (m *Indexer) Finalize(ctx context.Context) error
- func (m *Indexer) FindActivatedAccount(ctx context.Context, addr tezos.Address) (*model.Account, error)
- func (m *Indexer) FindLastCall(ctx context.Context, acc model.AccountID, from, to int64) (*model.Op, error)
- func (m *Indexer) FindLatestDelegation(ctx context.Context, id model.AccountID, height int64) (*model.Op, error)
- func (m *Indexer) FindLatestFinalizeUnstake(ctx context.Context, id model.AccountID, height int64) (*model.Op, error)
- func (m *Indexer) FindLatestUnstake(ctx context.Context, id model.AccountID, height int64) (*model.Op, error)
- func (m *Indexer) FindOrigination(ctx context.Context, id model.AccountID, height int64) (*model.Op, error)
- func (m *Indexer) FindPreviousStorage(ctx context.Context, id model.AccountID, since, until int64) (*model.Storage, error)
- func (m *Indexer) Flush(ctx context.Context) error
- func (m *Indexer) FlushJournals(ctx context.Context) error
- func (m *Indexer) GC(ctx context.Context, ratio float64) error
- func (m *Indexer) GrowthByDuration(ctx context.Context, to time.Time, d time.Duration) (*Growth, error)
- func (m *Indexer) Index(key string) (model.BlockIndexer, error)
- func (m *Indexer) Init(ctx context.Context, tip *model.ChainTip, mode Mode) error
- func (m *Indexer) IsLightMode() bool
- func (m *Indexer) ListAccountOps(ctx context.Context, r ListRequest) ([]*model.Op, error)
- func (m *Indexer) ListAccountOpsCollapsed(ctx context.Context, r ListRequest) ([]*model.Op, error)
- func (m *Indexer) ListBakerEndorsements(ctx context.Context, r ListRequest) ([]*model.Op, error)
- func (m *Indexer) ListBakers(ctx context.Context, activeOnly bool) ([]*model.Baker, error)
- func (m *Indexer) ListBallots(ctx context.Context, r ListRequest) ([]*model.Ballot, error)
- func (m *Indexer) ListBigmapKeys(ctx context.Context, r ListRequest) ([]*model.BigmapValue, error)
- func (m *Indexer) ListBigmapUpdates(ctx context.Context, r ListRequest) ([]model.BigmapUpdate, error)
- func (m *Indexer) ListBlockEndorsements(ctx context.Context, r ListRequest) ([]*model.Endorsement, error)
- func (m *Indexer) ListBlockOps(ctx context.Context, r ListRequest) ([]*model.Op, error)
- func (m *Indexer) ListBlockRights(ctx context.Context, height int64, typ tezos.RightType) ([]model.BaseRight, error)
- func (m *Indexer) ListContractBigmaps(ctx context.Context, acc model.AccountID, height int64) ([]*model.BigmapAlloc, error)
- func (m *Indexer) ListContractCalls(ctx context.Context, r ListRequest) ([]*model.Op, error)
- func (m *Indexer) ListContracts(ctx context.Context, r ListRequest) ([]*model.Contract, error)
- func (m *Indexer) ListFrozenUnstakeRequests(ctx context.Context, baker model.AccountID, cycle int64, p *rpc.Params) ([]*model.Op, error)
- func (m *Indexer) ListHistoricBigmapKeys(ctx context.Context, r ListRequest) ([]*model.BigmapValue, error)
- func (m *Indexer) ListOpEvents(ctx context.Context, id uint64, sndr model.AccountID) ([]*model.Event, error)
- func (m *Indexer) ListVoters(ctx context.Context, r ListRequest) ([]*model.Voter, error)
- func (m *Indexer) LookupAccount(ctx context.Context, addr tezos.Address) (*model.Account, error)
- func (m *Indexer) LookupAccountById(ctx context.Context, id model.AccountID) (*model.Account, error)
- func (m *Indexer) LookupAccountId(ctx context.Context, addr tezos.Address) (model.AccountID, error)
- func (m *Indexer) LookupAccountsById(ctx context.Context, ids []uint64) ([]*model.Account, error)
- func (m *Indexer) LookupAddress(ctx context.Context, id model.AccountID) tezos.Address
- func (m *Indexer) LookupBaker(ctx context.Context, addr tezos.Address) (*model.Baker, error)
- func (m *Indexer) LookupBakerId(ctx context.Context, id model.AccountID) (*model.Baker, error)
- func (m *Indexer) LookupBigmapAlloc(ctx context.Context, id int64) (*model.BigmapAlloc, error)
- func (m *Indexer) LookupBigmapType(ctx context.Context, id int64) (*model.BigmapAlloc, error)
- func (m *Indexer) LookupBlock(ctx context.Context, blockIdent string) (*model.Block, error)
- func (m *Indexer) LookupBlockHash(ctx context.Context, height int64) tezos.BlockHash
- func (m *Indexer) LookupBlockHeightFromTime(ctx context.Context, tm time.Time) int64
- func (m *Indexer) LookupBlockId(ctx context.Context, blockIdent string) (tezos.BlockHash, int64, error)
- func (m *Indexer) LookupBlockTime(ctx context.Context, height int64) time.Time
- func (m *Indexer) LookupBlockTimeMs(ctx context.Context, height int64) int64
- func (m *Indexer) LookupBlockTimePtr(ctx context.Context, height int64) *time.Time
- func (m *Indexer) LookupConstant(ctx context.Context, hash tezos.ExprHash) (*model.Constant, error)
- func (m *Indexer) LookupContract(ctx context.Context, addr tezos.Address) (*model.Contract, error)
- func (m *Indexer) LookupContractId(ctx context.Context, id model.AccountID) (*model.Contract, error)
- func (m *Indexer) LookupContractType(ctx context.Context, id model.AccountID) (micheline.Type, micheline.Type, uint64, error)
- func (m *Indexer) LookupEndorsement(ctx context.Context, opIdent string) ([]*model.Op, error)
- func (m *Indexer) LookupLastBakedBlock(ctx context.Context, bkr *model.Baker, height int64) (int64, error)
- func (m *Indexer) LookupLastEndorsedBlock(ctx context.Context, bkr *model.Baker, height int64) (int64, error)
- func (m *Indexer) LookupOp(ctx context.Context, opIdent string, r ListRequest) ([]*model.Op, error)
- func (m *Indexer) LookupOpHash(ctx context.Context, opid model.OpID) tezos.OpHash
- func (m *Indexer) LookupOpIds(ctx context.Context, ids []uint64) ([]*model.Op, error)
- func (m *Indexer) LookupProposal(ctx context.Context, proto tezos.ProtocolHash) (*model.Proposal, error)
- func (m *Indexer) LookupProposalHash(ctx context.Context, id model.ProposalID) tezos.ProtocolHash
- func (m *Indexer) LookupProposalIds(ctx context.Context, ids []uint64) ([]*model.Proposal, error)
- func (m *Indexer) LookupRanking(ctx context.Context, id model.AccountID) (*model.AccountRank, bool)
- func (m *Indexer) LookupStorage(ctx context.Context, id model.AccountID, h uint64, since, until int64) (*model.Storage, error)
- func (m *Indexer) LookupTicket(ctx context.Context, id model.TicketID) (*model.Ticket, error)
- func (m *Indexer) NextRights(ctx context.Context, a model.AccountID, height int64) (int64, int64)
- func (m *Indexer) OnTaskComplete(ctx context.Context, res *task.TaskResult) error
- func (m *Indexer) ParamsByCycle(cycle int64) *rpc.Params
- func (m *Indexer) ParamsByDeployment(v int) (*rpc.Params, error)
- func (m *Indexer) ParamsByHeight(height int64) *rpc.Params
- func (m *Indexer) ParamsByProtocol(proto tezos.ProtocolHash) (*rpc.Params, error)
- func (m *Indexer) ProposalsByElection(ctx context.Context, id model.ElectionID) ([]*model.Proposal, error)
- func (m *Indexer) PurgeCaches()
- func (m *Indexer) Sched() *task.Scheduler
- func (m *Indexer) SumUnfrozenUnstake(ctx context.Context, id model.AccountID, height, cycle int64, p *rpc.Params) (int64, error)
- func (m *Indexer) SupplyByHeight(ctx context.Context, height int64) (*model.Supply, error)
- func (m *Indexer) SupplyByTime(ctx context.Context, t time.Time) (*model.Supply, error)
- func (m *Indexer) Table(key string) (*pack.Table, error)
- func (m *Indexer) TableStats() []pack.TableStats
- func (m *Indexer) TopRich(ctx context.Context, n, o int) ([]*model.AccountRank, error)
- func (m *Indexer) TopTraffic(ctx context.Context, n, o int) ([]*model.AccountRank, error)
- func (m *Indexer) TopVolume(ctx context.Context, n, o int) ([]*model.AccountRank, error)
- func (m *Indexer) VotesByElection(ctx context.Context, id model.ElectionID) ([]*model.Vote, error)
- type IndexerConfig
- type ListRequest
- type Mode
- type Registry
- func (r *Registry) GetAllParams() []*rpc.Params
- func (r *Registry) GetParams(h tezos.ProtocolHash) (*rpc.Params, error)
- func (r *Registry) GetParamsByCycle(cycle int64) *rpc.Params
- func (r *Registry) GetParamsByDeployment(v int) (*rpc.Params, error)
- func (r *Registry) GetParamsByHeight(height int64) *rpc.Params
- func (r *Registry) GetParamsLatest() *rpc.Params
- func (r *Registry) Register(p *rpc.Params)
- type ReorgDelayFilter
- type ReportTip
- type SnapshotConfig
- type State
Constants ¶
const ( MONITOR_DISABLE = true MONITOR_KEEP = false )
const (
StateDBName = "state.db"
)
Variables ¶
var ( // errNoChainTip is an error that indicates a requested entry does // not exist in the database. ErrNoChainTip = errors.New("chain tip not found") // ErrNoTable is an error that indicates a requested table does // not exist in the database. ErrNoTable = errors.New("no such table") // ErrNoIndex is an error that indicates a requested indexer does // not exist. ErrNoIndex = errors.New("no such index") // ErrNoDb is an error that indicates a requested database does // not exist in the database. ErrNoDb = errors.New("no such database") // ErrNoData is an error that indicates a requested map or cache does // not exist. ErrNoData = errors.New("no data") )
var ( ErrGapDetected = errors.New("block gap detected") ErrReorgDetected = errors.New("block reorg detected") )
var (
MinLogInterval time.Duration = 10 * time.Second
)
log is a logger that is initialized with no output filters. This means the package will not perform any logging by default until the caller requests it.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until either UseLogger or SetLogWriter are called.
func NeedsBabylonUpgradeContract ¶
upgrade smart contracts from before babylon - patch code and storage - only applies to mainnet contracts originated before babylon - don't upgrade when query height < babylon to return old params/storage format
func UpgradeToBabylon ¶
Types ¶
type BlockProgressLogger ¶
BlockProgressLogger provides periodic logging for other services in order to show users progress of certain "actions" involving some or all current blocks. Ex: syncing to best chain, indexing all blocks, etc.
func NewBlockProgressLogger ¶
func NewBlockProgressLogger(msg string) *BlockProgressLogger
NewBlockProgressLogger returns a new block progress logger.
func (*BlockProgressLogger) LogBlockHeight ¶
func (b *BlockProgressLogger) LogBlockHeight(block *model.Block, qlen int, state State, d time.Duration, flush bool)
LogBlockHeight logs a new block height as an information message to show progress to the user. In order to prevent spam, it limits logging to one message every 10 seconds with duration and totals included.
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) AccountByAddress ¶
func (*Builder) AccountById ¶
func (*Builder) ActivateBaker ¶
func (*Builder) AppendActivationOp ¶
func (*Builder) AppendAirdropOp ¶
func (*Builder) AppendBallotOp ¶
func (b *Builder) AppendBallotOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
this is a generic op only, details are in governance table
func (*Builder) AppendBigmapMigrationOp ¶
func (*Builder) AppendContractMigrationOp ¶
func (*Builder) AppendDelegationOp ¶
func (b *Builder) AppendDelegationOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
Notes - manager operation, extends grace period - delegations may or may not pay a fee, so BalanceUpdates may be empty - early delegations did neither pay nor consume gas - status is either `applied` or `failed` - failed delegations may still pay fees, but don't consume gas - self-delegation (src == ndlg) represents a new/renewed baker registration - zero-delegation (ndlg == null) represents a delegation withdraw
Start conditions when building flows NewBaker OldBaker ----------------------------------------------------------------------- 1. new baker registration w/ fresh acc - - 1. new baker registration w/ delegated acc - x 2. baker re-registration self self 3. new delegation x - 4. redelegation x y 5. failed redelegation x x 6. delegation withdrawal - x 7. failed delegation withdrawal - -
func (*Builder) AppendDepositsLimitOp ¶
func (*Builder) AppendDoubleBakingOp ¶
func (*Builder) AppendDoubleEndorsingOp ¶
func (*Builder) AppendDrainDelegateOp ¶
func (*Builder) AppendEndorsementOp ¶
func (*Builder) AppendFinalizeUnstakeOp ¶
func (*Builder) AppendImplicitBlockOps ¶
generate synthetic ops from block implicit ops (Granada+) Originations (on migration) Transactions / Subsidy
func (*Builder) AppendImplicitEvents ¶
generate synthetic ops from flows for OpTypeInvoice OpTypeBake OpTypeUnfreeze OpTypeSeedSlash OpTypeBonus - reward to Ithaca proposer when <> baker OpTypeDeposit - Ithaca deposit event OpTypeReward - Ithaca endorsing reward
func (*Builder) AppendImplicitUnstakeOp ¶
func (b *Builder) AppendImplicitUnstakeOp(ctx context.Context, src *model.Account, bkr *model.Baker, flows []*model.Flow, id model.OpRef, rollback bool) error
Implicit unstake can happen as part of (internal) re-delegations. We can only detect this by looking at flows, so we're re-using the already populated delegation op and decoded flows here.
func (*Builder) AppendInternalDelegationOp ¶
func (*Builder) AppendInternalOriginationOp ¶
func (*Builder) AppendInternalTransactionOp ¶
func (*Builder) AppendInvoiceOp ¶
func (*Builder) AppendMagicBakerRegistrationOp ¶
func (*Builder) AppendNormalTransactionOp ¶
func (*Builder) AppendOriginationOp ¶
func (b *Builder) AppendOriginationOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
NOTE: does not extend grace period although it's a manager operation - burns a fee (optional, not used early on) - can delegate funds - only originated accounts (KT1) can delegate - only implicit accounts (tz1) can be delegates - by default originated accounts are not delegatable (but initial delegate can be set)
func (*Builder) AppendProposalOp ¶
func (b *Builder) AppendProposalOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
this is a generic op only, details are in governance table
func (*Builder) AppendRegisterConstantOp ¶
func (*Builder) AppendRegularBlockOps ¶
func (*Builder) AppendRevealOp ¶
func (b *Builder) AppendRevealOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
manager operation, extends grace period
func (*Builder) AppendRollupOriginationOp ¶
func (*Builder) AppendRollupTransactionOp ¶
func (*Builder) AppendSeedNonceOp ¶
func (*Builder) AppendSetDelegateParametersOp ¶
func (*Builder) AppendSmartRollupOriginationOp ¶
func (*Builder) AppendSmartRollupTransactionOp ¶
func (*Builder) AppendStakeOp ¶
func (*Builder) AppendStorageLimitOp ¶
func (*Builder) AppendTransactionOp ¶
func (b *Builder) AppendTransactionOp(ctx context.Context, oh *rpc.Operation, id model.OpRef, rollback bool) error
can implicitly burn a fee when new account is created NOTE: this seems to not extend grace period
func (*Builder) AppendTransferTicketOp ¶
func (*Builder) AppendTxRollupOriginationOp ¶
func (*Builder) AppendTxRollupTransactionOp ¶
func (*Builder) AppendUnstakeOp ¶
func (*Builder) AppendUpdateConsensusKeyOp ¶
func (*Builder) AppendVdfRevelationOp ¶
func (*Builder) AuditAccountDatabase ¶
func (*Builder) BakerByAddress ¶
func (*Builder) BuildGenesisBlock ¶
func (*Builder) BuildReorg ¶
func (b *Builder) BuildReorg(ctx context.Context, tz *rpc.Bundle, parent *model.Block) (*model.Block, error)
during reorg rpc and model blocks are already loaded, parent data is ignored
func (*Builder) CacheStats ¶
func (*Builder) CleanReorg ¶
func (b *Builder) CleanReorg()
func (*Builder) ClearCache ¶
func (b *Builder) ClearCache()
func (*Builder) Constants ¶
func (b *Builder) Constants() micheline.ConstantDict
func (*Builder) ContractById ¶
func (*Builder) DeactivateBaker ¶
func (*Builder) FixOriginationBug ¶
v002 fixed an 'origination bug'
Changelog published on Slack at 20-07-2018 15:45:31 (block 26,579 cycle 6) https://log.tezos.link/index.php?date=20-07-2018
- Fixed a bug in delegations, where contracts could delegate to unregistered delegates. This will be enforced from now on, and the existing unregistered delegates will be automatically registered (except for two empty addresses).
Note: we register self-delegation on origination bakers right away, but track them explicitly (account.baker_id == 0 and account.is_baker = true). During migration we check if an active delegation exists and upgrade status to full baker.
Correctly registered bakers (via self delegation) are not affected since their baker_id is set.
func (*Builder) FixOxfordMigration ¶
temp fix for light-mode migration issue
func (*Builder) IsLightMode ¶
func (*Builder) LoadAccountByAccountId ¶
func (*Builder) LoadAccountByAddress ¶
func (*Builder) LoadContractByAccountId ¶
func (*Builder) LoadOfflineRightsHolders ¶
func (*Builder) MigrateAdaptiveIssuance ¶
func (*Builder) MigrateAthens ¶
insert invoice
func (*Builder) MigrateBabylon ¶
func (*Builder) MigrateCarthage ¶
func (*Builder) MigrateGranada ¶
func (*Builder) MigrateIthaca ¶
func (*Builder) MigrateLima ¶
func (*Builder) MigrateMumbai ¶
func (*Builder) MigrateOxford ¶
func (*Builder) MigrateProtocol ¶
func (*Builder) NewActivationFlow ¶
func (*Builder) NewAirdropFlow ¶
func (*Builder) NewConstantRegistrationFlows ¶
func (*Builder) NewDelegationFlows ¶
func (b *Builder) NewDelegationFlows(src *model.Account, newbkr, oldbkr *model.Baker, fees, upd rpc.BalanceUpdates, id model.OpRef) []*model.Flow
used for internal an non-internal delegations
func (*Builder) NewDrainDelegateFlows ¶
func (b *Builder) NewDrainDelegateFlows(src, dst *model.Account, dbkr *model.Baker, bal rpc.BalanceUpdates, id model.OpRef) (int64, int64, []*model.Flow)
- sends amount from drained baker to destination - sends tip from drained baker to block producer - pays no fee - create delegation flow for destination baker
func (*Builder) NewEndorserFlows ¶
func (b *Builder) NewEndorserFlows(acc *model.Account, bal rpc.BalanceUpdates, id model.OpRef) []*model.Flow
Note: during chain bootstrap there used to be blocks without rewards and no balance updates were issued to endorsers
Note: Ithaca+ balance updates are empty since deposit/reward is paid before cycle start (technically at cycle end)
func (*Builder) NewFeeFlows ¶
func (b *Builder) NewFeeFlows(src *model.Account, fees rpc.BalanceUpdates, id model.OpRef) ([]*model.Flow, int64)
Fees for manager operations (optional, i.e. sender may set to zero, for batch ops fees may also be paid by any op in batch)
func (*Builder) NewFinalizeUnstakeFlows ¶
func (*Builder) NewImplicitFlows ¶
pre-Ithaca - baker pays deposit and receives block rewards+fees - on last block in cycle, deposits, rewards and fees from cycle-N are unfrozen
post-Ithaca - baker reward is paid directly (to proposer and bonus to baker) - baker fee is paid directly via accumulator - all bakers pay deposit at migration and at end of cycle - endorsing reward is minted and paid at end of cycle or burned for low participation
post-Oxford - each reward flow may be split into two flows (4 balance updates), one for the baker and another for the staker pool - only bake reward, bake bonus and endorse reward are shared with stakers
func (*Builder) NewIncreasePaidStorageFlows ¶
func (*Builder) NewInternalOriginationFlows ¶
func (*Builder) NewInternalTransactionFlows ¶
func (b *Builder) NewInternalTransactionFlows( origsrc, src, dst *model.Account, origbkr, srcbkr, dstbkr *model.Baker, srccon, dstcon *model.Contract, bal rpc.BalanceUpdates, block *model.Block, id model.OpRef, ) []*model.Flow
fees are already paid by outer tx burn is attributed to outer source
func (*Builder) NewInvoiceFlow ¶
func (*Builder) NewOriginationFlows ¶
func (*Builder) NewPenaltyFlows ¶
func (b *Builder) NewPenaltyFlows(accuser, offender *model.Baker, bal rpc.BalanceUpdates, id model.OpRef) []*model.Flow
works for double-bake, double-endorse, double-preendorse oxford+ penalty ops do not slash anymore
func (*Builder) NewRevealFlows ¶
func (*Builder) NewRollupOriginationFlows ¶
func (*Builder) NewRollupTransactionFlows ¶
func (*Builder) NewSeedNonceFlows ¶
injected by the baker only
func (*Builder) NewSetDepositsLimitFlows ¶
func (b *Builder) NewSetDepositsLimitFlows(src *model.Account, fees rpc.BalanceUpdates, id model.OpRef) []*model.Flow
sent by baker, so no delegation update required post-Ithaca only op, so no pre-Ithaca fee handling
func (*Builder) NewStakeFlows ¶
func (*Builder) NewSubsidyFlow ¶
func (*Builder) NewTransactionFlows ¶
func (*Builder) NewTransferTicketFlows ¶
func (*Builder) NewUnstakeFlows ¶
func (*Builder) NewUpdateConsensusKeyFlows ¶
func (b *Builder) NewUpdateConsensusKeyFlows(src *model.Account, fees rpc.BalanceUpdates, id model.OpRef) []*model.Flow
only fees are paid
func (*Builder) OnDeactivate ¶
func (*Builder) PatchBigmapEvents ¶
func (b *Builder) PatchBigmapEvents(ctx context.Context, diff micheline.BigmapEvents, addr tezos.Address, script *micheline.Script) (micheline.BigmapEvents, error)
Pre-Babylon Bigmaps do not have a bigmap id in alloc.
big_map_diffs in proto < v005 lack id and action. Also allocs are not explicit. In order to satisfy further processing logic we patch in an alloc when we see a new contract using a bigmap. Contracts before v005 can only own a single bigmap which makes life a bit easier. Note: on zeronet big_map is a regular map due to protocol bug
func (*Builder) RebuildFutureRightsAndIncome ¶
func (*Builder) RebuildIthacaSnapshotsRightsAndIncome ¶
func (*Builder) RegisterBaker ¶
func (*Builder) RunBabylonAirdrop ¶
v005 airdrops 1 mutez to unfunded manager accounts to avoid origination burn
func (*Builder) RunBabylonUpgrade ¶
func (*Builder) UnregisterBaker ¶
only called from rollback and bug fix code
type Crawler ¶
Crawler loads blocks from blockchain client via RPC and informs indexers to connect/disconnect blocks when chaintip changes. It also handles chain reorganizations and API calls.
func NewCrawler ¶
func NewCrawler(cfg CrawlerConfig) *Crawler
func (*Crawler) BlockByHeight ¶
func (*Crawler) BlockHeightFromTime ¶
func (*Crawler) CacheStats ¶
func (*Crawler) ChainByHeight ¶
func (*Crawler) IsDegraded ¶
func (*Crawler) NextBlockTime ¶
func (*Crawler) ParamsByProtocol ¶
func (c *Crawler) ParamsByProtocol(proto tezos.ProtocolHash) *rpc.Params
func (*Crawler) Status ¶
func (c *Crawler) Status() CrawlerStatus
func (*Crawler) SupplyByHeight ¶
type CrawlerConfig ¶
type CrawlerStatus ¶
type CrawlerStatus struct { Mode Mode `json:"mode"` Status State `json:"status"` Blocks int64 `json:"blocks"` Finalized int64 `json:"finalized"` Indexed int64 `json:"indexed"` Progress float64 `json:"progress"` LastUpdate time.Time `json:"last_update"` // contains filtered or unexported fields }
func (CrawlerStatus) Expires ¶
func (s CrawlerStatus) Expires() time.Time
func (CrawlerStatus) LastModified ¶
func (s CrawlerStatus) LastModified() time.Time
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
Indexer defines an index manager that manages and stores multiple indexes.
func NewIndexer ¶
func NewIndexer(cfg IndexerConfig) *Indexer
func (*Indexer) BakerPerformance ¶
func (m *Indexer) BakerPerformance(ctx context.Context, id model.AccountID, fromCycle, toCycle int64) ([3]int64, error)
luck, performance, contribution (reliability)
func (*Indexer) BestHeight ¶
func (*Indexer) BlockByHash ¶
func (*Indexer) BlockByHeight ¶
func (*Indexer) BlockByParentId ¶
find a block's canonical successor (non-orphan)
func (*Indexer) BlockHashByHeight ¶
func (*Indexer) BlockHashById ¶
func (*Indexer) CacheStats ¶
func (*Indexer) ChainByHeight ¶
func (*Indexer) ConnectBlock ¶
func (*Indexer) ConnectProtocol ¶
func (*Indexer) CycleByNum ¶
func (*Indexer) DeleteBlock ¶
func (*Indexer) DisconnectBlock ¶
func (*Indexer) ElectionByHeight ¶
func (*Indexer) ElectionById ¶
func (*Indexer) FindActivatedAccount ¶
func (*Indexer) FindLastCall ¶
func (*Indexer) FindLatestDelegation ¶
func (*Indexer) FindLatestFinalizeUnstake ¶
func (*Indexer) FindLatestUnstake ¶
func (*Indexer) FindOrigination ¶
func (*Indexer) FindPreviousStorage ¶
func (*Indexer) GrowthByDuration ¶
func (*Indexer) IsLightMode ¶
func (*Indexer) ListAccountOps ¶
Note: - order is defined by funding or spending operation - offset and limit counts in atomar ops - high traffic addresses may have many, so we use query limits
func (*Indexer) ListAccountOpsCollapsed ¶
Note: - order is defined by funding or spending operation - offset and limit counts in collapsed ops (all batch/internal contents) - high traffic addresses may have many, so we use query limits
func (*Indexer) ListBakerEndorsements ¶
func (*Indexer) ListBakers ¶
func (*Indexer) ListBallots ¶
func (*Indexer) ListBigmapKeys ¶
func (m *Indexer) ListBigmapKeys(ctx context.Context, r ListRequest) ([]*model.BigmapValue, error)
func (*Indexer) ListBigmapUpdates ¶
func (m *Indexer) ListBigmapUpdates(ctx context.Context, r ListRequest) ([]model.BigmapUpdate, error)
func (*Indexer) ListBlockEndorsements ¶
func (m *Indexer) ListBlockEndorsements(ctx context.Context, r ListRequest) ([]*model.Endorsement, error)
func (*Indexer) ListBlockOps ¶
Note: offset and limit count in atomar operations
func (*Indexer) ListBlockRights ¶
func (*Indexer) ListContractBigmaps ¶
func (*Indexer) ListContractCalls ¶
func (*Indexer) ListContracts ¶
func (*Indexer) ListFrozenUnstakeRequests ¶
func (m *Indexer) ListFrozenUnstakeRequests(ctx context.Context, baker model.AccountID, cycle int64, p *rpc.Params) ([]*model.Op, error)
ListFrozenUnstakeRequests is used to identify slashable unstake requests.
func (*Indexer) ListHistoricBigmapKeys ¶
func (m *Indexer) ListHistoricBigmapKeys(ctx context.Context, r ListRequest) ([]*model.BigmapValue, error)
func (*Indexer) ListOpEvents ¶
func (m *Indexer) ListOpEvents(ctx context.Context, id uint64, sndr model.AccountID) ([]*model.Event, error)
id is the external op id (not row_id)!
func (*Indexer) ListVoters ¶
r.Since is the true vote start block
func (*Indexer) LookupAccount ¶
func (*Indexer) LookupAccountById ¶
func (*Indexer) LookupAccountId ¶
func (*Indexer) LookupAccountsById ¶
func (*Indexer) LookupAddress ¶
func (*Indexer) LookupBaker ¶
func (*Indexer) LookupBakerId ¶
func (*Indexer) LookupBigmapAlloc ¶
always read fresh data with updated counters
func (*Indexer) LookupBigmapType ¶
only type info is relevant
func (*Indexer) LookupBlock ¶
func (*Indexer) LookupBlockHash ¶
called concurrently from API consumers, uses read-mostly cache
func (*Indexer) LookupBlockHeightFromTime ¶
called concurrently from API consumers, uses read-mostly cache
func (*Indexer) LookupBlockId ¶
func (*Indexer) LookupBlockTime ¶
called concurrently from API consumers, uses read-mostly cache
func (*Indexer) LookupBlockTimeMs ¶
called concurrently from API consumers, uses read-mostly cache
func (*Indexer) LookupBlockTimePtr ¶
called concurrently from API consumers, uses read-mostly cache
func (*Indexer) LookupConstant ¶
func (*Indexer) LookupContract ¶
func (*Indexer) LookupContractId ¶
func (*Indexer) LookupContractType ¶
func (*Indexer) LookupEndorsement ¶
func (*Indexer) LookupLastBakedBlock ¶
func (*Indexer) LookupLastEndorsedBlock ¶
func (*Indexer) LookupOpHash ¶
func (*Indexer) LookupOpIds ¶
these are row_id's (!)
func (*Indexer) LookupProposal ¶
func (*Indexer) LookupProposalHash ¶
func (m *Indexer) LookupProposalHash(ctx context.Context, id model.ProposalID) tezos.ProtocolHash
called concurrently from API consumers, uses read-mostly cache
func (*Indexer) LookupProposalIds ¶
func (*Indexer) LookupRanking ¶
func (*Indexer) LookupStorage ¶
func (*Indexer) LookupTicket ¶
func (*Indexer) NextRights ¶
func (*Indexer) OnTaskComplete ¶
func (*Indexer) ParamsByDeployment ¶
func (*Indexer) ParamsByProtocol ¶
func (*Indexer) ProposalsByElection ¶
func (*Indexer) PurgeCaches ¶
func (m *Indexer) PurgeCaches()
func (*Indexer) SumUnfrozenUnstake ¶
func (m *Indexer) SumUnfrozenUnstake(ctx context.Context, id model.AccountID, height, cycle int64, p *rpc.Params) (int64, error)
SumUnfrozenUnstake is used to reconcile finalize unstake amounts with unstake requests in order to identify slashing losses.
func (*Indexer) SupplyByHeight ¶
func (*Indexer) SupplyByTime ¶
func (*Indexer) TableStats ¶
func (m *Indexer) TableStats() []pack.TableStats
func (*Indexer) TopTraffic ¶
func (*Indexer) VotesByElection ¶
type IndexerConfig ¶
type ListRequest ¶
type ListRequest struct { Account *model.Account Mode pack.FilterMode Typs model.OpTypeList Since int64 Until int64 Offset uint Limit uint Cursor uint64 Order pack.OrderType SenderId model.AccountID ReceiverId model.AccountID Entrypoints []int64 Period int64 BigmapId int64 BigmapKey tezos.ExprHash OpId model.OpID WithStorage bool }
func (ListRequest) WithDelegation ¶
func (r ListRequest) WithDelegation() bool
type Registry ¶
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) GetAllParams ¶
func (*Registry) GetParamsByDeployment ¶
func (*Registry) GetParamsLatest ¶
type ReorgDelayFilter ¶
type ReorgDelayFilter struct {
// contains filtered or unexported fields
}
func NewReorgDelayFilter ¶
func NewReorgDelayFilter(depth int, out chan<- *rpc.Bundle) *ReorgDelayFilter
func (ReorgDelayFilter) Depth ¶
func (f ReorgDelayFilter) Depth() int
func (ReorgDelayFilter) Head ¶
func (f ReorgDelayFilter) Head() *rpc.Bundle
func (*ReorgDelayFilter) Reset ¶
func (f *ReorgDelayFilter) Reset()
func (ReorgDelayFilter) Tail ¶
func (f ReorgDelayFilter) Tail() *rpc.Bundle
type SnapshotConfig ¶
type State ¶
type State string
const ( STATE_LOADING State = "loading" // index init in progress STATE_CONNECTING State = "connecting" // RPC disconnected STATE_STOPPING State = "stopping" // shutting down STATE_STOPPED State = "stopped" // auto-sync disabled, serving stale blockchain state STATE_WAITING State = "waiting" // ready to sync, but RPC server is not ready STATE_SYNCHRONIZING State = "syncing" // sync in progress STATE_SYNCHRONIZED State = "synced" // in sync with blockchain STATE_FAILED State = "failed" // sync stopped due to index error STATE_STALLED State = "stalled" // temporary state when no new block in 1 min )
Source Files ¶
- audit.go
- builder.go
- caches.go
- crawler.go
- error.go
- filter.go
- flow.go
- flow_activation.go
- flow_baking.go
- flow_contract.go
- flow_delegation.go
- flow_implicit.go
- flow_origination.go
- flow_reveal.go
- flow_rollup.go
- flow_staking.go
- flow_ticket.go
- flow_transaction.go
- indexer.go
- log.go
- migrate_athens.go
- migrate_babylon.go
- migrate_carthage.go
- migrate_genesis.go
- migrate_granada.go
- migrate_ithaca.go
- migrate_lima.go
- migrate_mumbai.go
- migrate_oxford.go
- migrate_proto002.go
- migration.go
- op.go
- op_activation.go
- op_baking.go
- op_contract.go
- op_delegation.go
- op_events.go
- op_implicit.go
- op_origination.go
- op_reveal.go
- op_smart_rollup.go
- op_staking.go
- op_ticket.go
- op_transaction.go
- op_tx_rollups.go
- op_voting.go
- protocol.go
- query.go
- query_account.go
- query_baker.go
- query_bigmap.go
- query_block.go
- query_contract.go
- query_extra.go
- query_op.go
- query_supply.go
- query_vote.go
- reorg.go
- snapshot.go
- statedb.go