contractaddress

package
v1.4.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2020 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)

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

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