Featured Image
Featured Image

EOS 1.3 Contract Development Toolkit Updates

The EOSIO Contract Development Toolkit, which serves as the way to compile your smart contracts in the future, recently released the new 1.32 Version with quite some breaking changes. The changes were made to prepare the binary release of the toolkit, so you don’t have to compile the toolkit yourself anymore, and to clean up some code. For example, some oddities were removed from the EOS code like the N macro and other typedefs while making the creation of an ABI easier with the ACTION, TABLE and CONTRACT macros.

Furthermore, the eosio::contract constructor changed and with the EOSIO_ABI macro rename to EOSIO_DISPATCH and the removal of the currency class, it left many contract developers puzzled how to listen to eosio.token transfers in their smart contracts. The EOSIO.CDT v1.3 way to dispatch both your internal actions and listen to eosio.token::transfer actions looks like this:

I created a yeoman generator generator-eos that scaffolds new EOS smart contract projects and works with the latest version of EOS Contract Developer Toolkit. It runs using Node.js and includes some helpful NPM scripts like automatically creating actions to run based on your contract's ABI.

Learn EOS Development Signup
Learn EOS Development Signup

Originally published at cmichel.io

Medium Clap
Medium Clap

Written by

Full Stack Software Engineer #javascript #EOS. Into Recreational Math / CS 🤯 Just message me about anything, my mind is open.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store