Documentation
¶
Overview ¶
Package v4 historically hosts versioned bundled-struct getters (candidateByAddressV4, candidatesV4, ...). This file deliberately does NOT follow that pattern: candidateDeactivation is a single-purpose getter scoped to the Yap-hardfork exit queue feature.
The ABI convention going forward is:
The big bundled struct getters (candidateByAddress / candidateBy*) are FROZEN at V4 — new fields will not be appended. New consumers pair the V4 result with a focused getter via multicall.
New per-feature state is exposed through its own getter that returns only the fields it owns. The selector lives forever; the bundled struct ABI doesn't churn.
This getter piggy-backs on the existing CANDIDATE_BY_ADDRESS read so it needs no new ReadStakingDataMethod enum nor a new state-reader handler; only the ABI marshalling layer differs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildReadStateRequest ¶
func BuildReadStateRequest(data []byte) (protocol.StateContext, error)
func NewCandidateByIDStateContext ¶
func NewCandidateByIDStateContext(data []byte, methodABI *abi.Method, apiMethod iotexapi.ReadStakingDataMethod_Name) (*stakingComm.CandidateByAddressStateContext, error)
Types ¶
This section is empty.