policy

package
v0.0.0-...-a924253 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package policy provides an interface to PolicyContract native contract. This contract holds various network-wide settings.

Index

Constants

View Source
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

func BlockAccount(addr interop.Hash160) bool

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 IsBlocked

func IsBlocked(addr interop.Hash160) bool

IsBlocked represents `isBlocked` 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

func UnblockAccount(addr interop.Hash160) bool

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.

Jump to

Keyboard shortcuts

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