github baking-bad/tzkt v1.8.0

latest releases: v1.14.5, v1.14.4, v1.14.3...
2 years ago

General notes

  • Ithaca support;
  • multiple token metadata sources.

To update from v1.7.* to v1.8.0 you should drop the indexer database and restore it from the latest snapshot, or reindex from scratch.

Changes in the API models

  • Account models:
    • [breaking] fields frozenDeposits, frozenRewards, frozenFees were replaced with frozenDeposit;
    • fields frozenDepositLimit, delegatedBalance, numPreendorsements, numDoublePreendorsing, numEndorsingRewards, numSetDepositsLimits were added.
  • Rewards models:
    • [breaking] fields OwnBlocks, ExtraBlocks were replaced with blocks;
    • [breaking] fields MissedOwnBlocks, MissedExtraBlocks, UncoveredOwnBlocks, UncoveredExtraBlocks were replaced with missedBlocks;
    • [breaking] fields OwnBlockRewards, ExtraBlockRewards were replaced with blockRewards;
    • [breaking] fields MissedOwnBlockRewards, MissedExtraBlockRewards, UncoveredOwnBlockRewards, UncoveredExtraBlockRewards were replaced with missedBlockRewards;
    • [breaking] fields OwnBlockFees, ExtraBlockFees were replaced with blockFees;
    • [breaking] fields MissedOwnBlockFees, MissedExtraBlockFees, UncoveredOwnBlockFees, UncoveredExtraBlockFees were replaced with missedBlockFees;
    • [breaking] fields DoubleBakingLostDeposits, DoubleBakingLostRewards, DoubleBakingLostFees were replaced with doubleBakingLosses;
    • [breaking] fields DoubleEndorsingLostDeposits, DoubleEndorsingLostRewards, DoubleEndorsingLostFees were replaced with doubleEndorsingLosses;
    • [breaking] fields RevelationLostRewards, RevelationLostFees were replaced with revelationLosses;
    • [breaking] fields UncoveredEndorsements, UncoveredEndorsementRewards, FutureBlockDeposits, BlockDeposits, FutureEndorsementDeposits, EndorsementDeposits were removed;
    • fields activeStake, selectedStake, doublePreendorsingRewards, doublePreendorsingLosses were added.
  • Baking right model:
    • [breaking] field priority was replaced with round;
    • [breaking] status uncovered was removed.
  • Cycle model:
    • [breaking] field totalRolls was removed;
    • fields selectedBakers, selectedStake were added.
  • Block model:
    • [breaking] field priority was replaced with fields payloadRound and blockRound;
    • [breaking] field baker was replaced with fields proposer and producer;
    • fields bonus, preendorsements, doublePreendorsing, endorsingRewards, setDepositsLimits were added.
  • Baking operation model:
    • [breaking] field priority was replaced with fields payloadRound and blockRound;
    • [breaking] field baker was replaced with fields proposer and producer;
    • field bonus was added.
  • Double baking operation model:
    • [breaking] field accuserRewards was replaced with accuserReward;
    • [breaking] fields offenderLostDeposits, offenderLostRewards, offenderLostFees were replaced with offenderLoss.
  • Double endorsing operation model:
    • [breaking] field accuserRewards was replaced with accuserReward;
    • [breaking] fields offenderLostDeposits, offenderLostRewards, offenderLostFees were replaced with offenderLoss.
  • Nonce revelation operation model:
    • [breaking] field bakerRewards was replaced with reward;
    • fields revealedCycle, nonce were added.
  • Revelation penalty operation model:
    • [breaking] fields lostReward, lostFees were replaced with loss.
  • Protocol model:
    • new Ithaca constants added.
  • Statistics model:
    • [breaking] field totalVested was removed.

Changes in the API endpoints

  • /blocks parameter baker was replaced with proposer and producer;
  • /operations/baking parameters baker and priority were replaced with proposer, producer, payloadRound, and blockRound;
  • /rights parameter priority was replaced with round;
  • /operations/preendorsements/* were added;
  • /operations/double_preendorsing/* were added;
  • /operations/endorsing_rewards/* were added;
  • /operations/set_deposits_limits/* were added.

Changes in the DB schema

  • DoublePreendorsingOps table was added;
  • PreendorsementOps table was added;
  • SetDepositsLimitOps table was added;
  • EndorsingRewardOps table was added;
  • FreezerUpdates table was added;
  • columns FrozenDeposits, FrozenRewards, and FrozenFees were removed from the Accounts table;
  • columns FrozenDeposit, FrozenDepositLimit, DelegatedBalance, PreendorsementsCount, DoublePreendorsingCount, EndorsingRewardsCount, and SetDepositsLimitsCount were added to the Accounts table;
  • columns DoublePreendorsingOpsCount, PreendorsementOpsCount, EndorsingRewardOpsCount, and SetDepositsLimitOpsCount were added to the AppState table;
  • columns Rolls, OwnBlocks, ExtraBlocks, MissedOwnBlocks, MissedExtraBlocks, UncoveredOwnBlocks, UncoveredExtraBlocks, UncoveredEndorsements, OwnBlockRewards, ExtraBlockRewards, MissedOwnBlockRewards, MissedExtraBlockRewards, UncoveredOwnBlockRewards, UncoveredExtraBlockRewards, UncoveredEndorsementRewards, OwnBlockFees, ExtraBlockFees, MissedOwnBlockFees, MissedExtraBlockFees, UncoveredOwnBlockFees, UncoveredExtraBlockFees, DoubleBakingLostDeposits, DoubleBakingLostRewards, DoubleBakingLostFees, DoubleEndorsingLostDeposits, DoubleEndorsingLostRewards, DoubleEndorsingLostFees, RevelationRewards, RevelationLostRewards, RevelationLostFees, FutureBlockDeposits, BlockDeposits, FutureEndorsementDeposits, and EndorsementDeposits were removed from the BakerCycles table;
  • columns ActiveStake, SelectedStake, Blocks, MissedBlocks, BlockRewards, MissedBlockRewards, BlockFees, MissedBlockFees, DoubleBakingLosses, DoubleEndorsingLosses, DoublePreendorsingRewards, DoublePreendorsingLosses, RevelationRewards, and RevelationLosses were added to the BakerCycles table;
  • column Priority in the BakingRights table was renamed to Round;
  • column TotalRolls was removed from the Cycles table;
  • columns SelectedBakers and SelectedStake were added to the Cycles table;
  • type of the column Seed in the Cycles table was changed from varchar to bytea;
  • columns DelegatorsCount, DelegatedBalance, and StakingBalance were added to the SnapshotBalances table;
  • columns Priority, BakerId, and ResetDeactivation were removed from the Blocks table;
  • columns PayloadRound, BlockRound, Bonus, ProposerId, ProducerId, ResetBakerDeactivation, and ResetProposerDeactivation were added to the Blocks table;
  • columns ConsensusThreshold, MinParticipationNumerator, MinParticipationDenominator, MaxSlashingPeriod, FrozenDepositsPercentage, DoubleBakingPunishment, DoubleEndorsingPunishmentNumerator, DoubleEndorsingPunishmentDenominator, MaxBakingReward, and MaxEndorsingReward were added to the Protocols table;
  • columns OffenderLostDeposit, OffenderLostReward, and OffenderLostFee in the DoubleBakingOps table were replaced with OffenderLoss;
  • columns OffenderLostDeposit, OffenderLostReward, and OffenderLostFee in the DoubleEndorsingOps table were replaced with OffenderLoss;
  • columns LostReward and LostFees in the RevelationPenaltyOps table were replaced with Loss;
  • columns RevealedCycle, Reward, and Nonce were added to the NonceRevelationOps table;
  • column TotalVested was removed from the Statistics table.

Changes in the configuration

  • TokenMetadata.DipDupUrl and TokenMetadata.Network were replaced with TokenMetadata.DipDup, accepting an array of DipDup sources.

Commits

  • 6a7c5d1: Filter out null token metadata from DipDup (257Byte)
  • 7a08f4e: Add openapi extensions for json and anyof parameters (Michael Zaikin) #81
  • cc714a3: Fix bigmap tags displaying and add more tags (257Byte)
  • 5fae6a5: Fix spaces in json parameter .in and .ni modes (257Byte)
  • 212e5af: Optimize sql queries for historical entities (257Byte)
  • 53946f4: Init ithaca scaffold (257Byte) #86
  • 50c7da6: Remove frozen rewards, frozen fees, and uncovered rights (257Byte) #86
  • 94d0264: Don't try to save token metadata for non-existing tokens (257Byte) #86
  • 61368bd: Store nonces in seed_nonce_revelation operations (257Byte) #86
  • bcbcef1: Rework random cycle seed calculation (257Byte) #86
  • 1db3fa3: Rework baker cycles, double baking/endorsing and revelation penalty ops (257Byte) #86
  • c253ad8: Remove rolls (257Byte) #86
  • 8976a15: Rework deposits (257Byte) #86
  • 4a77a25: Migrate protocol constants (257Byte) #86
  • 7ac0e98: Migrate bakers staking (257Byte) #86
  • fd091ab: Migrate cycles and make snapshot (257Byte) #86
  • d470e8b: Migrate baking/endorsing rights and rewards (257Byte) #86
  • 8ddf804: Migrate statistics (257Byte) #86
  • 36afd0f: Rework protocol validators (257Byte) #86
  • dd4c0c8: Rework block commit (257Byte) #86
  • 3cffa97: Rework diagnostics (257Byte) #86
  • c7b111f: Add endorsing rewards indexing (257Byte) #86
  • be739aa: Rework freezer commit (257Byte) #86
  • 76af0f2: Rework baker cycle frozen deposits (257Byte) #86
  • 9d28746: Rework endorsement commit and remove revelation penalties (257Byte) #86
  • 6970419: Rewrite snapshots, rights, cycles, and rewards (257Byte) #86
  • 124a609: Index preendorsements, rework nonce revelation and activation ops, minor fixes (257Byte) #86
  • 5aa27af: Rework double baking commit, minor fixes (257Byte) #86
  • 128af04: Add set_deposits_limit operation, fix last-level balance snapshots (257Byte) #86
  • f3f1fbd: Deprecate TotalVested and fix TotalFrozen stats (257Byte) #86
  • 19138e1: Rework double endorsing commit (257Byte) #86
  • 98342b6: Index double preendorsing (257Byte) #86
  • dc41170: Change double baking/(pre)endorsing offender cycle (257Byte) #86
  • f6fb9cc: Refactor consensus terminology (257Byte) #86
  • 3c58a4f: More refactoring (257Byte) #86
  • bcab435: Migration improvements (257Byte) #86
  • 9bde00e: Migrate database schema (257Byte) #86
  • 7f798a8: Fix double baking validation (257Byte) #86
  • 68c3819: Update delegate and user API models (257Byte) #86
  • e724951: Rework stake selection (257Byte) #86
  • 9bab8e7: Update cycle and right API models (257Byte) #86
  • 32b20b8: Update rewards API models (257Byte) #86
  • eaed3a2: Update block and baking operation API models (257Byte) #86
  • 93c8ca6: Update protocol constants model (257Byte) #86
  • d736d35: Update operations models (257Byte) #86
  • d6422de: Add new operation models and endpoints (257Byte) #86
  • a235ad0: Add subscriptions for new op types and update version (257Byte) #86
  • fdd4132: Adjust historical balances and reports with new op types (257Byte) #86
  • bb3ddaa: Update makefile and snapshot links (257Byte) #86
  • c9932ee: Fix set deposits limits endpoint path (257Byte) #86
  • 008f9ea: Improve protocol migration (257Byte) #86
  • 5e5532a: Fix sampler selection (257Byte) #86
  • fe66820: Fix future rights selection at /home/blocks (257Byte) #86
  • 96fbc91: Allow multiple DipDup token metadata sources (#87) (Michael Zaikin) #86
  • 7d721f7: Add openapi extension for token API endpoints (#85) (Michael Zaikin) #86
  • aa25aa5: Link fix (dmir) #86
  • a284db8: Fix failed txs validation (257Byte) #86

Don't miss a new tzkt release

NewReleases is sending notifications on new releases.