Documentation ¶
Overview ¶
Package policy provides an interface to PolicyContract native contract. This contract holds various network-wide settings.
Index ¶
- Constants
- func BlockAccount(addr interop.Hash160) bool
- func GetAttributeFee(t AttributeType) int
- func GetExecFeeFactor() int
- func GetFeePerByte() int
- func GetStoragePrice() int
- func IsBlocked(addr interop.Hash160) bool
- func SetAttributeFee(t AttributeType, value int)
- func SetExecFeeFactor(value int)
- func SetFeePerByte(value int)
- func SetStoragePrice(value int)
- func UnblockAccount(addr interop.Hash160) bool
- type AttributeType
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 GetAttributeFee ¶
func GetAttributeFee(t AttributeType) int
GetAttributeFee represents `getAttributeFee` 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 SetAttributeFee ¶
func SetAttributeFee(t AttributeType, value int)
SetAttributeFee represents `setAttributeFee` 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 ¶
type AttributeType ¶
type AttributeType byte
AttributeType represents a transaction attribute type.
const ( HighPriorityT AttributeType = 1 OracleResponseT AttributeType = 0x11 NotValidBeforeT AttributeType = 0x20 ConflictsT AttributeType = 0x21 // NotaryAssistedT is an extension of Neo protocol available on specifically configured NeoGo networks. NotaryAssistedT AttributeType = 0x22 )
List of valid transaction attribute types.