Creating an LC Master smart contract

The LC Master is the singular most important component of our project. It creates new LC smart contracts and keeps track of their current status.

Our smart contract will feature the following components:

  • Struct array 
    • LCDoc[]: To keep track of all LCs issued
  • Methods
    • createLC: To create and deploy a new LC
    • lengthLC: To return the total number of LCs issued
    • viewLC: To view an LC
    • modify LC: To modify the status and current amount of an LC
  • Events
    • CreateLCSuccessful: Event emitted on successful LC creation
    • ModifyLCSuccessful: Event emitted on successful LC modification
  • Modifiers
    • onlyOwner: Allows only the owner access to the method
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.203.172