Documentation
¶
Index ¶
- Variables
- func AddressToEVM(ctx context.Context, addr string, lapi *lotusapi.FullNodeStruct, ...) (common.Address, error)
- func AddressToNative(ctx context.Context, addr string, lapi *lotusapi.FullNodeStruct, ...) (address.Address, error)
- func AssertApproxEqAbs(a, b, DUST *big.Int) bool
- func AssertApproxEqRel(a, b, DIFF *big.Int) bool
- func CheckIDNotEVMActorType(ctx context.Context, filAddr address.Address, lapi lotusapi.FullNode) error
- 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 Diff(x *big.Int, y *big.Int) *big.Float
- func DivWad(x *big.Int, y *big.Int) *big.Int
- func EpochHeightToTimestamp(height *big.Int, chainID *big.Int) time.Time
- func HumanReadableRevert(errMsg error) error
- func IsZeroAddress(address common.Address) bool
- func LoadMinerActor(ctx context.Context, api *api.FullNodeStruct, minerAddr address.Address, ...) (*types.ActorV5, miner.State, error)
- 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 MulWad(x *big.Int, y *big.Int) *big.Int
- func Multiread(tasks []TaskFunc) ([]interface{}, error)
- func NewTieredBlockstore(lapi *api.FullNodeStruct) blockstore.Blockstore
- func ParseAddress(ctx context.Context, addr string, lapi lotusapi.FullNode, allowEVMIDs bool) (common.Address, error)
- func PrintStructKeysAndValues(s interface{})
- 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 WAD = big.NewInt(1000000000000000000)
Functions ¶
func AddressToEVM ¶
func AddressToNative ¶
func AssertApproxEqAbs ¶ added in v1.0.3
func AssertApproxEqRel ¶ added in v1.0.3
DIFF is a WAD math based percentage, such that 1e18 is 100%
func CheckIDNotEVMActorType ¶
func CheckIDNotEVMActorType(ctx context.Context, filAddr address.Address, lapi lotusapi.FullNode) error
using f0 ID addresses to interact with EVM or EthAccount actor types is forbidden
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 LoadMinerActor ¶ added in v1.1.0
func MsigProposeFEVMTx ¶
func NewTieredBlockstore ¶ added in v1.1.0
func NewTieredBlockstore(lapi *api.FullNodeStruct) blockstore.Blockstore
func ParseAddress ¶
func PrintStructKeysAndValues ¶ added in v1.1.0
func PrintStructKeysAndValues(s interface{})
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.