npm i -g truffle
truffle init
npm init
npm i -s @openzeppelin/contracts
https://trufflesuite.com/docs/truffle/reference/configuration
To config truffle, truffle-config.js
is created by truffle init
, along with initial contract Migrations.sol, There are some commons settings
--network {networkKey}
argument to use the exact network config. if no argument is provided, development
will be used by default.truffle dashboard
. It will start a webpage and let you sign transactions using metamask rather the raw privatekey or mnemonicWhat’s the difference between truffle console
and truffle develop
:
https://trufflesuite.com/docs/truffle/getting-started/using-truffle-develop-and-the-console/#why-two-different-consoles
https://trufflesuite.com/docs/truffle/getting-started/interacting-with-your-contracts/
Differences between transactions and calls