From b62eed6f0fee92c9fdcab8ed1b0357adb3eb604d Mon Sep 17 00:00:00 2001 From: Kevin Heifner Date: Mon, 4 Dec 2017 12:00:53 -0600 Subject: [PATCH] Update doxygen for Dawn 2.0. --- docs/_r_e_a_d_m_e_8md.html | 53 +- docs/annotated.html | 230 ++++--- docs/chain_8h.html | 86 +-- docs/chain_8h_source.html | 62 +- docs/classes.html | 142 ++-- docs/contracts_8dox.html | 53 +- docs/crypto_8h.html | 92 +-- docs/crypto_8h_source.html | 63 +- docs/currency_8cpp.html | 94 +-- docs/currency_8hpp.html | 108 +-- docs/currency_8hpp_source.html | 87 +-- docs/currency_8wast_8hpp.html | 57 +- docs/currency_8wast_8hpp_source.html | 55 +- docs/db_8h.html | 331 ++++----- docs/db_8h_source.html | 185 +++-- docs/db_8hpp.html | 128 ++-- docs/db_8hpp_source.html | 294 ++++---- docs/dice_8cpp.html | 69 +- docs/dice_8hpp.html | 101 ++- docs/dice_8hpp_source.html | 113 ++- .../dir_2f68902bd8ea4562ac77bb3db95ba614.html | 69 +- .../dir_322cd3c97a9c45f1dd8d138b04e20992.html | 66 +- .../dir_3680d2f7810f6721560f2a624729277d.html | 64 +- .../dir_3fea0bf1ce879ce73e6ecec98007efcd.html | 72 +- .../dir_44e8454330c52effb0ef98d8f3108add.html | 64 +- .../dir_4512a307eab2a9ca08d8433965f51830.html | 70 +- .../dir_5dc13a1abd435123f7be5ea8dc751d1b.html | 67 +- .../dir_6c7312813aa58ebc3dfdce40169e8db5.html | 66 +- .../dir_822c996966d1ea617c855d743c3f3186.html | 64 +- .../dir_a9257b511e702fbd3462fee4a063915c.html | 64 +- .../dir_ae9b15dd87e066e1908bbd90e8f38627.html | 90 +-- .../dir_da2258ea5bfae2641df967be076d9dbe.html | 64 +- .../dir_df9ec5dd3eb98ed2672871667d1ff010.html | 53 +- .../dir_ef94cdb01f4e9712d25c43b7c1d91b58.html | 53 +- docs/doxygen.css | 139 +++- docs/eos_8cpp.html | 53 +- docs/eos_8hpp.html | 100 +-- docs/eos_8hpp_source.html | 53 +- docs/eos__walletd_8dox.html | 53 +- docs/eosc_8dox.html | 53 +- docs/exchange_8cpp.html | 125 ++-- docs/exchange_8hpp.html | 126 +--- docs/exchange_8hpp_source.html | 97 +-- docs/exchange_8wast_8hpp.html | 57 +- docs/exchange_8wast_8hpp_source.html | 55 +- docs/files.html | 196 +++--- docs/functions.html | 125 +--- docs/functions_0x7e.html | 103 +-- docs/functions_b.html | 126 +--- docs/functions_c.html | 126 +--- docs/functions_d.html | 102 +-- docs/functions_e.html | 93 +-- docs/functions_f.html | 135 ++-- docs/functions_func.html | 107 +-- docs/functions_func_0x7e.html | 97 +-- docs/functions_func_b.html | 105 +-- docs/functions_func_c.html | 96 +-- docs/functions_func_f.html | 119 ++-- docs/functions_func_g.html | 112 +-- docs/functions_func_i.html | 105 +-- docs/functions_func_k.html | 147 ++-- docs/functions_func_l.html | 113 +-- docs/functions_func_m.html | 93 +-- docs/functions_func_n.html | 107 +-- docs/functions_func_o.html | 152 ++--- docs/functions_func_p.html | 122 +--- docs/functions_func_r.html | 116 +--- docs/functions_func_s.html | 121 ++-- docs/functions_func_t.html | 127 ++-- docs/functions_func_u.html | 120 +--- docs/functions_g.html | 120 +--- docs/functions_h.html | 104 +-- docs/functions_i.html | 123 ++-- docs/functions_k.html | 171 ++--- docs/functions_l.html | 126 +--- docs/functions_m.html | 105 +-- docs/functions_n.html | 124 +--- docs/functions_o.html | 228 +++---- docs/functions_p.html | 151 ++-- docs/functions_q.html | 104 +-- docs/functions_r.html | 132 ++-- docs/functions_rela.html | 154 ++--- docs/functions_s.html | 144 ++-- docs/functions_t.html | 147 ++-- docs/functions_type.html | 86 +-- docs/functions_u.html | 144 ++-- docs/functions_v.html | 117 +--- docs/functions_vars.html | 351 +++++----- docs/functions_w.html | 97 +-- docs/globals.html | 111 +-- docs/globals_b.html | 100 +-- docs/globals_c.html | 90 +-- docs/globals_d.html | 89 +-- docs/globals_defs.html | 117 +--- docs/globals_e.html | 89 +-- docs/globals_f.html | 107 +-- docs/globals_func.html | 339 ++++----- docs/globals_g.html | 90 +-- docs/globals_i.html | 100 +-- docs/globals_l.html | 114 +--- docs/globals_m.html | 121 +--- docs/globals_n.html | 102 +-- docs/globals_p.html | 108 +-- docs/globals_r.html | 106 +-- docs/globals_s.html | 108 +-- docs/globals_t.html | 125 +--- docs/globals_type.html | 118 ++-- docs/globals_u.html | 111 +-- docs/globals_vars.html | 74 +- docs/globals_w.html | 86 +-- docs/group___singleindextable.html | 66 +- docs/group__chaincapi.html | 56 +- docs/group__console_cppapi.html | 92 +-- docs/group__consoleapi.html | 58 +- docs/group__consolecapi.html | 96 ++- docs/group__contractdev.html | 83 +-- docs/group__currencyapi.html | 181 +++-- docs/group__database.html | 64 +- docs/group__database_c.html | 68 +- docs/group__database_cpp.html | 66 +- docs/group__dbi128i128.html | 298 ++++---- docs/group__dbi64.html | 198 +++--- docs/group__dbi64i64i64.html | 396 ++++++----- docs/group__dbstr.html | 326 ++++++--- docs/group__dual_index_table.html | 64 +- docs/group__eosc.html | 79 +-- docs/group__eoscontract.html | 47 +- docs/group__eosiorpc.html | 57 +- docs/group__eoswallet.html | 49 +- docs/group__examplecontract.html | 58 +- docs/group__howtobuild.html | 47 +- docs/group__mathapi.html | 58 +- docs/group__mathcapi.html | 116 ++-- docs/group__mathcppapi.html | 112 ++- docs/group__memoryapi.html | 58 +- docs/group__memorycapi.html | 78 +-- docs/group__memorycppapi.html | 104 ++- docs/group__messageapi.html | 66 +- docs/group__messagecapi.html | 128 ++-- docs/group__messagecppapi.html | 98 +-- docs/group__storageapi.html | 113 ++- docs/group__systemapi.html | 57 +- docs/group__systemcapi.html | 72 +- docs/group__tictactoecontract.html | 56 +- docs/group__tokens.html | 94 +-- docs/group__transactionapi.html | 70 +- docs/group__transactioncapi.html | 262 ++++--- docs/group__transactioncppapi.html | 68 +- docs/group__types.html | 318 ++++++--- docs/hierarchy.html | 230 +++---- docs/howto__build_8dox.html | 53 +- docs/index.html | 51 +- docs/infinite_8cpp.html | 94 +-- docs/infinite_8hpp.html | 101 +-- docs/infinite_8hpp_source.html | 87 +-- docs/infinite_8wast_8hpp.html | 57 +- docs/infinite_8wast_8hpp_source.html | 55 +- docs/jquery.js | 21 +- docs/mainpage_8md.html | 53 +- docs/math_8h.html | 103 +-- docs/math_8h_source.html | 59 +- docs/math_8hpp.html | 138 +--- docs/math_8hpp_source.html | 91 +-- docs/md_contracts_eoslib_tutorial.html | 107 ++- docs/memory_8h.html | 72 +- docs/memory_8h_source.html | 57 +- docs/memory_8hpp.html | 105 +-- docs/memory_8hpp_source.html | 71 +- docs/message_8h.html | 128 +--- docs/message_8h_source.html | 67 +- docs/message_8hpp.html | 121 +--- docs/message_8hpp_source.html | 71 +- docs/modules.html | 109 ++- docs/namespace_t_o_k_e_n___n_a_m_e.html | 169 +++-- docs/namespacedice.html | 209 +++--- docs/namespaceexchange.html | 277 ++++---- docs/namespaceinfinite.html | 123 ++-- docs/namespacemembers.html | 332 ++++----- docs/namespacemembers_func.html | 278 ++++---- docs/namespacemembers_type.html | 109 ++- docs/namespacemembers_vars.html | 63 +- docs/namespacenative.html | 53 +- docs/namespaceproxy.html | 117 ++-- docs/namespaces.html | 59 +- docs/namespacetic__tac__toe.html | 191 +++--- docs/pages.html | 49 +- docs/print_8h.html | 95 +-- docs/print_8h_source.html | 59 +- docs/print_8hpp.html | 180 ++--- docs/print_8hpp_source.html | 73 +- docs/proxy_8cpp.html | 95 +-- docs/proxy_8hpp.html | 92 +-- docs/proxy_8hpp_source.html | 63 +- docs/rpc_8dox.html | 53 +- docs/search/all_0.html | 2 +- docs/search/all_0.js | 71 +- docs/search/all_1.html | 2 +- docs/search/all_1.js | 32 +- docs/search/all_10.html | 2 +- docs/search/all_10.js | 49 +- docs/search/all_11.html | 2 +- docs/search/all_11.js | 57 +- docs/search/all_12.html | 2 +- docs/search/all_12.js | 91 +-- docs/search/all_13.html | 2 +- docs/search/all_13.js | 44 +- docs/search/all_14.html | 2 +- docs/search/all_14.js | 14 +- docs/search/all_15.html | 2 +- docs/search/all_15.js | 3 +- docs/search/all_16.html | 2 +- docs/search/all_16.js | 6 +- docs/search/all_2.html | 2 +- docs/search/all_2.js | 42 +- docs/search/all_3.html | 2 +- docs/search/all_3.js | 16 +- docs/search/all_4.html | 2 +- docs/search/all_4.js | 9 +- docs/search/all_5.html | 2 +- docs/search/all_5.js | 37 +- docs/search/all_6.html | 2 +- docs/search/all_6.js | 24 +- docs/search/all_7.html | 2 +- docs/search/all_7.js | 4 +- docs/search/all_8.html | 2 +- docs/search/all_8.js | 20 +- docs/search/all_9.html | 2 +- docs/search/all_9.js | 29 +- docs/search/all_a.html | 2 +- docs/search/all_a.js | 44 +- docs/search/all_b.html | 2 +- docs/search/all_b.js | 44 +- docs/search/all_c.html | 2 +- docs/search/all_c.js | 29 +- docs/search/all_d.html | 2 +- docs/search/all_d.js | 52 +- docs/search/all_e.html | 2 +- docs/search/all_e.js | 60 +- docs/search/all_f.html | 2 +- docs/search/all_f.js | 5 +- docs/search/classes_0.html | 2 +- docs/search/classes_0.js | 6 +- docs/search/classes_1.html | 2 +- docs/search/classes_1.js | 3 +- docs/search/classes_2.html | 2 +- docs/search/classes_2.js | 10 +- docs/search/classes_3.html | 2 +- docs/search/classes_3.js | 2 + docs/search/classes_4.html | 2 +- docs/search/classes_5.html | 2 +- docs/search/classes_5.js | 6 +- docs/search/classes_6.html | 2 +- docs/search/classes_6.js | 5 +- docs/search/classes_7.html | 2 +- docs/search/classes_7.js | 3 +- docs/search/classes_8.html | 2 +- docs/search/classes_8.js | 7 +- docs/search/classes_9.html | 2 +- docs/search/classes_9.js | 8 +- docs/search/classes_a.html | 2 +- docs/search/classes_a.js | 8 +- docs/search/classes_b.html | 2 +- docs/search/classes_b.js | 10 +- docs/search/classes_c.html | 2 +- docs/search/classes_c.js | 39 +- docs/search/classes_d.html | 2 +- docs/search/classes_d.js | 8 +- docs/search/classes_e.html | 2 +- docs/search/classes_e.js | 34 +- docs/search/defines_0.html | 2 +- docs/search/defines_1.html | 2 +- docs/search/defines_2.html | 2 +- docs/search/defines_3.html | 2 +- docs/search/defines_3.js | 3 +- docs/search/defines_4.html | 2 +- docs/search/defines_4.js | 8 +- docs/search/defines_5.html | 2 +- docs/search/defines_5.js | 8 +- docs/search/defines_6.html | 2 +- docs/search/defines_6.js | 4 +- docs/search/defines_7.html | 2 +- docs/search/defines_7.js | 3 +- docs/search/defines_8.html | 2 +- docs/search/defines_8.js | 4 +- docs/search/defines_9.html | 2 +- docs/search/defines_9.js | 5 +- docs/search/defines_a.html | 2 +- docs/search/defines_a.js | 8 +- docs/search/files_0.html | 2 +- docs/search/files_0.js | 8 +- docs/search/files_1.html | 2 +- docs/search/files_1.js | 10 +- docs/search/files_2.html | 2 +- docs/search/files_2.js | 13 +- docs/search/files_3.html | 2 +- docs/search/files_3.js | 8 +- docs/search/files_4.html | 2 +- docs/search/files_4.js | 4 +- docs/search/files_5.html | 2 +- docs/search/files_5.js | 8 +- docs/search/files_6.html | 2 +- docs/search/files_6.js | 7 +- docs/search/files_7.html | 2 +- docs/search/files_7.js | 10 +- docs/search/files_8.html | 2 +- docs/search/files_8.js | 15 +- docs/search/files_9.html | 2 +- docs/search/files_9.js | 25 +- docs/search/functions_0.html | 2 +- docs/search/functions_0.js | 51 +- docs/search/functions_1.html | 2 +- docs/search/functions_1.js | 20 +- docs/search/functions_10.html | 2 +- docs/search/functions_10.js | 41 +- docs/search/functions_11.html | 2 +- docs/search/functions_11.js | 20 +- docs/search/functions_12.html | 2 +- docs/search/functions_12.js | 3 +- docs/search/functions_13.html | 2 +- docs/search/functions_13.js | 6 +- docs/search/functions_2.html | 2 +- docs/search/functions_2.js | 16 +- docs/search/functions_3.html | 2 +- docs/search/functions_3.js | 6 +- docs/search/functions_4.html | 2 +- docs/search/functions_4.js | 27 +- docs/search/functions_5.html | 2 +- docs/search/functions_5.js | 18 +- docs/search/functions_6.html | 2 +- docs/search/functions_6.js | 11 +- docs/search/functions_7.html | 2 +- docs/search/functions_7.js | 40 +- docs/search/functions_8.html | 2 +- docs/search/functions_8.js | 32 +- docs/search/functions_9.html | 2 +- docs/search/functions_9.js | 40 +- docs/search/functions_a.html | 2 +- docs/search/functions_a.js | 33 +- docs/search/functions_b.html | 2 +- docs/search/functions_b.js | 33 +- docs/search/functions_c.html | 2 +- docs/search/functions_c.js | 38 +- docs/search/functions_d.html | 2 +- docs/search/functions_d.js | 39 +- docs/search/functions_e.html | 2 +- docs/search/functions_e.js | 50 +- docs/search/functions_f.html | 2 +- docs/search/functions_f.js | 59 +- docs/search/groups_0.html | 2 +- docs/search/groups_0.js | 3 +- docs/search/groups_1.html | 2 +- docs/search/groups_1.js | 6 +- docs/search/groups_2.html | 2 +- docs/search/groups_2.js | 10 +- docs/search/groups_3.html | 2 +- docs/search/groups_3.js | 10 +- docs/search/groups_4.html | 2 +- docs/search/groups_4.js | 7 +- docs/search/groups_5.html | 2 +- docs/search/groups_5.js | 11 +- docs/search/groups_6.html | 2 +- docs/search/groups_6.js | 15 +- docs/search/groups_7.html | 2 +- docs/search/groups_7.js | 7 +- docs/search/namespaces_0.html | 2 +- docs/search/namespaces_1.html | 2 +- docs/search/namespaces_1.js | 6 +- docs/search/namespaces_2.html | 2 +- docs/search/namespaces_3.html | 2 +- docs/search/namespaces_4.html | 2 +- docs/search/namespaces_5.html | 2 +- docs/search/pages_0.html | 2 +- docs/search/pages_0.js | 2 +- docs/search/pages_1.html | 2 +- docs/search/related_0.html | 2 +- docs/search/related_0.js | 2 +- docs/search/related_1.html | 2 +- docs/search/related_1.js | 2 +- docs/search/related_2.html | 2 +- docs/search/related_2.js | 20 +- docs/search/related_3.html | 2 +- docs/search/related_3.js | 2 +- docs/search/related_4.html | 2 +- docs/search/related_4.js | 2 +- docs/search/search.css | 12 +- docs/search/searchdata.js | 12 +- docs/search/typedefs_0.html | 2 +- docs/search/typedefs_0.js | 5 +- docs/search/typedefs_1.html | 2 +- docs/search/typedefs_1.js | 2 +- docs/search/typedefs_2.html | 2 +- docs/search/typedefs_2.js | 4 +- docs/search/typedefs_3.html | 2 +- docs/search/typedefs_3.js | 2 +- docs/search/typedefs_4.html | 2 +- docs/search/typedefs_4.js | 3 +- docs/search/typedefs_5.html | 2 +- docs/search/typedefs_5.js | 4 +- docs/search/typedefs_6.html | 2 +- docs/search/typedefs_6.js | 4 +- docs/search/typedefs_7.html | 2 +- docs/search/typedefs_7.js | 2 +- docs/search/typedefs_8.html | 2 +- docs/search/typedefs_8.js | 2 +- docs/search/typedefs_9.html | 2 +- docs/search/typedefs_9.js | 6 +- docs/search/typedefs_a.html | 2 +- docs/search/typedefs_a.js | 2 +- docs/search/typedefs_b.html | 2 +- docs/search/typedefs_b.js | 6 +- docs/search/typedefs_c.html | 2 +- docs/search/typedefs_c.js | 13 +- docs/search/typedefs_d.html | 2 +- docs/search/typedefs_d.js | 1 + docs/search/variables_0.html | 2 +- docs/search/variables_0.js | 8 +- docs/search/variables_1.html | 2 +- docs/search/variables_1.js | 7 +- docs/search/variables_10.html | 2 +- docs/search/variables_10.js | 8 +- docs/search/variables_11.html | 2 +- docs/search/variables_11.js | 9 +- docs/search/variables_12.html | 2 +- docs/search/variables_12.js | 4 +- docs/search/variables_13.html | 2 +- docs/search/variables_13.js | 10 +- docs/search/variables_14.html | 2 +- docs/search/variables_14.js | 6 +- docs/search/variables_2.html | 2 +- docs/search/variables_2.js | 12 +- docs/search/variables_3.html | 2 +- docs/search/variables_3.js | 3 +- docs/search/variables_4.html | 2 +- docs/search/variables_5.html | 2 +- docs/search/variables_5.js | 4 +- docs/search/variables_6.html | 2 +- docs/search/variables_6.js | 2 +- docs/search/variables_7.html | 2 +- docs/search/variables_7.js | 3 +- docs/search/variables_8.html | 2 +- docs/search/variables_8.js | 4 + docs/search/variables_9.html | 2 +- docs/search/variables_9.js | 5 +- docs/search/variables_a.html | 2 +- docs/search/variables_a.js | 4 +- docs/search/variables_b.html | 2 +- docs/search/variables_b.js | 5 +- docs/search/variables_c.html | 2 +- docs/search/variables_c.js | 6 +- docs/search/variables_d.html | 2 +- docs/search/variables_d.js | 2 +- docs/search/variables_e.html | 2 +- docs/search/variables_e.js | 13 +- docs/search/variables_f.html | 2 +- docs/search/variables_f.js | 3 +- docs/simpledb_8cpp.html | 113 +-- docs/simpledb_8hpp.html | 159 +---- docs/simpledb_8hpp_source.html | 98 +-- docs/simpledb_8wast_8hpp.html | 57 +- docs/simpledb_8wast_8hpp_source.html | 55 +- docs/skeleton_8cpp.html | 83 +-- docs/skeleton_8hpp.html | 82 +-- docs/skeleton_8hpp_source.html | 53 +- docs/social_8cpp.html | 88 +-- docs/storage_8cpp.html | 98 +-- docs/storage_8hpp.html | 111 +-- docs/storage_8hpp_source.html | 87 +-- docs/string_8hpp.html | 95 +-- docs/string_8hpp_source.html | 111 ++- docs/struct_test_model128x2-members.html | 55 +- docs/struct_test_model128x2.html | 80 +-- docs/struct_test_model128x2___v2-members.html | 55 +- docs/struct_test_model128x2___v2.html | 76 +-- docs/struct_test_model3xi64-members.html | 55 +- docs/struct_test_model3xi64.html | 80 +-- docs/struct_test_model3xi64___v2-members.html | 55 +- docs/struct_test_model3xi64___v2.html | 76 +-- docs/structdummy__message-members.html | 55 +- docs/structdummy__message.html | 67 +- docs/structnative_1_1contract-members.html | 55 +- docs/structnative_1_1contract.html | 76 +-- docs/structnative_1_1eos.html | 96 +-- docs/structtest__chain-members.html | 55 +- docs/structtest__chain.html | 59 +- docs/structtest__crypto-members.html | 55 +- docs/structtest__crypto.html | 75 +- docs/structtest__db-members.html | 89 ++- docs/structtest__db.html | 643 ++++++++++++++++-- docs/structtest__math-members.html | 55 +- docs/structtest__math.html | 75 +- docs/structtest__message-members.html | 57 +- docs/structtest__message.html | 93 ++- docs/structtest__print-members.html | 55 +- docs/structtest__print.html | 71 +- docs/structtest__string-members.html | 64 +- docs/structtest__string.html | 204 ++++-- docs/structtest__transaction-members.html | 55 +- docs/structtest__transaction.html | 95 ++- docs/structtest__types-members.html | 55 +- docs/structtest__types.html | 71 +- docs/structu128__msg-members.html | 55 +- docs/structu128__msg.html | 59 +- docs/structuint256-members.html | 55 +- docs/structuint256.html | 59 +- docs/system_8h.html | 111 +-- docs/system_8h_source.html | 61 +- docs/tabs.css | 61 +- docs/test__api_8cpp.html | 100 +-- docs/test__api_8hpp.html | 125 ++-- docs/test__api_8hpp_source.html | 70 +- docs/test__api_8wast_8hpp.html | 57 +- docs/test__api_8wast_8hpp_source.html | 55 +- docs/test__chain_8cpp.html | 75 +- docs/test__crypto_8cpp.html | 98 +-- docs/test__db_8cpp.html | 309 +++++---- docs/test__math_8cpp.html | 78 +-- docs/test__message_8cpp.html | 78 +-- docs/test__print_8cpp.html | 81 +-- docs/test__string_8cpp.html | 84 +-- docs/test__transaction_8cpp.html | 80 +-- docs/test__types_8cpp.html | 81 +-- docs/tic__tac__toe_8cpp.html | 129 ++-- docs/tic__tac__toe_8hpp.html | 114 +--- docs/tic__tac__toe_8hpp_source.html | 103 ++- docs/token_8hpp.html | 104 +-- docs/token_8hpp_source.html | 114 ++-- docs/transaction_8h.html | 163 ++--- docs/transaction_8h_source.html | 86 +-- docs/transaction_8hpp.html | 106 +-- docs/transaction_8hpp_source.html | 124 ++-- docs/tutorial_8md.html | 53 +- docs/types_8h.html | 179 ++--- docs/types_8h_source.html | 107 ++- docs/types_8hpp.html | 114 +--- docs/types_8hpp_source.html | 79 +-- 535 files changed, 11746 insertions(+), 19551 deletions(-) diff --git a/docs/_r_e_a_d_m_e_8md.html b/docs/_r_e_a_d_m_e_8md.html index 2c19b89b06b..6d868e4babb 100644 --- a/docs/_r_e_a_d_m_e_8md.html +++ b/docs/_r_e_a_d_m_e_8md.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/dice/README.md File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@ - + - - + + + + - + - - + + + +
Here are the classes, structs, unions and interfaces with brief descriptions:
-
[detail level 12]
+
[detail level 123]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
 Ndice
 CCancelOffer
 CClaimExpired
 COfferBet
 COfferPrimaryKey
 CPlayer
 CReveal
 Neos
 Ciostream
 Cmemory_manager
 CMessage
 CNameWraps a uint64_t to ensure it is only passed to methods that expect a Name
 CpriceDefines a fixed precision price between two tokens
 Cremove_reference
 Cremove_reference< const T & >
 Cremove_reference< T & >
 Cstring
 CtokenUint64_t wrapper with checks for proper types and over/underflows
 CTransaction
 CTransferThe binary structure of the transfer message type for the eos contract
 Cuint128A struct that wraps uint128 integer and defines common operator overloads
 Nexchange
 CBuyOrder
 COrderID
 CSellOrder
 NinfiniteDefines transfer struct (abi)
 CAccountRow in Account table stored within each scope
 CTransfer
 Nnative
 CcontractDefines the base class for all contracts
 CeosA native currency contract implemented with account named eos
 Ntic_tac_toe
 CCloseAction to close new game
 CCreateAction to create new game
 CMoveAction to make movement
 CMovementData structure for movement
 CRestartAction to restart new game
 NTOKEN_NAMEDefines transfer struct (abi)
 CAccountRow in Account table stored within each scope
 CTransfer
 CAccount
 Cdummy_message
 CPostAction
 CPostRecord
 CProducers
 CTable
 CPrimaryIndexThe Primary Index
 CSecondaryIndexThe Secondary Index
 CTable< scope, code, table, Record, PrimaryType, void >
 CPrimaryIndexPrimary Index of Table
 Ctable_impl
 Ctable_impl< sizeof(uint128_t), sizeof(uint128_t)>
 Ctable_impl< sizeof(uint64_t), 0 >
 Ctable_impl_obj
 Ctable_impl_obj< char * >
 Ctest_chain
 Ctest_crypto
 Ctest_db
 Ctest_math
 Ctest_message
 Ctest_print
 Ctest_string
 Ctest_transaction
 Ctest_types
 CTestModel
 CTestModel128x2
 CTestModel128x2_V2
 CTestModel3xi64
 CTestModel3xi64_V2
 CTestModelV2
 CTestModelV3
 Cu128_msg
 Cuint256
 CVarTable
 CVoteAction
 Ccancel_offer
 Cclaim_expired
 Coffer_bet
 Coffer_primary_key
 Cplayer
 Creveal
 NeosioUsed to forward declare raw functions
 Caccount_balanceThe binary structure expected and populated by native balance function
 CdatastreamA data stream for reading and writing data in the form of bytes
 Cdatastream< size_t >Specialization of datastream used to help determine the final size of a serialized value
 Cfixed_point128
 Cfixed_point32
 Cfixed_point64
 Ciostream
 Cmemory_manager
 Cmessage
 CnameWraps a uint64_t to ensure it is only passed to methods that expect a Name
 CpriceDefines a fixed precision price between two tokens
 Cremove_reference
 Cremove_reference< const T & >
 Cremove_reference< T & >
 Cstring
 Ctable
 Cprimary_indexThe primary Index
 Csecondary_indexThe Secondary Index
 Ctable< scope, code, table_n, Record, PrimaryType, void >
 Cprimary_indexPrimary Index of table
 Ctable_impl
 Ctable_impl< sizeof(uint128_t), sizeof(uint128_t)>
 Ctable_impl< sizeof(uint64_t), 0 >
 Ctable_impl_obj
 Ctable_impl_obj< char * >
 CtokenUint64_t wrapper with checks for proper types and over/underflows
 Ctransaction
 CtransferThe binary structure of the transfer message type for the eos contract
 Cuint128A struct that wraps uint128 integer and defines common operator overloads
 Cvar_table
 Nexchange
 Cbuy_order
 Corder_id
 Csell_order
 NinfiniteDefines transfer struct (abi)
 CaccountRow in account table stored within each scope
 Ctransfer
 Nnative
 CcontractDefines the base class for all contracts
 CeosA native currency contract implemented with account named eos
 Ntic_tac_toe
 CcloseAction to close new game
 CcreateAction to create new game
 CmoveAction to make movement
 CmovementData structure for movement
 CrestartAction to restart new game
 NTOKEN_NAMEDefines transfer struct (abi)
 CaccountRow in account table stored within each scope table
 Ctransfer
 Caccount
 Casset
 Cbytes
 Cchecksum
 Ccomplex_type
 Cdummy_message
 Cfixed_string16
 Cfixed_string32
 Ckey_value1
 Ckey_value2
 Cpost_action
 Cpost_record
 Cprice
 Cproducers
 Cpublic_key
 Crecord1
 Crecord2
 Crecord3
 Csignature
 Csigned_intSerializes a 32 bit signed interger in as few bytes as possible
 Ctest_account
 Ctest_chain
 Ctest_crypto
 Ctest_db
 Ctest_fixedpoint
 Ctest_math
 Ctest_message
 Ctest_model
 Ctest_model_v2
 Ctest_model_v3
 Ctest_print
 Ctest_real
 Ctest_string
 Ctest_transaction
 Ctest_types
 CTestModel128x2
 CTestModel128x2_V2
 CTestModel3xi64
 CTestModel3xi64_V2
 Cu128_msg
 Cuint256
 Cunsigned_int
 Cvote_action
@@ -175,7 +173,7 @@ diff --git a/docs/chain_8h.html b/docs/chain_8h.html index 2b46cce8434..537142c4327 100644 --- a/docs/chain_8h.html +++ b/docs/chain_8h.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/eoslib/chain.h File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
#include <eoslib/types.h>
-
-Include dependency graph for chain.h:
-
-
- - - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - - - -

Go to the source code of this file.

- - - + + +

Functions

void getActiveProducers (AccountName *producers, uint32_t datalen)
 Return the set of active producers. More...
 
void get_active_producers (account_name *producers, uint32_t datalen)
 Return the set of active producers. More...
 

Detailed Description

Function Documentation

- + +

◆ get_active_producers()

+
- + - + @@ -154,7 +114,7 @@
void getActiveProducers void get_active_producers (AccountNameaccount_name producers,
-

Example:

1 AccountName producers[21];
2 getActiveProducers(producers, sizeof(AccountName)*21);
+

Example:

@@ -162,7 +122,7 @@ diff --git a/docs/chain_8h_source.html b/docs/chain_8h_source.html index 556a51a7d71..ab62c543c71 100644 --- a/docs/chain_8h_source.html +++ b/docs/chain_8h_source.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/eoslib/chain.h Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
chain.h
-Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include <eoslib/types.h>
8 
15 extern "C" {
28  void getActiveProducers( AccountName* producers, uint32_t datalen );
29 
31 }
-
uint64_t AccountName
Definition: types.h:24
-
unsigned long uint32_t
Definition: types.h:18
-
void getActiveProducers(AccountName *producers, uint32_t datalen)
Return the set of active producers.
+Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include <eoslib/types.h>
8 
15 extern "C" {
29 
31 }
+
void get_active_producers(account_name *producers, uint32_t datalen)
Return the set of active producers.
+
uint64_t account_name
Definition: types.h:35
+
unsigned long uint32_t
Definition: types.h:19
+
Definition: test_chain.cpp:11
diff --git a/docs/classes.html b/docs/classes.html index 1b48e2bce7b..374149292bc 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -3,7 +3,8 @@ - + + EOS.IO: Class Index @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,44 +31,19 @@
- + - - + + + +
Class Index
-
A | B | C | D | E | I | M | N | O | P | R | S | T | U | V
+
a | b | c | d | e | f | i | k | m | n | o | p | r | s | t | u | v
- - - - - - + + + + + + + + + + + - + + + + + - - - - - - - - - - - - - - - + + + + + + + + + +
  A  
-
  O  
-
SellOrder (exchange)   
  c  
-
remove_reference< const T & > (eos)   
  T  
-
remove_reference< T & > (eos)   
Account (TOKEN_NAME)   OfferBet (dice)   contract (native)   
  s  
-
Account (infinite)   OfferPrimaryKey (dice)   Table   
  d  
-
Account   OrderID (exchange)   Table< scope, code, table, Record, PrimaryType, void >   string (eos)   
  B  
-
  P  
-
TestModel   dummy_message   
  t  
+
  a  
+
  f  
+
offer_primary_key (dice)   sell_order (exchange)   test_transaction   
order_id (exchange)   signature   test_types   
account (TOKEN_NAME)   fixed_point128 (eosio)   
  p  
+
signed_int   TestModel128x2   
account   fixed_point32 (eosio)   string (eosio)   TestModel128x2_V2   
account (infinite)   fixed_point64 (eosio)   player (dice)   
  t  
+
TestModel3xi64   
account_balance (eosio)   fixed_string16   post_action   TestModel3xi64_V2   
asset   fixed_string32   post_record   table (eosio)   token (eosio)   
  b  
+
  i  
+
price (eosio)   table< scope, code, table_n, Record, PrimaryType, void > (eosio)   transaction (eosio)   
price   table_impl (eosio)   transfer (TOKEN_NAME)   
buy_order (exchange)   iostream (eosio)   table< scope, code, table_n, Record, PrimaryType, void >::primary_index (eosio)   table_impl< sizeof(uint128_t), sizeof(uint128_t)> (eosio)   transfer (infinite)   
bytes   
  k  
+
table::primary_index (eosio)   table_impl< sizeof(uint64_t), 0 > (eosio)   transfer (eosio)   
  c  
+
producers   table_impl_obj (eosio)   
  u  
TestModel128x2   
  e  
+
key_value1   public_key   table_impl_obj< char * > (eosio)   
cancel_offer (dice)   key_value2   
  r  
+
test_account   u128_msg   
checksum   
  m  
+
test_chain   uint128 (eosio)   
claim_expired (dice)   record1   test_crypto   uint256   
close (tic_tac_toe)   memory_manager (eosio)   record2   test_db   unsigned_int   
complex_type   message (eosio)   record3   test_fixedpoint   
  v  
BuyOrder (exchange)   Player (dice)   TestModel128x2_V2   table_impl   
  C  
-
PostAction   TestModel3xi64   eos (native)   table_impl< sizeof(uint128_t), sizeof(uint128_t)>   
PostRecord   TestModel3xi64_V2   
  i  
-
table_impl< sizeof(uint64_t), 0 >   
CancelOffer (dice)   Table::PrimaryIndex   TestModelV2   table_impl_obj   
ClaimExpired (dice)   Table< scope, code, table, Record, PrimaryType, void >::PrimaryIndex   TestModelV3   iostream (eos)   table_impl_obj< char * >   
Close (tic_tac_toe)   Producers   Transaction (eos)   
  m  
-
test_chain   
Create (tic_tac_toe)   
  R  
-
Transfer (infinite)   test_crypto   
  M  
-
Transfer (eos)   memory_manager (eos)   test_db   
Restart (tic_tac_toe)   Transfer (TOKEN_NAME)   
  p  
-
test_math   
Message (eos)   Reveal (dice)   
  V  
-
test_message   
Move (tic_tac_toe)   
  S  
-
price (eos)   test_print   
Movement (tic_tac_toe)   VarTable   
  r  
-
test_string   
  N  
-
Table::SecondaryIndex   VoteAction   test_transaction   
remove_reference (eos)   
Name (eos)   
contract (native)   move (tic_tac_toe)   remove_reference (eosio)   test_math   
create (tic_tac_toe)   movement (tic_tac_toe)   remove_reference< const T & > (eosio)   test_message   var_table (eosio)   
  d  
+
  n  
+
remove_reference< T & > (eosio)   test_model   vote_action   
restart (tic_tac_toe)   test_model_v2   
datastream (eosio)   name (eosio)   reveal (dice)   test_model_v3   
datastream< size_t > (eosio)   
  o  
+
  s  
+
test_print   
dummy_message   test_real   
  e  
+
offer_bet (dice)   table::secondary_index (eosio)   test_string   
eos (native)   
-
A | B | C | D | E | I | M | N | O | P | R | S | T | U | V
+
a | b | c | d | e | f | i | k | m | n | o | p | r | s | t | u | v
diff --git a/docs/contracts_8dox.html b/docs/contracts_8dox.html index 8d981f7c45d..fc9fb7c3012 100644 --- a/docs/contracts_8dox.html +++ b/docs/contracts_8dox.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/eoslib/contracts.dox File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@ - + - - + + + + - + - - + + + +
#include <eoslib/types.h>
-
-Include dependency graph for crypto.h:
-
-
- - - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - - - -

Go to the source code of this file.

- - - - + + + +

Functions

void assert_sha256 (char *data, uint32_t length, const uint256 *hash)
 
void sha256 (char *data, uint32_t length, uint256 *hash)
 
void assert_sha256 (char *data, uint32_t length, const checksum *hash)
 
void sha256 (char *data, uint32_t length, checksum *hash)
 

Detailed Description

Function Documentation

- + +

◆ assert_sha256()

+
@@ -145,7 +105,7 @@ - + @@ -156,12 +116,14 @@
const uint256const checksum hash 

This method is implemented as:

-

uint256 calc_hash; sha256( data, length, &calc_hash ); assert( calc_hash == hash, "invalid hash" );

+

checksum calc_hash; sha256( data, length, &calc_hash ); assert( calc_hash == hash, "invalid hash" );

This method is optimized to a NO-OP when in fast evaluation mode

- + +

◆ sha256()

+
@@ -180,7 +142,7 @@ - + @@ -199,7 +161,7 @@ diff --git a/docs/crypto_8h_source.html b/docs/crypto_8h_source.html index a41b756a8d9..36341bdb4e4 100644 --- a/docs/crypto_8h_source.html +++ b/docs/crypto_8h_source.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/eoslib/crypto.h Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@
uint256checksum hash 
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
crypto.h
-Go to the documentation of this file.
1 
5 #pragma once
6 #include <eoslib/types.h>
7 extern "C" {
17 void assert_sha256( char* data, uint32_t length, const uint256* hash );
18 
22 void sha256( char* data, uint32_t length, uint256* hash );
23 }
-
Definition: types.h:33
-
unsigned long uint32_t
Definition: types.h:18
-
void sha256(char *data, uint32_t length, uint256 *hash)
-
void assert_sha256(char *data, uint32_t length, const uint256 *hash)
+Go to the documentation of this file.
1 
5 #pragma once
6 #include <eoslib/types.h>
7 extern "C" {
17 void assert_sha256( char* data, uint32_t length, const checksum* hash );
18 
22 void sha256( char* data, uint32_t length, checksum* hash );
23 }
Definition: types.h:65
+ +
unsigned long uint32_t
Definition: types.h:19
+
void assert_sha256(char *data, uint32_t length, const checksum *hash)
+
void sha256(char *data, uint32_t length, checksum *hash)
diff --git a/docs/currency_8cpp.html b/docs/currency_8cpp.html index 1a36072c99f..a385b274ab5 100644 --- a/docs/currency_8cpp.html +++ b/docs/currency_8cpp.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/currency/currency.cpp File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
-Include dependency graph for currency.cpp:
-
-
- - - - - - - - - - - - - - - - - - -
@@ -129,11 +81,11 @@

Namespaces

- - - - - + + + + + @@ -143,7 +95,9 @@

Detailed Description

Function Documentation

- + +

◆ apply()

+

Functions

void TOKEN_NAME::storeAccount (AccountName account, const Account &a)
 When storing accounts, check for empty balance and remove account. More...
 
void TOKEN_NAME::apply_currency_transfer (const TOKEN_NAME::Transfer &transfer)
 
void TOKEN_NAME::store_account (account_name account_to_store, const account &a)
 When storing accounts, check for empty balance and remove account. More...
 
void TOKEN_NAME::apply_currency_transfer (const TOKEN_NAME::transfer &transfer_msg)
 
void init ()
 
void apply (uint64_t code, uint64_t action)
@@ -169,7 +123,9 @@ - + +

◆ init()

+
@@ -189,7 +145,7 @@ diff --git a/docs/currency_8hpp.html b/docs/currency_8hpp.html index b063c820047..d975670201b 100644 --- a/docs/currency_8hpp.html +++ b/docs/currency_8hpp.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/currency/currency.hpp File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
#include <eoslib/eos.hpp>
#include <eoslib/token.hpp>
#include <eoslib/db.hpp>
-
-Include dependency graph for currency.hpp:
-
-
- - - - - - - - - - - - - - - - - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - - - - - -

Go to the source code of this file.

- + - - + +

Classes

struct  TOKEN_NAME::Transfer
struct  TOKEN_NAME::transfer
 
struct  TOKEN_NAME::Account
 row in Account table stored within each scope More...
struct  TOKEN_NAME::account
 row in account table stored within each scope table More...
 

@@ -159,20 +101,22 @@

- - - - + + + +

Typedefs

typedef eosio::token< uint64_t, N(currency)> TOKEN_NAME::CurrencyTokens
 
using TOKEN_NAME::Accounts = Table< N(currency), N(currency), N(account), Account, uint64_t >
 
typedef eosio::token< uint64_t, N(currency)> TOKEN_NAME::currency_tokens
 
using TOKEN_NAME::accounts = eosio::table< N(defaultscope), N(currency), N(account), account, uint64_t >
 
- - + +

Functions

Account TOKEN_NAME::getAccount (AccountName owner)
 
account TOKEN_NAME::get_account (account_name owner)
 

Detailed Description

Macro Definition Documentation

- + +

◆ TOKEN_NAME

+
@@ -190,7 +134,7 @@ diff --git a/docs/currency_8hpp_source.html b/docs/currency_8hpp_source.html index 8ae37668e08..c046f080241 100644 --- a/docs/currency_8hpp_source.html +++ b/docs/currency_8hpp_source.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/currency/currency.hpp Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
currency.hpp
-Go to the documentation of this file.
1 
6 #include <eoslib/eos.hpp>
7 #include <eoslib/token.hpp>
8 #include <eoslib/db.hpp>
9 
21 #ifndef TOKEN_NAME
22 #define TOKEN_NAME currency
23 #endif
24 
25 namespace TOKEN_NAME {
26 
39 
44  struct Transfer {
56  CurrencyTokens quantity;
57  };
58 
62  struct Account {
66  Account( CurrencyTokens b = CurrencyTokens() ):balance(b){}
67 
71  const uint64_t key = N(account);
72 
76  CurrencyTokens balance;
77 
82  bool isEmpty()const { return balance.quantity == 0; }
83  };
84 
88  static_assert( sizeof(Account) == sizeof(uint64_t)+sizeof(CurrencyTokens), "unexpected packing" );
89 
94 
106  inline Account getAccount( AccountName owner ) {
107  Account account;
109  Accounts::get( account, owner );
110  return account;
111  }
112 
113 }
#define N(X)
used to generate a compile time uint64_t from the base32 encoded string interpretation of X ...
Definition: types.hpp:58
-
uint64_t AccountName
Definition: types.h:24
-
AccountName from
Definition: currency.hpp:48
-
CurrencyTokens quantity
Definition: currency.hpp:56
-
unsigned long long uint64_t
Definition: types.h:17
+Go to the documentation of this file.
1 
6 #include <eoslib/eos.hpp>
7 #include <eoslib/token.hpp>
8 #include <eoslib/db.hpp>
9 
21 #ifndef TOKEN_NAME
22 #define TOKEN_NAME currency
23 #endif
24 
25 namespace TOKEN_NAME {
26 
39 
45  struct transfer {
57  currency_tokens quantity;
58  };
59 
64  struct account {
68  account( currency_tokens b = currency_tokens() ):balance(b){}
69 
73  const uint64_t key = N(account);
74 
78  currency_tokens balance;
79 
84  bool is_empty()const { return balance.quantity == 0; }
85  };
86 
90  static_assert( sizeof(account) == sizeof(uint64_t)+sizeof(currency_tokens), "unexpected packing" );
91 
96 
108  inline account get_account( account_name owner ) {
109  account owned_account;
111  accounts::get( owned_account, owner );
112  return owned_account;
113  }
114 
115 }
#define N(X)
used to generate a compile time uint64_t from the base32 encoded string interpretation of X ...
Definition: types.hpp:58
+
Definition: currency.hpp:45
+
currency_tokens quantity
Definition: currency.hpp:57
+
uint64_t account_name
Definition: types.h:35
+
unsigned long long uint64_t
Definition: types.h:18
Defines types and ABI for standard token messages and database tables.
-
Account getAccount(AccountName owner)
Definition: currency.hpp:106
+ - -
eosio::token< uint64_t, N(currency)> CurrencyTokens
Definition: currency.hpp:38
-
NumberType quantity
Quantity of tokens available.
Definition: token.hpp:84
-
Account(CurrencyTokens b=CurrencyTokens())
Definition: currency.hpp:66
-
bool isEmpty() const
Definition: currency.hpp:82
+
row in account table stored within each scope table
Definition: currency.hpp:64
+
bool is_empty() const
Definition: currency.hpp:84
+
account(currency_tokens b=currency_tokens())
Definition: currency.hpp:68
defines transfer struct (abi)
Definition: currency.cpp:8
-
row in Account table stored within each scope
Definition: currency.hpp:62
-
Definition: currency.hpp:44
-
AccountName to
Definition: currency.hpp:52
+
account get_account(account_name owner)
Definition: currency.hpp:108
+
NumberType quantity
Quantity of tokens available.
Definition: token.hpp:84
+
account_name to
Definition: currency.hpp:53
-
CurrencyTokens balance
Definition: currency.hpp:76
-
Definition: db.hpp:549
-
static bool get(const PrimaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:748
+
account_name from
Definition: currency.hpp:49
+
Definition: db.hpp:551
+
eosio::token< uint64_t, N(currency)> currency_tokens
Definition: currency.hpp:38
+
static bool get(const PrimaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:750
+
currency_tokens balance
Definition: currency.hpp:78
diff --git a/docs/currency_8wast_8hpp.html b/docs/currency_8wast_8hpp.html index a963910c6cb..0165862a313 100644 --- a/docs/currency_8wast_8hpp.html +++ b/docs/currency_8wast_8hpp.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/currency/currency.wast.hpp File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
 

Variable Documentation

- + +

◆ currency_wast

+
@@ -121,7 +98,7 @@

Variable Documentation

diff --git a/docs/currency_8wast_8hpp_source.html b/docs/currency_8wast_8hpp_source.html index 4f14d7ce8cb..2059c454d9b 100644 --- a/docs/currency_8wast_8hpp_source.html +++ b/docs/currency_8wast_8hpp_source.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/currency/currency.wast.hpp Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
currency.wast.hpp
-Go to the documentation of this file.
1 const char* currency_wast = R"=====(
2 (module
3  (type $FUNCSIG$ijji (func (param i64 i64 i32) (result i32)))
4  (type $FUNCSIG$ijjii (func (param i64 i64 i32 i32) (result i32)))
5  (type $FUNCSIG$vj (func (param i64)))
6  (type $FUNCSIG$ijjjii (func (param i64 i64 i64 i32 i32) (result i32)))
7  (type $FUNCSIG$vii (func (param i32 i32)))
8  (type $FUNCSIG$iii (func (param i32 i32) (result i32)))
9  (import "env" "assert" (func $assert (param i32 i32)))
10  (import "env" "load_i64" (func $load_i64 (param i64 i64 i64 i32 i32) (result i32)))
11  (import "env" "readMessage" (func $readMessage (param i32 i32) (result i32)))
12  (import "env" "remove_i64" (func $remove_i64 (param i64 i64 i32) (result i32)))
13  (import "env" "requireAuth" (func $requireAuth (param i64)))
14  (import "env" "requireNotice" (func $requireNotice (param i64)))
15  (import "env" "store_i64" (func $store_i64 (param i64 i64 i32 i32) (result i32)))
16  (table 0 anyfunc)
17  (memory $0 1)
18  (data (i32.const 4) "\c0\04\00\00")
19  (data (i32.const 16) "account\00")
20  (data (i32.const 32) "integer underflow subtracting token balance\00")
21  (data (i32.const 80) "integer overflow adding token balance\00")
22  (data (i32.const 128) "currency\00")
23  (data (i32.const 144) "transfer\00")
24  (data (i32.const 160) "message shorter than expected\00")
25  (export "memory" (memory $0))
26  (export "_ZN8currency12storeAccountEyRKNS_7AccountE" (func $_ZN8currency12storeAccountEyRKNS_7AccountE))
27  (export "_ZN8currency23apply_currency_transferERKNS_8TransferE" (func $_ZN8currency23apply_currency_transferERKNS_8TransferE))
28  (export "init" (func $init))
29  (export "apply" (func $apply))
30  (func $_ZN8currency12storeAccountEyRKNS_7AccountE (param $0 i64) (param $1 i32)
31  (block $label$0
32  (br_if $label$0
33  (i64.eq
34  (i64.load offset=8
35  (get_local $1)
36  )
37  (i64.const 0)
38  )
39  )
40  (drop
41  (call $store_i64
42  (get_local $0)
43  (i64.const 632468476610478080)
44  (get_local $1)
45  (i32.const 16)
46  )
47  )
48  (return)
49  )
50  (drop
51  (call $remove_i64
52  (get_local $0)
53  (i64.const 632468476610478080)
54  (get_local $1)
55  )
56  )
57  )
58  (func $_ZN8currency23apply_currency_transferERKNS_8TransferE (param $0 i32)
59  (local $1 i64)
60  (local $2 i32)
61  (local $3 i32)
62  (local $4 i64)
63  (local $5 i64)
64  (local $6 i64)
65  (local $7 i64)
66  (local $8 i32)
67  (i32.store offset=4
68  (i32.const 0)
69  (tee_local $8
70  (i32.sub
71  (i32.load offset=4
72  (i32.const 0)
73  )
74  (i32.const 32)
75  )
76  )
77  )
78  (set_local $5
79  (i64.load
80  (get_local $0)
81  )
82  )
83  (call $requireNotice
84  (i64.load offset=8
85  (get_local $0)
86  )
87  )
88  (call $requireNotice
89  (get_local $5)
90  )
91  (call $requireAuth
92  (i64.load
93  (get_local $0)
94  )
95  )
96  (set_local $1
97  (i64.load
98  (get_local $0)
99  )
100  )
101  (set_local $5
102  (i64.const 0)
103  )
104  (set_local $4
105  (i64.const 59)
106  )
107  (set_local $3
108  (i32.const 16)
109  )
110  (set_local $6
111  (i64.const 0)
112  )
113  (loop $label$0
114  (block $label$1
115  (block $label$2
116  (block $label$3
117  (block $label$4
118  (block $label$5
119  (br_if $label$5
120  (i64.gt_u
121  (get_local $5)
122  (i64.const 6)
123  )
124  )
125  (br_if $label$4
126  (i32.gt_u
127  (i32.and
128  (i32.add
129  (tee_local $2
130  (i32.load8_s
131  (get_local $3)
132  )
133  )
134  (i32.const -97)
135  )
136  (i32.const 255)
137  )
138  (i32.const 25)
139  )
140  )
141  (set_local $2
142  (i32.add
143  (get_local $2)
144  (i32.const 160)
145  )
146  )
147  (br $label$3)
148  )
149  (set_local $7
150  (i64.const 0)
151  )
152  (br_if $label$2
153  (i64.le_u
154  (get_local $5)
155  (i64.const 11)
156  )
157  )
158  (br $label$1)
159  )
160  (set_local $2
161  (select
162  (i32.add
163  (get_local $2)
164  (i32.const 234)
165  )
166  (i32.const 0)
167  (i32.lt_u
168  (i32.and
169  (i32.add
170  (get_local $2)
171  (i32.const -49)
172  )
173  (i32.const 255)
174  )
175  (i32.const 5)
176  )
177  )
178  )
179  )
180  (set_local $7
181  (i64.shr_s
182  (i64.shl
183  (i64.extend_u/i32
184  (get_local $2)
185  )
186  (i64.const 56)
187  )
188  (i64.const 56)
189  )
190  )
191  )
192  (set_local $7
193  (i64.shl
194  (i64.and
195  (get_local $7)
196  (i64.const 31)
197  )
198  (i64.and
199  (get_local $4)
200  (i64.const 4294967295)
201  )
202  )
203  )
204  )
205  (set_local $3
206  (i32.add
207  (get_local $3)
208  (i32.const 1)
209  )
210  )
211  (set_local $5
212  (i64.add
213  (get_local $5)
214  (i64.const 1)
215  )
216  )
217  (set_local $6
218  (i64.or
219  (get_local $7)
220  (get_local $6)
221  )
222  )
223  (br_if $label$0
224  (i64.ne
225  (tee_local $4
226  (i64.add
227  (get_local $4)
228  (i64.const -5)
229  )
230  )
231  (i64.const -6)
232  )
233  )
234  )
235  (set_local $5
236  (i64.const 0)
237  )
238  (i64.store offset=24
239  (get_local $8)
240  (i64.const 0)
241  )
242  (i64.store offset=16
243  (get_local $8)
244  (get_local $6)
245  )
246  (drop
247  (call $load_i64
248  (get_local $1)
249  (i64.const 2118137375447056384)
250  (i64.const 632468476610478080)
251  (i32.add
252  (get_local $8)
253  (i32.const 16)
254  )
255  (i32.const 16)
256  )
257  )
258  (set_local $1
259  (i64.load
260  (i32.add
261  (get_local $0)
262  (i32.const 8)
263  )
264  )
265  )
266  (set_local $4
267  (i64.const 59)
268  )
269  (set_local $3
270  (i32.const 16)
271  )
272  (set_local $6
273  (i64.const 0)
274  )
275  (loop $label$6
276  (block $label$7
277  (block $label$8
278  (block $label$9
279  (block $label$10
280  (block $label$11
281  (br_if $label$11
282  (i64.gt_u
283  (get_local $5)
284  (i64.const 6)
285  )
286  )
287  (br_if $label$10
288  (i32.gt_u
289  (i32.and
290  (i32.add
291  (tee_local $2
292  (i32.load8_s
293  (get_local $3)
294  )
295  )
296  (i32.const -97)
297  )
298  (i32.const 255)
299  )
300  (i32.const 25)
301  )
302  )
303  (set_local $2
304  (i32.add
305  (get_local $2)
306  (i32.const 160)
307  )
308  )
309  (br $label$9)
310  )
311  (set_local $7
312  (i64.const 0)
313  )
314  (br_if $label$8
315  (i64.le_u
316  (get_local $5)
317  (i64.const 11)
318  )
319  )
320  (br $label$7)
321  )
322  (set_local $2
323  (select
324  (i32.add
325  (get_local $2)
326  (i32.const 234)
327  )
328  (i32.const 0)
329  (i32.lt_u
330  (i32.and
331  (i32.add
332  (get_local $2)
333  (i32.const -49)
334  )
335  (i32.const 255)
336  )
337  (i32.const 5)
338  )
339  )
340  )
341  )
342  (set_local $7
343  (i64.shr_s
344  (i64.shl
345  (i64.extend_u/i32
346  (get_local $2)
347  )
348  (i64.const 56)
349  )
350  (i64.const 56)
351  )
352  )
353  )
354  (set_local $7
355  (i64.shl
356  (i64.and
357  (get_local $7)
358  (i64.const 31)
359  )
360  (i64.and
361  (get_local $4)
362  (i64.const 4294967295)
363  )
364  )
365  )
366  )
367  (set_local $3
368  (i32.add
369  (get_local $3)
370  (i32.const 1)
371  )
372  )
373  (set_local $5
374  (i64.add
375  (get_local $5)
376  (i64.const 1)
377  )
378  )
379  (set_local $6
380  (i64.or
381  (get_local $7)
382  (get_local $6)
383  )
384  )
385  (br_if $label$6
386  (i64.ne
387  (tee_local $4
388  (i64.add
389  (get_local $4)
390  (i64.const -5)
391  )
392  )
393  (i64.const -6)
394  )
395  )
396  )
397  (i64.store
398  (get_local $8)
399  (get_local $6)
400  )
401  (i64.store offset=8
402  (get_local $8)
403  (i64.const 0)
404  )
405  (drop
406  (call $load_i64
407  (get_local $1)
408  (i64.const 2118137375447056384)
409  (i64.const 632468476610478080)
410  (get_local $8)
411  (i32.const 16)
412  )
413  )
414  (call $assert
415  (i64.ge_u
416  (i64.load
417  (tee_local $3
418  (i32.add
419  (get_local $8)
420  (i32.const 24)
421  )
422  )
423  )
424  (i64.load offset=16
425  (get_local $0)
426  )
427  )
428  (i32.const 32)
429  )
430  (i64.store
431  (get_local $3)
432  (i64.sub
433  (i64.load
434  (get_local $3)
435  )
436  (tee_local $5
437  (i64.load offset=16
438  (get_local $0)
439  )
440  )
441  )
442  )
443  (call $assert
444  (i64.ge_u
445  (i64.add
446  (get_local $5)
447  (i64.load offset=8
448  (get_local $8)
449  )
450  )
451  (get_local $5)
452  )
453  (i32.const 80)
454  )
455  (i64.store offset=8
456  (get_local $8)
457  (i64.add
458  (i64.load offset=8
459  (get_local $8)
460  )
461  (i64.load offset=16
462  (get_local $0)
463  )
464  )
465  )
466  (set_local $5
467  (i64.load
468  (get_local $0)
469  )
470  )
471  (block $label$12
472  (block $label$13
473  (br_if $label$13
474  (i64.eq
475  (i64.load
476  (get_local $3)
477  )
478  (i64.const 0)
479  )
480  )
481  (drop
482  (call $store_i64
483  (get_local $5)
484  (i64.const 632468476610478080)
485  (i32.add
486  (get_local $8)
487  (i32.const 16)
488  )
489  (i32.const 16)
490  )
491  )
492  (br $label$12)
493  )
494  (drop
495  (call $remove_i64
496  (get_local $5)
497  (i64.const 632468476610478080)
498  (i32.add
499  (get_local $8)
500  (i32.const 16)
501  )
502  )
503  )
504  )
505  (set_local $5
506  (i64.load
507  (i32.add
508  (get_local $0)
509  (i32.const 8)
510  )
511  )
512  )
513  (block $label$14
514  (block $label$15
515  (br_if $label$15
516  (i64.eq
517  (i64.load
518  (i32.add
519  (get_local $8)
520  (i32.const 8)
521  )
522  )
523  (i64.const 0)
524  )
525  )
526  (drop
527  (call $store_i64
528  (get_local $5)
529  (i64.const 632468476610478080)
530  (get_local $8)
531  (i32.const 16)
532  )
533  )
534  (br $label$14)
535  )
536  (drop
537  (call $remove_i64
538  (get_local $5)
539  (i64.const 632468476610478080)
540  (get_local $8)
541  )
542  )
543  )
544  (i32.store offset=4
545  (i32.const 0)
546  (i32.add
547  (get_local $8)
548  (i32.const 32)
549  )
550  )
551  )
552  (func $init
553  (local $0 i32)
554  (local $1 i32)
555  (local $2 i64)
556  (local $3 i64)
557  (local $4 i64)
558  (local $5 i64)
559  (local $6 i64)
560  (local $7 i32)
561  (i32.store offset=4
562  (i32.const 0)
563  (tee_local $7
564  (i32.sub
565  (i32.load offset=4
566  (i32.const 0)
567  )
568  (i32.const 16)
569  )
570  )
571  )
572  (set_local $3
573  (i64.const 0)
574  )
575  (set_local $2
576  (i64.const 59)
577  )
578  (set_local $1
579  (i32.const 128)
580  )
581  (set_local $4
582  (i64.const 0)
583  )
584  (loop $label$0
585  (block $label$1
586  (block $label$2
587  (block $label$3
588  (block $label$4
589  (block $label$5
590  (br_if $label$5
591  (i64.gt_u
592  (get_local $3)
593  (i64.const 7)
594  )
595  )
596  (br_if $label$4
597  (i32.gt_u
598  (i32.and
599  (i32.add
600  (tee_local $0
601  (i32.load8_s
602  (get_local $1)
603  )
604  )
605  (i32.const -97)
606  )
607  (i32.const 255)
608  )
609  (i32.const 25)
610  )
611  )
612  (set_local $0
613  (i32.add
614  (get_local $0)
615  (i32.const 160)
616  )
617  )
618  (br $label$3)
619  )
620  (set_local $5
621  (i64.const 0)
622  )
623  (br_if $label$2
624  (i64.le_u
625  (get_local $3)
626  (i64.const 11)
627  )
628  )
629  (br $label$1)
630  )
631  (set_local $0
632  (select
633  (i32.add
634  (get_local $0)
635  (i32.const 234)
636  )
637  (i32.const 0)
638  (i32.lt_u
639  (i32.and
640  (i32.add
641  (get_local $0)
642  (i32.const -49)
643  )
644  (i32.const 255)
645  )
646  (i32.const 5)
647  )
648  )
649  )
650  )
651  (set_local $5
652  (i64.shr_s
653  (i64.shl
654  (i64.extend_u/i32
655  (get_local $0)
656  )
657  (i64.const 56)
658  )
659  (i64.const 56)
660  )
661  )
662  )
663  (set_local $5
664  (i64.shl
665  (i64.and
666  (get_local $5)
667  (i64.const 31)
668  )
669  (i64.and
670  (get_local $2)
671  (i64.const 4294967295)
672  )
673  )
674  )
675  )
676  (set_local $1
677  (i32.add
678  (get_local $1)
679  (i32.const 1)
680  )
681  )
682  (set_local $3
683  (i64.add
684  (get_local $3)
685  (i64.const 1)
686  )
687  )
688  (set_local $4
689  (i64.or
690  (get_local $5)
691  (get_local $4)
692  )
693  )
694  (br_if $label$0
695  (i64.ne
696  (tee_local $2
697  (i64.add
698  (get_local $2)
699  (i64.const -5)
700  )
701  )
702  (i64.const -6)
703  )
704  )
705  )
706  (set_local $3
707  (i64.const 0)
708  )
709  (set_local $2
710  (i64.const 59)
711  )
712  (set_local $1
713  (i32.const 16)
714  )
715  (set_local $6
716  (i64.const 0)
717  )
718  (loop $label$6
719  (block $label$7
720  (block $label$8
721  (block $label$9
722  (block $label$10
723  (block $label$11
724  (br_if $label$11
725  (i64.gt_u
726  (get_local $3)
727  (i64.const 6)
728  )
729  )
730  (br_if $label$10
731  (i32.gt_u
732  (i32.and
733  (i32.add
734  (tee_local $0
735  (i32.load8_s
736  (get_local $1)
737  )
738  )
739  (i32.const -97)
740  )
741  (i32.const 255)
742  )
743  (i32.const 25)
744  )
745  )
746  (set_local $0
747  (i32.add
748  (get_local $0)
749  (i32.const 160)
750  )
751  )
752  (br $label$9)
753  )
754  (set_local $5
755  (i64.const 0)
756  )
757  (br_if $label$8
758  (i64.le_u
759  (get_local $3)
760  (i64.const 11)
761  )
762  )
763  (br $label$7)
764  )
765  (set_local $0
766  (select
767  (i32.add
768  (get_local $0)
769  (i32.const 234)
770  )
771  (i32.const 0)
772  (i32.lt_u
773  (i32.and
774  (i32.add
775  (get_local $0)
776  (i32.const -49)
777  )
778  (i32.const 255)
779  )
780  (i32.const 5)
781  )
782  )
783  )
784  )
785  (set_local $5
786  (i64.shr_s
787  (i64.shl
788  (i64.extend_u/i32
789  (get_local $0)
790  )
791  (i64.const 56)
792  )
793  (i64.const 56)
794  )
795  )
796  )
797  (set_local $5
798  (i64.shl
799  (i64.and
800  (get_local $5)
801  (i64.const 31)
802  )
803  (i64.and
804  (get_local $2)
805  (i64.const 4294967295)
806  )
807  )
808  )
809  )
810  (set_local $1
811  (i32.add
812  (get_local $1)
813  (i32.const 1)
814  )
815  )
816  (set_local $3
817  (i64.add
818  (get_local $3)
819  (i64.const 1)
820  )
821  )
822  (set_local $6
823  (i64.or
824  (get_local $5)
825  (get_local $6)
826  )
827  )
828  (br_if $label$6
829  (i64.ne
830  (tee_local $2
831  (i64.add
832  (get_local $2)
833  (i64.const -5)
834  )
835  )
836  (i64.const -6)
837  )
838  )
839  )
840  (i64.store offset=8
841  (get_local $7)
842  (i64.const 1000000000)
843  )
844  (i64.store
845  (get_local $7)
846  (get_local $6)
847  )
848  (drop
849  (call $store_i64
850  (get_local $4)
851  (i64.const 632468476610478080)
852  (get_local $7)
853  (i32.const 16)
854  )
855  )
856  (i32.store offset=4
857  (i32.const 0)
858  (i32.add
859  (get_local $7)
860  (i32.const 16)
861  )
862  )
863  )
864  (func $apply (param $0 i64) (param $1 i64)
865  (local $2 i32)
866  (local $3 i32)
867  (local $4 i64)
868  (local $5 i64)
869  (local $6 i64)
870  (local $7 i64)
871  (local $8 i32)
872  (i32.store offset=4
873  (i32.const 0)
874  (tee_local $8
875  (i32.sub
876  (i32.load offset=4
877  (i32.const 0)
878  )
879  (i32.const 32)
880  )
881  )
882  )
883  (set_local $5
884  (i64.const 0)
885  )
886  (set_local $4
887  (i64.const 59)
888  )
889  (set_local $3
890  (i32.const 128)
891  )
892  (set_local $6
893  (i64.const 0)
894  )
895  (loop $label$0
896  (block $label$1
897  (block $label$2
898  (block $label$3
899  (block $label$4
900  (block $label$5
901  (br_if $label$5
902  (i64.gt_u
903  (get_local $5)
904  (i64.const 7)
905  )
906  )
907  (br_if $label$4
908  (i32.gt_u
909  (i32.and
910  (i32.add
911  (tee_local $2
912  (i32.load8_s
913  (get_local $3)
914  )
915  )
916  (i32.const -97)
917  )
918  (i32.const 255)
919  )
920  (i32.const 25)
921  )
922  )
923  (set_local $2
924  (i32.add
925  (get_local $2)
926  (i32.const 160)
927  )
928  )
929  (br $label$3)
930  )
931  (set_local $7
932  (i64.const 0)
933  )
934  (br_if $label$2
935  (i64.le_u
936  (get_local $5)
937  (i64.const 11)
938  )
939  )
940  (br $label$1)
941  )
942  (set_local $2
943  (select
944  (i32.add
945  (get_local $2)
946  (i32.const 234)
947  )
948  (i32.const 0)
949  (i32.lt_u
950  (i32.and
951  (i32.add
952  (get_local $2)
953  (i32.const -49)
954  )
955  (i32.const 255)
956  )
957  (i32.const 5)
958  )
959  )
960  )
961  )
962  (set_local $7
963  (i64.shr_s
964  (i64.shl
965  (i64.extend_u/i32
966  (get_local $2)
967  )
968  (i64.const 56)
969  )
970  (i64.const 56)
971  )
972  )
973  )
974  (set_local $7
975  (i64.shl
976  (i64.and
977  (get_local $7)
978  (i64.const 31)
979  )
980  (i64.and
981  (get_local $4)
982  (i64.const 4294967295)
983  )
984  )
985  )
986  )
987  (set_local $3
988  (i32.add
989  (get_local $3)
990  (i32.const 1)
991  )
992  )
993  (set_local $5
994  (i64.add
995  (get_local $5)
996  (i64.const 1)
997  )
998  )
999  (set_local $6
1000  (i64.or
1001  (get_local $7)
1002  (get_local $6)
1003  )
1004  )
1005  (br_if $label$0
1006  (i64.ne
1007  (tee_local $4
1008  (i64.add
1009  (get_local $4)
1010  (i64.const -5)
1011  )
1012  )
1013  (i64.const -6)
1014  )
1015  )
1016  )
1017  (block $label$6
1018  (br_if $label$6
1019  (i64.ne
1020  (get_local $6)
1021  (get_local $0)
1022  )
1023  )
1024  (set_local $5
1025  (i64.const 0)
1026  )
1027  (set_local $4
1028  (i64.const 59)
1029  )
1030  (set_local $3
1031  (i32.const 144)
1032  )
1033  (set_local $6
1034  (i64.const 0)
1035  )
1036  (loop $label$7
1037  (block $label$8
1038  (block $label$9
1039  (block $label$10
1040  (block $label$11
1041  (block $label$12
1042  (br_if $label$12
1043  (i64.gt_u
1044  (get_local $5)
1045  (i64.const 7)
1046  )
1047  )
1048  (br_if $label$11
1049  (i32.gt_u
1050  (i32.and
1051  (i32.add
1052  (tee_local $2
1053  (i32.load8_s
1054  (get_local $3)
1055  )
1056  )
1057  (i32.const -97)
1058  )
1059  (i32.const 255)
1060  )
1061  (i32.const 25)
1062  )
1063  )
1064  (set_local $2
1065  (i32.add
1066  (get_local $2)
1067  (i32.const 160)
1068  )
1069  )
1070  (br $label$10)
1071  )
1072  (set_local $7
1073  (i64.const 0)
1074  )
1075  (br_if $label$9
1076  (i64.le_u
1077  (get_local $5)
1078  (i64.const 11)
1079  )
1080  )
1081  (br $label$8)
1082  )
1083  (set_local $2
1084  (select
1085  (i32.add
1086  (get_local $2)
1087  (i32.const 234)
1088  )
1089  (i32.const 0)
1090  (i32.lt_u
1091  (i32.and
1092  (i32.add
1093  (get_local $2)
1094  (i32.const -49)
1095  )
1096  (i32.const 255)
1097  )
1098  (i32.const 5)
1099  )
1100  )
1101  )
1102  )
1103  (set_local $7
1104  (i64.shr_s
1105  (i64.shl
1106  (i64.extend_u/i32
1107  (get_local $2)
1108  )
1109  (i64.const 56)
1110  )
1111  (i64.const 56)
1112  )
1113  )
1114  )
1115  (set_local $7
1116  (i64.shl
1117  (i64.and
1118  (get_local $7)
1119  (i64.const 31)
1120  )
1121  (i64.and
1122  (get_local $4)
1123  (i64.const 4294967295)
1124  )
1125  )
1126  )
1127  )
1128  (set_local $3
1129  (i32.add
1130  (get_local $3)
1131  (i32.const 1)
1132  )
1133  )
1134  (set_local $5
1135  (i64.add
1136  (get_local $5)
1137  (i64.const 1)
1138  )
1139  )
1140  (set_local $6
1141  (i64.or
1142  (get_local $7)
1143  (get_local $6)
1144  )
1145  )
1146  (br_if $label$7
1147  (i64.ne
1148  (tee_local $4
1149  (i64.add
1150  (get_local $4)
1151  (i64.const -5)
1152  )
1153  )
1154  (i64.const -6)
1155  )
1156  )
1157  )
1158  (br_if $label$6
1159  (i64.ne
1160  (get_local $6)
1161  (get_local $1)
1162  )
1163  )
1164  (i64.store offset=24
1165  (get_local $8)
1166  (i64.const 0)
1167  )
1168  (call $assert
1169  (i32.gt_u
1170  (call $readMessage
1171  (i32.add
1172  (get_local $8)
1173  (i32.const 8)
1174  )
1175  (i32.const 24)
1176  )
1177  (i32.const 23)
1178  )
1179  (i32.const 160)
1180  )
1181  (call $_ZN8currency23apply_currency_transferERKNS_8TransferE
1182  (i32.add
1183  (get_local $8)
1184  (i32.const 8)
1185  )
1186  )
1187  )
1188  (i32.store offset=4
1189  (i32.const 0)
1190  (i32.add
1191  (get_local $8)
1192  (i32.const 32)
1193  )
1194  )
1195  )
1196 )
1197 )=====";
const char * currency_wast
Definition: currency.wast.hpp:1
+Go to the documentation of this file.
1 const char* currency_wast = R"=====(
2 (module
3  (type $FUNCSIG$ijji (func (param i64 i64 i32) (result i32)))
4  (type $FUNCSIG$ijjii (func (param i64 i64 i32 i32) (result i32)))
5  (type $FUNCSIG$vj (func (param i64)))
6  (type $FUNCSIG$ijjjii (func (param i64 i64 i64 i32 i32) (result i32)))
7  (type $FUNCSIG$vii (func (param i32 i32)))
8  (type $FUNCSIG$iii (func (param i32 i32) (result i32)))
9  (import "env" "assert" (func $assert (param i32 i32)))
10  (import "env" "load_i64" (func $load_i64 (param i64 i64 i64 i32 i32) (result i32)))
11  (import "env" "read_message" (func $read_message (param i32 i32) (result i32)))
12  (import "env" "remove_i64" (func $remove_i64 (param i64 i64 i32) (result i32)))
13  (import "env" "require_auth" (func $require_auth (param i64)))
14  (import "env" "require_notice" (func $require_notice (param i64)))
15  (import "env" "store_i64" (func $store_i64 (param i64 i64 i32 i32) (result i32)))
16  (table 0 anyfunc)
17  (memory $0 1)
18  (data (i32.const 4) "\c0\04\00\00")
19  (data (i32.const 16) "account\00")
20  (data (i32.const 32) "integer underflow subtracting token balance\00")
21  (data (i32.const 80) "integer overflow adding token balance\00")
22  (data (i32.const 128) "currency\00")
23  (data (i32.const 144) "transfer\00")
24  (data (i32.const 160) "message shorter than expected\00")
25  (export "memory" (memory $0))
26  (export "_ZN8currency13store_accountEyRKNS_7accountE" (func $_ZN8currency13store_accountEyRKNS_7accountE))
27  (export "_ZN8currency23apply_currency_transferERKNS_8transferE" (func $_ZN8currency23apply_currency_transferERKNS_8transferE))
28  (export "init" (func $init))
29  (export "apply" (func $apply))
30  (func $_ZN8currency13store_accountEyRKNS_7accountE (param $0 i64) (param $1 i32)
31  (block $label$0
32  (br_if $label$0
33  (i64.eq
34  (i64.load offset=8
35  (get_local $1)
36  )
37  (i64.const 0)
38  )
39  )
40  (drop
41  (call $store_i64
42  (get_local $0)
43  (i64.const 3607749778735104000)
44  (get_local $1)
45  (i32.const 16)
46  )
47  )
48  (return)
49  )
50  (drop
51  (call $remove_i64
52  (get_local $0)
53  (i64.const 3607749778735104000)
54  (get_local $1)
55  )
56  )
57  )
58  (func $_ZN8currency23apply_currency_transferERKNS_8transferE (param $0 i32)
59  (local $1 i64)
60  (local $2 i32)
61  (local $3 i32)
62  (local $4 i64)
63  (local $5 i64)
64  (local $6 i64)
65  (local $7 i64)
66  (local $8 i32)
67  (i32.store offset=4
68  (i32.const 0)
69  (tee_local $8
70  (i32.sub
71  (i32.load offset=4
72  (i32.const 0)
73  )
74  (i32.const 32)
75  )
76  )
77  )
78  (set_local $5
79  (i64.load
80  (get_local $0)
81  )
82  )
83  (call $require_notice
84  (i64.load offset=8
85  (get_local $0)
86  )
87  )
88  (call $require_notice
89  (get_local $5)
90  )
91  (call $require_auth
92  (i64.load
93  (get_local $0)
94  )
95  )
96  (set_local $1
97  (i64.load
98  (get_local $0)
99  )
100  )
101  (set_local $5
102  (i64.const 0)
103  )
104  (set_local $4
105  (i64.const 59)
106  )
107  (set_local $3
108  (i32.const 16)
109  )
110  (set_local $6
111  (i64.const 0)
112  )
113  (loop $label$0
114  (block $label$1
115  (block $label$2
116  (block $label$3
117  (block $label$4
118  (block $label$5
119  (br_if $label$5
120  (i64.gt_u
121  (get_local $5)
122  (i64.const 6)
123  )
124  )
125  (br_if $label$4
126  (i32.gt_u
127  (i32.and
128  (i32.add
129  (tee_local $2
130  (i32.load8_s
131  (get_local $3)
132  )
133  )
134  (i32.const -97)
135  )
136  (i32.const 255)
137  )
138  (i32.const 25)
139  )
140  )
141  (set_local $2
142  (i32.add
143  (get_local $2)
144  (i32.const 165)
145  )
146  )
147  (br $label$3)
148  )
149  (set_local $7
150  (i64.const 0)
151  )
152  (br_if $label$2
153  (i64.le_u
154  (get_local $5)
155  (i64.const 11)
156  )
157  )
158  (br $label$1)
159  )
160  (set_local $2
161  (select
162  (i32.add
163  (get_local $2)
164  (i32.const 208)
165  )
166  (i32.const 0)
167  (i32.lt_u
168  (i32.and
169  (i32.add
170  (get_local $2)
171  (i32.const -49)
172  )
173  (i32.const 255)
174  )
175  (i32.const 5)
176  )
177  )
178  )
179  )
180  (set_local $7
181  (i64.shr_s
182  (i64.shl
183  (i64.extend_u/i32
184  (get_local $2)
185  )
186  (i64.const 56)
187  )
188  (i64.const 56)
189  )
190  )
191  )
192  (set_local $7
193  (i64.shl
194  (i64.and
195  (get_local $7)
196  (i64.const 31)
197  )
198  (i64.and
199  (get_local $4)
200  (i64.const 4294967295)
201  )
202  )
203  )
204  )
205  (set_local $3
206  (i32.add
207  (get_local $3)
208  (i32.const 1)
209  )
210  )
211  (set_local $5
212  (i64.add
213  (get_local $5)
214  (i64.const 1)
215  )
216  )
217  (set_local $6
218  (i64.or
219  (get_local $7)
220  (get_local $6)
221  )
222  )
223  (br_if $label$0
224  (i64.ne
225  (tee_local $4
226  (i64.add
227  (get_local $4)
228  (i64.const -5)
229  )
230  )
231  (i64.const -6)
232  )
233  )
234  )
235  (set_local $5
236  (i64.const 0)
237  )
238  (i64.store offset=24
239  (get_local $8)
240  (i64.const 0)
241  )
242  (i64.store offset=16
243  (get_local $8)
244  (get_local $6)
245  )
246  (drop
247  (call $load_i64
248  (get_local $1)
249  (i64.const 5093418677655568384)
250  (i64.const 3607749778735104000)
251  (i32.add
252  (get_local $8)
253  (i32.const 16)
254  )
255  (i32.const 16)
256  )
257  )
258  (set_local $1
259  (i64.load
260  (i32.add
261  (get_local $0)
262  (i32.const 8)
263  )
264  )
265  )
266  (set_local $4
267  (i64.const 59)
268  )
269  (set_local $3
270  (i32.const 16)
271  )
272  (set_local $6
273  (i64.const 0)
274  )
275  (loop $label$6
276  (block $label$7
277  (block $label$8
278  (block $label$9
279  (block $label$10
280  (block $label$11
281  (br_if $label$11
282  (i64.gt_u
283  (get_local $5)
284  (i64.const 6)
285  )
286  )
287  (br_if $label$10
288  (i32.gt_u
289  (i32.and
290  (i32.add
291  (tee_local $2
292  (i32.load8_s
293  (get_local $3)
294  )
295  )
296  (i32.const -97)
297  )
298  (i32.const 255)
299  )
300  (i32.const 25)
301  )
302  )
303  (set_local $2
304  (i32.add
305  (get_local $2)
306  (i32.const 165)
307  )
308  )
309  (br $label$9)
310  )
311  (set_local $7
312  (i64.const 0)
313  )
314  (br_if $label$8
315  (i64.le_u
316  (get_local $5)
317  (i64.const 11)
318  )
319  )
320  (br $label$7)
321  )
322  (set_local $2
323  (select
324  (i32.add
325  (get_local $2)
326  (i32.const 208)
327  )
328  (i32.const 0)
329  (i32.lt_u
330  (i32.and
331  (i32.add
332  (get_local $2)
333  (i32.const -49)
334  )
335  (i32.const 255)
336  )
337  (i32.const 5)
338  )
339  )
340  )
341  )
342  (set_local $7
343  (i64.shr_s
344  (i64.shl
345  (i64.extend_u/i32
346  (get_local $2)
347  )
348  (i64.const 56)
349  )
350  (i64.const 56)
351  )
352  )
353  )
354  (set_local $7
355  (i64.shl
356  (i64.and
357  (get_local $7)
358  (i64.const 31)
359  )
360  (i64.and
361  (get_local $4)
362  (i64.const 4294967295)
363  )
364  )
365  )
366  )
367  (set_local $3
368  (i32.add
369  (get_local $3)
370  (i32.const 1)
371  )
372  )
373  (set_local $5
374  (i64.add
375  (get_local $5)
376  (i64.const 1)
377  )
378  )
379  (set_local $6
380  (i64.or
381  (get_local $7)
382  (get_local $6)
383  )
384  )
385  (br_if $label$6
386  (i64.ne
387  (tee_local $4
388  (i64.add
389  (get_local $4)
390  (i64.const -5)
391  )
392  )
393  (i64.const -6)
394  )
395  )
396  )
397  (i64.store
398  (get_local $8)
399  (get_local $6)
400  )
401  (i64.store offset=8
402  (get_local $8)
403  (i64.const 0)
404  )
405  (drop
406  (call $load_i64
407  (get_local $1)
408  (i64.const 5093418677655568384)
409  (i64.const 3607749778735104000)
410  (get_local $8)
411  (i32.const 16)
412  )
413  )
414  (call $assert
415  (i64.ge_u
416  (i64.load
417  (tee_local $3
418  (i32.add
419  (get_local $8)
420  (i32.const 24)
421  )
422  )
423  )
424  (i64.load offset=16
425  (get_local $0)
426  )
427  )
428  (i32.const 32)
429  )
430  (i64.store
431  (get_local $3)
432  (i64.sub
433  (i64.load
434  (get_local $3)
435  )
436  (tee_local $5
437  (i64.load offset=16
438  (get_local $0)
439  )
440  )
441  )
442  )
443  (call $assert
444  (i64.ge_u
445  (i64.add
446  (get_local $5)
447  (i64.load offset=8
448  (get_local $8)
449  )
450  )
451  (get_local $5)
452  )
453  (i32.const 80)
454  )
455  (i64.store offset=8
456  (get_local $8)
457  (i64.add
458  (i64.load offset=8
459  (get_local $8)
460  )
461  (i64.load offset=16
462  (get_local $0)
463  )
464  )
465  )
466  (set_local $5
467  (i64.load
468  (get_local $0)
469  )
470  )
471  (block $label$12
472  (block $label$13
473  (br_if $label$13
474  (i64.eq
475  (i64.load
476  (get_local $3)
477  )
478  (i64.const 0)
479  )
480  )
481  (drop
482  (call $store_i64
483  (get_local $5)
484  (i64.const 3607749778735104000)
485  (i32.add
486  (get_local $8)
487  (i32.const 16)
488  )
489  (i32.const 16)
490  )
491  )
492  (br $label$12)
493  )
494  (drop
495  (call $remove_i64
496  (get_local $5)
497  (i64.const 3607749778735104000)
498  (i32.add
499  (get_local $8)
500  (i32.const 16)
501  )
502  )
503  )
504  )
505  (set_local $5
506  (i64.load
507  (i32.add
508  (get_local $0)
509  (i32.const 8)
510  )
511  )
512  )
513  (block $label$14
514  (block $label$15
515  (br_if $label$15
516  (i64.eq
517  (i64.load
518  (i32.add
519  (get_local $8)
520  (i32.const 8)
521  )
522  )
523  (i64.const 0)
524  )
525  )
526  (drop
527  (call $store_i64
528  (get_local $5)
529  (i64.const 3607749778735104000)
530  (get_local $8)
531  (i32.const 16)
532  )
533  )
534  (br $label$14)
535  )
536  (drop
537  (call $remove_i64
538  (get_local $5)
539  (i64.const 3607749778735104000)
540  (get_local $8)
541  )
542  )
543  )
544  (i32.store offset=4
545  (i32.const 0)
546  (i32.add
547  (get_local $8)
548  (i32.const 32)
549  )
550  )
551  )
552  (func $init
553  (local $0 i32)
554  (local $1 i32)
555  (local $2 i64)
556  (local $3 i64)
557  (local $4 i64)
558  (local $5 i64)
559  (local $6 i64)
560  (local $7 i32)
561  (i32.store offset=4
562  (i32.const 0)
563  (tee_local $7
564  (i32.sub
565  (i32.load offset=4
566  (i32.const 0)
567  )
568  (i32.const 32)
569  )
570  )
571  )
572  (set_local $3
573  (i64.const 0)
574  )
575  (set_local $2
576  (i64.const 59)
577  )
578  (set_local $1
579  (i32.const 16)
580  )
581  (set_local $4
582  (i64.const 0)
583  )
584  (loop $label$0
585  (block $label$1
586  (block $label$2
587  (block $label$3
588  (block $label$4
589  (block $label$5
590  (br_if $label$5
591  (i64.gt_u
592  (get_local $3)
593  (i64.const 6)
594  )
595  )
596  (br_if $label$4
597  (i32.gt_u
598  (i32.and
599  (i32.add
600  (tee_local $0
601  (i32.load8_s
602  (get_local $1)
603  )
604  )
605  (i32.const -97)
606  )
607  (i32.const 255)
608  )
609  (i32.const 25)
610  )
611  )
612  (set_local $0
613  (i32.add
614  (get_local $0)
615  (i32.const 165)
616  )
617  )
618  (br $label$3)
619  )
620  (set_local $5
621  (i64.const 0)
622  )
623  (br_if $label$2
624  (i64.le_u
625  (get_local $3)
626  (i64.const 11)
627  )
628  )
629  (br $label$1)
630  )
631  (set_local $0
632  (select
633  (i32.add
634  (get_local $0)
635  (i32.const 208)
636  )
637  (i32.const 0)
638  (i32.lt_u
639  (i32.and
640  (i32.add
641  (get_local $0)
642  (i32.const -49)
643  )
644  (i32.const 255)
645  )
646  (i32.const 5)
647  )
648  )
649  )
650  )
651  (set_local $5
652  (i64.shr_s
653  (i64.shl
654  (i64.extend_u/i32
655  (get_local $0)
656  )
657  (i64.const 56)
658  )
659  (i64.const 56)
660  )
661  )
662  )
663  (set_local $5
664  (i64.shl
665  (i64.and
666  (get_local $5)
667  (i64.const 31)
668  )
669  (i64.and
670  (get_local $2)
671  (i64.const 4294967295)
672  )
673  )
674  )
675  )
676  (set_local $1
677  (i32.add
678  (get_local $1)
679  (i32.const 1)
680  )
681  )
682  (set_local $3
683  (i64.add
684  (get_local $3)
685  (i64.const 1)
686  )
687  )
688  (set_local $4
689  (i64.or
690  (get_local $5)
691  (get_local $4)
692  )
693  )
694  (br_if $label$0
695  (i64.ne
696  (tee_local $2
697  (i64.add
698  (get_local $2)
699  (i64.const -5)
700  )
701  )
702  (i64.const -6)
703  )
704  )
705  )
706  (set_local $3
707  (i64.const 0)
708  )
709  (i64.store offset=24
710  (get_local $7)
711  (i64.const 0)
712  )
713  (i64.store offset=16
714  (get_local $7)
715  (get_local $4)
716  )
717  (set_local $2
718  (i64.const 59)
719  )
720  (set_local $1
721  (i32.const 128)
722  )
723  (set_local $4
724  (i64.const 0)
725  )
726  (loop $label$6
727  (block $label$7
728  (block $label$8
729  (block $label$9
730  (block $label$10
731  (block $label$11
732  (br_if $label$11
733  (i64.gt_u
734  (get_local $3)
735  (i64.const 7)
736  )
737  )
738  (br_if $label$10
739  (i32.gt_u
740  (i32.and
741  (i32.add
742  (tee_local $0
743  (i32.load8_s
744  (get_local $1)
745  )
746  )
747  (i32.const -97)
748  )
749  (i32.const 255)
750  )
751  (i32.const 25)
752  )
753  )
754  (set_local $0
755  (i32.add
756  (get_local $0)
757  (i32.const 165)
758  )
759  )
760  (br $label$9)
761  )
762  (set_local $5
763  (i64.const 0)
764  )
765  (br_if $label$8
766  (i64.le_u
767  (get_local $3)
768  (i64.const 11)
769  )
770  )
771  (br $label$7)
772  )
773  (set_local $0
774  (select
775  (i32.add
776  (get_local $0)
777  (i32.const 208)
778  )
779  (i32.const 0)
780  (i32.lt_u
781  (i32.and
782  (i32.add
783  (get_local $0)
784  (i32.const -49)
785  )
786  (i32.const 255)
787  )
788  (i32.const 5)
789  )
790  )
791  )
792  )
793  (set_local $5
794  (i64.shr_s
795  (i64.shl
796  (i64.extend_u/i32
797  (get_local $0)
798  )
799  (i64.const 56)
800  )
801  (i64.const 56)
802  )
803  )
804  )
805  (set_local $5
806  (i64.shl
807  (i64.and
808  (get_local $5)
809  (i64.const 31)
810  )
811  (i64.and
812  (get_local $2)
813  (i64.const 4294967295)
814  )
815  )
816  )
817  )
818  (set_local $1
819  (i32.add
820  (get_local $1)
821  (i32.const 1)
822  )
823  )
824  (set_local $3
825  (i64.add
826  (get_local $3)
827  (i64.const 1)
828  )
829  )
830  (set_local $4
831  (i64.or
832  (get_local $5)
833  (get_local $4)
834  )
835  )
836  (br_if $label$6
837  (i64.ne
838  (tee_local $2
839  (i64.add
840  (get_local $2)
841  (i64.const -5)
842  )
843  )
844  (i64.const -6)
845  )
846  )
847  )
848  (block $label$12
849  (br_if $label$12
850  (i32.eq
851  (call $load_i64
852  (get_local $4)
853  (i64.const 5093418677655568384)
854  (i64.const 3607749778735104000)
855  (i32.add
856  (get_local $7)
857  (i32.const 16)
858  )
859  (i32.const 16)
860  )
861  (i32.const 16)
862  )
863  )
864  (set_local $3
865  (i64.const 0)
866  )
867  (set_local $2
868  (i64.const 59)
869  )
870  (set_local $1
871  (i32.const 128)
872  )
873  (set_local $4
874  (i64.const 0)
875  )
876  (loop $label$13
877  (block $label$14
878  (block $label$15
879  (block $label$16
880  (block $label$17
881  (block $label$18
882  (br_if $label$18
883  (i64.gt_u
884  (get_local $3)
885  (i64.const 7)
886  )
887  )
888  (br_if $label$17
889  (i32.gt_u
890  (i32.and
891  (i32.add
892  (tee_local $0
893  (i32.load8_s
894  (get_local $1)
895  )
896  )
897  (i32.const -97)
898  )
899  (i32.const 255)
900  )
901  (i32.const 25)
902  )
903  )
904  (set_local $0
905  (i32.add
906  (get_local $0)
907  (i32.const 165)
908  )
909  )
910  (br $label$16)
911  )
912  (set_local $5
913  (i64.const 0)
914  )
915  (br_if $label$15
916  (i64.le_u
917  (get_local $3)
918  (i64.const 11)
919  )
920  )
921  (br $label$14)
922  )
923  (set_local $0
924  (select
925  (i32.add
926  (get_local $0)
927  (i32.const 208)
928  )
929  (i32.const 0)
930  (i32.lt_u
931  (i32.and
932  (i32.add
933  (get_local $0)
934  (i32.const -49)
935  )
936  (i32.const 255)
937  )
938  (i32.const 5)
939  )
940  )
941  )
942  )
943  (set_local $5
944  (i64.shr_s
945  (i64.shl
946  (i64.extend_u/i32
947  (get_local $0)
948  )
949  (i64.const 56)
950  )
951  (i64.const 56)
952  )
953  )
954  )
955  (set_local $5
956  (i64.shl
957  (i64.and
958  (get_local $5)
959  (i64.const 31)
960  )
961  (i64.and
962  (get_local $2)
963  (i64.const 4294967295)
964  )
965  )
966  )
967  )
968  (set_local $1
969  (i32.add
970  (get_local $1)
971  (i32.const 1)
972  )
973  )
974  (set_local $3
975  (i64.add
976  (get_local $3)
977  (i64.const 1)
978  )
979  )
980  (set_local $4
981  (i64.or
982  (get_local $5)
983  (get_local $4)
984  )
985  )
986  (br_if $label$13
987  (i64.ne
988  (tee_local $2
989  (i64.add
990  (get_local $2)
991  (i64.const -5)
992  )
993  )
994  (i64.const -6)
995  )
996  )
997  )
998  (set_local $3
999  (i64.const 0)
1000  )
1001  (set_local $2
1002  (i64.const 59)
1003  )
1004  (set_local $1
1005  (i32.const 16)
1006  )
1007  (set_local $6
1008  (i64.const 0)
1009  )
1010  (loop $label$19
1011  (block $label$20
1012  (block $label$21
1013  (block $label$22
1014  (block $label$23
1015  (block $label$24
1016  (br_if $label$24
1017  (i64.gt_u
1018  (get_local $3)
1019  (i64.const 6)
1020  )
1021  )
1022  (br_if $label$23
1023  (i32.gt_u
1024  (i32.and
1025  (i32.add
1026  (tee_local $0
1027  (i32.load8_s
1028  (get_local $1)
1029  )
1030  )
1031  (i32.const -97)
1032  )
1033  (i32.const 255)
1034  )
1035  (i32.const 25)
1036  )
1037  )
1038  (set_local $0
1039  (i32.add
1040  (get_local $0)
1041  (i32.const 165)
1042  )
1043  )
1044  (br $label$22)
1045  )
1046  (set_local $5
1047  (i64.const 0)
1048  )
1049  (br_if $label$21
1050  (i64.le_u
1051  (get_local $3)
1052  (i64.const 11)
1053  )
1054  )
1055  (br $label$20)
1056  )
1057  (set_local $0
1058  (select
1059  (i32.add
1060  (get_local $0)
1061  (i32.const 208)
1062  )
1063  (i32.const 0)
1064  (i32.lt_u
1065  (i32.and
1066  (i32.add
1067  (get_local $0)
1068  (i32.const -49)
1069  )
1070  (i32.const 255)
1071  )
1072  (i32.const 5)
1073  )
1074  )
1075  )
1076  )
1077  (set_local $5
1078  (i64.shr_s
1079  (i64.shl
1080  (i64.extend_u/i32
1081  (get_local $0)
1082  )
1083  (i64.const 56)
1084  )
1085  (i64.const 56)
1086  )
1087  )
1088  )
1089  (set_local $5
1090  (i64.shl
1091  (i64.and
1092  (get_local $5)
1093  (i64.const 31)
1094  )
1095  (i64.and
1096  (get_local $2)
1097  (i64.const 4294967295)
1098  )
1099  )
1100  )
1101  )
1102  (set_local $1
1103  (i32.add
1104  (get_local $1)
1105  (i32.const 1)
1106  )
1107  )
1108  (set_local $3
1109  (i64.add
1110  (get_local $3)
1111  (i64.const 1)
1112  )
1113  )
1114  (set_local $6
1115  (i64.or
1116  (get_local $5)
1117  (get_local $6)
1118  )
1119  )
1120  (br_if $label$19
1121  (i64.ne
1122  (tee_local $2
1123  (i64.add
1124  (get_local $2)
1125  (i64.const -5)
1126  )
1127  )
1128  (i64.const -6)
1129  )
1130  )
1131  )
1132  (i64.store offset=8
1133  (get_local $7)
1134  (i64.const 1000000000)
1135  )
1136  (i64.store
1137  (get_local $7)
1138  (get_local $6)
1139  )
1140  (drop
1141  (call $store_i64
1142  (get_local $4)
1143  (i64.const 3607749778735104000)
1144  (get_local $7)
1145  (i32.const 16)
1146  )
1147  )
1148  )
1149  (i32.store offset=4
1150  (i32.const 0)
1151  (i32.add
1152  (get_local $7)
1153  (i32.const 32)
1154  )
1155  )
1156  )
1157  (func $apply (param $0 i64) (param $1 i64)
1158  (local $2 i32)
1159  (local $3 i32)
1160  (local $4 i64)
1161  (local $5 i64)
1162  (local $6 i64)
1163  (local $7 i64)
1164  (local $8 i32)
1165  (i32.store offset=4
1166  (i32.const 0)
1167  (tee_local $8
1168  (i32.sub
1169  (i32.load offset=4
1170  (i32.const 0)
1171  )
1172  (i32.const 32)
1173  )
1174  )
1175  )
1176  (set_local $5
1177  (i64.const 0)
1178  )
1179  (set_local $4
1180  (i64.const 59)
1181  )
1182  (set_local $3
1183  (i32.const 128)
1184  )
1185  (set_local $6
1186  (i64.const 0)
1187  )
1188  (loop $label$0
1189  (block $label$1
1190  (block $label$2
1191  (block $label$3
1192  (block $label$4
1193  (block $label$5
1194  (br_if $label$5
1195  (i64.gt_u
1196  (get_local $5)
1197  (i64.const 7)
1198  )
1199  )
1200  (br_if $label$4
1201  (i32.gt_u
1202  (i32.and
1203  (i32.add
1204  (tee_local $2
1205  (i32.load8_s
1206  (get_local $3)
1207  )
1208  )
1209  (i32.const -97)
1210  )
1211  (i32.const 255)
1212  )
1213  (i32.const 25)
1214  )
1215  )
1216  (set_local $2
1217  (i32.add
1218  (get_local $2)
1219  (i32.const 165)
1220  )
1221  )
1222  (br $label$3)
1223  )
1224  (set_local $7
1225  (i64.const 0)
1226  )
1227  (br_if $label$2
1228  (i64.le_u
1229  (get_local $5)
1230  (i64.const 11)
1231  )
1232  )
1233  (br $label$1)
1234  )
1235  (set_local $2
1236  (select
1237  (i32.add
1238  (get_local $2)
1239  (i32.const 208)
1240  )
1241  (i32.const 0)
1242  (i32.lt_u
1243  (i32.and
1244  (i32.add
1245  (get_local $2)
1246  (i32.const -49)
1247  )
1248  (i32.const 255)
1249  )
1250  (i32.const 5)
1251  )
1252  )
1253  )
1254  )
1255  (set_local $7
1256  (i64.shr_s
1257  (i64.shl
1258  (i64.extend_u/i32
1259  (get_local $2)
1260  )
1261  (i64.const 56)
1262  )
1263  (i64.const 56)
1264  )
1265  )
1266  )
1267  (set_local $7
1268  (i64.shl
1269  (i64.and
1270  (get_local $7)
1271  (i64.const 31)
1272  )
1273  (i64.and
1274  (get_local $4)
1275  (i64.const 4294967295)
1276  )
1277  )
1278  )
1279  )
1280  (set_local $3
1281  (i32.add
1282  (get_local $3)
1283  (i32.const 1)
1284  )
1285  )
1286  (set_local $5
1287  (i64.add
1288  (get_local $5)
1289  (i64.const 1)
1290  )
1291  )
1292  (set_local $6
1293  (i64.or
1294  (get_local $7)
1295  (get_local $6)
1296  )
1297  )
1298  (br_if $label$0
1299  (i64.ne
1300  (tee_local $4
1301  (i64.add
1302  (get_local $4)
1303  (i64.const -5)
1304  )
1305  )
1306  (i64.const -6)
1307  )
1308  )
1309  )
1310  (block $label$6
1311  (br_if $label$6
1312  (i64.ne
1313  (get_local $6)
1314  (get_local $0)
1315  )
1316  )
1317  (set_local $5
1318  (i64.const 0)
1319  )
1320  (set_local $4
1321  (i64.const 59)
1322  )
1323  (set_local $3
1324  (i32.const 144)
1325  )
1326  (set_local $6
1327  (i64.const 0)
1328  )
1329  (loop $label$7
1330  (block $label$8
1331  (block $label$9
1332  (block $label$10
1333  (block $label$11
1334  (block $label$12
1335  (br_if $label$12
1336  (i64.gt_u
1337  (get_local $5)
1338  (i64.const 7)
1339  )
1340  )
1341  (br_if $label$11
1342  (i32.gt_u
1343  (i32.and
1344  (i32.add
1345  (tee_local $2
1346  (i32.load8_s
1347  (get_local $3)
1348  )
1349  )
1350  (i32.const -97)
1351  )
1352  (i32.const 255)
1353  )
1354  (i32.const 25)
1355  )
1356  )
1357  (set_local $2
1358  (i32.add
1359  (get_local $2)
1360  (i32.const 165)
1361  )
1362  )
1363  (br $label$10)
1364  )
1365  (set_local $7
1366  (i64.const 0)
1367  )
1368  (br_if $label$9
1369  (i64.le_u
1370  (get_local $5)
1371  (i64.const 11)
1372  )
1373  )
1374  (br $label$8)
1375  )
1376  (set_local $2
1377  (select
1378  (i32.add
1379  (get_local $2)
1380  (i32.const 208)
1381  )
1382  (i32.const 0)
1383  (i32.lt_u
1384  (i32.and
1385  (i32.add
1386  (get_local $2)
1387  (i32.const -49)
1388  )
1389  (i32.const 255)
1390  )
1391  (i32.const 5)
1392  )
1393  )
1394  )
1395  )
1396  (set_local $7
1397  (i64.shr_s
1398  (i64.shl
1399  (i64.extend_u/i32
1400  (get_local $2)
1401  )
1402  (i64.const 56)
1403  )
1404  (i64.const 56)
1405  )
1406  )
1407  )
1408  (set_local $7
1409  (i64.shl
1410  (i64.and
1411  (get_local $7)
1412  (i64.const 31)
1413  )
1414  (i64.and
1415  (get_local $4)
1416  (i64.const 4294967295)
1417  )
1418  )
1419  )
1420  )
1421  (set_local $3
1422  (i32.add
1423  (get_local $3)
1424  (i32.const 1)
1425  )
1426  )
1427  (set_local $5
1428  (i64.add
1429  (get_local $5)
1430  (i64.const 1)
1431  )
1432  )
1433  (set_local $6
1434  (i64.or
1435  (get_local $7)
1436  (get_local $6)
1437  )
1438  )
1439  (br_if $label$7
1440  (i64.ne
1441  (tee_local $4
1442  (i64.add
1443  (get_local $4)
1444  (i64.const -5)
1445  )
1446  )
1447  (i64.const -6)
1448  )
1449  )
1450  )
1451  (br_if $label$6
1452  (i64.ne
1453  (get_local $6)
1454  (get_local $1)
1455  )
1456  )
1457  (i64.store offset=24
1458  (get_local $8)
1459  (i64.const 0)
1460  )
1461  (call $assert
1462  (i32.gt_u
1463  (call $read_message
1464  (i32.add
1465  (get_local $8)
1466  (i32.const 8)
1467  )
1468  (i32.const 24)
1469  )
1470  (i32.const 23)
1471  )
1472  (i32.const 160)
1473  )
1474  (call $_ZN8currency23apply_currency_transferERKNS_8transferE
1475  (i32.add
1476  (get_local $8)
1477  (i32.const 8)
1478  )
1479  )
1480  )
1481  (i32.store offset=4
1482  (i32.const 0)
1483  (i32.add
1484  (get_local $8)
1485  (i32.const 32)
1486  )
1487  )
1488  )
1489 )
1490 )=====";
const char * currency_wast
Definition: currency.wast.hpp:1
diff --git a/docs/db_8h.html b/docs/db_8h.html index d08b41c3d8a..3e09ca15a72 100644 --- a/docs/db_8h.html +++ b/docs/db_8h.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/eoslib/db.h File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
Defines C API for interfacing with blockchain database. More...

#include <eoslib/types.h>
-
-Include dependency graph for db.h:
-
-
- - - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - - - - - - - - - - - - - - - - - - - - -

Go to the source code of this file.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Functions

int32_t store_i64 (AccountName scope, TableName table, const void *data, uint32_t datalen)
 
int32_t update_i64 (AccountName scope, TableName table, const void *data, uint32_t datalen)
 
int32_t load_i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
 
int32_t front_i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
 
int32_t back_i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
 
int32_t next_i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
 
int32_t previous_i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
 
int32_t lower_bound_i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
 
int32_t upper_bound_i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
 
int32_t remove_i64 (AccountName scope, TableName table, void *data)
 
int32_t store_str (AccountName scope, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t update_str (AccountName scope, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t load_str (AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t front_str (AccountName scope, AccountName code, TableName table, char *value, uint32_t valuelen)
 
int32_t back_str (AccountName scope, AccountName code, TableName table, char *value, uint32_t valuelen)
 
int32_t next_str (AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t previous_str (AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t lower_bound_str (AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t upper_bound_str (AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t remove_str (AccountName scope, TableName table, char *key, uint32_t keylen)
 
int32_t load_primary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t front_primary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t back_primary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t next_primary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t previous_primary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t upper_bound_primary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t lower_bound_primary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t load_secondary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t front_secondary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t back_secondary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t next_secondary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t previous_secondary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t upper_bound_secondary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t lower_bound_secondary_i128i128 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t remove_i128i128 (AccountName scope, TableName table, const void *data)
 
int32_t store_i128i128 (AccountName scope, TableName table, const void *data, uint32_t len)
 
int32_t update_i128i128 (AccountName scope, TableName table, const void *data, uint32_t len)
 
int32_t load_primary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t front_primary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t back_primary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t next_primary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t previous_primary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t upper_bound_primary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t lower_bound_primary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t load_secondary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t front_secondary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t back_secondary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t next_secondary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t previous_secondary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t upper_bound_secondary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t lower_bound_secondary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t load_tertiary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t front_tertiary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t back_tertiary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t next_tertiary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t previous_tertiary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t upper_bound_tertiary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t lower_bound_tertiary_i64i64i64 (AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
 
int32_t remove_i64i64i64 (AccountName scope, TableName table, const void *data)
 
int32_t store_i64i64i64 (AccountName scope, TableName table, const void *data, uint32_t len)
 
int32_t update_i64i64i64 (AccountName scope, TableName table, const void *data, uint32_t len)
 
int32_t store_i64 (account_name scope, table_name table, const void *data, uint32_t datalen)
 
int32_t update_i64 (account_name scope, table_name table, const void *data, uint32_t datalen)
 
int32_t load_i64 (account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
 
int32_t front_i64 (account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
 
int32_t back_i64 (account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
 
int32_t next_i64 (account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
 
int32_t previous_i64 (account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
 
int32_t lower_bound_i64 (account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
 
int32_t upper_bound_i64 (account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
 
int32_t remove_i64 (account_name scope, table_name table, void *data)
 
int32_t store_str (account_name scope, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t update_str (account_name scope, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t load_str (account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t front_str (account_name scope, account_name code, table_name table, char *value, uint32_t valuelen)
 
int32_t back_str (account_name scope, account_name code, table_name table, char *value, uint32_t valuelen)
 
int32_t next_str (account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t previous_str (account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t lower_bound_str (account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t upper_bound_str (account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
 
int32_t remove_str (account_name scope, table_name table, char *key, uint32_t keylen)
 
int32_t load_primary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t front_primary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t back_primary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t next_primary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t previous_primary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t upper_bound_primary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t lower_bound_primary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t load_secondary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t front_secondary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t back_secondary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t next_secondary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t previous_secondary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t upper_bound_secondary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t lower_bound_secondary_i128i128 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t remove_i128i128 (account_name scope, table_name table, const void *data)
 
int32_t store_i128i128 (account_name scope, table_name table, const void *data, uint32_t len)
 
int32_t update_i128i128 (account_name scope, table_name table, const void *data, uint32_t len)
 
int32_t load_primary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t front_primary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t back_primary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t next_primary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t previous_primary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t upper_bound_primary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t lower_bound_primary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t load_secondary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t front_secondary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t back_secondary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t next_secondary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t previous_secondary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t upper_bound_secondary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t lower_bound_secondary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t load_tertiary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t front_tertiary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t back_tertiary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t next_tertiary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t previous_tertiary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t upper_bound_tertiary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t lower_bound_tertiary_i64i64i64 (account_name scope, account_name code, table_name table, void *data, uint32_t len)
 
int32_t remove_i64i64i64 (account_name scope, table_name table, const void *data)
 
int32_t store_i64i64i64 (account_name scope, table_name table, const void *data, uint32_t len)
 
int32_t update_i64i64i64 (account_name scope, table_name table, const void *data, uint32_t len)
 

Detailed Description

@@ -268,7 +209,7 @@ diff --git a/docs/db_8h_source.html b/docs/db_8h_source.html index 143d17f6c06..eb4216f1560 100644 --- a/docs/db_8h_source.html +++ b/docs/db_8h_source.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/eoslib/db.h Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
db.h
-Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <eoslib/types.h>
9 extern "C" {
133 int32_t store_i64( AccountName scope, TableName table, const void* data, uint32_t datalen );
134 
152 int32_t update_i64( AccountName scope, TableName table, const void* data, uint32_t datalen );
153 
163 int32_t load_i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t datalen );
164 
174 int32_t front_i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t datalen );
175 
185 int32_t back_i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t datalen );
186 
196 int32_t next_i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t datalen );
197 
207 int32_t previous_i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t datalen );
208 
218 int32_t lower_bound_i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t datalen );
219 
229 int32_t upper_bound_i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t datalen );
230 
238 int32_t remove_i64( AccountName scope, TableName table, void* data );
239 
241 
269  int32_t store_str( AccountName scope, TableName table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
270 
274  int32_t update_str( AccountName scope, TableName table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
275 
285  int32_t load_str( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
286  int32_t front_str( AccountName scope, AccountName code, TableName table, char* value, uint32_t valuelen );
287  int32_t back_str( AccountName scope, AccountName code, TableName table, char* value, uint32_t valuelen );
288  int32_t next_str( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
289  int32_t previous_str( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
290  int32_t lower_bound_str( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
291  int32_t upper_bound_str( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
292 
298  int32_t remove_str( AccountName scope, TableName table, char* key, uint32_t keylen );
299 
301 
408 int32_t load_primary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
409 
419 int32_t front_primary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
420 
430 int32_t back_primary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
431 
441 int32_t next_primary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
442 
452 int32_t previous_primary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
453 
463 int32_t upper_bound_primary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
464 
474 int32_t lower_bound_primary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
475 
495 int32_t load_secondary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
496 
506 int32_t front_secondary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
507 
517 int32_t back_secondary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
518 
528 int32_t next_secondary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
529 
539 int32_t previous_secondary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
540 
550 int32_t upper_bound_secondary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
551 
561 int32_t lower_bound_secondary_i128i128( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
562 
563 
571 int32_t remove_i128i128( AccountName scope, TableName table, const void* data );
579 int32_t store_i128i128( AccountName scope, TableName table, const void* data, uint32_t len );
580 
588 int32_t update_i128i128( AccountName scope, TableName table, const void* data, uint32_t len );
589 
591 
682 int32_t load_primary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
683 
693 int32_t front_primary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
694 
704 int32_t back_primary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
705 
715 int32_t next_primary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
716 
726 int32_t previous_primary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
727 
737 int32_t upper_bound_primary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
738 
748 int32_t lower_bound_primary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
749 
768 int32_t load_secondary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
769 
779 int32_t front_secondary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
780 
790 int32_t back_secondary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
791 
801 int32_t next_secondary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
802 
812 int32_t previous_secondary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
813 
824 
835 
854 int32_t load_tertiary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
855 
865 int32_t front_tertiary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
866 
876 int32_t back_tertiary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
877 
887 int32_t next_tertiary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
888 
898 int32_t previous_tertiary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
899 
909 int32_t upper_bound_tertiary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
910 
920 int32_t lower_bound_tertiary_i64i64i64( AccountName scope, AccountName code, TableName table, void* data, uint32_t len );
921 
929 int32_t remove_i64i64i64( AccountName scope, TableName table, const void* data );
937 int32_t store_i64i64i64( AccountName scope, TableName table, const void* data, uint32_t len );
938 
946 int32_t update_i64i64i64( AccountName scope, TableName table, const void* data, uint32_t len );
947 
949 }
-
uint64_t AccountName
Definition: types.h:24
-
int32_t upper_bound_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t store_i64i64i64(AccountName scope, TableName table, const void *data, uint32_t len)
-
int32_t back_secondary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t back_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t load_secondary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t update_i128i128(AccountName scope, TableName table, const void *data, uint32_t len)
-
int32_t back_str(AccountName scope, AccountName code, TableName table, char *value, uint32_t valuelen)
-
int32_t next_tertiary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t load_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t lower_bound_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t load_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t back_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t remove_i64i64i64(AccountName scope, TableName table, const void *data)
-
int32_t front_secondary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t lower_bound_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t next_primary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t update_i64i64i64(AccountName scope, TableName table, const void *data, uint32_t len)
-
int32_t lower_bound_secondary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t front_primary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t load_primary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t remove_i64(AccountName scope, TableName table, void *data)
-
unsigned long uint32_t
Definition: types.h:18
-
int32_t store_i128i128(AccountName scope, TableName table, const void *data, uint32_t len)
-
int32_t front_str(AccountName scope, AccountName code, TableName table, char *value, uint32_t valuelen)
-
int32_t upper_bound_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t update_i64(AccountName scope, TableName table, const void *data, uint32_t datalen)
-
int32_t lower_bound_primary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t next_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t store_str(AccountName scope, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t next_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t back_primary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t upper_bound_secondary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t previous_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t load_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t front_tertiary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t remove_str(AccountName scope, TableName table, char *key, uint32_t keylen)
-
int32_t lower_bound_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t remove_i128i128(AccountName scope, TableName table, const void *data)
-
int32_t lower_bound_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
long int32_t
Definition: types.h:19
-
int32_t previous_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t upper_bound_tertiary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t next_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t upper_bound_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t previous_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t upper_bound_primary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t next_secondary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t load_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t previous_primary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t upper_bound_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t lower_bound_tertiary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t load_tertiary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t previous_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t next_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t front_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t back_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t previous_secondary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t front_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t update_str(AccountName scope, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t store_i64(AccountName scope, TableName table, const void *data, uint32_t datalen)
-
int32_t previous_tertiary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t back_tertiary_i64i64i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t front_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
uint64_t TableName
Definition: types.h:27
+Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <eoslib/types.h>
9 extern "C" {
133 int32_t store_i64( account_name scope, table_name table, const void* data, uint32_t datalen );
134 
152 int32_t update_i64( account_name scope, table_name table, const void* data, uint32_t datalen );
153 
163 int32_t load_i64( account_name scope, account_name code, table_name table, void* data, uint32_t datalen );
164 
174 int32_t front_i64( account_name scope, account_name code, table_name table, void* data, uint32_t datalen );
175 
185 int32_t back_i64( account_name scope, account_name code, table_name table, void* data, uint32_t datalen );
186 
196 int32_t next_i64( account_name scope, account_name code, table_name table, void* data, uint32_t datalen );
197 
207 int32_t previous_i64( account_name scope, account_name code, table_name table, void* data, uint32_t datalen );
208 
218 int32_t lower_bound_i64( account_name scope, account_name code, table_name table, void* data, uint32_t datalen );
219 
229 int32_t upper_bound_i64( account_name scope, account_name code, table_name table, void* data, uint32_t datalen );
230 
238 int32_t remove_i64( account_name scope, table_name table, void* data );
239 
241 
272  int32_t store_str( account_name scope, table_name table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
273 
294  int32_t update_str( account_name scope, table_name table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
295 
307  int32_t load_str( account_name scope, account_name code, table_name table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
308 
319  int32_t front_str( account_name scope, account_name code, table_name table, char* value, uint32_t valuelen );
320 
331  int32_t back_str( account_name scope, account_name code, table_name table, char* value, uint32_t valuelen );
332 
343  int32_t next_str( account_name scope, account_name code, table_name table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
344 
355  int32_t previous_str( account_name scope, account_name code, table_name table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
356 
367  int32_t lower_bound_str( account_name scope, account_name code, table_name table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
368 
379  int32_t upper_bound_str( account_name scope, account_name code, table_name table, char* key, uint32_t keylen, char* value, uint32_t valuelen );
380 
387  int32_t remove_str( account_name scope, table_name table, char* key, uint32_t keylen );
388 
390 
497 int32_t load_primary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
498 
508 int32_t front_primary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
509 
519 int32_t back_primary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
520 
530 int32_t next_primary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
531 
541 int32_t previous_primary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
542 
553 
564 
584 int32_t load_secondary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
585 
595 int32_t front_secondary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
596 
606 int32_t back_secondary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
607 
617 int32_t next_secondary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
618 
628 int32_t previous_secondary_i128i128( account_name scope, account_name code, table_name table, void* data, uint32_t len );
629 
640 
651 
652 
660 int32_t remove_i128i128( account_name scope, table_name table, const void* data );
668 int32_t store_i128i128( account_name scope, table_name table, const void* data, uint32_t len );
669 
677 int32_t update_i128i128( account_name scope, table_name table, const void* data, uint32_t len );
678 
680 
771 int32_t load_primary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
772 
782 int32_t front_primary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
783 
793 int32_t back_primary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
794 
804 int32_t next_primary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
805 
815 int32_t previous_primary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
816 
827 
838 
857 int32_t load_secondary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
858 
868 int32_t front_secondary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
869 
879 int32_t back_secondary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
880 
890 int32_t next_secondary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
891 
902 
913 
924 
943 int32_t load_tertiary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
944 
954 int32_t front_tertiary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
955 
965 int32_t back_tertiary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
966 
976 int32_t next_tertiary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
977 
987 int32_t previous_tertiary_i64i64i64( account_name scope, account_name code, table_name table, void* data, uint32_t len );
988 
999 
1010 
1018 int32_t remove_i64i64i64( account_name scope, table_name table, const void* data );
1026 int32_t store_i64i64i64( account_name scope, table_name table, const void* data, uint32_t len );
1027 
1035 int32_t update_i64i64i64( account_name scope, table_name table, const void* data, uint32_t len );
1036 
1038 }
int32_t back_secondary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t previous_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
int32_t back_primary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t lower_bound_primary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t load_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
int32_t remove_i64(account_name scope, table_name table, void *data)
+
int32_t back_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+ +
int32_t lower_bound_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
int32_t lower_bound_tertiary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t lower_bound_secondary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t upper_bound_primary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t next_primary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t update_i128i128(account_name scope, table_name table, const void *data, uint32_t len)
+
uint64_t account_name
Definition: types.h:35
+
int32_t front_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t previous_secondary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t upper_bound_secondary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t upper_bound_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
int32_t remove_str(account_name scope, table_name table, char *key, uint32_t keylen)
+
int32_t update_i64i64i64(account_name scope, table_name table, const void *data, uint32_t len)
+
uint64_t table_name
Definition: types.h:38
+
int32_t back_str(account_name scope, account_name code, table_name table, char *value, uint32_t valuelen)
+
int32_t load_tertiary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t previous_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
int32_t previous_tertiary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t load_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t back_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t front_primary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t back_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t load_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t remove_i64i64i64(account_name scope, table_name table, const void *data)
+
int32_t upper_bound_tertiary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t load_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
int32_t upper_bound_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
unsigned long uint32_t
Definition: types.h:19
+
int32_t previous_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t load_primary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t lower_bound_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
int32_t next_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t previous_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t front_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t update_str(account_name scope, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
int32_t store_i64(account_name scope, table_name table, const void *data, uint32_t datalen)
+
int32_t next_tertiary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t next_secondary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t front_tertiary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t next_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
int32_t back_tertiary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
long int32_t
Definition: types.h:25
+
int32_t update_i64(account_name scope, table_name table, const void *data, uint32_t datalen)
+
int32_t load_secondary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t upper_bound_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t front_secondary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t store_i64i64i64(account_name scope, table_name table, const void *data, uint32_t len)
+
int32_t lower_bound_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t previous_primary_i64i64i64(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t next_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
int32_t remove_i128i128(account_name scope, table_name table, const void *data)
+
int32_t next_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t store_str(account_name scope, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
int32_t store_i128i128(account_name scope, table_name table, const void *data, uint32_t len)
+
int32_t upper_bound_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t lower_bound_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t front_str(account_name scope, account_name code, table_name table, char *value, uint32_t valuelen)
+
int32_t front_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
diff --git a/docs/db_8hpp.html b/docs/db_8hpp.html index 7ed6e94ba0f..8bec61924e1 100644 --- a/docs/db_8hpp.html +++ b/docs/db_8hpp.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/eoslib/db.hpp File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
db.hpp File Reference
#include <eoslib/db.h>
-
-Include dependency graph for db.hpp:
-
-
- - - - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - - - - - - - - - - - - - - - - - - - -

Go to the source code of this file.

- + - + - + - + - + - + - + - - + + - - + + - + - - + + + +

Classes

struct  table_impl_obj< T >
struct  eosio::table_impl_obj< T >
 
struct  table_impl_obj< char * >
struct  eosio::table_impl_obj< char * >
 
struct  VarTable< scope, code, table, PrimaryType >
struct  eosio::var_table< scope, code, table_n, PrimaryType >
 
struct  table_impl< Primary, Secondary >
struct  eosio::table_impl< Primary, Secondary >
 
struct  table_impl< sizeof(uint128_t), sizeof(uint128_t)>
struct  eosio::table_impl< sizeof(uint128_t), sizeof(uint128_t)>
 
struct  table_impl< sizeof(uint64_t), 0 >
struct  eosio::table_impl< sizeof(uint64_t), 0 >
 
class  Table< scope, code, table, Record, PrimaryType, SecondaryType >
class  eosio::table< scope, code, table_n, Record, PrimaryType, SecondaryType >
 
struct  Table< scope, code, table, Record, PrimaryType, SecondaryType >::PrimaryIndex
 The Primary Index. More...
struct  eosio::table< scope, code, table_n, Record, PrimaryType, SecondaryType >::primary_index
 The primary Index. More...
 
struct  Table< scope, code, table, Record, PrimaryType, SecondaryType >::SecondaryIndex
 The Secondary Index. More...
struct  eosio::table< scope, code, table_n, Record, PrimaryType, SecondaryType >::secondary_index
 The Secondary Index. More...
 
struct  Table< scope, code, table, Record, PrimaryType, void >
struct  eosio::table< scope, code, table_n, Record, PrimaryType, void >
 
struct  Table< scope, code, table, Record, PrimaryType, void >::PrimaryIndex
 Primary Index of Table. More...
struct  eosio::table< scope, code, table_n, Record, PrimaryType, void >::primary_index
 primary Index of table More...
 
+ + +

+Namespaces

 eosio
 Used to forward declare raw functions.
 
@@ -33,42 +31,19 @@

@@ -170,7 +118,9 @@

Detailed Description

Macro Definition Documentation

- + +

◆ TABLE2

+
@@ -235,7 +185,7 @@
-Value:
typedef NAME::PrimaryIndex PRIMARY_NAME; \
typedef NAME::SecondaryIndex SECONDARY_NAME;
Definition: db.hpp:549
+Value:
typedef NAME::primary_index PRIMARY_NAME; \
typedef NAME::secondary_index SECONDARY_NAME;
Definition: db.hpp:551
@@ -244,7 +194,7 @@ diff --git a/docs/db_8hpp_source.html b/docs/db_8hpp_source.html index 3db1f95575f..1a90a2542d4 100644 --- a/docs/db_8hpp_source.html +++ b/docs/db_8hpp_source.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/eoslib/db.hpp Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
db.hpp
-Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include <eoslib/db.h>
8 
9 
10 
17 template<typename T>
18 struct table_impl_obj {};
19 
20 template<>
21 struct table_impl_obj<char*> {
22 
23  static int32_t store( AccountName scope, TableName table, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
24  return store_str( scope, table, key, keylen, data, datalen );
25  }
26 
27  static int32_t update( AccountName scope, TableName table, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
28  return update_str( scope, table, key, keylen, data, datalen );
29  }
30 
31  static int32_t front( AccountName scope, AccountName code, TableName table, char* data, uint32_t len ) {
32  return front_str( scope, code, table, data, len );
33  }
34 
35  static int32_t back( AccountName scope, AccountName code, TableName table, char* data, uint32_t len ) {
36  return back_str( scope, code, table, data, len );
37  }
38 
39  static int32_t load( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
40  return load_str( scope, code, table, key, keylen, data, datalen );
41  }
42 
43  static int32_t next( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
44  return next_str( scope, code, table, key, keylen, data, datalen );
45  }
46 
47  static int32_t previous( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
48  return previous_str( scope, code, table, key, keylen, data, datalen );
49  }
50 
51  static int32_t lower_bound( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
52  return lower_bound_str( scope, code, table, key, keylen, data, datalen );
53  }
54 
55  static int32_t upper_bound( AccountName scope, AccountName code, TableName table, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
56  return upper_bound_str( scope, code, table, key, keylen, data, datalen );
57  }
58 
59  static int32_t remove( AccountName scope, TableName table, char* key, uint32_t keylen ) {
60  return remove_str( scope, table, key, keylen );
61  }
62 };
63 
64 
65 template<AccountName scope, AccountName code, TableName table, typename PrimaryType>
66 struct VarTable {
67  private:
69 
70  public:
71  typedef PrimaryType Primary;
72 
73  int32_t store( Primary key, uint32_t keylen, char* record, uint32_t len ) {
74  return impl::store( scope, table, key, keylen, record, len );
75  }
76 
77  int32_t update( Primary key, uint32_t keylen, char* record, uint32_t len ) {
78  return impl::update( scope, table, key, keylen, record, len );
79  }
80 
81  int32_t front( char* record, uint32_t len ) {
82  return impl::front( scope, code, table, record, len );
83  }
84 
85  int32_t back( char* record, uint32_t len ) {
86  return impl::back( scope, code, table, record, len );
87  }
88 
89  int32_t load( Primary key, uint32_t keylen, char* record, uint32_t len ) {
90  return impl::load( scope, code, table, key, keylen, record, len );
91  }
92 
93  int32_t next( Primary key, uint32_t keylen, char* record, uint32_t len ) {
94  return impl::next( scope, code, table, key, keylen, record, len );
95  }
96 
97  int32_t previous( Primary key, uint32_t keylen, char* record, uint32_t len ) {
98  return impl::previous( scope, code, table, key, keylen, record, len );
99  }
100 
101  int32_t lower_bound( Primary key, uint32_t keylen, char* record, uint32_t len ) {
102  return impl::lower_bound( scope, code, table, key, keylen, record, len );
103  }
104 
105  int32_t upper_bound( Primary key, uint32_t keylen, char* record, uint32_t len ) {
106  return impl::upper_bound( scope, code, table, key, keylen, record, len );
107  }
108 
109  int32_t remove( Primary key, uint32_t keylen ) {
110  return impl::remove( scope, table, key, keylen );
111  }
112 };
113 
114 template<int Primary, int Secondary>
115 struct table_impl{};
116 
117 template<>
118 struct table_impl<sizeof(uint128_t),sizeof(uint128_t)> {
119 
129  static int32_t front_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
130  return front_primary_i128i128( scope, code, table, data, len );
131  }
132 
142  static int32_t back_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
143  return back_primary_i128i128( scope, code, table, data, len );
144  }
145 
155  static int32_t load_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
156  return load_primary_i128i128( scope, code, table, data, len );
157  }
158 
168  static int32_t next_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
169  return next_primary_i128i128( scope, code, table, data, len );
170  }
171 
181  static int32_t previous_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
182  return previous_primary_i128i128( scope, code, table, data, len );
183  }
184 
194  static int32_t upper_bound_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
195  return upper_bound_primary_i128i128( scope, code, table, data, len );
196  }
197 
207  static int32_t lower_bound_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
208  return lower_bound_primary_i128i128( scope, code, table, data, len );
209  }
210 
220  static int32_t front_secondary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
221  return front_secondary_i128i128( scope, code, table, data, len );
222  }
223 
233  static int32_t back_secondary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
234  return back_secondary_i128i128( scope, code, table, data, len );
235  }
236 
246  static int32_t load_secondary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
247  return load_secondary_i128i128( scope, code, table, data, len );
248  }
249 
259  static int32_t next_secondary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
260  return next_secondary_i128i128( scope, code, table, data, len );
261  }
262 
272  static int32_t previous_secondary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
273  return previous_secondary_i128i128( scope, code, table, data, len );
274  }
275 
285  static int32_t upper_bound_secondary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
286  return upper_bound_secondary_i128i128( scope, code, table, data, len );
287  }
288 
298  static int32_t lower_bound_secondary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
299  return lower_bound_secondary_i128i128( scope, code, table, data, len );
300  }
301 
309  static int32_t remove( uint64_t scope, uint64_t table, const void* data ) {
310  return remove_i128i128( scope, table, data );
311  }
312 
321  static int32_t store( AccountName scope, TableName table, const void* data, uint32_t len ) {
322  return store_i128i128( scope, table, data, len );
323  }
324 
333  static int32_t update( AccountName scope, TableName table, const void* data, uint32_t len ) {
334  return update_i128i128( scope, table, data, len );
335  }
336 };
337 
338 template<>
339 struct table_impl<sizeof(uint64_t),0> {
349  static int32_t front_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
350  return front_i64( scope, code, table, data, len );
351  }
352 
362  static int32_t back_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
363  return back_i64( scope, code, table, data, len );
364  }
365 
375  static int32_t load_primary( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
376  return load_i64( scope, code, table, data, len );
377  }
378 
388  static int32_t next( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
389  return next_i64( scope, code, table, data, len );
390  }
391 
401  static int32_t previous( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
402  return previous_i64( scope, code, table, data, len );
403  }
404 
414  static int32_t lower_bound( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
415  return lower_bound_i64( scope, code, table, data, len );
416  }
417 
427  static int32_t upper_bound( uint64_t scope, uint64_t code, uint64_t table, void* data, uint32_t len ) {
428  return upper_bound_i64( scope, code, table, data, len );
429  }
430 
438  static int32_t remove( uint64_t scope, uint64_t table, const void* data ) {
439  return remove_i64( scope, table, (uint64_t*)data);
440  }
441 
450  static int32_t store( AccountName scope, TableName table, const void* data, uint32_t len ) {
451  return store_i64( scope, table, data, len );
452  }
453 
462  static int32_t update( AccountName scope, TableName table, const void* data, uint32_t len ) {
463  return update_i64( scope, table, data, len );
464  }
465 };
466 
467 
548 template<uint64_t scope, uint64_t code, uint64_t table, typename Record, typename PrimaryType, typename SecondaryType = void>
549 struct Table {
550  private:
552  static_assert( sizeof(PrimaryType) + sizeof(SecondaryType) <= sizeof(Record), "invalid template parameters" );
553 
554  public:
555  typedef PrimaryType Primary;
556  typedef SecondaryType Secondary;
557 
562  struct PrimaryIndex {
569  static bool front( Record& r, uint64_t s = scope ) {
570  return impl::front_primary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
571  }
572 
579  static bool back( Record& r, uint64_t s = scope ) {
580  return impl::back_primary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
581  }
582 
589  static bool next( Record& r, uint64_t s = scope ) {
590  return impl::next_primary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
591  }
592 
599  static bool previous( Record& r, uint64_t s = scope ) {
600  return impl::previous_primary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
601  }
602 
610  static bool get( const PrimaryType& p, Record& r, uint64_t s = scope ) {
611  *reinterpret_cast<PrimaryType*>(&r) = p;
612  return impl::load_primary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
613  }
614 
622  static bool lower_bound( const PrimaryType& p, Record& r ) {
623  return impl::lower_bound_primary( scope, code, table, &p &r, sizeof(Record) ) == sizeof(Record);
624  }
625 
633  static bool upper_bound( const PrimaryType& p, Record& r ) {
634  return impl::upper_bound_primary( scope, code, table, &p &r, sizeof(Record) ) == sizeof(Record);
635  }
636 
643  static bool remove( const Record& r, uint64_t s = scope ) {
644  return impl::remove( s, table, &r ) != 0;
645  }
646  };
647 
648 
653  struct SecondaryIndex {
660  static bool front( Record& r, uint64_t s = scope ) {
661  return impl::front_secondary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
662  }
663 
670  static bool back( Record& r, uint64_t s = scope ) {
671  return impl::back_secondary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
672  }
673 
680  static bool next( Record& r, uint64_t s = scope ) {
681  return impl::next_secondary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
682  }
683 
690  static bool previous( Record& r, uint64_t s = scope ) {
691  return impl::previous_secondary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
692  }
693 
701  static bool get( const SecondaryType& p, Record& r, uint64_t s = scope ) {
702  return impl::load_secondary( s, code, table, &p &r, sizeof(Record) ) == sizeof(Record);
703  }
704 
713  static bool lower_bound( const SecondaryType& p, Record& r, uint64_t s = scope ) {
714  return impl::lower_bound_secondary( s, code, table, &p &r, sizeof(Record) ) == sizeof(Record);
715  }
716 
724  static bool upper_bound( const SecondaryType& p, Record& r, uint64_t s = scope ) {
725  return impl::upper_bound_secondary( s, code, table, &p &r, sizeof(Record) ) == sizeof(Record);
726  }
727 
734  static bool remove( const Record& r, uint64_t s = scope ) {
735  return impl::remove( s, table, &r ) != 0;
736  }
737  };
738 
739 
748  static bool get( const PrimaryType& p, Record& r, uint64_t s = scope ) {
749  *reinterpret_cast<PrimaryType*>(&r) = p;
750  return impl::load_primary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
751  }
752 
759  static bool store( const Record& r, uint64_t s = scope ) {
760  assert( impl::store( s, table, &r, sizeof(r) ), "error storing record" );
761  return true;
762  }
763 
770  static bool update( const Record& r, uint64_t s = scope ) {
771  assert( impl::update( s, table, &r, sizeof(r) ), "error updating record" );
772  return true;
773  }
774 
781  static bool remove( const Record& r, uint64_t s = scope ) {
782  return impl::remove( s, table, &r ) != 0;
783  }
784  };
786 
856  template<uint64_t scope, uint64_t code, uint64_t table, typename Record, typename PrimaryType>
857 struct Table<scope,code,table,Record,PrimaryType,void> {
858  private:
860  static_assert( sizeof(PrimaryType) <= sizeof(Record), "invalid template parameters" );
861 
862  public:
863  typedef PrimaryType Primary;
867  struct PrimaryIndex {
873  static bool front( Record& r ) {
874  return impl::front_primary( scope, code, table, &r, sizeof(Record) ) == sizeof(Record);
875  }
876 
882  static bool back( Record& r ) {
883  return impl::back_primary( scope, code, table, &r, sizeof(Record) ) == sizeof(Record);
884  }
885 
891  static bool next( Record& r ) {
892  return impl::next_primary( scope, code, table, &r, sizeof(Record) ) == sizeof(Record);
893  }
894 
900  static bool previous( Record& r ) {
901  return impl::previous_primary( scope, code, table, &r, sizeof(Record) ) == sizeof(Record);
902  }
903 
910  static bool get( const PrimaryType& p, Record& r, uint64_t s = scope ) {
911  *reinterpret_cast<PrimaryType*>(&r) = p;
912  return impl::load_primary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
913  }
914 
920  static bool lower_bound( const PrimaryType& p, Record& r ) {
921  return impl::lower_bound_primary( scope, code, table, &p &r, sizeof(Record) ) == sizeof(Record);
922  }
923 
929  static bool upper_bound( const PrimaryType& p, Record& r ) {
930  return impl::upper_bound_primary( scope, code, table, &p &r, sizeof(Record) ) == sizeof(Record);
931  }
932 
937  static bool remove( const Record& r ) {
938  return impl::remove( scope, table, &r ) != 0;
939  }
940  };
941 
947  static bool front( Record& r ) { return PrimaryIndex::front(r); }
948 
954  static bool back( Record& r ) { return PrimaryIndex::back(r); }
955 
963  static bool get( const PrimaryType& p, Record& r, uint64_t s = scope ) {
964  *reinterpret_cast<PrimaryType*>(&r) = p;
965  return impl::load_primary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
966  }
967 
974  static bool get( Record& r, uint64_t s = scope ) {
975  return impl::load_primary( s, code, table, &r, sizeof(Record) ) == sizeof(Record);
976  }
977 
984  static bool store( const Record& r, uint64_t s = scope ) {
985  return impl::store( s, table, &r, sizeof(r) ) != 0;
986  }
987 
994  static bool update( const Record& r, uint64_t s = scope ) {
995  return impl::update( s, table, &r, sizeof(r) ) != 0;
996  }
997 
1004  static bool remove( const Record& r, uint64_t s = scope ) {
1005  return impl::remove( s, table, &r ) != 0;
1006  }
1007 };
1008 
1009 
1010 #define TABLE2(NAME, SCOPE, CODE, TABLE, TYPE, PRIMARY_NAME, PRIMARY_TYPE, SECONDARY_NAME, SECONDARY_TYPE) \
1011  using NAME = Table<N(SCOPE),N(CODE),N(TABLE),TYPE,PRIMARY_TYPE,SECONDARY_TYPE>; \
1012  typedef NAME::PrimaryIndex PRIMARY_NAME; \
1013  typedef NAME::SecondaryIndex SECONDARY_NAME;
static int32_t back(AccountName scope, AccountName code, TableName table, char *data, uint32_t len)
Definition: db.hpp:35
-
static bool store(const Record &r, uint64_t s=scope)
Definition: db.hpp:759
-
The Secondary Index.
Definition: db.hpp:653
+Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include <eoslib/db.h>
8 
9 
10 namespace eosio {
11 
18 template<typename T>
19 struct table_impl_obj {};
20 
21 template<>
22 struct table_impl_obj<char*> {
23 
24  static int32_t store( account_name scope, table_name table_n, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
25  return store_str( scope, table_n, key, keylen, data, datalen );
26  }
27 
28  static int32_t update( account_name scope, table_name table_n, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
29  return update_str( scope, table_n, key, keylen, data, datalen );
30  }
31 
32  static int32_t front( account_name scope, account_name code, table_name table_n, char* data, uint32_t len ) {
33  return front_str( scope, code, table_n, data, len );
34  }
35 
36  static int32_t back( account_name scope, account_name code, table_name table_n, char* data, uint32_t len ) {
37  return back_str( scope, code, table_n, data, len );
38  }
39 
40  static int32_t load( account_name scope, account_name code, table_name table_n, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
41  return load_str( scope, code, table_n, key, keylen, data, datalen );
42  }
43 
44  static int32_t next( account_name scope, account_name code, table_name table_n, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
45  return next_str( scope, code, table_n, key, keylen, data, datalen );
46  }
47 
48  static int32_t previous( account_name scope, account_name code, table_name table_n, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
49  return previous_str( scope, code, table_n, key, keylen, data, datalen );
50  }
51 
52  static int32_t lower_bound( account_name scope, account_name code, table_name table_n, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
53  return lower_bound_str( scope, code, table_n, key, keylen, data, datalen );
54  }
55 
56  static int32_t upper_bound( account_name scope, account_name code, table_name table_n, char* key, uint32_t keylen, char* data, uint32_t datalen ) {
57  return upper_bound_str( scope, code, table_n, key, keylen, data, datalen );
58  }
59 
60  static int32_t remove( account_name scope, table_name table_n, char* key, uint32_t keylen ) {
61  return remove_str( scope, table_n, key, keylen );
62  }
63 };
64 
65 
66 template<account_name scope, account_name code, table_name table_n, typename PrimaryType>
67 struct var_table {
68  private:
70 
71  public:
72  typedef PrimaryType primary;
73 
74  int32_t store( primary key, uint32_t keylen, char* record, uint32_t len ) {
75  return impl::store( scope, table_n, key, keylen, record, len );
76  }
77 
78  int32_t update( primary key, uint32_t keylen, char* record, uint32_t len ) {
79  return impl::update( scope, table_n, key, keylen, record, len );
80  }
81 
82  int32_t front( char* record, uint32_t len ) {
83  return impl::front( scope, code, table_n, record, len );
84  }
85 
86  int32_t back( char* record, uint32_t len ) {
87  return impl::back( scope, code, table_n, record, len );
88  }
89 
90  int32_t load( primary key, uint32_t keylen, char* record, uint32_t len ) {
91  return impl::load( scope, code, table_n, key, keylen, record, len );
92  }
93 
94  int32_t next( primary key, uint32_t keylen, char* record, uint32_t len ) {
95  return impl::next( scope, code, table_n, key, keylen, record, len );
96  }
97 
98  int32_t previous( primary key, uint32_t keylen, char* record, uint32_t len ) {
99  return impl::previous( scope, code, table_n, key, keylen, record, len );
100  }
101 
102  int32_t lower_bound( primary key, uint32_t keylen, char* record, uint32_t len ) {
103  return impl::lower_bound( scope, code, table_n, key, keylen, record, len );
104  }
105 
106  int32_t upper_bound( primary key, uint32_t keylen, char* record, uint32_t len ) {
107  return impl::upper_bound( scope, code, table_n, key, keylen, record, len );
108  }
109 
110  int32_t remove( primary key, uint32_t keylen ) {
111  return impl::remove( scope, table_n, key, keylen );
112  }
113 };
114 
115 template<int Primary, int Secondary>
116 struct table_impl{};
117 
118 template<>
119 struct table_impl<sizeof(uint128_t),sizeof(uint128_t)> {
120 
130  static int32_t front_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
131  return front_primary_i128i128( scope, code, table_n, data, len );
132  }
133 
143  static int32_t back_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
144  return back_primary_i128i128( scope, code, table_n, data, len );
145  }
146 
156  static int32_t load_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
157  return load_primary_i128i128( scope, code, table_n, data, len );
158  }
159 
169  static int32_t next_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
170  return next_primary_i128i128( scope, code, table_n, data, len );
171  }
172 
182  static int32_t previous_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
183  return previous_primary_i128i128( scope, code, table_n, data, len );
184  }
185 
195  static int32_t upper_bound_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
196  return upper_bound_primary_i128i128( scope, code, table_n, data, len );
197  }
198 
208  static int32_t lower_bound_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
209  return lower_bound_primary_i128i128( scope, code, table_n, data, len );
210  }
211 
221  static int32_t front_secondary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
222  return front_secondary_i128i128( scope, code, table_n, data, len );
223  }
224 
234  static int32_t back_secondary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
235  return back_secondary_i128i128( scope, code, table_n, data, len );
236  }
237 
247  static int32_t load_secondary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
248  return load_secondary_i128i128( scope, code, table_n, data, len );
249  }
250 
260  static int32_t next_secondary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
261  return next_secondary_i128i128( scope, code, table_n, data, len );
262  }
263 
273  static int32_t previous_secondary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
274  return previous_secondary_i128i128( scope, code, table_n, data, len );
275  }
276 
286  static int32_t upper_bound_secondary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
287  return upper_bound_secondary_i128i128( scope, code, table_n, data, len );
288  }
289 
299  static int32_t lower_bound_secondary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
300  return lower_bound_secondary_i128i128( scope, code, table_n, data, len );
301  }
302 
310  static int32_t remove( uint64_t scope, uint64_t table_n, const void* data ) {
311  return remove_i128i128( scope, table_n, data );
312  }
313 
322  static int32_t store( account_name scope, table_name table_n, const void* data, uint32_t len ) {
323  return store_i128i128( scope, table_n, data, len );
324  }
325 
334  static int32_t update( account_name scope, table_name table_n, const void* data, uint32_t len ) {
335  return update_i128i128( scope, table_n, data, len );
336  }
337 };
338 
339 template<>
340 struct table_impl<sizeof(uint64_t),0> {
350  static int32_t front_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
351  return front_i64( scope, code, table_n, data, len );
352  }
353 
363  static int32_t back_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
364  return back_i64( scope, code, table_n, data, len );
365  }
366 
376  static int32_t load_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
377  return load_i64( scope, code, table_n, data, len );
378  }
379 
389  static int32_t next_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
390  return next_i64( scope, code, table_n, data, len );
391  }
392 
402  static int32_t previous_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
403  return previous_i64( scope, code, table_n, data, len );
404  }
405 
415  static int32_t lower_bound_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
416  return lower_bound_i64( scope, code, table_n, data, len );
417  }
418 
429  static int32_t upper_bound_primary( uint64_t scope, uint64_t code, uint64_t table_n, void* data, uint32_t len ) {
430  return upper_bound_i64(scope, code, table_n, data, len);
431  }
432 
440  static int32_t remove( uint64_t scope, uint64_t table_n, const void* data ) {
441  return remove_i64( scope, table_n, (uint64_t*)data);
442  }
443 
452  static int32_t store( account_name scope, table_name table_n, const void* data, uint32_t len ) {
453  return store_i64( scope, table_n, data, len );
454  }
455 
464  static int32_t update( account_name scope, table_name table_n, const void* data, uint32_t len ) {
465  return update_i64( scope, table_n, data, len );
466  }
467 };
468 
469 
550 template<uint64_t scope, uint64_t code, uint64_t table_n, typename Record, typename PrimaryType, typename SecondaryType = void>
551 struct table {
552  private:
554  static_assert( sizeof(PrimaryType) + sizeof(SecondaryType) <= sizeof(Record), "invalid template parameters" );
555 
556  public:
557  typedef PrimaryType primary;
558  typedef SecondaryType secondary;
559 
564  struct primary_index {
571  static bool front( Record& r, uint64_t s = scope ) {
572  return impl::front_primary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
573  }
574 
581  static bool back( Record& r, uint64_t s = scope ) {
582  return impl::back_primary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
583  }
584 
591  static bool next( Record& r, uint64_t s = scope ) {
592  return impl::next_primary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
593  }
594 
601  static bool previous( Record& r, uint64_t s = scope ) {
602  return impl::previous_primary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
603  }
604 
612  static bool get( const PrimaryType& p, Record& r, uint64_t s = scope ) {
613  *reinterpret_cast<PrimaryType*>(&r) = p;
614  return impl::load_primary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
615  }
616 
624  static bool lower_bound( const PrimaryType& p, Record& r ) {
625  return impl::lower_bound_primary( scope, code, table_n, &p &r, sizeof(Record) ) == sizeof(Record);
626  }
627 
635  static bool upper_bound( const PrimaryType& p, Record& r ) {
636  return impl::upper_bound_primary( scope, code, table_n, &p &r, sizeof(Record) ) == sizeof(Record);
637  }
638 
645  static bool remove( const Record& r, uint64_t s = scope ) {
646  return impl::remove( s, table_n, &r ) != 0;
647  }
648  };
649 
650 
662  static bool front( Record& r, uint64_t s = scope ) {
663  return impl::front_secondary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
664  }
665 
672  static bool back( Record& r, uint64_t s = scope ) {
673  return impl::back_secondary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
674  }
675 
682  static bool next( Record& r, uint64_t s = scope ) {
683  return impl::next_secondary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
684  }
685 
692  static bool previous( Record& r, uint64_t s = scope ) {
693  return impl::previous_secondary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
694  }
695 
703  static bool get( const SecondaryType& p, Record& r, uint64_t s = scope ) {
704  return impl::load_secondary( s, code, table_n, &p &r, sizeof(Record) ) == sizeof(Record);
705  }
706 
715  static bool lower_bound( const SecondaryType& p, Record& r, uint64_t s = scope ) {
716  return impl::lower_bound_secondary( s, code, table_n, &p &r, sizeof(Record) ) == sizeof(Record);
717  }
718 
726  static bool upper_bound( const SecondaryType& p, Record& r, uint64_t s = scope ) {
727  return impl::upper_bound_secondary( s, code, table_n, &p &r, sizeof(Record) ) == sizeof(Record);
728  }
729 
736  static bool remove( const Record& r, uint64_t s = scope ) {
737  return impl::remove( s, table_n, &r ) != 0;
738  }
739  };
740 
741 
750  static bool get( const PrimaryType& p, Record& r, uint64_t s = scope ) {
751  *reinterpret_cast<PrimaryType*>(&r) = p;
752  return impl::load_primary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
753  }
754 
761  static bool store( const Record& r, uint64_t s = scope ) {
762  assert( impl::store( s, table_n, &r, sizeof(r) ), "error storing record" );
763  return true;
764  }
765 
772  static bool update( const Record& r, uint64_t s = scope ) {
773  assert( impl::update( s, table_n, &r, sizeof(r) ), "error updating record" );
774  return true;
775  }
776 
783  static bool remove( const Record& r, uint64_t s = scope ) {
784  return impl::remove( s, table_n, &r ) != 0;
785  }
786  };
788 
858  template<uint64_t scope, uint64_t code, uint64_t table_n, typename Record, typename PrimaryType>
859 struct table<scope,code,table_n,Record,PrimaryType,void> {
860  private:
862  static_assert( sizeof(PrimaryType) <= sizeof(Record), "invalid template parameters" );
863 
864  public:
865  typedef PrimaryType primary;
869  struct primary_index {
875  static bool front( Record& r ) {
876  return impl::front_primary( scope, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
877  }
878 
884  static bool back( Record& r ) {
885  return impl::back_primary( scope, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
886  }
887 
893  static bool next( Record& r ) {
894  return impl::next_primary( scope, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
895  }
896 
902  static bool previous( Record& r ) {
903  return impl::previous_primary( scope, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
904  }
905 
912  static bool get( const PrimaryType& p, Record& r, uint64_t s = scope ) {
913  *reinterpret_cast<PrimaryType*>(&r) = p;
914  return impl::load_primary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
915  }
916 
922  static bool lower_bound( const PrimaryType& p, Record& r ) {
923  *reinterpret_cast<PrimaryType*>(&r) = p;
924  return impl::lower_bound_primary( scope, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
925  }
926 
932  static bool upper_bound( const PrimaryType& p, Record& r ) {
933  *reinterpret_cast<PrimaryType*>(&r) = p;
934  return impl::upper_bound_primary( scope, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
935  }
936 
941  static bool remove( const Record& r ) {
942  return impl::remove( scope, table_n, &r ) != 0;
943  }
944  };
945 
951  static bool front( Record& r ) { return primary_index::front(r); }
952 
958  static bool back( Record& r ) { return primary_index::back(r); }
959 
967  static bool get( const PrimaryType& p, Record& r, uint64_t s = scope ) {
968  *reinterpret_cast<PrimaryType*>(&r) = p;
969  return impl::load_primary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
970  }
971 
978  static bool get( Record& r, uint64_t s = scope ) {
979  return impl::load_primary( s, code, table_n, &r, sizeof(Record) ) == sizeof(Record);
980  }
981 
988  static bool store( const Record& r, uint64_t s = scope ) {
989  return impl::store( s, table_n, &r, sizeof(r) ) != 0;
990  }
991 
998  static bool update( const Record& r, uint64_t s = scope ) {
999  return impl::update( s, table_n, &r, sizeof(r) ) != 0;
1000  }
1001 
1008  static bool remove( const Record& r, uint64_t s = scope ) {
1009  return impl::remove( s, table_n, &r ) != 0;
1010  }
1011 };
1012 
1013 } // namespace eosio
1014 
1015 #define TABLE2(NAME, SCOPE, CODE, TABLE, TYPE, PRIMARY_NAME, PRIMARY_TYPE, SECONDARY_NAME, SECONDARY_TYPE) \
1016  using NAME = eosio::table<N(SCOPE),N(CODE),N(TABLE),TYPE,PRIMARY_TYPE,SECONDARY_TYPE>; \
1017  typedef NAME::primary_index PRIMARY_NAME; \
1018  typedef NAME::secondary_index SECONDARY_NAME;
static bool front(Record &r, uint64_t s=scope)
Definition: db.hpp:662
+
int32_t previous_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
static int32_t front_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:350
+
Used to forward declare raw functions.
Definition: account.hpp:12
+
int32_t load_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
The primary Index.
Definition: db.hpp:564
+
int32_t load(primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:90
+
static int32_t previous_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:182
+
static int32_t update(account_name scope, table_name table_n, const void *data, uint32_t len)
Definition: db.hpp:464
void assert(uint32_t test, const char *cstr)
Aborts processing of this message and unwinds all pending changes.
-
int32_t front(char *record, uint32_t len)
Definition: db.hpp:81
-
static int32_t next_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:168
-
static bool front(Record &r, uint64_t s=scope)
Definition: db.hpp:569
-
uint64_t AccountName
Definition: types.h:24
-
int32_t upper_bound_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
static bool front(Record &r)
Definition: db.hpp:947
-
static bool upper_bound(const PrimaryType &p, Record &r)
Definition: db.hpp:929
-
static int32_t previous(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:401
-
static int32_t update(AccountName scope, TableName table, const void *data, uint32_t len)
Definition: db.hpp:462
-
static bool update(const Record &r, uint64_t s=scope)
Definition: db.hpp:770
-
static int32_t back_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:142
-
Definition: db.hpp:66
-
int32_t back_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
static int32_t update(AccountName scope, TableName table, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:27
-
int32_t update_i128i128(AccountName scope, TableName table, const void *data, uint32_t len)
-
int32_t back_str(AccountName scope, AccountName code, TableName table, char *value, uint32_t valuelen)
-
unsigned long long uint64_t
Definition: types.h:17
-
static int32_t load_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:155
-
static int32_t upper_bound_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:194
-
static bool store(const Record &r, uint64_t s=scope)
Definition: db.hpp:984
- -
int32_t load_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t previous(Primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:97
-
int32_t lower_bound_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t load_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t upper_bound(Primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:105
-
int32_t back_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
SecondaryType Secondary
Definition: db.hpp:556
-
int32_t lower_bound_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
static int32_t lower_bound_secondary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:298
-
static bool update(const Record &r, uint64_t s=scope)
Definition: db.hpp:994
-
static bool back(Record &r, uint64_t s=scope)
Definition: db.hpp:579
-
int32_t load(Primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:89
-
static int32_t update(AccountName scope, TableName table, const void *data, uint32_t len)
Definition: db.hpp:333
-
static bool lower_bound(const SecondaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:713
-
The Primary Index.
Definition: db.hpp:562
-
static int32_t lower_bound_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:207
-
static bool lower_bound(const PrimaryType &p, Record &r)
Definition: db.hpp:622
-
static bool upper_bound(const PrimaryType &p, Record &r)
Definition: db.hpp:633
+
int32_t remove_i64(account_name scope, table_name table, void *data)
+
int32_t back_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
static int32_t back(account_name scope, account_name code, table_name table_n, char *data, uint32_t len)
Definition: db.hpp:36
+
int32_t lower_bound_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
static int32_t lower_bound_secondary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:299
+
static bool back(Record &r, uint64_t s=scope)
Definition: db.hpp:581
+
static int32_t store(account_name scope, table_name table_n, const void *data, uint32_t len)
Definition: db.hpp:452
+
int32_t previous(primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:98
+
Definition: db.hpp:67
+
int32_t update_i128i128(account_name scope, table_name table, const void *data, uint32_t len)
+
uint64_t account_name
Definition: types.h:35
+
static int32_t next_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:169
+
int32_t front_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
static int32_t load_secondary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:247
+
unsigned long long uint64_t
Definition: types.h:18
+
static bool front(Record &r, uint64_t s=scope)
Definition: db.hpp:571
+
int32_t upper_bound_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
static int32_t lower_bound_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:208
+
static bool lower_bound(const SecondaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:715
+
static int32_t back_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:363
+
Definition: db.hpp:19
+
int32_t remove_str(account_name scope, table_name table, char *key, uint32_t keylen)
+ +
uint64_t table_name
Definition: types.h:38
+
PrimaryType primary
Definition: db.hpp:72
+ +
int32_t back_str(account_name scope, account_name code, table_name table, char *value, uint32_t valuelen)
+ +
static bool update(const Record &r, uint64_t s=scope)
Definition: db.hpp:772
+
static int32_t load_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:376
+
static int32_t back_secondary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:234
+
static int32_t upper_bound(account_name scope, account_name code, table_name table_n, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:56
+
int32_t previous_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
static int32_t upper_bound_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:195
+
int32_t load_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
static int32_t load(account_name scope, account_name code, table_name table_n, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:40
+
int32_t back_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
static int32_t next_secondary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:260
+
SecondaryType secondary
Definition: db.hpp:558
+
static int32_t next_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:389
+
int32_t front(char *record, uint32_t len)
Definition: db.hpp:82
+
static bool lower_bound(const PrimaryType &p, Record &r)
Definition: db.hpp:922
+
static int32_t front_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:130
+
int32_t back_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
static bool lower_bound(const PrimaryType &p, Record &r)
Definition: db.hpp:624
Defines C API for interfacing with blockchain database.
-
static bool back(Record &r, uint64_t s=scope)
Definition: db.hpp:670
-
static bool back(Record &r)
Definition: db.hpp:954
- -
int32_t remove_i64(AccountName scope, TableName table, void *data)
-
static int32_t upper_bound(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:427
-
unsigned long uint32_t
Definition: types.h:18
-
int32_t store_i128i128(AccountName scope, TableName table, const void *data, uint32_t len)
-
static int32_t upper_bound_secondary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:285
-
static bool front(Record &r)
Definition: db.hpp:873
-
int32_t front_str(AccountName scope, AccountName code, TableName table, char *value, uint32_t valuelen)
-
static int32_t back_secondary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:233
-
int32_t upper_bound_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t lower_bound(Primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:101
-
int32_t update_i64(AccountName scope, TableName table, const void *data, uint32_t datalen)
-
int32_t next_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
static bool front(Record &r, uint64_t s=scope)
Definition: db.hpp:660
-
static int32_t store(AccountName scope, TableName table, const void *data, uint32_t len)
Definition: db.hpp:450
-
static int32_t front_secondary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:220
-
int32_t store_str(AccountName scope, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t next_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
static int32_t previous(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:47
-
static bool previous(Record &r, uint64_t s=scope)
Definition: db.hpp:690
-
static int32_t lower_bound(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:51
-
static int32_t next(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:388
- -
static int32_t back_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:362
-
int32_t previous_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
static int32_t next(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:43
-
int32_t load_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t remove_str(AccountName scope, TableName table, char *key, uint32_t keylen)
-
int32_t lower_bound_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
static bool next(Record &r, uint64_t s=scope)
Definition: db.hpp:680
-
int32_t back(char *record, uint32_t len)
Definition: db.hpp:85
-
int32_t remove_i128i128(AccountName scope, TableName table, const void *data)
-
PrimaryType Primary
Definition: db.hpp:552
-
static int32_t store(AccountName scope, TableName table, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:23
-
static int32_t upper_bound(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:55
-
int32_t lower_bound_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
long int32_t
Definition: types.h:19
-
int32_t previous_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
static int32_t load_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:375
-
static bool previous(Record &r, uint64_t s=scope)
Definition: db.hpp:599
-
static int32_t previous_secondary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:272
-
int32_t next_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
static bool lower_bound(const PrimaryType &p, Record &r)
Definition: db.hpp:920
-
static int32_t load_secondary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:246
-
static bool next(Record &r, uint64_t s=scope)
Definition: db.hpp:589
-
int32_t upper_bound_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t previous_str(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
int32_t load_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
static int32_t lower_bound(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:414
-
int32_t next(Primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:93
-
int32_t update(Primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:77
-
int32_t store(Primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:73
-
static int32_t store(AccountName scope, TableName table, const void *data, uint32_t len)
Definition: db.hpp:321
-
static int32_t front_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:349
-
static int32_t front_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:129
-
unsigned __int128 uint128_t
Definition: types.h:20
-
int32_t upper_bound_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t previous_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
int32_t next_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
static bool previous(Record &r)
Definition: db.hpp:900
-
int32_t front_primary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
int32_t back_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
static int32_t front(AccountName scope, AccountName code, TableName table, char *data, uint32_t len)
Definition: db.hpp:31
-
static int32_t next_secondary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:259
-
Definition: db.hpp:115
-
static int32_t previous_primary(uint64_t scope, uint64_t code, uint64_t table, void *data, uint32_t len)
Definition: db.hpp:181
-
int32_t front_i64(AccountName scope, AccountName code, TableName table, void *data, uint32_t datalen)
-
Definition: db.hpp:549
-
int32_t update_str(AccountName scope, TableName table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
-
static int32_t load(AccountName scope, AccountName code, TableName table, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:39
-
Definition: db.hpp:18
-
int32_t store_i64(AccountName scope, TableName table, const void *data, uint32_t datalen)
-
int32_t front_secondary_i128i128(AccountName scope, AccountName code, TableName table, void *data, uint32_t len)
-
uint64_t TableName
Definition: types.h:27
-
static bool upper_bound(const SecondaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:724
-
PrimaryType Primary
Definition: db.hpp:71
+
static int32_t front(account_name scope, account_name code, table_name table_n, char *data, uint32_t len)
Definition: db.hpp:32
+
int32_t load_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
static int32_t load_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:156
+
int32_t load_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
static bool store(const Record &r, uint64_t s=scope)
Definition: db.hpp:988
+
int32_t upper_bound_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
unsigned long uint32_t
Definition: types.h:19
+
int32_t previous_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
static bool next(Record &r, uint64_t s=scope)
Definition: db.hpp:591
+
static bool back(Record &r, uint64_t s=scope)
Definition: db.hpp:672
+
int32_t lower_bound_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
int32_t back(char *record, uint32_t len)
Definition: db.hpp:86
+
int32_t next_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
static int32_t upper_bound_secondary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:286
+
int32_t previous_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+ +
int32_t front_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t update_str(account_name scope, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
static int32_t lower_bound_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:415
+
static int32_t store(account_name scope, table_name table_n, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:24
+
static int32_t update(account_name scope, table_name table_n, const void *data, uint32_t len)
Definition: db.hpp:334
+
static bool back(Record &r)
Definition: db.hpp:958
+
int32_t store_i64(account_name scope, table_name table, const void *data, uint32_t datalen)
+
static bool next(Record &r, uint64_t s=scope)
Definition: db.hpp:682
+
static bool update(const Record &r, uint64_t s=scope)
Definition: db.hpp:998
+
static bool store(const Record &r, uint64_t s=scope)
Definition: db.hpp:761
+
static bool previous(Record &r, uint64_t s=scope)
Definition: db.hpp:601
+
The Secondary Index.
Definition: db.hpp:655
+
static int32_t previous_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:402
+
int32_t lower_bound(primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:102
+
int32_t next_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
int32_t update(primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:78
+
long int32_t
Definition: types.h:25
+
static bool upper_bound(const SecondaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:726
+
int32_t update_i64(account_name scope, table_name table, const void *data, uint32_t datalen)
+
int32_t upper_bound_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+ +
static int32_t upper_bound_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:429
+
Definition: db.hpp:551
+
int32_t store(primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:74
+
int32_t upper_bound(primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:106
+
static int32_t previous(account_name scope, account_name code, table_name table_n, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:48
+
static int32_t front_secondary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:221
+
static int32_t back_primary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:143
+
unsigned __int128 uint128_t
Definition: types.h:17
+
static int32_t store(account_name scope, table_name table_n, const void *data, uint32_t len)
Definition: db.hpp:322
+
int32_t lower_bound_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t next_str(account_name scope, account_name code, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
static int32_t lower_bound(account_name scope, account_name code, table_name table_n, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:52
+
int32_t remove_i128i128(account_name scope, table_name table, const void *data)
+
int32_t next_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
static bool previous(Record &r, uint64_t s=scope)
Definition: db.hpp:692
+
int32_t store_str(account_name scope, table_name table, char *key, uint32_t keylen, char *value, uint32_t valuelen)
+
static int32_t next(account_name scope, account_name code, table_name table_n, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:44
+
int32_t store_i128i128(account_name scope, table_name table, const void *data, uint32_t len)
+
int32_t next(primary key, uint32_t keylen, char *record, uint32_t len)
Definition: db.hpp:94
+
PrimaryType primary
Definition: db.hpp:554
+
Definition: db.hpp:116
+
static int32_t previous_secondary(uint64_t scope, uint64_t code, uint64_t table_n, void *data, uint32_t len)
Definition: db.hpp:273
+
static int32_t update(account_name scope, table_name table_n, char *key, uint32_t keylen, char *data, uint32_t datalen)
Definition: db.hpp:28
+
int32_t upper_bound_secondary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t lower_bound_primary_i128i128(account_name scope, account_name code, table_name table, void *data, uint32_t len)
+
int32_t front_str(account_name scope, account_name code, table_name table, char *value, uint32_t valuelen)
+
int32_t front_i64(account_name scope, account_name code, table_name table, void *data, uint32_t datalen)
+
static bool front(Record &r)
Definition: db.hpp:951
+
static bool upper_bound(const PrimaryType &p, Record &r)
Definition: db.hpp:635
+
static bool upper_bound(const PrimaryType &p, Record &r)
Definition: db.hpp:932
diff --git a/docs/dice_8cpp.html b/docs/dice_8cpp.html index 49928d5fdb6..1587754d209 100644 --- a/docs/dice_8cpp.html +++ b/docs/dice_8cpp.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/dice/dice.cpp File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
- - - - - - - - + + + + + + + +

Functions

void dice::apply_offer (const OfferBet &offer)
 
void dice::apply_cancel (const CancelOffer &offer)
 
void dice::apply_reveal (const Reveal &offer)
 
void dice::apply_claim (const ClaimExpired &claim)
 
void dice::apply_offer (const offer_bet &offer)
 
void dice::apply_cancel (const cancel_offer &offer)
 
void dice::apply_reveal (const reveal &offer)
 
void dice::apply_claim (const claim_expired &claim)
 

Detailed Description

@@ -120,7 +95,7 @@ diff --git a/docs/dice_8hpp.html b/docs/dice_8hpp.html index a38c57c0905..4d130d149ce 100644 --- a/docs/dice_8hpp.html +++ b/docs/dice_8hpp.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/dice/dice.hpp File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +

Classes

-struct  dice::OfferBet +struct  dice::offer_bet   -struct  dice::CancelOffer +struct  dice::cancel_offer   -struct  dice::Reveal +struct  dice::reveal   -struct  dice::ClaimExpired +struct  dice::claim_expired   -struct  dice::OfferPrimaryKey +struct  dice::offer_primary_key   -struct  dice::Player +struct  dice::player  

@@ -123,27 +98,27 @@

- - - - - - - - + + + + + + + +

Typedefs

using dice::EosTokens = eosio::Tokens
 
using dice::Accounts = Table< N(dice), N(dice), N(account), Account, uint64_t >
 
using dice::GlobalDice = Table< N(dice), N(dice), N(global), GlobalDice, uint64_t >
 
using dice::Offers = Table< N(dice), N(dice), N(global), GlobalDice, OfferPrimaryKey, uint128_t >
 
using dice::eos_tokens = eosio::tokens
 
using dice::accounts = eosio::table< N(dice), N(dice), N(account), account, uint64_t >
 
using dice::global_dices = eosio::table< N(dice), N(dice), N(global), global_dice, uint64_t >
 
using dice::offers = eosio::table< N(dice), N(dice), N(global), global_dice, offer_primary_key, uint128_t >
 
- - - - - - - - - - + + + + + + + + + +

Functions

struct dice::PACKED (Offer)
 
struct dice::PACKED (Game)
 
struct dice::Packed (GlobalDice)
 
struct dice::PACKED (Account)
 
Account dice::getAccount (AccountName owner)
 
struct dice::PACKED (offer)
 
struct dice::PACKED (game)
 
struct dice::Packed (global_dice)
 
struct dice::PACKED (account)
 
account dice::get_account (account_name owner)
 

Detailed Description

@@ -152,7 +127,7 @@ diff --git a/docs/dice_8hpp_source.html b/docs/dice_8hpp_source.html index da57a48d023..c94f1adc06d 100644 --- a/docs/dice_8hpp_source.html +++ b/docs/dice_8hpp_source.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/dice/dice.hpp Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
dice.hpp
-Go to the documentation of this file.
1 
6 namespace dice {
7 
8  struct OfferBet {
12  };
13 
14  struct CancelOffer {
16  };
17 
18  struct Reveal {
21  };
22 
23  struct ClaimExpired {
24  uint64_t gameid = 0;
25  };
26 
28 
29  struct OfferPrimaryKey {
32  };
33 
47  struct PACKED( Offer ) {
50  uint32_t gameid = 0;
51  };
52 
53  struct Player {
56  };
57 
61  struct PACKED( Game ) {
62  uint32_t gameid;
63  EosTokens bet;
64  Time deadline;
65  Player player1;
66  Player player2;
67  };
68 
69  struct Packed( GlobalDice ) {
70  uint32_t nextgameid = 0;
71  };
72 
73 
74  struct PACKED( Account ) {
75  Account( AccountName o = AccountName() ):owner(o){}
76 
77  AccountName owner;
78  EosTokens eos_balance;
79  uint32_t open_offers = 0;
80 
81  bool isEmpty()const { return ! ( bool(eos_balance) | open_offers); }
82  };
83 
87 
88  inline Account getAccount( AccountName owner ) {
89  Account account(owner);
90  Accounts::get( account );
91  return account;
92  }
93 
94 };
eosio::Tokens amount
Definition: dice.hpp:9
-
Definition: social.cpp:43
-
Definition: dice.hpp:18
-
AccountName owner
Definition: dice.hpp:31
-
uint64_t AccountName
Definition: types.h:24
-
uint256 commitment
Definition: dice.hpp:54
-
Account getAccount(AccountName owner)
Definition: dice.hpp:88
-
uint256 reveal
Definition: dice.hpp:55
-
unsigned long long uint64_t
Definition: types.h:17
-
EosTokens bet
Definition: dice.hpp:30
-
uint256 commitment
Definition: dice.hpp:19
- -
Definition: dice.hpp:53
-
Definition: types.h:33
-
Definition: dice.hpp:29
-
AccountName player
Definition: dice.hpp:10
-
Definition: dice.hpp:23
-
uint256 source
Definition: dice.hpp:20
-
eosio::token< uint64_t, N(eos)> Tokens
Defines eos tokens.
Definition: token.hpp:386
-
unsigned long uint32_t
Definition: types.h:18
-
struct Packed(GlobalDice)
Definition: dice.hpp:69
+Go to the documentation of this file.
1 
6 namespace dice {
7 
8  struct offer_bet {
12  };
13 
14  struct cancel_offer {
16  };
17 
18  struct reveal {
21  };
22 
23  struct claim_expired {
24  uint64_t gameid = 0;
25  };
26 
28 
32  };
33 
47  struct PACKED( offer ) {
50  uint32_t gameid = 0;
51  };
52 
53  struct player {
56  };
57 
61  struct PACKED( game ) {
62  uint32_t gameid;
63  eos_tokens bet;
64  time deadline;
65  player player1;
66  player player2;
67  };
68 
69  struct Packed( global_dice ) {
70  uint32_t nextgameid = 0;
71  };
72 
73 
74  struct PACKED( account ) {
75  account( account_name o = account_name() ):owner(o){}
76 
77  account_name owner;
78  eos_tokens eos_balance;
79  uint32_t open_offers = 0;
80 
81  bool is_empty()const { return ! ( bool(eos_balance) | open_offers); }
82  };
83 
87 
88  inline account get_account( account_name owner ) {
89  account owned_account(owner);
90  accounts::get( owned_account );
91  return owned_account;
92  }
93 
94 };
uint256 commitment
Definition: dice.hpp:11
+
Definition: social.cpp:43
+
eosio::token< uint64_t, N(eos)> tokens
Defines eos tokens.
Definition: token.hpp:386
+
uint64_t account_name
Definition: types.h:35
+
struct PACKED(offer)
Definition: dice.hpp:47
+
struct Packed(global_dice)
Definition: dice.hpp:69
+
Definition: dice.hpp:14
+
Definition: dice.hpp:29
+
unsigned long long uint64_t
Definition: types.h:18
+
uint256 source
Definition: dice.hpp:20
+
Definition: dice.hpp:18
+ +
Definition: types.h:29
+
uint32_t time
Definition: types.h:39
+
account get_account(account_name owner)
Definition: dice.hpp:88
+
uint256 commitment
Definition: dice.hpp:19
+
account_name owner
Definition: dice.hpp:31
+
unsigned long uint32_t
Definition: types.h:19
+
uint256 commitment
Definition: dice.hpp:54
+
Definition: dice.hpp:53
Definition: dice.cpp:6
-
Definition: dice.hpp:8
-
uint256 commitment
Definition: dice.hpp:11
-
struct PACKED(Offer)
Definition: dice.hpp:47
-
Definition: dice.hpp:14
-
uint256 commitment
Definition: dice.hpp:15
-
int primary[11]
Definition: test_db.cpp:7
-
Definition: db.hpp:549
-
static bool get(const PrimaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:748
-
uint32_t Time
Definition: types.h:28
+
eosio::tokens amount
Definition: dice.hpp:9
+
eos_tokens bet
Definition: dice.hpp:30
+
Definition: db.hpp:551
+
uint256 reveal
Definition: dice.hpp:55
+
Definition: dice.hpp:23
+
uint256 commitment
Definition: dice.hpp:15
+
Definition: dice.hpp:8
+
int primary[11]
Definition: test_db.cpp:8
+
account_name player
Definition: dice.hpp:10
+
static bool get(const PrimaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:750
diff --git a/docs/dir_2f68902bd8ea4562ac77bb3db95ba614.html b/docs/dir_2f68902bd8ea4562ac77bb3db95ba614.html index 39395597bb4..3c5de38fde6 100644 --- a/docs/dir_2f68902bd8ea4562ac77bb3db95ba614.html +++ b/docs/dir_2f68902bd8ea4562ac77bb3db95ba614.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/proxy Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
proxy Directory Reference
-
-Directory dependency graph for proxy:
-
-
contracts/proxy
- - - - - - - - - -
@@ -114,13 +75,15 @@ + +

Files

 
file  proxy.hpp [code]
 
file  proxy.wast.hpp [code]
 
diff --git a/docs/dir_322cd3c97a9c45f1dd8d138b04e20992.html b/docs/dir_322cd3c97a9c45f1dd8d138b04e20992.html index 9f5a9166ad5..1058cd99db2 100644 --- a/docs/dir_322cd3c97a9c45f1dd8d138b04e20992.html +++ b/docs/dir_322cd3c97a9c45f1dd8d138b04e20992.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/storage Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@ - + - - + + + +
storage Directory Reference
-
-Directory dependency graph for storage:
-
-
contracts/storage
- - - - - - -
@@ -111,13 +75,15 @@ + +

Files

 
file  storage.hpp [code]
 
file  storage.wast.hpp [code]
 
diff --git a/docs/dir_3680d2f7810f6721560f2a624729277d.html b/docs/dir_3680d2f7810f6721560f2a624729277d.html index 16e61aeae6c..c07419254dd 100644 --- a/docs/dir_3680d2f7810f6721560f2a624729277d.html +++ b/docs/dir_3680d2f7810f6721560f2a624729277d.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/skeleton Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@ - + - - + + + +
skeleton Directory Reference
-
-Directory dependency graph for skeleton:
-
-
contracts/skeleton
- - - - - - -
@@ -117,7 +81,7 @@ diff --git a/docs/dir_3fea0bf1ce879ce73e6ecec98007efcd.html b/docs/dir_3fea0bf1ce879ce73e6ecec98007efcd.html index 44e4ff66f2e..fbcf9cfbda6 100644 --- a/docs/dir_3fea0bf1ce879ce73e6ecec98007efcd.html +++ b/docs/dir_3fea0bf1ce879ce73e6ecec98007efcd.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/eoslib Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@

Files

EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +

Files

+file  account.h [code] +  +file  account.hpp [code] + Defines types and ABI for account API interactions.
+  file  chain.h [code]   file  crypto.h [code]   +file  datastream.hpp [code] +  file  db.h [code]  Defines C API for interfacing with blockchain database.
  @@ -107,6 +89,8 @@   file  eos.hpp [code]   +file  fixedpoint.hpp [code] +  file  math.h [code]   file  math.hpp [code] @@ -123,6 +107,14 @@   file  print.hpp [code]   +file  raw.hpp [code] +  +file  raw_fwd.hpp [code] +  +file  real.hpp [code] +  +file  string.h [code] +  file  string.hpp [code]   file  system.h [code] @@ -138,13 +130,15 @@   file  types.hpp [code]   +file  varint.hpp [code]
diff --git a/docs/dir_44e8454330c52effb0ef98d8f3108add.html b/docs/dir_44e8454330c52effb0ef98d8f3108add.html index 2dca06a790f..c4bd1d750f8 100644 --- a/docs/dir_44e8454330c52effb0ef98d8f3108add.html +++ b/docs/dir_44e8454330c52effb0ef98d8f3108add.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/social Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@ - + - - + + + +
social Directory Reference
-
-Directory dependency graph for social:
-
-
contracts/social
- - - - - - -
@@ -115,7 +79,7 @@ diff --git a/docs/dir_4512a307eab2a9ca08d8433965f51830.html b/docs/dir_4512a307eab2a9ca08d8433965f51830.html index 2b3bbced03c..5e91b5cf1c6 100644 --- a/docs/dir_4512a307eab2a9ca08d8433965f51830.html +++ b/docs/dir_4512a307eab2a9ca08d8433965f51830.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/test_api Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@

Files

EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
test_api Directory Reference
-
-Directory dependency graph for test_api:
-
-
contracts/test_api
- - - - - - -
+ + @@ -119,12 +85,16 @@ + + + + @@ -137,7 +107,7 @@ diff --git a/docs/dir_5dc13a1abd435123f7be5ea8dc751d1b.html b/docs/dir_5dc13a1abd435123f7be5ea8dc751d1b.html index 7ab7fd01a87..0c64e3901e1 100644 --- a/docs/dir_5dc13a1abd435123f7be5ea8dc751d1b.html +++ b/docs/dir_5dc13a1abd435123f7be5ea8dc751d1b.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/exchange Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@

Files

 
file  test_api.cpp
 
file  test_api.hpp [code]
 
file  test_db.cpp
 
file  test_fixedpoint.cpp
 
file  test_math.cpp
 
file  test_message.cpp
 
file  test_print.cpp
 
file  test_real.cpp
 
file  test_string.cpp
 
file  test_transaction.cpp
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
exchange Directory Reference
-
-Directory dependency graph for exchange:
-
-
contracts/exchange
- - - - - - - - - -
@@ -123,7 +84,7 @@ diff --git a/docs/dir_6c7312813aa58ebc3dfdce40169e8db5.html b/docs/dir_6c7312813aa58ebc3dfdce40169e8db5.html index 13d3b918d29..cd3af3c0699 100644 --- a/docs/dir_6c7312813aa58ebc3dfdce40169e8db5.html +++ b/docs/dir_6c7312813aa58ebc3dfdce40169e8db5.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/simpledb Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@

Files

EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
simpledb Directory Reference
-
-Directory dependency graph for simpledb:
-
-
contracts/simpledb
- - - - - - -
+ + @@ -119,7 +85,7 @@ diff --git a/docs/dir_822c996966d1ea617c855d743c3f3186.html b/docs/dir_822c996966d1ea617c855d743c3f3186.html index 228165e7453..03ef801c4f4 100644 --- a/docs/dir_822c996966d1ea617c855d743c3f3186.html +++ b/docs/dir_822c996966d1ea617c855d743c3f3186.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/tic_tac_toe Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@

Files

file  simpledb.cpp
 
file  simpledb.gen.hpp [code]
 
file  simpledb.hpp [code]
 
file  simpledb.wast.hpp [code]
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
tic_tac_toe Directory Reference
-
-Directory dependency graph for tic_tac_toe:
-
-
contracts/tic_tac_toe
- - - - - - -
@@ -117,7 +81,7 @@ diff --git a/docs/dir_a9257b511e702fbd3462fee4a063915c.html b/docs/dir_a9257b511e702fbd3462fee4a063915c.html index 5ff2451c7f1..0c784e58359 100644 --- a/docs/dir_a9257b511e702fbd3462fee4a063915c.html +++ b/docs/dir_a9257b511e702fbd3462fee4a063915c.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/currency Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@

Files

EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
currency Directory Reference
-
-Directory dependency graph for currency:
-
-
contracts/currency
- - - - - - -
@@ -119,7 +83,7 @@ diff --git a/docs/dir_ae9b15dd87e066e1908bbd90e8f38627.html b/docs/dir_ae9b15dd87e066e1908bbd90e8f38627.html index 475c218d77e..69a5a1ece81 100644 --- a/docs/dir_ae9b15dd87e066e1908bbd90e8f38627.html +++ b/docs/dir_ae9b15dd87e066e1908bbd90e8f38627.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@

Files

EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
contracts Directory Reference
-
-Directory dependency graph for contracts:
-
-
contracts
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
@@ -133,6 +75,8 @@ + + @@ -141,6 +85,8 @@ + + @@ -161,7 +107,7 @@ diff --git a/docs/dir_da2258ea5bfae2641df967be076d9dbe.html b/docs/dir_da2258ea5bfae2641df967be076d9dbe.html index 701109bf74d..a96af7fdd31 100644 --- a/docs/dir_da2258ea5bfae2641df967be076d9dbe.html +++ b/docs/dir_da2258ea5bfae2641df967be076d9dbe.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/infinite Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@

Directories

 
directory  dice
 
directory  dummy
 
directory  eos
 
directory  eoslib
 
directory  infinite
 
directory  malicious
 
directory  proxy
 
directory  simpledb
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
infinite Directory Reference
-
-Directory dependency graph for infinite:
-
-
contracts/infinite
- - - - - - -
@@ -119,7 +83,7 @@ diff --git a/docs/dir_df9ec5dd3eb98ed2672871667d1ff010.html b/docs/dir_df9ec5dd3eb98ed2672871667d1ff010.html index c96b5a7a46f..8958344297e 100644 --- a/docs/dir_df9ec5dd3eb98ed2672871667d1ff010.html +++ b/docs/dir_df9ec5dd3eb98ed2672871667d1ff010.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/dice Directory Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@

Files

EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + + - + - - + + + + - + - - + + + + - + - - + + + +
#include <eoslib/print.hpp>
#include <eoslib/math.hpp>
#include <eoslib/transaction.hpp>
-
-Include dependency graph for eos.hpp:
-
-
- - - - - - - - - - - - - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - - - - - - - - - - - - - - - - - - - - - - - -

Go to the source code of this file.

Detailed Description

@@ -154,7 +82,7 @@ diff --git a/docs/eos_8hpp_source.html b/docs/eos_8hpp_source.html index 65ed377f2de..e6fe1e2ad2a 100644 --- a/docs/eos_8hpp_source.html +++ b/docs/eos_8hpp_source.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/eoslib/eos.hpp Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@ - + - - + + + + - + - - + + + + - + - - + + + + - + - - + + + +
More...

#include <exchange/exchange.hpp>
#include <eoslib/print.hpp>
-
-Include dependency graph for exchange.cpp:
-
-
- - - - - - - - - - - - - - - - - - - -
@@ -133,25 +84,25 @@

Namespaces

- - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + @@ -159,14 +110,16 @@

Functions

void exchange::save (const Account &a)
 
template<typename Lambda >
void exchange::modifyAccount (AccountName a, Lambda &&modify)
 
void exchange::apply_currency_transfer (const currency::Transfer &transfer)
 
void exchange::apply_eos_transfer (const eosio::Transfer &transfer)
 
void exchange::match (Bid &bid, Account &buyer, Ask &ask, Account &seller)
 
void exchange::apply_exchange_buy (BuyOrder order)
 
void exchange::apply_exchange_sell (SellOrder order)
 
void exchange::apply_exchange_cancel_buy (OrderID order)
 
void exchange::apply_exchange_cancel_sell (OrderID order)
 
void exchange::save (const account &a)
 
template<typename Lambda >
void exchange::modify_account (account_name a, Lambda &&modify)
 
void exchange::apply_currency_transfer (const currency::transfer &transfer)
 
void exchange::apply_eos_transfer (const eosio::transfer &transfer)
 
void exchange::match (bid &bid_to_match, account &buyer, ask &ask_to_match, account &seller)
 
void exchange::apply_exchange_buy (buy_order order)
 
void exchange::apply_exchange_sell (sell_order order)
 
void exchange::apply_exchange_cancel_buy (order_id order)
 
void exchange::apply_exchange_cancel_sell (order_id order)
 
void init ()
 
void apply (uint64_t code, uint64_t action)

Detailed Description

-

The exchange contract knows that the currency contracts requireNotice() of both the sender and receiver; therefore, the exchange contract can implement a message handler that will be called anytime funds are deposited to or withdrawn from the exchange.

+

The exchange contract knows that the currency contracts require_notice() of both the sender and receiver; therefore, the exchange contract can implement a message handler that will be called anytime funds are deposited to or withdrawn from the exchange.

When tokens are sent to from another account the exchange will credit the user's balance of the proper currency.

To withdraw from the exchange, the user simply reverses the "to" and "from" fields of the currency contract transfer message. The currency contract will require the "authority" of the exchange, but the exchange's init() function configured this permission to allow anyone to transfer from the exchange.

To prevent people from stealing all the money from the exchange, the exchange's transfer handler requires both the authority of the receiver and asserts that the user has a sufficient balance on the exchange. Lacking both of these the exchange will kill the transfer.

The exchange and one of the currency contracts are forced to execute in the same thread anytime there is a deposit or withdraw. The transaction containing the transfer are already required to include the exchange in the scope by the currency contract.

creating, canceling, and filling orders do not require blocking either currency contract. Users can only deposit or withdraw to their own currency account.

Function Documentation

- + +

◆ apply()

+
@@ -193,7 +146,9 @@ - + +

◆ init()

+
@@ -213,7 +168,7 @@ diff --git a/docs/exchange_8hpp.html b/docs/exchange_8hpp.html index 42c106d0ee9..36402c9f457 100644 --- a/docs/exchange_8hpp.html +++ b/docs/exchange_8hpp.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/exchange/exchange.hpp File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
-Include dependency graph for exchange.hpp:
-
-
- - - - - - - - - - - - - - - - - - -
-
-This graph shows which files directly or indirectly include this file:
-
-
- - - -

Go to the source code of this file.

- + - + - +

Classes

struct  exchange::OrderID
struct  exchange::order_id
 
struct  exchange::BuyOrder
struct  exchange::buy_order
 
struct  exchange::SellOrder
struct  exchange::sell_order
 

@@ -149,27 +93,27 @@

- - - - - - + + + + + +

Typedefs

using exchange::EosTokens = eosio::Tokens
 
typedef eosio::price< EosTokens, CurrencyTokens > exchange::Price
 
using exchange::Accounts = Table< N(exchange), N(exchange), N(account), Account, uint64_t >
 
using exchange::eos_tokens = eosio::tokens
 
typedef eosio::price< eos_tokens, currency_tokens > exchange::price
 
using exchange::accounts = eosio::table< N(exchange), N(exchange), N(account), account, uint64_t >
 
- - - - - - - - - - - - + + + + + + + + + + + +

Functions

struct exchange::PACKED (Bid)
 
struct exchange::PACKED (Ask)
 
struct exchange::PACKED (Account)
 
 exchange::TABLE2 (Bids, exchange, exchange, bids, Bid, BidsById, OrderID, BidsByPrice, Price)
 
 exchange::TABLE2 (Asks, exchange, exchange, asks, Ask, AsksById, OrderID, AsksByPrice, Price)
 
Account exchange::getAccount (AccountName owner)
 
struct exchange::PACKED (bid)
 
struct exchange::PACKED (ask)
 
struct exchange::PACKED (account)
 
 exchange::TABLE2 (bids, exchange, exchange, bids, bid, bids_by_id, order_id, bids_by_price, price)
 
 exchange::TABLE2 (asks, exchange, exchange, asks, ask, asks_by_id, order_id, asks_by_price, price)
 
account exchange::get_account (account_name owner)
 

Detailed Description

@@ -178,7 +122,7 @@ diff --git a/docs/exchange_8hpp_source.html b/docs/exchange_8hpp_source.html index 0d87dc24a18..2c2db17a52b 100644 --- a/docs/exchange_8hpp_source.html +++ b/docs/exchange_8hpp_source.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/exchange/exchange.hpp Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
exchange.hpp
-Go to the documentation of this file.
1 
5 #include <currency/currency.hpp>
6 
7 namespace exchange {
8 
11 
12  struct OrderID {
15  };
16 
18 
19  struct PACKED( Bid ) {
20  OrderID buyer;
21  Price price;
22  eosio::Tokens quantity;
23  Time expiration;
24 
25  void print() {
26  eosio::print( "{ quantity: ", quantity, ", price: ", price, " }" );
27  }
28  };
29  static_assert( sizeof(Bid) == 32+12, "unexpected padding" );
30 
31  struct PACKED( Ask ) {
32  OrderID seller;
33  Price price;
34  CurrencyTokens quantity;
35  Time expiration;
36 
37  void print() {
38  eosio::print( "{ quantity: ", quantity, ", price: ", price, " }" );
39  }
40  };
41  static_assert( sizeof(Ask) == 32+12, "unexpected padding" );
42 
43  struct PACKED( Account ) {
44  Account( AccountName o = AccountName() ):owner(o){}
45 
46  AccountName owner;
47  EosTokens eos_balance;
48  CurrencyTokens currency_balance;
49  uint32_t open_orders = 0;
50 
51  bool isEmpty()const { return ! ( bool(eos_balance) | bool(currency_balance) | open_orders); }
52  };
53 
55 
56  TABLE2(Bids,exchange,exchange,bids,Bid,BidsById,OrderID,BidsByPrice,Price);
57  TABLE2(Asks,exchange,exchange,asks,Ask,AsksById,OrderID,AsksByPrice,Price);
58 
59 
60  struct BuyOrder : public Bid { uint8_t fill_or_kill = false; };
61  struct SellOrder : public Ask { uint8_t fill_or_kill = false; };
62 
63 
64  inline Account getAccount( AccountName owner ) {
65  Account account(owner);
66  Accounts::get( account );
67  return account;
68  }
69 }
70 
unsigned char uint8_t
Definition: types.h:22
-
Definition: social.cpp:43
-
uint64_t AccountName
Definition: types.h:24
-
unsigned long long uint64_t
Definition: types.h:17
-
Defines a fixed precision price between two tokens.
Definition: token.hpp:249
+Go to the documentation of this file.
1 
5 #include <currency/currency.hpp>
6 
7 namespace exchange {
8 
11 
12  //@abi action cancelbuy cancelsell
13  struct order_id {
16  };
17 
19 
20  //@abi table
21  struct PACKED( bid ) {
22  order_id buyer;
23  price at_price;
24  eosio::tokens quantity;
25  time expiration;
26 
27  void print() {
28  eosio::print( "{ quantity: ", quantity, ", price: ", at_price, " }" );
29  }
30  };
31  static_assert( sizeof(bid) == 32+12, "unexpected padding" );
32 
33  //@abi table
34  struct PACKED( ask ) {
35  order_id seller;
36  price at_price;
37  currency_tokens quantity;
38  time expiration;
39 
40  void print() {
41  eosio::print( "{ quantity: ", quantity, ", price: ", at_price, " }" );
42  }
43  };
44  static_assert( sizeof(ask) == 32+12, "unexpected padding" );
45 
46  //@abi table i64
47  struct PACKED( account ) {
48  account( account_name o = account_name() ):owner(o){}
49 
50  account_name owner;
51  eos_tokens eos_balance;
52  currency_tokens currency_balance;
53  uint32_t open_orders = 0;
54 
55  bool is_empty()const { return ! ( bool(eos_balance) | bool(currency_balance) | open_orders); }
56  };
57 
59 
60  TABLE2(bids,exchange,exchange,bids,bid,bids_by_id,order_id,bids_by_price,price);
61  TABLE2(asks,exchange,exchange,asks,ask,asks_by_id,order_id,asks_by_price,price);
62 
63 
64 
65  //@abi action buy
66  struct buy_order : public bid { uint8_t fill_or_kill = false; };
67 
68  //@abi action sell
69  struct sell_order : public ask { uint8_t fill_or_kill = false; };
70 
71 
72  inline account get_account( account_name owner ) {
73  account owned_account(owner);
74  accounts::get( owned_account );
75  return owned_account;
76 
77  }
78 }
79 
unsigned char uint8_t
Definition: types.h:21
+
account get_account(account_name owner)
Definition: exchange.hpp:72
+
Definition: social.cpp:43
+
Defines a fixed precision price between two tokens.
Definition: token.hpp:249
+
eosio::token< uint64_t, N(eos)> tokens
Defines eos tokens.
Definition: token.hpp:386
+
uint64_t account_name
Definition: types.h:35
+
account_name name
Definition: exchange.hpp:14
+
unsigned long long uint64_t
Definition: types.h:18
+
Definition: exchange.cpp:43
- -
TABLE2(Bids, exchange, exchange, bids, Bid, BidsById, OrderID, BidsByPrice, Price)
-
eosio::token< uint64_t, N(currency)> CurrencyTokens
Definition: currency.hpp:38
-
eosio::price< EosTokens, CurrencyTokens > Price
Definition: exchange.hpp:17
-
eosio::token< uint64_t, N(eos)> Tokens
Defines eos tokens.
Definition: token.hpp:386
-
unsigned long uint32_t
Definition: types.h:18
-
Account getAccount(AccountName owner)
Definition: exchange.hpp:64
-
struct PACKED(Bid)
Definition: exchange.hpp:19
-
uint64_t number
Definition: exchange.hpp:14
+
struct PACKED(bid)
Definition: exchange.hpp:21
+
eosio::price< eos_tokens, currency_tokens > price
Definition: exchange.hpp:18
+
Definition: exchange.hpp:66
+
uint32_t time
Definition: types.h:39
+
TABLE2(bids, exchange, exchange, bids, bid, bids_by_id, order_id, bids_by_price, price)
+
unsigned long uint32_t
Definition: types.h:19
+
Definition: exchange.hpp:69
+
void print(const char *ptr)
Prints string.
Definition: print.hpp:19
-
Definition: exchange.hpp:12
-
void print(const char *ptr)
Prints string.
Definition: print.hpp:19
-
Definition: exchange.hpp:61
-
Definition: exchange.hpp:60
-
Definition: db.hpp:549
-
static bool get(const PrimaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:748
-
AccountName name
Definition: exchange.hpp:13
-
uint32_t Time
Definition: types.h:28
+
Definition: db.hpp:551
+
eosio::token< uint64_t, N(currency)> currency_tokens
Definition: currency.hpp:38
+
static bool get(const PrimaryType &p, Record &r, uint64_t s=scope)
Definition: db.hpp:750
+
Definition: exchange.hpp:13
+
uint64_t number
Definition: exchange.hpp:15
diff --git a/docs/exchange_8wast_8hpp.html b/docs/exchange_8wast_8hpp.html index d9c65ba89b7..43aa0f053da 100644 --- a/docs/exchange_8wast_8hpp.html +++ b/docs/exchange_8wast_8hpp.html @@ -3,7 +3,8 @@ - + + EOS.IO: contracts/exchange/exchange.wast.hpp File Reference @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
 

Variable Documentation

- + +

◆ exchange_wast

+
@@ -121,7 +98,7 @@

Variable Documentation

diff --git a/docs/exchange_8wast_8hpp_source.html b/docs/exchange_8wast_8hpp_source.html index f5734cf6c73..f9fde144b9a 100644 --- a/docs/exchange_8wast_8hpp_source.html +++ b/docs/exchange_8wast_8hpp_source.html @@ -3,7 +3,8 @@ - + +EOS.IO: contracts/exchange/exchange.wast.hpp Source File @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ @@ -33,42 +31,19 @@
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
- + - - + + + +
exchange.wast.hpp
-Go to the documentation of this file.
1 const char* exchange_wast = R"=====(
2 (module
3  (type $FUNCSIG$ijjjii (func (param i64 i64 i64 i32 i32) (result i32)))
4  (type $FUNCSIG$vii (func (param i32 i32)))
5  (type $FUNCSIG$vi (func (param i32)))
6  (type $FUNCSIG$ijji (func (param i64 i64 i32) (result i32)))
7  (type $FUNCSIG$ijjii (func (param i64 i64 i32 i32) (result i32)))
8  (type $FUNCSIG$vj (func (param i64)))
9  (type $FUNCSIG$i (func (result i32)))
10  (type $FUNCSIG$iii (func (param i32 i32) (result i32)))
11  (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
12  (import "env" "assert" (func $assert (param i32 i32)))
13  (import "env" "back_secondary_i128i128" (func $back_secondary_i128i128 (param i64 i64 i64 i32 i32) (result i32)))
14  (import "env" "diveq_i128" (func $diveq_i128 (param i32 i32)))
15  (import "env" "front_secondary_i128i128" (func $front_secondary_i128i128 (param i64 i64 i64 i32 i32) (result i32)))
16  (import "env" "load_i64" (func $load_i64 (param i64 i64 i64 i32 i32) (result i32)))
17  (import "env" "load_primary_i128i128" (func $load_primary_i128i128 (param i64 i64 i64 i32 i32) (result i32)))
18  (import "env" "memcpy" (func $memcpy (param i32 i32 i32) (result i32)))
19  (import "env" "multeq_i128" (func $multeq_i128 (param i32 i32)))
20  (import "env" "now" (func $now (result i32)))
21  (import "env" "printi" (func $printi (param i64)))
22  (import "env" "printi128" (func $printi128 (param i32)))
23  (import "env" "printn" (func $printn (param i64)))
24  (import "env" "prints" (func $prints (param i32)))
25  (import "env" "readMessage" (func $readMessage (param i32 i32) (result i32)))
26  (import "env" "remove_i128i128" (func $remove_i128i128 (param i64 i64 i32) (result i32)))
27  (import "env" "remove_i64" (func $remove_i64 (param i64 i64 i32) (result i32)))
28  (import "env" "requireAuth" (func $requireAuth (param i64)))
29  (import "env" "store_i128i128" (func $store_i128i128 (param i64 i64 i32 i32) (result i32)))
30  (import "env" "store_i64" (func $store_i64 (param i64 i64 i32 i32) (result i32)))
31  (table 0 anyfunc)
32  (memory $0 1)
33  (data (i32.const 4) "\f0\t\00\00")
34  (data (i32.const 16) "exchange\00")
35  (data (i32.const 32) "integer overflow adding token balance\00")
36  (data (i32.const 80) "remove\00")
37  (data (i32.const 96) "store\00")
38  (data (i32.const 112) "integer underflow subtracting token balance\00")
39  (data (i32.const 160) "notified on transfer that is not relevant to this exchange\00")
40  (data (i32.const 224) "match bid: \00")
41  (data (i32.const 240) "{ quantity: \00")
42  (data (i32.const 256) ", price: \00")
43  (data (i32.const 272) " }\00")
44  (data (i32.const 288) "\nmatch ask: \00")
45  (data (i32.const 304) "\n\00")
46  (data (i32.const 320) "\n\nmatch bid: \00")
47  (data (i32.const 336) ":\00")
48  (data (i32.const 352) "match ask: \00")
49  (data (i32.const 368) "\n\n\00")
50  (data (i32.const 384) "operator/ \00")
51  (data (i32.const 400) " * \00")
52  (data (i32.const 416) " / \00")
53  (data (i32.const 432) "cast to 64 bit loss of precision\00")
54  (data (i32.const 480) "b: \00")
55  (data (i32.const 496) " \00")
56  (data (i32.const 512) " \n\00")
57  (data (i32.const 528) "operator* \00")
58  (data (i32.const 544) ".\00")
59  (data (i32.const 560) "/\00")
60  (data (i32.const 576) "invalid quantity\00")
61  (data (i32.const 608) "order expired\00")
62  (data (i32.const 624) " created bid for \00")
63  (data (i32.const 656) " currency at price: \00")
64  (data (i32.const 688) "order with this id already exists\00")
65  (data (i32.const 736) "/home/giszczakj/Dev/eos/contracts/exchange/exchange.cpp\00")
66  (data (i32.const 800) "\n No asks found, saving buyer account and storing bid\n\00")
67  (data (i32.const 864) "order not completely filled\00")
68  (data (i32.const 896) "error storing record\00")
69  (data (i32.const 928) "ask: \00")
70  (data (i32.const 944) "bid: \00")
71  (data (i32.const 960) "lowest ask <= bid.price\n\00")
72  (data (i32.const 992) "lowest_ask >= bid.price or buyer\'s bid has been filled\n\00")
73  (data (i32.const 1056) "saving buyer\'s account\n\00")
74  (data (i32.const 1088) " eos left over\00")
75  (data (i32.const 1104) "bid filled\n\00")
76  (data (i32.const 1120) " created sell for \00")
77  (data (i32.const 1152) "\n No bids found, saving seller account and storing ask\n\00")
78  (data (i32.const 1216) "\n bids found, lets see what matches\n\00")
79  (data (i32.const 1264) "saving ask\n\00")
80  (data (i32.const 1280) "ask filled\n\00")
81  (data (i32.const 1296) "bid with this id does not exists\00")
82  (data (i32.const 1344) "bid removed\n\00")
83  (data (i32.const 1360) "ask with this id does not exists\00")
84  (data (i32.const 1408) "ask removed\n\00")
85  (data (i32.const 1424) "message shorter than expected\00")
86  (data (i32.const 1456) "unknown action\00")
87  (data (i32.const 1472) "currency\00")
88  (data (i32.const 1488) "transfer\00")
89  (data (i32.const 1504) "eos\00")
90  (export "memory" (memory $0))
91  (export "_ZN8exchange23apply_currency_transferERKN8currency8TransferE" (func $_ZN8exchange23apply_currency_transferERKN8currency8TransferE))
92  (export "_ZN8exchange18apply_eos_transferERKN3eos8TransferE" (func $_ZN8exchange18apply_eos_transferERKN3eos8TransferE))
93  (export "_ZN8exchange5matchERNS_3BidERNS_7AccountERNS_3AskES3_" (func $_ZN8exchange5matchERNS_3BidERNS_7AccountERNS_3AskES3_))
94  (export "_ZN8exchange18apply_exchange_buyENS_8BuyOrderE" (func $_ZN8exchange18apply_exchange_buyENS_8BuyOrderE))
95  (export "_ZN8exchange19apply_exchange_sellENS_9SellOrderE" (func $_ZN8exchange19apply_exchange_sellENS_9SellOrderE))
96  (export "_ZN8exchange25apply_exchange_cancel_buyENS_7OrderIDE" (func $_ZN8exchange25apply_exchange_cancel_buyENS_7OrderIDE))
97  (export "_ZN8exchange26apply_exchange_cancel_sellENS_7OrderIDE" (func $_ZN8exchange26apply_exchange_cancel_sellENS_7OrderIDE))
98  (export "init" (func $init))
99  (export "apply" (func $apply))
100  (func $_ZN8exchange23apply_currency_transferERKN8currency8TransferE (param $0 i32)
101  (local $1 i64)
102  (local $2 i32)
103  (local $3 i64)
104  (local $4 i32)
105  (local $5 i64)
106  (local $6 i64)
107  (local $7 i64)
108  (local $8 i64)
109  (local $9 i32)
110  (i32.store offset=4
111  (i32.const 0)
112  (tee_local $9
113  (i32.sub
114  (i32.load offset=4
115  (i32.const 0)
116  )
117  (i32.const 32)
118  )
119  )
120  )
121  (set_local $1
122  (i64.load offset=8
123  (get_local $0)
124  )
125  )
126  (set_local $6
127  (i64.const 0)
128  )
129  (set_local $5
130  (i64.const 59)
131  )
132  (set_local $4
133  (i32.const 16)
134  )
135  (set_local $7
136  (i64.const 0)
137  )
138  (loop $label$0
139  (block $label$1
140  (block $label$2
141  (block $label$3
142  (block $label$4
143  (block $label$5
144  (br_if $label$5
145  (i64.gt_u
146  (get_local $6)
147  (i64.const 7)
148  )
149  )
150  (br_if $label$4
151  (i32.gt_u
152  (i32.and
153  (i32.add
154  (tee_local $2
155  (i32.load8_s
156  (get_local $4)
157  )
158  )
159  (i32.const -97)
160  )
161  (i32.const 255)
162  )
163  (i32.const 25)
164  )
165  )
166  (set_local $2
167  (i32.add
168  (get_local $2)
169  (i32.const 160)
170  )
171  )
172  (br $label$3)
173  )
174  (set_local $8
175  (i64.const 0)
176  )
177  (br_if $label$2
178  (i64.le_u
179  (get_local $6)
180  (i64.const 11)
181  )
182  )
183  (br $label$1)
184  )
185  (set_local $2
186  (select
187  (i32.add
188  (get_local $2)
189  (i32.const 234)
190  )
191  (i32.const 0)
192  (i32.lt_u
193  (i32.and
194  (i32.add
195  (get_local $2)
196  (i32.const -49)
197  )
198  (i32.const 255)
199  )
200  (i32.const 5)
201  )
202  )
203  )
204  )
205  (set_local $8
206  (i64.shr_s
207  (i64.shl
208  (i64.extend_u/i32
209  (get_local $2)
210  )
211  (i64.const 56)
212  )
213  (i64.const 56)
214  )
215  )
216  )
217  (set_local $8
218  (i64.shl
219  (i64.and
220  (get_local $8)
221  (i64.const 31)
222  )
223  (i64.and
224  (get_local $5)
225  (i64.const 4294967295)
226  )
227  )
228  )
229  )
230  (set_local $4
231  (i32.add
232  (get_local $4)
233  (i32.const 1)
234  )
235  )
236  (set_local $6
237  (i64.add
238  (get_local $6)
239  (i64.const 1)
240  )
241  )
242  (set_local $7
243  (i64.or
244  (get_local $8)
245  (get_local $7)
246  )
247  )
248  (br_if $label$0
249  (i64.ne
250  (tee_local $5
251  (i64.add
252  (get_local $5)
253  (i64.const -5)
254  )
255  )
256  (i64.const -6)
257  )
258  )
259  )
260  (set_local $3
261  (i64.load
262  (get_local $0)
263  )
264  )
265  (block $label$6
266  (block $label$7
267  (block $label$8
268  (block $label$9
269  (br_if $label$9
270  (i64.ne
271  (get_local $1)
272  (get_local $7)
273  )
274  )
275  (i64.store offset=8
276  (get_local $9)
277  (i64.const 0)
278  )
279  (i64.store
280  (get_local $9)
281  (get_local $3)
282  )
283  (i64.store offset=16
284  (get_local $9)
285  (i64.const 0)
286  )
287  (i32.store offset=24
288  (get_local $9)
289  (i32.const 0)
290  )
291  (drop
292  (call $load_i64
293  (i64.const 3316479707209269248)
294  (i64.const 3316479707209269248)
295  (i64.const 632468476610478080)
296  (get_local $9)
297  (i32.const 28)
298  )
299  )
300  (call $assert
301  (i64.ge_u
302  (i64.add
303  (tee_local $6
304  (i64.load offset=16
305  (get_local $0)
306  )
307  )
308  (i64.load offset=16
309  (get_local $9)
310  )
311  )
312  (get_local $6)
313  )
314  (i32.const 32)
315  )
316  (i64.store offset=16
317  (get_local $9)
318  (tee_local $6
319  (i64.add
320  (i64.load offset=16
321  (get_local $9)
322  )
323  (i64.load offset=16
324  (get_local $0)
325  )
326  )
327  )
328  )
329  (br_if $label$8
330  (i32.eqz
331  (i32.or
332  (i64.ne
333  (i64.or
334  (i64.load offset=8
335  (get_local $9)
336  )
337  (get_local $6)
338  )
339  (i64.const 0)
340  )
341  (i32.load offset=24
342  (get_local $9)
343  )
344  )
345  )
346  )
347  (call $prints
348  (i32.const 96)
349  )
350  (drop
351  (call $store_i64
352  (i64.const 3316479707209269248)
353  (i64.const 632468476610478080)
354  (get_local $9)
355  (i32.const 28)
356  )
357  )
358  (br $label$6)
359  )
360  (set_local $6
361  (i64.const 0)
362  )
363  (set_local $5
364  (i64.const 59)
365  )
366  (set_local $4
367  (i32.const 16)
368  )
369  (set_local $7
370  (i64.const 0)
371  )
372  (loop $label$10
373  (block $label$11
374  (block $label$12
375  (block $label$13
376  (block $label$14
377  (block $label$15
378  (br_if $label$15
379  (i64.gt_u
380  (get_local $6)
381  (i64.const 7)
382  )
383  )
384  (br_if $label$14
385  (i32.gt_u
386  (i32.and
387  (i32.add
388  (tee_local $2
389  (i32.load8_s
390  (get_local $4)
391  )
392  )
393  (i32.const -97)
394  )
395  (i32.const 255)
396  )
397  (i32.const 25)
398  )
399  )
400  (set_local $2
401  (i32.add
402  (get_local $2)
403  (i32.const 160)
404  )
405  )
406  (br $label$13)
407  )
408  (set_local $8
409  (i64.const 0)
410  )
411  (br_if $label$12
412  (i64.le_u
413  (get_local $6)
414  (i64.const 11)
415  )
416  )
417  (br $label$11)
418  )
419  (set_local $2
420  (select
421  (i32.add
422  (get_local $2)
423  (i32.const 234)
424  )
425  (i32.const 0)
426  (i32.lt_u
427  (i32.and
428  (i32.add
429  (get_local $2)
430  (i32.const -49)
431  )
432  (i32.const 255)
433  )
434  (i32.const 5)
435  )
436  )
437  )
438  )
439  (set_local $8
440  (i64.shr_s
441  (i64.shl
442  (i64.extend_u/i32
443  (get_local $2)
444  )
445  (i64.const 56)
446  )
447  (i64.const 56)
448  )
449  )
450  )
451  (set_local $8
452  (i64.shl
453  (i64.and
454  (get_local $8)
455  (i64.const 31)
456  )
457  (i64.and
458  (get_local $5)
459  (i64.const 4294967295)
460  )
461  )
462  )
463  )
464  (set_local $4
465  (i32.add
466  (get_local $4)
467  (i32.const 1)
468  )
469  )
470  (set_local $6
471  (i64.add
472  (get_local $6)
473  (i64.const 1)
474  )
475  )
476  (set_local $7
477  (i64.or
478  (get_local $8)
479  (get_local $7)
480  )
481  )
482  (br_if $label$10
483  (i64.ne
484  (tee_local $5
485  (i64.add
486  (get_local $5)
487  (i64.const -5)
488  )
489  )
490  (i64.const -6)
491  )
492  )
493  )
494  (block $label$16
495  (br_if $label$16
496  (i64.ne
497  (get_local $3)
498  (get_local $7)
499  )
500  )
501  (call $requireAuth
502  (get_local $1)
503  )
504  (set_local $6
505  (i64.load
506  (i32.add
507  (get_local $0)
508  (i32.const 8)
509  )
510  )
511  )
512  (i64.store offset=8
513  (get_local $9)
514  (i64.const 0)
515  )
516  (i64.store
517  (get_local $9)
518  (get_local $6)
519  )
520  (i64.store offset=16
521  (get_local $9)
522  (i64.const 0)
523  )
524  (i32.store offset=24
525  (get_local $9)
526  (i32.const 0)
527  )
528  (drop
529  (call $load_i64
530  (i64.const 3316479707209269248)
531  (i64.const 3316479707209269248)
532  (i64.const 632468476610478080)
533  (get_local $9)
534  (i32.const 28)
535  )
536  )
537  (call $assert
538  (i64.ge_u
539  (i64.load offset=16
540  (get_local $9)
541  )
542  (i64.load offset=16
543  (get_local $0)
544  )
545  )
546  (i32.const 112)
547  )
548  (i64.store offset=16
549  (get_local $9)
550  (tee_local $6
551  (i64.sub
552  (i64.load offset=16
553  (get_local $9)
554  )
555  (i64.load offset=16
556  (get_local $0)
557  )
558  )
559  )
560  )
561  (br_if $label$7
562  (i32.eqz
563  (i32.or
564  (i64.ne
565  (i64.or
566  (i64.load offset=8
567  (get_local $9)
568  )
569  (get_local $6)
570  )
571  (i64.const 0)
572  )
573  (i32.load offset=24
574  (get_local $9)
575  )
576  )
577  )
578  )
579  (call $prints
580  (i32.const 96)
581  )
582  (drop
583  (call $store_i64
584  (i64.const 3316479707209269248)
585  (i64.const 632468476610478080)
586  (get_local $9)
587  (i32.const 28)
588  )
589  )
590  (br $label$6)
591  )
592  (call $assert
593  (i32.const 0)
594  (i32.const 160)
595  )
596  (br $label$6)
597  )
598  (call $prints
599  (i32.const 80)
600  )
601  (drop
602  (call $remove_i64
603  (i64.const 3316479707209269248)
604  (i64.const 632468476610478080)
605  (get_local $9)
606  )
607  )
608  (br $label$6)
609  )
610  (call $prints
611  (i32.const 80)
612  )
613  (drop
614  (call $remove_i64
615  (i64.const 3316479707209269248)
616  (i64.const 632468476610478080)
617  (get_local $9)
618  )
619  )
620  )
621  (i32.store offset=4
622  (i32.const 0)
623  (i32.add
624  (get_local $9)
625  (i32.const 32)
626  )
627  )
628  )
629  (func $_ZN8exchange18apply_eos_transferERKN3eos8TransferE (param $0 i32)
630  (local $1 i64)
631  (local $2 i32)
632  (local $3 i64)
633  (local $4 i32)
634  (local $5 i64)
635  (local $6 i64)
636  (local $7 i64)
637  (local $8 i64)
638  (local $9 i32)
639  (i32.store offset=4
640  (i32.const 0)
641  (tee_local $9
642  (i32.sub
643  (i32.load offset=4
644  (i32.const 0)
645  )
646  (i32.const 32)
647  )
648  )
649  )
650  (set_local $1
651  (i64.load offset=8
652  (get_local $0)
653  )
654  )
655  (set_local $6
656  (i64.const 0)
657  )
658  (set_local $5
659  (i64.const 59)
660  )
661  (set_local $4
662  (i32.const 16)
663  )
664  (set_local $7
665  (i64.const 0)
666  )
667  (loop $label$0
668  (block $label$1
669  (block $label$2
670  (block $label$3
671  (block $label$4
672  (block $label$5
673  (br_if $label$5
674  (i64.gt_u
675  (get_local $6)
676  (i64.const 7)
677  )
678  )
679  (br_if $label$4
680  (i32.gt_u
681  (i32.and
682  (i32.add
683  (tee_local $2
684  (i32.load8_s
685  (get_local $4)
686  )
687  )
688  (i32.const -97)
689  )
690  (i32.const 255)
691  )
692  (i32.const 25)
693  )
694  )
695  (set_local $2
696  (i32.add
697  (get_local $2)
698  (i32.const 160)
699  )
700  )
701  (br $label$3)
702  )
703  (set_local $8
704  (i64.const 0)
705  )
706  (br_if $label$2
707  (i64.le_u
708  (get_local $6)
709  (i64.const 11)
710  )
711  )
712  (br $label$1)
713  )
714  (set_local $2
715  (select
716  (i32.add
717  (get_local $2)
718  (i32.const 234)
719  )
720  (i32.const 0)
721  (i32.lt_u
722  (i32.and
723  (i32.add
724  (get_local $2)
725  (i32.const -49)
726  )
727  (i32.const 255)
728  )
729  (i32.const 5)
730  )
731  )
732  )
733  )
734  (set_local $8
735  (i64.shr_s
736  (i64.shl
737  (i64.extend_u/i32
738  (get_local $2)
739  )
740  (i64.const 56)
741  )
742  (i64.const 56)
743  )
744  )
745  )
746  (set_local $8
747  (i64.shl
748  (i64.and
749  (get_local $8)
750  (i64.const 31)
751  )
752  (i64.and
753  (get_local $5)
754  (i64.const 4294967295)
755  )
756  )
757  )
758  )
759  (set_local $4
760  (i32.add
761  (get_local $4)
762  (i32.const 1)
763  )
764  )
765  (set_local $6
766  (i64.add
767  (get_local $6)
768  (i64.const 1)
769  )
770  )
771  (set_local $7
772  (i64.or
773  (get_local $8)
774  (get_local $7)
775  )
776  )
777  (br_if $label$0
778  (i64.ne
779  (tee_local $5
780  (i64.add
781  (get_local $5)
782  (i64.const -5)
783  )
784  )
785  (i64.const -6)
786  )
787  )
788  )
789  (set_local $3
790  (i64.load
791  (get_local $0)
792  )
793  )
794  (block $label$6
795  (block $label$7
796  (block $label$8
797  (block $label$9
798  (br_if $label$9
799  (i64.ne
800  (get_local $1)
801  (get_local $7)
802  )
803  )
804  (i64.store offset=8
805  (get_local $9)
806  (i64.const 0)
807  )
808  (i64.store
809  (get_local $9)
810  (get_local $3)
811  )
812  (i64.store offset=16
813  (get_local $9)
814  (i64.const 0)
815  )
816  (i32.store offset=24
817  (get_local $9)
818  (i32.const 0)
819  )
820  (drop
821  (call $load_i64
822  (i64.const 3316479707209269248)
823  (i64.const 3316479707209269248)
824  (i64.const 632468476610478080)
825  (get_local $9)
826  (i32.const 28)
827  )
828  )
829  (call $assert
830  (i64.ge_u
831  (i64.add
832  (tee_local $6
833  (i64.load offset=16
834  (get_local $0)
835  )
836  )
837  (i64.load offset=8
838  (get_local $9)
839  )
840  )
841  (get_local $6)
842  )
843  (i32.const 32)
844  )
845  (i64.store offset=8
846  (get_local $9)
847  (tee_local $6
848  (i64.add
849  (i64.load offset=8
850  (get_local $9)
851  )
852  (i64.load offset=16
853  (get_local $0)
854  )
855  )
856  )
857  )
858  (br_if $label$8
859  (i32.eqz
860  (i32.or
861  (i64.ne
862  (i64.or
863  (i64.load offset=16
864  (get_local $9)
865  )
866  (get_local $6)
867  )
868  (i64.const 0)
869  )
870  (i32.load offset=24
871  (get_local $9)
872  )
873  )
874  )
875  )
876  (call $prints
877  (i32.const 96)
878  )
879  (drop
880  (call $store_i64
881  (i64.const 3316479707209269248)
882  (i64.const 632468476610478080)
883  (get_local $9)
884  (i32.const 28)
885  )
886  )
887  (br $label$6)
888  )
889  (set_local $6
890  (i64.const 0)
891  )
892  (set_local $5
893  (i64.const 59)
894  )
895  (set_local $4
896  (i32.const 16)
897  )
898  (set_local $7
899  (i64.const 0)
900  )
901  (loop $label$10
902  (block $label$11
903  (block $label$12
904  (block $label$13
905  (block $label$14
906  (block $label$15
907  (br_if $label$15
908  (i64.gt_u
909  (get_local $6)
910  (i64.const 7)
911  )
912  )
913  (br_if $label$14
914  (i32.gt_u
915  (i32.and
916  (i32.add
917  (tee_local $2
918  (i32.load8_s
919  (get_local $4)
920  )
921  )
922  (i32.const -97)
923  )
924  (i32.const 255)
925  )
926  (i32.const 25)
927  )
928  )
929  (set_local $2
930  (i32.add
931  (get_local $2)
932  (i32.const 160)
933  )
934  )
935  (br $label$13)
936  )
937  (set_local $8
938  (i64.const 0)
939  )
940  (br_if $label$12
941  (i64.le_u
942  (get_local $6)
943  (i64.const 11)
944  )
945  )
946  (br $label$11)
947  )
948  (set_local $2
949  (select
950  (i32.add
951  (get_local $2)
952  (i32.const 234)
953  )
954  (i32.const 0)
955  (i32.lt_u
956  (i32.and
957  (i32.add
958  (get_local $2)
959  (i32.const -49)
960  )
961  (i32.const 255)
962  )
963  (i32.const 5)
964  )
965  )
966  )
967  )
968  (set_local $8
969  (i64.shr_s
970  (i64.shl
971  (i64.extend_u/i32
972  (get_local $2)
973  )
974  (i64.const 56)
975  )
976  (i64.const 56)
977  )
978  )
979  )
980  (set_local $8
981  (i64.shl
982  (i64.and
983  (get_local $8)
984  (i64.const 31)
985  )
986  (i64.and
987  (get_local $5)
988  (i64.const 4294967295)
989  )
990  )
991  )
992  )
993  (set_local $4
994  (i32.add
995  (get_local $4)
996  (i32.const 1)
997  )
998  )
999  (set_local $6
1000  (i64.add
1001  (get_local $6)
1002  (i64.const 1)
1003  )
1004  )
1005  (set_local $7
1006  (i64.or
1007  (get_local $8)
1008  (get_local $7)
1009  )
1010  )
1011  (br_if $label$10
1012  (i64.ne
1013  (tee_local $5
1014  (i64.add
1015  (get_local $5)
1016  (i64.const -5)
1017  )
1018  )
1019  (i64.const -6)
1020  )
1021  )
1022  )
1023  (block $label$16
1024  (br_if $label$16
1025  (i64.ne
1026  (get_local $3)
1027  (get_local $7)
1028  )
1029  )
1030  (call $requireAuth
1031  (get_local $1)
1032  )
1033  (set_local $6
1034  (i64.load
1035  (i32.add
1036  (get_local $0)
1037  (i32.const 8)
1038  )
1039  )
1040  )
1041  (i64.store offset=8
1042  (get_local $9)
1043  (i64.const 0)
1044  )
1045  (i64.store
1046  (get_local $9)
1047  (get_local $6)
1048  )
1049  (i64.store offset=16
1050  (get_local $9)
1051  (i64.const 0)
1052  )
1053  (i32.store offset=24
1054  (get_local $9)
1055  (i32.const 0)
1056  )
1057  (drop
1058  (call $load_i64
1059  (i64.const 3316479707209269248)
1060  (i64.const 3316479707209269248)
1061  (i64.const 632468476610478080)
1062  (get_local $9)
1063  (i32.const 28)
1064  )
1065  )
1066  (call $assert
1067  (i64.ge_u
1068  (i64.load offset=8
1069  (get_local $9)
1070  )
1071  (i64.load offset=16
1072  (get_local $0)
1073  )
1074  )
1075  (i32.const 112)
1076  )
1077  (i64.store offset=8
1078  (get_local $9)
1079  (tee_local $6
1080  (i64.sub
1081  (i64.load offset=8
1082  (get_local $9)
1083  )
1084  (i64.load offset=16
1085  (get_local $0)
1086  )
1087  )
1088  )
1089  )
1090  (br_if $label$7
1091  (i32.eqz
1092  (i32.or
1093  (i64.ne
1094  (i64.or
1095  (i64.load offset=16
1096  (get_local $9)
1097  )
1098  (get_local $6)
1099  )
1100  (i64.const 0)
1101  )
1102  (i32.load offset=24
1103  (get_local $9)
1104  )
1105  )
1106  )
1107  )
1108  (call $prints
1109  (i32.const 96)
1110  )
1111  (drop
1112  (call $store_i64
1113  (i64.const 3316479707209269248)
1114  (i64.const 632468476610478080)
1115  (get_local $9)
1116  (i32.const 28)
1117  )
1118  )
1119  (br $label$6)
1120  )
1121  (call $assert
1122  (i32.const 0)
1123  (i32.const 160)
1124  )
1125  (br $label$6)
1126  )
1127  (call $prints
1128  (i32.const 80)
1129  )
1130  (drop
1131  (call $remove_i64
1132  (i64.const 3316479707209269248)
1133  (i64.const 632468476610478080)
1134  (get_local $9)
1135  )
1136  )
1137  (br $label$6)
1138  )
1139  (call $prints
1140  (i32.const 80)
1141  )
1142  (drop
1143  (call $remove_i64
1144  (i64.const 3316479707209269248)
1145  (i64.const 632468476610478080)
1146  (get_local $9)
1147  )
1148  )
1149  )
1150  (i32.store offset=4
1151  (i32.const 0)
1152  (i32.add
1153  (get_local $9)
1154  (i32.const 32)
1155  )
1156  )
1157  )
1158  (func $_ZN8exchange5matchERNS_3BidERNS_7AccountERNS_3AskES3_ (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
1159  (local $4 i32)
1160  (local $5 i32)
1161  (local $6 i64)
1162  (local $7 i64)
1163  (local $8 i64)
1164  (local $9 i64)
1165  (local $10 i64)
1166  (local $11 i64)
1167  (local $12 i32)
1168  (i32.store offset=4
1169  (i32.const 0)
1170  (tee_local $12
1171  (i32.sub
1172  (i32.load offset=4
1173  (i32.const 0)
1174  )
1175  (i32.const 16)
1176  )
1177  )
1178  )
1179  (set_local $6
1180  (i64.load align=1
1181  (i32.add
1182  (get_local $2)
1183  (i32.const 24)
1184  )
1185  )
1186  )
1187  (set_local $11
1188  (i64.load align=1
1189  (i32.add
1190  (get_local $0)
1191  (i32.const 24)
1192  )
1193  )
1194  )
1195  (set_local $7
1196  (i64.load offset=16 align=1
1197  (get_local $2)
1198  )
1199  )
1200  (set_local $8
1201  (i64.load offset=32 align=1
1202  (get_local $2)
1203  )
1204  )
1205  (set_local $9
1206  (i64.load offset=16 align=1
1207  (get_local $0)
1208  )
1209  )
1210  (set_local $10
1211  (i64.load offset=32 align=1
1212  (get_local $0)
1213  )
1214  )
1215  (call $prints
1216  (i32.const 224)
1217  )
1218  (call $_ZN3eos5printIPKcJNS_5tokenIyLy3163215788274352128EEES2_NS_5priceIS4_NS3_IyLy2118137375447056384EEEEES2_EEEvT_DpT0_
1219  (i32.const 240)
1220  (get_local $10)
1221  (i32.const 256)
1222  (get_local $9)
1223  (get_local $11)
1224  (i32.const 272)
1225  )
1226  (call $prints
1227  (i32.const 288)
1228  )
1229  (call $_ZN3eos5printIPKcJNS_5tokenIyLy2118137375447056384EEES2_NS_5priceINS3_IyLy3163215788274352128EEES4_EES2_EEEvT_DpT0_
1230  (i32.const 240)
1231  (get_local $8)
1232  (i32.const 256)
1233  (get_local $7)
1234  (get_local $6)
1235  (i32.const 272)
1236  )
1237  (call $prints
1238  (i32.const 304)
1239  )
1240  (i64.store offset=8
1241  (get_local $12)
1242  (tee_local $11
1243  (call $_ZN3eosmlERKNS_5tokenIyLy2118137375447056384EEERKNS_5priceINS0_IyLy3163215788274352128EEES1_EE
1244  (tee_local $4
1245  (i32.add
1246  (get_local $2)
1247  (i32.const 32)
1248  )
1249  )
1250  (tee_local $5
1251  (i32.add
1252  (get_local $2)
1253  (i32.const 16)
1254  )
1255  )
1256  )
1257  )
1258  )
1259  (block $label$0
1260  (block $label$1
1261  (br_if $label$1
1262  (i64.ne
1263  (get_local $11)
1264  (tee_local $6
1265  (i64.load
1266  (select
1267  (i32.add
1268  (get_local $12)
1269  (i32.const 8)
1270  )
1271  (i32.add
1272  (get_local $0)
1273  (i32.const 32)
1274  )
1275  (i64.lt_u
1276  (get_local $11)
1277  (i64.load offset=32
1278  (get_local $0)
1279  )
1280  )
1281  )
1282  )
1283  )
1284  )
1285  )
1286  (set_local $11
1287  (i64.load
1288  (get_local $4)
1289  )
1290  )
1291  (br $label$0)
1292  )
1293  (set_local $11
1294  (call $_ZN3eosdvENS_5tokenIyLy3163215788274352128EEERKNS_5priceIS1_NS0_IyLy2118137375447056384EEEEE
1295  (get_local $6)
1296  (get_local $5)
1297  )
1298  )
1299  )
1300  (set_local $7
1301  (i64.load offset=8 align=1
1302  (get_local $2)
1303  )
1304  )
1305  (set_local $8
1306  (i64.load align=1
1307  (get_local $2)
1308  )
1309  )
1310  (set_local $9
1311  (i64.load offset=8 align=1
1312  (get_local $0)
1313  )
1314  )
1315  (set_local $10
1316  (i64.load align=1
1317  (get_local $0)
1318  )
1319  )
1320  (call $prints
1321  (i32.const 320)
1322  )
1323  (call $printn
1324  (get_local $10)
1325  )
1326  (call $prints
1327  (i32.const 336)
1328  )
1329  (call $printi
1330  (get_local $9)
1331  )
1332  (call $prints
1333  (i32.const 352)
1334  )
1335  (call $printn
1336  (get_local $8)
1337  )
1338  (call $prints
1339  (i32.const 336)
1340  )
1341  (call $printi
1342  (get_local $7)
1343  )
1344  (call $prints
1345  (i32.const 368)
1346  )
1347  (call $assert
1348  (i64.ge_u
1349  (i64.load
1350  (tee_local $0
1351  (i32.add
1352  (get_local $0)
1353  (i32.const 32)
1354  )
1355  )
1356  )
1357  (get_local $6)
1358  )
1359  (i32.const 112)
1360  )
1361  (i64.store
1362  (get_local $0)
1363  (i64.sub
1364  (i64.load
1365  (get_local $0)
1366  )
1367  (get_local $6)
1368  )
1369  )
1370  (call $assert
1371  (i64.ge_u
1372  (i64.add
1373  (i64.load offset=8
1374  (get_local $3)
1375  )
1376  (get_local $6)
1377  )
1378  (get_local $6)
1379  )
1380  (i32.const 32)
1381  )
1382  (i64.store offset=8
1383  (get_local $3)
1384  (i64.add
1385  (i64.load offset=8
1386  (get_local $3)
1387  )
1388  (get_local $6)
1389  )
1390  )
1391  (call $assert
1392  (i64.ge_u
1393  (i64.load
1394  (tee_local $0
1395  (i32.add
1396  (get_local $2)
1397  (i32.const 32)
1398  )
1399  )
1400  )
1401  (get_local $11)
1402  )
1403  (i32.const 112)
1404  )
1405  (i64.store
1406  (get_local $0)
1407  (i64.sub
1408  (i64.load
1409  (get_local $0)
1410  )
1411  (get_local $11)
1412  )
1413  )
1414  (call $assert
1415  (i64.ge_u
1416  (i64.add
1417  (i64.load offset=16
1418  (get_local $1)
1419  )
1420  (get_local $11)
1421  )
1422  (get_local $11)
1423  )
1424  (i32.const 32)
1425  )
1426  (i64.store offset=16
1427  (get_local $1)
1428  (i64.add
1429  (i64.load offset=16
1430  (get_local $1)
1431  )
1432  (get_local $11)
1433  )
1434  )
1435  (i32.store offset=4
1436  (i32.const 0)
1437  (i32.add
1438  (get_local $12)
1439  (i32.const 16)
1440  )
1441  )
1442  )
1443  (func $_ZN3eos5printIPKcJNS_5tokenIyLy3163215788274352128EEES2_NS_5priceIS4_NS3_IyLy2118137375447056384EEEEES2_EEEvT_DpT0_ (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i64) (param $5 i32)
1444  (local $6 i32)
1445  (i32.store offset=4
1446  (i32.const 0)
1447  (tee_local $6
1448  (i32.sub
1449  (i32.load offset=4
1450  (i32.const 0)
1451  )
1452  (i32.const 16)
1453  )
1454  )
1455  )
1456  (call $prints
1457  (get_local $0)
1458  )
1459  (call $printi
1460  (get_local $1)
1461  )
1462  (call $prints
1463  (i32.const 496)
1464  )
1465  (call $printn
1466  (i64.const 3163215788274352128)
1467  )
1468  (call $prints
1469  (get_local $2)
1470  )
1471  (i64.store offset=8
1472  (get_local $6)
1473  (get_local $4)
1474  )
1475  (i64.store
1476  (get_local $6)
1477  (get_local $3)
1478  )
1479  (call $printi128
1480  (get_local $6)
1481  )
1482  (call $prints
1483  (i32.const 544)
1484  )
1485  (call $prints
1486  (i32.const 496)
1487  )
1488  (call $printn
1489  (i64.const 3163215788274352128)
1490  )
1491  (call $prints
1492  (i32.const 560)
1493  )
1494  (call $printn
1495  (i64.const 2118137375447056384)
1496  )
1497  (call $prints
1498  (get_local $5)
1499  )
1500  (i32.store offset=4
1501  (i32.const 0)
1502  (i32.add
1503  (get_local $6)
1504  (i32.const 16)
1505  )
1506  )
1507  )
1508  (func $_ZN3eos5printIPKcJNS_5tokenIyLy2118137375447056384EEES2_NS_5priceINS3_IyLy3163215788274352128EEES4_EES2_EEEvT_DpT0_ (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i64) (param $5 i32)
1509  (local $6 i32)
1510  (i32.store offset=4
1511  (i32.const 0)
1512  (tee_local $6
1513  (i32.sub
1514  (i32.load offset=4
1515  (i32.const 0)
1516  )
1517  (i32.const 16)
1518  )
1519  )
1520  )
1521  (call $prints
1522  (get_local $0)
1523  )
1524  (call $printi
1525  (get_local $1)
1526  )
1527  (call $prints
1528  (i32.const 496)
1529  )
1530  (call $printn
1531  (i64.const 2118137375447056384)
1532  )
1533  (call $prints
1534  (get_local $2)
1535  )
1536  (i64.store offset=8
1537  (get_local $6)
1538  (get_local $4)
1539  )
1540  (i64.store
1541  (get_local $6)
1542  (get_local $3)
1543  )
1544  (call $printi128
1545  (get_local $6)
1546  )
1547  (call $prints
1548  (i32.const 544)
1549  )
1550  (call $prints
1551  (i32.const 496)
1552  )
1553  (call $printn
1554  (i64.const 3163215788274352128)
1555  )
1556  (call $prints
1557  (i32.const 560)
1558  )
1559  (call $printn
1560  (i64.const 2118137375447056384)
1561  )
1562  (call $prints
1563  (get_local $5)
1564  )
1565  (i32.store offset=4
1566  (i32.const 0)
1567  (i32.add
1568  (get_local $6)
1569  (i32.const 16)
1570  )
1571  )
1572  )
1573  (func $_ZN3eosmlERKNS_5tokenIyLy2118137375447056384EEERKNS_5priceINS0_IyLy3163215788274352128EEES1_EE (param $0 i32) (param $1 i32) (result i64)
1574  (local $2 i64)
1575  (local $3 i64)
1576  (local $4 i64)
1577  (local $5 i32)
1578  (i32.store offset=4
1579  (i32.const 0)
1580  (tee_local $5
1581  (i32.sub
1582  (i32.load offset=4
1583  (i32.const 0)
1584  )
1585  (i32.const 32)
1586  )
1587  )
1588  )
1589  (set_local $2
1590  (i64.load
1591  (get_local $0)
1592  )
1593  )
1594  (call $prints
1595  (i32.const 480)
1596  )
1597  (call $printi
1598  (get_local $2)
1599  )
1600  (call $prints
1601  (i32.const 496)
1602  )
1603  (call $printn
1604  (i64.const 2118137375447056384)
1605  )
1606  (call $prints
1607  (i32.const 512)
1608  )
1609  (set_local $2
1610  (i64.load
1611  (i32.add
1612  (get_local $1)
1613  (i32.const 8)
1614  )
1615  )
1616  )
1617  (set_local $3
1618  (i64.load
1619  (get_local $1)
1620  )
1621  )
1622  (set_local $4
1623  (i64.load
1624  (get_local $0)
1625  )
1626  )
1627  (call $prints
1628  (i32.const 528)
1629  )
1630  (i64.store offset=24
1631  (get_local $5)
1632  (i64.const 0)
1633  )
1634  (i64.store offset=16
1635  (get_local $5)
1636  (get_local $4)
1637  )
1638  (call $printi128
1639  (i32.add
1640  (get_local $5)
1641  (i32.const 16)
1642  )
1643  )
1644  (call $prints
1645  (i32.const 400)
1646  )
1647  (i64.store offset=24
1648  (get_local $5)
1649  (get_local $2)
1650  )
1651  (i64.store offset=16
1652  (get_local $5)
1653  (get_local $3)
1654  )
1655  (call $printi128
1656  (i32.add
1657  (get_local $5)
1658  (i32.const 16)
1659  )
1660  )
1661  (call $prints
1662  (i32.const 416)
1663  )
1664  (call $printi
1665  (i64.const 1000000000000000)
1666  )
1667  (call $prints
1668  (i32.const 304)
1669  )
1670  (set_local $2
1671  (i64.load
1672  (get_local $0)
1673  )
1674  )
1675  (i64.store offset=24
1676  (get_local $5)
1677  (i64.const 0)
1678  )
1679  (i64.store offset=16
1680  (get_local $5)
1681  (get_local $2)
1682  )
1683  (call $multeq_i128
1684  (i32.add
1685  (get_local $5)
1686  (i32.const 16)
1687  )
1688  (get_local $1)
1689  )
1690  (set_local $2
1691  (i64.load offset=16
1692  (get_local $5)
1693  )
1694  )
1695  (set_local $3
1696  (i64.load offset=24
1697  (get_local $5)
1698  )
1699  )
1700  (i64.store offset=8
1701  (get_local $5)
1702  (i64.const 0)
1703  )
1704  (i64.store
1705  (get_local $5)
1706  (i64.const 1000000000000000)
1707  )
1708  (i64.store offset=24
1709  (get_local $5)
1710  (get_local $3)
1711  )
1712  (i64.store offset=16
1713  (get_local $5)
1714  (get_local $2)
1715  )
1716  (call $diveq_i128
1717  (i32.add
1718  (get_local $5)
1719  (i32.const 16)
1720  )
1721  (get_local $5)
1722  )
1723  (set_local $2
1724  (i64.load offset=16
1725  (get_local $5)
1726  )
1727  )
1728  (call $assert
1729  (i64.eqz
1730  (i64.load offset=24
1731  (get_local $5)
1732  )
1733  )
1734  (i32.const 432)
1735  )
1736  (i32.store offset=4
1737  (i32.const 0)
1738  (i32.add
1739  (get_local $5)
1740  (i32.const 32)
1741  )
1742  )
1743  (get_local $2)
1744  )
1745  (func $_ZN3eosdvENS_5tokenIyLy3163215788274352128EEERKNS_5priceIS1_NS0_IyLy2118137375447056384EEEEE (param $0 i64) (param $1 i32) (result i64)
1746  (local $2 i64)
1747  (local $3 i64)
1748  (local $4 i32)
1749  (i32.store offset=4
1750  (i32.const 0)
1751  (tee_local $4
1752  (i32.sub
1753  (i32.load offset=4
1754  (i32.const 0)
1755  )
1756  (i32.const 32)
1757  )
1758  )
1759  )
1760  (set_local $2
1761  (i64.load
1762  (i32.add
1763  (get_local $1)
1764  (i32.const 8)
1765  )
1766  )
1767  )
1768  (set_local $3
1769  (i64.load
1770  (get_local $1)
1771  )
1772  )
1773  (call $prints
1774  (i32.const 384)
1775  )
1776  (i64.store offset=24
1777  (get_local $4)
1778  (i64.const 0)
1779  )
1780  (i64.store offset=16
1781  (get_local $4)
1782  (get_local $0)
1783  )
1784  (call $printi128
1785  (i32.add
1786  (get_local $4)
1787  (i32.const 16)
1788  )
1789  )
1790  (call $prints
1791  (i32.const 400)
1792  )
1793  (i64.store offset=24
1794  (get_local $4)
1795  (i64.const 0)
1796  )
1797  (i64.store offset=16
1798  (get_local $4)
1799  (i64.const 1000000000000000)
1800  )
1801  (call $printi128
1802  (i32.add
1803  (get_local $4)
1804  (i32.const 16)
1805  )
1806  )
1807  (call $prints
1808  (i32.const 416)
1809  )
1810  (i64.store offset=24
1811  (get_local $4)
1812  (get_local $2)
1813  )
1814  (i64.store offset=16
1815  (get_local $4)
1816  (get_local $3)
1817  )
1818  (call $printi128
1819  (i32.add
1820  (get_local $4)
1821  (i32.const 16)
1822  )
1823  )
1824  (call $prints
1825  (i32.const 304)
1826  )
1827  (i64.store offset=8
1828  (get_local $4)
1829  (i64.const 0)
1830  )
1831  (i64.store
1832  (get_local $4)
1833  (i64.const 1000000000000000)
1834  )
1835  (i64.store offset=24
1836  (get_local $4)
1837  (i64.const 0)
1838  )
1839  (i64.store offset=16
1840  (get_local $4)
1841  (get_local $0)
1842  )
1843  (call $multeq_i128
1844  (i32.add
1845  (get_local $4)
1846  (i32.const 16)
1847  )
1848  (get_local $4)
1849  )
1850  (set_local $0
1851  (i64.load offset=16
1852  (get_local $4)
1853  )
1854  )
1855  (i64.store offset=24
1856  (get_local $4)
1857  (i64.load offset=24
1858  (get_local $4)
1859  )
1860  )
1861  (i64.store offset=16
1862  (get_local $4)
1863  (get_local $0)
1864  )
1865  (call $diveq_i128
1866  (i32.add
1867  (get_local $4)
1868  (i32.const 16)
1869  )
1870  (get_local $1)
1871  )
1872  (set_local $0
1873  (i64.load offset=16
1874  (get_local $4)
1875  )
1876  )
1877  (call $assert
1878  (i64.eqz
1879  (i64.load offset=24
1880  (get_local $4)
1881  )
1882  )
1883  (i32.const 432)
1884  )
1885  (i32.store offset=4
1886  (i32.const 0)
1887  (i32.add
1888  (get_local $4)
1889  (i32.const 32)
1890  )
1891  )
1892  (get_local $0)
1893  )
1894  (func $_ZN8exchange18apply_exchange_buyENS_8BuyOrderE (param $0 i32)
1895  (local $1 i64)
1896  (local $2 i64)
1897  (local $3 i32)
1898  (local $4 i32)
1899  (local $5 i32)
1900  (local $6 i32)
1901  (local $7 i32)
1902  (local $8 i32)
1903  (local $9 i32)
1904  (local $10 i32)
1905  (local $11 i32)
1906  (local $12 i32)
1907  (local $13 i64)
1908  (local $14 i64)
1909  (local $15 i32)
1910  (i32.store offset=4
1911  (i32.const 0)
1912  (tee_local $15
1913  (i32.sub
1914  (i32.load offset=4
1915  (i32.const 0)
1916  )
1917  (i32.const 192)
1918  )
1919  )
1920  )
1921  (call $requireAuth
1922  (tee_local $13
1923  (i64.load align=1
1924  (get_local $0)
1925  )
1926  )
1927  )
1928  (call $assert
1929  (i64.ne
1930  (tee_local $14
1931  (i64.load offset=32
1932  (get_local $0)
1933  )
1934  )
1935  (i64.const 0)
1936  )
1937  (i32.const 576)
1938  )
1939  (call $assert
1940  (i32.gt_u
1941  (i32.load offset=40 align=1
1942  (get_local $0)
1943  )
1944  (call $now)
1945  )
1946  (i32.const 608)
1947  )
1948  (set_local $1
1949  (i64.load align=1
1950  (tee_local $7
1951  (i32.add
1952  (get_local $0)
1953  (i32.const 24)
1954  )
1955  )
1956  )
1957  )
1958  (set_local $2
1959  (i64.load offset=16 align=1
1960  (get_local $0)
1961  )
1962  )
1963  (call $printn
1964  (get_local $13)
1965  )
1966  (call $_ZN3eos5printIPKcJNS_5tokenIyLy3163215788274352128EEES2_NS_5priceIS4_NS3_IyLy2118137375447056384EEEEES2_EEEvT_DpT0_
1967  (i32.const 624)
1968  (get_local $14)
1969  (i32.const 656)
1970  (get_local $2)
1971  (get_local $1)
1972  (i32.const 304)
1973  )
1974  (i64.store
1975  (i32.add
1976  (i32.add
1977  (get_local $15)
1978  (i32.const 144)
1979  )
1980  (i32.const 24)
1981  )
1982  (i64.const 0)
1983  )
1984  (i32.store
1985  (i32.add
1986  (i32.add
1987  (get_local $15)
1988  (i32.const 144)
1989  )
1990  (i32.const 12)
1991  )
1992  (i32.load
1993  (i32.add
1994  (get_local $0)
1995  (i32.const 12)
1996  )
1997  )
1998  )
1999  (i32.store
2000  (i32.add
2001  (i32.add
2002  (get_local $15)
2003  (i32.const 144)
2004  )
2005  (i32.const 8)
2006  )
2007  (i32.load
2008  (i32.add
2009  (get_local $0)
2010  (i32.const 8)
2011  )
2012  )
2013  )
2014  (i64.store offset=160
2015  (get_local $15)
2016  (i64.const 1)
2017  )
2018  (i64.store offset=176
2019  (get_local $15)
2020  (i64.const 0)
2021  )
2022  (i32.store offset=148
2023  (get_local $15)
2024  (i32.load
2025  (i32.add
2026  (get_local $0)
2027  (i32.const 4)
2028  )
2029  )
2030  )
2031  (i32.store offset=144
2032  (get_local $15)
2033  (i32.load
2034  (get_local $0)
2035  )
2036  )
2037  (call $assert
2038  (i32.ne
2039  (call $load_primary_i128i128
2040  (i64.const 3316479707209269248)
2041  (i64.const 3316479707209269248)
2042  (i64.const 1317637142540713984)
2043  (i32.add
2044  (get_local $15)
2045  (i32.const 144)
2046  )
2047  (i32.const 44)
2048  )
2049  (i32.const 44)
2050  )
2051  (i32.const 688)
2052  )
2053  (call $prints
2054  (i32.const 736)
2055  )
2056  (call $printi
2057  (i64.const 141)
2058  )
2059  (call $prints
2060  (i32.const 304)
2061  )
2062  (i64.store offset=120
2063  (get_local $15)
2064  (i64.const 0)
2065  )
2066  (i64.store offset=112
2067  (get_local $15)
2068  (get_local $13)
2069  )
2070  (i64.store offset=128
2071  (get_local $15)
2072  (i64.const 0)
2073  )
2074  (i32.store offset=136
2075  (get_local $15)
2076  (i32.const 0)
2077  )
2078  (drop
2079  (call $load_i64
2080  (i64.const 3316479707209269248)
2081  (i64.const 3316479707209269248)
2082  (i64.const 632468476610478080)
2083  (i32.add
2084  (get_local $15)
2085  (i32.const 112)
2086  )
2087  (i32.const 28)
2088  )
2089  )
2090  (call $assert
2091  (i64.ge_u
2092  (i64.load offset=120
2093  (get_local $15)
2094  )
2095  (get_local $14)
2096  )
2097  (i32.const 112)
2098  )
2099  (i64.store offset=120
2100  (get_local $15)
2101  (i64.sub
2102  (i64.load offset=120
2103  (get_local $15)
2104  )
2105  (get_local $14)
2106  )
2107  )
2108  (i64.store
2109  (tee_local $9
2110  (i32.add
2111  (i32.add
2112  (get_local $15)
2113  (i32.const 64)
2114  )
2115  (i32.const 24)
2116  )
2117  )
2118  (i64.const 0)
2119  )
2120  (i64.store offset=80
2121  (get_local $15)
2122  (i64.const 1)
2123  )
2124  (i64.store offset=72
2125  (get_local $15)
2126  (i64.const 0)
2127  )
2128  (i64.store offset=64
2129  (get_local $15)
2130  (i64.const 0)
2131  )
2132  (i64.store offset=96
2133  (get_local $15)
2134  (i64.const 0)
2135  )
2136  (block $label$0
2137  (block $label$1
2138  (block $label$2
2139  (block $label$3
2140  (block $label$4
2141  (block $label$5
2142  (br_if $label$5
2143  (i32.ne
2144  (call $front_secondary_i128i128
2145  (i64.const 3316479707209269248)
2146  (i64.const 3316479707209269248)
2147  (i64.const 925261025006059520)
2148  (i32.add
2149  (get_local $15)
2150  (i32.const 64)
2151  )
2152  (i32.const 44)
2153  )
2154  (i32.const 44)
2155  )
2156  )
2157  (set_local $14
2158  (i64.load
2159  (get_local $9)
2160  )
2161  )
2162  (set_local $13
2163  (i64.load
2164  (tee_local $3
2165  (i32.add
2166  (i32.add
2167  (get_local $15)
2168  (i32.const 64)
2169  )
2170  (i32.const 16)
2171  )
2172  )
2173  )
2174  )
2175  (set_local $1
2176  (i64.load
2177  (tee_local $4
2178  (i32.add
2179  (i32.add
2180  (get_local $15)
2181  (i32.const 64)
2182  )
2183  (i32.const 32)
2184  )
2185  )
2186  )
2187  )
2188  (call $prints
2189  (i32.const 928)
2190  )
2191  (call $_ZN3eos5printIPKcJNS_5tokenIyLy2118137375447056384EEES2_NS_5priceINS3_IyLy3163215788274352128EEES4_EES2_EEEvT_DpT0_
2192  (i32.const 240)
2193  (get_local $1)
2194  (i32.const 256)
2195  (get_local $13)
2196  (get_local $14)
2197  (i32.const 272)
2198  )
2199  (call $prints
2200  (i32.const 304)
2201  )
2202  (set_local $14
2203  (i64.load align=1
2204  (get_local $7)
2205  )
2206  )
2207  (set_local $13
2208  (i64.load align=1
2209  (tee_local $5
2210  (i32.add
2211  (get_local $0)
2212  (i32.const 16)
2213  )
2214  )
2215  )
2216  )
2217  (set_local $1
2218  (i64.load align=1
2219  (tee_local $6
2220  (i32.add
2221  (get_local $0)
2222  (i32.const 32)
2223  )
2224  )
2225  )
2226  )
2227  (call $prints
2228  (i32.const 944)
2229  )
2230  (call $_ZN3eos5printIPKcJNS_5tokenIyLy3163215788274352128EEES2_NS_5priceIS4_NS3_IyLy2118137375447056384EEEEES2_EEEvT_DpT0_
2231  (i32.const 240)
2232  (get_local $1)
2233  (i32.const 256)
2234  (get_local $13)
2235  (get_local $14)
2236  (i32.const 272)
2237  )
2238  (call $prints
2239  (i32.const 304)
2240  )
2241  (i64.store offset=40
2242  (get_local $15)
2243  (i64.const 0)
2244  )
2245  (i64.store offset=48
2246  (get_local $15)
2247  (i64.const 0)
2248  )
2249  (i32.store offset=56
2250  (get_local $15)
2251  (i32.const 0)
2252  )
2253  (i64.store offset=32
2254  (get_local $15)
2255  (i64.load offset=64
2256  (get_local $15)
2257  )
2258  )
2259  (drop
2260  (call $load_i64
2261  (i64.const 3316479707209269248)
2262  (i64.const 3316479707209269248)
2263  (i64.const 632468476610478080)
2264  (i32.add
2265  (get_local $15)
2266  (i32.const 32)
2267  )
2268  (i32.const 28)
2269  )
2270  )
2271  (block $label$6
2272  (br_if $label$6
2273  (select
2274  (i64.gt_u
2275  (i64.load
2276  (get_local $3)
2277  )
2278  (i64.load
2279  (get_local $5)
2280  )
2281  )
2282  (i64.gt_u
2283  (tee_local $14
2284  (i64.load
2285  (get_local $9)
2286  )
2287  )
2288  (tee_local $13
2289  (i64.load
2290  (get_local $7)
2291  )
2292  )
2293  )
2294  (i64.eq
2295  (get_local $14)
2296  (get_local $13)
2297  )
2298  )
2299  )
2300  (set_local $7
2301  (i32.add
2302  (i32.add
2303  (get_local $15)
2304  (i32.const 32)
2305  )
2306  (i32.const 24)
2307  )
2308  )
2309  (set_local $9
2310  (i32.add
2311  (i32.add
2312  (get_local $15)
2313  (i32.const 32)
2314  )
2315  (i32.const 8)
2316  )
2317  )
2318  (set_local $10
2319  (i32.add
2320  (i32.add
2321  (get_local $15)
2322  (i32.const 32)
2323  )
2324  (i32.const 16)
2325  )
2326  )
2327  (loop $label$7
2328  (call $prints
2329  (i32.const 960)
2330  )
2331  (call $_ZN8exchange5matchERNS_3BidERNS_7AccountERNS_3AskES3_
2332  (get_local $0)
2333  (i32.add
2334  (get_local $15)
2335  (i32.const 112)
2336  )
2337  (i32.add
2338  (get_local $15)
2339  (i32.const 64)
2340  )
2341  (i32.add
2342  (get_local $15)
2343  (i32.const 32)
2344  )
2345  )
2346  (br_if $label$6
2347  (i64.ne
2348  (i64.load
2349  (get_local $4)
2350  )
2351  (i64.const 0)
2352  )
2353  )
2354  (i32.store
2355  (get_local $7)
2356  (tee_local $8
2357  (i32.add
2358  (i32.load
2359  (get_local $7)
2360  )
2361  (i32.const -1)
2362  )
2363  )
2364  )
2365  (block $label$8
2366  (block $label$9
2367  (br_if $label$9
2368  (i32.eqz
2369  (i32.or
2370  (i64.ne
2371  (i64.or
2372  (i64.load
2373  (get_local $10)
2374  )
2375  (i64.load
2376  (get_local $9)
2377  )
2378  )
2379  (i64.const 0)
2380  )
2381  (get_local $8)
2382  )
2383  )
2384  )
2385  (call $prints
2386  (i32.const 96)
2387  )
2388  (drop
2389  (call $store_i64
2390  (i64.const 3316479707209269248)
2391  (i64.const 632468476610478080)
2392  (i32.add
2393  (get_local $15)
2394  (i32.const 32)
2395  )
2396  (i32.const 28)
2397  )
2398  )
2399  (br $label$8)
2400  )
2401  (call $prints
2402  (i32.const 80)
2403  )
2404  (drop
2405  (call $remove_i64
2406  (i64.const 3316479707209269248)
2407  (i64.const 632468476610478080)
2408  (i32.add
2409  (get_local $15)
2410  (i32.const 32)
2411  )
2412  )
2413  )
2414  )
2415  (block $label$10
2416  (block $label$11
2417  (br_if $label$11
2418  (i32.eqz
2419  (i32.or
2420  (i64.ne
2421  (i64.or
2422  (i64.load
2423  (i32.add
2424  (i32.add
2425  (get_local $15)
2426  (i32.const 112)
2427  )
2428  (i32.const 16)
2429  )
2430  )
2431  (i64.load
2432  (i32.add
2433  (i32.add
2434  (get_local $15)
2435  (i32.const 112)
2436  )
2437  (i32.const 8)
2438  )
2439  )
2440  )
2441  (i64.const 0)
2442  )
2443  (i32.load
2444  (i32.add
2445  (i32.add
2446  (get_local $15)
2447  (i32.const 112)
2448  )
2449  (i32.const 24)
2450  )
2451  )
2452  )
2453  )
2454  )
2455  (call $prints
2456  (i32.const 96)
2457  )
2458  (drop
2459  (call $store_i64
2460  (i64.const 3316479707209269248)
2461  (i64.const 632468476610478080)
2462  (i32.add
2463  (get_local $15)
2464  (i32.const 112)
2465  )
2466  (i32.const 28)
2467  )
2468  )
2469  (br $label$10)
2470  )
2471  (call $prints
2472  (i32.const 80)
2473  )
2474  (drop
2475  (call $remove_i64
2476  (i64.const 3316479707209269248)
2477  (i64.const 632468476610478080)
2478  (i32.add
2479  (get_local $15)
2480  (i32.const 112)
2481  )
2482  )
2483  )
2484  )
2485  (drop
2486  (call $remove_i128i128
2487  (i64.const 3316479707209269248)
2488  (i64.const 925261025006059520)
2489  (i32.add
2490  (get_local $15)
2491  (i32.const 64)
2492  )
2493  )
2494  )
2495  (br_if $label$6
2496  (i32.ne
2497  (call $front_secondary_i128i128
2498  (i64.const 3316479707209269248)
2499  (i64.const 3316479707209269248)
2500  (i64.const 925261025006059520)
2501  (i32.add
2502  (get_local $15)
2503  (i32.const 64)
2504  )
2505  (i32.const 44)
2506  )
2507  (i32.const 44)
2508  )
2509  )
2510  (i64.store
2511  (tee_local $8
2512  (i32.add
2513  (get_local $15)
2514  (i32.const 8)
2515  )
2516  )
2517  (i64.const 0)
2518  )
2519  (i64.store
2520  (tee_local $11
2521  (i32.add
2522  (get_local $15)
2523  (i32.const 16)
2524  )
2525  )
2526  (i64.const 0)
2527  )
2528  (i32.store
2529  (tee_local $12
2530  (i32.add
2531  (get_local $15)
2532  (i32.const 24)
2533  )
2534  )
2535  (i32.const 0)
2536  )
2537  (i64.store
2538  (get_local $15)
2539  (i64.load offset=64
2540  (get_local $15)
2541  )
2542  )
2543  (drop
2544  (call $load_i64
2545  (i64.const 3316479707209269248)
2546  (i64.const 3316479707209269248)
2547  (i64.const 632468476610478080)
2548  (get_local $15)
2549  (i32.const 28)
2550  )
2551  )
2552  (i32.store
2553  (get_local $7)
2554  (i32.load
2555  (get_local $12)
2556  )
2557  )
2558  (i64.store
2559  (get_local $10)
2560  (i64.load
2561  (get_local $11)
2562  )
2563  )
2564  (i64.store
2565  (get_local $9)
2566  (i64.load
2567  (get_local $8)
2568  )
2569  )
2570  (i64.store offset=32
2571  (get_local $15)
2572  (i64.load
2573  (get_local $15)
2574  )
2575  )
2576  (br_if $label$7
2577  (select
2578  (i64.le_u
2579  (i64.load
2580  (get_local $3)
2581  )
2582  (i64.load
2583  (get_local $5)
2584  )
2585  )
2586  (i64.le_u
2587  (tee_local $14
2588  (i64.load
2589  (i32.add
2590  (i32.add
2591  (get_local $15)
2592  (i32.const 64)
2593  )
2594  (i32.const 24)
2595  )
2596  )
2597  )
2598  (tee_local $13
2599  (i64.load
2600  (i32.add
2601  (get_local $0)
2602  (i32.const 24)
2603  )
2604  )
2605  )
2606  )
2607  (i64.eq
2608  (get_local $14)
2609  (get_local $13)
2610  )
2611  )
2612  )
2613  )
2614  )
2615  (call $prints
2616  (i32.const 992)
2617  )
2618  (block $label$12
2619  (br_if $label$12
2620  (i64.eqz
2621  (i64.load
2622  (get_local $6)
2623  )
2624  )
2625  )
2626  (br_if $label$12
2627  (i32.load8_u offset=44
2628  (get_local $0)
2629  )
2630  )
2631  (i32.store
2632  (tee_local $7
2633  (i32.add
2634  (get_local $15)
2635  (i32.const 136)
2636  )
2637  )
2638  (i32.add
2639  (i32.load
2640  (get_local $7)
2641  )
2642  (i32.const 1)
2643  )
2644  )
2645  )
2646  (br_if $label$4
2647  (i32.eqz
2648  (i32.or
2649  (i64.ne
2650  (i64.or
2651  (i64.load
2652  (i32.add
2653  (get_local $15)
2654  (i32.const 128)
2655  )
2656  )
2657  (i64.load
2658  (i32.add
2659  (get_local $15)
2660  (i32.const 120)
2661  )
2662  )
2663  )
2664  (i64.const 0)
2665  )
2666  (i32.load
2667  (i32.add
2668  (get_local $15)
2669  (i32.const 136)
2670  )
2671  )
2672  )
2673  )
2674  )
2675  (call $prints
2676  (i32.const 96)
2677  )
2678  (drop
2679  (call $store_i64
2680  (i64.const 3316479707209269248)
2681  (i64.const 632468476610478080)
2682  (i32.add
2683  (get_local $15)
2684  (i32.const 112)
2685  )
2686  (i32.const 28)
2687  )
2688  )
2689  (br $label$3)
2690  )
2691  (call $prints
2692  (i32.const 800)
2693  )
2694  (call $assert
2695  (i32.eqz
2696  (i32.load8_u offset=44
2697  (get_local $0)
2698  )
2699  )
2700  (i32.const 864)
2701  )
2702  (call $assert
2703  (call $store_i128i128
2704  (i64.const 3316479707209269248)
2705  (i64.const 1317637142540713984)
2706  (get_local $0)
2707  (i32.const 44)
2708  )
2709  (i32.const 896)
2710  )
2711  (i32.store
2712  (tee_local $0
2713  (i32.add
2714  (i32.add
2715  (get_local $15)
2716  (i32.const 112)
2717  )
2718  (i32.const 24)
2719  )
2720  )
2721  (tee_local $0
2722  (i32.add
2723  (i32.load
2724  (get_local $0)
2725  )
2726  (i32.const 1)
2727  )
2728  )
2729  )
2730  (br_if $label$2
2731  (i32.eqz
2732  (i32.or
2733  (i64.ne
2734  (i64.or
2735  (i64.load
2736  (i32.add
2737  (get_local $15)
2738  (i32.const 128)
2739  )
2740  )
2741  (i64.load
2742  (i32.add
2743  (i32.add
2744  (get_local $15)
2745  (i32.const 112)
2746  )
2747  (i32.const 8)
2748  )
2749  )
2750  )
2751  (i64.const 0)
2752  )
2753  (get_local $0)
2754  )
2755  )
2756  )
2757  (call $prints
2758  (i32.const 96)
2759  )
2760  (drop
2761  (call $store_i64
2762  (i64.const 3316479707209269248)
2763  (i64.const 632468476610478080)
2764  (i32.add
2765  (get_local $15)
2766  (i32.const 112)
2767  )
2768  (i32.const 28)
2769  )
2770  )
2771  (br $label$0)
2772  )
2773  (call $prints
2774  (i32.const 80)
2775  )
2776  (drop
2777  (call $remove_i64
2778  (i64.const 3316479707209269248)
2779  (i64.const 632468476610478080)
2780  (i32.add
2781  (get_local $15)
2782  (i32.const 112)
2783  )
2784  )
2785  )
2786  )
2787  (call $prints
2788  (i32.const 1056)
2789  )
2790  (br_if $label$1
2791  (i64.eqz
2792  (tee_local $14
2793  (i64.load
2794  (i32.add
2795  (get_local $0)
2796  (i32.const 32)
2797  )
2798  )
2799  )
2800  )
2801  )
2802  (call $printi
2803  (get_local $14)
2804  )
2805  (call $prints
2806  (i32.const 496)
2807  )
2808  (call $printn
2809  (i64.const 3163215788274352128)
2810  )
2811  (call $prints
2812  (i32.const 1088)
2813  )
2814  (call $assert
2815  (i32.eqz
2816  (i32.load8_u offset=44
2817  (get_local $0)
2818  )
2819  )
2820  (i32.const 864)
2821  )
2822  (call $assert
2823  (call $store_i128i128
2824  (i64.const 3316479707209269248)
2825  (i64.const 1317637142540713984)
2826  (get_local $0)
2827  (i32.const 44)
2828  )
2829  (i32.const 896)
2830  )
2831  (br $label$0)
2832  )
2833  (call $prints
2834  (i32.const 80)
2835  )
2836  (drop
2837  (call $remove_i64
2838  (i64.const 3316479707209269248)
2839  (i64.const 632468476610478080)
2840  (i32.add
2841  (get_local $15)
2842  (i32.const 112)
2843  )
2844  )
2845  )
2846  (br $label$0)
2847  )
2848  (call $prints
2849  (i32.const 1104)
2850  )
2851  )
2852  (i32.store offset=4
2853  (i32.const 0)
2854  (i32.add
2855  (get_local $15)
2856  (i32.const 192)
2857  )
2858  )
2859  )
2860  (func $_ZN8exchange19apply_exchange_sellENS_9SellOrderE (param $0 i32)
2861  (local $1 i64)
2862  (local $2 i64)
2863  (local $3 i32)
2864  (local $4 i32)
2865  (local $5 i32)
2866  (local $6 i32)
2867  (local $7 i32)
2868  (local $8 i32)
2869  (local $9 i32)
2870  (local $10 i32)
2871  (local $11 i32)
2872  (local $12 i32)
2873  (local $13 i32)
2874  (local $14 i64)
2875  (local $15 i64)
2876  (local $16 i32)
2877  (i32.store offset=4
2878  (i32.const 0)
2879  (tee_local $16
2880  (i32.sub
2881  (i32.load offset=4
2882  (i32.const 0)
2883  )
2884  (i32.const 192)
2885  )
2886  )
2887  )
2888  (call $requireAuth
2889  (tee_local $14
2890  (i64.load align=1
2891  (get_local $0)
2892  )
2893  )
2894  )
2895  (call $assert
2896  (i64.ne
2897  (tee_local $15
2898  (i64.load offset=32
2899  (get_local $0)
2900  )
2901  )
2902  (i64.const 0)
2903  )
2904  (i32.const 576)
2905  )
2906  (call $assert
2907  (i32.gt_u
2908  (i32.load offset=40 align=1
2909  (get_local $0)
2910  )
2911  (call $now)
2912  )
2913  (i32.const 608)
2914  )
2915  (set_local $1
2916  (i64.load align=1
2917  (tee_local $6
2918  (i32.add
2919  (get_local $0)
2920  (i32.const 24)
2921  )
2922  )
2923  )
2924  )
2925  (set_local $2
2926  (i64.load offset=16 align=1
2927  (get_local $0)
2928  )
2929  )
2930  (call $prints
2931  (i32.const 368)
2932  )
2933  (call $printn
2934  (get_local $14)
2935  )
2936  (call $_ZN3eos5printIPKcJNS_5tokenIyLy2118137375447056384EEES2_NS_5priceINS3_IyLy3163215788274352128EEES4_EES2_EEEvT_DpT0_
2937  (i32.const 1120)
2938  (get_local $15)
2939  (i32.const 656)
2940  (get_local $2)
2941  (get_local $1)
2942  (i32.const 304)
2943  )
2944  (i64.store
2945  (i32.add
2946  (i32.add
2947  (get_local $16)
2948  (i32.const 144)
2949  )
2950  (i32.const 24)
2951  )
2952  (i64.const 0)
2953  )
2954  (i32.store
2955  (i32.add
2956  (i32.add
2957  (get_local $16)
2958  (i32.const 144)
2959  )
2960  (i32.const 12)
2961  )
2962  (i32.load
2963  (i32.add
2964  (get_local $0)
2965  (i32.const 12)
2966  )
2967  )
2968  )
2969  (i32.store
2970  (i32.add
2971  (i32.add
2972  (get_local $16)
2973  (i32.const 144)
2974  )
2975  (i32.const 8)
2976  )
2977  (i32.load
2978  (i32.add
2979  (get_local $0)
2980  (i32.const 8)
2981  )
2982  )
2983  )
2984  (i64.store offset=160
2985  (get_local $16)
2986  (i64.const 1)
2987  )
2988  (i64.store offset=176
2989  (get_local $16)
2990  (i64.const 0)
2991  )
2992  (i32.store offset=148
2993  (get_local $16)
2994  (i32.load
2995  (i32.add
2996  (get_local $0)
2997  (i32.const 4)
2998  )
2999  )
3000  )
3001  (i32.store offset=144
3002  (get_local $16)
3003  (i32.load
3004  (get_local $0)
3005  )
3006  )
3007  (call $assert
3008  (i32.ne
3009  (call $load_primary_i128i128
3010  (i64.const 3316479707209269248)
3011  (i64.const 3316479707209269248)
3012  (i64.const 925261025006059520)
3013  (i32.add
3014  (get_local $16)
3015  (i32.const 144)
3016  )
3017  (i32.const 44)
3018  )
3019  (i32.const 44)
3020  )
3021  (i32.const 688)
3022  )
3023  (i64.store offset=120
3024  (get_local $16)
3025  (i64.const 0)
3026  )
3027  (i64.store offset=112
3028  (get_local $16)
3029  (get_local $14)
3030  )
3031  (i64.store offset=128
3032  (get_local $16)
3033  (i64.const 0)
3034  )
3035  (i32.store offset=136
3036  (get_local $16)
3037  (i32.const 0)
3038  )
3039  (drop
3040  (call $load_i64
3041  (i64.const 3316479707209269248)
3042  (i64.const 3316479707209269248)
3043  (i64.const 632468476610478080)
3044  (i32.add
3045  (get_local $16)
3046  (i32.const 112)
3047  )
3048  (i32.const 28)
3049  )
3050  )
3051  (call $assert
3052  (i64.ge_u
3053  (i64.load offset=128
3054  (get_local $16)
3055  )
3056  (get_local $15)
3057  )
3058  (i32.const 112)
3059  )
3060  (i64.store offset=128
3061  (get_local $16)
3062  (i64.sub
3063  (i64.load offset=128
3064  (get_local $16)
3065  )
3066  (get_local $15)
3067  )
3068  )
3069  (i64.store
3070  (tee_local $10
3071  (i32.add
3072  (i32.add
3073  (get_local $16)
3074  (i32.const 64)
3075  )
3076  (i32.const 24)
3077  )
3078  )
3079  (i64.const 0)
3080  )
3081  (i64.store offset=80
3082  (get_local $16)
3083  (i64.const 1)
3084  )
3085  (i64.store offset=72
3086  (get_local $16)
3087  (i64.const 0)
3088  )
3089  (i64.store offset=64
3090  (get_local $16)
3091  (i64.const 0)
3092  )
3093  (i64.store offset=96
3094  (get_local $16)
3095  (i64.const 0)
3096  )
3097  (block $label$0
3098  (block $label$1
3099  (block $label$2
3100  (block $label$3
3101  (block $label$4
3102  (block $label$5
3103  (br_if $label$5
3104  (i32.ne
3105  (call $back_secondary_i128i128
3106  (i64.const 3316479707209269248)
3107  (i64.const 3316479707209269248)
3108  (i64.const 1317637142540713984)
3109  (i32.add
3110  (get_local $16)
3111  (i32.const 64)
3112  )
3113  (i32.const 44)
3114  )
3115  (i32.const 44)
3116  )
3117  )
3118  (call $prints
3119  (i32.const 1216)
3120  )
3121  (i64.store offset=40
3122  (get_local $16)
3123  (i64.const 0)
3124  )
3125  (i64.store offset=48
3126  (get_local $16)
3127  (i64.const 0)
3128  )
3129  (i32.store offset=56
3130  (get_local $16)
3131  (i32.const 0)
3132  )
3133  (i64.store offset=32
3134  (get_local $16)
3135  (i64.load offset=64
3136  (get_local $16)
3137  )
3138  )
3139  (drop
3140  (call $load_i64
3141  (i64.const 3316479707209269248)
3142  (i64.const 3316479707209269248)
3143  (i64.const 632468476610478080)
3144  (i32.add
3145  (get_local $16)
3146  (i32.const 32)
3147  )
3148  (i32.const 28)
3149  )
3150  )
3151  (block $label$6
3152  (br_if $label$6
3153  (select
3154  (i64.lt_u
3155  (i64.load
3156  (tee_local $4
3157  (i32.add
3158  (i32.add
3159  (get_local $16)
3160  (i32.const 64)
3161  )
3162  (i32.const 16)
3163  )
3164  )
3165  )
3166  (i64.load
3167  (tee_local $3
3168  (i32.add
3169  (get_local $0)
3170  (i32.const 16)
3171  )
3172  )
3173  )
3174  )
3175  (i64.lt_u
3176  (tee_local $15
3177  (i64.load
3178  (get_local $10)
3179  )
3180  )
3181  (tee_local $14
3182  (i64.load
3183  (get_local $6)
3184  )
3185  )
3186  )
3187  (i64.eq
3188  (get_local $15)
3189  (get_local $14)
3190  )
3191  )
3192  )
3193  (set_local $5
3194  (i32.add
3195  (get_local $16)
3196  (i32.const 96)
3197  )
3198  )
3199  (set_local $7
3200  (i32.add
3201  (i32.add
3202  (get_local $16)
3203  (i32.const 112)
3204  )
3205  (i32.const 8)
3206  )
3207  )
3208  (set_local $8
3209  (i32.add
3210  (i32.add
3211  (get_local $16)
3212  (i32.const 112)
3213  )
3214  (i32.const 16)
3215  )
3216  )
3217  (loop $label$7
3218  (call $_ZN8exchange5matchERNS_3BidERNS_7AccountERNS_3AskES3_
3219  (i32.add
3220  (get_local $16)
3221  (i32.const 64)
3222  )
3223  (i32.add
3224  (get_local $16)
3225  (i32.const 32)
3226  )
3227  (get_local $0)
3228  (i32.add
3229  (get_local $16)
3230  (i32.const 112)
3231  )
3232  )
3233  (br_if $label$6
3234  (i64.ne
3235  (i64.load
3236  (get_local $5)
3237  )
3238  (i64.const 0)
3239  )
3240  )
3241  (i32.store
3242  (tee_local $6
3243  (i32.add
3244  (i32.add
3245  (get_local $16)
3246  (i32.const 32)
3247  )
3248  (i32.const 24)
3249  )
3250  )
3251  (i32.add
3252  (i32.load
3253  (get_local $6)
3254  )
3255  (i32.const -1)
3256  )
3257  )
3258  (block $label$8
3259  (block $label$9
3260  (br_if $label$9
3261  (i32.eqz
3262  (i32.or
3263  (i64.ne
3264  (i64.or
3265  (i64.load
3266  (get_local $8)
3267  )
3268  (i64.load
3269  (get_local $7)
3270  )
3271  )
3272  (i64.const 0)
3273  )
3274  (i32.load
3275  (i32.add
3276  (i32.add
3277  (get_local $16)
3278  (i32.const 112)
3279  )
3280  (i32.const 24)
3281  )
3282  )
3283  )
3284  )
3285  )
3286  (call $prints
3287  (i32.const 96)
3288  )
3289  (drop
3290  (call $store_i64
3291  (i64.const 3316479707209269248)
3292  (i64.const 632468476610478080)
3293  (i32.add
3294  (get_local $16)
3295  (i32.const 112)
3296  )
3297  (i32.const 28)
3298  )
3299  )
3300  (br $label$8)
3301  )
3302  (call $prints
3303  (i32.const 80)
3304  )
3305  (drop
3306  (call $remove_i64
3307  (i64.const 3316479707209269248)
3308  (i64.const 632468476610478080)
3309  (i32.add
3310  (get_local $16)
3311  (i32.const 112)
3312  )
3313  )
3314  )
3315  )
3316  (block $label$10
3317  (block $label$11
3318  (br_if $label$11
3319  (i32.eqz
3320  (i32.or
3321  (i64.ne
3322  (i64.or
3323  (i64.load
3324  (tee_local $10
3325  (i32.add
3326  (i32.add
3327  (get_local $16)
3328  (i32.const 32)
3329  )
3330  (i32.const 16)
3331  )
3332  )
3333  )
3334  (i64.load
3335  (tee_local $9
3336  (i32.add
3337  (i32.add
3338  (get_local $16)
3339  (i32.const 32)
3340  )
3341  (i32.const 8)
3342  )
3343  )
3344  )
3345  )
3346  (i64.const 0)
3347  )
3348  (i32.load
3349  (get_local $6)
3350  )
3351  )
3352  )
3353  )
3354  (call $prints
3355  (i32.const 96)
3356  )
3357  (drop
3358  (call $store_i64
3359  (i64.const 3316479707209269248)
3360  (i64.const 632468476610478080)
3361  (i32.add
3362  (get_local $16)
3363  (i32.const 32)
3364  )
3365  (i32.const 28)
3366  )
3367  )
3368  (br $label$10)
3369  )
3370  (call $prints
3371  (i32.const 80)
3372  )
3373  (drop
3374  (call $remove_i64
3375  (i64.const 3316479707209269248)
3376  (i64.const 632468476610478080)
3377  (i32.add
3378  (get_local $16)
3379  (i32.const 32)
3380  )
3381  )
3382  )
3383  )
3384  (drop
3385  (call $remove_i128i128
3386  (i64.const 3316479707209269248)
3387  (i64.const 1317637142540713984)
3388  (i32.add
3389  (get_local $16)
3390  (i32.const 64)
3391  )
3392  )
3393  )
3394  (br_if $label$6
3395  (i32.ne
3396  (call $back_secondary_i128i128
3397  (i64.const 3316479707209269248)
3398  (i64.const 3316479707209269248)
3399  (i64.const 1317637142540713984)
3400  (i32.add
3401  (get_local $16)
3402  (i32.const 64)
3403  )
3404  (i32.const 44)
3405  )
3406  (i32.const 44)
3407  )
3408  )
3409  (i64.store
3410  (tee_local $11
3411  (i32.add
3412  (get_local $16)
3413  (i32.const 8)
3414  )
3415  )
3416  (i64.const 0)
3417  )
3418  (i64.store
3419  (tee_local $12
3420  (i32.add
3421  (get_local $16)
3422  (i32.const 16)
3423  )
3424  )
3425  (i64.const 0)
3426  )
3427  (i32.store
3428  (tee_local $13
3429  (i32.add
3430  (get_local $16)
3431  (i32.const 24)
3432  )
3433  )
3434  (i32.const 0)
3435  )
3436  (i64.store
3437  (get_local $16)
3438  (i64.load offset=64
3439  (get_local $16)
3440  )
3441  )
3442  (drop
3443  (call $load_i64
3444  (i64.const 3316479707209269248)
3445  (i64.const 3316479707209269248)
3446  (i64.const 632468476610478080)
3447  (get_local $16)
3448  (i32.const 28)
3449  )
3450  )
3451  (i32.store
3452  (get_local $6)
3453  (i32.load
3454  (get_local $13)
3455  )
3456  )
3457  (i64.store
3458  (get_local $10)
3459  (i64.load
3460  (get_local $12)
3461  )
3462  )
3463  (i64.store
3464  (get_local $9)
3465  (i64.load
3466  (get_local $11)
3467  )
3468  )
3469  (i64.store offset=32
3470  (get_local $16)
3471  (i64.load
3472  (get_local $16)
3473  )
3474  )
3475  (br_if $label$7
3476  (select
3477  (i64.ge_u
3478  (i64.load
3479  (get_local $4)
3480  )
3481  (i64.load
3482  (get_local $3)
3483  )
3484  )
3485  (i64.ge_u
3486  (tee_local $15
3487  (i64.load
3488  (i32.add
3489  (i32.add
3490  (get_local $16)
3491  (i32.const 64)
3492  )
3493  (i32.const 24)
3494  )
3495  )
3496  )
3497  (tee_local $14
3498  (i64.load
3499  (i32.add
3500  (get_local $0)
3501  (i32.const 24)
3502  )
3503  )
3504  )
3505  )
3506  (i64.eq
3507  (get_local $15)
3508  (get_local $14)
3509  )
3510  )
3511  )
3512  )
3513  )
3514  (block $label$12
3515  (br_if $label$12
3516  (i64.eqz
3517  (i64.load
3518  (i32.add
3519  (get_local $0)
3520  (i32.const 32)
3521  )
3522  )
3523  )
3524  )
3525  (br_if $label$12
3526  (i32.load8_u offset=44
3527  (get_local $0)
3528  )
3529  )
3530  (i32.store
3531  (tee_local $6
3532  (i32.add
3533  (get_local $16)
3534  (i32.const 136)
3535  )
3536  )
3537  (i32.add
3538  (i32.load
3539  (get_local $6)
3540  )
3541  (i32.const 1)
3542  )
3543  )
3544  )
3545  (br_if $label$4
3546  (i32.eqz
3547  (i32.or
3548  (i64.ne
3549  (i64.or
3550  (i64.load
3551  (i32.add
3552  (get_local $16)
3553  (i32.const 128)
3554  )
3555  )
3556  (i64.load
3557  (i32.add
3558  (get_local $16)
3559  (i32.const 120)
3560  )
3561  )
3562  )
3563  (i64.const 0)
3564  )
3565  (i32.load
3566  (i32.add
3567  (get_local $16)
3568  (i32.const 136)
3569  )
3570  )
3571  )
3572  )
3573  )
3574  (call $prints
3575  (i32.const 96)
3576  )
3577  (drop
3578  (call $store_i64
3579  (i64.const 3316479707209269248)
3580  (i64.const 632468476610478080)
3581  (i32.add
3582  (get_local $16)
3583  (i32.const 112)
3584  )
3585  (i32.const 28)
3586  )
3587  )
3588  (br $label$3)
3589  )
3590  (call $assert
3591  (i32.eqz
3592  (i32.load8_u offset=44
3593  (get_local $0)
3594  )
3595  )
3596  (i32.const 864)
3597  )
3598  (call $prints
3599  (i32.const 1152)
3600  )
3601  (call $assert
3602  (call $store_i128i128
3603  (i64.const 3316479707209269248)
3604  (i64.const 925261025006059520)
3605  (get_local $0)
3606  (i32.const 44)
3607  )
3608  (i32.const 896)
3609  )
3610  (i32.store
3611  (tee_local $0
3612  (i32.add
3613  (i32.add
3614  (get_local $16)
3615  (i32.const 112)
3616  )
3617  (i32.const 24)
3618  )
3619  )
3620  (tee_local $0
3621  (i32.add
3622  (i32.load
3623  (get_local $0)
3624  )
3625  (i32.const 1)
3626  )
3627  )
3628  )
3629  (br_if $label$2
3630  (i32.eqz
3631  (i32.or
3632  (i64.ne
3633  (i64.or
3634  (i64.load
3635  (i32.add
3636  (get_local $16)
3637  (i32.const 128)
3638  )
3639  )
3640  (i64.load
3641  (i32.add
3642  (i32.add
3643  (get_local $16)
3644  (i32.const 112)
3645  )
3646  (i32.const 8)
3647  )
3648  )
3649  )
3650  (i64.const 0)
3651  )
3652  (get_local $0)
3653  )
3654  )
3655  )
3656  (call $prints
3657  (i32.const 96)
3658  )
3659  (drop
3660  (call $store_i64
3661  (i64.const 3316479707209269248)
3662  (i64.const 632468476610478080)
3663  (i32.add
3664  (get_local $16)
3665  (i32.const 112)
3666  )
3667  (i32.const 28)
3668  )
3669  )
3670  (br $label$0)
3671  )
3672  (call $prints
3673  (i32.const 80)
3674  )
3675  (drop
3676  (call $remove_i64
3677  (i64.const 3316479707209269248)
3678  (i64.const 632468476610478080)
3679  (i32.add
3680  (get_local $16)
3681  (i32.const 112)
3682  )
3683  )
3684  )
3685  )
3686  (br_if $label$1
3687  (i64.eqz
3688  (i64.load
3689  (i32.add
3690  (get_local $0)
3691  (i32.const 32)
3692  )
3693  )
3694  )
3695  )
3696  (call $assert
3697  (i32.eqz
3698  (i32.load8_u offset=44
3699  (get_local $0)
3700  )
3701  )
3702  (i32.const 864)
3703  )
3704  (call $prints
3705  (i32.const 1264)
3706  )
3707  (call $assert
3708  (call $store_i128i128
3709  (i64.const 3316479707209269248)
3710  (i64.const 925261025006059520)
3711  (get_local $0)
3712  (i32.const 44)
3713  )
3714  (i32.const 896)
3715  )
3716  (br $label$0)
3717  )
3718  (call $prints
3719  (i32.const 80)
3720  )
3721  (drop
3722  (call $remove_i64
3723  (i64.const 3316479707209269248)
3724  (i64.const 632468476610478080)
3725  (i32.add
3726  (get_local $16)
3727  (i32.const 112)
3728  )
3729  )
3730  )
3731  (br $label$0)
3732  )
3733  (call $prints
3734  (i32.const 1280)
3735  )
3736  )
3737  (i32.store offset=4
3738  (i32.const 0)
3739  (i32.add
3740  (get_local $16)
3741  (i32.const 192)
3742  )
3743  )
3744  )
3745  (func $_ZN8exchange25apply_exchange_cancel_buyENS_7OrderIDE (param $0 i32)
3746  (local $1 i64)
3747  (local $2 i32)
3748  (i32.store offset=4
3749  (i32.const 0)
3750  (tee_local $2
3751  (i32.sub
3752  (i32.load offset=4
3753  (i32.const 0)
3754  )
3755  (i32.const 80)
3756  )
3757  )
3758  )
3759  (call $requireAuth
3760  (tee_local $1
3761  (i64.load
3762  (get_local $0)
3763  )
3764  )
3765  )
3766  (i64.store
3767  (i32.add
3768  (get_local $2)
3769  (i32.const 56)
3770  )
3771  (i64.const 0)
3772  )
3773  (i32.store
3774  (i32.add
3775  (i32.add
3776  (get_local $2)
3777  (i32.const 32)
3778  )
3779  (i32.const 12)
3780  )
3781  (i32.load
3782  (i32.add
3783  (get_local $0)
3784  (i32.const 12)
3785  )
3786  )
3787  )
3788  (i32.store
3789  (i32.add
3790  (i32.add
3791  (get_local $2)
3792  (i32.const 32)
3793  )
3794  (i32.const 8)
3795  )
3796  (i32.load
3797  (i32.add
3798  (get_local $0)
3799  (i32.const 8)
3800  )
3801  )
3802  )
3803  (i64.store offset=48
3804  (get_local $2)
3805  (i64.const 1)
3806  )
3807  (i64.store offset=64
3808  (get_local $2)
3809  (i64.const 0)
3810  )
3811  (i32.store offset=36
3812  (get_local $2)
3813  (i32.load
3814  (i32.add
3815  (get_local $0)
3816  (i32.const 4)
3817  )
3818  )
3819  )
3820  (i32.store offset=32
3821  (get_local $2)
3822  (i32.load
3823  (get_local $0)
3824  )
3825  )
3826  (call $assert
3827  (i32.eq
3828  (call $load_primary_i128i128
3829  (i64.const 3316479707209269248)
3830  (i64.const 3316479707209269248)
3831  (i64.const 1317637142540713984)
3832  (i32.add
3833  (get_local $2)
3834  (i32.const 32)
3835  )
3836  (i32.const 44)
3837  )
3838  (i32.const 44)
3839  )
3840  (i32.const 1296)
3841  )
3842  (i64.store offset=8
3843  (get_local $2)
3844  (i64.const 0)
3845  )
3846  (i64.store
3847  (get_local $2)
3848  (get_local $1)
3849  )
3850  (i64.store offset=16
3851  (get_local $2)
3852  (i64.const 0)
3853  )
3854  (i32.store offset=24
3855  (get_local $2)
3856  (i32.const 0)
3857  )
3858  (drop
3859  (call $load_i64
3860  (i64.const 3316479707209269248)
3861  (i64.const 3316479707209269248)
3862  (i64.const 632468476610478080)
3863  (get_local $2)
3864  (i32.const 28)
3865  )
3866  )
3867  (call $assert
3868  (i64.ge_u
3869  (i64.add
3870  (tee_local $1
3871  (i64.load offset=64
3872  (get_local $2)
3873  )
3874  )
3875  (i64.load offset=8
3876  (get_local $2)
3877  )
3878  )
3879  (get_local $1)
3880  )
3881  (i32.const 32)
3882  )
3883  (i64.store offset=8
3884  (get_local $2)
3885  (i64.add
3886  (i64.load offset=8
3887  (get_local $2)
3888  )
3889  (i64.load offset=64
3890  (get_local $2)
3891  )
3892  )
3893  )
3894  (i32.store offset=24
3895  (get_local $2)
3896  (i32.add
3897  (i32.load offset=24
3898  (get_local $2)
3899  )
3900  (i32.const -1)
3901  )
3902  )
3903  (drop
3904  (call $remove_i128i128
3905  (i64.const 3316479707209269248)
3906  (i64.const 1317637142540713984)
3907  (i32.add
3908  (get_local $2)
3909  (i32.const 32)
3910  )
3911  )
3912  )
3913  (block $label$0
3914  (block $label$1
3915  (br_if $label$1
3916  (i32.eqz
3917  (i32.or
3918  (i64.ne
3919  (i64.or
3920  (i64.load offset=16
3921  (get_local $2)
3922  )
3923  (i64.load offset=8
3924  (get_local $2)
3925  )
3926  )
3927  (i64.const 0)
3928  )
3929  (i32.load offset=24
3930  (get_local $2)
3931  )
3932  )
3933  )
3934  )
3935  (call $prints
3936  (i32.const 96)
3937  )
3938  (drop
3939  (call $store_i64
3940  (i64.const 3316479707209269248)
3941  (i64.const 632468476610478080)
3942  (get_local $2)
3943  (i32.const 28)
3944  )
3945  )
3946  (br $label$0)
3947  )
3948  (call $prints
3949  (i32.const 80)
3950  )
3951  (drop
3952  (call $remove_i64
3953  (i64.const 3316479707209269248)
3954  (i64.const 632468476610478080)
3955  (get_local $2)
3956  )
3957  )
3958  )
3959  (call $prints
3960  (i32.const 1344)
3961  )
3962  (i32.store offset=4
3963  (i32.const 0)
3964  (i32.add
3965  (get_local $2)
3966  (i32.const 80)
3967  )
3968  )
3969  )
3970  (func $_ZN8exchange26apply_exchange_cancel_sellENS_7OrderIDE (param $0 i32)
3971  (local $1 i64)
3972  (local $2 i32)
3973  (i32.store offset=4
3974  (i32.const 0)
3975  (tee_local $2
3976  (i32.sub
3977  (i32.load offset=4
3978  (i32.const 0)
3979  )
3980  (i32.const 80)
3981  )
3982  )
3983  )
3984  (call $requireAuth
3985  (tee_local $1
3986  (i64.load
3987  (get_local $0)
3988  )
3989  )
3990  )
3991  (i64.store
3992  (i32.add
3993  (get_local $2)
3994  (i32.const 56)
3995  )
3996  (i64.const 0)
3997  )
3998  (i32.store
3999  (i32.add
4000  (i32.add
4001  (get_local $2)
4002  (i32.const 32)
4003  )
4004  (i32.const 12)
4005  )
4006  (i32.load
4007  (i32.add
4008  (get_local $0)
4009  (i32.const 12)
4010  )
4011  )
4012  )
4013  (i32.store
4014  (i32.add
4015  (i32.add
4016  (get_local $2)
4017  (i32.const 32)
4018  )
4019  (i32.const 8)
4020  )
4021  (i32.load
4022  (i32.add
4023  (get_local $0)
4024  (i32.const 8)
4025  )
4026  )
4027  )
4028  (i64.store offset=48
4029  (get_local $2)
4030  (i64.const 1)
4031  )
4032  (i64.store offset=64
4033  (get_local $2)
4034  (i64.const 0)
4035  )
4036  (i32.store offset=36
4037  (get_local $2)
4038  (i32.load
4039  (i32.add
4040  (get_local $0)
4041  (i32.const 4)
4042  )
4043  )
4044  )
4045  (i32.store offset=32
4046  (get_local $2)
4047  (i32.load
4048  (get_local $0)
4049  )
4050  )
4051  (call $assert
4052  (i32.eq
4053  (call $load_primary_i128i128
4054  (i64.const 3316479707209269248)
4055  (i64.const 3316479707209269248)
4056  (i64.const 925261025006059520)
4057  (i32.add
4058  (get_local $2)
4059  (i32.const 32)
4060  )
4061  (i32.const 44)
4062  )
4063  (i32.const 44)
4064  )
4065  (i32.const 1360)
4066  )
4067  (i64.store offset=8
4068  (get_local $2)
4069  (i64.const 0)
4070  )
4071  (i64.store
4072  (get_local $2)
4073  (get_local $1)
4074  )
4075  (i64.store offset=16
4076  (get_local $2)
4077  (i64.const 0)
4078  )
4079  (i32.store offset=24
4080  (get_local $2)
4081  (i32.const 0)
4082  )
4083  (drop
4084  (call $load_i64
4085  (i64.const 3316479707209269248)
4086  (i64.const 3316479707209269248)
4087  (i64.const 632468476610478080)
4088  (get_local $2)
4089  (i32.const 28)
4090  )
4091  )
4092  (call $assert
4093  (i64.ge_u
4094  (i64.add
4095  (tee_local $1
4096  (i64.load offset=64
4097  (get_local $2)
4098  )
4099  )
4100  (i64.load offset=16
4101  (get_local $2)
4102  )
4103  )
4104  (get_local $1)
4105  )
4106  (i32.const 32)
4107  )
4108  (i64.store offset=16
4109  (get_local $2)
4110  (i64.add
4111  (i64.load offset=16
4112  (get_local $2)
4113  )
4114  (i64.load offset=64
4115  (get_local $2)
4116  )
4117  )
4118  )
4119  (i32.store offset=24
4120  (get_local $2)
4121  (i32.add
4122  (i32.load offset=24
4123  (get_local $2)
4124  )
4125  (i32.const -1)
4126  )
4127  )
4128  (drop
4129  (call $remove_i128i128
4130  (i64.const 3316479707209269248)
4131  (i64.const 925261025006059520)
4132  (i32.add
4133  (get_local $2)
4134  (i32.const 32)
4135  )
4136  )
4137  )
4138  (block $label$0
4139  (block $label$1
4140  (br_if $label$1
4141  (i32.eqz
4142  (i32.or
4143  (i64.ne
4144  (i64.or
4145  (i64.load offset=16
4146  (get_local $2)
4147  )
4148  (i64.load offset=8
4149  (get_local $2)
4150  )
4151  )
4152  (i64.const 0)
4153  )
4154  (i32.load offset=24
4155  (get_local $2)
4156  )
4157  )
4158  )
4159  )
4160  (call $prints
4161  (i32.const 96)
4162  )
4163  (drop
4164  (call $store_i64
4165  (i64.const 3316479707209269248)
4166  (i64.const 632468476610478080)
4167  (get_local $2)
4168  (i32.const 28)
4169  )
4170  )
4171  (br $label$0)
4172  )
4173  (call $prints
4174  (i32.const 80)
4175  )
4176  (drop
4177  (call $remove_i64
4178  (i64.const 3316479707209269248)
4179  (i64.const 632468476610478080)
4180  (get_local $2)
4181  )
4182  )
4183  )
4184  (call $prints
4185  (i32.const 1408)
4186  )
4187  (i32.store offset=4
4188  (i32.const 0)
4189  (i32.add
4190  (get_local $2)
4191  (i32.const 80)
4192  )
4193  )
4194  )
4195  (func $init
4196  )
4197  (func $apply (param $0 i64) (param $1 i64)
4198  (local $2 i32)
4199  (local $3 i32)
4200  (local $4 i64)
4201  (local $5 i64)
4202  (local $6 i64)
4203  (local $7 i64)
4204  (local $8 i32)
4205  (i32.store offset=4
4206  (i32.const 0)
4207  (tee_local $8
4208  (i32.sub
4209  (i32.load offset=4
4210  (i32.const 0)
4211  )
4212  (i32.const 288)
4213  )
4214  )
4215  )
4216  (set_local $5
4217  (i64.const 0)
4218  )
4219  (set_local $4
4220  (i64.const 59)
4221  )
4222  (set_local $3
4223  (i32.const 16)
4224  )
4225  (set_local $6
4226  (i64.const 0)
4227  )
4228  (loop $label$0
4229  (block $label$1
4230  (block $label$2
4231  (block $label$3
4232  (block $label$4
4233  (block $label$5
4234  (br_if $label$5
4235  (i64.gt_u
4236  (get_local $5)
4237  (i64.const 7)
4238  )
4239  )
4240  (br_if $label$4
4241  (i32.gt_u
4242  (i32.and
4243  (i32.add
4244  (tee_local $2
4245  (i32.load8_s
4246  (get_local $3)
4247  )
4248  )
4249  (i32.const -97)
4250  )
4251  (i32.const 255)
4252  )
4253  (i32.const 25)
4254  )
4255  )
4256  (set_local $2
4257  (i32.add
4258  (get_local $2)
4259  (i32.const 160)
4260  )
4261  )
4262  (br $label$3)
4263  )
4264  (set_local $7
4265  (i64.const 0)
4266  )
4267  (br_if $label$2
4268  (i64.le_u
4269  (get_local $5)
4270  (i64.const 11)
4271  )
4272  )
4273  (br $label$1)
4274  )
4275  (set_local $2
4276  (select
4277  (i32.add
4278  (get_local $2)
4279  (i32.const 234)
4280  )
4281  (i32.const 0)
4282  (i32.lt_u
4283  (i32.and
4284  (i32.add
4285  (get_local $2)
4286  (i32.const -49)
4287  )
4288  (i32.const 255)
4289  )
4290  (i32.const 5)
4291  )
4292  )
4293  )
4294  )
4295  (set_local $7
4296  (i64.shr_s
4297  (i64.shl
4298  (i64.extend_u/i32
4299  (get_local $2)
4300  )
4301  (i64.const 56)
4302  )
4303  (i64.const 56)
4304  )
4305  )
4306  )
4307  (set_local $7
4308  (i64.shl
4309  (i64.and
4310  (get_local $7)
4311  (i64.const 31)
4312  )
4313  (i64.and
4314  (get_local $4)
4315  (i64.const 4294967295)
4316  )
4317  )
4318  )
4319  )
4320  (set_local $3
4321  (i32.add
4322  (get_local $3)
4323  (i32.const 1)
4324  )
4325  )
4326  (set_local $5
4327  (i64.add
4328  (get_local $5)
4329  (i64.const 1)
4330  )
4331  )
4332  (set_local $6
4333  (i64.or
4334  (get_local $7)
4335  (get_local $6)
4336  )
4337  )
4338  (br_if $label$0
4339  (i64.ne
4340  (tee_local $4
4341  (i64.add
4342  (get_local $4)
4343  (i64.const -5)
4344  )
4345  )
4346  (i64.const -6)
4347  )
4348  )
4349  )
4350  (block $label$6
4351  (block $label$7
4352  (block $label$8
4353  (block $label$9
4354  (block $label$10
4355  (block $label$11
4356  (block $label$12
4357  (br_if $label$12
4358  (i64.ne
4359  (get_local $6)
4360  (get_local $0)
4361  )
4362  )
4363  (br_if $label$11
4364  (i64.gt_s
4365  (get_local $1)
4366  (i64.const 1755333687702454271)
4367  )
4368  )
4369  (br_if $label$9
4370  (i64.eq
4371  (get_local $1)
4372  (i64.const -7396951281723506688)
4373  )
4374  )
4375  (br_if $label$7
4376  (i64.ne
4377  (get_local $1)
4378  (i64.const 1545297622141501440)
4379  )
4380  )
4381  (i64.store
4382  (i32.add
4383  (get_local $8)
4384  (i32.const 264)
4385  )
4386  (i64.const 0)
4387  )
4388  (i64.store offset=256
4389  (get_local $8)
4390  (i64.const 1)
4391  )
4392  (i64.store offset=248
4393  (get_local $8)
4394  (i64.const 0)
4395  )
4396  (i64.store offset=240
4397  (get_local $8)
4398  (i64.const 0)
4399  )
4400  (i64.store offset=272
4401  (get_local $8)
4402  (i64.const 0)
4403  )
4404  (i32.store8 offset=284
4405  (get_local $8)
4406  (i32.const 0)
4407  )
4408  (call $assert
4409  (i32.gt_u
4410  (call $readMessage
4411  (i32.add
4412  (get_local $8)
4413  (i32.const 240)
4414  )
4415  (i32.const 45)
4416  )
4417  (i32.const 44)
4418  )
4419  (i32.const 1424)
4420  )
4421  (drop
4422  (call $memcpy
4423  (i32.add
4424  (get_local $8)
4425  (i32.const 14)
4426  )
4427  (i32.add
4428  (get_local $8)
4429  (i32.const 240)
4430  )
4431  (i32.const 45)
4432  )
4433  )
4434  (call $_ZN8exchange18apply_exchange_buyENS_8BuyOrderE
4435  (i32.add
4436  (get_local $8)
4437  (i32.const 14)
4438  )
4439  )
4440  (br $label$6)
4441  )
4442  (set_local $5
4443  (i64.const 0)
4444  )
4445  (set_local $4
4446  (i64.const 59)
4447  )
4448  (set_local $3
4449  (i32.const 1472)
4450  )
4451  (set_local $6
4452  (i64.const 0)
4453  )
4454  (loop $label$13
4455  (block $label$14
4456  (block $label$15
4457  (block $label$16
4458  (block $label$17
4459  (block $label$18
4460  (br_if $label$18
4461  (i64.gt_u
4462  (get_local $5)
4463  (i64.const 7)
4464  )
4465  )
4466  (br_if $label$17
4467  (i32.gt_u
4468  (i32.and
4469  (i32.add
4470  (tee_local $2
4471  (i32.load8_s
4472  (get_local $3)
4473  )
4474  )
4475  (i32.const -97)
4476  )
4477  (i32.const 255)
4478  )
4479  (i32.const 25)
4480  )
4481  )
4482  (set_local $2
4483  (i32.add
4484  (get_local $2)
4485  (i32.const 160)
4486  )
4487  )
4488  (br $label$16)
4489  )
4490  (set_local $7
4491  (i64.const 0)
4492  )
4493  (br_if $label$15
4494  (i64.le_u
4495  (get_local $5)
4496  (i64.const 11)
4497  )
4498  )
4499  (br $label$14)
4500  )
4501  (set_local $2
4502  (select
4503  (i32.add
4504  (get_local $2)
4505  (i32.const 234)
4506  )
4507  (i32.const 0)
4508  (i32.lt_u
4509  (i32.and
4510  (i32.add
4511  (get_local $2)
4512  (i32.const -49)
4513  )
4514  (i32.const 255)
4515  )
4516  (i32.const 5)
4517  )
4518  )
4519  )
4520  )
4521  (set_local $7
4522  (i64.shr_s
4523  (i64.shl
4524  (i64.extend_u/i32
4525  (get_local $2)
4526  )
4527  (i64.const 56)
4528  )
4529  (i64.const 56)
4530  )
4531  )
4532  )
4533  (set_local $7
4534  (i64.shl
4535  (i64.and
4536  (get_local $7)
4537  (i64.const 31)
4538  )
4539  (i64.and
4540  (get_local $4)
4541  (i64.const 4294967295)
4542  )
4543  )
4544  )
4545  )
4546  (set_local $3
4547  (i32.add
4548  (get_local $3)
4549  (i32.const 1)
4550  )
4551  )
4552  (set_local $5
4553  (i64.add
4554  (get_local $5)
4555  (i64.const 1)
4556  )
4557  )
4558  (set_local $6
4559  (i64.or
4560  (get_local $7)
4561  (get_local $6)
4562  )
4563  )
4564  (br_if $label$13
4565  (i64.ne
4566  (tee_local $4
4567  (i64.add
4568  (get_local $4)
4569  (i64.const -5)
4570  )
4571  )
4572  (i64.const -6)
4573  )
4574  )
4575  )
4576  (br_if $label$10
4577  (i64.ne
4578  (get_local $6)
4579  (get_local $0)
4580  )
4581  )
4582  (set_local $5
4583  (i64.const 0)
4584  )
4585  (set_local $4
4586  (i64.const 59)
4587  )
4588  (set_local $3
4589  (i32.const 1488)
4590  )
4591  (set_local $6
4592  (i64.const 0)
4593  )
4594  (loop $label$19
4595  (block $label$20
4596  (block $label$21
4597  (block $label$22
4598  (block $label$23
4599  (block $label$24
4600  (br_if $label$24
4601  (i64.gt_u
4602  (get_local $5)
4603  (i64.const 7)
4604  )
4605  )
4606  (br_if $label$23
4607  (i32.gt_u
4608  (i32.and
4609  (i32.add
4610  (tee_local $2
4611  (i32.load8_s
4612  (get_local $3)
4613  )
4614  )
4615  (i32.const -97)
4616  )
4617  (i32.const 255)
4618  )
4619  (i32.const 25)
4620  )
4621  )
4622  (set_local $2
4623  (i32.add
4624  (get_local $2)
4625  (i32.const 160)
4626  )
4627  )
4628  (br $label$22)
4629  )
4630  (set_local $7
4631  (i64.const 0)
4632  )
4633  (br_if $label$21
4634  (i64.le_u
4635  (get_local $5)
4636  (i64.const 11)
4637  )
4638  )
4639  (br $label$20)
4640  )
4641  (set_local $2
4642  (select
4643  (i32.add
4644  (get_local $2)
4645  (i32.const 234)
4646  )
4647  (i32.const 0)
4648  (i32.lt_u
4649  (i32.and
4650  (i32.add
4651  (get_local $2)
4652  (i32.const -49)
4653  )
4654  (i32.const 255)
4655  )
4656  (i32.const 5)
4657  )
4658  )
4659  )
4660  )
4661  (set_local $7
4662  (i64.shr_s
4663  (i64.shl
4664  (i64.extend_u/i32
4665  (get_local $2)
4666  )
4667  (i64.const 56)
4668  )
4669  (i64.const 56)
4670  )
4671  )
4672  )
4673  (set_local $7
4674  (i64.shl
4675  (i64.and
4676  (get_local $7)
4677  (i64.const 31)
4678  )
4679  (i64.and
4680  (get_local $4)
4681  (i64.const 4294967295)
4682  )
4683  )
4684  )
4685  )
4686  (set_local $3
4687  (i32.add
4688  (get_local $3)
4689  (i32.const 1)
4690  )
4691  )
4692  (set_local $5
4693  (i64.add
4694  (get_local $5)
4695  (i64.const 1)
4696  )
4697  )
4698  (set_local $6
4699  (i64.or
4700  (get_local $7)
4701  (get_local $6)
4702  )
4703  )
4704  (br_if $label$19
4705  (i64.ne
4706  (tee_local $4
4707  (i64.add
4708  (get_local $4)
4709  (i64.const -5)
4710  )
4711  )
4712  (i64.const -6)
4713  )
4714  )
4715  )
4716  (br_if $label$6
4717  (i64.ne
4718  (get_local $6)
4719  (get_local $1)
4720  )
4721  )
4722  (i64.store offset=152
4723  (get_local $8)
4724  (i64.const 0)
4725  )
4726  (call $assert
4727  (i32.gt_u
4728  (call $readMessage
4729  (i32.add
4730  (get_local $8)
4731  (i32.const 136)
4732  )
4733  (i32.const 24)
4734  )
4735  (i32.const 23)
4736  )
4737  (i32.const 1424)
4738  )
4739  (call $_ZN8exchange23apply_currency_transferERKN8currency8TransferE
4740  (i32.add
4741  (get_local $8)
4742  (i32.const 136)
4743  )
4744  )
4745  (br $label$6)
4746  )
4747  (br_if $label$8
4748  (i64.eq
4749  (get_local $1)
4750  (i64.const 1755333687702454272)
4751  )
4752  )
4753  (br_if $label$7
4754  (i64.ne
4755  (get_local $1)
4756  (i64.const 1755333696554205184)
4757  )
4758  )
4759  (i64.store offset=168
4760  (get_local $8)
4761  (i64.const 0)
4762  )
4763  (i64.store offset=160
4764  (get_local $8)
4765  (i64.const 0)
4766  )
4767  (call $assert
4768  (i32.gt_u
4769  (call $readMessage
4770  (i32.add
4771  (get_local $8)
4772  (i32.const 160)
4773  )
4774  (i32.const 16)
4775  )
4776  (i32.const 15)
4777  )
4778  (i32.const 1424)
4779  )
4780  (i64.store
4781  (i32.add
4782  (get_local $8)
4783  (i32.const 128)
4784  )
4785  (i64.load offset=168
4786  (get_local $8)
4787  )
4788  )
4789  (i64.store offset=120
4790  (get_local $8)
4791  (i64.load offset=160
4792  (get_local $8)
4793  )
4794  )
4795  (call $_ZN8exchange26apply_exchange_cancel_sellENS_7OrderIDE
4796  (i32.add
4797  (get_local $8)
4798  (i32.const 120)
4799  )
4800  )
4801  (br $label$6)
4802  )
4803  (set_local $5
4804  (i64.const 0)
4805  )
4806  (set_local $4
4807  (i64.const 59)
4808  )
4809  (set_local $3
4810  (i32.const 1504)
4811  )
4812  (set_local $6
4813  (i64.const 0)
4814  )
4815  (loop $label$25
4816  (block $label$26
4817  (block $label$27
4818  (block $label$28
4819  (block $label$29
4820  (block $label$30
4821  (br_if $label$30
4822  (i64.gt_u
4823  (get_local $5)
4824  (i64.const 2)
4825  )
4826  )
4827  (br_if $label$29
4828  (i32.gt_u
4829  (i32.and
4830  (i32.add
4831  (tee_local $2
4832  (i32.load8_s
4833  (get_local $3)
4834  )
4835  )
4836  (i32.const -97)
4837  )
4838  (i32.const 255)
4839  )
4840  (i32.const 25)
4841  )
4842  )
4843  (set_local $2
4844  (i32.add
4845  (get_local $2)
4846  (i32.const 160)
4847  )
4848  )
4849  (br $label$28)
4850  )
4851  (set_local $7
4852  (i64.const 0)
4853  )
4854  (br_if $label$27
4855  (i64.le_u
4856  (get_local $5)
4857  (i64.const 11)
4858  )
4859  )
4860  (br $label$26)
4861  )
4862  (set_local $2
4863  (select
4864  (i32.add
4865  (get_local $2)
4866  (i32.const 234)
4867  )
4868  (i32.const 0)
4869  (i32.lt_u
4870  (i32.and
4871  (i32.add
4872  (get_local $2)
4873  (i32.const -49)
4874  )
4875  (i32.const 255)
4876  )
4877  (i32.const 5)
4878  )
4879  )
4880  )
4881  )
4882  (set_local $7
4883  (i64.shr_s
4884  (i64.shl
4885  (i64.extend_u/i32
4886  (get_local $2)
4887  )
4888  (i64.const 56)
4889  )
4890  (i64.const 56)
4891  )
4892  )
4893  )
4894  (set_local $7
4895  (i64.shl
4896  (i64.and
4897  (get_local $7)
4898  (i64.const 31)
4899  )
4900  (i64.and
4901  (get_local $4)
4902  (i64.const 4294967295)
4903  )
4904  )
4905  )
4906  )
4907  (set_local $3
4908  (i32.add
4909  (get_local $3)
4910  (i32.const 1)
4911  )
4912  )
4913  (set_local $5
4914  (i64.add
4915  (get_local $5)
4916  (i64.const 1)
4917  )
4918  )
4919  (set_local $6
4920  (i64.or
4921  (get_local $7)
4922  (get_local $6)
4923  )
4924  )
4925  (br_if $label$25
4926  (i64.ne
4927  (tee_local $4
4928  (i64.add
4929  (get_local $4)
4930  (i64.const -5)
4931  )
4932  )
4933  (i64.const -6)
4934  )
4935  )
4936  )
4937  (br_if $label$6
4938  (i64.ne
4939  (get_local $6)
4940  (get_local $0)
4941  )
4942  )
4943  (set_local $5
4944  (i64.const 0)
4945  )
4946  (set_local $4
4947  (i64.const 59)
4948  )
4949  (set_local $3
4950  (i32.const 1488)
4951  )
4952  (set_local $6
4953  (i64.const 0)
4954  )
4955  (loop $label$31
4956  (block $label$32
4957  (block $label$33
4958  (block $label$34
4959  (block $label$35
4960  (block $label$36
4961  (br_if $label$36
4962  (i64.gt_u
4963  (get_local $5)
4964  (i64.const 7)
4965  )
4966  )
4967  (br_if $label$35
4968  (i32.gt_u
4969  (i32.and
4970  (i32.add
4971  (tee_local $2
4972  (i32.load8_s
4973  (get_local $3)
4974  )
4975  )
4976  (i32.const -97)
4977  )
4978  (i32.const 255)
4979  )
4980  (i32.const 25)
4981  )
4982  )
4983  (set_local $2
4984  (i32.add
4985  (get_local $2)
4986  (i32.const 160)
4987  )
4988  )
4989  (br $label$34)
4990  )
4991  (set_local $7
4992  (i64.const 0)
4993  )
4994  (br_if $label$33
4995  (i64.le_u
4996  (get_local $5)
4997  (i64.const 11)
4998  )
4999  )
5000  (br $label$32)
5001  )
5002  (set_local $2
5003  (select
5004  (i32.add
5005  (get_local $2)
5006  (i32.const 234)
5007  )
5008  (i32.const 0)
5009  (i32.lt_u
5010  (i32.and
5011  (i32.add
5012  (get_local $2)
5013  (i32.const -49)
5014  )
5015  (i32.const 255)
5016  )
5017  (i32.const 5)
5018  )
5019  )
5020  )
5021  )
5022  (set_local $7
5023  (i64.shr_s
5024  (i64.shl
5025  (i64.extend_u/i32
5026  (get_local $2)
5027  )
5028  (i64.const 56)
5029  )
5030  (i64.const 56)
5031  )
5032  )
5033  )
5034  (set_local $7
5035  (i64.shl
5036  (i64.and
5037  (get_local $7)
5038  (i64.const 31)
5039  )
5040  (i64.and
5041  (get_local $4)
5042  (i64.const 4294967295)
5043  )
5044  )
5045  )
5046  )
5047  (set_local $3
5048  (i32.add
5049  (get_local $3)
5050  (i32.const 1)
5051  )
5052  )
5053  (set_local $5
5054  (i64.add
5055  (get_local $5)
5056  (i64.const 1)
5057  )
5058  )
5059  (set_local $6
5060  (i64.or
5061  (get_local $7)
5062  (get_local $6)
5063  )
5064  )
5065  (br_if $label$31
5066  (i64.ne
5067  (tee_local $4
5068  (i64.add
5069  (get_local $4)
5070  (i64.const -5)
5071  )
5072  )
5073  (i64.const -6)
5074  )
5075  )
5076  )
5077  (br_if $label$6
5078  (i64.ne
5079  (get_local $6)
5080  (get_local $1)
5081  )
5082  )
5083  (i64.store offset=152
5084  (get_local $8)
5085  (i64.const 0)
5086  )
5087  (call $assert
5088  (i32.gt_u
5089  (call $readMessage
5090  (i32.add
5091  (get_local $8)
5092  (i32.const 136)
5093  )
5094  (i32.const 24)
5095  )
5096  (i32.const 23)
5097  )
5098  (i32.const 1424)
5099  )
5100  (call $_ZN8exchange18apply_eos_transferERKN3eos8TransferE
5101  (i32.add
5102  (get_local $8)
5103  (i32.const 136)
5104  )
5105  )
5106  (br $label$6)
5107  )
5108  (i64.store
5109  (i32.add
5110  (get_local $8)
5111  (i32.const 216)
5112  )
5113  (i64.const 0)
5114  )
5115  (i64.store offset=208
5116  (get_local $8)
5117  (i64.const 1)
5118  )
5119  (i64.store offset=200
5120  (get_local $8)
5121  (i64.const 0)
5122  )
5123  (i64.store offset=192
5124  (get_local $8)
5125  (i64.const 0)
5126  )
5127  (i64.store offset=224
5128  (get_local $8)
5129  (i64.const 0)
5130  )
5131  (i32.store8 offset=236
5132  (get_local $8)
5133  (i32.const 0)
5134  )
5135  (call $assert
5136  (i32.gt_u
5137  (call $readMessage
5138  (i32.add
5139  (get_local $8)
5140  (i32.const 192)
5141  )
5142  (i32.const 45)
5143  )
5144  (i32.const 44)
5145  )
5146  (i32.const 1424)
5147  )
5148  (drop
5149  (call $memcpy
5150  (i32.add
5151  (get_local $8)
5152  (i32.const 59)
5153  )
5154  (i32.add
5155  (get_local $8)
5156  (i32.const 192)
5157  )
5158  (i32.const 45)
5159  )
5160  )
5161  (call $_ZN8exchange19apply_exchange_sellENS_9SellOrderE
5162  (i32.add
5163  (get_local $8)
5164  (i32.const 59)
5165  )
5166  )
5167  (br $label$6)
5168  )
5169  (i64.store offset=184
5170  (get_local $8)
5171  (i64.const 0)
5172  )
5173  (i64.store offset=176
5174  (get_local $8)
5175  (i64.const 0)
5176  )
5177  (call $assert
5178  (i32.gt_u
5179  (call $readMessage
5180  (i32.add
5181  (get_local $8)
5182  (i32.const 176)
5183  )
5184  (i32.const 16)
5185  )
5186  (i32.const 15)
5187  )
5188  (i32.const 1424)
5189  )
5190  (i64.store
5191  (i32.add
5192  (get_local $8)
5193  (i32.const 112)
5194  )
5195  (i64.load offset=184
5196  (get_local $8)
5197  )
5198  )
5199  (i64.store offset=104
5200  (get_local $8)
5201  (i64.load offset=176
5202  (get_local $8)
5203  )
5204  )
5205  (call $_ZN8exchange25apply_exchange_cancel_buyENS_7OrderIDE
5206  (i32.add
5207  (get_local $8)
5208  (i32.const 104)
5209  )
5210  )
5211  (br $label$6)
5212  )
5213  (call $assert
5214  (i32.const 0)
5215  (i32.const 1456)
5216  )
5217  )
5218  (i32.store offset=4
5219  (i32.const 0)
5220  (i32.add
5221  (get_local $8)
5222  (i32.const 288)
5223  )
5224  )
5225  )
5226 )
5227 )=====";
const char * exchange_wast
Definition: exchange.wast.hpp:1
+Go to the documentation of this file.
1 const char* exchange_wast = R"=====(
2 (module
3  (type $FUNCSIG$ijjjii (func (param i64 i64 i64 i32 i32) (result i32)))
4  (type $FUNCSIG$vii (func (param i32 i32)))
5  (type $FUNCSIG$vi (func (param i32)))
6  (type $FUNCSIG$ijji (func (param i64 i64 i32) (result i32)))
7  (type $FUNCSIG$ijjii (func (param i64 i64 i32 i32) (result i32)))
8  (type $FUNCSIG$vj (func (param i64)))
9  (type $FUNCSIG$i (func (result i32)))
10  (type $FUNCSIG$iii (func (param i32 i32) (result i32)))
11  (type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
12  (import "env" "assert" (func $assert (param i32 i32)))
13  (import "env" "back_secondary_i128i128" (func $back_secondary_i128i128 (param i64 i64 i64 i32 i32) (result i32)))
14  (import "env" "diveq_i128" (func $diveq_i128 (param i32 i32)))
15  (import "env" "front_secondary_i128i128" (func $front_secondary_i128i128 (param i64 i64 i64 i32 i32) (result i32)))
16  (import "env" "load_i64" (func $load_i64 (param i64 i64 i64 i32 i32) (result i32)))
17  (import "env" "load_primary_i128i128" (func $load_primary_i128i128 (param i64 i64 i64 i32 i32) (result i32)))
18  (import "env" "memcpy" (func $memcpy (param i32 i32 i32) (result i32)))
19  (import "env" "multeq_i128" (func $multeq_i128 (param i32 i32)))
20  (import "env" "now" (func $now (result i32)))
21  (import "env" "printi" (func $printi (param i64)))
22  (import "env" "printi128" (func $printi128 (param i32)))
23  (import "env" "printn" (func $printn (param i64)))
24  (import "env" "prints" (func $prints (param i32)))
25  (import "env" "read_message" (func $read_message (param i32 i32) (result i32)))
26  (import "env" "remove_i128i128" (func $remove_i128i128 (param i64 i64 i32) (result i32)))
27  (import "env" "remove_i64" (func $remove_i64 (param i64 i64 i32) (result i32)))
28  (import "env" "require_auth" (func $require_auth (param i64)))
29  (import "env" "store_i128i128" (func $store_i128i128 (param i64 i64 i32 i32) (result i32)))
30  (import "env" "store_i64" (func $store_i64 (param i64 i64 i32 i32) (result i32)))
31  (table 0 anyfunc)
32  (memory $0 1)
33  (data (i32.const 4) "\10\n\00\00")
34  (data (i32.const 16) "exchange\00")
35  (data (i32.const 32) "integer overflow adding token balance\00")
36  (data (i32.const 80) "remove\00")
37  (data (i32.const 96) "store\00")
38  (data (i32.const 112) "integer underflow subtracting token balance\00")
39  (data (i32.const 160) "notified on transfer that is not relevant to this exchange\00")
40  (data (i32.const 224) "match bid: \00")
41  (data (i32.const 240) "{ quantity: \00")
42  (data (i32.const 256) ", price: \00")
43  (data (i32.const 272) " }\00")
44  (data (i32.const 288) "\nmatch ask: \00")
45  (data (i32.const 304) "\n\00")
46  (data (i32.const 320) "\n\nmatch bid: \00")
47  (data (i32.const 336) ":\00")
48  (data (i32.const 352) "match ask: \00")
49  (data (i32.const 368) "\n\n\00")
50  (data (i32.const 384) "operator/ \00")
51  (data (i32.const 400) " * \00")
52  (data (i32.const 416) " / \00")
53  (data (i32.const 432) "cast to 64 bit loss of precision\00")
54  (data (i32.const 480) "b: \00")
55  (data (i32.const 496) " \00")
56  (data (i32.const 512) " \n\00")
57  (data (i32.const 528) "operator* \00")
58  (data (i32.const 544) ".\00")
59  (data (i32.const 560) "/\00")
60  (data (i32.const 576) "invalid quantity\00")
61  (data (i32.const 608) "order expired\00")
62  (data (i32.const 624) " created bid for \00")
63  (data (i32.const 656) " currency at price: \00")
64  (data (i32.const 688) "order with this id already exists\00")
65  (data (i32.const 736) "/home/heifnerk/ext/eos/contracts/exchange/exchange.cpp\00")
66  (data (i32.const 800) "\n No asks found, saving buyer account and storing bid\n\00")
67  (data (i32.const 864) "order not completely filled\00")
68  (data (i32.const 896) "error storing record\00")
69  (data (i32.const 928) "ask: \00")
70  (data (i32.const 944) "bid: \00")
71  (data (i32.const 960) "lowest ask <= exchange_bid.at_price\n\00")
72  (data (i32.const 1008) "lowest_ask >= exchange_bid.at_price or buyer\'s bid has been filled\n\00")
73  (data (i32.const 1088) "saving buyer\'s account\n\00")
74  (data (i32.const 1120) " eos left over\00")
75  (data (i32.const 1136) "bid filled\n\00")
76  (data (i32.const 1152) " created sell for \00")
77  (data (i32.const 1184) "\n No bids found, saving seller account and storing ask\n\00")
78  (data (i32.const 1248) "\n bids found, lets see what matches\n\00")
79  (data (i32.const 1296) "saving ask\n\00")
80  (data (i32.const 1312) "ask filled\n\00")
81  (data (i32.const 1328) "bid with this id does not exists\00")
82  (data (i32.const 1376) "bid removed\n\00")
83  (data (i32.const 1392) "ask with this id does not exists\00")
84  (data (i32.const 1440) "ask removed\n\00")
85  (data (i32.const 1456) "message shorter than expected\00")
86  (data (i32.const 1488) "unknown action\00")
87  (data (i32.const 1504) "currency\00")
88  (data (i32.const 1520) "transfer\00")
89  (data (i32.const 1536) "eos\00")
90  (export "memory" (memory $0))
91  (export "_ZN8exchange23apply_currency_transferERKN8currency8transferE" (func $_ZN8exchange23apply_currency_transferERKN8currency8transferE))
92  (export "_ZN8exchange18apply_eos_transferERKN5eosio8transferE" (func $_ZN8exchange18apply_eos_transferERKN5eosio8transferE))
93  (export "_ZN8exchange5matchERNS_3bidERNS_7accountERNS_3askES3_" (func $_ZN8exchange5matchERNS_3bidERNS_7accountERNS_3askES3_))
94  (export "_ZN8exchange18apply_exchange_buyENS_9buy_orderE" (func $_ZN8exchange18apply_exchange_buyENS_9buy_orderE))
95  (export "_ZN8exchange19apply_exchange_sellENS_10sell_orderE" (func $_ZN8exchange19apply_exchange_sellENS_10sell_orderE))
96  (export "_ZN8exchange25apply_exchange_cancel_buyENS_8order_idE" (func $_ZN8exchange25apply_exchange_cancel_buyENS_8order_idE))
97  (export "_ZN8exchange26apply_exchange_cancel_sellENS_8order_idE" (func $_ZN8exchange26apply_exchange_cancel_sellENS_8order_idE))
98  (export "init" (func $init))
99  (export "apply" (func $apply))
100  (func $_ZN8exchange23apply_currency_transferERKN8currency8transferE (param $0 i32)
101  (local $1 i64)
102  (local $2 i32)
103  (local $3 i64)
104  (local $4 i32)
105  (local $5 i64)
106  (local $6 i64)
107  (local $7 i64)
108  (local $8 i64)
109  (local $9 i32)
110  (i32.store offset=4
111  (i32.const 0)
112  (tee_local $9
113  (i32.sub
114  (i32.load offset=4
115  (i32.const 0)
116  )
117  (i32.const 32)
118  )
119  )
120  )
121  (set_local $1
122  (i64.load offset=8
123  (get_local $0)
124  )
125  )
126  (set_local $6
127  (i64.const 0)
128  )
129  (set_local $5
130  (i64.const 59)
131  )
132  (set_local $4
133  (i32.const 16)
134  )
135  (set_local $7
136  (i64.const 0)
137  )
138  (loop $label$0
139  (block $label$1
140  (block $label$2
141  (block $label$3
142  (block $label$4
143  (block $label$5
144  (br_if $label$5
145  (i64.gt_u
146  (get_local $6)
147  (i64.const 7)
148  )
149  )
150  (br_if $label$4
151  (i32.gt_u
152  (i32.and
153  (i32.add
154  (tee_local $2
155  (i32.load8_s
156  (get_local $4)
157  )
158  )
159  (i32.const -97)
160  )
161  (i32.const 255)
162  )
163  (i32.const 25)
164  )
165  )
166  (set_local $2
167  (i32.add
168  (get_local $2)
169  (i32.const 165)
170  )
171  )
172  (br $label$3)
173  )
174  (set_local $8
175  (i64.const 0)
176  )
177  (br_if $label$2
178  (i64.le_u
179  (get_local $6)
180  (i64.const 11)
181  )
182  )
183  (br $label$1)
184  )
185  (set_local $2
186  (select
187  (i32.add
188  (get_local $2)
189  (i32.const 208)
190  )
191  (i32.const 0)
192  (i32.lt_u
193  (i32.and
194  (i32.add
195  (get_local $2)
196  (i32.const -49)
197  )
198  (i32.const 255)
199  )
200  (i32.const 5)
201  )
202  )
203  )
204  )
205  (set_local $8
206  (i64.shr_s
207  (i64.shl
208  (i64.extend_u/i32
209  (get_local $2)
210  )
211  (i64.const 56)
212  )
213  (i64.const 56)
214  )
215  )
216  )
217  (set_local $8
218  (i64.shl
219  (i64.and
220  (get_local $8)
221  (i64.const 31)
222  )
223  (i64.and
224  (get_local $5)
225  (i64.const 4294967295)
226  )
227  )
228  )
229  )
230  (set_local $4
231  (i32.add
232  (get_local $4)
233  (i32.const 1)
234  )
235  )
236  (set_local $6
237  (i64.add
238  (get_local $6)
239  (i64.const 1)
240  )
241  )
242  (set_local $7
243  (i64.or
244  (get_local $8)
245  (get_local $7)
246  )
247  )
248  (br_if $label$0
249  (i64.ne
250  (tee_local $5
251  (i64.add
252  (get_local $5)
253  (i64.const -5)
254  )
255  )
256  (i64.const -6)
257  )
258  )
259  )
260  (set_local $3
261  (i64.load
262  (get_local $0)
263  )
264  )
265  (block $label$6
266  (block $label$7
267  (block $label$8
268  (block $label$9
269  (br_if $label$9
270  (i64.ne
271  (get_local $1)
272  (get_local $7)
273  )
274  )
275  (i64.store offset=8
276  (get_local $9)
277  (i64.const 0)
278  )
279  (i64.store
280  (get_local $9)
281  (get_local $3)
282  )
283  (i64.store offset=16
284  (get_local $9)
285  (i64.const 0)
286  )
287  (i32.store offset=24
288  (get_local $9)
289  (i32.const 0)
290  )
291  (drop
292  (call $load_i64
293  (i64.const 6291761009417781248)
294  (i64.const 6291761009417781248)
295  (i64.const 3607749778735104000)
296  (get_local $9)
297  (i32.const 28)
298  )
299  )
300  (call $assert
301  (i64.ge_u
302  (i64.add
303  (tee_local $6
304  (i64.load offset=16
305  (get_local $0)
306  )
307  )
308  (i64.load offset=16
309  (get_local $9)
310  )
311  )
312  (get_local $6)
313  )
314  (i32.const 32)
315  )
316  (i64.store offset=16
317  (get_local $9)
318  (tee_local $6
319  (i64.add
320  (i64.load offset=16
321  (get_local $9)
322  )
323  (i64.load offset=16
324  (get_local $0)
325  )
326  )
327  )
328  )
329  (br_if $label$8
330  (i32.eqz
331  (i32.or
332  (i64.ne
333  (i64.or
334  (i64.load offset=8
335  (get_local $9)
336  )
337  (get_local $6)
338  )
339  (i64.const 0)
340  )
341  (i32.load offset=24
342  (get_local $9)
343  )
344  )
345  )
346  )
347  (call $prints
348  (i32.const 96)
349  )
350  (drop
351  (call $store_i64
352  (i64.const 6291761009417781248)
353  (i64.const 3607749778735104000)
354  (get_local $9)
355  (i32.const 28)
356  )
357  )
358  (br $label$6)
359  )
360  (set_local $6
361  (i64.const 0)
362  )
363  (set_local $5
364  (i64.const 59)
365  )
366  (set_local $4
367  (i32.const 16)
368  )
369  (set_local $7
370  (i64.const 0)
371  )
372  (loop $label$10
373  (block $label$11
374  (block $label$12
375  (block $label$13
376  (block $label$14
377  (block $label$15
378  (br_if $label$15
379  (i64.gt_u
380  (get_local $6)
381  (i64.const 7)
382  )
383  )
384  (br_if $label$14
385  (i32.gt_u
386  (i32.and
387  (i32.add
388  (tee_local $2
389  (i32.load8_s
390  (get_local $4)
391  )
392  )
393  (i32.const -97)
394  )
395  (i32.const 255)
396  )
397  (i32.const 25)
398  )
399  )
400  (set_local $2
401  (i32.add
402  (get_local $2)
403  (i32.const 165)
404  )
405  )
406  (br $label$13)
407  )
408  (set_local $8
409  (i64.const 0)
410  )
411  (br_if $label$12
412  (i64.le_u
413  (get_local $6)
414  (i64.const 11)
415  )
416  )
417  (br $label$11)
418  )
419  (set_local $2
420  (select
421  (i32.add
422  (get_local $2)
423  (i32.const 208)
424  )
425  (i32.const 0)
426  (i32.lt_u
427  (i32.and
428  (i32.add
429  (get_local $2)
430  (i32.const -49)
431  )
432  (i32.const 255)
433  )
434  (i32.const 5)
435  )
436  )
437  )
438  )
439  (set_local $8
440  (i64.shr_s
441  (i64.shl
442  (i64.extend_u/i32
443  (get_local $2)
444  )
445  (i64.const 56)
446  )
447  (i64.const 56)
448  )
449  )
450  )
451  (set_local $8
452  (i64.shl
453  (i64.and
454  (get_local $8)
455  (i64.const 31)
456  )
457  (i64.and
458  (get_local $5)
459  (i64.const 4294967295)
460  )
461  )
462  )
463  )
464  (set_local $4
465  (i32.add
466  (get_local $4)
467  (i32.const 1)
468  )
469  )
470  (set_local $6
471  (i64.add
472  (get_local $6)
473  (i64.const 1)
474  )
475  )
476  (set_local $7
477  (i64.or
478  (get_local $8)
479  (get_local $7)
480  )
481  )
482  (br_if $label$10
483  (i64.ne
484  (tee_local $5
485  (i64.add
486  (get_local $5)
487  (i64.const -5)
488  )
489  )
490  (i64.const -6)
491  )
492  )
493  )
494  (block $label$16
495  (br_if $label$16
496  (i64.ne
497  (get_local $3)
498  (get_local $7)
499  )
500  )
501  (call $require_auth
502  (get_local $1)
503  )
504  (set_local $6
505  (i64.load
506  (i32.add
507  (get_local $0)
508  (i32.const 8)
509  )
510  )
511  )
512  (i64.store offset=8
513  (get_local $9)
514  (i64.const 0)
515  )
516  (i64.store
517  (get_local $9)
518  (get_local $6)
519  )
520  (i64.store offset=16
521  (get_local $9)
522  (i64.const 0)
523  )
524  (i32.store offset=24
525  (get_local $9)
526  (i32.const 0)
527  )
528  (drop
529  (call $load_i64
530  (i64.const 6291761009417781248)
531  (i64.const 6291761009417781248)
532  (i64.const 3607749778735104000)
533  (get_local $9)
534  (i32.const 28)
535  )
536  )
537  (call $assert
538  (i64.ge_u
539  (i64.load offset=16
540  (get_local $9)
541  )
542  (i64.load offset=16
543  (get_local $0)
544  )
545  )
546  (i32.const 112)
547  )
548  (i64.store offset=16
549  (get_local $9)
550  (tee_local $6
551  (i64.sub
552  (i64.load offset=16
553  (get_local $9)
554  )
555  (i64.load offset=16
556  (get_local $0)
557  )
558  )
559  )
560  )
561  (br_if $label$7
562  (i32.eqz
563  (i32.or
564  (i64.ne
565  (i64.or
566  (i64.load offset=8
567  (get_local $9)
568  )
569  (get_local $6)
570  )
571  (i64.const 0)
572  )
573  (i32.load offset=24
574  (get_local $9)
575  )
576  )
577  )
578  )
579  (call $prints
580  (i32.const 96)
581  )
582  (drop
583  (call $store_i64
584  (i64.const 6291761009417781248)
585  (i64.const 3607749778735104000)
586  (get_local $9)
587  (i32.const 28)
588  )
589  )
590  (br $label$6)
591  )
592  (call $assert
593  (i32.const 0)
594  (i32.const 160)
595  )
596  (br $label$6)
597  )
598  (call $prints
599  (i32.const 80)
600  )
601  (drop
602  (call $remove_i64
603  (i64.const 6291761009417781248)
604  (i64.const 3607749778735104000)
605  (get_local $9)
606  )
607  )
608  (br $label$6)
609  )
610  (call $prints
611  (i32.const 80)
612  )
613  (drop
614  (call $remove_i64
615  (i64.const 6291761009417781248)
616  (i64.const 3607749778735104000)
617  (get_local $9)
618  )
619  )
620  )
621  (i32.store offset=4
622  (i32.const 0)
623  (i32.add
624  (get_local $9)
625  (i32.const 32)
626  )
627  )
628  )
629  (func $_ZN8exchange18apply_eos_transferERKN5eosio8transferE (param $0 i32)
630  (local $1 i64)
631  (local $2 i32)
632  (local $3 i64)
633  (local $4 i32)
634  (local $5 i64)
635  (local $6 i64)
636  (local $7 i64)
637  (local $8 i64)
638  (local $9 i32)
639  (i32.store offset=4
640  (i32.const 0)
641  (tee_local $9
642  (i32.sub
643  (i32.load offset=4
644  (i32.const 0)
645  )
646  (i32.const 32)
647  )
648  )
649  )
650  (set_local $1
651  (i64.load offset=8 align=1
652  (get_local $0)
653  )
654  )
655  (set_local $6
656  (i64.const 0)
657  )
658  (set_local $5
659  (i64.const 59)
660  )
661  (set_local $4
662  (i32.const 16)
663  )
664  (set_local $7
665  (i64.const 0)
666  )
667  (loop $label$0
668  (block $label$1
669  (block $label$2
670  (block $label$3
671  (block $label$4
672  (block $label$5
673  (br_if $label$5
674  (i64.gt_u
675  (get_local $6)
676  (i64.const 7)
677  )
678  )
679  (br_if $label$4
680  (i32.gt_u
681  (i32.and
682  (i32.add
683  (tee_local $2
684  (i32.load8_s
685  (get_local $4)
686  )
687  )
688  (i32.const -97)
689  )
690  (i32.const 255)
691  )
692  (i32.const 25)
693  )
694  )
695  (set_local $2
696  (i32.add
697  (get_local $2)
698  (i32.const 165)
699  )
700  )
701  (br $label$3)
702  )
703  (set_local $8
704  (i64.const 0)
705  )
706  (br_if $label$2
707  (i64.le_u
708  (get_local $6)
709  (i64.const 11)
710  )
711  )
712  (br $label$1)
713  )
714  (set_local $2
715  (select
716  (i32.add
717  (get_local $2)
718  (i32.const 208)
719  )
720  (i32.const 0)
721  (i32.lt_u
722  (i32.and
723  (i32.add
724  (get_local $2)
725  (i32.const -49)
726  )
727  (i32.const 255)
728  )
729  (i32.const 5)
730  )
731  )
732  )
733  )
734  (set_local $8
735  (i64.shr_s
736  (i64.shl
737  (i64.extend_u/i32
738  (get_local $2)
739  )
740  (i64.const 56)
741  )
742  (i64.const 56)
743  )
744  )
745  )
746  (set_local $8
747  (i64.shl
748  (i64.and
749  (get_local $8)
750  (i64.const 31)
751  )
752  (i64.and
753  (get_local $5)
754  (i64.const 4294967295)
755  )
756  )
757  )
758  )
759  (set_local $4
760  (i32.add
761  (get_local $4)
762  (i32.const 1)
763  )
764  )
765  (set_local $6
766  (i64.add
767  (get_local $6)
768  (i64.const 1)
769  )
770  )
771  (set_local $7
772  (i64.or
773  (get_local $8)
774  (get_local $7)
775  )
776  )
777  (br_if $label$0
778  (i64.ne
779  (tee_local $5
780  (i64.add
781  (get_local $5)
782  (i64.const -5)
783  )
784  )
785  (i64.const -6)
786  )
787  )
788  )
789  (set_local $3
790  (i64.load align=1
791  (get_local $0)
792  )
793  )
794  (block $label$6
795  (block $label$7
796  (block $label$8
797  (block $label$9
798  (br_if $label$9
799  (i64.ne
800  (get_local $1)
801  (get_local $7)
802  )
803  )
804  (i64.store offset=8
805  (get_local $9)
806  (i64.const 0)
807  )
808  (i64.store
809  (get_local $9)
810  (get_local $3)
811  )
812  (i64.store offset=16
813  (get_local $9)
814  (i64.const 0)
815  )
816  (i32.store offset=24
817  (get_local $9)
818  (i32.const 0)
819  )
820  (drop
821  (call $load_i64
822  (i64.const 6291761009417781248)
823  (i64.const 6291761009417781248)
824  (i64.const 3607749778735104000)
825  (get_local $9)
826  (i32.const 28)
827  )
828  )
829  (call $assert
830  (i64.ge_u
831  (i64.add
832  (tee_local $6
833  (i64.load offset=16
834  (get_local $0)
835  )
836  )
837  (i64.load offset=8
838  (get_local $9)
839  )
840  )
841  (get_local $6)
842  )
843  (i32.const 32)
844  )
845  (i64.store offset=8
846  (get_local $9)
847  (tee_local $6
848  (i64.add
849  (i64.load offset=8
850  (get_local $9)
851  )
852  (i64.load offset=16
853  (get_local $0)
854  )
855  )
856  )
857  )
858  (br_if $label$8
859  (i32.eqz
860  (i32.or
861  (i64.ne
862  (i64.or
863  (i64.load offset=16
864  (get_local $9)
865  )
866  (get_local $6)
867  )
868  (i64.const 0)
869  )
870  (i32.load offset=24
871  (get_local $9)
872  )
873  )
874  )
875  )
876  (call $prints
877  (i32.const 96)
878  )
879  (drop
880  (call $store_i64
881  (i64.const 6291761009417781248)
882  (i64.const 3607749778735104000)
883  (get_local $9)
884  (i32.const 28)
885  )
886  )
887  (br $label$6)
888  )
889  (set_local $6
890  (i64.const 0)
891  )
892  (set_local $5
893  (i64.const 59)
894  )
895  (set_local $4
896  (i32.const 16)
897  )
898  (set_local $7
899  (i64.const 0)
900  )
901  (loop $label$10
902  (block $label$11
903  (block $label$12
904  (block $label$13
905  (block $label$14
906  (block $label$15
907  (br_if $label$15
908  (i64.gt_u
909  (get_local $6)
910  (i64.const 7)
911  )
912  )
913  (br_if $label$14
914  (i32.gt_u
915  (i32.and
916  (i32.add
917  (tee_local $2
918  (i32.load8_s
919  (get_local $4)
920  )
921  )
922  (i32.const -97)
923  )
924  (i32.const 255)
925  )
926  (i32.const 25)
927  )
928  )
929  (set_local $2
930  (i32.add
931  (get_local $2)
932  (i32.const 165)
933  )
934  )
935  (br $label$13)
936  )
937  (set_local $8
938  (i64.const 0)
939  )
940  (br_if $label$12
941  (i64.le_u
942  (get_local $6)
943  (i64.const 11)
944  )
945  )
946  (br $label$11)
947  )
948  (set_local $2
949  (select
950  (i32.add
951  (get_local $2)
952  (i32.const 208)
953  )
954  (i32.const 0)
955  (i32.lt_u
956  (i32.and
957  (i32.add
958  (get_local $2)
959  (i32.const -49)
960  )
961  (i32.const 255)
962  )
963  (i32.const 5)
964  )
965  )
966  )
967  )
968  (set_local $8
969  (i64.shr_s
970  (i64.shl
971  (i64.extend_u/i32
972  (get_local $2)
973  )
974  (i64.const 56)
975  )
976  (i64.const 56)
977  )
978  )
979  )
980  (set_local $8
981  (i64.shl
982  (i64.and
983  (get_local $8)
984  (i64.const 31)
985  )
986  (i64.and
987  (get_local $5)
988  (i64.const 4294967295)
989  )
990  )
991  )
992  )
993  (set_local $4
994  (i32.add
995  (get_local $4)
996  (i32.const 1)
997  )
998  )
999  (set_local $6
1000  (i64.add
1001  (get_local $6)
1002  (i64.const 1)
1003  )
1004  )
1005  (set_local $7
1006  (i64.or
1007  (get_local $8)
1008  (get_local $7)
1009  )
1010  )
1011  (br_if $label$10
1012  (i64.ne
1013  (tee_local $5
1014  (i64.add
1015  (get_local $5)
1016  (i64.const -5)
1017  )
1018  )
1019  (i64.const -6)
1020  )
1021  )
1022  )
1023  (block $label$16
1024  (br_if $label$16
1025  (i64.ne
1026  (get_local $3)
1027  (get_local $7)
1028  )
1029  )
1030  (call $require_auth
1031  (get_local $1)
1032  )
1033  (set_local $6
1034  (i64.load align=1
1035  (i32.add
1036  (get_local $0)
1037  (i32.const 8)
1038  )
1039  )
1040  )
1041  (i64.store offset=8
1042  (get_local $9)
1043  (i64.const 0)
1044  )
1045  (i64.store
1046  (get_local $9)
1047  (get_local $6)
1048  )
1049  (i64.store offset=16
1050  (get_local $9)
1051  (i64.const 0)
1052  )
1053  (i32.store offset=24
1054  (get_local $9)
1055  (i32.const 0)
1056  )
1057  (drop
1058  (call $load_i64
1059  (i64.const 6291761009417781248)
1060  (i64.const 6291761009417781248)
1061  (i64.const 3607749778735104000)
1062  (get_local $9)
1063  (i32.const 28)
1064  )
1065  )
1066  (call $assert
1067  (i64.ge_u
1068  (i64.load offset=8
1069  (get_local $9)
1070  )
1071  (i64.load offset=16
1072  (get_local $0)
1073  )
1074  )
1075  (i32.const 112)
1076  )
1077  (i64.store offset=8
1078  (get_local $9)
1079  (tee_local $6
1080  (i64.sub
1081  (i64.load offset=8
1082  (get_local $9)
1083  )
1084  (i64.load offset=16
1085  (get_local $0)
1086  )
1087  )
1088  )
1089  )
1090  (br_if $label$7
1091  (i32.eqz
1092  (i32.or
1093  (i64.ne
1094  (i64.or
1095  (i64.load offset=16
1096  (get_local $9)
1097  )
1098  (get_local $6)
1099  )
1100  (i64.const 0)
1101  )
1102  (i32.load offset=24
1103  (get_local $9)
1104  )
1105  )
1106  )
1107  )
1108  (call $prints
1109  (i32.const 96)
1110  )
1111  (drop
1112  (call $store_i64
1113  (i64.const 6291761009417781248)
1114  (i64.const 3607749778735104000)
1115  (get_local $9)
1116  (i32.const 28)
1117  )
1118  )
1119  (br $label$6)
1120  )
1121  (call $assert
1122  (i32.const 0)
1123  (i32.const 160)
1124  )
1125  (br $label$6)
1126  )
1127  (call $prints
1128  (i32.const 80)
1129  )
1130  (drop
1131  (call $remove_i64
1132  (i64.const 6291761009417781248)
1133  (i64.const 3607749778735104000)
1134  (get_local $9)
1135  )
1136  )
1137  (br $label$6)
1138  )
1139  (call $prints
1140  (i32.const 80)
1141  )
1142  (drop
1143  (call $remove_i64
1144  (i64.const 6291761009417781248)
1145  (i64.const 3607749778735104000)
1146  (get_local $9)
1147  )
1148  )
1149  )
1150  (i32.store offset=4
1151  (i32.const 0)
1152  (i32.add
1153  (get_local $9)
1154  (i32.const 32)
1155  )
1156  )
1157  )
1158  (func $_ZN8exchange5matchERNS_3bidERNS_7accountERNS_3askES3_ (param $0 i32) (param $1 i32) (param $2 i32) (param $3 i32)
1159  (local $4 i32)
1160  (local $5 i32)
1161  (local $6 i64)
1162  (local $7 i64)
1163  (local $8 i64)
1164  (local $9 i64)
1165  (local $10 i64)
1166  (local $11 i64)
1167  (local $12 i32)
1168  (i32.store offset=4
1169  (i32.const 0)
1170  (tee_local $12
1171  (i32.sub
1172  (i32.load offset=4
1173  (i32.const 0)
1174  )
1175  (i32.const 16)
1176  )
1177  )
1178  )
1179  (set_local $6
1180  (i64.load align=1
1181  (i32.add
1182  (get_local $2)
1183  (i32.const 24)
1184  )
1185  )
1186  )
1187  (set_local $11
1188  (i64.load align=1
1189  (i32.add
1190  (get_local $0)
1191  (i32.const 24)
1192  )
1193  )
1194  )
1195  (set_local $7
1196  (i64.load offset=16 align=1
1197  (get_local $2)
1198  )
1199  )
1200  (set_local $8
1201  (i64.load offset=32 align=1
1202  (get_local $2)
1203  )
1204  )
1205  (set_local $9
1206  (i64.load offset=16 align=1
1207  (get_local $0)
1208  )
1209  )
1210  (set_local $10
1211  (i64.load offset=32 align=1
1212  (get_local $0)
1213  )
1214  )
1215  (call $prints
1216  (i32.const 224)
1217  )
1218  (call $_ZN5eosio5printIPKcJNS_5tokenIyLy6138406292105986048EEES2_NS_5priceIS4_NS3_IyLy5093418677655568384EEEEES2_EEEvT_DpT0_
1219  (i32.const 240)
1220  (get_local $10)
1221  (i32.const 256)
1222  (get_local $9)
1223  (get_local $11)
1224  (i32.const 272)
1225  )
1226  (call $prints
1227  (i32.const 288)
1228  )
1229  (call $_ZN5eosio5printIPKcJNS_5tokenIyLy5093418677655568384EEES2_NS_5priceINS3_IyLy6138406292105986048EEES4_EES2_EEEvT_DpT0_
1230  (i32.const 240)
1231  (get_local $8)
1232  (i32.const 256)
1233  (get_local $7)
1234  (get_local $6)
1235  (i32.const 272)
1236  )
1237  (call $prints
1238  (i32.const 304)
1239  )
1240  (i64.store offset=8
1241  (get_local $12)
1242  (tee_local $11
1243  (call $_ZN5eosiomlERKNS_5tokenIyLy5093418677655568384EEERKNS_5priceINS0_IyLy6138406292105986048EEES1_EE
1244  (tee_local $4
1245  (i32.add
1246  (get_local $2)
1247  (i32.const 32)
1248  )
1249  )
1250  (tee_local $5
1251  (i32.add
1252  (get_local $2)
1253  (i32.const 16)
1254  )
1255  )
1256  )
1257  )
1258  )
1259  (block $label$0
1260  (block $label$1
1261  (br_if $label$1
1262  (i64.ne
1263  (get_local $11)
1264  (tee_local $6
1265  (i64.load
1266  (select
1267  (i32.add
1268  (get_local $12)
1269  (i32.const 8)
1270  )
1271  (i32.add
1272  (get_local $0)
1273  (i32.const 32)
1274  )
1275  (i64.lt_u
1276  (get_local $11)
1277  (i64.load offset=32
1278  (get_local $0)
1279  )
1280  )
1281  )
1282  )
1283  )
1284  )
1285  )
1286  (set_local $11
1287  (i64.load
1288  (get_local $4)
1289  )
1290  )
1291  (br $label$0)
1292  )
1293  (set_local $11
1294  (call $_ZN5eosiodvENS_5tokenIyLy6138406292105986048EEERKNS_5priceIS1_NS0_IyLy5093418677655568384EEEEE
1295  (get_local $6)
1296  (get_local $5)
1297  )
1298  )
1299  )
1300  (set_local $7
1301  (i64.load offset=8 align=1
1302  (get_local $2)
1303  )
1304  )
1305  (set_local $8
1306  (i64.load align=1
1307  (get_local $2)
1308  )
1309  )
1310  (set_local $9
1311  (i64.load offset=8 align=1
1312  (get_local $0)
1313  )
1314  )
1315  (set_local $10
1316  (i64.load align=1
1317  (get_local $0)
1318  )
1319  )
1320  (call $prints
1321  (i32.const 320)
1322  )
1323  (call $printn
1324  (get_local $10)
1325  )
1326  (call $prints
1327  (i32.const 336)
1328  )
1329  (call $printi
1330  (get_local $9)
1331  )
1332  (call $prints
1333  (i32.const 352)
1334  )
1335  (call $printn
1336  (get_local $8)
1337  )
1338  (call $prints
1339  (i32.const 336)
1340  )
1341  (call $printi
1342  (get_local $7)
1343  )
1344  (call $prints
1345  (i32.const 368)
1346  )
1347  (call $assert
1348  (i64.ge_u
1349  (i64.load
1350  (tee_local $0
1351  (i32.add
1352  (get_local $0)
1353  (i32.const 32)
1354  )
1355  )
1356  )
1357  (get_local $6)
1358  )
1359  (i32.const 112)
1360  )
1361  (i64.store
1362  (get_local $0)
1363  (i64.sub
1364  (i64.load
1365  (get_local $0)
1366  )
1367  (get_local $6)
1368  )
1369  )
1370  (call $assert
1371  (i64.ge_u
1372  (i64.add
1373  (i64.load offset=8
1374  (get_local $3)
1375  )
1376  (get_local $6)
1377  )
1378  (get_local $6)
1379  )
1380  (i32.const 32)
1381  )
1382  (i64.store offset=8
1383  (get_local $3)
1384  (i64.add
1385  (i64.load offset=8
1386  (get_local $3)
1387  )
1388  (get_local $6)
1389  )
1390  )
1391  (call $assert
1392  (i64.ge_u
1393  (i64.load
1394  (tee_local $0
1395  (i32.add
1396  (get_local $2)
1397  (i32.const 32)
1398  )
1399  )
1400  )
1401  (get_local $11)
1402  )
1403  (i32.const 112)
1404  )
1405  (i64.store
1406  (get_local $0)
1407  (i64.sub
1408  (i64.load
1409  (get_local $0)
1410  )
1411  (get_local $11)
1412  )
1413  )
1414  (call $assert
1415  (i64.ge_u
1416  (i64.add
1417  (i64.load offset=16
1418  (get_local $1)
1419  )
1420  (get_local $11)
1421  )
1422  (get_local $11)
1423  )
1424  (i32.const 32)
1425  )
1426  (i64.store offset=16
1427  (get_local $1)
1428  (i64.add
1429  (i64.load offset=16
1430  (get_local $1)
1431  )
1432  (get_local $11)
1433  )
1434  )
1435  (i32.store offset=4
1436  (i32.const 0)
1437  (i32.add
1438  (get_local $12)
1439  (i32.const 16)
1440  )
1441  )
1442  )
1443  (func $_ZN5eosio5printIPKcJNS_5tokenIyLy6138406292105986048EEES2_NS_5priceIS4_NS3_IyLy5093418677655568384EEEEES2_EEEvT_DpT0_ (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i64) (param $5 i32)
1444  (local $6 i32)
1445  (i32.store offset=4
1446  (i32.const 0)
1447  (tee_local $6
1448  (i32.sub
1449  (i32.load offset=4
1450  (i32.const 0)
1451  )
1452  (i32.const 16)
1453  )
1454  )
1455  )
1456  (call $prints
1457  (get_local $0)
1458  )
1459  (call $printi
1460  (get_local $1)
1461  )
1462  (call $prints
1463  (i32.const 496)
1464  )
1465  (call $printn
1466  (i64.const 6138406292105986048)
1467  )
1468  (call $prints
1469  (get_local $2)
1470  )
1471  (i64.store offset=8
1472  (get_local $6)
1473  (get_local $4)
1474  )
1475  (i64.store
1476  (get_local $6)
1477  (get_local $3)
1478  )
1479  (call $printi128
1480  (get_local $6)
1481  )
1482  (call $prints
1483  (i32.const 544)
1484  )
1485  (call $prints
1486  (i32.const 496)
1487  )
1488  (call $printn
1489  (i64.const 6138406292105986048)
1490  )
1491  (call $prints
1492  (i32.const 560)
1493  )
1494  (call $printn
1495  (i64.const 5093418677655568384)
1496  )
1497  (call $prints
1498  (get_local $5)
1499  )
1500  (i32.store offset=4
1501  (i32.const 0)
1502  (i32.add
1503  (get_local $6)
1504  (i32.const 16)
1505  )
1506  )
1507  )
1508  (func $_ZN5eosio5printIPKcJNS_5tokenIyLy5093418677655568384EEES2_NS_5priceINS3_IyLy6138406292105986048EEES4_EES2_EEEvT_DpT0_ (param $0 i32) (param $1 i64) (param $2 i32) (param $3 i64) (param $4 i64) (param $5 i32)
1509  (local $6 i32)
1510  (i32.store offset=4
1511  (i32.const 0)
1512  (tee_local $6
1513  (i32.sub
1514  (i32.load offset=4
1515  (i32.const 0)
1516  )
1517  (i32.const 16)
1518  )
1519  )
1520  )
1521  (call $prints
1522  (get_local $0)
1523  )
1524  (call $printi
1525  (get_local $1)
1526  )
1527  (call $prints
1528  (i32.const 496)
1529  )
1530  (call $printn
1531  (i64.const 5093418677655568384)
1532  )
1533  (call $prints
1534  (get_local $2)
1535  )
1536  (i64.store offset=8
1537  (get_local $6)
1538  (get_local $4)
1539  )
1540  (i64.store
1541  (get_local $6)
1542  (get_local $3)
1543  )
1544  (call $printi128
1545  (get_local $6)
1546  )
1547  (call $prints
1548  (i32.const 544)
1549  )
1550  (call $prints
1551  (i32.const 496)
1552  )
1553  (call $printn
1554  (i64.const 6138406292105986048)
1555  )
1556  (call $prints
1557  (i32.const 560)
1558  )
1559  (call $printn
1560  (i64.const 5093418677655568384)
1561  )
1562  (call $prints
1563  (get_local $5)
1564  )
1565  (i32.store offset=4
1566  (i32.const 0)
1567  (i32.add
1568  (get_local $6)
1569  (i32.const 16)
1570  )
1571  )
1572  )
1573  (func $_ZN5eosiomlERKNS_5tokenIyLy5093418677655568384EEERKNS_5priceINS0_IyLy6138406292105986048EEES1_EE (param $0 i32) (param $1 i32) (result i64)
1574  (local $2 i64)
1575  (local $3 i64)
1576  (local $4 i64)
1577  (local $5 i32)
1578  (i32.store offset=4
1579  (i32.const 0)
1580  (tee_local $5
1581  (i32.sub
1582  (i32.load offset=4
1583  (i32.const 0)
1584  )
1585  (i32.const 32)
1586  )
1587  )
1588  )
1589  (set_local $2
1590  (i64.load
1591  (get_local $0)
1592  )
1593  )
1594  (call $prints
1595  (i32.const 480)
1596  )
1597  (call $printi
1598  (get_local $2)
1599  )
1600  (call $prints
1601  (i32.const 496)
1602  )
1603  (call $printn
1604  (i64.const 5093418677655568384)
1605  )
1606  (call $prints
1607  (i32.const 512)
1608  )
1609  (set_local $2
1610  (i64.load
1611  (i32.add
1612  (get_local $1)
1613  (i32.const 8)
1614  )
1615  )
1616  )
1617  (set_local $3
1618  (i64.load
1619  (get_local $1)
1620  )
1621  )
1622  (set_local $4
1623  (i64.load
1624  (get_local $0)
1625  )
1626  )
1627  (call $prints
1628  (i32.const 528)
1629  )
1630  (i64.store offset=24
1631  (get_local $5)
1632  (i64.const 0)
1633  )
1634  (i64.store offset=16
1635  (get_local $5)
1636  (get_local $4)
1637  )
1638  (call $printi128
1639  (i32.add
1640  (get_local $5)
1641  (i32.const 16)
1642  )
1643  )
1644  (call $prints
1645  (i32.const 400)
1646  )
1647  (i64.store offset=24
1648  (get_local $5)
1649  (get_local $2)
1650  )
1651  (i64.store offset=16
1652  (get_local $5)
1653  (get_local $3)
1654  )
1655  (call $printi128
1656  (i32.add
1657  (get_local $5)
1658  (i32.const 16)
1659  )
1660  )
1661  (call $prints
1662  (i32.const 416)
1663  )
1664  (call $printi
1665  (i64.const 1000000000000000)
1666  )
1667  (call $prints
1668  (i32.const 304)
1669  )
1670  (set_local $2
1671  (i64.load
1672  (get_local $0)
1673  )
1674  )
1675  (i64.store offset=24
1676  (get_local $5)
1677  (i64.const 0)
1678  )
1679  (i64.store offset=16
1680  (get_local $5)
1681  (get_local $2)
1682  )
1683  (call $multeq_i128
1684  (i32.add
1685  (get_local $5)
1686  (i32.const 16)
1687  )
1688  (get_local $1)
1689  )
1690  (set_local $2
1691  (i64.load offset=16
1692  (get_local $5)
1693  )
1694  )
1695  (set_local $3
1696  (i64.load offset=24
1697  (get_local $5)
1698  )
1699  )
1700  (i64.store offset=8
1701  (get_local $5)
1702  (i64.const 0)
1703  )
1704  (i64.store
1705  (get_local $5)
1706  (i64.const 1000000000000000)
1707  )
1708  (i64.store offset=24
1709  (get_local $5)
1710  (get_local $3)
1711  )
1712  (i64.store offset=16
1713  (get_local $5)
1714  (get_local $2)
1715  )
1716  (call $diveq_i128
1717  (i32.add
1718  (get_local $5)
1719  (i32.const 16)
1720  )
1721  (get_local $5)
1722  )
1723  (set_local $2
1724  (i64.load offset=16
1725  (get_local $5)
1726  )
1727  )
1728  (call $assert
1729  (i64.eqz
1730  (i64.load offset=24
1731  (get_local $5)
1732  )
1733  )
1734  (i32.const 432)
1735  )
1736  (i32.store offset=4
1737  (i32.const 0)
1738  (i32.add
1739  (get_local $5)
1740  (i32.const 32)
1741  )
1742  )
1743  (get_local $2)
1744  )
1745  (func $_ZN5eosiodvENS_5tokenIyLy6138406292105986048EEERKNS_5priceIS1_NS0_IyLy5093418677655568384EEEEE (param $0 i64) (param $1 i32) (result i64)
1746  (local $2 i64)
1747  (local $3 i64)
1748  (local $4 i32)
1749  (i32.store offset=4
1750  (i32.const 0)
1751  (tee_local $4
1752  (i32.sub
1753  (i32.load offset=4
1754  (i32.const 0)
1755  )
1756  (i32.const 32)
1757  )
1758  )
1759  )
1760  (set_local $2
1761  (i64.load
1762  (i32.add
1763  (get_local $1)
1764  (i32.const 8)
1765  )
1766  )
1767  )
1768  (set_local $3
1769  (i64.load
1770  (get_local $1)
1771  )
1772  )
1773  (call $prints
1774  (i32.const 384)
1775  )
1776  (i64.store offset=24
1777  (get_local $4)
1778  (i64.const 0)
1779  )
1780  (i64.store offset=16
1781  (get_local $4)
1782  (get_local $0)
1783  )
1784  (call $printi128
1785  (i32.add
1786  (get_local $4)
1787  (i32.const 16)
1788  )
1789  )
1790  (call $prints
1791  (i32.const 400)
1792  )
1793  (i64.store offset=24
1794  (get_local $4)
1795  (i64.const 0)
1796  )
1797  (i64.store offset=16
1798  (get_local $4)
1799  (i64.const 1000000000000000)
1800  )
1801  (call $printi128
1802  (i32.add
1803  (get_local $4)
1804  (i32.const 16)
1805  )
1806  )
1807  (call $prints
1808  (i32.const 416)
1809  )
1810  (i64.store offset=24
1811  (get_local $4)
1812  (get_local $2)
1813  )
1814  (i64.store offset=16
1815  (get_local $4)
1816  (get_local $3)
1817  )
1818  (call $printi128
1819  (i32.add
1820  (get_local $4)
1821  (i32.const 16)
1822  )
1823  )
1824  (call $prints
1825  (i32.const 304)
1826  )
1827  (i64.store offset=8
1828  (get_local $4)
1829  (i64.const 0)
1830  )
1831  (i64.store
1832  (get_local $4)
1833  (i64.const 1000000000000000)
1834  )
1835  (i64.store offset=24
1836  (get_local $4)
1837  (i64.const 0)
1838  )
1839  (i64.store offset=16
1840  (get_local $4)
1841  (get_local $0)
1842  )
1843  (call $multeq_i128
1844  (i32.add
1845  (get_local $4)
1846  (i32.const 16)
1847  )
1848  (get_local $4)
1849  )
1850  (set_local $0
1851  (i64.load offset=16
1852  (get_local $4)
1853  )
1854  )
1855  (i64.store offset=24
1856  (get_local $4)
1857  (i64.load offset=24
1858  (get_local $4)
1859  )
1860  )
1861  (i64.store offset=16
1862  (get_local $4)
1863  (get_local $0)
1864  )
1865  (call $diveq_i128
1866  (i32.add
1867  (get_local $4)
1868  (i32.const 16)
1869  )
1870  (get_local $1)
1871  )
1872  (set_local $0
1873  (i64.load offset=16
1874  (get_local $4)
1875  )
1876  )
1877  (call $assert
1878  (i64.eqz
1879  (i64.load offset=24
1880  (get_local $4)
1881  )
1882  )
1883  (i32.const 432)
1884  )
1885  (i32.store offset=4
1886  (i32.const 0)
1887  (i32.add
1888  (get_local $4)
1889  (i32.const 32)
1890  )
1891  )
1892  (get_local $0)
1893  )
1894  (func $_ZN8exchange18apply_exchange_buyENS_9buy_orderE (param $0 i32)
1895  (local $1 i64)
1896  (local $2 i64)
1897  (local $3 i32)
1898  (local $4 i32)
1899  (local $5 i32)
1900  (local $6 i32)
1901  (local $7 i32)
1902  (local $8 i32)
1903  (local $9 i32)
1904  (local $10 i32)
1905  (local $11 i32)
1906  (local $12 i32)
1907  (local $13 i64)
1908  (local $14 i64)
1909  (local $15 i32)
1910  (i32.store offset=4
1911  (i32.const 0)
1912  (tee_local $15
1913  (i32.sub
1914  (i32.load offset=4
1915  (i32.const 0)
1916  )
1917  (i32.const 192)
1918  )
1919  )
1920  )
1921  (call $require_auth
1922  (tee_local $13
1923  (i64.load align=1
1924  (get_local $0)
1925  )
1926  )
1927  )
1928  (call $assert
1929  (i64.ne
1930  (tee_local $14
1931  (i64.load offset=32
1932  (get_local $0)
1933  )
1934  )
1935  (i64.const 0)
1936  )
1937  (i32.const 576)
1938  )
1939  (call $assert
1940  (i32.gt_u
1941  (i32.load offset=40 align=1
1942  (get_local $0)
1943  )
1944  (call $now)
1945  )
1946  (i32.const 608)
1947  )
1948  (set_local $1
1949  (i64.load align=1
1950  (tee_local $7
1951  (i32.add
1952  (get_local $0)
1953  (i32.const 24)
1954  )
1955  )
1956  )
1957  )
1958  (set_local $2
1959  (i64.load offset=16 align=1
1960  (get_local $0)
1961  )
1962  )
1963  (call $printn
1964  (get_local $13)
1965  )
1966  (call $_ZN5eosio5printIPKcJNS_5tokenIyLy6138406292105986048EEES2_NS_5priceIS4_NS3_IyLy5093418677655568384EEEEES2_EEEvT_DpT0_
1967  (i32.const 624)
1968  (get_local $14)
1969  (i32.const 656)
1970  (get_local $2)
1971  (get_local $1)
1972  (i32.const 304)
1973  )
1974  (i64.store
1975  (i32.add
1976  (i32.add
1977  (get_local $15)
1978  (i32.const 144)
1979  )
1980  (i32.const 24)
1981  )
1982  (i64.const 0)
1983  )
1984  (i32.store
1985  (i32.add
1986  (i32.add
1987  (get_local $15)
1988  (i32.const 144)
1989  )
1990  (i32.const 12)
1991  )
1992  (i32.load
1993  (i32.add
1994  (get_local $0)
1995  (i32.const 12)
1996  )
1997  )
1998  )
1999  (i32.store
2000  (i32.add
2001  (i32.add
2002  (get_local $15)
2003  (i32.const 144)
2004  )
2005  (i32.const 8)
2006  )
2007  (i32.load
2008  (i32.add
2009  (get_local $0)
2010  (i32.const 8)
2011  )
2012  )
2013  )
2014  (i64.store offset=160
2015  (get_local $15)
2016  (i64.const 1)
2017  )
2018  (i64.store offset=176
2019  (get_local $15)
2020  (i64.const 0)
2021  )
2022  (i32.store offset=148
2023  (get_local $15)
2024  (i32.load
2025  (i32.add
2026  (get_local $0)
2027  (i32.const 4)
2028  )
2029  )
2030  )
2031  (i32.store offset=144
2032  (get_local $15)
2033  (i32.load
2034  (get_local $0)
2035  )
2036  )
2037  (call $assert
2038  (i32.ne
2039  (call $load_primary_i128i128
2040  (i64.const 6291761009417781248)
2041  (i64.const 6291761009417781248)
2042  (i64.const 4292915607302569984)
2043  (i32.add
2044  (get_local $15)
2045  (i32.const 144)
2046  )
2047  (i32.const 44)
2048  )
2049  (i32.const 44)
2050  )
2051  (i32.const 688)
2052  )
2053  (call $prints
2054  (i32.const 736)
2055  )
2056  (call $printi
2057  (i64.const 142)
2058  )
2059  (call $prints
2060  (i32.const 304)
2061  )
2062  (i64.store offset=120
2063  (get_local $15)
2064  (i64.const 0)
2065  )
2066  (i64.store offset=112
2067  (get_local $15)
2068  (get_local $13)
2069  )
2070  (i64.store offset=128
2071  (get_local $15)
2072  (i64.const 0)
2073  )
2074  (i32.store offset=136
2075  (get_local $15)
2076  (i32.const 0)
2077  )
2078  (drop
2079  (call $load_i64
2080  (i64.const 6291761009417781248)
2081  (i64.const 6291761009417781248)
2082  (i64.const 3607749778735104000)
2083  (i32.add
2084  (get_local $15)
2085  (i32.const 112)
2086  )
2087  (i32.const 28)
2088  )
2089  )
2090  (call $assert
2091  (i64.ge_u
2092  (i64.load offset=120
2093  (get_local $15)
2094  )
2095  (get_local $14)
2096  )
2097  (i32.const 112)
2098  )
2099  (i64.store offset=120
2100  (get_local $15)
2101  (i64.sub
2102  (i64.load offset=120
2103  (get_local $15)
2104  )
2105  (get_local $14)
2106  )
2107  )
2108  (i64.store
2109  (tee_local $9
2110  (i32.add
2111  (i32.add
2112  (get_local $15)
2113  (i32.const 64)
2114  )
2115  (i32.const 24)
2116  )
2117  )
2118  (i64.const 0)
2119  )
2120  (i64.store offset=80
2121  (get_local $15)
2122  (i64.const 1)
2123  )
2124  (i64.store offset=72
2125  (get_local $15)
2126  (i64.const 0)
2127  )
2128  (i64.store offset=64
2129  (get_local $15)
2130  (i64.const 0)
2131  )
2132  (i64.store offset=96
2133  (get_local $15)
2134  (i64.const 0)
2135  )
2136  (block $label$0
2137  (block $label$1
2138  (block $label$2
2139  (block $label$3
2140  (block $label$4
2141  (block $label$5
2142  (br_if $label$5
2143  (i32.ne
2144  (call $front_secondary_i128i128
2145  (i64.const 6291761009417781248)
2146  (i64.const 6291761009417781248)
2147  (i64.const 3900539489767915520)
2148  (i32.add
2149  (get_local $15)
2150  (i32.const 64)
2151  )
2152  (i32.const 44)
2153  )
2154  (i32.const 44)
2155  )
2156  )
2157  (set_local $14
2158  (i64.load
2159  (get_local $9)
2160  )
2161  )
2162  (set_local $13
2163  (i64.load
2164  (tee_local $3
2165  (i32.add
2166  (i32.add
2167  (get_local $15)
2168  (i32.const 64)
2169  )
2170  (i32.const 16)
2171  )
2172  )
2173  )
2174  )
2175  (set_local $1
2176  (i64.load
2177  (tee_local $4
2178  (i32.add
2179  (i32.add
2180  (get_local $15)
2181  (i32.const 64)
2182  )
2183  (i32.const 32)
2184  )
2185  )
2186  )
2187  )
2188  (call $prints
2189  (i32.const 928)
2190  )
2191  (call $_ZN5eosio5printIPKcJNS_5tokenIyLy5093418677655568384EEES2_NS_5priceINS3_IyLy6138406292105986048EEES4_EES2_EEEvT_DpT0_
2192  (i32.const 240)
2193  (get_local $1)
2194  (i32.const 256)
2195  (get_local $13)
2196  (get_local $14)
2197  (i32.const 272)
2198  )
2199  (call $prints
2200  (i32.const 304)
2201  )
2202  (set_local $14
2203  (i64.load align=1
2204  (get_local $7)
2205  )
2206  )
2207  (set_local $13
2208  (i64.load align=1
2209  (tee_local $5
2210  (i32.add
2211  (get_local $0)
2212  (i32.const 16)
2213  )
2214  )
2215  )
2216  )
2217  (set_local $1
2218  (i64.load align=1
2219  (tee_local $6
2220  (i32.add
2221  (get_local $0)
2222  (i32.const 32)
2223  )
2224  )
2225  )
2226  )
2227  (call $prints
2228  (i32.const 944)
2229  )
2230  (call $_ZN5eosio5printIPKcJNS_5tokenIyLy6138406292105986048EEES2_NS_5priceIS4_NS3_IyLy5093418677655568384EEEEES2_EEEvT_DpT0_
2231  (i32.const 240)
2232  (get_local $1)
2233  (i32.const 256)
2234  (get_local $13)
2235  (get_local $14)
2236  (i32.const 272)
2237  )
2238  (call $prints
2239  (i32.const 304)
2240  )
2241  (i64.store offset=40
2242  (get_local $15)
2243  (i64.const 0)
2244  )
2245  (i64.store offset=48
2246  (get_local $15)
2247  (i64.const 0)
2248  )
2249  (i32.store offset=56
2250  (get_local $15)
2251  (i32.const 0)
2252  )
2253  (i64.store offset=32
2254  (get_local $15)
2255  (i64.load offset=64
2256  (get_local $15)
2257  )
2258  )
2259  (drop
2260  (call $load_i64
2261  (i64.const 6291761009417781248)
2262  (i64.const 6291761009417781248)
2263  (i64.const 3607749778735104000)
2264  (i32.add
2265  (get_local $15)
2266  (i32.const 32)
2267  )
2268  (i32.const 28)
2269  )
2270  )
2271  (block $label$6
2272  (br_if $label$6
2273  (select
2274  (i64.gt_u
2275  (i64.load
2276  (get_local $3)
2277  )
2278  (i64.load
2279  (get_local $5)
2280  )
2281  )
2282  (i64.gt_u
2283  (tee_local $14
2284  (i64.load
2285  (get_local $9)
2286  )
2287  )
2288  (tee_local $13
2289  (i64.load
2290  (get_local $7)
2291  )
2292  )
2293  )
2294  (i64.eq
2295  (get_local $14)
2296  (get_local $13)
2297  )
2298  )
2299  )
2300  (set_local $7
2301  (i32.add
2302  (i32.add
2303  (get_local $15)
2304  (i32.const 32)
2305  )
2306  (i32.const 24)
2307  )
2308  )
2309  (set_local $9
2310  (i32.add
2311  (i32.add
2312  (get_local $15)
2313  (i32.const 32)
2314  )
2315  (i32.const 8)
2316  )
2317  )
2318  (set_local $10
2319  (i32.add
2320  (i32.add
2321  (get_local $15)
2322  (i32.const 32)
2323  )
2324  (i32.const 16)
2325  )
2326  )
2327  (loop $label$7
2328  (call $prints
2329  (i32.const 960)
2330  )
2331  (call $_ZN8exchange5matchERNS_3bidERNS_7accountERNS_3askES3_
2332  (get_local $0)
2333  (i32.add
2334  (get_local $15)
2335  (i32.const 112)
2336  )
2337  (i32.add
2338  (get_local $15)
2339  (i32.const 64)
2340  )
2341  (i32.add
2342  (get_local $15)
2343  (i32.const 32)
2344  )
2345  )
2346  (br_if $label$6
2347  (i64.ne
2348  (i64.load
2349  (get_local $4)
2350  )
2351  (i64.const 0)
2352  )
2353  )
2354  (i32.store
2355  (get_local $7)
2356  (tee_local $8
2357  (i32.add
2358  (i32.load
2359  (get_local $7)
2360  )
2361  (i32.const -1)
2362  )
2363  )
2364  )
2365  (block $label$8
2366  (block $label$9
2367  (br_if $label$9
2368  (i32.eqz
2369  (i32.or
2370  (i64.ne
2371  (i64.or
2372  (i64.load
2373  (get_local $10)
2374  )
2375  (i64.load
2376  (get_local $9)
2377  )
2378  )
2379  (i64.const 0)
2380  )
2381  (get_local $8)
2382  )
2383  )
2384  )
2385  (call $prints
2386  (i32.const 96)
2387  )
2388  (drop
2389  (call $store_i64
2390  (i64.const 6291761009417781248)
2391  (i64.const 3607749778735104000)
2392  (i32.add
2393  (get_local $15)
2394  (i32.const 32)
2395  )
2396  (i32.const 28)
2397  )
2398  )
2399  (br $label$8)
2400  )
2401  (call $prints
2402  (i32.const 80)
2403  )
2404  (drop
2405  (call $remove_i64
2406  (i64.const 6291761009417781248)
2407  (i64.const 3607749778735104000)
2408  (i32.add
2409  (get_local $15)
2410  (i32.const 32)
2411  )
2412  )
2413  )
2414  )
2415  (block $label$10
2416  (block $label$11
2417  (br_if $label$11
2418  (i32.eqz
2419  (i32.or
2420  (i64.ne
2421  (i64.or
2422  (i64.load
2423  (i32.add
2424  (i32.add
2425  (get_local $15)
2426  (i32.const 112)
2427  )
2428  (i32.const 16)
2429  )
2430  )
2431  (i64.load
2432  (i32.add
2433  (i32.add
2434  (get_local $15)
2435  (i32.const 112)
2436  )
2437  (i32.const 8)
2438  )
2439  )
2440  )
2441  (i64.const 0)
2442  )
2443  (i32.load
2444  (i32.add
2445  (i32.add
2446  (get_local $15)
2447  (i32.const 112)
2448  )
2449  (i32.const 24)
2450  )
2451  )
2452  )
2453  )
2454  )
2455  (call $prints
2456  (i32.const 96)
2457  )
2458  (drop
2459  (call $store_i64
2460  (i64.const 6291761009417781248)
2461  (i64.const 3607749778735104000)
2462  (i32.add
2463  (get_local $15)
2464  (i32.const 112)
2465  )
2466  (i32.const 28)
2467  )
2468  )
2469  (br $label$10)
2470  )
2471  (call $prints
2472  (i32.const 80)
2473  )
2474  (drop
2475  (call $remove_i64
2476  (i64.const 6291761009417781248)
2477  (i64.const 3607749778735104000)
2478  (i32.add
2479  (get_local $15)
2480  (i32.const 112)
2481  )
2482  )
2483  )
2484  )
2485  (drop
2486  (call $remove_i128i128
2487  (i64.const 6291761009417781248)
2488  (i64.const 3900539489767915520)
2489  (i32.add
2490  (get_local $15)
2491  (i32.const 64)
2492  )
2493  )
2494  )
2495  (br_if $label$6
2496  (i32.ne
2497  (call $front_secondary_i128i128
2498  (i64.const 6291761009417781248)
2499  (i64.const 6291761009417781248)
2500  (i64.const 3900539489767915520)
2501  (i32.add
2502  (get_local $15)
2503  (i32.const 64)
2504  )
2505  (i32.const 44)
2506  )
2507  (i32.const 44)
2508  )
2509  )
2510  (i64.store
2511  (tee_local $8
2512  (i32.add
2513  (get_local $15)
2514  (i32.const 8)
2515  )
2516  )
2517  (i64.const 0)
2518  )
2519  (i64.store
2520  (tee_local $11
2521  (i32.add
2522  (get_local $15)
2523  (i32.const 16)
2524  )
2525  )
2526  (i64.const 0)
2527  )
2528  (i32.store
2529  (tee_local $12
2530  (i32.add
2531  (get_local $15)
2532  (i32.const 24)
2533  )
2534  )
2535  (i32.const 0)
2536  )
2537  (i64.store
2538  (get_local $15)
2539  (i64.load offset=64
2540  (get_local $15)
2541  )
2542  )
2543  (drop
2544  (call $load_i64
2545  (i64.const 6291761009417781248)
2546  (i64.const 6291761009417781248)
2547  (i64.const 3607749778735104000)
2548  (get_local $15)
2549  (i32.const 28)
2550  )
2551  )
2552  (i32.store
2553  (get_local $7)
2554  (i32.load
2555  (get_local $12)
2556  )
2557  )
2558  (i64.store
2559  (get_local $10)
2560  (i64.load
2561  (get_local $11)
2562  )
2563  )
2564  (i64.store
2565  (get_local $9)
2566  (i64.load
2567  (get_local $8)
2568  )
2569  )
2570  (i64.store offset=32
2571  (get_local $15)
2572  (i64.load
2573  (get_local $15)
2574  )
2575  )
2576  (br_if $label$7
2577  (select
2578  (i64.le_u
2579  (i64.load
2580  (get_local $3)
2581  )
2582  (i64.load
2583  (get_local $5)
2584  )
2585  )
2586  (i64.le_u
2587  (tee_local $14
2588  (i64.load
2589  (i32.add
2590  (i32.add
2591  (get_local $15)
2592  (i32.const 64)
2593  )
2594  (i32.const 24)
2595  )
2596  )
2597  )
2598  (tee_local $13
2599  (i64.load
2600  (i32.add
2601  (get_local $0)
2602  (i32.const 24)
2603  )
2604  )
2605  )
2606  )
2607  (i64.eq
2608  (get_local $14)
2609  (get_local $13)
2610  )
2611  )
2612  )
2613  )
2614  )
2615  (call $prints
2616  (i32.const 1008)
2617  )
2618  (block $label$12
2619  (br_if $label$12
2620  (i64.eqz
2621  (i64.load
2622  (get_local $6)
2623  )
2624  )
2625  )
2626  (br_if $label$12
2627  (i32.load8_u offset=44
2628  (get_local $0)
2629  )
2630  )
2631  (i32.store
2632  (tee_local $7
2633  (i32.add
2634  (get_local $15)
2635  (i32.const 136)
2636  )
2637  )
2638  (i32.add
2639  (i32.load
2640  (get_local $7)
2641  )
2642  (i32.const 1)
2643  )
2644  )
2645  )
2646  (br_if $label$4
2647  (i32.eqz
2648  (i32.or
2649  (i64.ne
2650  (i64.or
2651  (i64.load
2652  (i32.add
2653  (get_local $15)
2654  (i32.const 128)
2655  )
2656  )
2657  (i64.load
2658  (i32.add
2659  (get_local $15)
2660  (i32.const 120)
2661  )
2662  )
2663  )
2664  (i64.const 0)
2665  )
2666  (i32.load
2667  (i32.add
2668  (get_local $15)
2669  (i32.const 136)
2670  )
2671  )
2672  )
2673  )
2674  )
2675  (call $prints
2676  (i32.const 96)
2677  )
2678  (drop
2679  (call $store_i64
2680  (i64.const 6291761009417781248)
2681  (i64.const 3607749778735104000)
2682  (i32.add
2683  (get_local $15)
2684  (i32.const 112)
2685  )
2686  (i32.const 28)
2687  )
2688  )
2689  (br $label$3)
2690  )
2691  (call $prints
2692  (i32.const 800)
2693  )
2694  (call $assert
2695  (i32.eqz
2696  (i32.load8_u offset=44
2697  (get_local $0)
2698  )
2699  )
2700  (i32.const 864)
2701  )
2702  (call $assert
2703  (call $store_i128i128
2704  (i64.const 6291761009417781248)
2705  (i64.const 4292915607302569984)
2706  (get_local $0)
2707  (i32.const 44)
2708  )
2709  (i32.const 896)
2710  )
2711  (i32.store
2712  (tee_local $0
2713  (i32.add
2714  (i32.add
2715  (get_local $15)
2716  (i32.const 112)
2717  )
2718  (i32.const 24)
2719  )
2720  )
2721  (tee_local $0
2722  (i32.add
2723  (i32.load
2724  (get_local $0)
2725  )
2726  (i32.const 1)
2727  )
2728  )
2729  )
2730  (br_if $label$2
2731  (i32.eqz
2732  (i32.or
2733  (i64.ne
2734  (i64.or
2735  (i64.load
2736  (i32.add
2737  (get_local $15)
2738  (i32.const 128)
2739  )
2740  )
2741  (i64.load
2742  (i32.add
2743  (i32.add
2744  (get_local $15)
2745  (i32.const 112)
2746  )
2747  (i32.const 8)
2748  )
2749  )
2750  )
2751  (i64.const 0)
2752  )
2753  (get_local $0)
2754  )
2755  )
2756  )
2757  (call $prints
2758  (i32.const 96)
2759  )
2760  (drop
2761  (call $store_i64
2762  (i64.const 6291761009417781248)
2763  (i64.const 3607749778735104000)
2764  (i32.add
2765  (get_local $15)
2766  (i32.const 112)
2767  )
2768  (i32.const 28)
2769  )
2770  )
2771  (br $label$0)
2772  )
2773  (call $prints
2774  (i32.const 80)
2775  )
2776  (drop
2777  (call $remove_i64
2778  (i64.const 6291761009417781248)
2779  (i64.const 3607749778735104000)
2780  (i32.add
2781  (get_local $15)
2782  (i32.const 112)
2783  )
2784  )
2785  )
2786  )
2787  (call $prints
2788  (i32.const 1088)
2789  )
2790  (br_if $label$1
2791  (i64.eqz
2792  (tee_local $14
2793  (i64.load
2794  (i32.add
2795  (get_local $0)
2796  (i32.const 32)
2797  )
2798  )
2799  )
2800  )
2801  )
2802  (call $printi
2803  (get_local $14)
2804  )
2805  (call $prints
2806  (i32.const 496)
2807  )
2808  (call $printn
2809  (i64.const 6138406292105986048)
2810  )
2811  (call $prints
2812  (i32.const 1120)
2813  )
2814  (call $assert
2815  (i32.eqz
2816  (i32.load8_u offset=44
2817  (get_local $0)
2818  )
2819  )
2820  (i32.const 864)
2821  )
2822  (call $assert
2823  (call $store_i128i128
2824  (i64.const 6291761009417781248)
2825  (i64.const 4292915607302569984)
2826  (get_local $0)
2827  (i32.const 44)
2828  )
2829  (i32.const 896)
2830  )
2831  (br $label$0)
2832  )
2833  (call $prints
2834  (i32.const 80)
2835  )
2836  (drop
2837  (call $remove_i64
2838  (i64.const 6291761009417781248)
2839  (i64.const 3607749778735104000)
2840  (i32.add
2841  (get_local $15)
2842  (i32.const 112)
2843  )
2844  )
2845  )
2846  (br $label$0)
2847  )
2848  (call $prints
2849  (i32.const 1136)
2850  )
2851  )
2852  (i32.store offset=4
2853  (i32.const 0)
2854  (i32.add
2855  (get_local $15)
2856  (i32.const 192)
2857  )
2858  )
2859  )
2860  (func $_ZN8exchange19apply_exchange_sellENS_10sell_orderE (param $0 i32)
2861  (local $1 i64)
2862  (local $2 i64)
2863  (local $3 i32)
2864  (local $4 i32)
2865  (local $5 i32)
2866  (local $6 i32)
2867  (local $7 i32)
2868  (local $8 i32)
2869  (local $9 i32)
2870  (local $10 i32)
2871  (local $11 i32)
2872  (local $12 i32)
2873  (local $13 i32)
2874  (local $14 i64)
2875  (local $15 i64)
2876  (local $16 i32)
2877  (i32.store offset=4
2878  (i32.const 0)
2879  (tee_local $16
2880  (i32.sub
2881  (i32.load offset=4
2882  (i32.const 0)
2883  )
2884  (i32.const 192)
2885  )
2886  )
2887  )
2888  (call $require_auth
2889  (tee_local $14
2890  (i64.load align=1
2891  (get_local $0)
2892  )
2893  )
2894  )
2895  (call $assert
2896  (i64.ne
2897  (tee_local $15
2898  (i64.load offset=32
2899  (get_local $0)
2900  )
2901  )
2902  (i64.const 0)
2903  )
2904  (i32.const 576)
2905  )
2906  (call $assert
2907  (i32.gt_u
2908  (i32.load offset=40 align=1
2909  (get_local $0)
2910  )
2911  (call $now)
2912  )
2913  (i32.const 608)
2914  )
2915  (set_local $1
2916  (i64.load align=1
2917  (tee_local $6
2918  (i32.add
2919  (get_local $0)
2920  (i32.const 24)
2921  )
2922  )
2923  )
2924  )
2925  (set_local $2
2926  (i64.load offset=16 align=1
2927  (get_local $0)
2928  )
2929  )
2930  (call $prints
2931  (i32.const 368)
2932  )
2933  (call $printn
2934  (get_local $14)
2935  )
2936  (call $_ZN5eosio5printIPKcJNS_5tokenIyLy5093418677655568384EEES2_NS_5priceINS3_IyLy6138406292105986048EEES4_EES2_EEEvT_DpT0_
2937  (i32.const 1152)
2938  (get_local $15)
2939  (i32.const 656)
2940  (get_local $2)
2941  (get_local $1)
2942  (i32.const 304)
2943  )
2944  (i64.store
2945  (i32.add
2946  (i32.add
2947  (get_local $16)
2948  (i32.const 144)
2949  )
2950  (i32.const 24)
2951  )
2952  (i64.const 0)
2953  )
2954  (i32.store
2955  (i32.add
2956  (i32.add
2957  (get_local $16)
2958  (i32.const 144)
2959  )
2960  (i32.const 12)
2961  )
2962  (i32.load
2963  (i32.add
2964  (get_local $0)
2965  (i32.const 12)
2966  )
2967  )
2968  )
2969  (i32.store
2970  (i32.add
2971  (i32.add
2972  (get_local $16)
2973  (i32.const 144)
2974  )
2975  (i32.const 8)
2976  )
2977  (i32.load
2978  (i32.add
2979  (get_local $0)
2980  (i32.const 8)
2981  )
2982  )
2983  )
2984  (i64.store offset=160
2985  (get_local $16)
2986  (i64.const 1)
2987  )
2988  (i64.store offset=176
2989  (get_local $16)
2990  (i64.const 0)
2991  )
2992  (i32.store offset=148
2993  (get_local $16)
2994  (i32.load
2995  (i32.add
2996  (get_local $0)
2997  (i32.const 4)
2998  )
2999  )
3000  )
3001  (i32.store offset=144
3002  (get_local $16)
3003  (i32.load
3004  (get_local $0)
3005  )
3006  )
3007  (call $assert
3008  (i32.ne
3009  (call $load_primary_i128i128
3010  (i64.const 6291761009417781248)
3011  (i64.const 6291761009417781248)
3012  (i64.const 3900539489767915520)
3013  (i32.add
3014  (get_local $16)
3015  (i32.const 144)
3016  )
3017  (i32.const 44)
3018  )
3019  (i32.const 44)
3020  )
3021  (i32.const 688)
3022  )
3023  (i64.store offset=120
3024  (get_local $16)
3025  (i64.const 0)
3026  )
3027  (i64.store offset=112
3028  (get_local $16)
3029  (get_local $14)
3030  )
3031  (i64.store offset=128
3032  (get_local $16)
3033  (i64.const 0)
3034  )
3035  (i32.store offset=136
3036  (get_local $16)
3037  (i32.const 0)
3038  )
3039  (drop
3040  (call $load_i64
3041  (i64.const 6291761009417781248)
3042  (i64.const 6291761009417781248)
3043  (i64.const 3607749778735104000)
3044  (i32.add
3045  (get_local $16)
3046  (i32.const 112)
3047  )
3048  (i32.const 28)
3049  )
3050  )
3051  (call $assert
3052  (i64.ge_u
3053  (i64.load offset=128
3054  (get_local $16)
3055  )
3056  (get_local $15)
3057  )
3058  (i32.const 112)
3059  )
3060  (i64.store offset=128
3061  (get_local $16)
3062  (i64.sub
3063  (i64.load offset=128
3064  (get_local $16)
3065  )
3066  (get_local $15)
3067  )
3068  )
3069  (i64.store
3070  (tee_local $10
3071  (i32.add
3072  (i32.add
3073  (get_local $16)
3074  (i32.const 64)
3075  )
3076  (i32.const 24)
3077  )
3078  )
3079  (i64.const 0)
3080  )
3081  (i64.store offset=80
3082  (get_local $16)
3083  (i64.const 1)
3084  )
3085  (i64.store offset=72
3086  (get_local $16)
3087  (i64.const 0)
3088  )
3089  (i64.store offset=64
3090  (get_local $16)
3091  (i64.const 0)
3092  )
3093  (i64.store offset=96
3094  (get_local $16)
3095  (i64.const 0)
3096  )
3097  (block $label$0
3098  (block $label$1
3099  (block $label$2
3100  (block $label$3
3101  (block $label$4
3102  (block $label$5
3103  (br_if $label$5
3104  (i32.ne
3105  (call $back_secondary_i128i128
3106  (i64.const 6291761009417781248)
3107  (i64.const 6291761009417781248)
3108  (i64.const 4292915607302569984)
3109  (i32.add
3110  (get_local $16)
3111  (i32.const 64)
3112  )
3113  (i32.const 44)
3114  )
3115  (i32.const 44)
3116  )
3117  )
3118  (call $prints
3119  (i32.const 1248)
3120  )
3121  (i64.store offset=40
3122  (get_local $16)
3123  (i64.const 0)
3124  )
3125  (i64.store offset=48
3126  (get_local $16)
3127  (i64.const 0)
3128  )
3129  (i32.store offset=56
3130  (get_local $16)
3131  (i32.const 0)
3132  )
3133  (i64.store offset=32
3134  (get_local $16)
3135  (i64.load offset=64
3136  (get_local $16)
3137  )
3138  )
3139  (drop
3140  (call $load_i64
3141  (i64.const 6291761009417781248)
3142  (i64.const 6291761009417781248)
3143  (i64.const 3607749778735104000)
3144  (i32.add
3145  (get_local $16)
3146  (i32.const 32)
3147  )
3148  (i32.const 28)
3149  )
3150  )
3151  (block $label$6
3152  (br_if $label$6
3153  (select
3154  (i64.lt_u
3155  (i64.load
3156  (tee_local $4
3157  (i32.add
3158  (i32.add
3159  (get_local $16)
3160  (i32.const 64)
3161  )
3162  (i32.const 16)
3163  )
3164  )
3165  )
3166  (i64.load
3167  (tee_local $3
3168  (i32.add
3169  (get_local $0)
3170  (i32.const 16)
3171  )
3172  )
3173  )
3174  )
3175  (i64.lt_u
3176  (tee_local $15
3177  (i64.load
3178  (get_local $10)
3179  )
3180  )
3181  (tee_local $14
3182  (i64.load
3183  (get_local $6)
3184  )
3185  )
3186  )
3187  (i64.eq
3188  (get_local $15)
3189  (get_local $14)
3190  )
3191  )
3192  )
3193  (set_local $5
3194  (i32.add
3195  (get_local $16)
3196  (i32.const 96)
3197  )
3198  )
3199  (set_local $7
3200  (i32.add
3201  (i32.add
3202  (get_local $16)
3203  (i32.const 112)
3204  )
3205  (i32.const 8)
3206  )
3207  )
3208  (set_local $8
3209  (i32.add
3210  (i32.add
3211  (get_local $16)
3212  (i32.const 112)
3213  )
3214  (i32.const 16)
3215  )
3216  )
3217  (loop $label$7
3218  (call $_ZN8exchange5matchERNS_3bidERNS_7accountERNS_3askES3_
3219  (i32.add
3220  (get_local $16)
3221  (i32.const 64)
3222  )
3223  (i32.add
3224  (get_local $16)
3225  (i32.const 32)
3226  )
3227  (get_local $0)
3228  (i32.add
3229  (get_local $16)
3230  (i32.const 112)
3231  )
3232  )
3233  (br_if $label$6
3234  (i64.ne
3235  (i64.load
3236  (get_local $5)
3237  )
3238  (i64.const 0)
3239  )
3240  )
3241  (i32.store
3242  (tee_local $6
3243  (i32.add
3244  (i32.add
3245  (get_local $16)
3246  (i32.const 32)
3247  )
3248  (i32.const 24)
3249  )
3250  )
3251  (i32.add
3252  (i32.load
3253  (get_local $6)
3254  )
3255  (i32.const -1)
3256  )
3257  )
3258  (block $label$8
3259  (block $label$9
3260  (br_if $label$9
3261  (i32.eqz
3262  (i32.or
3263  (i64.ne
3264  (i64.or
3265  (i64.load
3266  (get_local $8)
3267  )
3268  (i64.load
3269  (get_local $7)
3270  )
3271  )
3272  (i64.const 0)
3273  )
3274  (i32.load
3275  (i32.add
3276  (i32.add
3277  (get_local $16)
3278  (i32.const 112)
3279  )
3280  (i32.const 24)
3281  )
3282  )
3283  )
3284  )
3285  )
3286  (call $prints
3287  (i32.const 96)
3288  )
3289  (drop
3290  (call $store_i64
3291  (i64.const 6291761009417781248)
3292  (i64.const 3607749778735104000)
3293  (i32.add
3294  (get_local $16)
3295  (i32.const 112)
3296  )
3297  (i32.const 28)
3298  )
3299  )
3300  (br $label$8)
3301  )
3302  (call $prints
3303  (i32.const 80)
3304  )
3305  (drop
3306  (call $remove_i64
3307  (i64.const 6291761009417781248)
3308  (i64.const 3607749778735104000)
3309  (i32.add
3310  (get_local $16)
3311  (i32.const 112)
3312  )
3313  )
3314  )
3315  )
3316  (block $label$10
3317  (block $label$11
3318  (br_if $label$11
3319  (i32.eqz
3320  (i32.or
3321  (i64.ne
3322  (i64.or
3323  (i64.load
3324  (tee_local $10
3325  (i32.add
3326  (i32.add
3327  (get_local $16)
3328  (i32.const 32)
3329  )
3330  (i32.const 16)
3331  )
3332  )
3333  )
3334  (i64.load
3335  (tee_local $9
3336  (i32.add
3337  (i32.add
3338  (get_local $16)
3339  (i32.const 32)
3340  )
3341  (i32.const 8)
3342  )
3343  )
3344  )
3345  )
3346  (i64.const 0)
3347  )
3348  (i32.load
3349  (get_local $6)
3350  )
3351  )
3352  )
3353  )
3354  (call $prints
3355  (i32.const 96)
3356  )
3357  (drop
3358  (call $store_i64
3359  (i64.const 6291761009417781248)
3360  (i64.const 3607749778735104000)
3361  (i32.add
3362  (get_local $16)
3363  (i32.const 32)
3364  )
3365  (i32.const 28)
3366  )
3367  )
3368  (br $label$10)
3369  )
3370  (call $prints
3371  (i32.const 80)
3372  )
3373  (drop
3374  (call $remove_i64
3375  (i64.const 6291761009417781248)
3376  (i64.const 3607749778735104000)
3377  (i32.add
3378  (get_local $16)
3379  (i32.const 32)
3380  )
3381  )
3382  )
3383  )
3384  (drop
3385  (call $remove_i128i128
3386  (i64.const 6291761009417781248)
3387  (i64.const 4292915607302569984)
3388  (i32.add
3389  (get_local $16)
3390  (i32.const 64)
3391  )
3392  )
3393  )
3394  (br_if $label$6
3395  (i32.ne
3396  (call $back_secondary_i128i128
3397  (i64.const 6291761009417781248)
3398  (i64.const 6291761009417781248)
3399  (i64.const 4292915607302569984)
3400  (i32.add
3401  (get_local $16)
3402  (i32.const 64)
3403  )
3404  (i32.const 44)
3405  )
3406  (i32.const 44)
3407  )
3408  )
3409  (i64.store
3410  (tee_local $11
3411  (i32.add
3412  (get_local $16)
3413  (i32.const 8)
3414  )
3415  )
3416  (i64.const 0)
3417  )
3418  (i64.store
3419  (tee_local $12
3420  (i32.add
3421  (get_local $16)
3422  (i32.const 16)
3423  )
3424  )
3425  (i64.const 0)
3426  )
3427  (i32.store
3428  (tee_local $13
3429  (i32.add
3430  (get_local $16)
3431  (i32.const 24)
3432  )
3433  )
3434  (i32.const 0)
3435  )
3436  (i64.store
3437  (get_local $16)
3438  (i64.load offset=64
3439  (get_local $16)
3440  )
3441  )
3442  (drop
3443  (call $load_i64
3444  (i64.const 6291761009417781248)
3445  (i64.const 6291761009417781248)
3446  (i64.const 3607749778735104000)
3447  (get_local $16)
3448  (i32.const 28)
3449  )
3450  )
3451  (i32.store
3452  (get_local $6)
3453  (i32.load
3454  (get_local $13)
3455  )
3456  )
3457  (i64.store
3458  (get_local $10)
3459  (i64.load
3460  (get_local $12)
3461  )
3462  )
3463  (i64.store
3464  (get_local $9)
3465  (i64.load
3466  (get_local $11)
3467  )
3468  )
3469  (i64.store offset=32
3470  (get_local $16)
3471  (i64.load
3472  (get_local $16)
3473  )
3474  )
3475  (br_if $label$7
3476  (select
3477  (i64.ge_u
3478  (i64.load
3479  (get_local $4)
3480  )
3481  (i64.load
3482  (get_local $3)
3483  )
3484  )
3485  (i64.ge_u
3486  (tee_local $15
3487  (i64.load
3488  (i32.add
3489  (i32.add
3490  (get_local $16)
3491  (i32.const 64)
3492  )
3493  (i32.const 24)
3494  )
3495  )
3496  )
3497  (tee_local $14
3498  (i64.load
3499  (i32.add
3500  (get_local $0)
3501  (i32.const 24)
3502  )
3503  )
3504  )
3505  )
3506  (i64.eq
3507  (get_local $15)
3508  (get_local $14)
3509  )
3510  )
3511  )
3512  )
3513  )
3514  (block $label$12
3515  (br_if $label$12
3516  (i64.eqz
3517  (i64.load
3518  (i32.add
3519  (get_local $0)
3520  (i32.const 32)
3521  )
3522  )
3523  )
3524  )
3525  (br_if $label$12
3526  (i32.load8_u offset=44
3527  (get_local $0)
3528  )
3529  )
3530  (i32.store
3531  (tee_local $6
3532  (i32.add
3533  (get_local $16)
3534  (i32.const 136)
3535  )
3536  )
3537  (i32.add
3538  (i32.load
3539  (get_local $6)
3540  )
3541  (i32.const 1)
3542  )
3543  )
3544  )
3545  (br_if $label$4
3546  (i32.eqz
3547  (i32.or
3548  (i64.ne
3549  (i64.or
3550  (i64.load
3551  (i32.add
3552  (get_local $16)
3553  (i32.const 128)
3554  )
3555  )
3556  (i64.load
3557  (i32.add
3558  (get_local $16)
3559  (i32.const 120)
3560  )
3561  )
3562  )
3563  (i64.const 0)
3564  )
3565  (i32.load
3566  (i32.add
3567  (get_local $16)
3568  (i32.const 136)
3569  )
3570  )
3571  )
3572  )
3573  )
3574  (call $prints
3575  (i32.const 96)
3576  )
3577  (drop
3578  (call $store_i64
3579  (i64.const 6291761009417781248)
3580  (i64.const 3607749778735104000)
3581  (i32.add
3582  (get_local $16)
3583  (i32.const 112)
3584  )
3585  (i32.const 28)
3586  )
3587  )
3588  (br $label$3)
3589  )
3590  (call $assert
3591  (i32.eqz
3592  (i32.load8_u offset=44
3593  (get_local $0)
3594  )
3595  )
3596  (i32.const 864)
3597  )
3598  (call $prints
3599  (i32.const 1184)
3600  )
3601  (call $assert
3602  (call $store_i128i128
3603  (i64.const 6291761009417781248)
3604  (i64.const 3900539489767915520)
3605  (get_local $0)
3606  (i32.const 44)
3607  )
3608  (i32.const 896)
3609  )
3610  (i32.store
3611  (tee_local $0
3612  (i32.add
3613  (i32.add
3614  (get_local $16)
3615  (i32.const 112)
3616  )
3617  (i32.const 24)
3618  )
3619  )
3620  (tee_local $0
3621  (i32.add
3622  (i32.load
3623  (get_local $0)
3624  )
3625  (i32.const 1)
3626  )
3627  )
3628  )
3629  (br_if $label$2
3630  (i32.eqz
3631  (i32.or
3632  (i64.ne
3633  (i64.or
3634  (i64.load
3635  (i32.add
3636  (get_local $16)
3637  (i32.const 128)
3638  )
3639  )
3640  (i64.load
3641  (i32.add
3642  (i32.add
3643  (get_local $16)
3644  (i32.const 112)
3645  )
3646  (i32.const 8)
3647  )
3648  )
3649  )
3650  (i64.const 0)
3651  )
3652  (get_local $0)
3653  )
3654  )
3655  )
3656  (call $prints
3657  (i32.const 96)
3658  )
3659  (drop
3660  (call $store_i64
3661  (i64.const 6291761009417781248)
3662  (i64.const 3607749778735104000)
3663  (i32.add
3664  (get_local $16)
3665  (i32.const 112)
3666  )
3667  (i32.const 28)
3668  )
3669  )
3670  (br $label$0)
3671  )
3672  (call $prints
3673  (i32.const 80)
3674  )
3675  (drop
3676  (call $remove_i64
3677  (i64.const 6291761009417781248)
3678  (i64.const 3607749778735104000)
3679  (i32.add
3680  (get_local $16)
3681  (i32.const 112)
3682  )
3683  )
3684  )
3685  )
3686  (br_if $label$1
3687  (i64.eqz
3688  (i64.load
3689  (i32.add
3690  (get_local $0)
3691  (i32.const 32)
3692  )
3693  )
3694  )
3695  )
3696  (call $assert
3697  (i32.eqz
3698  (i32.load8_u offset=44
3699  (get_local $0)
3700  )
3701  )
3702  (i32.const 864)
3703  )
3704  (call $prints
3705  (i32.const 1296)
3706  )
3707  (call $assert
3708  (call $store_i128i128
3709  (i64.const 6291761009417781248)
3710  (i64.const 3900539489767915520)
3711  (get_local $0)
3712  (i32.const 44)
3713  )
3714  (i32.const 896)
3715  )
3716  (br $label$0)
3717  )
3718  (call $prints
3719  (i32.const 80)
3720  )
3721  (drop
3722  (call $remove_i64
3723  (i64.const 6291761009417781248)
3724  (i64.const 3607749778735104000)
3725  (i32.add
3726  (get_local $16)
3727  (i32.const 112)
3728  )
3729  )
3730  )
3731  (br $label$0)
3732  )
3733  (call $prints
3734  (i32.const 1312)
3735  )
3736  )
3737  (i32.store offset=4
3738  (i32.const 0)
3739  (i32.add
3740  (get_local $16)
3741  (i32.const 192)
3742  )
3743  )
3744  )
3745  (func $_ZN8exchange25apply_exchange_cancel_buyENS_8order_idE (param $0 i32)
3746  (local $1 i64)
3747  (local $2 i32)
3748  (i32.store offset=4
3749  (i32.const 0)
3750  (tee_local $2
3751  (i32.sub
3752  (i32.load offset=4
3753  (i32.const 0)
3754  )
3755  (i32.const 80)
3756  )
3757  )
3758  )
3759  (call $require_auth
3760  (tee_local $1
3761  (i64.load
3762  (get_local $0)
3763  )
3764  )
3765  )
3766  (i64.store
3767  (i32.add
3768  (get_local $2)
3769  (i32.const 56)
3770  )
3771  (i64.const 0)
3772  )
3773  (i32.store
3774  (i32.add
3775  (i32.add
3776  (get_local $2)
3777  (i32.const 32)
3778  )
3779  (i32.const 12)
3780  )
3781  (i32.load
3782  (i32.add
3783  (get_local $0)
3784  (i32.const 12)
3785  )
3786  )
3787  )
3788  (i32.store
3789  (i32.add
3790  (i32.add
3791  (get_local $2)
3792  (i32.const 32)
3793  )
3794  (i32.const 8)
3795  )
3796  (i32.load
3797  (i32.add
3798  (get_local $0)
3799  (i32.const 8)
3800  )
3801  )
3802  )
3803  (i64.store offset=48
3804  (get_local $2)
3805  (i64.const 1)
3806  )
3807  (i64.store offset=64
3808  (get_local $2)
3809  (i64.const 0)
3810  )
3811  (i32.store offset=36
3812  (get_local $2)
3813  (i32.load
3814  (i32.add
3815  (get_local $0)
3816  (i32.const 4)
3817  )
3818  )
3819  )
3820  (i32.store offset=32
3821  (get_local $2)
3822  (i32.load
3823  (get_local $0)
3824  )
3825  )
3826  (call $assert
3827  (i32.eq
3828  (call $load_primary_i128i128
3829  (i64.const 6291761009417781248)
3830  (i64.const 6291761009417781248)
3831  (i64.const 4292915607302569984)
3832  (i32.add
3833  (get_local $2)
3834  (i32.const 32)
3835  )
3836  (i32.const 44)
3837  )
3838  (i32.const 44)
3839  )
3840  (i32.const 1328)
3841  )
3842  (i64.store offset=8
3843  (get_local $2)
3844  (i64.const 0)
3845  )
3846  (i64.store
3847  (get_local $2)
3848  (get_local $1)
3849  )
3850  (i64.store offset=16
3851  (get_local $2)
3852  (i64.const 0)
3853  )
3854  (i32.store offset=24
3855  (get_local $2)
3856  (i32.const 0)
3857  )
3858  (drop
3859  (call $load_i64
3860  (i64.const 6291761009417781248)
3861  (i64.const 6291761009417781248)
3862  (i64.const 3607749778735104000)
3863  (get_local $2)
3864  (i32.const 28)
3865  )
3866  )
3867  (call $assert
3868  (i64.ge_u
3869  (i64.add
3870  (tee_local $1
3871  (i64.load offset=64
3872  (get_local $2)
3873  )
3874  )
3875  (i64.load offset=8
3876  (get_local $2)
3877  )
3878  )
3879  (get_local $1)
3880  )
3881  (i32.const 32)
3882  )
3883  (i64.store offset=8
3884  (get_local $2)
3885  (i64.add
3886  (i64.load offset=8
3887  (get_local $2)
3888  )
3889  (i64.load offset=64
3890  (get_local $2)
3891  )
3892  )
3893  )
3894  (i32.store offset=24
3895  (get_local $2)
3896  (i32.add
3897  (i32.load offset=24
3898  (get_local $2)
3899  )
3900  (i32.const -1)
3901  )
3902  )
3903  (drop
3904  (call $remove_i128i128
3905  (i64.const 6291761009417781248)
3906  (i64.const 4292915607302569984)
3907  (i32.add
3908  (get_local $2)
3909  (i32.const 32)
3910  )
3911  )
3912  )
3913  (block $label$0
3914  (block $label$1
3915  (br_if $label$1
3916  (i32.eqz
3917  (i32.or
3918  (i64.ne
3919  (i64.or
3920  (i64.load offset=16
3921  (get_local $2)
3922  )
3923  (i64.load offset=8
3924  (get_local $2)
3925  )
3926  )
3927  (i64.const 0)
3928  )
3929  (i32.load offset=24
3930  (get_local $2)
3931  )
3932  )
3933  )
3934  )
3935  (call $prints
3936  (i32.const 96)
3937  )
3938  (drop
3939  (call $store_i64
3940  (i64.const 6291761009417781248)
3941  (i64.const 3607749778735104000)
3942  (get_local $2)
3943  (i32.const 28)
3944  )
3945  )
3946  (br $label$0)
3947  )
3948  (call $prints
3949  (i32.const 80)
3950  )
3951  (drop
3952  (call $remove_i64
3953  (i64.const 6291761009417781248)
3954  (i64.const 3607749778735104000)
3955  (get_local $2)
3956  )
3957  )
3958  )
3959  (call $prints
3960  (i32.const 1376)
3961  )
3962  (i32.store offset=4
3963  (i32.const 0)
3964  (i32.add
3965  (get_local $2)
3966  (i32.const 80)
3967  )
3968  )
3969  )
3970  (func $_ZN8exchange26apply_exchange_cancel_sellENS_8order_idE (param $0 i32)
3971  (local $1 i64)
3972  (local $2 i32)
3973  (i32.store offset=4
3974  (i32.const 0)
3975  (tee_local $2
3976  (i32.sub
3977  (i32.load offset=4
3978  (i32.const 0)
3979  )
3980  (i32.const 80)
3981  )
3982  )
3983  )
3984  (call $require_auth
3985  (tee_local $1
3986  (i64.load
3987  (get_local $0)
3988  )
3989  )
3990  )
3991  (i64.store
3992  (i32.add
3993  (get_local $2)
3994  (i32.const 56)
3995  )
3996  (i64.const 0)
3997  )
3998  (i32.store
3999  (i32.add
4000  (i32.add
4001  (get_local $2)
4002  (i32.const 32)
4003  )
4004  (i32.const 12)
4005  )
4006  (i32.load
4007  (i32.add
4008  (get_local $0)
4009  (i32.const 12)
4010  )
4011  )
4012  )
4013  (i32.store
4014  (i32.add
4015  (i32.add
4016  (get_local $2)
4017  (i32.const 32)
4018  )
4019  (i32.const 8)
4020  )
4021  (i32.load
4022  (i32.add
4023  (get_local $0)
4024  (i32.const 8)
4025  )
4026  )
4027  )
4028  (i64.store offset=48
4029  (get_local $2)
4030  (i64.const 1)
4031  )
4032  (i64.store offset=64
4033  (get_local $2)
4034  (i64.const 0)
4035  )
4036  (i32.store offset=36
4037  (get_local $2)
4038  (i32.load
4039  (i32.add
4040  (get_local $0)
4041  (i32.const 4)
4042  )
4043  )
4044  )
4045  (i32.store offset=32
4046  (get_local $2)
4047  (i32.load
4048  (get_local $0)
4049  )
4050  )
4051  (call $assert
4052  (i32.eq
4053  (call $load_primary_i128i128
4054  (i64.const 6291761009417781248)
4055  (i64.const 6291761009417781248)
4056  (i64.const 3900539489767915520)
4057  (i32.add
4058  (get_local $2)
4059  (i32.const 32)
4060  )
4061  (i32.const 44)
4062  )
4063  (i32.const 44)
4064  )
4065  (i32.const 1392)
4066  )
4067  (i64.store offset=8
4068  (get_local $2)
4069  (i64.const 0)
4070  )
4071  (i64.store
4072  (get_local $2)
4073  (get_local $1)
4074  )
4075  (i64.store offset=16
4076  (get_local $2)
4077  (i64.const 0)
4078  )
4079  (i32.store offset=24
4080  (get_local $2)
4081  (i32.const 0)
4082  )
4083  (drop
4084  (call $load_i64
4085  (i64.const 6291761009417781248)
4086  (i64.const 6291761009417781248)
4087  (i64.const 3607749778735104000)
4088  (get_local $2)
4089  (i32.const 28)
4090  )
4091  )
4092  (call $assert
4093  (i64.ge_u
4094  (i64.add
4095  (tee_local $1
4096  (i64.load offset=64
4097  (get_local $2)
4098  )
4099  )
4100  (i64.load offset=16
4101  (get_local $2)
4102  )
4103  )
4104  (get_local $1)
4105  )
4106  (i32.const 32)
4107  )
4108  (i64.store offset=16
4109  (get_local $2)
4110  (i64.add
4111  (i64.load offset=16
4112  (get_local $2)
4113  )
4114  (i64.load offset=64
4115  (get_local $2)
4116  )
4117  )
4118  )
4119  (i32.store offset=24
4120  (get_local $2)
4121  (i32.add
4122  (i32.load offset=24
4123  (get_local $2)
4124  )
4125  (i32.const -1)
4126  )
4127  )
4128  (drop
4129  (call $remove_i128i128
4130  (i64.const 6291761009417781248)
4131  (i64.const 3900539489767915520)
4132  (i32.add
4133  (get_local $2)
4134  (i32.const 32)
4135  )
4136  )
4137  )
4138  (block $label$0
4139  (block $label$1
4140  (br_if $label$1
4141  (i32.eqz
4142  (i32.or
4143  (i64.ne
4144  (i64.or
4145  (i64.load offset=16
4146  (get_local $2)
4147  )
4148  (i64.load offset=8
4149  (get_local $2)
4150  )
4151  )
4152  (i64.const 0)
4153  )
4154  (i32.load offset=24
4155  (get_local $2)
4156  )
4157  )
4158  )
4159  )
4160  (call $prints
4161  (i32.const 96)
4162  )
4163  (drop
4164  (call $store_i64
4165  (i64.const 6291761009417781248)
4166  (i64.const 3607749778735104000)
4167  (get_local $2)
4168  (i32.const 28)
4169  )
4170  )
4171  (br $label$0)
4172  )
4173  (call $prints
4174  (i32.const 80)
4175  )
4176  (drop
4177  (call $remove_i64
4178  (i64.const 6291761009417781248)
4179  (i64.const 3607749778735104000)
4180  (get_local $2)
4181  )
4182  )
4183  )
4184  (call $prints
4185  (i32.const 1440)
4186  )
4187  (i32.store offset=4
4188  (i32.const 0)
4189  (i32.add
4190  (get_local $2)
4191  (i32.const 80)
4192  )
4193  )
4194  )
4195  (func $init
4196  )
4197  (func $apply (param $0 i64) (param $1 i64)
4198  (local $2 i32)
4199  (local $3 i32)
4200  (local $4 i64)
4201  (local $5 i64)
4202  (local $6 i64)
4203  (local $7 i64)
4204  (local $8 i32)
4205  (i32.store offset=4
4206  (i32.const 0)
4207  (tee_local $8
4208  (i32.sub
4209  (i32.load offset=4
4210  (i32.const 0)
4211  )
4212  (i32.const 288)
4213  )
4214  )
4215  )
4216  (set_local $5
4217  (i64.const 0)
4218  )
4219  (set_local $4
4220  (i64.const 59)
4221  )
4222  (set_local $3
4223  (i32.const 16)
4224  )
4225  (set_local $6
4226  (i64.const 0)
4227  )
4228  (loop $label$0
4229  (block $label$1
4230  (block $label$2
4231  (block $label$3
4232  (block $label$4
4233  (block $label$5
4234  (br_if $label$5
4235  (i64.gt_u
4236  (get_local $5)
4237  (i64.const 7)
4238  )
4239  )
4240  (br_if $label$4
4241  (i32.gt_u
4242  (i32.and
4243  (i32.add
4244  (tee_local $2
4245  (i32.load8_s
4246  (get_local $3)
4247  )
4248  )
4249  (i32.const -97)
4250  )
4251  (i32.const 255)
4252  )
4253  (i32.const 25)
4254  )
4255  )
4256  (set_local $2
4257  (i32.add
4258  (get_local $2)
4259  (i32.const 165)
4260  )
4261  )
4262  (br $label$3)
4263  )
4264  (set_local $7
4265  (i64.const 0)
4266  )
4267  (br_if $label$2
4268  (i64.le_u
4269  (get_local $5)
4270  (i64.const 11)
4271  )
4272  )
4273  (br $label$1)
4274  )
4275  (set_local $2
4276  (select
4277  (i32.add
4278  (get_local $2)
4279  (i32.const 208)
4280  )
4281  (i32.const 0)
4282  (i32.lt_u
4283  (i32.and
4284  (i32.add
4285  (get_local $2)
4286  (i32.const -49)
4287  )
4288  (i32.const 255)
4289  )
4290  (i32.const 5)
4291  )
4292  )
4293  )
4294  )
4295  (set_local $7
4296  (i64.shr_s
4297  (i64.shl
4298  (i64.extend_u/i32
4299  (get_local $2)
4300  )
4301  (i64.const 56)
4302  )
4303  (i64.const 56)
4304  )
4305  )
4306  )
4307  (set_local $7
4308  (i64.shl
4309  (i64.and
4310  (get_local $7)
4311  (i64.const 31)
4312  )
4313  (i64.and
4314  (get_local $4)
4315  (i64.const 4294967295)
4316  )
4317  )
4318  )
4319  )
4320  (set_local $3
4321  (i32.add
4322  (get_local $3)
4323  (i32.const 1)
4324  )
4325  )
4326  (set_local $5
4327  (i64.add
4328  (get_local $5)
4329  (i64.const 1)
4330  )
4331  )
4332  (set_local $6
4333  (i64.or
4334  (get_local $7)
4335  (get_local $6)
4336  )
4337  )
4338  (br_if $label$0
4339  (i64.ne
4340  (tee_local $4
4341  (i64.add
4342  (get_local $4)
4343  (i64.const -5)
4344  )
4345  )
4346  (i64.const -6)
4347  )
4348  )
4349  )
4350  (block $label$6
4351  (block $label$7
4352  (block $label$8
4353  (block $label$9
4354  (block $label$10
4355  (block $label$11
4356  (block $label$12
4357  (br_if $label$12
4358  (i64.ne
4359  (get_local $6)
4360  (get_local $0)
4361  )
4362  )
4363  (br_if $label$11
4364  (i64.gt_s
4365  (get_local $1)
4366  (i64.const 4730614989913587711)
4367  )
4368  )
4369  (br_if $label$9
4370  (i64.eq
4371  (get_local $1)
4372  (i64.const -4421672816961650688)
4373  )
4374  )
4375  (br_if $label$7
4376  (i64.ne
4377  (get_local $1)
4378  (i64.const 4520488125973135360)
4379  )
4380  )
4381  (i64.store
4382  (i32.add
4383  (get_local $8)
4384  (i32.const 264)
4385  )
4386  (i64.const 0)
4387  )
4388  (i64.store offset=256
4389  (get_local $8)
4390  (i64.const 1)
4391  )
4392  (i64.store offset=248
4393  (get_local $8)
4394  (i64.const 0)
4395  )
4396  (i64.store offset=240
4397  (get_local $8)
4398  (i64.const 0)
4399  )
4400  (i64.store offset=272
4401  (get_local $8)
4402  (i64.const 0)
4403  )
4404  (i32.store8 offset=284
4405  (get_local $8)
4406  (i32.const 0)
4407  )
4408  (call $assert
4409  (i32.gt_u
4410  (call $read_message
4411  (i32.add
4412  (get_local $8)
4413  (i32.const 240)
4414  )
4415  (i32.const 45)
4416  )
4417  (i32.const 44)
4418  )
4419  (i32.const 1456)
4420  )
4421  (drop
4422  (call $memcpy
4423  (i32.add
4424  (get_local $8)
4425  (i32.const 6)
4426  )
4427  (i32.add
4428  (get_local $8)
4429  (i32.const 240)
4430  )
4431  (i32.const 45)
4432  )
4433  )
4434  (call $_ZN8exchange18apply_exchange_buyENS_9buy_orderE
4435  (i32.add
4436  (get_local $8)
4437  (i32.const 6)
4438  )
4439  )
4440  (br $label$6)
4441  )
4442  (set_local $5
4443  (i64.const 0)
4444  )
4445  (set_local $4
4446  (i64.const 59)
4447  )
4448  (set_local $3
4449  (i32.const 1504)
4450  )
4451  (set_local $6
4452  (i64.const 0)
4453  )
4454  (loop $label$13
4455  (block $label$14
4456  (block $label$15
4457  (block $label$16
4458  (block $label$17
4459  (block $label$18
4460  (br_if $label$18
4461  (i64.gt_u
4462  (get_local $5)
4463  (i64.const 7)
4464  )
4465  )
4466  (br_if $label$17
4467  (i32.gt_u
4468  (i32.and
4469  (i32.add
4470  (tee_local $2
4471  (i32.load8_s
4472  (get_local $3)
4473  )
4474  )
4475  (i32.const -97)
4476  )
4477  (i32.const 255)
4478  )
4479  (i32.const 25)
4480  )
4481  )
4482  (set_local $2
4483  (i32.add
4484  (get_local $2)
4485  (i32.const 165)
4486  )
4487  )
4488  (br $label$16)
4489  )
4490  (set_local $7
4491  (i64.const 0)
4492  )
4493  (br_if $label$15
4494  (i64.le_u
4495  (get_local $5)
4496  (i64.const 11)
4497  )
4498  )
4499  (br $label$14)
4500  )
4501  (set_local $2
4502  (select
4503  (i32.add
4504  (get_local $2)
4505  (i32.const 208)
4506  )
4507  (i32.const 0)
4508  (i32.lt_u
4509  (i32.and
4510  (i32.add
4511  (get_local $2)
4512  (i32.const -49)
4513  )
4514  (i32.const 255)
4515  )
4516  (i32.const 5)
4517  )
4518  )
4519  )
4520  )
4521  (set_local $7
4522  (i64.shr_s
4523  (i64.shl
4524  (i64.extend_u/i32
4525  (get_local $2)
4526  )
4527  (i64.const 56)
4528  )
4529  (i64.const 56)
4530  )
4531  )
4532  )
4533  (set_local $7
4534  (i64.shl
4535  (i64.and
4536  (get_local $7)
4537  (i64.const 31)
4538  )
4539  (i64.and
4540  (get_local $4)
4541  (i64.const 4294967295)
4542  )
4543  )
4544  )
4545  )
4546  (set_local $3
4547  (i32.add
4548  (get_local $3)
4549  (i32.const 1)
4550  )
4551  )
4552  (set_local $5
4553  (i64.add
4554  (get_local $5)
4555  (i64.const 1)
4556  )
4557  )
4558  (set_local $6
4559  (i64.or
4560  (get_local $7)
4561  (get_local $6)
4562  )
4563  )
4564  (br_if $label$13
4565  (i64.ne
4566  (tee_local $4
4567  (i64.add
4568  (get_local $4)
4569  (i64.const -5)
4570  )
4571  )
4572  (i64.const -6)
4573  )
4574  )
4575  )
4576  (br_if $label$10
4577  (i64.ne
4578  (get_local $6)
4579  (get_local $0)
4580  )
4581  )
4582  (set_local $5
4583  (i64.const 0)
4584  )
4585  (set_local $4
4586  (i64.const 59)
4587  )
4588  (set_local $3
4589  (i32.const 1520)
4590  )
4591  (set_local $6
4592  (i64.const 0)
4593  )
4594  (loop $label$19
4595  (block $label$20
4596  (block $label$21
4597  (block $label$22
4598  (block $label$23
4599  (block $label$24
4600  (br_if $label$24
4601  (i64.gt_u
4602  (get_local $5)
4603  (i64.const 7)
4604  )
4605  )
4606  (br_if $label$23
4607  (i32.gt_u
4608  (i32.and
4609  (i32.add
4610  (tee_local $2
4611  (i32.load8_s
4612  (get_local $3)
4613  )
4614  )
4615  (i32.const -97)
4616  )
4617  (i32.const 255)
4618  )
4619  (i32.const 25)
4620  )
4621  )
4622  (set_local $2
4623  (i32.add
4624  (get_local $2)
4625  (i32.const 165)
4626  )
4627  )
4628  (br $label$22)
4629  )
4630  (set_local $7
4631  (i64.const 0)
4632  )
4633  (br_if $label$21
4634  (i64.le_u
4635  (get_local $5)
4636  (i64.const 11)
4637  )
4638  )
4639  (br $label$20)
4640  )
4641  (set_local $2
4642  (select
4643  (i32.add
4644  (get_local $2)
4645  (i32.const 208)
4646  )
4647  (i32.const 0)
4648  (i32.lt_u
4649  (i32.and
4650  (i32.add
4651  (get_local $2)
4652  (i32.const -49)
4653  )
4654  (i32.const 255)
4655  )
4656  (i32.const 5)
4657  )
4658  )
4659  )
4660  )
4661  (set_local $7
4662  (i64.shr_s
4663  (i64.shl
4664  (i64.extend_u/i32
4665  (get_local $2)
4666  )
4667  (i64.const 56)
4668  )
4669  (i64.const 56)
4670  )
4671  )
4672  )
4673  (set_local $7
4674  (i64.shl
4675  (i64.and
4676  (get_local $7)
4677  (i64.const 31)
4678  )
4679  (i64.and
4680  (get_local $4)
4681  (i64.const 4294967295)
4682  )
4683  )
4684  )
4685  )
4686  (set_local $3
4687  (i32.add
4688  (get_local $3)
4689  (i32.const 1)
4690  )
4691  )
4692  (set_local $5
4693  (i64.add
4694  (get_local $5)
4695  (i64.const 1)
4696  )
4697  )
4698  (set_local $6
4699  (i64.or
4700  (get_local $7)
4701  (get_local $6)
4702  )
4703  )
4704  (br_if $label$19
4705  (i64.ne
4706  (tee_local $4
4707  (i64.add
4708  (get_local $4)
4709  (i64.const -5)
4710  )
4711  )
4712  (i64.const -6)
4713  )
4714  )
4715  )
4716  (br_if $label$6
4717  (i64.ne
4718  (get_local $6)
4719  (get_local $1)
4720  )
4721  )
4722  (i64.store offset=144
4723  (get_local $8)
4724  (i64.const 0)
4725  )
4726  (call $assert
4727  (i32.gt_u
4728  (call $read_message
4729  (i32.add
4730  (get_local $8)
4731  (i32.const 128)
4732  )
4733  (i32.const 24)
4734  )
4735  (i32.const 23)
4736  )
4737  (i32.const 1456)
4738  )
4739  (call $_ZN8exchange23apply_currency_transferERKN8currency8transferE
4740  (i32.add
4741  (get_local $8)
4742  (i32.const 128)
4743  )
4744  )
4745  (br $label$6)
4746  )
4747  (br_if $label$8
4748  (i64.eq
4749  (get_local $1)
4750  (i64.const 4730614989913587712)
4751  )
4752  )
4753  (br_if $label$7
4754  (i64.ne
4755  (get_local $1)
4756  (i64.const 4730614998765420544)
4757  )
4758  )
4759  (i64.store offset=168
4760  (get_local $8)
4761  (i64.const 0)
4762  )
4763  (i64.store offset=160
4764  (get_local $8)
4765  (i64.const 0)
4766  )
4767  (call $assert
4768  (i32.gt_u
4769  (call $read_message
4770  (i32.add
4771  (get_local $8)
4772  (i32.const 160)
4773  )
4774  (i32.const 16)
4775  )
4776  (i32.const 15)
4777  )
4778  (i32.const 1456)
4779  )
4780  (i64.store
4781  (i32.add
4782  (get_local $8)
4783  (i32.const 120)
4784  )
4785  (i64.load offset=168
4786  (get_local $8)
4787  )
4788  )
4789  (i64.store offset=112
4790  (get_local $8)
4791  (i64.load offset=160
4792  (get_local $8)
4793  )
4794  )
4795  (call $_ZN8exchange26apply_exchange_cancel_sellENS_8order_idE
4796  (i32.add
4797  (get_local $8)
4798  (i32.const 112)
4799  )
4800  )
4801  (br $label$6)
4802  )
4803  (set_local $5
4804  (i64.const 0)
4805  )
4806  (set_local $4
4807  (i64.const 59)
4808  )
4809  (set_local $3
4810  (i32.const 1536)
4811  )
4812  (set_local $6
4813  (i64.const 0)
4814  )
4815  (loop $label$25
4816  (block $label$26
4817  (block $label$27
4818  (block $label$28
4819  (block $label$29
4820  (block $label$30
4821  (br_if $label$30
4822  (i64.gt_u
4823  (get_local $5)
4824  (i64.const 2)
4825  )
4826  )
4827  (br_if $label$29
4828  (i32.gt_u
4829  (i32.and
4830  (i32.add
4831  (tee_local $2
4832  (i32.load8_s
4833  (get_local $3)
4834  )
4835  )
4836  (i32.const -97)
4837  )
4838  (i32.const 255)
4839  )
4840  (i32.const 25)
4841  )
4842  )
4843  (set_local $2
4844  (i32.add
4845  (get_local $2)
4846  (i32.const 165)
4847  )
4848  )
4849  (br $label$28)
4850  )
4851  (set_local $7
4852  (i64.const 0)
4853  )
4854  (br_if $label$27
4855  (i64.le_u
4856  (get_local $5)
4857  (i64.const 11)
4858  )
4859  )
4860  (br $label$26)
4861  )
4862  (set_local $2
4863  (select
4864  (i32.add
4865  (get_local $2)
4866  (i32.const 208)
4867  )
4868  (i32.const 0)
4869  (i32.lt_u
4870  (i32.and
4871  (i32.add
4872  (get_local $2)
4873  (i32.const -49)
4874  )
4875  (i32.const 255)
4876  )
4877  (i32.const 5)
4878  )
4879  )
4880  )
4881  )
4882  (set_local $7
4883  (i64.shr_s
4884  (i64.shl
4885  (i64.extend_u/i32
4886  (get_local $2)
4887  )
4888  (i64.const 56)
4889  )
4890  (i64.const 56)
4891  )
4892  )
4893  )
4894  (set_local $7
4895  (i64.shl
4896  (i64.and
4897  (get_local $7)
4898  (i64.const 31)
4899  )
4900  (i64.and
4901  (get_local $4)
4902  (i64.const 4294967295)
4903  )
4904  )
4905  )
4906  )
4907  (set_local $3
4908  (i32.add
4909  (get_local $3)
4910  (i32.const 1)
4911  )
4912  )
4913  (set_local $5
4914  (i64.add
4915  (get_local $5)
4916  (i64.const 1)
4917  )
4918  )
4919  (set_local $6
4920  (i64.or
4921  (get_local $7)
4922  (get_local $6)
4923  )
4924  )
4925  (br_if $label$25
4926  (i64.ne
4927  (tee_local $4
4928  (i64.add
4929  (get_local $4)
4930  (i64.const -5)
4931  )
4932  )
4933  (i64.const -6)
4934  )
4935  )
4936  )
4937  (br_if $label$6
4938  (i64.ne
4939  (get_local $6)
4940  (get_local $0)
4941  )
4942  )
4943  (set_local $5
4944  (i64.const 0)
4945  )
4946  (set_local $4
4947  (i64.const 59)
4948  )
4949  (set_local $3
4950  (i32.const 1520)
4951  )
4952  (set_local $6
4953  (i64.const 0)
4954  )
4955  (loop $label$31
4956  (block $label$32
4957  (block $label$33
4958  (block $label$34
4959  (block $label$35
4960  (block $label$36
4961  (br_if $label$36
4962  (i64.gt_u
4963  (get_local $5)
4964  (i64.const 7)
4965  )
4966  )
4967  (br_if $label$35
4968  (i32.gt_u
4969  (i32.and
4970  (i32.add
4971  (tee_local $2
4972  (i32.load8_s
4973  (get_local $3)
4974  )
4975  )
4976  (i32.const -97)
4977  )
4978  (i32.const 255)
4979  )
4980  (i32.const 25)
4981  )
4982  )
4983  (set_local $2
4984  (i32.add
4985  (get_local $2)
4986  (i32.const 165)
4987  )
4988  )
4989  (br $label$34)
4990  )
4991  (set_local $7
4992  (i64.const 0)
4993  )
4994  (br_if $label$33
4995  (i64.le_u
4996  (get_local $5)
4997  (i64.const 11)
4998  )
4999  )
5000  (br $label$32)
5001  )
5002  (set_local $2
5003  (select
5004  (i32.add
5005  (get_local $2)
5006  (i32.const 208)
5007  )
5008  (i32.const 0)
5009  (i32.lt_u
5010  (i32.and
5011  (i32.add
5012  (get_local $2)
5013  (i32.const -49)
5014  )
5015  (i32.const 255)
5016  )
5017  (i32.const 5)
5018  )
5019  )
5020  )
5021  )
5022  (set_local $7
5023  (i64.shr_s
5024  (i64.shl
5025  (i64.extend_u/i32
5026  (get_local $2)
5027  )
5028  (i64.const 56)
5029  )
5030  (i64.const 56)
5031  )
5032  )
5033  )
5034  (set_local $7
5035  (i64.shl
5036  (i64.and
5037  (get_local $7)
5038  (i64.const 31)
5039  )
5040  (i64.and
5041  (get_local $4)
5042  (i64.const 4294967295)
5043  )
5044  )
5045  )
5046  )
5047  (set_local $3
5048  (i32.add
5049  (get_local $3)
5050  (i32.const 1)
5051  )
5052  )
5053  (set_local $5
5054  (i64.add
5055  (get_local $5)
5056  (i64.const 1)
5057  )
5058  )
5059  (set_local $6
5060  (i64.or
5061  (get_local $7)
5062  (get_local $6)
5063  )
5064  )
5065  (br_if $label$31
5066  (i64.ne
5067  (tee_local $4
5068  (i64.add
5069  (get_local $4)
5070  (i64.const -5)
5071  )
5072  )
5073  (i64.const -6)
5074  )
5075  )
5076  )
5077  (br_if $label$6
5078  (i64.ne
5079  (get_local $6)
5080  (get_local $1)
5081  )
5082  )
5083  (i32.store8 offset=152
5084  (get_local $8)
5085  (i32.const 0)
5086  )
5087  (i64.store offset=144
5088  (get_local $8)
5089  (i64.const 0)
5090  )
5091  (call $assert
5092  (i32.gt_u
5093  (call $read_message
5094  (i32.add
5095  (get_local $8)
5096  (i32.const 128)
5097  )
5098  (i32.const 25)
5099  )
5100  (i32.const 24)
5101  )
5102  (i32.const 1456)
5103  )
5104  (call $_ZN8exchange18apply_eos_transferERKN5eosio8transferE
5105  (i32.add
5106  (get_local $8)
5107  (i32.const 128)
5108  )
5109  )
5110  (br $label$6)
5111  )
5112  (i64.store
5113  (i32.add
5114  (get_local $8)
5115  (i32.const 216)
5116  )
5117  (i64.const 0)
5118  )
5119  (i64.store offset=208
5120  (get_local $8)
5121  (i64.const 1)
5122  )
5123  (i64.store offset=200
5124  (get_local $8)
5125  (i64.const 0)
5126  )
5127  (i64.store offset=192
5128  (get_local $8)
5129  (i64.const 0)
5130  )
5131  (i64.store offset=224
5132  (get_local $8)
5133  (i64.const 0)
5134  )
5135  (i32.store8 offset=236
5136  (get_local $8)
5137  (i32.const 0)
5138  )
5139  (call $assert
5140  (i32.gt_u
5141  (call $read_message
5142  (i32.add
5143  (get_local $8)
5144  (i32.const 192)
5145  )
5146  (i32.const 45)
5147  )
5148  (i32.const 44)
5149  )
5150  (i32.const 1456)
5151  )
5152  (drop
5153  (call $memcpy
5154  (i32.add
5155  (get_local $8)
5156  (i32.const 51)
5157  )
5158  (i32.add
5159  (get_local $8)
5160  (i32.const 192)
5161  )
5162  (i32.const 45)
5163  )
5164  )
5165  (call $_ZN8exchange19apply_exchange_sellENS_10sell_orderE
5166  (i32.add
5167  (get_local $8)
5168  (i32.const 51)
5169  )
5170  )
5171  (br $label$6)
5172  )
5173  (i64.store offset=184
5174  (get_local $8)
5175  (i64.const 0)
5176  )
5177  (i64.store offset=176
5178  (get_local $8)
5179  (i64.const 0)
5180  )
5181  (call $assert
5182  (i32.gt_u
5183  (call $read_message
5184  (i32.add
5185  (get_local $8)
5186  (i32.const 176)
5187  )
5188  (i32.const 16)
5189  )
5190  (i32.const 15)
5191  )
5192  (i32.const 1456)
5193  )
5194  (i64.store
5195  (i32.add
5196  (get_local $8)
5197  (i32.const 104)
5198  )
5199  (i64.load offset=184
5200  (get_local $8)
5201  )
5202  )
5203  (i64.store offset=96
5204  (get_local $8)
5205  (i64.load offset=176
5206  (get_local $8)
5207  )
5208  )
5209  (call $_ZN8exchange25apply_exchange_cancel_buyENS_8order_idE
5210  (i32.add
5211  (get_local $8)
5212  (i32.const 96)
5213  )
5214  )
5215  (br $label$6)
5216  )
5217  (call $assert
5218  (i32.const 0)
5219  (i32.const 1488)
5220  )
5221  )
5222  (i32.store offset=4
5223  (i32.const 0)
5224  (i32.add
5225  (get_local $8)
5226  (i32.const 288)
5227  )
5228  )
5229  )
5230 )
5231 )=====";
const char * exchange_wast
Definition: exchange.wast.hpp:1
diff --git a/docs/files.html b/docs/files.html index 74dc83ba84b..e757266e9e4 100644 --- a/docs/files.html +++ b/docs/files.html @@ -3,7 +3,8 @@ - + + EOS.IO: File List @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,42 +31,19 @@
- + - - + + + +
  dice  dice.cpp  dice.hpp -  eos - eos.cpp -  eoslib - chain.h - crypto.h - db.hDefines C API for interfacing with blockchain database - db.hpp - eos.hpp - math.h - math.hpp - memory.h - memory.hpp - message.h - message.hpp - print.h - print.hpp - string.hpp - system.h - token.hppDefines types and ABI for standard token messages and database tables - transaction.h - transaction.hpp - types.h - types.hpp -  exchange - exchange.cppDefines an example exchange contract - exchange.hpp - exchange.wast.hpp -  infinite - infinite.cpp - infinite.hpp - infinite.wast.hpp -  proxy - proxy.cpp - proxy.hpp -  simpledb - simpledb.cpp - simpledb.hpp - simpledb.wast.hpp -  skeleton - skeleton.cpp - skeleton.hpp -  social - social.cpp -  storage - storage.cpp - storage.hpp -  test_api - test_api.cpp - test_api.hpp - test_api.wast.hpp - test_chain.cpp - test_crypto.cpp - test_db.cpp - test_math.cpp - test_message.cpp - test_print.cpp - test_string.cpp - test_transaction.cpp - test_types.cpp -  tic_tac_toe - tic_tac_toe.cpp - tic_tac_toe.hpp +  dummy + dummy.wast.hpp +  eos + eos.cpp +  eoslib + account.h + account.hppDefines types and ABI for account API interactions + chain.h + crypto.h + datastream.hpp + db.hDefines C API for interfacing with blockchain database + db.hpp + eos.hpp + fixedpoint.hpp + math.h + math.hpp + memory.h + memory.hpp + message.h + message.hpp + print.h + print.hpp + raw.hpp + raw_fwd.hpp + real.hpp + string.h + string.hpp + system.h + token.hppDefines types and ABI for standard token messages and database tables + transaction.h + transaction.hpp + types.h + types.hpp + varint.hpp +  exchange + exchange.cppDefines an example exchange contract + exchange.hpp + exchange.wast.hpp +  infinite + infinite.cpp + infinite.hpp + infinite.wast.hpp +  malicious + malicious.wast.hpp +  proxy + proxy.cpp + proxy.hpp + proxy.wast.hpp +  simpledb + simpledb.cpp + simpledb.gen.hpp + simpledb.hpp + simpledb.wast.hpp +  skeleton + skeleton.cpp + skeleton.hpp +  social + social.cpp +  storage + storage.cpp + storage.hpp + storage.wast.hpp +  test_api + test_account.cpp + test_api.cpp + test_api.hpp + test_api.wast.hpp + test_chain.cpp + test_crypto.cpp + test_db.cpp + test_fixedpoint.cpp + test_math.cpp + test_message.cpp + test_print.cpp + test_real.cpp + test_string.cpp + test_transaction.cpp + test_types.cpp +  tic_tac_toe + tic_tac_toe.cpp + tic_tac_toe.hpp
@@ -168,7 +162,7 @@ diff --git a/docs/functions.html b/docs/functions.html index 7272ddb4501..6ee18c5565e 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -3,7 +3,8 @@ - + + EOS.IO: Class Members @@ -11,9 +12,6 @@ - @@ -25,7 +23,7 @@ Logo
EOS.IO -  DAWN1.1.0 +  DAWN2.0.0
@@ -33,80 +31,19 @@ - + - - - - + + + +
Here is a list of all class members with links to the classes they belong to:
-

- a -

@@ -184,7 +123,7 @@

- a -