Implementation of coffee supplychain using ethereum smart contract addressing the issue of storing critical data necessary at different stages of supplychain and making it verifiable by all stakeholders in supplychain.
/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:138:55: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
function getUserRole(address _userAddress) public onlyAuthCaller view returns(string)
^------------^
,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:144:53: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
function getNextAction(address _batchNo) public onlyAuthCaller view returns(string)
^------------^
,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:171:51: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
function getUser(address _userAddress) public onlyAuthCaller view returns(string name,
^------------^
,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:185:55: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
function getBasicDetails(address _batchNo) public onlyAuthCaller view returns(string registrationNo,
^------------^
,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:240:59: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
function getFarmInspectorData(address batchNo) public onlyAuthCaller view returns (string coffeeFamily,string typeOfSeed,string fertilizerUsed){
^------------^
,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:264:55: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
function getHarvesterData(address batchNo) public onlyAuthCaller view returns(string cropVariety,
^------------^
,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:297:54: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
function getExporterData(address batchNo) public onlyAuthCaller view returns(uint256 quantity,
^------------^
,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:348:54: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
function getImporterData(address batchNo) public onlyAuthCaller view returns(uint256 quantity,
^------------^
,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:400:56: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable.
function getProcessorData( address batchNo) public onlyAuthCaller view returns(
^------------^
Compilation warnings encountered:
/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:138:55: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getUserRole(address _userAddress) public onlyAuthCaller view returns(string) ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:144:53: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getNextAction(address _batchNo) public onlyAuthCaller view returns(string) ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:171:51: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getUser(address _userAddress) public onlyAuthCaller view returns(string name, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:185:55: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getBasicDetails(address _batchNo) public onlyAuthCaller view returns(string registrationNo, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:240:59: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getFarmInspectorData(address batchNo) public onlyAuthCaller view returns (string coffeeFamily,string typeOfSeed,string fertilizerUsed){ ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:264:55: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getHarvesterData(address batchNo) public onlyAuthCaller view returns(string cropVariety, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:297:54: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getExporterData(address batchNo) public onlyAuthCaller view returns(uint256 quantity, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:348:54: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getImporterData(address batchNo) public onlyAuthCaller view returns(uint256 quantity, ^------------^ ,/home/ubuntu/coffee-supplychain-ethereum/contracts/SupplyChainStorage.sol:400:56: Warning: Function declared as view, but this expression (potentially) modifies the state and thus requires non-payable (the default) or payable. function getProcessorData( address batchNo) public onlyAuthCaller view returns( ^------------^