Documentation
¶
Index ¶
- type PropertyContract
- func (c *PropertyContract) CreateProperty(ctx contractapi.TransactionContextInterface, propertyId string, plotNumber int, ...) error
- func (c *PropertyContract) DeleteProperty(ctx contractapi.TransactionContextInterface, propertyId string) error
- func (c *PropertyContract) GetAllProperty(ctx contractapi.TransactionContextInterface) ([]*models.Property, error)
- func (c *PropertyContract) PropertyExists(ctx contractapi.TransactionContextInterface, propertyId string) (bool, error)
- func (c *PropertyContract) ReadProperty(ctx contractapi.TransactionContextInterface, id string) (*models.Property, error)
- func (c *PropertyContract) TransferProperty(ctx contractapi.TransactionContextInterface, id string, newOwner string) (string, error)
- func (c *PropertyContract) UpdateProperty(ctx contractapi.TransactionContextInterface, propertyId string, plotNumber int, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PropertyContract ¶
type PropertyContract struct {
contractapi.Contract
}
func (*PropertyContract) CreateProperty ¶
func (c *PropertyContract) CreateProperty( ctx contractapi.TransactionContextInterface, propertyId string, plotNumber int, builder string, owner string, currentPrice float32, sellingPrice float32) error
func (*PropertyContract) DeleteProperty ¶
func (c *PropertyContract) DeleteProperty( ctx contractapi.TransactionContextInterface, propertyId string) error
DeleteProperty deletes an given property from the world state.
func (*PropertyContract) GetAllProperty ¶
func (c *PropertyContract) GetAllProperty( ctx contractapi.TransactionContextInterface, ) ([]*models.Property, error)
GetAllProperty returns all properties found in world state
func (*PropertyContract) PropertyExists ¶
func (c *PropertyContract) PropertyExists( ctx contractapi.TransactionContextInterface, propertyId string) (bool, error)
PropertyExists returns true when property with given ID exists in world state
func (*PropertyContract) ReadProperty ¶
func (c *PropertyContract) ReadProperty( ctx contractapi.TransactionContextInterface, id string, ) (*models.Property, error)
func (*PropertyContract) TransferProperty ¶
func (c *PropertyContract) TransferProperty( ctx contractapi.TransactionContextInterface, id string, newOwner string) (string, error)
func (*PropertyContract) UpdateProperty ¶
func (c *PropertyContract) UpdateProperty( ctx contractapi.TransactionContextInterface, propertyId string, plotNumber int, builder string, owner string, currentPrice float32, sellingPrice float32) error
Click to show internal directories.
Click to hide internal directories.