policy

package
v0.94.1-pre Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package policy provides 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 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 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

This section is empty.

Jump to

Keyboard shortcuts

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