Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Openzeppelin SDK and Truffle?

For smart contract development, what is the difference between Openzeppelin SDK and Truffle? When should I use one or another, or both together?

like image 921
tinker Avatar asked Oct 22 '19 14:10

tinker


2 Answers

Keeping things simple:

Truffle is a setup tool you can use to develop smart contracts, but doesn't touch Solidity code at all. It is like Cargo to Rust or npm/yarn to NodeJS.

OpenZeppelin is a well-tested set of libraries written in Solidity that you can import to your smart contracts while code is potentially being generated, maintained and deployed by truffle.

like image 63
Molina Avatar answered Nov 18 '22 16:11

Molina


OpenZeppelin Contracts: library of SmartContracts, that can be inherited and used to develop upon;

OpenZeppelin SDK: is former ZeppelinOS, it is SDK to help development process;

Truffle SDK: is well-known SDK to help development process as well. Besides SDK Truffle has other great projects as Ganache.

Spend some time to read documentation - it is very clear documented.

PS: ZeppelinOS was first SDK, that allowed to develop Upgradable Smart Contracts - really cool (https://medium.com/coinmonks/how-to-create-an-upgradeable-smart-contract-using-openzeppelin-sdk-example-of-fixing-smart-260dfbfd5bae)

enter image description here

like image 25
Vanja Dev Avatar answered Nov 18 '22 17:11

Vanja Dev