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.
359 lines
9.9 KiB
359 lines
9.9 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.Contract – exw3 v0.0.2</title>
|
|
<link rel="stylesheet" href="dist/app-480ffdc169.css" />
|
|
|
|
<link rel="canonical" href="https://hexdocs.pm/exw3/ExW3.Contract.html" />
|
|
|
|
<script src="dist/sidebar_items-8f71fb01e6.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.0.2
|
|
</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.0.2</small>
|
|
ExW3.Contract
|
|
|
|
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L135" 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="#at/2">at(abi, address)</a>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="summary-row">
|
|
<div class="summary-signature">
|
|
<a href="#child_spec/1">child_spec(arg)</a>
|
|
</div>
|
|
|
|
<div class="summary-synopsis"><p>Returns a specification to start this module under a supervisor</p>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="summary-row">
|
|
<div class="summary-signature">
|
|
<a href="#deploy/2">deploy(bin_filename, options)</a>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="summary-row">
|
|
<div class="summary-signature">
|
|
<a href="#get/2">get(contract, key)</a>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="summary-row">
|
|
<div class="summary-signature">
|
|
<a href="#method/4">method(contract_agent, method_name, args \\ [], options \\ %{})</a>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="summary-row">
|
|
<div class="summary-signature">
|
|
<a href="#put/3">put(contract, key, value)</a>
|
|
</div>
|
|
|
|
<div class="summary-synopsis"><p>Puts the <code class="inline">value</code> for the given <code class="inline">key</code> in the <code class="inline">contract</code></p>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="summary-row">
|
|
<div class="summary-signature">
|
|
<a href="#tx_receipt/2">tx_receipt(contract_agent, tx_hash)</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="at/2">
|
|
|
|
|
|
<div class="detail-header">
|
|
<a href="#at/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">at(abi, address)</span>
|
|
|
|
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L138" 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="child_spec/1">
|
|
|
|
|
|
<div class="detail-header">
|
|
<a href="#child_spec/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">child_spec(arg)</span>
|
|
|
|
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L136" 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">
|
|
<p>Returns a specification to start this module under a supervisor.</p>
|
|
<p>See <a href="https://hexdocs.pm/elixir/Supervisor.html"><code class="inline">Supervisor</code></a>.</p>
|
|
|
|
</section>
|
|
</div>
|
|
<div class="detail" id="deploy/2">
|
|
|
|
|
|
<div class="detail-header">
|
|
<a href="#deploy/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">deploy(bin_filename, options)</span>
|
|
|
|
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L170" 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="get/2">
|
|
|
|
|
|
<div class="detail-header">
|
|
<a href="#get/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">get(contract, key)</span>
|
|
|
|
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L159" 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/4">
|
|
|
|
|
|
<span id="method/2"></span>
|
|
|
|
<span id="method/3"></span>
|
|
|
|
<div class="detail-header">
|
|
<a href="#method/4" 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(contract_agent, method_name, args \\ [], options \\ %{})</span>
|
|
|
|
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L186" 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="put/3">
|
|
|
|
|
|
<div class="detail-header">
|
|
<a href="#put/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">put(contract, key, value)</span>
|
|
|
|
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L166" 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">
|
|
<p>Puts the <code class="inline">value</code> for the given <code class="inline">key</code> in the <code class="inline">contract</code>.</p>
|
|
|
|
</section>
|
|
</div>
|
|
<div class="detail" id="tx_receipt/2">
|
|
|
|
|
|
<div class="detail-header">
|
|
<a href="#tx_receipt/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">tx_receipt(contract_agent, tx_hash)</span>
|
|
|
|
<a href="https://github.com/hswick/exw3/blob/master/lib/exw3.ex#L216" 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>
|
|
|
|
|