The version 0.2.0 reflects changes in the Lachesis API v.0.7.0-rc1 and changes in SFC contract v.2.0.2-rc1 deployed into the Fantom Opera main net on 8/2020.
The API implementation follows changes in registering, processing and reporting of stake delegations. The new Lachesis and SFC version implements so called fluid staking model. Each delegator has ability to delegate multiple times from a single address. A delegation can be locked for a time period chosen by the delegator to gain better rewards for the delegation locked.
The original 1:1 relationship between network account address and delegation no longer applies and has been changed to 1:n relationship. All API endpoints working with the delegation reflect this change.
Delegator
type has been renamed toDelegation
.DelegatorList
type has been renamed toDelegationList
.- Attribute
delegator
of typeDelegationListEdge
has been renamed todelegation
. - Attribute
delegation
of typeAccount
has been renamed todelegations
. - Type of attribute
delegations
of typeAccount
has been changed toDelegationList
. DelegationList
control options have been added to attributedelegation
of typeAccount
. The attribute structure is nowdelegations(cursor:Cursor, count:Int = 25): DelegationList!
.- New mandatory attribute
staker
of typeLong
has been added to the typePendingRewards
. - Type of attribute
delegations
of typeStaker
has been changed toDelegationList
to reflect the delegation list type name change. - Query attribute
delegationsOf
type has been changed toDelegationList
to reflect delegation list type name change. - Query attribute
delegation
parameters now include mandatory optionstaker
of typeLong
to specify unique delegation in 1:n relationship. - Query attribute
delegation
type has been changed toDelegation
to reflect a single delegation type name change. - New query attribute
delegationsByAddress
of typeDelegationList
has been added to expose list of all delegations of a single delegator address. The attribute call definition isdelegationsByAddress(address:Address!, cursor: Cursor, count: Int = 25): DelegationList!
.