chaincode

package
v0.0.0-...-f467806 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: MIT Imports: 4 Imported by: 2

Documentation

Index

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

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 (*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

Jump to

Keyboard shortcuts

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