ethabi

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

EncodeToEth encode proto to eth

type BucketsByIndexesStateContext

type BucketsByIndexesStateContext struct {
	*protocol.BaseStateContext
}

BucketsByIndexesStateContext context for BucketsByIndexes

func (*BucketsByIndexesStateContext) EncodeToEth

EncodeToEth encode proto to eth

type BucketsByVoterStateContext

type BucketsByVoterStateContext struct {
	*protocol.BaseStateContext
}

BucketsByVoterStateContext context for BucketsByVoter

func (*BucketsByVoterStateContext) EncodeToEth

EncodeToEth encode proto to eth

type BucketsCountStateContext

type BucketsCountStateContext struct {
	*protocol.BaseStateContext
}

BucketsCountStateContext context for BucketsCount

func (*BucketsCountStateContext) EncodeToEth

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

EncodeToEth encode proto to eth

type CandidateByNameStateContext

type CandidateByNameStateContext struct {
	*protocol.BaseStateContext
}

CandidateByNameStateContext context for CandidateByName

func (*CandidateByNameStateContext) EncodeToEth

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

EncodeToEth encode proto to eth

type TotalStakingAmountStateContext

type TotalStakingAmountStateContext struct {
	*protocol.BaseStateContext
}

TotalStakingAmountStateContext context for TotalStakingAmount

func (*TotalStakingAmountStateContext) EncodeToEth

EncodeToEth encode proto to eth

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL