diff --git a/contracts/currency/currency.cpp b/contracts/currency/currency.cpp index 73f42b779b2932f8a1b27f7977df8a969afc2356..2e0dac4408dc65ccec2a46d4da0ec47facde395a 100644 --- a/contracts/currency/currency.cpp +++ b/contracts/currency/currency.cpp @@ -37,11 +37,11 @@ extern "C" { storeAccount( N(currency), Account( CurrencyTokens(1000ll*1000ll*1000ll) ) ); } - /// The apply method implements the dispatch of events to this contract - void apply( uint64_t code, uint64_t action ) { - if( code == N(currency) ) { - if( action == N(transfer) ) - currency::apply_currency_transfer( currentMessage< TOKEN_NAME::Transfer >() ); - } - } + /// The apply method implements the dispatch of events to this contract + void apply( uint64_t code, uint64_t action ) { + if( code == N(currency) ) { + if( action == N(transfer) ) + currency::apply_currency_transfer( currentMessage< TOKEN_NAME::Transfer >() ); + } + } } diff --git a/contracts/eoslib/contracts.dox b/contracts/eoslib/contracts.dox index 115478426a1988846843d8237f10567ab11ccb5c..b47d857ab05688767585a7395983cae81f3061a5 100644 --- a/contracts/eoslib/contracts.dox +++ b/contracts/eoslib/contracts.dox @@ -21,31 +21,22 @@ @subsection programentry Entry Points - EOS.IO applications have three potential starting points that behave like `main` in traditional applications: + EOS.IO applications have a `apply` which is like `main` in traditional applications: ``` extern "C" { - void validate( uint64_t code, uint64_t action ); - void precondition( uint64_t code, uint64_t action ); + void init(); void apply( uint64_t code, uint64_t action ); } ``` - Each of these entry points is give the arguments `code` and `action` which uniquely identify every event in - the system. For example, code could be a `currency` contract and action could be `transfer`. This event (code,action) + `main` is give the arguments `code` and `action` which uniquely identify every event in + the system. For example, `code` could be a *currency* contract and `action` could be *transfer*. This event (code,action) may be passed to several contracts including the `sender` and `receiver`. It is up to your application to figure out what to do in response to such an event. - Each handler has a different level of access to blockchain state: - - - **validate** can only access the data on the message itself - - **precondition** only has read access to the database and message - - **apply** has read/write access to the database - - These three different handlers enable EOS.IO to maximize the amount of potential parallelism possible and it may - make sense to move computationaly expensive validations to either precondition or validate. That said, most developers - can postpone learning about `validate` and `precondition` as anything that can be done in those entry points can also - be performed in `apply`. + `init` is another entry point that is called once immediately after loading the code. It is where you should perform + one-time initialization of state. ### Example Apply Entry Handler diff --git a/contracts/eoslib/rpc.dox b/contracts/eoslib/rpc.dox index 517e35a3174e49f94da6fa26a67da18a9c2c51cc..5078e37f418ffa180e89e1fba6a3685720e7be80 100644 --- a/contracts/eoslib/rpc.dox +++ b/contracts/eoslib/rpc.dox @@ -31,6 +31,7 @@ ``` { "head_block_num":449, + "last_irreversible_block_num": 434, "head_block_id":"000001c1a0f072a5ca76831ac6c6e2988efcf162e953eb40046ec2ceca817a9f", "head_block_time":"2017-07-18T21:02:24", "head_block_producer":"initd", diff --git a/docs/currency_8hpp.html b/docs/currency_8hpp.html index 76e2540add7acbb047e5841c9f565016ac2b167b..38b755aa90ca5ddc2639d2273a7792646d44ce3d 100644 --- a/docs/currency_8hpp.html +++ b/docs/currency_8hpp.html @@ -99,10 +99,10 @@ Macros - - - - + + + +

Typedefs

typedef eos::token< uint64_t, N(currency)> TOKEN_NAME::CurrencyTokens
 
using TOKEN_NAME::Accounts = Table< N(currency), N(currency), N(account), Account, uint64_t >
 
typedef eos::token< uint64_t, N(currency)> TOKEN_NAME::CurrencyTokens
 
using TOKEN_NAME::Accounts = Table< N(currency), N(currency), N(account), Account, uint64_t >
 
diff --git a/docs/currency_8hpp_source.html b/docs/currency_8hpp_source.html index 00b6e4b090c54f1fdbf10c33298c9b193f3c014b..6e8bfe8711c274ca1cd2f44bc2f9517d3e191490 100644 --- a/docs/currency_8hpp_source.html +++ b/docs/currency_8hpp_source.html @@ -66,14 +66,15 @@ $(function() {
currency.hpp
-Go to the documentation of this file.
1 #include <eoslib/eos.hpp>
2 #include <eoslib/token.hpp>
3 #include <eoslib/db.hpp>
4 
8 #ifndef TOKEN_NAME
9 #define TOKEN_NAME currency
10 #endif
11 
12 namespace TOKEN_NAME {
13 
15 
20  struct Transfer {
23  CurrencyTokens quantity;
24  };
25 
29  struct Account {
30  Account( CurrencyTokens b = CurrencyTokens() ):balance(b){}
31 
35  const uint64_t key = N(account);
36  CurrencyTokens balance;
37 
38  bool isEmpty()const { return balance.quantity == 0; }
39  };
40  static_assert( sizeof(Account) == sizeof(uint64_t)+sizeof(CurrencyTokens), "unexpected packing" );
41 
43 
53  inline Account getAccount( AccountName owner ) {
54  Account account;
56  Accounts::get( account, owner );
57  return account;
58  }
59 
60 }
61 
CurrencyTokens quantity
Definition: currency.hpp:23
+Go to the documentation of this file.
1 #include <eoslib/eos.hpp>
2 #include <eoslib/token.hpp>
3 #include <eoslib/db.hpp>
4 
8 #ifndef TOKEN_NAME
9 #define TOKEN_NAME currency
10 #endif
11 
12 namespace TOKEN_NAME {
13 
15 
20  struct Transfer {
23  CurrencyTokens quantity;
24  };
25 
29  struct Account {
30  Account( CurrencyTokens b = CurrencyTokens() ):balance(b){}
31 
35  const uint64_t key = N(account);
36  CurrencyTokens balance;
37 
38  bool isEmpty()const { return balance.quantity == 0; }
39  };
40  static_assert( sizeof(Account) == sizeof(uint64_t)+sizeof(CurrencyTokens), "unexpected packing" );
41 
43 
53  inline Account getAccount( AccountName owner ) {
54  Account account;
56  Accounts::get( account, owner );
57  return account;
58  }
59 
60 }
61 
CurrencyTokens quantity
Definition: currency.hpp:23
#define N(X)
used to generate a compile time uint64_t from the base32 encoded string interpretation of X ...
Definition: types.hpp:45
-
CurrencyTokens balance
Definition: currency.hpp:36
uint64_t AccountName
Definition: types.h:18
+
CurrencyTokens balance
Definition: currency.hpp:36
Defines types and ABI for standard token messages and database tables.
NumberType quantity
Definition: token.hpp:33
+
eos::token< uint64_t, N(currency)> CurrencyTokens
Definition: currency.hpp:14
AccountName to
Definition: currency.hpp:22
unsigned long long uint64_t
Definition: types.h:11
bool isEmpty() const
Definition: currency.hpp:38
@@ -84,7 +85,6 @@ $(function() {
Account(CurrencyTokens b=CurrencyTokens())
Definition: currency.hpp:30
AccountName from
Definition: currency.hpp:21
-
eos::token< uint64_t, N(currency)> CurrencyTokens
Definition: currency.hpp:14
defines a type-safe C++ wrapper around the Database C API
Definition: db.hpp:112
static bool get(const PrimaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:178
diff --git a/docs/dir_a9257b511e702fbd3462fee4a063915c.html b/docs/dir_a9257b511e702fbd3462fee4a063915c.html index 2bb3ba9532e96e1e836d6f04765d643f1703ec95..b47c281029b012c72881cd23c1c58afbba53c037 100644 --- a/docs/dir_a9257b511e702fbd3462fee4a063915c.html +++ b/docs/dir_a9257b511e702fbd3462fee4a063915c.html @@ -73,7 +73,7 @@ Files
- +

Functions

 
file  currency.hpp [code]
 
file  currency.wast.hpp [code]
file  currency.wast.hpp [code]
 
diff --git a/docs/dir_ae9b15dd87e066e1908bbd90e8f38627.html b/docs/dir_ae9b15dd87e066e1908bbd90e8f38627.html index a51796f3c82938568cbd141c11f8d1a39c8e7205..1b419d756ab48f8d86d2f2c24163801297350958 100644 --- a/docs/dir_ae9b15dd87e066e1908bbd90e8f38627.html +++ b/docs/dir_ae9b15dd87e066e1908bbd90e8f38627.html @@ -79,6 +79,8 @@ Directories   directory  social   +directory  system diff --git a/docs/exchange_8hpp_source.html b/docs/exchange_8hpp_source.html index 762c0514d6abca8a8263b05886428de34c359547..d916db1e5634622c40ce50c1a39339806656dc6e 100644 --- a/docs/exchange_8hpp_source.html +++ b/docs/exchange_8hpp_source.html @@ -66,7 +66,7 @@ $(function() {
exchange.hpp
-Go to the documentation of this file.
1 #include <currency/currency.hpp>
2 
3 namespace exchange {
4 
7 
8  struct OrderID {
11  };
12 
14 
15  struct PACKED( Bid ) {
16  OrderID buyer;
17  Price price;
18  eos::Tokens quantity;
19  Time expiration;
20 
21  void print() {
22  eos::print( "{ quantity: ", quantity, ", price: ", price, " }" );
23  }
24  };
25  static_assert( sizeof(Bid) == 32+12, "unexpected padding" );
26 
27  struct PACKED( Ask ) {
28  OrderID seller;
29  Price price;
30  CurrencyTokens quantity;
31  Time expiration;
32 
33  void print() {
34  eos::print( "{ quantity: ", quantity, ", price: ", price, " }" );
35  }
36  };
37  static_assert( sizeof(Ask) == 32+12, "unexpected padding" );
38 
39  struct PACKED( Account ) {
40  Account( AccountName o = AccountName() ):owner(o){}
41 
42  AccountName owner;
43  EosTokens eos_balance;
44  CurrencyTokens currency_balance;
45  uint32_t open_orders = 0;
46 
47  bool isEmpty()const { return ! ( bool(eos_balance) | bool(currency_balance) | open_orders); }
48  };
49 
51 
52  TABLE2(Bids,exchange,exchange,bids,Bid,BidsById,OrderID,BidsByPrice,Price);
53  TABLE2(Asks,exchange,exchange,bids,Ask,AsksById,OrderID,AsksByPrice,Price);
54 
55 
56  struct BuyOrder : public Bid { uint8_t fill_or_kill = false; };
57  struct SellOrder : public Ask { uint8_t fill_or_kill = false; };
58 
59 
60  inline Account getAccount( AccountName owner ) {
61  Account account(owner);
62  Accounts::get( account );
63  return account;
64  }
65 }
66 
Definition: social.cpp:39
+Go to the documentation of this file.
1 #include <currency/currency.hpp>
2 
3 namespace exchange {
4 
7 
8  struct OrderID {
11  };
12 
14 
15  struct PACKED( Bid ) {
16  OrderID buyer;
17  Price price;
18  eos::Tokens quantity;
19  Time expiration;
20 
21  void print() {
22  eos::print( "{ quantity: ", quantity, ", price: ", price, " }" );
23  }
24  };
25  static_assert( sizeof(Bid) == 32+12, "unexpected padding" );
26 
27  struct PACKED( Ask ) {
28  OrderID seller;
29  Price price;
30  CurrencyTokens quantity;
31  Time expiration;
32 
33  void print() {
34  eos::print( "{ quantity: ", quantity, ", price: ", price, " }" );
35  }
36  };
37  static_assert( sizeof(Ask) == 32+12, "unexpected padding" );
38 
39  struct PACKED( Account ) {
40  Account( AccountName o = AccountName() ):owner(o){}
41 
42  AccountName owner;
43  EosTokens eos_balance;
44  CurrencyTokens currency_balance;
45  uint32_t open_orders = 0;
46 
47  bool isEmpty()const { return ! ( bool(eos_balance) | bool(currency_balance) | open_orders); }
48  };
49 
51 
52  TABLE2(Bids,exchange,exchange,bids,Bid,BidsById,OrderID,BidsByPrice,Price);
53  TABLE2(Asks,exchange,exchange,bids,Ask,AsksById,OrderID,AsksByPrice,Price);
54 
55 
56  struct BuyOrder : public Bid { uint8_t fill_or_kill = false; };
57  struct SellOrder : public Ask { uint8_t fill_or_kill = false; };
58 
59 
60  inline Account getAccount( AccountName owner ) {
61  Account account(owner);
62  Accounts::get( account );
63  return account;
64  }
65 }
66 
Definition: social.cpp:39
uint64_t AccountName
Definition: types.h:18
uint32_t Time
Definition: types.h:21
defines a fixed precision price between two tokens.
Definition: token.hpp:81
@@ -74,6 +74,7 @@ $(function() {
TABLE2(Bids, exchange, exchange, bids, Bid, BidsById, OrderID, BidsByPrice, Price)
eos::price< EosTokens, CurrencyTokens > Price
Definition: exchange.hpp:13
+
eos::token< uint64_t, N(currency)> CurrencyTokens
Definition: currency.hpp:14
unsigned long long uint64_t
Definition: types.h:11
eos::token< uint64_t, N(eos)> Tokens
Definition: token.hpp:133
unsigned long uint32_t
Definition: types.h:12
@@ -84,7 +85,6 @@ $(function() {
Definition: exchange.hpp:8
void print(const char *ptr)
Definition: print.hpp:10
-
eos::token< uint64_t, N(currency)> CurrencyTokens
Definition: currency.hpp:14
Definition: exchange.hpp:57
Definition: exchange.hpp:56
defines a type-safe C++ wrapper around the Database C API
Definition: db.hpp:112
diff --git a/docs/files.html b/docs/files.html index 7cadbe5dad4e87e3c2273fe350428d36cfa2aef3..654501fae1040dfc39f128f3342bb40f073e0ace 100644 --- a/docs/files.html +++ b/docs/files.html @@ -68,7 +68,7 @@ $(function() {   currency  currency.cpp  currency.hpp - currency.wast.hpp + currency.wast.hpp   eos  eos.cpp   eoslib @@ -90,6 +90,10 @@ $(function() {  exchange.wast.hpp   social  social.cpp +  system + currency.wast.hpp + system.cpp + system.hpp
diff --git a/docs/functions.html b/docs/functions.html index 3cbecffd08b163a35d71eed80102b0447bcc611c..b3fb2c9f73d458530fb4f69ff0203ed7d9a94cd4 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -89,7 +89,7 @@ $(function() { : table_impl< sizeof(uint128_t), sizeof(uint128_t)>
  • balance -: TOKEN_NAME::Account +: TOKEN_NAME::Account
  • base_token_type : eos::price< BaseToken, QuoteToken > @@ -165,7 +165,7 @@ $(function() {

    - k -

    diff --git a/docs/functions_vars.html b/docs/functions_vars.html index a57d4eaaeea1da5d563da916f140c7bea5d8b3e2..79143902431e8770465ae759529b0a42912112f1 100644 --- a/docs/functions_vars.html +++ b/docs/functions_vars.html @@ -73,7 +73,7 @@ $(function() {

    - b -

    @@ -112,7 +112,7 @@ $(function() {

    - k -

    diff --git a/docs/globals.html b/docs/globals.html index 15bde06359f93557a228401aab38817366d6345d..e7f816b22849682e5173f6529720d3f044da32c2 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -66,6 +66,7 @@ $(function() {
  • apply() : currency.cpp +, system.cpp , exchange.cpp
  • apply_social_post() @@ -95,7 +96,7 @@ $(function() {

    - c -

  • diff --git a/docs/globals_func.html b/docs/globals_func.html index 293073038956f80fd8cee33ac50f9e10dea78aab..dc1a07f17fe66720568b537b35748ce4afb52ed1 100644 --- a/docs/globals_func.html +++ b/docs/globals_func.html @@ -64,6 +64,7 @@ $(function() {
  • apply() : currency.cpp , exchange.cpp +, system.cpp
  • apply_social_post() : social.cpp @@ -120,6 +121,7 @@ $(function() {

    - i -

    diff --git a/docs/globals_vars.html b/docs/globals_vars.html index 37db4b9c998424af6d01045f895fec4e43f77436..368fb8e8d11d5aa275b1dfed5e9c292a3e912635 100644 --- a/docs/globals_vars.html +++ b/docs/globals_vars.html @@ -60,7 +60,7 @@ $(function() {
     
    -Go to the documentation of this file.
    1 #pragma once
    2 #include <eoslib/message.h>
    3 #include <eoslib/print.hpp>
    4 
    5 namespace eos {
    6 
    21  template<typename T>
    23  T value;
    24  auto read = readMessage( &value, sizeof(value) );
    25  assert( read >= sizeof(value), "message shorter than expected" );
    26  return value;
    27  }
    28 
    31 
    41  template<typename... Accounts>
    42  void requireNotice( AccountName name, Accounts... accounts ){
    43  requireNotice( name );
    44  requireNotice( accounts... );
    45  }
    46 
    47 
    49 
    50 } // namespace eos
    +Go to the documentation of this file.
    1 #pragma once
    2 #include <eoslib/message.h>
    3 #include <eoslib/print.hpp>
    4 
    5 namespace eos {
    6 
    21  template<typename T>
    23  T value;
    24  auto read = readMessage( &value, sizeof(value) );
    25  assert( read >= sizeof(value), "message shorter than expected" );
    26  return value;
    27  }
    28 
    31 
    41  template<typename... Accounts>
    42  void requireNotice( AccountName name, Accounts... accounts ){
    43  requireNotice( name );
    44  requireNotice( accounts... );
    45  }
    46 
    47 
    49 
    50 } // namespace eos
    uint64_t AccountName
    Definition: types.h:18
    -
    Table< N(currency), N(currency), N(account), Account, uint64_t > Accounts
    Definition: currency.hpp:42
    void requireNotice(AccountName)
    uint32_t readMessage(void *msg, uint32_t len)
    +
    Table< N(currency), N(currency), N(account), Account, uint64_t > Accounts
    Definition: currency.hpp:42
    Definition: math.hpp:4
    void assert(uint32_t test, const char *cstr)
    void requireNotice(AccountName name, Accounts... accounts)
    Definition: message.hpp:42
    diff --git a/docs/namespace_t_o_k_e_n___n_a_m_e.html b/docs/namespace_t_o_k_e_n___n_a_m_e.html index a7e8a103cc82d1a9c1cd87b6ceb9d85efe6a7588..f03b80b083b1d8937da89816cd8afba6cd74d052 100644 --- a/docs/namespace_t_o_k_e_n___n_a_m_e.html +++ b/docs/namespace_t_o_k_e_n___n_a_m_e.html @@ -80,10 +80,10 @@ Classes - - - - + + + +

    Typedefs

    typedef eos::token< uint64_t, N(currency)> CurrencyTokens
     
    using Accounts = Table< N(currency), N(currency), N(account), Account, uint64_t >
     
    typedef eos::token< uint64_t, N(currency)> CurrencyTokens
     
    using Accounts = Table< N(currency), N(currency), N(account), Account, uint64_t >
     
    @@ -96,28 +96,28 @@ Functions

    Functions

     

    Typedef Documentation

    - -

    ◆ Accounts

    + +

    ◆ Accounts

    - +
    using TOKEN_NAME::Accounts = typedef Table<N(currency),N(currency),N(account),Account,uint64_t>typedef Table< N(currency), N(currency), N(account), Account, uint64_t > TOKEN_NAME::Accounts
    - -

    ◆ CurrencyTokens

    + +

    ◆ CurrencyTokens

    @@ -141,6 +141,10 @@ Functions

    token subtraction has underflow assertion

    +

    token addition has overflow assertion

    +

    token subtraction has underflow assertion

    +

    token addition has overflow assertion

    +

    token subtraction has underflow assertion

    token addition has overflow assertion

    @@ -171,6 +175,8 @@ Functions

    Accounts information for owner is stored:

    owner/TOKEN_NAME/account/account -> Account

    This API is made available for 3rd parties wanting read access to the users balance. If the account doesn't exist a default constructed account will be returned.

    +

    scope, record

    +

    scope, record

    scope, record

    @@ -201,6 +207,10 @@ Functions

    value, scope

    +

    value, scope

    +

    value, scope

    +

    value, scope

    +

    value, scope

    value, scope

    diff --git a/docs/namespacemembers.html b/docs/namespacemembers.html index 54f86cfbf21b61721e5deec0c54660447868cb37..d1bc851e27a268ddcc955105c6a6b2c0faafce91 100644 --- a/docs/namespacemembers.html +++ b/docs/namespacemembers.html @@ -63,7 +63,7 @@ $(function() {

    - a -

    • Accounts : exchange -, TOKEN_NAME +, TOKEN_NAME
    • apply_currency_transfer() : exchange @@ -83,7 +83,7 @@ $(function() {

      - c -

      • CurrencyTokens -: TOKEN_NAME +: TOKEN_NAME
      • currentMessage() : eos diff --git a/docs/namespacemembers_type.html b/docs/namespacemembers_type.html index 7241492868f33147636ed955b0baa86af40d76d1..a17fd87a865e571a35756fa709e54517fbbb41a2 100644 --- a/docs/namespacemembers_type.html +++ b/docs/namespacemembers_type.html @@ -61,10 +61,10 @@ $(function() {  
        • Accounts : exchange -, TOKEN_NAME +, TOKEN_NAME
        • CurrencyTokens -: TOKEN_NAME +: TOKEN_NAME
        • EosTokens : exchange diff --git a/docs/search/all_0.js b/docs/search/all_0.js index 1a622f93acf72ff5923ae7fcb9a252acc58bc241..a9d748b0fd5f06f2f5dec465b6b0f46f3a46d0e4 100644 --- a/docs/search/all_0.js +++ b/docs/search/all_0.js @@ -1,10 +1,10 @@ var searchData= [ - ['account',['Account',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html',1,'TOKEN_NAME::Account'],['../struct_account.html',1,'Account'],['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#acc96b530db9c63a37c07de6b062c2e9d',1,'TOKEN_NAME::Account::Account()']]], + ['account',['Account',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html',1,'TOKEN_NAME::Account'],['../struct_account.html',1,'Account'],['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#acc96b530db9c63a37c07de6b062c2e9d',1,'TOKEN_NAME::Account::Account(CurrencyTokens b=CurrencyTokens())'],['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#acc96b530db9c63a37c07de6b062c2e9d',1,'TOKEN_NAME::Account::Account(CurrencyTokens b=CurrencyTokens())']]], ['accountname',['AccountName',['../types_8h.html#ad67b43dc23285b01176f4c181c59fc23',1,'types.h']]], - ['accounts',['Accounts',['../namespace_t_o_k_e_n___n_a_m_e.html#a90f15481940a6f47f7f86fe0ab21bda4',1,'TOKEN_NAME::Accounts()'],['../namespaceexchange.html#a3e8714151a75109ae4a632aca1f17f4f',1,'exchange::Accounts()']]], + ['accounts',['Accounts',['../namespace_t_o_k_e_n___n_a_m_e.html#a7d3c8dd83df1817c27e7a732110b964d',1,'TOKEN_NAME::Accounts()'],['../namespaceexchange.html#a3e8714151a75109ae4a632aca1f17f4f',1,'exchange::Accounts()']]], ['action_5ftype',['action_type',['../structeos_1_1_transfer.html#aaac21d57f1ccb0f7970bbf01e5b04e56',1,'eos::Transfer']]], - ['apply',['apply',['../currency_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): currency.cpp'],['../exchange_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): exchange.cpp']]], + ['apply',['apply',['../currency_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): currency.cpp'],['../exchange_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): exchange.cpp'],['../system_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): system.cpp']]], ['apply_5fcurrency_5ftransfer',['apply_currency_transfer',['../namespace_t_o_k_e_n___n_a_m_e.html#ad480ac2ff519e253e8d947fca896a12f',1,'TOKEN_NAME::apply_currency_transfer()'],['../namespaceexchange.html#a7d1831d86ebf1c90cc808e7dbab7b33d',1,'exchange::apply_currency_transfer()']]], ['apply_5feos_5ftransfer',['apply_eos_transfer',['../namespaceexchange.html#a7cd292ab951651316cbdaab066d73f22',1,'exchange']]], ['apply_5fexchange_5fbuy',['apply_exchange_buy',['../namespaceexchange.html#a144bb14807f5677faf9d569813f9294e',1,'exchange']]], diff --git a/docs/search/all_1.js b/docs/search/all_1.js index 10a388f65360d13cfbbbf189eb7911057e2a1a78..cc1a3bb9e1106d3ecb6625fc633d7f89fc26c38b 100644 --- a/docs/search/all_1.js +++ b/docs/search/all_1.js @@ -6,7 +6,7 @@ var searchData= ['back_5fprimary_5fi128i128',['back_primary_i128i128',['../group__dbi128i128.html#gaf0a1acf3fb55de991ed41f5b4b6b33fd',1,'db.h']]], ['back_5fsecondary',['back_secondary',['../structtable__impl_3_01sizeof_07uint128__t_08_00_01sizeof_07uint128__t_08_4.html#a4984b3adead4882fee83286c35f2c323',1,'table_impl< sizeof(uint128_t), sizeof(uint128_t)>']]], ['back_5fsecondary_5fi128i128',['back_secondary_i128i128',['../group__dbi128i128.html#ga3f5654fc7a706aa7f9b042583606b945',1,'db.h']]], - ['balance',['balance',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#ac30ba5f614e7408e3c66804d15aa5db8',1,'TOKEN_NAME::Account']]], + ['balance',['balance',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#ab5698707f3194aaafaab1a01aad2faa0',1,'TOKEN_NAME::Account']]], ['base_5ftoken_5ftype',['base_token_type',['../structeos_1_1price.html#a05476d75e3da2435489d4360ae0aa9c8',1,'eos::price']]], ['buyorder',['BuyOrder',['../structexchange_1_1_buy_order.html',1,'exchange']]], ['builtin_20types',['Builtin Types',['../group__types.html',1,'']]] diff --git a/docs/search/all_11.js b/docs/search/all_11.js index a015449d5e9d00055759c6195f5354e283eae932..9f8aff7ac406866f813b064c245f05e4992f25f1 100644 --- a/docs/search/all_11.js +++ b/docs/search/all_11.js @@ -14,5 +14,7 @@ var searchData= ['store',['store',['../structtable__impl_3_01sizeof_07uint128__t_08_00_01sizeof_07uint128__t_08_4.html#affeb2eaa164859cc33e2b5e5aa09644a',1,'table_impl< sizeof(uint128_t), sizeof(uint128_t)>::store()'],['../structtable__impl_3_01sizeof_07uint64__t_08_00_010_01_4.html#acc1fda949f49e2b0c611b72701bebb6f',1,'table_impl< sizeof(uint64_t), 0 >::store()'],['../struct_table.html#a980d7e5d3be9cb202740bc2354ed0f03',1,'Table::store()'],['../struct_table_3_01scope_00_01code_00_01table_00_01_record_00_01_primary_type_00_01void_01_4.html#a67227170d497fb1ad7cc300db9b0dc74',1,'Table< scope, code, table, Record, PrimaryType, void >::store()']]], ['store_5fi128i128',['store_i128i128',['../group__dbi128i128.html#gaf4283a9f6e7845e8dd23740855386916',1,'db.h']]], ['store_5fi64',['store_i64',['../group__dbi64.html#gad62abe6567bdf68ebd2464e757fdced8',1,'db.h']]], - ['storeaccount',['storeAccount',['../namespace_t_o_k_e_n___n_a_m_e.html#a9e234bedec057f2367390b88c3b73ad8',1,'TOKEN_NAME']]] + ['storeaccount',['storeAccount',['../namespace_t_o_k_e_n___n_a_m_e.html#a9e234bedec057f2367390b88c3b73ad8',1,'TOKEN_NAME']]], + ['system_2ecpp',['system.cpp',['../system_8cpp.html',1,'']]], + ['system_2ehpp',['system.hpp',['../system_8hpp.html',1,'']]] ]; diff --git a/docs/search/all_12.js b/docs/search/all_12.js index b604d03dd397cb769803376c43311441e2c2c865..fb5417d0dd0cd03da0bf3812c1179cb306be4d7f 100644 --- a/docs/search/all_12.js +++ b/docs/search/all_12.js @@ -14,7 +14,7 @@ var searchData= ['token_2ehpp',['token.hpp',['../token_8hpp.html',1,'']]], ['token_3c_20uint64_5ft_2c_20n_28currency_29_3e',['token< uint64_t, N(currency)>',['../structeos_1_1token.html',1,'eos']]], ['token_3c_20uint64_5ft_2c_20n_28eos_29_3e',['token< uint64_t, N(eos)>',['../structeos_1_1token.html',1,'eos']]], - ['token_5fname',['TOKEN_NAME',['../namespace_t_o_k_e_n___n_a_m_e.html',1,'TOKEN_NAME'],['../currency_8hpp.html#a2bf6bf152ba93be8cace72c5d55abc71',1,'TOKEN_NAME(): currency.hpp']]], + ['token_5fname',['TOKEN_NAME',['../namespace_t_o_k_e_n___n_a_m_e.html',1,'TOKEN_NAME'],['../currency_8hpp.html#a2bf6bf152ba93be8cace72c5d55abc71',1,'TOKEN_NAME(): currency.hpp'],['../system_8hpp.html#a2bf6bf152ba93be8cace72c5d55abc71',1,'TOKEN_NAME(): system.hpp']]], ['tokenname',['TokenName',['../types_8h.html#a619dcf2195dd83ea4fc9aa62c92ec437',1,'types.h']]], ['tokens',['Tokens',['../namespaceeos.html#a100da99668f0d5c65bf15dae78926104',1,'eos::Tokens()'],['../group__tokens.html',1,'(Global Namespace)']]], ['total_5fvotes',['total_votes',['../struct_post_record.html#aca901b24573f6a0bf3e1058b197b6174',1,'PostRecord']]], diff --git a/docs/search/all_2.js b/docs/search/all_2.js index 81d2cc9b122e0b4519d0f1d7270538f9accad82c..64ce26e9e90fa99d781d433ccf3e9fc0a2c9f56f 100644 --- a/docs/search/all_2.js +++ b/docs/search/all_2.js @@ -9,10 +9,10 @@ var searchData= ['created',['created',['../struct_post_record.html#a4b0c19a41eb0d64a06d95321027fd792',1,'PostRecord']]], ['currency_2ecpp',['currency.cpp',['../currency_8cpp.html',1,'']]], ['currency_2ehpp',['currency.hpp',['../currency_8hpp.html',1,'']]], - ['currency_2ewast_2ehpp',['currency.wast.hpp',['../currency_8wast_8hpp.html',1,'']]], + ['currency_2ewast_2ehpp',['currency.wast.hpp',['../currency_2currency_8wast_8hpp.html',1,'(Global Namespace)'],['../system_2currency_8wast_8hpp.html',1,'(Global Namespace)']]], ['currency_5ftype',['currency_type',['../structeos_1_1token.html#a185ffd9fee7a6383ef028c3a4d7c2dee',1,'eos::token']]], - ['currency_5fwast',['currency_wast',['../currency_8wast_8hpp.html#af81b0cff9cea75a78074db8df522e772',1,'currency.wast.hpp']]], - ['currencytokens',['CurrencyTokens',['../namespace_t_o_k_e_n___n_a_m_e.html#a0c4afa08ec2e44777543fe547d60e9e6',1,'TOKEN_NAME']]], + ['currency_5fwast',['currency_wast',['../currency_2currency_8wast_8hpp.html#af81b0cff9cea75a78074db8df522e772',1,'currency_wast(): currency.wast.hpp'],['../system_2currency_8wast_8hpp.html#af81b0cff9cea75a78074db8df522e772',1,'currency_wast(): currency.wast.hpp']]], + ['currencytokens',['CurrencyTokens',['../namespace_t_o_k_e_n___n_a_m_e.html#a1f84ac76d1761828020f97744b382d3d',1,'TOKEN_NAME']]], ['currentcode',['currentCode',['../group__messagecapi.html#ga1f06c06adc584456cf30e8086d6b55b1',1,'message.h']]], ['currentmessage',['currentMessage',['../group__messagecppapi.html#ga82362482cd5c990d4b25708a96f72c32',1,'eos']]] ]; diff --git a/docs/search/all_8.js b/docs/search/all_8.js index a5054d1906d70cc0cead835feefc85f4bed16c25..0acda14e3aa348606e74e75377013aef24124759 100644 --- a/docs/search/all_8.js +++ b/docs/search/all_8.js @@ -1,9 +1,9 @@ var searchData= [ - ['init',['init',['../currency_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): currency.cpp'],['../exchange_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): exchange.cpp']]], + ['init',['init',['../currency_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): currency.cpp'],['../exchange_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): exchange.cpp'],['../system_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): system.cpp']]], ['int128_5ft',['int128_t',['../types_8h.html#a811ec3b3c805bfd6b8ec302d59fc5a94',1,'types.h']]], ['int32_5ft',['int32_t',['../types_8h.html#a0d2e949ab6a1bb62f1b295cc79bc1f60',1,'types.h']]], ['int64_5ft',['int64_t',['../types_8h.html#a996e72f71b11a5bb8b3b7b6936b1516d',1,'types.h']]], ['iostream',['iostream',['../classeos_1_1iostream.html',1,'eos']]], - ['isempty',['isEmpty',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#a9054490f61b926c7392384b48e2b0ca8',1,'TOKEN_NAME::Account']]] + ['isempty',['isEmpty',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#a9054490f61b926c7392384b48e2b0ca8',1,'TOKEN_NAME::Account::isEmpty() const'],['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#a9054490f61b926c7392384b48e2b0ca8',1,'TOKEN_NAME::Account::isEmpty() const']]] ]; diff --git a/docs/search/all_9.js b/docs/search/all_9.js index 8134d748e70fccb5e72c98833f151a9b4c9d1b18..3dec7b72c126057102a90e9587f69896356c0b46 100644 --- a/docs/search/all_9.js +++ b/docs/search/all_9.js @@ -1,4 +1,4 @@ var searchData= [ - ['key',['key',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#af828b3fc2f24217280b1649078f56361',1,'TOKEN_NAME::Account']]] + ['key',['key',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#a7d8492a8a6c41b19bde5f3cb9b744df1',1,'TOKEN_NAME::Account']]] ]; diff --git a/docs/search/defines_1.js b/docs/search/defines_1.js index 7adbb57ca11a2a76b03bec6a0373c22623156721..67e391212814f9a1fdb26d5032ff7c8961ab94f0 100644 --- a/docs/search/defines_1.js +++ b/docs/search/defines_1.js @@ -1,4 +1,4 @@ var searchData= [ - ['token_5fname',['TOKEN_NAME',['../currency_8hpp.html#a2bf6bf152ba93be8cace72c5d55abc71',1,'currency.hpp']]] + ['token_5fname',['TOKEN_NAME',['../currency_8hpp.html#a2bf6bf152ba93be8cace72c5d55abc71',1,'TOKEN_NAME(): currency.hpp'],['../system_8hpp.html#a2bf6bf152ba93be8cace72c5d55abc71',1,'TOKEN_NAME(): system.hpp']]] ]; diff --git a/docs/search/files_0.js b/docs/search/files_0.js index e5c95906258b5493966c8a7f261d1dff5eea6a94..2802e3b227ff76ec2b8e65ab51fd4966abe23bb9 100644 --- a/docs/search/files_0.js +++ b/docs/search/files_0.js @@ -3,5 +3,5 @@ var searchData= ['contracts_2edox',['contracts.dox',['../contracts_8dox.html',1,'']]], ['currency_2ecpp',['currency.cpp',['../currency_8cpp.html',1,'']]], ['currency_2ehpp',['currency.hpp',['../currency_8hpp.html',1,'']]], - ['currency_2ewast_2ehpp',['currency.wast.hpp',['../currency_8wast_8hpp.html',1,'']]] + ['currency_2ewast_2ehpp',['currency.wast.hpp',['../currency_2currency_8wast_8hpp.html',1,'(Global Namespace)'],['../system_2currency_8wast_8hpp.html',1,'(Global Namespace)']]] ]; diff --git a/docs/search/files_7.js b/docs/search/files_7.js index 38861028aa8e99273a27a5938e3c30ebb5b0f629..4d7050db8ed9fbda81078fb018dfd549beb9be45 100644 --- a/docs/search/files_7.js +++ b/docs/search/files_7.js @@ -1,4 +1,6 @@ var searchData= [ - ['social_2ecpp',['social.cpp',['../social_8cpp.html',1,'']]] + ['social_2ecpp',['social.cpp',['../social_8cpp.html',1,'']]], + ['system_2ecpp',['system.cpp',['../system_8cpp.html',1,'']]], + ['system_2ehpp',['system.hpp',['../system_8hpp.html',1,'']]] ]; diff --git a/docs/search/functions_0.js b/docs/search/functions_0.js index 3ec9d3d0ff27970dd23786ebf62592856919026e..4d1cb5678db4b25186eb5c97d645431565a341b6 100644 --- a/docs/search/functions_0.js +++ b/docs/search/functions_0.js @@ -1,7 +1,7 @@ var searchData= [ - ['account',['Account',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#acc96b530db9c63a37c07de6b062c2e9d',1,'TOKEN_NAME::Account']]], - ['apply',['apply',['../currency_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): currency.cpp'],['../exchange_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): exchange.cpp']]], + ['account',['Account',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#acc96b530db9c63a37c07de6b062c2e9d',1,'TOKEN_NAME::Account::Account(CurrencyTokens b=CurrencyTokens())'],['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#acc96b530db9c63a37c07de6b062c2e9d',1,'TOKEN_NAME::Account::Account(CurrencyTokens b=CurrencyTokens())']]], + ['apply',['apply',['../currency_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): currency.cpp'],['../exchange_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): exchange.cpp'],['../system_8cpp.html#a3c01edc4ed313916967237c16feb1446',1,'apply(uint64_t code, uint64_t action): system.cpp']]], ['apply_5fcurrency_5ftransfer',['apply_currency_transfer',['../namespace_t_o_k_e_n___n_a_m_e.html#ad480ac2ff519e253e8d947fca896a12f',1,'TOKEN_NAME::apply_currency_transfer()'],['../namespaceexchange.html#a7d1831d86ebf1c90cc808e7dbab7b33d',1,'exchange::apply_currency_transfer()']]], ['apply_5feos_5ftransfer',['apply_eos_transfer',['../namespaceexchange.html#a7cd292ab951651316cbdaab066d73f22',1,'exchange']]], ['apply_5fexchange_5fbuy',['apply_exchange_buy',['../namespaceexchange.html#a144bb14807f5677faf9d569813f9294e',1,'exchange']]], diff --git a/docs/search/functions_6.js b/docs/search/functions_6.js index 6755c0ea177e78e248b0a65be53341ad70aeb3fe..a8109a18ff046104aedd7b119484b0ad53089427 100644 --- a/docs/search/functions_6.js +++ b/docs/search/functions_6.js @@ -1,5 +1,5 @@ var searchData= [ - ['init',['init',['../currency_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): currency.cpp'],['../exchange_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): exchange.cpp']]], - ['isempty',['isEmpty',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#a9054490f61b926c7392384b48e2b0ca8',1,'TOKEN_NAME::Account']]] + ['init',['init',['../currency_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): currency.cpp'],['../exchange_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): exchange.cpp'],['../system_8cpp.html#a02fd73d861ef2e4aabb38c0c9ff82947',1,'init(): system.cpp']]], + ['isempty',['isEmpty',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#a9054490f61b926c7392384b48e2b0ca8',1,'TOKEN_NAME::Account::isEmpty() const'],['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#a9054490f61b926c7392384b48e2b0ca8',1,'TOKEN_NAME::Account::isEmpty() const']]] ]; diff --git a/docs/search/typedefs_0.js b/docs/search/typedefs_0.js index 0f5fda4e01fcecd61d4ed68cbc27a133fb03dad8..517657393009ea89258ca3c79c1377632a37d63f 100644 --- a/docs/search/typedefs_0.js +++ b/docs/search/typedefs_0.js @@ -1,5 +1,5 @@ var searchData= [ ['accountname',['AccountName',['../types_8h.html#ad67b43dc23285b01176f4c181c59fc23',1,'types.h']]], - ['accounts',['Accounts',['../namespace_t_o_k_e_n___n_a_m_e.html#a90f15481940a6f47f7f86fe0ab21bda4',1,'TOKEN_NAME::Accounts()'],['../namespaceexchange.html#a3e8714151a75109ae4a632aca1f17f4f',1,'exchange::Accounts()']]] + ['accounts',['Accounts',['../namespace_t_o_k_e_n___n_a_m_e.html#a7d3c8dd83df1817c27e7a732110b964d',1,'TOKEN_NAME::Accounts()'],['../namespaceexchange.html#a3e8714151a75109ae4a632aca1f17f4f',1,'exchange::Accounts()']]] ]; diff --git a/docs/search/typedefs_2.js b/docs/search/typedefs_2.js index e9fd583ba4b593ec4193a818d1562d22ceee049b..0ebe7e3d6ea17fd20c22e0123c859f1db7135dc5 100644 --- a/docs/search/typedefs_2.js +++ b/docs/search/typedefs_2.js @@ -1,4 +1,4 @@ var searchData= [ - ['currencytokens',['CurrencyTokens',['../namespace_t_o_k_e_n___n_a_m_e.html#a0c4afa08ec2e44777543fe547d60e9e6',1,'TOKEN_NAME']]] + ['currencytokens',['CurrencyTokens',['../namespace_t_o_k_e_n___n_a_m_e.html#a1f84ac76d1761828020f97744b382d3d',1,'TOKEN_NAME']]] ]; diff --git a/docs/search/variables_1.js b/docs/search/variables_1.js index 779467dda9e431d33ea12a742a9cdea383985fac..d4bd77161df9d4b6287338c74e52da8aa90df812 100644 --- a/docs/search/variables_1.js +++ b/docs/search/variables_1.js @@ -1,4 +1,4 @@ var searchData= [ - ['balance',['balance',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#ac30ba5f614e7408e3c66804d15aa5db8',1,'TOKEN_NAME::Account']]] + ['balance',['balance',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#ab5698707f3194aaafaab1a01aad2faa0',1,'TOKEN_NAME::Account']]] ]; diff --git a/docs/search/variables_2.js b/docs/search/variables_2.js index ba708dbeb464b80912579b29d1fbc10e171f2798..59e5afda366d099105b26606e29372ecbdaad0bb 100644 --- a/docs/search/variables_2.js +++ b/docs/search/variables_2.js @@ -3,5 +3,5 @@ var searchData= ['claimed_5fvotes',['claimed_votes',['../struct_post_record.html#a92b0a2e8d938957f6a001cba7b1ec53b',1,'PostRecord']]], ['created',['created',['../struct_post_record.html#a4b0c19a41eb0d64a06d95321027fd792',1,'PostRecord']]], ['currency_5ftype',['currency_type',['../structeos_1_1token.html#a185ffd9fee7a6383ef028c3a4d7c2dee',1,'eos::token']]], - ['currency_5fwast',['currency_wast',['../currency_8wast_8hpp.html#af81b0cff9cea75a78074db8df522e772',1,'currency.wast.hpp']]] + ['currency_5fwast',['currency_wast',['../currency_2currency_8wast_8hpp.html#af81b0cff9cea75a78074db8df522e772',1,'currency_wast(): currency.wast.hpp'],['../system_2currency_8wast_8hpp.html#af81b0cff9cea75a78074db8df522e772',1,'currency_wast(): currency.wast.hpp']]] ]; diff --git a/docs/search/variables_6.js b/docs/search/variables_6.js index 8134d748e70fccb5e72c98833f151a9b4c9d1b18..3dec7b72c126057102a90e9587f69896356c0b46 100644 --- a/docs/search/variables_6.js +++ b/docs/search/variables_6.js @@ -1,4 +1,4 @@ var searchData= [ - ['key',['key',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#af828b3fc2f24217280b1649078f56361',1,'TOKEN_NAME::Account']]] + ['key',['key',['../struct_t_o_k_e_n___n_a_m_e_1_1_account.html#a7d8492a8a6c41b19bde5f3cb9b744df1',1,'TOKEN_NAME::Account']]] ]; diff --git a/docs/struct_t_o_k_e_n___n_a_m_e_1_1_account-members.html b/docs/struct_t_o_k_e_n___n_a_m_e_1_1_account-members.html index bef382fa617e645d2a5c7574becc402aa8d31ee3..3d623757ff32b9a6195e747135f150586547407c 100644 --- a/docs/struct_t_o_k_e_n___n_a_m_e_1_1_account-members.html +++ b/docs/struct_t_o_k_e_n___n_a_m_e_1_1_account-members.html @@ -70,9 +70,11 @@ $(function() {

          This is the complete list of members for TOKEN_NAME::Account, including all inherited members.

          - + + + - +
          Account(CurrencyTokens b=CurrencyTokens())TOKEN_NAME::Accountinline
          balanceTOKEN_NAME::Account
          Account(CurrencyTokens b=CurrencyTokens())TOKEN_NAME::Accountinline
          balanceTOKEN_NAME::Account
          isEmpty() constTOKEN_NAME::Accountinline
          isEmpty() constTOKEN_NAME::Accountinline
          keyTOKEN_NAME::Account
          keyTOKEN_NAME::Account
    -
    The documentation for this struct was generated from the following file: