Skip to content

Commit

Permalink
Deploy documentation from GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 24, 2024
1 parent 8aaeb11 commit d0d351d
Show file tree
Hide file tree
Showing 11 changed files with 234 additions and 5 deletions.
1 change: 1 addition & 0 deletions _modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ <h1>All modules for which code is available</h1>
<li><a href="multiversx_sdk/abi/codec.html">multiversx_sdk.abi.codec</a></li>
<li><a href="multiversx_sdk/abi/counted_variadic_values.html">multiversx_sdk.abi.counted_variadic_values</a></li>
<li><a href="multiversx_sdk/abi/enum_value.html">multiversx_sdk.abi.enum_value</a></li>
<li><a href="multiversx_sdk/abi/explicit_enum_value.html">multiversx_sdk.abi.explicit_enum_value</a></li>
<li><a href="multiversx_sdk/abi/fields.html">multiversx_sdk.abi.fields</a></li>
<li><a href="multiversx_sdk/abi/interface.html">multiversx_sdk.abi.interface</a></li>
<li><a href="multiversx_sdk/abi/list_value.html">multiversx_sdk.abi.list_value</a></li>
Expand Down
7 changes: 7 additions & 0 deletions _modules/multiversx_sdk/abi/abi.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ <h1>Source code for multiversx_sdk.abi.abi</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">multiversx_sdk.abi.code_metadata_value</span> <span class="kn">import</span> <span class="n">CodeMetadataValue</span>
<span class="kn">from</span> <span class="nn">multiversx_sdk.abi.counted_variadic_values</span> <span class="kn">import</span> <span class="n">CountedVariadicValues</span>
<span class="kn">from</span> <span class="nn">multiversx_sdk.abi.enum_value</span> <span class="kn">import</span> <span class="n">EnumValue</span>
<span class="kn">from</span> <span class="nn">multiversx_sdk.abi.explicit_enum_value</span> <span class="kn">import</span> <span class="n">ExplicitEnumValue</span>
<span class="kn">from</span> <span class="nn">multiversx_sdk.abi.fields</span> <span class="kn">import</span> <span class="n">Field</span>
<span class="kn">from</span> <span class="nn">multiversx_sdk.abi.interface</span> <span class="kn">import</span> <span class="n">IPayloadHolder</span>
<span class="kn">from</span> <span class="nn">multiversx_sdk.abi.list_value</span> <span class="kn">import</span> <span class="n">ListValue</span>
Expand Down Expand Up @@ -158,6 +159,9 @@ <h1>Source code for multiversx_sdk.abi.abi</h1><div class="highlight"><pre>
<span class="k">if</span> <span class="n">name</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">definition</span><span class="o">.</span><span class="n">types</span><span class="o">.</span><span class="n">enums</span><span class="p">:</span>
<span class="n">definition</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">definition</span><span class="o">.</span><span class="n">types</span><span class="o">.</span><span class="n">enums</span><span class="p">[</span><span class="n">name</span><span class="p">]</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_create_enum_prototype</span><span class="p">(</span><span class="n">definition</span><span class="p">)</span>
<span class="k">if</span> <span class="n">name</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">definition</span><span class="o">.</span><span class="n">types</span><span class="o">.</span><span class="n">explicit_enums</span><span class="p">:</span>
<span class="n">definition</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">definition</span><span class="o">.</span><span class="n">types</span><span class="o">.</span><span class="n">explicit_enums</span><span class="p">[</span><span class="n">name</span><span class="p">]</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_create_explicit_enum_prototype</span><span class="p">()</span>
<span class="k">if</span> <span class="n">name</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">definition</span><span class="o">.</span><span class="n">types</span><span class="o">.</span><span class="n">structs</span><span class="p">:</span>
<span class="n">definition</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">definition</span><span class="o">.</span><span class="n">types</span><span class="o">.</span><span class="n">structs</span><span class="p">[</span><span class="n">name</span><span class="p">]</span>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_create_struct_prototype</span><span class="p">(</span><span class="n">definition</span><span class="p">)</span>
Expand All @@ -167,6 +171,9 @@ <h1>Source code for multiversx_sdk.abi.abi</h1><div class="highlight"><pre>
<span class="k">def</span> <span class="nf">_create_enum_prototype</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">enum_definition</span><span class="p">:</span> <span class="n">EnumDefinition</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Any</span><span class="p">:</span>
<span class="k">return</span> <span class="n">EnumValue</span><span class="p">(</span><span class="n">fields_provider</span><span class="o">=</span><span class="k">lambda</span> <span class="n">discriminant</span><span class="p">:</span> <span class="bp">self</span><span class="o">.</span><span class="n">_provide_fields_for_enum_prototype</span><span class="p">(</span><span class="n">discriminant</span><span class="p">,</span> <span class="n">enum_definition</span><span class="p">))</span>

<span class="k">def</span> <span class="nf">_create_explicit_enum_prototype</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">Any</span><span class="p">:</span>
<span class="k">return</span> <span class="n">ExplicitEnumValue</span><span class="p">()</span>

<span class="k">def</span> <span class="nf">_provide_fields_for_enum_prototype</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">discriminant</span><span class="p">:</span> <span class="nb">int</span><span class="p">,</span> <span class="n">enum_definition</span><span class="p">:</span> <span class="n">EnumDefinition</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">List</span><span class="p">[</span><span class="n">Field</span><span class="p">]:</span>
<span class="k">for</span> <span class="n">variant</span> <span class="ow">in</span> <span class="n">enum_definition</span><span class="o">.</span><span class="n">variants</span><span class="p">:</span>
<span class="k">if</span> <span class="n">variant</span><span class="o">.</span><span class="n">discriminant</span> <span class="o">!=</span> <span class="n">discriminant</span><span class="p">:</span>
Expand Down
Loading

0 comments on commit d0d351d

Please sign in to comment.