This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <eosiolib/eosio.hpp> | |
#include <eosiolib/print.hpp> | |
using namespace eosio; | |
struct hello : public contract { | |
using contract::contract; | |
void hi( name user ) { | |
print( “Hello, “, user ); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <eosiolib/eosio.hpp> | |
class simpletoken : public eosio::contract { | |
public: | |
simpletoken( account_name self ) | |
:contract(self),_accounts(self, self){} | |
/** User's call this method to transfer tokens */ | |
void transfer( account_name from, account_name to, uint64_t quantity ) { | |
require_auth( from ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ChainTypes.operations= | |
transfer: 0 | |
limit_order_create: 1 | |
short_order_create: 2 | |
limit_order_cancel: 3 | |
short_order_cancel: 4 | |
call_order_update: 5 | |
key_create: 6 | |
account_create: 7 | |
account_update: 8 |