
Contract purpose:
The purpose of the contract is to track a list of documents, their site location, folder address and section. Also the contract has a history of the document and the past changes of it.
Contract Parameters:
ownerAddress: the contract owner address
Exposed methods:
addDocument adds a new document
parameter name | type | details |
---|---|---|
document | address | the document address |
site | uint | the site id |
location | uint | the location id |
folder | uint | the folder id |
section | uint | the section id |
changeDocumentFolder sets new folder for the specified document
parameter name | type | details |
---|---|---|
document | address | the document address |
folder | uint | the folder id |
changeDocumentLocation sets new location for the specified document
parameter name | type | details |
---|---|---|
document | address | the document address |
location | uint | the location id |
changeDocumentSection sets new section for the specified document
parameter name | type | details |
---|---|---|
document | address | the document address |
section | uint | the section id |
changeDocumentSite sets new site for the specified document
parameter name | type | details |
---|---|---|
document | address | the document address |
site | uint | the site id |
moveDocument sets multiple parameters for the specified document
parameter name | type | details |
---|---|---|
document | address | the document address |
site | uint | the site id |
location | uint | the location id |
folder | uint | the folder id |
section | uint | the section id |
purgeDocument disables a specified document
parameter name | type | details |
---|---|---|
document | address | the document address |
history gets the history for a specified document address
parameter name | type | details |
---|---|---|
document | address | the document address |
owner gets the contract owner
input parameters:
parameter name | type | details |
---|---|---|
document | address | the document address |
documentOwner | address | the document owner |
addOwner adds a new owner that can have an document disableDocument disable the document with address
input parameters:
parameter name | type | details |
---|---|---|
document | address | the document address |
disableOwner disable the owner with address
input parameters:
parameter name | type | details |
---|---|---|
disabledOwner | address | the owner address to disable |
enableDocument enable the document with address
input parameters:
parameter name | type | details |
---|---|---|
document | address | the document address |
modifyDocumentOwner modifies the specified document with the provided new owner address
input parameters:
parameter name | type | details |
---|---|---|
document | address | the document address |
newOwner | address | the new document owner |
history gets the history changes for the provided document address
input parameters:
parameter name | type | details |
---|---|---|
document | address | the history for document address |
owner gets the contract owner owners get if the provided address is an owner
input parameters:
parameter name | type | details |
---|---|---|
address | address | the owner address |
Example:
Initial:ownerAddress: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c
Add document:
document: 0xdd870fa1b7c4700f2bd7f44238821c26f7392148
documentOwner: 0xca35b7d915458ef540ade6068dfe2f44e8fa733c