This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // load status span | |
| let Status = document.getElementById("status"); | |
| // messages for status | |
| const DOWN_START = "File is being downloaded ..."; | |
| const DOWN_SUCCESS = "File is downloaded ..."; | |
| const DOWN_FAIL = "File failed to download with : "; | |
| const UPLOAD_START = "File is being Uploaded "; | |
| const UPLOAD_SUCCESS = "File is Uploaded"; | |
| const UPLOAD_FAILD = "File failed to upload with : "; | |
| // function to update status span |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const HDWalletProvider = require("truffle-hdwallet-provider"); // npm i truffle-hdwallet-provider | |
| const ROPSTEN_MNEMONIC = | |
| "Input your seed phrase here"; | |
| const INFURA_API_KEY = "input your infura api Key here"; | |
| module.exports = { | |
| networks: { | |
| ropsten: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var PublicQueue = artifacts.require("./PublicQueue.sol"); | |
| module.exports = function(deployer) { | |
| deployer.deploy(PublicQueue); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.0; | |
| contract PublicQueue { | |
| struct Transaction { | |
| address tFrom; | |
| address tTo; | |
| uint256 tValue; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const path = require("path"); | |
| module.exports = { | |
| // See <http://truffleframework.com/docs/advanced/configuration> | |
| // to customize your Truffle configuration! | |
| contracts_build_directory: path.join(__dirname, "client/src/contracts"), | |
| networks: { | |
| develop: { | |
| port: 8545 | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var PrivateQueue = artifacts.require("./PrivateQueue.sol"); | |
| module.exports = function(deployer) { | |
| deployer.deploy(PrivateQueue); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.5.0; | |
| contract PrivateQueue { | |
| struct Transaction { | |
| address tFrom; | |
| address tTo; | |
| uint256 tValue; | |
| } | |
| struct Users { |