Documentation ¶
Index ¶
- Constants
- type BlacklistMgr
- func (p *BlacklistMgr) AddBlacklist(stub shim.ChaincodeStubInterface, blackAddr common.Address, reason string) error
- func (p *BlacklistMgr) GetBlacklistAddress(stub shim.ChaincodeStubInterface) ([]common.Address, error)
- func (p *BlacklistMgr) GetBlacklistRecords(stub shim.ChaincodeStubInterface) ([]*BlacklistRecord, error)
- func (p *BlacklistMgr) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (p *BlacklistMgr) Invoke(stub shim.ChaincodeStubInterface) pb.Response
- func (p *BlacklistMgr) Payout(stub shim.ChaincodeStubInterface, addr common.Address, amount decimal.Decimal, ...) error
- func (p *BlacklistMgr) QueryIsInBlacklist(stub shim.ChaincodeStubInterface, addr common.Address) (bool, error)
- type BlacklistRecord
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 (p *BlacklistMgr) Init(stub shim.ChaincodeStubInterface) pb.Response
func (*BlacklistMgr) Invoke ¶
func (p *BlacklistMgr) Invoke(stub shim.ChaincodeStubInterface) pb.Response
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)
Click to show internal directories.
Click to hide internal directories.