Skip to content

Commit

Permalink
Deploying to gh-pages from @ 57eddcf 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-volz committed Jan 9, 2024
1 parent df97e78 commit 7531a8d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file modified build/doctrees/environment.pickle
Binary file not shown.
Binary file modified build/doctrees/sdk/transactions/builder/loans.doctree
Binary file not shown.
4 changes: 2 additions & 2 deletions build/html/sdk/transactions/builder/loans.html
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@
<dt class="sig sig-object py" id="defichain.transactions.builder.modules.Loans.takeloan">
<span class="sig-name descname"><span class="pre">takeloan</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">vaultId</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">addressTo</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">amounts</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></em>, <em class="sig-param"><span class="n"><span class="pre">inputs</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">[]</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../advanced/rawtransactions/tx.html#defichain.transactions.rawtransactions.Transaction" title="defichain.transactions.rawtransactions.tx.Transaction"><span class="pre">Transaction</span></a></span></span><a class="headerlink" href="#defichain.transactions.builder.modules.Loans.takeloan" title="Permalink to this definition">#</a></dt>
<dd><p>Creates a transaction to take a loan in the desired amount out of the specified vault</p>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">builder</span><span class="o">.</span><span class="n">loan</span><span class="o">.</span><span class="n">takeloan</span><span class="p">(</span><span class="s2">&quot;8040fe5eaa75f942dabf57bcdace3a5b71e3eb4fab53467e064e870396913800&quot;</span><span class="p">,</span> <span class="s2">&quot;df1qrvrnk0zyaen8x3pfrza3yznwrrrv5y08rkgrk2&quot;</span><span class="p">,</span> <span class="p">[</span><span class="s2">&quot;1@DUSD&quot;</span><span class="p">,</span> <span class="s2">&quot;2@COIN&quot;</span><span class="p">])</span> <span class="c1"># takes loan from a vault</span>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">builder</span><span class="o">.</span><span class="n">loans</span><span class="o">.</span><span class="n">takeloan</span><span class="p">(</span><span class="s2">&quot;8040fe5eaa75f942dabf57bcdace3a5b71e3eb4fab53467e064e870396913800&quot;</span><span class="p">,</span> <span class="s2">&quot;df1qrvrnk0zyaen8x3pfrza3yznwrrrv5y08rkgrk2&quot;</span><span class="p">,</span> <span class="p">[</span><span class="s2">&quot;1@DUSD&quot;</span><span class="p">,</span> <span class="s2">&quot;2@COIN&quot;</span><span class="p">])</span> <span class="c1"># takes loan from a vault</span>
</pre></div>
</div>
<dl class="field-list simple">
Expand All @@ -365,7 +365,7 @@
<dt class="sig sig-object py" id="defichain.transactions.builder.modules.Loans.paybackloan">
<span class="sig-name descname"><span class="pre">paybackloan</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">vaultId</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">addressFrom</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">amounts</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">str</span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span></em>, <em class="sig-param"><span class="n"><span class="pre">inputs</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">[]</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="../advanced/rawtransactions/tx.html#defichain.transactions.rawtransactions.Transaction" title="defichain.transactions.rawtransactions.tx.Transaction"><span class="pre">Transaction</span></a></span></span><a class="headerlink" href="#defichain.transactions.builder.modules.Loans.paybackloan" title="Permalink to this definition">#</a></dt>
<dd><p>Creates a transaction to pay back the loan token to the specified vault</p>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">builder</span><span class="o">.</span><span class="n">loan</span><span class="o">.</span><span class="n">paybackloan</span><span class="p">(</span><span class="s2">&quot;8040fe5eaa75f942dabf57bcdace3a5b71e3eb4fab53467e064e870396913800&quot;</span><span class="p">,</span> <span class="s2">&quot;df1qrvrnk0zyaen8x3pfrza3yznwrrrv5y08rkgrk2&quot;</span><span class="p">,</span> <span class="p">[</span><span class="s2">&quot;1@DUSD&quot;</span><span class="p">,</span> <span class="s2">&quot;2@COIN&quot;</span><span class="p">])</span> <span class="c1"># pay backs loan to a vault</span>
<div class="doctest highlight-default notranslate"><div class="highlight"><pre><span></span><span class="gp">&gt;&gt;&gt; </span><span class="n">builder</span><span class="o">.</span><span class="n">loans</span><span class="o">.</span><span class="n">paybackloan</span><span class="p">(</span><span class="s2">&quot;8040fe5eaa75f942dabf57bcdace3a5b71e3eb4fab53467e064e870396913800&quot;</span><span class="p">,</span> <span class="s2">&quot;df1qrvrnk0zyaen8x3pfrza3yznwrrrv5y08rkgrk2&quot;</span><span class="p">,</span> <span class="p">[</span><span class="s2">&quot;1@DUSD&quot;</span><span class="p">,</span> <span class="s2">&quot;2@COIN&quot;</span><span class="p">])</span> <span class="c1"># pay backs loan to a vault</span>
</pre></div>
</div>
<dl class="field-list simple">
Expand Down

0 comments on commit 7531a8d

Please sign in to comment.