Documentation ¶
Index ¶
- Variables
- func LoadBuiltinActors(ctx context.Context, getter networkNameGetter) error
- func Name(a interface{}) string
- func NetworkNameToNetworkType(networkName types.NetworkName) (types.NetworkType, error)
- func NetworkTypeToNetworkName(networkType types.NetworkType) types.NetworkName
- func ReloadMethodsMap()
- type MethodMeta
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 NetworkNameWithNetworkType = map[types.NetworkName]types.NetworkType{ types.NetworkNameMain: types.NetworkMainnet, types.NetworkNameCalibration: types.NetworkCalibnet, types.NetworkNameButterfly: types.NetworkButterfly, types.NetworkNameInterop: types.NetworkInterop, types.NetworkNameIntegration: types.Integrationnet, types.NetworkNameForce: types.NetworkForce, }
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 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 ¶
Click to show internal directories.
Click to hide internal directories.