Documentation ¶
Index ¶
- func BuildReadStateRequest(data []byte) (protocol.StateContext, error)
- type BucketEth
- type BucketTypeEth
- type BucketsByCandidateStateContext
- type BucketsByIndexesStateContext
- type BucketsByVoterStateContext
- type BucketsCountStateContext
- type BucketsStateContext
- type CandidateByAddressStateContext
- type CandidateByNameStateContext
- type CandidateEth
- type CandidatesStateContext
- type CompositeBucketsByCandidateStateContext
- type CompositeBucketsByIndexesStateContext
- type CompositeBucketsByVoterStateContext
- type CompositeBucketsCountStateContext
- type CompositeBucketsStateContext
- type CompositeTotalStakingAmountStateContext
- type ContractBucketTypesStateContext
- 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 ContractAddress common.Address StakedDurationBlockNumber uint64 CreateBlockHeight uint64 StakeStartBlockHeight uint64 UnstakeStartBlockHeight uint64 }
BucketEth struct for eth
type BucketTypeEth ¶ added in v1.11.0
BucketTypeEth 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 CompositeBucketsByCandidateStateContext ¶ added in v1.11.0
type CompositeBucketsByCandidateStateContext struct {
*protocol.BaseStateContext
}
CompositeBucketsByCandidateStateContext context for CompositeBucketsByCandidate
func (*CompositeBucketsByCandidateStateContext) EncodeToEth ¶ added in v1.11.0
func (r *CompositeBucketsByCandidateStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type CompositeBucketsByIndexesStateContext ¶ added in v1.11.0
type CompositeBucketsByIndexesStateContext struct {
*protocol.BaseStateContext
}
CompositeBucketsByIndexesStateContext context for CompositeBucketsByIndexes
func (*CompositeBucketsByIndexesStateContext) EncodeToEth ¶ added in v1.11.0
func (r *CompositeBucketsByIndexesStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type CompositeBucketsByVoterStateContext ¶ added in v1.11.0
type CompositeBucketsByVoterStateContext struct {
*protocol.BaseStateContext
}
CompositeBucketsByVoterStateContext context for BucketsByVoter
func (*CompositeBucketsByVoterStateContext) EncodeToEth ¶ added in v1.11.0
func (r *CompositeBucketsByVoterStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type CompositeBucketsCountStateContext ¶ added in v1.11.0
type CompositeBucketsCountStateContext struct {
*protocol.BaseStateContext
}
CompositeBucketsCountStateContext context for BucketsCount
func (*CompositeBucketsCountStateContext) EncodeToEth ¶ added in v1.11.0
func (r *CompositeBucketsCountStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type CompositeBucketsStateContext ¶ added in v1.11.0
type CompositeBucketsStateContext struct {
*protocol.BaseStateContext
}
CompositeBucketsStateContext context for Composite Buckets
func (*CompositeBucketsStateContext) EncodeToEth ¶ added in v1.11.0
func (r *CompositeBucketsStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type CompositeTotalStakingAmountStateContext ¶ added in v1.11.0
type CompositeTotalStakingAmountStateContext struct {
*protocol.BaseStateContext
}
CompositeTotalStakingAmountStateContext context for TotalStakingAmount
func (*CompositeTotalStakingAmountStateContext) EncodeToEth ¶ added in v1.11.0
func (r *CompositeTotalStakingAmountStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type ContractBucketTypesStateContext ¶ added in v1.11.0
type ContractBucketTypesStateContext struct {
*protocol.BaseStateContext
}
ContractBucketTypesStateContext context for Buckets
func (*ContractBucketTypesStateContext) EncodeToEth ¶ added in v1.11.0
func (r *ContractBucketTypesStateContext) 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
Source Files ¶
- stake_base.go
- stake_buckets.go
- stake_bucketsbycandidate.go
- stake_bucketsbyindexes.go
- stake_bucketsbyvoter.go
- stake_bucketscount.go
- stake_candidatebyaddress.go
- stake_candidatebyname.go
- stake_candidates.go
- stake_composite_buckets.go
- stake_composite_bucketsbycandidate.go
- stake_composite_bucketsbyindices.go
- stake_composite_bucketsbyvoter.go
- stake_composite_bucketscount.go
- stake_composite_totalstakingamount.go
- stake_contract_buckettypes.go
- stake_totalstakingamount.go