this is intended to be a shortcut for a responsive dApp interface
in order to enable more focus on what really matters: Smart Contracts and the EVM
it comes with basic truffle configurations
it currently supports only MetaMask
install Truffle
install MetaMask
register at Infura
register at Etherscan
cd to project root
npm i
cd web-app
npm i
there should be two ".env" files in the project
private key to the deployer wallet (in secret recovery phrase format)
mainnet URL provided by Infura RPC provider
goerli URL provided by Infura RPC provider
sepolia URL provided by Infura RPC provider
key provided by Infura RPC provider
key provided by Etherscan for contract code verification
Ethereum lower-cased chain names separated by commas
These are the chains in which the app contracts are deployed, e.g.
REACT_APP_SUPPORTED_CHAINS="mainnet,rinkeby"
If only one chain is supported there should be no comma, e.g.
REACT_APP_SUPPORTED_CHAINS="mainnet"
Contract file names separated by commas
These should be cased exactly like the ".sol" file name, e.g.
REACT_APP_CONTRACTS="MyNFT,Market"
If only one contract exists there should be no comma, e.g.
REACT_APP_CONTRACTS="MyNFT"
number (integer) of confirmation blocks before the app considers an action confirmed
number (integer) of seconds after confirmation block to allow back-end to act before the app retrieves new information
url of backend service (template section to be implemented)
cd to root directory
truffle migrate --reset --network $NETWORK_NAME
where "NETWORK_NAME" is declared in truffle-config.js
truffle develop
truffle test
truffle test --network $NETWORK_NAME
where "NETWORK_NAME" is declared in truffle-config.js
truffle run verify $CONTRACT_NAME --network $NETWORK_NAME
where "CONTRACT_NAME" is the name of your solidity contract file in /contracts/
and "NETWORK_NAME" is declared in truffle-config.js
cd web-app
npm start
npm test
npm run build