Documentation ¶
Index ¶
- Variables
- func ConvertSectorType(sector *miner.SectorOnChainInfo) *miner8.SectorOnChainInfo
- func DelegatedFromEthAddr(addr common.Address) (address.Address, error)
- func DeriveAddrFromPk(pk *ecdsa.PrivateKey) (common.Address, address.Address, error)
- func DeriveAddrFromPkString(pk string) (common.Address, address.Address, error)
- func DeriveAddressFromPk(pk *ecdsa.PrivateKey) (common.Address, error)
- func DeriveNativeFromSECP256K1KeyString(pk string) (address.Address, error)
- func EpochHeightToTimestamp(height *big.Int, chainID *big.Int) time.Time
- func HumanReadableRevert(errMsg error) error
- func IsZeroAddress(address common.Address) bool
- func MethodStrToBytes(methodStr constants.Method) ([4]byte, error)
- func MsigProposeFEVMTx(ctx context.Context, senderAddr address.Address, msigAddr address.Address, ...) (*ltypes.Message, error)
- func MsigProposeFEVMTxWithValue(ctx context.Context, senderAddr address.Address, msigAddr address.Address, ...) (*ltypes.Message, error)
- func Multiread(tasks []TaskFunc) ([]interface{}, error)
- func SetupSuite(t *testing.T) (*api.FullNodeStruct, jsonrpc.ClientCloser)
- func SimulateFVMMsg(ctx context.Context, msg *filtypes.Message, lClient *lotusapi.FullNodeStruct) error
- func StringifyArg(arg interface{}) string
- func TeardownSuite(close jsonrpc.ClientCloser)
- func ThisEpochRewardsSmoothed(ctx context.Context, api *lotusapi.FullNodeStruct, tsk *types.TipSet) (smoothing.FilterEstimate, error)
- func ToAtto(bal *big.Float) *big.Int
- func ToByte4Selector(bytes []byte) [4]byte
- func ToFIL(atto *big.Int) *big.Float
- func TotalPowerSmoothed(ctx context.Context, api *lotusapi.FullNodeStruct, tsk *types.TipSet) (smoothing.FilterEstimate, error)
- func TruncateAddr(addr string) string
- func TxPostProcess(tx *types.Transaction, err error) (*types.Transaction, error)
- type TaskFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ( GENESIS_TS = uint64(1598306430) T_GENESIS_TS = uint64(1667326410) )
View Source
var DIAL_ADDR = ""
View Source
var TOKEN = ""
View Source
var WAD = big.NewInt(1000000000000000000)
Functions ¶
func ConvertSectorType ¶
func ConvertSectorType(sector *miner.SectorOnChainInfo) *miner8.SectorOnChainInfo
the SimpleQAPower bool is missing here on the conversion
func DelegatedFromEthAddr ¶
func DeriveAddrFromPk ¶
func DeriveAddrFromPk(pk *ecdsa.PrivateKey) (common.Address, address.Address, error)
func DeriveAddrFromPkString ¶
func DeriveAddressFromPk ¶
func DeriveAddressFromPk(pk *ecdsa.PrivateKey) (common.Address, error)
func DeriveNativeFromSECP256K1KeyString ¶
derives a native filecoin f1 addr from a private key string
func EpochHeightToTimestamp ¶
func HumanReadableRevert ¶
func IsZeroAddress ¶
IsZeroAddress validate if it's a 0 address
func MsigProposeFEVMTx ¶
func SetupSuite ¶
func SetupSuite(t *testing.T) (*api.FullNodeStruct, jsonrpc.ClientCloser)
func SimulateFVMMsg ¶
func StringifyArg ¶
func StringifyArg(arg interface{}) string
func TeardownSuite ¶
func TeardownSuite(close jsonrpc.ClientCloser)
func ThisEpochRewardsSmoothed ¶
func ThisEpochRewardsSmoothed(ctx context.Context, api *lotusapi.FullNodeStruct, tsk *types.TipSet) (smoothing.FilterEstimate, error)
func ToByte4Selector ¶
func TotalPowerSmoothed ¶
func TotalPowerSmoothed(ctx context.Context, api *lotusapi.FullNodeStruct, tsk *types.TipSet) (smoothing.FilterEstimate, error)
func TruncateAddr ¶
func TxPostProcess ¶
func TxPostProcess(tx *types.Transaction, err error) (*types.Transaction, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.