utils

package
v1.8.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 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 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 {
	Num string

	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