contractaddress

package
v1.5.0-beta2 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MintageAddress, _    = types.HexToAddress("qlc_3qjky1ptg9qkzm8iertdzrnx9btjbaea33snh1w4g395xqqczye4kgcfyfs1")
	NEP5PledgeAddress, _ = types.HexToAddress("qlc_3fwi6r1fzjwmiys819pw8jxrcmcottsj4iq56kkgcmzi3b87596jwskwqrr5")
	RewardsAddress, _    = types.HexToAddress("qlc_3oinqggowa7f1rsjfmib476ggz6s4fp8578odjzerzztkrifqkqdz5zjztb3")

	// Builtin contract addresses without private key hold by anyone
	MinerAddress, _              = GenerateBuiltinContractAddress(21)
	BlackHoleAddress, _          = GenerateBuiltinContractAddress(22)
	RepAddress, _                = GenerateBuiltinContractAddress(23)
	PubKeyDistributionAddress, _ = GenerateBuiltinContractAddress(24)
	SettlementAddress, _         = GenerateBuiltinContractAddress(25)
	PermissionAddress, _         = GenerateBuiltinContractAddress(26)
	PrivacyDemoKVAddress, _      = GenerateBuiltinContractAddress(27)
	PtmKeyKVAddress, _           = GenerateBuiltinContractAddress(28)
	DoDSettlementAddress, _      = GenerateBuiltinContractAddress(29)
	KYCAddress, _                = GenerateBuiltinContractAddress(30)
	QGasSwapAddress, _           = GenerateBuiltinContractAddress(31)

	ChainContractAddressList = []types.Address{NEP5PledgeAddress, MintageAddress, RewardsAddress, MinerAddress,
		BlackHoleAddress, RepAddress, PubKeyDistributionAddress, SettlementAddress, PermissionAddress,
		PrivacyDemoKVAddress, PtmKeyKVAddress, DoDSettlementAddress, KYCAddress, QGasSwapAddress,
	}
	RewardContractAddressList   = []types.Address{MinerAddress, RepAddress}
	PovContractStateAddressList = []types.Address{KYCAddress, PermissionAddress, PubKeyDistributionAddress}
)

Functions

func GenerateBuiltinContractAddress

func GenerateBuiltinContractAddress(suffix byte) (types.Address, error)

func IsChainContractAddress

func IsChainContractAddress(address types.Address) bool

func IsContractAddress

func IsContractAddress(address types.Address) bool

func IsRewardContractAddress

func IsRewardContractAddress(address types.Address) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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