CONTRACT_END

CONTRACT_END() | code​

1
/**
2
* Generates the EOSIO_DISPATCH_SVC list of actions for a smart contract. Intended to be used with CONTRACT_START.
3
*
4
* @param CONTRACT_NAME - contract name for eosio smart contract
5
* @param methods - list of actions to be included in the smart contract's ABI
6
*
7
* @return EOSIO_DISPATCH_SVC list of actions
8
*
9
* Example:
10
*
11
* @code
12
* #define CONTRACT_NAME() oracleconsumer
13
*
14
* CONTRACT_END((testget)(testrnd))
15
* @endcode
16
*/
17
​
18
#define CONTRACT_END(methods) \
19
}; \
20
EOSIO_DISPATCH_SVC(CONTRACT_NAME(),methods)
Copied!
Copy link