utils

package
v1.15.2 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0, MIT Imports: 17 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MethodsMap = map[cid.Cid]map[abi.MethodNum]MethodMeta{}

In the v8 version, different networks will have different actors(venus-shared/builtin-actors/builtin_actors_gen.go). Pay attention to the network type when using. By default, the actors of the mainnet are loaded.

View Source
var NetworkTypeWithNetworkName = func() map[types.NetworkType]types.NetworkName {
	typeName := make(map[types.NetworkType]types.NetworkName, len(NetworkNameWithNetworkType))
	for nt, nn := range NetworkNameWithNetworkType {
		typeName[nn] = nt
	}

	return typeName
}()

Functions

func LoadBuiltinActors

func LoadBuiltinActors(ctx context.Context, getter networkNameGetter) error

func Name added in v1.15.0

func Name(a interface{}) string

Name returns the name of a variable whose type does not have a default implementation of the String() method.

func NetworkNameToNetworkType

func NetworkNameToNetworkType(networkName types.NetworkName) (types.NetworkType, error)

func NetworkTypeToNetworkName

func NetworkTypeToNetworkName(networkType types.NetworkType) types.NetworkName

func ReloadMethodsMap

func ReloadMethodsMap()

Types

type MethodMeta

type MethodMeta struct {
	Name    string
	Version actorstypes.Version

	Params reflect.Type
	Ret    reflect.Type
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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