Documentation ¶
Index ¶
- Constants
- func AllowedBalanceAdd(stub shim.ChaincodeStubInterface, token string, address *types.Address, ...) error
- func AllowedBalanceBurnLocked(stub shim.ChaincodeStubInterface, token string, address *types.Address, ...) error
- func AllowedBalanceGet(stub shim.ChaincodeStubInterface, token string, address *types.Address) (*big.Int, error)
- func AllowedBalanceGetAll(stub shim.ChaincodeStubInterface, address *types.Address) (map[string]string, error)
- func AllowedBalanceGetLocked(stub shim.ChaincodeStubInterface, token string, address *types.Address) (*big.Int, error)
- func AllowedBalanceLock(stub shim.ChaincodeStubInterface, symbol string, token string, ...) error
- func AllowedBalanceSub(stub shim.ChaincodeStubInterface, token string, address *types.Address, ...) error
- func AllowedBalanceTransfer(stub shim.ChaincodeStubInterface, token string, from *types.Address, ...) error
- func AllowedBalanceTransferLocked(stub shim.ChaincodeStubInterface, token string, from *types.Address, ...) error
- func AllowedBalanceUnlock(stub shim.ChaincodeStubInterface, symbol string, token string, ...) error
- func AllowedIndustrialBalanceAdd(stub shim.ChaincodeStubInterface, address *types.Address, ...) error
- func AllowedIndustrialBalanceSub(stub shim.ChaincodeStubInterface, address *types.Address, ...) error
- func AllowedIndustrialBalanceTransfer(stub shim.ChaincodeStubInterface, from *types.Address, to *types.Address, ...) error
- func GivenBalanceGet(stub shim.ChaincodeStubInterface, token string) (*big.Int, error)
- func IndustrialBalanceAdd(stub shim.ChaincodeStubInterface, symbol string, token string, ...) error
- func IndustrialBalanceBurnLocked(stub shim.ChaincodeStubInterface, symbol string, token string, ...) error
- func IndustrialBalanceGet(stub shim.ChaincodeStubInterface, address *types.Address) (map[string]string, error)
- func IndustrialBalanceGetLocked(stub shim.ChaincodeStubInterface, address *types.Address) (map[string]string, error)
- func IndustrialBalanceLock(stub shim.ChaincodeStubInterface, symbol string, token string, ...) error
- func IndustrialBalanceSub(stub shim.ChaincodeStubInterface, symbol string, token string, ...) error
- func IndustrialBalanceTransfer(stub shim.ChaincodeStubInterface, symbol string, token string, ...) error
- func IndustrialBalanceTransferLocked(stub shim.ChaincodeStubInterface, symbol string, token string, ...) error
- func IndustrialBalanceUnlock(stub shim.ChaincodeStubInterface, symbol string, token string, ...) error
- func TokenBalanceAdd(stub shim.ChaincodeStubInterface, symbol string, address *types.Address, ...) error
- func TokenBalanceAddWithReason(stub shim.ChaincodeStubInterface, symbol string, address *types.Address, ...) error
- func TokenBalanceAddWithTicker(stub shim.ChaincodeStubInterface, symbol string, address *types.Address, ...) error
- func TokenBalanceBurnLocked(stub shim.ChaincodeStubInterface, symbol string, address *types.Address, ...) error
- func TokenBalanceGet(stub shim.ChaincodeStubInterface, address *types.Address) (*big.Int, error)
- func TokenBalanceGetLocked(stub shim.ChaincodeStubInterface, address *types.Address) (*big.Int, error)
- func TokenBalanceLock(stub shim.ChaincodeStubInterface, symbol string, address *types.Address, ...) error
- func TokenBalanceSub(stub shim.ChaincodeStubInterface, symbol string, address *types.Address, ...) error
- func TokenBalanceSubWithTicker(stub shim.ChaincodeStubInterface, symbol string, address *types.Address, ...) error
- func TokenBalanceTransfer(stub shim.ChaincodeStubInterface, symbol string, from *types.Address, ...) error
- func TokenBalanceTransferLocked(stub shim.ChaincodeStubInterface, symbol string, from *types.Address, ...) error
- func TokenBalanceUnlock(stub shim.ChaincodeStubInterface, symbol string, address *types.Address, ...) error
- type Accounting
- type ListBalancePaginatedResponse
- func AllowedBalancesGetWithPagination(stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64) (*ListBalancePaginatedResponse, error)
- func GivenBalancesGetWithPagination(stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64) (*ListBalancePaginatedResponse, error)
- func IndustrialBalancesGetWithPagination(stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64) (*ListBalancePaginatedResponse, error)
- func LockedAllowedBalancesGetWithPagination(stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64) (*ListBalancePaginatedResponse, error)
- func LockedIndustrialBalancesGetWithPagination(stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64) (*ListBalancePaginatedResponse, error)
- func LockedTokenBalancesGetWithPagination(stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64) (*ListBalancePaginatedResponse, error)
- func TokenBalancesGetWithPagination(stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64) (*ListBalancePaginatedResponse, error)
- type LockOpt
- type RecordBalance
Constants ¶
View Source
const ( DefaultBalanceLockReason = "token balance lock" DefaultBalanceUnlockReason = "token balance unlock" DefaultAllowedBalanceLockReason = "allowed balance lock" DefaultAllowedBalanceUnlockReason = "allowed balance unlock" DefaultIndustrialBalanceLockReason = "industrial balance lock" DefaultIndustrialBalanceUnlockReason = "industrial balance unlock" )
Variables ¶
This section is empty.
Functions ¶
func AllowedBalanceAdd ¶
func AllowedBalanceGet ¶
func AllowedBalanceGetAll ¶
func AllowedBalanceGetLocked ¶
func AllowedBalanceLock ¶
func AllowedBalanceSub ¶
func AllowedBalanceTransfer ¶
func AllowedBalanceUnlock ¶
func GivenBalanceGet ¶ added in v0.0.6
func IndustrialBalanceAdd ¶
func IndustrialBalanceGet ¶
func IndustrialBalanceLock ¶
func IndustrialBalanceSub ¶
func IndustrialBalanceUnlock ¶
func TokenBalanceAdd ¶
func TokenBalanceBurnLocked ¶
func TokenBalanceGet ¶
func TokenBalanceGetLocked ¶
func TokenBalanceLock ¶
func TokenBalanceSub ¶
func TokenBalanceTransfer ¶
Types ¶
type Accounting ¶
type ListBalancePaginatedResponse ¶ added in v0.0.6
type ListBalancePaginatedResponse struct { Bookmark string `json:"bookmark"` Sum []*RecordBalance `json:"sum"` RecordsOfBalance []*RecordBalance `json:"records"` }
func AllowedBalancesGetWithPagination ¶ added in v0.0.6
func AllowedBalancesGetWithPagination( stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64, ) (*ListBalancePaginatedResponse, error)
func GivenBalancesGetWithPagination ¶ added in v0.0.6
func GivenBalancesGetWithPagination( stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64, ) (*ListBalancePaginatedResponse, error)
func IndustrialBalancesGetWithPagination ¶ added in v0.0.6
func IndustrialBalancesGetWithPagination( stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64, ) (*ListBalancePaginatedResponse, error)
func LockedAllowedBalancesGetWithPagination ¶ added in v0.0.6
func LockedAllowedBalancesGetWithPagination( stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64, ) (*ListBalancePaginatedResponse, error)
func LockedIndustrialBalancesGetWithPagination ¶ added in v0.0.6
func LockedIndustrialBalancesGetWithPagination( stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64, ) (*ListBalancePaginatedResponse, error)
func LockedTokenBalancesGetWithPagination ¶ added in v0.0.6
func LockedTokenBalancesGetWithPagination( stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64, ) (*ListBalancePaginatedResponse, error)
func TokenBalancesGetWithPagination ¶ added in v0.0.6
func TokenBalancesGetWithPagination( stub shim.ChaincodeStubInterface, bookmark string, pageSize uint64, ) (*ListBalancePaginatedResponse, error)
type RecordBalance ¶ added in v0.0.6
RecordBalance - one entry
Click to show internal directories.
Click to hide internal directories.