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 withfrozenDeposit
; - fields
frozenDepositLimit
,delegatedBalance
,numPreendorsements
,numDoublePreendorsing
,numEndorsingRewards
,numSetDepositsLimits
were added.
- [breaking] fields
- Rewards models:
- [breaking] fields
OwnBlocks
,ExtraBlocks
were replaced withblocks
; - [breaking] fields
MissedOwnBlocks
,MissedExtraBlocks
,UncoveredOwnBlocks
,UncoveredExtraBlocks
were replaced withmissedBlocks
; - [breaking] fields
OwnBlockRewards
,ExtraBlockRewards
were replaced withblockRewards
; - [breaking] fields
MissedOwnBlockRewards
,MissedExtraBlockRewards
,UncoveredOwnBlockRewards
,UncoveredExtraBlockRewards
were replaced withmissedBlockRewards
; - [breaking] fields
OwnBlockFees
,ExtraBlockFees
were replaced withblockFees
; - [breaking] fields
MissedOwnBlockFees
,MissedExtraBlockFees
,UncoveredOwnBlockFees
,UncoveredExtraBlockFees
were replaced withmissedBlockFees
; - [breaking] fields
DoubleBakingLostDeposits
,DoubleBakingLostRewards
,DoubleBakingLostFees
were replaced withdoubleBakingLosses
; - [breaking] fields
DoubleEndorsingLostDeposits
,DoubleEndorsingLostRewards
,DoubleEndorsingLostFees
were replaced withdoubleEndorsingLosses
; - [breaking] fields
RevelationLostRewards
,RevelationLostFees
were replaced withrevelationLosses
; - [breaking] fields
UncoveredEndorsements
,UncoveredEndorsementRewards
,FutureBlockDeposits
,BlockDeposits
,FutureEndorsementDeposits
,EndorsementDeposits
were removed; - fields
activeStake
,selectedStake
,doublePreendorsingRewards
,doublePreendorsingLosses
were added.
- [breaking] fields
- Baking right model:
- [breaking] field
priority
was replaced withround
; - [breaking] status
uncovered
was removed.
- [breaking] field
- Cycle model:
- [breaking] field
totalRolls
was removed; - fields
selectedBakers
,selectedStake
were added.
- [breaking] field
- Block model:
- [breaking] field
priority
was replaced with fieldspayloadRound
andblockRound
; - [breaking] field
baker
was replaced with fieldsproposer
andproducer
; - fields
bonus
,preendorsements
,doublePreendorsing
,endorsingRewards
,setDepositsLimits
were added.
- [breaking] field
- Baking operation model:
- [breaking] field
priority
was replaced with fieldspayloadRound
andblockRound
; - [breaking] field
baker
was replaced with fieldsproposer
andproducer
; - field
bonus
was added.
- [breaking] field
- Double baking operation model:
- [breaking] field
accuserRewards
was replaced withaccuserReward
; - [breaking] fields
offenderLostDeposits
,offenderLostRewards
,offenderLostFees
were replaced withoffenderLoss
.
- [breaking] field
- Double endorsing operation model:
- [breaking] field
accuserRewards
was replaced withaccuserReward
; - [breaking] fields
offenderLostDeposits
,offenderLostRewards
,offenderLostFees
were replaced withoffenderLoss
.
- [breaking] field
- Nonce revelation operation model:
- [breaking] field
bakerRewards
was replaced withreward
; - fields
revealedCycle
,nonce
were added.
- [breaking] field
- Revelation penalty operation model:
- [breaking] fields
lostReward
,lostFees
were replaced withloss
.
- [breaking] fields
- Protocol model:
- new Ithaca constants added.
- Statistics model:
- [breaking] field
totalVested
was removed.
- [breaking] field
Changes in the API endpoints
/blocks
parameterbaker
was replaced withproposer
andproducer
;/operations/baking
parametersbaker
andpriority
were replaced withproposer
,producer
,payloadRound
, andblockRound
;/rights
parameterpriority
was replaced withround
;/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
, andFrozenFees
were removed from theAccounts
table; - columns
FrozenDeposit
,FrozenDepositLimit
,DelegatedBalance
,PreendorsementsCount
,DoublePreendorsingCount
,EndorsingRewardsCount
, andSetDepositsLimitsCount
were added to theAccounts
table; - columns
DoublePreendorsingOpsCount
,PreendorsementOpsCount
,EndorsingRewardOpsCount
, andSetDepositsLimitOpsCount
were added to theAppState
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
, andEndorsementDeposits
were removed from theBakerCycles
table; - columns
ActiveStake
,SelectedStake
,Blocks
,MissedBlocks
,BlockRewards
,MissedBlockRewards
,BlockFees
,MissedBlockFees
,DoubleBakingLosses
,DoubleEndorsingLosses
,DoublePreendorsingRewards
,DoublePreendorsingLosses
,RevelationRewards
, andRevelationLosses
were added to theBakerCycles
table; - column
Priority
in theBakingRights
table was renamed toRound
; - column
TotalRolls
was removed from theCycles
table; - columns
SelectedBakers
andSelectedStake
were added to theCycles
table; - type of the column
Seed
in theCycles
table was changed fromvarchar
tobytea
; - columns
DelegatorsCount
,DelegatedBalance
, andStakingBalance
were added to theSnapshotBalances
table; - columns
Priority
,BakerId
, andResetDeactivation
were removed from theBlocks
table; - columns
PayloadRound
,BlockRound
,Bonus
,ProposerId
,ProducerId
,ResetBakerDeactivation
, andResetProposerDeactivation
were added to theBlocks
table; - columns
ConsensusThreshold
,MinParticipationNumerator
,MinParticipationDenominator
,MaxSlashingPeriod
,FrozenDepositsPercentage
,DoubleBakingPunishment
,DoubleEndorsingPunishmentNumerator
,DoubleEndorsingPunishmentDenominator
,MaxBakingReward
, andMaxEndorsingReward
were added to theProtocols
table; - columns
OffenderLostDeposit
,OffenderLostReward
, andOffenderLostFee
in theDoubleBakingOps
table were replaced withOffenderLoss
; - columns
OffenderLostDeposit
,OffenderLostReward
, andOffenderLostFee
in theDoubleEndorsingOps
table were replaced withOffenderLoss
; - columns
LostReward
andLostFees
in theRevelationPenaltyOps
table were replaced withLoss
; - columns
RevealedCycle
,Reward
, andNonce
were added to theNonceRevelationOps
table; - column
TotalVested
was removed from theStatistics
table.
Changes in the configuration
TokenMetadata.DipDupUrl
andTokenMetadata.Network
were replaced withTokenMetadata.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