github baking-bad/tzkt v1.14.0

latest releases: v1.14.5, v1.14.4, v1.14.3...
3 months ago

General notes

  • Paris protocol was implemented;
  • more FA tokens are supported as more edge cases are handled;
  • default indexes were optimized for better indexing performance;
  • minor improvements and bugfixes.

To update from v1.13.* to v1.14.0 you should drop the indexer database and restore it from the latest snapshot, or reindex from scratch. This is due to changes, that make automatic DB migration too complicated.

Changes in the API endpoints

  • [BREAKING] /accounts/{address}/balance_history/* now has specific behavior: for non-baker tz-accounts it doesn't take into account historical staked tez when calculating historical balances, because stakers do not really have staked tez on their balance, they have staking pseudotokens instead. If you want to get a full historical balance, including staked tez, use the Tezos node RPC: /chains/main/blocks/{level}/context/contracts/{address}/full_balance;
  • [BREAKING] /cycles no longer supports the query parameter snapshotIndex, because the cycle model doesn't contain that field anymore;
  • /operations/set_delegate_parameters was added;
  • /operations/dal_publish_commitment was added;
  • /smart_rollups/{address}/entrypoints was added;
  • /staking/unstake_requests was added;
  • /staking/updates was added.

Changes in the API models

Tokens, tickets and operations:

  • [BREAKING] internal IDs of operations (and therefore tokens, token balances, token transfers, tickets, ticket balances, ticket transfers) happened after Oxford upgrade were changed, because of different autostaking operations processing, so if you store those IDs locally, make sure to reindex them.

Delegates:

  • [BREAKING] field stakedPseudotokens was removed, because bakers do not have staked pseudotokens;
  • [BREAKING] field issuedPseudotokens now has type BigInteger instead of Int64;
  • [BREAKING] field lostBalance was renamed to roundingError;
  • fields stakingUpdatesCount, setDelegateParametersOpsCount, and dalPublishCommitmentOpsCount were added.

Users:

  • [BREAKING] field stakedPseudotokens now has type BigInteger instead of Int64;
  • [BREAKING] field lostBalance was removed;
  • fields stakingUpdatesCount, setDelegateParametersOpsCount, and dalPublishCommitmentOpsCount were added.

Baker rewards:

  • [BREAKING] field blockRewardsLiquid was renamed to blockRewardsDelegated;
  • [BREAKING] field endorsementRewardsLiquid was renamed to endorsementRewardsDelegated;
  • [BREAKING] field vdfRevelationRewardsLiquid was renamed to vdfRevelationRewardsDelegated;
  • [BREAKING] field nonceRevelationRewardsLiquid was renamed to nonceRevelationRewardsDelegated;
  • field delegatedBalance returns delegated balance at the end of the cycle, instead of minimal-over-cycle value, which is used for rights distribution. Read more here;
  • fields blockRewardsStakedEdge, endorsementRewardsStakedEdge, vdfRevelationRewardsStakedEdge and nonceRevelationRewardsStakedEdge were added.

Delegator rewards:

  • same changes as for baker rewards, described above.

Rewards split:

  • same changes as for baker rewards, described above.

Rewards split delegator:

  • [BREAKING] fields currentDelegatedBalance and currentStakedBalance were deprecated. Since they were used only for checking whether or not the delegator is currently emptied, you can use the field emptied instead.

Cycles:

  • [BREAKING] field snapshotIndex was deprecated, use snapshotLevel instead;
  • [BREAKING] field lbSubsidy was deprecated.

Blocks and baking operations:

  • [BREAKING] field rewardLiquid was renamed to rewardDelegated;
  • [BREAKING] field bonusLiquid was renamed to bonusDelegated;
  • fields rewardStakedEdge and bonusStakedEdge were added.

Autostaking operations:

  • [BREAKING] field cycle was deprecated;
  • field stakingUpdatesCount was added.

Delegation operations:

  • [BREAKING] fields unstakedPseudotokens, unstakedBalance, and unstakedRewards were deprecated;
  • field stakingUpdatesCount was added.

Double baking/endorsing/preendorsing operations:

  • [BREAKING] field roundingLoss was deprecated;
  • field stakingUpdatesCount was added.

Endorsing reward and nonce/vdf revelation operations:

  • [BREAKING] field rewardLiquid was renamed to rewardDelegated;
  • field rewardStakedEdge was added.

Staking operations:

  • [BREAKING] field kind was renamed to action;
  • [BREAKING] fields pseudotokens, limitOfStakingOverBaking, edgeOfBakingOverStaking, and activationCycle were deprecated;
  • fields requestedAmount and stakingUpdatesCount were added.

Protocols:

  • field version was added.

Protocol constants:

  • field preservedCycles was deprecated and replaced with the new two fields consensusRightsDelay and delegateParametersActivationDelay.

Smart rollup inbox messages:

  • field index was added.

Changes in the WebSocket API:

  • new operation types are available in the operations subscription.

Changes in the DB schema

Basically, DB schema has almost the same changes as the API models, described above.
For more details check out the full diffs at Tzkt.Data/Models/ here.

Commits

  • 9e87ff5: Add Paris protocol (Maksim Strebkov) #171
  • d89b2b5: Index parameter type for smart rollups (Maksim Strebkov) #171
  • 13b2e99: Index voting snapshots for waiting periods as well (Maksim Strebkov) #171
  • c347346: Add version number to the protocol model (Maksim Strebkov) #171
  • 3d65672: Add non-root ledgers support (Maksim Strebkov) #171
  • c00a973: Add inbox message index (Maksim Strebkov) #171
  • 60ab3ad: Improve indexes, close #151 (Maksim Strebkov) #171
  • 9f46ff2: Use AI for home stats calculation (Maksim Strebkov) #171
  • f03b15f: Add version to the protocol API model, update sr constants. (Maksim Strebkov) #171
  • bf2078b: Update dependencies (Maksim Strebkov) #171
  • e670d34: Expose smart rollup entrypoints via API (257Byte) #171
  • 81d7758: Expose inbox message index (Maksim Strebkov) #171
  • b16ca5b: Add ParisB 2 (Maksim Strebkov) #171
  • 5338801: Add Paris docker-compose (dm) #171
  • 77a33e4: Update VotingPeriod API model (Maksim Strebkov) #171
  • b401fe8: Explicit numeric conversion (Maksim Strebkov) #171
  • c07d3ef: Register chain id for ParisB 2 (Maksim Strebkov) #171
  • ae997e3: v1.14.0 (Maksim Strebkov)

Don't miss a new tzkt release

NewReleases is sending notifications on new releases.