github baking-bad/tzkt v1.17.0

6 hours ago

General notes

  • Tallinn protocol support;
  • Lower indexing latency with node streaming API;
  • Extended staking and delegation statistics;
  • More baker data;
  • Minor bugfixes and improvements.

To update from v1.16.* to v1.17.0 you will have to drop the indexer database and restore it from the latest snapshot, or re-index from scratch. This is due to breaking changes, that make automatic DB migration impossible.

Changes in the configuration

  • [BREAKING] Indexing Lag setting was moved from the TezosNode section to the Observer section;
  • Observer section was added (see it here).

Changes in the API endpoints

  • [BREAKING] /v1/blocks endpoint no longer allow sorting by validations, sort by attestationPower instead;
  • [BREAKING] /v1/delegates endpoint no longer allow sorting by delegatedBalance and stakingBalance, sort by externalDelegatedBalance and votingPower instead;
  • [BREAKING] query parameter ?maxRound in the /v1/schedule was removed;
  • query parameter ?type was added to the /v1/schedule;

Changes in the API models

  • [BREAKING] fields stakingBalance and delegatedBalance in the baker model were renamed to votingPower and externalDelegatedBalance;
  • [BREAKING] fields blocks, slots and status were removed from baking schedule intervals;
  • [BREAKING] fields blockBonusPerSlot and attestationRewardPerSlot were removed from cycles;
  • [BREAKING] fields validations, aiToggle and aiToggleEma were removed from blocks;
  • [BREAKING] field slots in attestations and preattestations was renamed to power;
  • fields consensusAddress, companionAddress, bakingPower, ownDelegatedBalance, softwareUpdateLevel, and softwareUpdateTime were added to the baker model;
  • fields totalBlocks, missedBlocks, futureBlocks, totalAttestations, missedAttestations, and futureAttestations were added to baking schedule intervals;
  • fields unlockCycle, unlockLevel, and unlockTime were added to unstake requests;
  • fields blockBonusPerBlock and attestationRewardPerBlock were added to cycles;
  • fields attestationPower, and attestationCommittee were added to blocks;
  • field delegationPowerDivider was added to protocol constants;
  • fields totalOwnStaked, totalOwnDelegated, totalExternalStaked, totalExternalDelegated, totalBakingPower, totalVotingPower, totalBakers, totalStakers, and totalDelegators were added to statistics;
  • fields totalTz4Bakers, totalDalBakers, totalBakingPower and totalVotingPower were added to home stats.

Changes in the DB models

Accounts table:

  • StakingBalance and DelegatedBalance were removed;
  • Index, ConsensusAddress, CompanionAddress, BakingPower, VotingPower, OwnDelegatedBalance, ExternalDelegatedBalance and SoftwareUpdateLevel were added;

AppState table:

  • AiActivationLevel, AbaActivationLevel and PendingSecondaryKeys were added.

Cycles table:

  • BlockBonusPerSlot, AttestationRewardPerSlot and MaxBlockReward were removed;
  • BlockBonusPerBlock and AttestationRewardPerBlock were added;

Blocks table:

  • Validations, AIToggle and AIToggleEma were removed;
  • AttestationPower and AttestationCommittee were added.

AttestationOps table:

  • Slots was renamed to Power.

PreattestationOps table:

  • Slots was renamed to Power.

TransactionOps table:

  • AddressRegistryIndex was added.

Statistics table:

  • TotalOwnStaked, TotalOwnDelegated, TotalExternalStaked, TotalExternalDelegated, TotalBakingPower, TotalVotingPower, TotalBakers, TotalStakers and TotalDelegators were added.

Commits

  • 58a828d: Extend head detection with streaming and polling methods (Maksim Strebkov) #193
  • 40e2177: Add LessReorgs setting for observer (Maksim Strebkov) #193
  • 74cc27e: Update build.yml (Maksim Strebkov)
  • 83fcf1f: Update build.yml (Maksim Strebkov)
  • 0348837: Initial support for proto24 (Maksim Strebkov) #196
  • 878a4f1: Index address registry (Maksim Strebkov) #196
  • 1de09d8: Rename validations to attestation power, add tallinnnet (Maksim Strebkov) #196
  • 3cd973b: Update API docs (Maksim Strebkov) #196
  • 9a20e58: Clean up migration (Maksim Strebkov) #196
  • 1b94a33: Index baking and voting power, get rid of staking balance (Maksim Strebkov) #196
  • e315aff: Index baker's software update level (257Byte) #196
  • 0f387b9: Index staking and delegation statistics (257Byte) #196
  • a919893: Minor improvements (Maksim Strebkov) #196
  • 96fd15a: Index consensus and companion keys (Maksim Strebkov) #196
  • 893dd89: Minor API improvements (Maksim Strebkov) #196
  • a81cac2: Reset db migrations (Maksim Strebkov) #196
  • 41fa8fc: Rework baking schedule intervals (Maksim Strebkov) #196
  • a7ecc63: Add filter by type to /schedule (Maksim Strebkov) #196
  • 703aeb2: Extend /home with tz4 and dal bakers count (Maksim Strebkov) #196
  • 742d841: Update docs and docker files (Maksim Strebkov)
  • c721b91: Fix seoul migration on shadownet (Maksim Strebkov)
  • c00ea24: Fix GetRewardSplitMember endpoint (Maksim Strebkov)
  • e549d35: v1.17.0 (Maksim Strebkov)

Don't miss a new tzkt release

NewReleases is sending notifications on new releases.