# Functions
ArrayFromAssetPropList converts an array of AssetProp to an array of map[string]interface.
ArrayFromAssetTypeList converts an array of AssetType to an array of map[string]interface.
AssetPropFromMap converts a map[string]interface{} to an AssetProp.
AssetPropListFromArray converts an array of map[string]interface to an array of AssetProp.
AssetTypeFromMap returns an asset type from a map representation.
AssetTypeList returns a copy of the assetTypeList variable.
AssetTypeListFromArray converts an array of map[string]interface to an array of AssetType.
BuildAssetProp builds an AssetProp from an object with the required fields.
CheckDataType verifies if dataType is valid among the ones availiable in the chaincode.
CheckValue verifies if parameter value is of the expected type.
CustomDataTypes allows cc developer to inject custom primitive data types.
DataTypeMap returns a copy of the primitive data type map.
FetchAssetType returns a pointer to the AssetType object or nil if asset type is not found.
FetchDataType returns a pointer to the DataType object or nil if asset type is not found.
GenerateKey implements the logic to generate an asset's unique key.
GetAssetAdminsDynamicAssetType returns the value of the AssetAdmins field.
GetAssetListUpdateTime returns the last time the asset list was updated.
GetEnabledDynamicAssetType returns the value of the Enabled field.
GetListAssetType returns the Dynamic AssetType meta type.
GetMany fetches assets entries from write set or ledger.
HandlePropUpdate updates an AssetProp with the values of the propMap.
No description provided by the author
InitAssetList appends custom assets to assetTypeList to avoid initialization loop.
InitDynamicAssetTypeConfig initilizes the dynamicAssetTypeConfig variable.
NewAsset constructs Asset object from a map of properties.
NewKey constructs Key object from a map of properties.
PutNewRecursive inserts asset and all its subassets in blockchain This method is experimental and might not work as intended.
PutRecursive inserts asset and all its subassets in blockchain.
RemoveAssetType removes an asset type from an AssetType List and returns the new list.
ReplaceAssetList replace assetTypeList to for a new one.
ReplaceAssetType replaces an asset type from an AssetType List with an updated version and returns the new list This function does not automatically update the assetTypeList variable.
RestoreAssetList restores the assetList from the blockchain.
No description provided by the author
SetAssetListUpdateTime sets the last time the asset list was updated.
StartupCheck verifies if asset definitions are properly coded, returning an error if they're not.
StoreAssetList stores the current assetList on the blockchain.
UpdateAssetList updates the assetTypeList variable on runtime.
UpdateRecursive updates asset and all its subassets in blockchain.
# Structs
AssetProp describes properties of each asset attribute.
AssetType is a list of all asset properties.
DataType is the struct defining a primitive data type.
DynamicAssetType is the configuration for the Dynamic AssetTypes.
No description provided by the author
No description provided by the author