4
0
Fork 0
Fork of the exw3 library. With our own additions
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
exw3/doc/ExW3.html

712 lines
20 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="generator" content="ExDoc v0.18.3">
<title>ExW3 – exw3 v0.1.0</title>
<link rel="stylesheet" href="dist/app-480ffdc169.css" />
<link rel="canonical" href="https://hexdocs.pm/exw3/ExW3.html" />
<script src="dist/sidebar_items-fa0908e9e2.js"></script>
</head>
<body data-type="modules">
<script>try { if(localStorage.getItem('night-mode')) document.body.className += ' night-mode'; } catch (e) { }</script>
<div class="main">
<button class="sidebar-button sidebar-toggle">
<span class="icon-menu" aria-hidden="true"></span>
<span class="sr-only">Toggle Sidebar</span>
</button>
<button class="sidebar-button night-mode-toggle">
<span class="icon-theme" aria-hidden="true"></span>
<span class="sr-only">Toggle Theme</span>
</button>
<section class="sidebar">
<a href="api-reference.html" class="sidebar-projectLink">
<div class="sidebar-projectDetails">
<h1 class="sidebar-projectName">
exw3
</h1>
<h2 class="sidebar-projectVersion">
v0.1.0
</h2>
</div>
</a>
<form class="sidebar-search" action="search.html">
<button type="submit" class="search-button">
<span class="icon-search" aria-hidden="true"></span>
</button>
<input name="q" type="text" id="search-list" class="search-input" placeholder="Search" aria-label="Search" autocomplete="off" />
</form>
<ul class="sidebar-listNav">
<li><a id="extras-list" href="#full-list">Pages</a></li>
<li><a id="modules-list" href="#full-list">Modules</a></li>
</ul>
<div class="gradient"></div>
<ul id="full-list" class="sidebar-fullList"></ul>
</section>
<section class="content">
<div class="content-outer">
<div id="content" class="content-inner">
<h1>
<small class="visible-xs">exw3 v0.1.0</small>
ExW3
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L1" title="View Source" class="view-source" rel="help">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</h1>
<section id="summary" class="details-list">
<h1 class="section-heading">
<a class="hover-link" href="#summary">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this section</span>
</a>
Summary
</h1>
<div class="summary-functions summary">
<h2>
<a href="#functions">Functions</a>
</h2>
<div class="summary-row">
<div class="summary-signature">
<a href="#accounts/0">accounts()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#balance/1">balance(account)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#block/1">block(block_number)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#block_number/0">block_number()</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#bytes_to_string/1">bytes_to_string(bytes)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#decode_event/2">decode_event(data, signature)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#decode_output/3">decode_output(abi, name, output)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#encode_data/2">encode_data(types_signature, data)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#encode_event/1">encode_event(signature)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#encode_input/3">encode_input(abi, name, input)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#encode_method_call/3">encode_method_call(abi, name, input)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#keys_to_decimal/2">keys_to_decimal(map, keys)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#load_abi/1">load_abi(file_path)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#load_bin/1">load_bin(file_path)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#method_signature/2">method_signature(abi, name)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#mine/1">mine(num_blocks \\ 1)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#reformat_abi/1">reformat_abi(abi)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#to_decimal/1">to_decimal(hex_string)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#tx_receipt/1">tx_receipt(tx_hash)</a>
</div>
</div>
<div class="summary-row">
<div class="summary-signature">
<a href="#types_signature/2">types_signature(abi, name)</a>
</div>
</div>
</div>
</section>
<section id="functions" class="details-list">
<h1 class="section-heading">
<a class="hover-link" href="#functions">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this section</span>
</a>
Functions
</h1>
<div class="detail" id="accounts/0">
<div class="detail-header">
<a href="#accounts/0" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">accounts()</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L10" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="balance/1">
<div class="detail-header">
<a href="#balance/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">balance(account)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L34" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="block/1">
<div class="detail-header">
<a href="#block/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">block(block_number)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L62" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="block_number/0">
<div class="detail-header">
<a href="#block_number/0" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">block_number()</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L24" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="bytes_to_string/1">
<div class="detail-header">
<a href="#bytes_to_string/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">bytes_to_string(bytes)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L3" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="decode_event/2">
<div class="detail-header">
<a href="#decode_event/2" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">decode_event(data, signature)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L79" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="decode_output/3">
<div class="detail-header">
<a href="#decode_output/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">decode_output(abi, name, output)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L112" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="encode_data/2">
<div class="detail-header">
<a href="#encode_data/2" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">encode_data(types_signature, data)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L145" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="encode_event/1">
<div class="detail-header">
<a href="#encode_event/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">encode_event(signature)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L75" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="encode_input/3">
<div class="detail-header">
<a href="#encode_input/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">encode_input(abi, name, input)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L157" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="encode_method_call/3">
<div class="detail-header">
<a href="#encode_method_call/3" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">encode_method_call(abi, name, input)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L152" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="keys_to_decimal/2">
<div class="detail-header">
<a href="#keys_to_decimal/2" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">keys_to_decimal(map, keys)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L44" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="load_abi/1">
<div class="detail-header">
<a href="#load_abi/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">load_abi(file_path)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L94" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="load_bin/1">
<div class="detail-header">
<a href="#load_bin/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">load_bin(file_path)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L103" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="method_signature/2">
<div class="detail-header">
<a href="#method_signature/2" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">method_signature(abi, name)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L133" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="mine/1">
<span id="mine/0"></span>
<div class="detail-header">
<a href="#mine/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">mine(num_blocks \\ 1)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L69" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="reformat_abi/1">
<div class="detail-header">
<a href="#reformat_abi/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">reformat_abi(abi)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L90" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="to_decimal/1">
<div class="detail-header">
<a href="#to_decimal/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">to_decimal(hex_string)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L18" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="tx_receipt/1">
<div class="detail-header">
<a href="#tx_receipt/1" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">tx_receipt(tx_hash)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L52" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
<div class="detail" id="types_signature/2">
<div class="detail-header">
<a href="#types_signature/2" class="detail-link" title="Link to this function">
<span class="icon-link" aria-hidden="true"></span>
<span class="sr-only">Link to this function</span>
</a>
<span class="signature">types_signature(abi, name)</span>
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L127" class="view-source" rel="help" title="View Source">
<span class="icon-code" aria-hidden="true"></span>
<span class="sr-only">View Source</span>
</a>
</div>
<section class="docstring">
</section>
</div>
</section>
<footer class="footer">
<p>
<span class="line">
Built using
<a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" rel="help" target="_blank">ExDoc</a> (v0.18.3),
</span>
<span class="line">
designed by
<a href="https://twitter.com/dignifiedquire" target="_blank" title="@dignifiedquire">Friedel Ziegelmayer</a>.
</span>
</p>
</footer>
</div>
</div>
</section>
</div>
<script src="dist/app-9bd040e5e5.js"></script>
</body>
</html>