Discussion (350 words - APA format) + 3 Questions
Professor MichaelG. Solomon
BLCN 631–BlockchainImplementation
EFD Chapter 11–Deploying andMaintatingEthereum Apps
Deploying SmartContracts
- Deploying your smart contract
- Really means deploying to a liveblockchain
- You already deployed to Ganache
- Local testing (Ganache) is only thebeginning
- Good for general testing
- Functional, integration, etc.
- Single user, no miners
Local versus Live Blockchains
Live TestBlockchains
- Ropsten
- Similar to Ethereum mainnet
- Rinkeby
- Proof of Authority (PoA)consensus
- Kovan
- Doesn’t support geth (supportsParity)
ManagingMultipleAccounts
- Multiple blockchains =multiple accounts
- Multiple connections as well
- Infura–provider ofblockchain access
- Multiple networks
- Free
- •https://infura.io/
Setting up Truffle
- Edit truffle-config.js
- Defines multiple networks (blockchains)
- UseInfurainfo
- We’ll define login info in secrets.js
FundingYour TestAccount(s)
- Ether faucet
- Specific to each network
- “Fake” cryptocurrency
- Ropsten faucet
- Verify your account balance
- MetaMask helps here
- Select a network to view balance
CompileandDeploy
- The rest is the same asbefore
- Instead of using thedevelopment network
- Specify another network
- Use the label you definedintruffle-config.js
Summary