Releases: Concordium/concordium-grpc-api
GRPC API for node version 9.0
This release supports protocol version 9. In particular, it supports events, data and endpoints related to protocol-level tokens (PLTs) introduced in protocol version 9 and node version 9.0.7.
Changes
- Extend
NextUpdateSequenceNumberswith sequence number for updates to protocol level tokens (fieldprotocol_level_tokens). - Extend
ProtocolVersionenum with a protocol version 9 variantPROTOCOL_VERSION_9. - Support for protocol level tokens.
- Extend
AccountInfowithtokensfield for account state per token. - Extend enum
TransactionTypewith valueTOKEN_UPDATErepresenting a token update transaction. - Extend enum
UpdateTypewith valueUPDATE_CREATE_PLTrepresenting chain updates creating protocol level tokens. - Extend
effectoneof inAccountTransactionEffectswithtoken_update_effect. - Add rpc endpoint
GetTokenInfofor accessing state of each token for some block. - Add rpc endpoint
GetTokenListto query list of existing protocol level tokens for some block. - Extend
reasononeof inRejectReasonwith:non_existent_token_id: the transaction referred to a protocol-level token that
does not exist.token_holder_transaction_failed: the token-holder transaction failed.token_governance_transaction_failed: the token-governance transaction failed.unauthorized_token_governance: Sender account is not authorized for governing the provided protocol level token.
- Extend
detailsoneof inBlockItemSummarywithtoken_creation: this is the
result of a chain-update that creates a protocol-level token.
- Extend
- Rename the
bakerIdfields ofValidatorSuspendedandValidatorPrimedForSuspensiontobaker_id.
GRPC API for node version 8.0
This release supports protocol version 8. In particular, it supports events and data relating to validator suspension. It also adds new endpoints supported in version 8.0 of the Concordium node.
Changes
- Extend
ProtocolVersionenum with a protocol version 8 variantPROTOCOL_VERSION_8. - Support for changes related to validator suspension in protocol version 8:
- Added
BakerSuspended,BakerResumedmessage types and corresponding
events toBakerEvent. - Added
validator_suspendedandvalidator_primed_for_suspensioncases
forBlockSpecialEvent. - Extended
PoolCurrentPaydayInfoandPoolInfoResponse.
- Added
- Add
GetConsensusDetailedStatusendpoint for querying detailed consensus
status information. - Add
GetScheduledReleaseAccountsendpoint for querying the list of accounts that
have scheduled releases. - Add
GetCooldownAccounts,GetPreCooldownAccountsandGetPrePreCooldownAccounts
endpoints for querying the lists of accounts that have pending cooldowns in protocol
version 7 onwards. - Add
parameterfield toContractInitializedEventcontaining the parameter passed
to the contract initializer. - Add chain parameters v3 with the new
ValidatorScoreParametersparameters. - Add
validator_score_parameterstoNextUpdateSequenceNumbers.
GRPC API for node version 7.0
This release supports protocol version 7. In particular, the behavior of stake cooldown (resulting from reducing the stake of a baker or delegator) is different.
Changes
- Extend
ProtocolVersionenum with a protocol version 7 variantPROTOCOL_VERSION_7. - Support for changes to cooldown behavior in protocol version 7:
AccountInfohas a new repeatedcooldownsfield. EachCooldownrecords
the amount, (expected) release time and whether it's a regular cooldown,
pre-cooldown or pre-pre-cooldown.AccountInfonow includesavailable_balance. This is included since the
method for calculating it has changed (it now must account for the
cooldowns), so this is provided as a convenience.PoolInfoResponseis revised to make the fieldsequity_capital,
delegated_capital,delegated_capital_capandpool_infooptional. This
is since in protocol 7 a validator can be unregistered, but still part of the
current epoch validators.BakerEventnow has an additional casedelegation_removed, as configuring a baker can
result in a delegator being removed (from protocol 7).DelegationEventnow has an additional casebaker_removed, as configuring a delegator
can result in a baker being removed (from protocol 7).
GRPC API for node version 6.2
This release adds a new DryRun endpoint for simulating transaction execution, and removes the legacy V1 API.
Changes
- Add a new health service that conforms to the API expected
by Google https://github.com/grpc/grpc-proto/blob/master/grpc/health/v1/health.proto - Add
DryRunendpoint. - Remove
UpdateInstructionSignature. It was not used in any endpoints. - Remove V1 API.
GRPC API for node version 6.1
This release adds new endpoints and amends the response of GetPoolInfo response.
This is the API implemented by node version 6.1.7.
Changes
- Add
GetBakersRewardPeriodendpoint. - Add
GetBlockCertificatesendpoint. - Add
GetBakerEarliestWinTimeendpoint. - Add
GetWinningBakersEpochendpoint. - Add
GetFirstBlockEpochendpoint. - Add a
CommissionRatesfield forPoolCurrentPaydayInfo.
GRPC API for node version 6.0
GRPC API for node version 6 and protocol version 6.
Changes
- Expand
BlockHashInputto support querying by block height. - Add
protocol_versionto the return of BlockInfo. - Make
slot_durationoptional inConsensusInfo. - Add optional fields
current_timeout_duration,current_round,current_epoch,
andtrigger_block_timetoConsensusInfo. - Make
slot_numberoptional inBlockInfo. - Add optional fields
roundandepochtoBlockInfo. - Make
election_difficultyoptional inElectionInfo.
GRPC API for node version 5.0
Support for protocol version 5.