CONTRACT_START

CONTRACT_START() | code​

/**
* Wraps the eosio::contract class and provides the DAPP service actions needed for each service utilized as well as a specified CONTRACT_NAME. Intended to be used with CONTRACT_END.
*
* @param CONTRACT_NAME - defines smart contract's name
* @param DAPPSERVICES_ACTIONS - specifies DAPP Service actions that must be included to perform a service
*
* @return eosio::contract class with DAPP service actions defined under DAPPSERVICES_ACTIONS() and CONTRACT_NAME
*
* Example:
*
* @code
* #define DAPPSERVICES_ACTIONS() \
* XSIGNAL_DAPPSERVICE_ACTION \
* ORACLE_DAPPSERVICE_ACTIONS
*
* #define CONTRACT_NAME() oracleconsumer
*
* CONTRACT_START()
* @endcode
*/
​
#define CONTRACT_START() \
CONTRACT CONTRACT_NAME() : public eosio::contract { \
using contract::contract; \
public: \
DAPPSERVICES_ACTIONS()