Skip to content

Commit

Permalink
deploy: 7c1024f
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-stone committed Oct 31, 2024
1 parent 7691165 commit d633e66
Show file tree
Hide file tree
Showing 17 changed files with 2,741 additions and 222 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4cf11614461f861707892c205a490ea4
config: 8c97d51161126f16c9fd5e4db22e7568
tags: 645f666f9bcd5a90fca523b33c5a78b7
10 changes: 8 additions & 2 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" />

<title>CDP Python SDK &#8212; CDP SDK 0.0.9 documentation</title>
<title>CDP Python SDK &#8212; CDP SDK 0.10.0 documentation</title>
<link rel="stylesheet" type="text/css" href="_static/pygments.css?v=d1102ebc" />
<link rel="stylesheet" type="text/css" href="_static/basic.css?v=c058f7c8" />
<link rel="stylesheet" type="text/css" href="_static/alabaster.css?v=27fed22d" />
<script src="_static/documentation_options.js?v=f7cdbf68"></script>
<script src="_static/documentation_options.js?v=82662543"></script>
<script src="_static/doctools.js?v=9a2dae69"></script>
<script src="_static/sphinx_highlight.js?v=dc90522c"></script>
<link rel="index" title="Index" href="genindex.html" />
Expand Down Expand Up @@ -120,6 +120,9 @@ <h2>Funding a Wallet<a class="headerlink" href="#funding-a-wallet" title="Link t
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="c1"># Fund the wallet with a faucet transaction.</span>
<span class="n">faucet_tx</span> <span class="o">=</span> <span class="n">wallet1</span><span class="o">.</span><span class="n">faucet</span><span class="p">()</span>

<span class="c1"># Wait for the faucet transaction to complete.</span>
<span class="n">faucet_tx</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span>

<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Faucet transaction successfully completed: </span><span class="si">{</span><span class="n">faucet_tx</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>
</pre></div>
</div>
Expand Down Expand Up @@ -151,6 +154,9 @@ <h3>Gasless USDC Transfers<a class="headerlink" href="#gasless-usdc-transfers" t
<span class="c1"># Fund the wallet with USDC with a faucet transaction.</span>
<span class="n">usdc_faucet_tx</span> <span class="o">=</span> <span class="n">wallet1</span><span class="o">.</span><span class="n">faucet</span><span class="p">(</span><span class="s2">&quot;usdc&quot;</span><span class="p">)</span>

<span class="c1"># Wait for the faucet transaction to complete.</span>
<span class="n">usdc_faucet_tx</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span>

<span class="nb">print</span><span class="p">(</span><span class="sa">f</span><span class="s2">&quot;Faucet transaction successfully completed: </span><span class="si">{</span><span class="n">usdc_faucet_tx</span><span class="si">}</span><span class="s2">&quot;</span><span class="p">)</span>

<span class="n">transfer</span> <span class="o">=</span> <span class="n">wallet1</span><span class="o">.</span><span class="n">transfer</span><span class="p">(</span><span class="mf">0.00001</span><span class="p">,</span> <span class="s2">&quot;usdc&quot;</span><span class="p">,</span> <span class="n">wallet3</span><span class="p">,</span> <span class="n">gasless</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span><span class="o">.</span><span class="n">wait</span><span class="p">()</span>
Expand Down
6 changes: 6 additions & 0 deletions _sources/README.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ testnet ETH. You are allowed one faucet claim per 24-hour window.
# Fund the wallet with a faucet transaction.
faucet_tx = wallet1.faucet()

# Wait for the faucet transaction to complete.
faucet_tx.wait()

print(f"Faucet transaction successfully completed: {faucet_tx}")
```

Expand Down Expand Up @@ -135,6 +138,9 @@ print(f"Wallet successfully created: {wallet3}")
# Fund the wallet with USDC with a faucet transaction.
usdc_faucet_tx = wallet1.faucet("usdc")

# Wait for the faucet transaction to complete.
usdc_faucet_tx.wait()

print(f"Faucet transaction successfully completed: {usdc_faucet_tx}")

transfer = wallet1.transfer(0.00001, "usdc", wallet3, gasless=True).wait()
Expand Down
8 changes: 8 additions & 0 deletions _sources/cdp.client.api.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ cdp.client.api.external\_addresses\_api module
:undoc-members:
:show-inheritance:

cdp.client.api.fund\_api module
-------------------------------

.. automodule:: cdp.client.api.fund_api
:members:
:undoc-members:
:show-inheritance:

cdp.client.api.networks\_api module
-----------------------------------

Expand Down
64 changes: 64 additions & 0 deletions _sources/cdp.client.models.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,22 @@ cdp.client.models.create\_contract\_invocation\_request module
:undoc-members:
:show-inheritance:

cdp.client.models.create\_fund\_operation\_request module
---------------------------------------------------------

.. automodule:: cdp.client.models.create_fund_operation_request
:members:
:undoc-members:
:show-inheritance:

cdp.client.models.create\_fund\_quote\_request module
-----------------------------------------------------

.. automodule:: cdp.client.models.create_fund_quote_request
:members:
:undoc-members:
:show-inheritance:

cdp.client.models.create\_payload\_signature\_request module
------------------------------------------------------------

Expand Down Expand Up @@ -228,6 +244,14 @@ cdp.client.models.create\_webhook\_request module
:undoc-members:
:show-inheritance:

cdp.client.models.crypto\_amount module
---------------------------------------

.. automodule:: cdp.client.models.crypto_amount
:members:
:undoc-members:
:show-inheritance:

cdp.client.models.deploy\_smart\_contract\_request module
---------------------------------------------------------

Expand Down Expand Up @@ -348,6 +372,46 @@ cdp.client.models.fetch\_staking\_rewards\_request module
:undoc-members:
:show-inheritance:

cdp.client.models.fiat\_amount module
-------------------------------------

.. automodule:: cdp.client.models.fiat_amount
:members:
:undoc-members:
:show-inheritance:

cdp.client.models.fund\_operation module
----------------------------------------

.. automodule:: cdp.client.models.fund_operation
:members:
:undoc-members:
:show-inheritance:

cdp.client.models.fund\_operation\_fees module
----------------------------------------------

.. automodule:: cdp.client.models.fund_operation_fees
:members:
:undoc-members:
:show-inheritance:

cdp.client.models.fund\_operation\_list module
----------------------------------------------

.. automodule:: cdp.client.models.fund_operation_list
:members:
:undoc-members:
:show-inheritance:

cdp.client.models.fund\_quote module
------------------------------------

.. automodule:: cdp.client.models.fund_quote
:members:
:undoc-members:
:show-inheritance:

cdp.client.models.get\_staking\_context\_request module
-------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion _static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const DOCUMENTATION_OPTIONS = {
VERSION: '0.0.9',
VERSION: '0.10.0',
LANGUAGE: 'en',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
Loading

0 comments on commit d633e66

Please sign in to comment.