precompile

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: GPL-3.0 Imports: 1 Imported by: 0

README

readme

[2020 -07 -07 modified] The bindata.go contants the binary of the precompiled system contracts, please do not edit the file directly. Run go generate at the main directory to modify the bindata.go, the .json files of the precompiled system contracts are located in ../../release/linux/conf/contracts/

Documentation

Index

Constants

View Source
const (
	PermDeniedEvent = "the contract deployment is denied"
	CnsInvokeEvent  = "the event generated by cns Invoke"
	CnsInitRegEvent = "register the contract to cns from init()"
)

Variables

View Source
var (
	UserManagementAddress        = syscontracts.UserManagementAddress.String()        // The Venachain Precompiled contract addr for user management
	NodeManagementAddress        = syscontracts.NodeManagementAddress.String()        // The Venachain Precompiled contract addr for node management
	CnsManagementAddress         = syscontracts.CnsManagementAddress.String()         // The Venachain Precompiled contract addr for CNS
	ParameterManagementAddress   = syscontracts.ParameterManagementAddress.String()   // The Venachain Precompiled contract addr for parameter management
	FirewallManagementAddress    = syscontracts.FirewallManagementAddress.String()    // The Venachain Precompiled contract addr for fire wall management
	GroupManagementAddress       = syscontracts.GroupManagementAddress.String()       // The Venachain Precompiled contract addr for group management
	ContractDataProcessorAddress = syscontracts.ContractDataProcessorAddress.String() // The Venachain Precompiled contract addr for group management
	CnsInvokeAddress             = syscontracts.CnsInvokeAddress.String()             // The Venachain Precompiled contract addr for group management
	PaillierAddress              = syscontracts.PaillierAddress.String()              // The Venachain Precompiled contract addr for group management

)
View Source
var List = map[string]string{
	UserManagementAddress:        "../../release/linux/conf/contracts/userManager.cpp.abi.json",
	NodeManagementAddress:        "../../release/linux/conf/contracts/nodeManager.cpp.abi.json",
	CnsManagementAddress:         "../../release/linux/conf/contracts/cnsManager.cpp.abi.json",
	ParameterManagementAddress:   "../../release/linux/conf/contracts/paramManager.cpp.abi.json",
	FirewallManagementAddress:    "../../release/linux/conf/contracts/fireWall.abi.json",
	GroupManagementAddress:       "../../release/linux/conf/contracts/groupManager.cpp.abi.json",
	ContractDataProcessorAddress: "../../release/linux/conf/contracts/contractData.cpp.abi.json",
	PaillierAddress:              "../../release/linux/conf/contracts/paillier.cpp.abi.json",

	CnsInitRegEvent: "../../release/linux/conf/contracts/cnsInitRegEvent.json",
	CnsInvokeEvent:  "../../release/linux/conf/contracts/cnsInvokeEvent.json",
	PermDeniedEvent: "../../release/linux/conf/contracts/permissionDeniedEvent.json",
}

link the precompiled contract addresses with abi file bytes

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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