Documentation
¶
Index ¶
- type AgreeToBuyView
- type AgreeToBuyViewFactory
- type AgreeToSellView
- type AgreeToSellViewFactory
- type Asset
- type AssetPrice
- type AssetProperties
- type ChangePublicDescription
- type ChangePublicDescriptionView
- type ChangePublicDescriptionViewFactory
- type CreateAsset
- type CreateAssetView
- type CreateAssetViewFactory
- type ReadAsset
- type ReadAssetPrivateProperties
- type ReadAssetPrivatePropertiesView
- type ReadAssetPrivatePropertiesViewFactory
- type ReadAssetView
- type ReadAssetViewFactory
- type Transfer
- type TransferView
- type TransferViewFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgreeToBuyView ¶
type AgreeToBuyView struct {
*AssetPrice
}
type AgreeToBuyViewFactory ¶
type AgreeToBuyViewFactory struct{}
type AgreeToSellView ¶
type AgreeToSellView struct {
*AssetPrice
}
type AgreeToSellViewFactory ¶
type AgreeToSellViewFactory struct{}
type Asset ¶
type Asset struct {
ObjectType string `json:"objectType"` // ObjectType is used to distinguish different object types in the same chaincode namespace
ID string `json:"assetID"`
OwnerOrg string `json:"ownerOrg"`
PublicDescription string `json:"publicDescription"`
}
Asset struct and properties must be exported (start with capitals) to work with contract api metadata
type AssetPrice ¶
type AssetPrice struct {
AssetID string `json:"asset_id"`
TradeID string `json:"trade_id"`
Price uint64 `json:"price"`
}
func (*AssetPrice) Bytes ¶
func (ap *AssetPrice) Bytes() ([]byte, error)
type AssetProperties ¶
type AssetProperties struct {
ObjectType string `json:"objectType"` // ObjectType is used to distinguish different object types in the same chaincode namespace
ID string `json:"assetID"`
Color string `json:"color"`
Size int `json:"size"`
Salt []byte `json:"salt"`
}
func (*AssetProperties) Bytes ¶
func (ap *AssetProperties) Bytes() ([]byte, error)
type ChangePublicDescription ¶
type ChangePublicDescriptionView ¶
type ChangePublicDescriptionView struct {
*ChangePublicDescription
}
type ChangePublicDescriptionViewFactory ¶
type ChangePublicDescriptionViewFactory struct{}
type CreateAsset ¶
type CreateAsset struct {
AssetProperties *AssetProperties
PublicDescription string
}
type CreateAssetView ¶
type CreateAssetView struct {
*CreateAsset
}
type CreateAssetViewFactory ¶
type CreateAssetViewFactory struct{}
type ReadAssetPrivateProperties ¶
type ReadAssetPrivateProperties struct {
ID string
}
type ReadAssetPrivatePropertiesView ¶
type ReadAssetPrivatePropertiesView struct {
*ReadAssetPrivateProperties
}
type ReadAssetPrivatePropertiesViewFactory ¶
type ReadAssetPrivatePropertiesViewFactory struct{}
type ReadAssetView ¶
type ReadAssetView struct {
*ReadAsset
}
type ReadAssetViewFactory ¶
type ReadAssetViewFactory struct{}
type Transfer ¶
type Transfer struct {
Recipient view.Identity
AssetProperties *AssetProperties
AssetPrice *AssetPrice
}
type TransferView ¶
type TransferView struct {
*Transfer
}
type TransferViewFactory ¶
type TransferViewFactory struct{}
Click to show internal directories.
Click to hide internal directories.