Creating the Necessary Block Scoped Constants
Describing Code :
Line 2 to 50 define various variables under the Home function to assign and set values ,
const
is a signal that the variables won’t be reassigned and React useState Hook allows us to track state of various values assigned to variables.Here is the list of variables and their description
message
: Track Messagebalance
: Track Wallet BalanceallocationList
: Track List of AllocationsselectedAllocation
: Track Selected AllocationallocationDetails
: Track Allocation DetailsfilesForUpload
: TrackList of files selected for uploadfileList
: Track all available files.destFileList
: Track list of all files available at the destination.selectedFile
: Track the selected file by the user.clientId
: Track value of wallet clientIDprivateKey
: Track Value of wallet private key.publicKey
: Track Value of wallet public key.sendTo
: Track value of sendTo Wallet Client IDsendAmount
: Track the amount send to sender's wallet.authTicket
: Track the wallet AuthTicket.allocationSize
: Track allocation Size.Current is 2GBdirName:
Track directory name ("/test");output
: Track output .encryptKey
: Track Wallet Encryption Keymnemonic
: Track Wallet Mnemonic PhrasetxHash
: Track Transaction HashconfigJson
: Contains data related to Züs network configuration in json format.config
: Contains data related to Züs network config.
Note : the set variables for all the variables described above set values provided by use state.
Last updated