ledger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedBalanceAdd

func AllowedBalanceAdd(
	stub shim.ChaincodeStubInterface,
	token string,
	address *types.Address,
	amount *big.Int,
	reason string,
) error

func AllowedBalanceBurnLocked

func AllowedBalanceBurnLocked(
	stub shim.ChaincodeStubInterface,
	token string,
	address *types.Address,
	amount *big.Int,
	reason string,
) error

func AllowedBalanceGet

func AllowedBalanceGet(
	stub shim.ChaincodeStubInterface,
	token string,
	address *types.Address,
) (*big.Int, error)

func AllowedBalanceGetAll

func AllowedBalanceGetAll(
	stub shim.ChaincodeStubInterface,
	address *types.Address,
) (map[string]string, error)

func AllowedBalanceGetLocked

func AllowedBalanceGetLocked(
	stub shim.ChaincodeStubInterface,
	token string,
	address *types.Address,
) (*big.Int, error)

func AllowedBalanceLock

func AllowedBalanceLock(
	stub shim.ChaincodeStubInterface,
	symbol string,
	token string,
	address *types.Address,
	amount *big.Int,
) error

func AllowedBalanceSub

func AllowedBalanceSub(
	stub shim.ChaincodeStubInterface,
	token string,
	address *types.Address,
	amount *big.Int,
	reason string,
) error

func AllowedBalanceTransfer

func AllowedBalanceTransfer(
	stub shim.ChaincodeStubInterface,
	token string,
	from *types.Address,
	to *types.Address,
	amount *big.Int,
	reason string,
) error

func AllowedBalanceTransferLocked

func AllowedBalanceTransferLocked(
	stub shim.ChaincodeStubInterface,
	token string,
	from *types.Address,
	to *types.Address,
	amount *big.Int,
	reason string,
) error

func AllowedBalanceUnlock

func AllowedBalanceUnlock(
	stub shim.ChaincodeStubInterface,
	symbol string,
	token string,
	address *types.Address,
	amount *big.Int,
) error

func AllowedIndustrialBalanceAdd

func AllowedIndustrialBalanceAdd(
	stub shim.ChaincodeStubInterface,
	address *types.Address,
	industrialAssets []*pb.Asset,
	reason string,
) error

func AllowedIndustrialBalanceSub

func AllowedIndustrialBalanceSub(
	stub shim.ChaincodeStubInterface,
	address *types.Address,
	industrialAssets []*pb.Asset,
	reason string,
) error

func AllowedIndustrialBalanceTransfer

func AllowedIndustrialBalanceTransfer(
	stub shim.ChaincodeStubInterface,
	from *types.Address,
	to *types.Address,
	industrialAssets []*pb.Asset,
	reason string,
) error

func IndustrialBalanceAdd

func IndustrialBalanceAdd(
	stub shim.ChaincodeStubInterface,
	symbol string,
	token string,
	address *types.Address,
	amount *big.Int,
	reason string,
) error

func IndustrialBalanceBurnLocked

func IndustrialBalanceBurnLocked(
	stub shim.ChaincodeStubInterface,
	symbol string,
	token string,
	address *types.Address,
	amount *big.Int,
	reason string,
) error

func IndustrialBalanceGet

func IndustrialBalanceGet(
	stub shim.ChaincodeStubInterface,
	address *types.Address,
) (map[string]string, error)

func IndustrialBalanceGetLocked

func IndustrialBalanceGetLocked(
	stub shim.ChaincodeStubInterface,
	address *types.Address,
) (map[string]string, error)

func IndustrialBalanceLock

func IndustrialBalanceLock(
	stub shim.ChaincodeStubInterface,
	symbol string,
	token string,
	address *types.Address,
	amount *big.Int,
) error

func IndustrialBalanceSub

func IndustrialBalanceSub(
	stub shim.ChaincodeStubInterface,
	symbol string,
	token string,
	address *types.Address,
	amount *big.Int,
	reason string,
) error

func IndustrialBalanceTransfer

func IndustrialBalanceTransfer(
	stub shim.ChaincodeStubInterface,
	symbol string,
	token string,
	from *types.Address,
	to *types.Address,
	amount *big.Int,
	reason string,
) error

func IndustrialBalanceTransferLocked

func IndustrialBalanceTransferLocked(
	stub shim.ChaincodeStubInterface,
	symbol string,
	token string,
	from *types.Address,
	to *types.Address,
	amount *big.Int,
	reason string,
) error

func IndustrialBalanceUnlock

func IndustrialBalanceUnlock(
	stub shim.ChaincodeStubInterface,
	symbol string,
	token string,
	address *types.Address,
	amount *big.Int,
) error

func TokenBalanceAdd

func TokenBalanceAdd(
	stub shim.ChaincodeStubInterface,
	address *types.Address,
	amount *big.Int,
	token string,
) error

func TokenBalanceAddWithReason

func TokenBalanceAddWithReason(
	stub shim.ChaincodeStubInterface,
	symbol string,
	address *types.Address,
	amount *big.Int,
	reason string,
) error

func TokenBalanceAddWithTicker

func TokenBalanceAddWithTicker(
	stub shim.ChaincodeStubInterface,
	symbol string,
	address *types.Address,
	amount *big.Int,
	ticker string,
	reason string,
) error

func TokenBalanceBurnLocked

func TokenBalanceBurnLocked(
	stub shim.ChaincodeStubInterface,
	symbol string,
	address *types.Address,
	amount *big.Int,
	reason string,
) error

func TokenBalanceGet

func TokenBalanceGet(stub shim.ChaincodeStubInterface, address *types.Address) (*big.Int, error)

func TokenBalanceGetLocked

func TokenBalanceGetLocked(
	stub shim.ChaincodeStubInterface,
	address *types.Address,
) (*big.Int, error)

func TokenBalanceLock

func TokenBalanceLock(
	stub shim.ChaincodeStubInterface,
	symbol string,
	address *types.Address,
	amount *big.Int,
) error

func TokenBalanceSub

func TokenBalanceSub(
	stub shim.ChaincodeStubInterface,
	symbol string,
	address *types.Address,
	amount *big.Int,
	reason string,
) error

func TokenBalanceSubWithTicker

func TokenBalanceSubWithTicker(
	stub shim.ChaincodeStubInterface,
	symbol string,
	address *types.Address,
	amount *big.Int,
	ticker string,
	reason string,
) error

func TokenBalanceTransfer

func TokenBalanceTransfer(
	stub shim.ChaincodeStubInterface,
	symbol string,
	from *types.Address,
	to *types.Address,
	amount *big.Int,
	reason string,
) error

func TokenBalanceTransferLocked

func TokenBalanceTransferLocked(
	stub shim.ChaincodeStubInterface,
	symbol string,
	from *types.Address,
	to *types.Address,
	amount *big.Int,
	reason string,
) error

func TokenBalanceUnlock

func TokenBalanceUnlock(
	stub shim.ChaincodeStubInterface,
	symbol string,
	address *types.Address,
	amount *big.Int,
) error

Types

type Accounting

type Accounting interface {
	AddAccountingRecord(
		token string,
		from *types.Address,
		to *types.Address,
		amount *big.Int,
		reason string,
	)
}

Jump to

Keyboard shortcuts

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