CONTRACT_START

CONTRACT_START() | code​

1
/**
2
* 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.
3
*
4
* @param CONTRACT_NAME - defines smart contract's name
5
* @param DAPPSERVICES_ACTIONS - specifies DAPP Service actions that must be included to perform a service
6
*
7
* @return eosio::contract class with DAPP service actions defined under DAPPSERVICES_ACTIONS() and CONTRACT_NAME
8
*
9
* Example:
10
*
11
* @code
12
* #define DAPPSERVICES_ACTIONS() \
13
* XSIGNAL_DAPPSERVICE_ACTION \
14
* ORACLE_DAPPSERVICE_ACTIONS
15
*
16
* #define CONTRACT_NAME() oracleconsumer
17
*
18
* CONTRACT_START()
19
* @endcode
20
*/
21
​
22
#define CONTRACT_START() \
23
CONTRACT CONTRACT_NAME() : public eosio::contract { \
24
using contract::contract; \
25
public: \
26
DAPPSERVICES_ACTIONS()
Copied!
Copy link