JIN SEONG KIM avatar

simple.token.hpp Table 정의

blowist

Published: 18 Sept 2018 › Updated: 18 Sept 2018simple.token.hpp Table 정의

simple.token.hpp Table 정의

#include 
#include
#include 

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);

 }; 

Leave simple.token.hpp Table 정의 to:

Written by

Read more #eos posts


Best Posts From JIN SEONG KIM

We have not curated any of blowist's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From JIN SEONG KIM