This article environment:
Blockchain version: Ethereum POA alliance chain
Node version: geth 1.9.19
The contract source code of this article: Reference document " The 39th defi actual combat-pledge mining smart contract (part 1) "
nodejs version: v10.14.0
Operating system: windows 64
1. Write and compile smart contracts
1.1 Use solc to deploy smart contracts
For details, see the previous part " How to compile smart contracts through solc ".
1.2 Use remix to compile smart contracts
For detailed steps, please refer to the document " Part 27 Consortium Chain + metamask + remix Playing Smart Contracts ".
After the contract in this article is imported, the successful compilation interface is:
As you can see from the figure,