Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
karonka committed Apr 21, 2020
1 parent 3eae7bd commit f92199b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,14 @@ <h2 class="memtitle"><span class="permalink"><a href="#a06c060597ef2f9c3255fa00e
<table class="params">
<tr><td class="paramdir">[in]</td><td class="paramname">fname</td><td>function name/alias as given in register_contract </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">params</td><td>case 1: sending raw transaction -&gt; params is signed transaction case 2: params is list in json format where 'bytes' and 'address' are given in hex, integers in decimal, 'string' is string, 'boolean' is "true" or "false" (without quotes) ! 'fixed' numbers are not yet supported ! </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">nonce</td><td>in hex (without 0x prefix) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">private_key</td><td>in hex (without 0x prefix) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">gas_price</td><td>in hex (without 0x prefix) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">gas_limit</td><td>in hex (without 0x prefix) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>in hex (without 0x prefix) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">private_key</td><td>in hex (without 0x prefix) </td></tr>
<tr><td class="paramdir">[in]</td><td class="paramname">value</td><td>in hex (without 0x prefix)</td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>status code where msg contains the function result - transaction receipt if the function is a transaction, decoded function result in json format, otherwise </dd></dl>
<dl class="section return"><dt>Returns</dt><dd>status code: 1) if function call was successful status code is 'OK' and status msg contains the function result: transaction receipt if the function is a transaction, decoded function result in json format, otherwise 2) if function call failed status code shows error type and status msg contains the error </dd></dl>

<p class="reference">References <a class="el" href="../../da/dd5/namespaceautomaton_1_1core_1_1io.html#ab19202c80dffefe2cd1a87a60d06a0b3">automaton::core::io::bin2hex()</a>, <a class="el" href="../../da/d6a/structautomaton_1_1core_1_1common_1_1status.html#abc2dc884202afdd8cd8275b5e374c845">automaton::core::common::status::code</a>, <a class="el" href="../../d2/d91/namespaceautomaton_1_1core_1_1interop_1_1ethereum.html#ac9333e6d163be21216a871b3e71d207e">automaton::core::interop::ethereum::curl_post()</a>, <a class="el" href="../../d2/d91/namespaceautomaton_1_1core_1_1interop_1_1ethereum.html#a47ab7911ff4d29153e849da3691c26b6">automaton::core::interop::ethereum::encode()</a>, <a class="el" href="../../d2/d91/namespaceautomaton_1_1core_1_1interop_1_1ethereum.html#aeec254eba111b5daca0926c13c5e40bd">automaton::core::interop::ethereum::eth_getTransactionReceipt()</a>, <a class="el" href="../../d2/d91/namespaceautomaton_1_1core_1_1interop_1_1ethereum.html#a2fe1212849a89d9403353fefbceac174">automaton::core::interop::ethereum::get_address_from_prkey()</a>, <a class="el" href="../../da/d6a/structautomaton_1_1core_1_1common_1_1status.html#a0f6977fc1cd539a9b9bd359bc4b24b56">automaton::core::common::status::msg</a>, and <a class="el" href="../../d2/d91/namespaceautomaton_1_1core_1_1interop_1_1ethereum.html#a27b51ee15291a4da371626add75e3e4aa62abd0cffe71e4b1a41d641dc0fba10f">automaton::core::interop::ethereum::string</a>.</p>
<div id="dynsection-4" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
Expand Down
8 changes: 4 additions & 4 deletions d5/d4e/acceptor_8cc.html
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
<div class="ttc" id="aclassautomaton_1_1core_1_1script_1_1module_html"><div class="ttname"><a href="../../db/d61/classautomaton_1_1core_1_1script_1_1module.html">automaton::core::script::module</a></div><div class="ttdef"><b>Definition:</b> registry.h:25</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1data_1_1factory_html_abc2e4b8ed94bb100184ed961eb4618d4"><div class="ttname"><a href="../../d2/d94/classautomaton_1_1core_1_1data_1_1factory.html#abc2e4b8ed94bb100184ed961eb4618d4">automaton::core::data::factory::get_field_info</a></div><div class="ttdeci">virtual schema::field_info get_field_info(uint32_t schema_id, uint32_t index) const =0</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1network_1_1http__server_html_aa3fdf8b8baf0ff8e9b7d0969eb44a527a352dcb49d65444a6ea2bc6564873b62f"><div class="ttname"><a href="../../d9/d1d/classautomaton_1_1core_1_1network_1_1http__server.html#aa3fdf8b8baf0ff8e9b7d0969eb44a527a352dcb49d65444a6ea2bc6564873b62f">automaton::core::network::http_server::UNAUTHORIZED</a></div><div class="ttdeci">@ UNAUTHORIZED</div><div class="ttdef"><b>Definition:</b> http_server.h:30</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract_html_a200d5250f08df0389b1a10b40b46ecd2"><div class="ttname"><a href="../../d4/de7/classautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract.html#a200d5250f08df0389b1a10b40b46ecd2">automaton::core::interop::ethereum::eth_contract::get_gas_limit</a></div><div class="ttdeci">std::string get_gas_limit()</div><div class="ttdef"><b>Definition:</b> eth_contract_curl.cc:206</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract_html_a200d5250f08df0389b1a10b40b46ecd2"><div class="ttname"><a href="../../d4/de7/classautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract.html#a200d5250f08df0389b1a10b40b46ecd2">automaton::core::interop::ethereum::eth_contract::get_gas_limit</a></div><div class="ttdeci">std::string get_gas_limit()</div><div class="ttdef"><b>Definition:</b> eth_contract_curl.cc:210</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1crypto_1_1cryptopp_1_1secure__random__cryptopp_html_a2ae82d173fb7a9d32e95338177156eab"><div class="ttname"><a href="../../db/dc7/classautomaton_1_1core_1_1crypto_1_1cryptopp_1_1secure__random__cryptopp.html#a2ae82d173fb7a9d32e95338177156eab">automaton::core::crypto::cryptopp::secure_random_cryptopp::block</a></div><div class="ttdeci">void block(uint8_t *buffer, size_t size)</div><div class="ttdef"><b>Definition:</b> secure_random_cryptopp.cc:14</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1state_1_1state_html_aa83408a28c940dd689847508bf1feb0a"><div class="ttname"><a href="../../de/dee/classautomaton_1_1core_1_1state_1_1state.html#aa83408a28c940dd689847508bf1feb0a">automaton::core::state::state::hash_size</a></div><div class="ttdeci">virtual uint32_t hash_size()=0</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1node_1_1node__updater_html_a7d333386c863ae2fb3c7f228215199e4"><div class="ttname"><a href="../../db/d8a/classautomaton_1_1core_1_1node_1_1node__updater.html#a7d333386c863ae2fb3c7f228215199e4">automaton::core::node::node_updater::running</a></div><div class="ttdeci">bool running</div><div class="ttdef"><b>Definition:</b> node_updater.h:33</div></div>
Expand Down Expand Up @@ -285,7 +285,7 @@
<div class="ttc" id="aclassautomaton_1_1core_1_1script_1_1module_html_a5006ac561f8b8199c0ceff8974725027"><div class="ttname"><a href="../../db/d61/classautomaton_1_1core_1_1script_1_1module.html#a5006ac561f8b8199c0ceff8974725027">automaton::core::script::module::minor_version</a></div><div class="ttdeci">virtual const uint32_t minor_version() const</div><div class="ttdef"><b>Definition:</b> registry.h:65</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1state_1_1state__impl_html_a7c10dbf63eba4319f13b635ccbcc2f31"><div class="ttname"><a href="../../dd/da5/classautomaton_1_1core_1_1state_1_1state__impl.html#a7c10dbf63eba4319f13b635ccbcc2f31">automaton::core::state::state_impl::delete_node_tree</a></div><div class="ttdeci">void delete_node_tree(const std::string &amp;path)</div><div class="ttdef"><b>Definition:</b> state_impl.cc:156</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1data_1_1factory_html_a8cfa69be2956321d570ac22d5de9247f"><div class="ttname"><a href="../../d2/d94/classautomaton_1_1core_1_1data_1_1factory.html#a8cfa69be2956321d570ac22d5de9247f">automaton::core::data::factory::~factory</a></div><div class="ttdeci">virtual ~factory()=0</div><div class="ttdef"><b>Definition:</b> factory.cc:7</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract_html_ad72a6b7c43dbe13433209e822495a615"><div class="ttname"><a href="../../d4/de7/classautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract.html#ad72a6b7c43dbe13433209e822495a615">automaton::core::interop::ethereum::eth_contract::set_gas_price</a></div><div class="ttdeci">void set_gas_price(const std::string &amp;new_gas_price_hex)</div><div class="ttdef"><b>Definition:</b> eth_contract_curl.cc:194</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract_html_ad72a6b7c43dbe13433209e822495a615"><div class="ttname"><a href="../../d4/de7/classautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract.html#ad72a6b7c43dbe13433209e822495a615">automaton::core::interop::ethereum::eth_contract::set_gas_price</a></div><div class="ttdeci">void set_gas_price(const std::string &amp;new_gas_price_hex)</div><div class="ttdef"><b>Definition:</b> eth_contract_curl.cc:198</div></div>
<div class="ttc" id="aeth__helper__functions_8h_html"><div class="ttname"><a href="../../dc/dbc/eth__helper__functions_8h.html">eth_helper_functions.h</a></div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1data_1_1schema_html"><div class="ttname"><a href="../../df/d35/classautomaton_1_1core_1_1data_1_1schema.html">automaton::core::data::schema</a></div><div class="ttdef"><b>Definition:</b> schema.h:27</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1crypto_1_1cryptopp_1_1_s_h_a256__cryptopp_html_a52f0d8f7c7bc966a870d51be73821299"><div class="ttname"><a href="../../de/dd4/classautomaton_1_1core_1_1crypto_1_1cryptopp_1_1_s_h_a256__cryptopp.html#a52f0d8f7c7bc966a870d51be73821299">automaton::core::crypto::cryptopp::SHA256_cryptopp::SHA256_cryptopp</a></div><div class="ttdeci">SHA256_cryptopp()</div><div class="ttdef"><b>Definition:</b> SHA256_cryptopp.cc:9</div></div>
Expand Down Expand Up @@ -444,7 +444,7 @@
<div class="ttc" id="anamespaceautomaton_1_1tools_1_1miner_html_a05909e124eb3ea47b74479125c710527"><div class="ttname"><a href="../../d0/d6e/namespaceautomaton_1_1tools_1_1miner.html#a05909e124eb3ea47b74479125c710527">automaton::tools::miner::sign</a></div><div class="ttdeci">std::string sign(const unsigned char *priv_key, const unsigned char *msg_hash)</div><div class="ttdef"><b>Definition:</b> miner.cc:71</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1network_1_1tcp__connection_html"><div class="ttname"><a href="../../d3/d6a/classautomaton_1_1core_1_1network_1_1tcp__connection.html">automaton::core::network::tcp_connection</a></div><div class="ttdef"><b>Definition:</b> tcp_implementation.h:50</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1node_1_1node_html_a5df41ff2dc3936941584028a9d7df346"><div class="ttname"><a href="../../da/d77/classautomaton_1_1core_1_1node_1_1node.html#a5df41ff2dc3936941584028a9d7df346">automaton::core::node::node::nodeid</a></div><div class="ttdeci">std::string nodeid</div><div class="ttdef"><b>Definition:</b> node.h:104</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract_html_a7b5bd8fa3c53423f8411521cd7ef6662"><div class="ttname"><a href="../../d4/de7/classautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract.html#a7b5bd8fa3c53423f8411521cd7ef6662">automaton::core::interop::ethereum::eth_contract::get_gas_price</a></div><div class="ttdeci">std::string get_gas_price()</div><div class="ttdef"><b>Definition:</b> eth_contract_curl.cc:202</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract_html_a7b5bd8fa3c53423f8411521cd7ef6662"><div class="ttname"><a href="../../d4/de7/classautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract.html#a7b5bd8fa3c53423f8411521cd7ef6662">automaton::core::interop::ethereum::eth_contract::get_gas_price</a></div><div class="ttdeci">std::string get_gas_price()</div><div class="ttdef"><b>Definition:</b> eth_contract_curl.cc:206</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1data_1_1protobuf_1_1proto__error__collector_html_aa1ea62bfc3852556509867c6f4c1cfe8"><div class="ttname"><a href="../../d1/d69/classautomaton_1_1core_1_1data_1_1protobuf_1_1proto__error__collector.html#aa1ea62bfc3852556509867c6f4c1cfe8">automaton::core::data::protobuf::proto_error_collector::AddWarning</a></div><div class="ttdeci">void AddWarning(const std::string &amp;filename, const std::string &amp;element_name, const google::protobuf::Message *descriptor, google::protobuf::DescriptorPool::ErrorCollector::ErrorLocation location, const std::string &amp;message)</div><div class="ttdef"><b>Definition:</b> protobuf_factory.cc:547</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1data_1_1msg_html_aa8e74002721fe66aab804dba31c9f680"><div class="ttname"><a href="../../df/d83/classautomaton_1_1core_1_1data_1_1msg.html#aa8e74002721fe66aab804dba31c9f680">automaton::core::data::msg::msg</a></div><div class="ttdeci">msg(const msg &amp;that)=delete</div></div>
<div class="ttc" id="aeth__contract__curl__test_8cc_html_a20fb7533bcf5465216c92398efb2e17f"><div class="ttname"><a href="../../d4/d57/eth__contract__curl__test_8cc.html#a20fb7533bcf5465216c92398efb2e17f">CONTRACT_ADDR</a></div><div class="ttdeci">static const char * CONTRACT_ADDR</div><div class="ttdef"><b>Definition:</b> eth_contract_curl_test.cc:32</div></div>
Expand Down Expand Up @@ -531,7 +531,7 @@
<div class="ttc" id="aclassautomaton_1_1core_1_1data_1_1protobuf_1_1protobuf__factory_html_a481d52a15f165d4523ec2c2ef811f6be"><div class="ttname"><a href="../../dd/dbb/classautomaton_1_1core_1_1data_1_1protobuf_1_1protobuf__factory.html#a481d52a15f165d4523ec2c2ef811f6be">automaton::core::data::protobuf::protobuf_factory::new_message_by_name</a></div><div class="ttdeci">std::unique_ptr&lt; msg &gt; new_message_by_name(const char *schema_name)</div><div class="ttdef"><b>Definition:</b> protobuf_factory.cc:300</div></div>
<div class="ttc" id="aeth__contract__curl__test_8cc_html_a5481b77e82f46987ef66c9a8ba4bd146"><div class="ttname"><a href="../../d4/d57/eth__contract__curl__test_8cc.html#a5481b77e82f46987ef66c9a8ba4bd146">PRIVATE_KEY</a></div><div class="ttdeci">static const char * PRIVATE_KEY</div><div class="ttdef"><b>Definition:</b> eth_contract_curl_test.cc:34</div></div>
<div class="ttc" id="anamespaceautomaton_1_1core_1_1interop_1_1ethereum_html_a2fe1212849a89d9403353fefbceac174"><div class="ttname"><a href="../../d2/d91/namespaceautomaton_1_1core_1_1interop_1_1ethereum.html#a2fe1212849a89d9403353fefbceac174">automaton::core::interop::ethereum::get_address_from_prkey</a></div><div class="ttdeci">std::string get_address_from_prkey(const std::string &amp;private_key_hex)</div><div class="ttdef"><b>Definition:</b> eth_helper_functions.h:206</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract_html_af8d5ccbb0a5799cc90b13660de828e64"><div class="ttname"><a href="../../d4/de7/classautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract.html#af8d5ccbb0a5799cc90b13660de828e64">automaton::core::interop::ethereum::eth_contract::set_gas_limit</a></div><div class="ttdeci">void set_gas_limit(const std::string &amp;new_gas_limit_hex)</div><div class="ttdef"><b>Definition:</b> eth_contract_curl.cc:198</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract_html_af8d5ccbb0a5799cc90b13660de828e64"><div class="ttname"><a href="../../d4/de7/classautomaton_1_1core_1_1interop_1_1ethereum_1_1eth__contract.html#af8d5ccbb0a5799cc90b13660de828e64">automaton::core::interop::ethereum::eth_contract::set_gas_limit</a></div><div class="ttdeci">void set_gas_limit(const std::string &amp;new_gas_limit_hex)</div><div class="ttdef"><b>Definition:</b> eth_contract_curl.cc:202</div></div>
<div class="ttc" id="aclassautomaton_1_1core_1_1crypto_1_1cryptopp_1_1_r_i_p_e_m_d160__cryptopp_html_a73a39eaa7802c3c6cf60f4ea373bb29f"><div class="ttname"><a href="../../d1/daa/classautomaton_1_1core_1_1crypto_1_1cryptopp_1_1_r_i_p_e_m_d160__cryptopp.html#a73a39eaa7802c3c6cf60f4ea373bb29f">automaton::core::crypto::cryptopp::RIPEMD160_cryptopp::calculate_digest</a></div><div class="ttdeci">void calculate_digest(const uint8_t *input, const size_t length, uint8_t *digest)</div><div class="ttdef"><b>Definition:</b> RIPEMD160_cryptopp.cc:17</div></div>
<div class="ttc" id="astructautomaton_1_1core_1_1data_1_1schema_1_1field__info_html_aef08d2b59ce8e9fb7e6dbe16a1bb2e49"><div class="ttname"><a href="../../dd/d0f/structautomaton_1_1core_1_1data_1_1schema_1_1field__info.html#aef08d2b59ce8e9fb7e6dbe16a1bb2e49">automaton::core::data::schema::field_info::is_repeated</a></div><div class="ttdeci">bool is_repeated</div><div class="ttdef"><b>Definition:</b> schema.h:61</div></div>
<div class="ttc" id="astructautomaton_1_1core_1_1io_1_1_color_cout_sink_html_a04e459317b8796bcd95e7e79f57697cc"><div class="ttname"><a href="../../dc/d03/structautomaton_1_1core_1_1io_1_1_color_cout_sink.html#a04e459317b8796bcd95e7e79f57697cc">automaton::core::io::ColorCoutSink::ReceiveLogMessage</a></div><div class="ttdeci">void ReceiveLogMessage(g3::LogMessageMover logEntry)</div><div class="ttdef"><b>Definition:</b> io.cc:154</div></div>
Expand Down

0 comments on commit f92199b

Please sign in to comment.