#include <eosiolib/eosio.hpp>
#include<string>
#include <eosiolib/asset.hpp>
using namespace eosio;
class token : public eosio::contract {
private :
// @abi table accounts
struct account {
account_name owner;
asset balance;
uint64_t primary_key()const {return owner;}
};
void add_balance(account_name payer, account_name to, asset quantity, std::string memo);
void sub_balance(account_name payer, account_name to, asset quantity, std::string memo);
public:
token(account_name self): contract(self){}
typedef eosio::multi_index<N(accounts), account>_accounts;
void issue(account_name to, asset quantity, std::string memo);
void transfer (account_name from, account_name to, asset quantity, std::string memo);
};
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
If you enjoyed what you read here, create your account today and start earning FREE STEEM!