blacklistcc

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: GPL-3.0, GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const BLACKLIST_RECORD = "Blacklist-"

Variables

This section is empty.

Functions

This section is empty.

Types

type BlacklistMgr

type BlacklistMgr struct {
}

func (*BlacklistMgr) AddBlacklist

func (p *BlacklistMgr) AddBlacklist(stub shim.ChaincodeStubInterface, blackAddr common.Address, reason string) error

func (*BlacklistMgr) GetBlacklistAddress

func (p *BlacklistMgr) GetBlacklistAddress(stub shim.ChaincodeStubInterface) ([]common.Address, error)

func (*BlacklistMgr) GetBlacklistRecords

func (p *BlacklistMgr) GetBlacklistRecords(stub shim.ChaincodeStubInterface) ([]*BlacklistRecord, error)

func (*BlacklistMgr) Init

func (*BlacklistMgr) Invoke

func (*BlacklistMgr) Payout

func (p *BlacklistMgr) Payout(stub shim.ChaincodeStubInterface, addr common.Address, amount decimal.Decimal, asset *modules.Asset) error

func (*BlacklistMgr) QueryIsInBlacklist

func (p *BlacklistMgr) QueryIsInBlacklist(stub shim.ChaincodeStubInterface, addr common.Address) (bool, error)

type BlacklistRecord

type BlacklistRecord struct {
	Address     common.Address
	Reason      string
	FreezeToken string
}

Jump to

Keyboard shortcuts

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