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 AvailableBalanceStateContext ¶
type AvailableBalanceStateContext struct {
*protocol.BaseStateContext
}
AvailableBalanceStateContext context for AvailableBalance
func (*AvailableBalanceStateContext) EncodeToEth ¶
func (r *AvailableBalanceStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type TotalBalanceStateContext ¶
type TotalBalanceStateContext struct {
*protocol.BaseStateContext
}
TotalBalanceStateContext context for TotalBalance
func (*TotalBalanceStateContext) EncodeToEth ¶
func (r *TotalBalanceStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
type UnclaimedBalanceStateContext ¶
type UnclaimedBalanceStateContext struct {
*protocol.BaseStateContext
}
UnclaimedBalanceStateContext context for UnclaimedBalance
func (*UnclaimedBalanceStateContext) EncodeToEth ¶
func (r *UnclaimedBalanceStateContext) EncodeToEth(resp *iotexapi.ReadStateResponse) (string, error)
EncodeToEth encode proto to eth
Click to show internal directories.
Click to hide internal directories.