ethabi

package
v1.12.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Dec 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
	ContractAddress           common.Address
	StakedDurationBlockNumber uint64
	CreateBlockHeight         uint64
	StakeStartBlockHeight     uint64
	UnstakeStartBlockHeight   uint64
}

BucketEth struct for eth

type BucketTypeEth added in v1.11.0

type BucketTypeEth struct {
	StakedAmount   *big.Int
	StakedDuration uint32
}

BucketTypeEth 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 CompositeBucketsByCandidateStateContext added in v1.11.0

type CompositeBucketsByCandidateStateContext struct {
	*protocol.BaseStateContext
}

CompositeBucketsByCandidateStateContext context for CompositeBucketsByCandidate

func (*CompositeBucketsByCandidateStateContext) EncodeToEth added in v1.11.0

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

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

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

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

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

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

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