Asset tracking

Ready for Sale

UTILITY TOOLS DOCUMENTS

Contract purpose

The purpose of the contract is to keep a list of assets and their owners. Also the contract has a history of the asset and the past changes of it. The change values are: 0: owner change; 1: new asset; 2: disabled; 3: enabled; 4: put off.

Parameters:

ownerAddress: the owner address

Exposed methods

addAsset adds a new asset; the specified owner must added in a previous move

parameter nametypedetails
assetaddressthe asset address
assetOwneraddressthe asset owner

addOwner adds a new owner that can have an asset disableAsset disable the asset with address

parameter nametypedetails
assetaddressthe asset address

disableOwner disable the owner with address

parameter nametypedetails
disabledOwneraddressthe owner address to disable

enableAsset enable the asset with address

parameter nametypedetails
assetaddressthe asset address

modifyAssetOwner modifies the specified asset with the provided new owner address

parameter nametypedetails
assetaddressthe asset address
newOwneraddressthe new asset owner

history gets the history changes for the provided asset address

parameter nametypedetails
assetaddressthe history for asset address

owner gets the contract owner owners get if the provided address is an owner

parameter nametypedetails
addressaddressthe owner address

Example:

Initial: ownerAddress: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c

Add asset:

asset: 0xdd870fa1b7c4700f2bd7f44238821c26f7392148
assetOwner: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c

Reviewed by Modex
Buy

Copyright © Modex Marketplace