Documentation ¶
Overview ¶
Package policy provides interface to PolicyContract native contract. This contract holds various network-wide settings.
Index ¶
- Constants
- func BlockAccount(addr interop.Hash160) bool
- func GetExecFeeFactor() int
- func GetFeePerByte() int
- func GetStoragePrice() int
- func IsBlocked(addr interop.Hash160) bool
- func SetExecFeeFactor(value int)
- func SetFeePerByte(value int)
- func SetStoragePrice(value int)
- func UnblockAccount(addr interop.Hash160) bool
Constants ¶
const Hash = "\x7b\xc6\x81\xc0\xa1\xf7\x1d\x54\x34\x57\xb6\x8b\xba\x8d\x5f\x9f\xdd\x4e\x5e\xcc"
Hash represents Policy contract hash.
Variables ¶
This section is empty.
Functions ¶
func BlockAccount ¶
BlockAccount represents `blockAccount` method of Policy native contract.
func GetExecFeeFactor ¶
func GetExecFeeFactor() int
GetExecFeeFactor represents `getExecFeeFactor` method of Policy native contract.
func GetFeePerByte ¶
func GetFeePerByte() int
GetFeePerByte represents `getFeePerByte` method of Policy native contract.
func GetStoragePrice ¶
func GetStoragePrice() int
GetStoragePrice represents `getStoragePrice` method of Policy native contract.
func SetExecFeeFactor ¶
func SetExecFeeFactor(value int)
SetExecFeeFactor represents `setExecFeeFactor` method of Policy native contract.
func SetFeePerByte ¶
func SetFeePerByte(value int)
SetFeePerByte represents `setFeePerByte` method of Policy native contract.
func SetStoragePrice ¶
func SetStoragePrice(value int)
SetStoragePrice represents `setStoragePrice` method of Policy native contract.
func UnblockAccount ¶
UnblockAccount represents `unblockAccount` method of Policy native contract.
Types ¶
This section is empty.