Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save alexishida/efb3d56c3dfe5b143b053bd0f18b9fe2 to your computer and use it in GitHub Desktop.

Select an option

Save alexishida/efb3d56c3dfe5b143b053bd0f18b9fe2 to your computer and use it in GitHub Desktop.
solidity smartcontracts commands truffle
sudo npm install -D truffle-plugin-verify
plugins: [
'truffle-plugin-verify'
],
api_keys: {
etherscan: 'sdfgsdfg',
polygonscan: 'dfgsdfg'
}
truffle run verify project --network polygonscan
truffle run verify nome_do_contrato --network nome_da_rede
truffle migrate --network nome_da_rede --f 1 --to 1
# https://trufflesuite.com/blog/introducing-truffle-dashboard/
truffle dashboard
truffle migrate --network dashboard
truffle console --network dashboard
# https://github.com/ConsenSys/mythril
sudo apt update
# Install solc
sudo apt install software-properties-common
sudo add-apt-repository ppa:ethereum/ethereum
sudo apt install solc
# Install libssl-dev, python3-dev, and python3-pip
sudo apt install libssl-dev python3-dev python3-pip
# Install mythril
pip3 install mythril
myth --version
# https://github.com/NomicFoundation/truffle-flattener
npm install truffle-flattener -g
truffle-flattener <solidity-files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment