Documentation ¶
Index ¶
- func BuildReadStateRequest(data []byte) (protocol.StateContext, error)
- type BucketEth
- type BucketsByCandidateStateContext
- type BucketsByIndexesStateContext
- type BucketsByVoterStateContext
- type BucketsCountStateContext
- type BucketsStateContext
- type CandidateByAddressStateContext
- type CandidateByNameStateContext
- type CandidateEth
- type CandidatesStateContext
- type TotalStakingAmountStateContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildReadStateRequest ¶
func BuildReadStateRequest(data []byte) (protocol.StateContext, error)
BuildReadStateRequest decode eth_call data to StateContext
Types ¶
type BucketEth ¶
type BucketEth struct { Index uint64 CandidateAddress common.Address StakedAmount *big.Int StakedDuration uint32 CreateTime int64 StakeStartTime int64 UnstakeStartTime int64 AutoStake bool Owner common.Address }
BucketEth struct for eth
type BucketsByCandidateStateContext ¶
type BucketsByCandidateStateContext struct {
*protocol.BaseStateContext
}
BucketsByCandidateStateContext context for BucketsByCandidate
func (*BucketsByCandidateStateContext) EncodeToEth ¶
func (r *BucketsByCandidateStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type BucketsByIndexesStateContext ¶
type BucketsByIndexesStateContext struct {
*protocol.BaseStateContext
}
BucketsByIndexesStateContext context for BucketsByIndexes
func (*BucketsByIndexesStateContext) EncodeToEth ¶
func (r *BucketsByIndexesStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type BucketsByVoterStateContext ¶
type BucketsByVoterStateContext struct {
*protocol.BaseStateContext
}
BucketsByVoterStateContext context for BucketsByVoter
func (*BucketsByVoterStateContext) EncodeToEth ¶
func (r *BucketsByVoterStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type BucketsCountStateContext ¶
type BucketsCountStateContext struct {
*protocol.BaseStateContext
}
BucketsCountStateContext context for BucketsCount
func (*BucketsCountStateContext) EncodeToEth ¶
func (r *BucketsCountStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type BucketsStateContext ¶
type BucketsStateContext struct {
*protocol.BaseStateContext
}
BucketsStateContext context for Buckets
func (*BucketsStateContext) EncodeToEth ¶
func (r *BucketsStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type CandidateByAddressStateContext ¶
type CandidateByAddressStateContext struct {
*protocol.BaseStateContext
}
CandidateByAddressStateContext context for candidateByAddress
func (*CandidateByAddressStateContext) EncodeToEth ¶
func (r *CandidateByAddressStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type CandidateByNameStateContext ¶
type CandidateByNameStateContext struct {
*protocol.BaseStateContext
}
CandidateByNameStateContext context for CandidateByName
func (*CandidateByNameStateContext) EncodeToEth ¶
func (r *CandidateByNameStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type CandidateEth ¶
type CandidateEth struct { OwnerAddress common.Address OperatorAddress common.Address RewardAddress common.Address Name string TotalWeightedVotes *big.Int SelfStakeBucketIdx uint64 SelfStakingTokens *big.Int }
CandidateEth struct for eth
type CandidatesStateContext ¶
type CandidatesStateContext struct {
*protocol.BaseStateContext
}
CandidatesStateContext context for Candidates
func (*CandidatesStateContext) EncodeToEth ¶
func (r *CandidatesStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type TotalStakingAmountStateContext ¶
type TotalStakingAmountStateContext struct {
*protocol.BaseStateContext
}
TotalStakingAmountStateContext context for TotalStakingAmount
func (*TotalStakingAmountStateContext) EncodeToEth ¶
func (r *TotalStakingAmountStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth