AntelopeIO / DUNES

Docker Utilities for Node Execution
Other
26 stars 20 forks source link

Fill ricardian and clause files from comments in C++ files #118

Open jolly-fellow opened 1 year ago

jolly-fellow commented 1 year ago

Create a tool or add a feature to an existing tool which will fill ricardian and clause files from a comment to a contract declaration in C++ file. It is very boring to copy similar text two times and IMHO these descriptions are very useful to see in C++ code. It could looks like:

// $clause "Data Usage": This smart contract will store user data. The smart contract will not use the stored data for any purpose outside store and delete.
class[[eosio::contract("tictactoe")]] tictactoe : public contract {

// $ricardian: This action launches a new game and creates a new game board array. The host may use this command.
[[eosio::action]]
void create(const name &challenger, name &host);