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 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, }
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 NetworkNameToNetworkType ¶
func NetworkNameToNetworkType(networkName types.NetworkName) (types.NetworkType, error)
func NetworkTypeToNetworkName ¶
func NetworkTypeToNetworkName(networkType types.NetworkType) types.NetworkName
func ReloadMethodsMap ¶
func ReloadMethodsMap()
Types ¶
Click to show internal directories.
Click to hide internal directories.