CONTRACT_END

CONTRACT_END() | code

/**
  *  Generates the EOSIO_DISPATCH_SVC list of actions for a smart contract.  Intended to be used with CONTRACT_START.
  *
  *  @param CONTRACT_NAME - contract name for eosio smart contract
  *  @param methods - list of actions to be included in the smart contract's ABI
  *
  *  @return EOSIO_DISPATCH_SVC list of actions
  *
  *  Example:
  *
  *  @code
  *  #define CONTRACT_NAME() oracleconsumer 
  *  
  *  CONTRACT_END((testget)(testrnd))
  *  @endcode
  */

#define CONTRACT_END(methods) \
}; \
EOSIO_DISPATCH_SVC(CONTRACT_NAME(),methods)

Last updated