Skip to content

Commit

Permalink
deploy: ccbe03e
Browse files Browse the repository at this point in the history
  • Loading branch information
rzadp committed Dec 12, 2024
1 parent bf7c95c commit 4e33d09
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ <h3 id="xcq-runtime-api"><a class="header" href="#xcq-runtime-api">XCQ Runtime A
<li><code>metadata</code>: Return metadata of supported extensions (introduced in later section) and methods, serving as a feature discovery functionality.
The representation and encoding mechanism is similar to the <a href="https://github.com/paritytech/frame-metadata/"><code>frame-metadata</code></a>, using <code>scale-info</code>.</li>
</ul>
<p><strong>Example XCQ Runtime API</strong>:</p>
<h4 id="example-xcq-runtime-api"><a class="header" href="#example-xcq-runtime-api">Example XCQ Runtime API</a></h4>
<pre><pre class="playground"><code class="language-rust"><span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>decl_runtime_apis! {
Expand All @@ -701,7 +701,7 @@ <h3 id="xcq-runtime-api"><a class="header" href="#xcq-runtime-api">XCQ Runtime A
Custom(String),
}
<span class="boring">}</span></code></pre></pre>
<p><strong>Example Metadata (before SCALE-encoded)</strong></p>
<h4 id="example-metadata-before-scale-encoded"><a class="header" href="#example-metadata-before-scale-encoded">Example Metadata (before SCALE-encoded)</a></h4>
<pre><pre class="playground"><code class="language-rust"><span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>pub struct Metadata {
Expand Down Expand Up @@ -890,15 +890,15 @@ <h3 id="xcq-program-execution-flow"><a class="header" href="#xcq-program-executi
</li>
</ol>
<h3 id="xcm-integration"><a class="header" href="#xcm-integration">XCM integration</a></h3>
<p>The integration of XCQ into XCM is acheived by adding a new instruction to XCM, as well as a new variant of the <code>Response</code> type in <code>QueryResponse</code> message.:</p>
<p>The integration of XCQ into XCM is achieved by adding a new instruction to XCM, as well as a new variant of the <code>Response</code> type in <code>QueryResponse</code> message.:</p>
<ul>
<li>A new <code>ReportQuery</code> instruction</li>
</ul>
<pre><pre class="playground"><code class="language-rust"><span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>ReportQuery {
query: SizeLimitedXcq,
weight_limit: Option&lt;Weight&gt;,
weight_limit: WeightLimit,
info: QueryResponseInfo,
}
<span class="boring">}</span></code></pre></pre>
Expand Down Expand Up @@ -962,7 +962,7 @@ <h3 id="performance-issues"><a class="header" href="#performance-issues">Perform
<li>XCQ Query Program Size: The size of XCQ query programs should be optimized to ensure efficient storage and transmission via XCMP/HRMP.
Some strategies to address this issue include:
<ul>
<li>Exploring modular program structures that allow for separate storage and transmission of core logic and supporting elements. PolkaVM supports spliting the program into multiple modules.</li>
<li>Exploring modular program structures that allow for separate storage and transmission of core logic and supporting elements. PolkaVM supports splitting the program into multiple modules.</li>
<li>Establishing guidelines for optimizing dynamic memory usage within query programs</li>
</ul>
</li>
Expand Down
10 changes: 5 additions & 5 deletions proposed/0126-introduce-xcq.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ <h3 id="xcq-runtime-api"><a class="header" href="#xcq-runtime-api">XCQ Runtime A
<li><code>metadata</code>: Return metadata of supported extensions (introduced in later section) and methods, serving as a feature discovery functionality.
The representation and encoding mechanism is similar to the <a href="https://github.com/paritytech/frame-metadata/"><code>frame-metadata</code></a>, using <code>scale-info</code>.</li>
</ul>
<p><strong>Example XCQ Runtime API</strong>:</p>
<h4 id="example-xcq-runtime-api"><a class="header" href="#example-xcq-runtime-api">Example XCQ Runtime API</a></h4>
<pre><pre class="playground"><code class="language-rust"><span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>decl_runtime_apis! {
Expand All @@ -288,7 +288,7 @@ <h3 id="xcq-runtime-api"><a class="header" href="#xcq-runtime-api">XCQ Runtime A
Custom(String),
}
<span class="boring">}</span></code></pre></pre>
<p><strong>Example Metadata (before SCALE-encoded)</strong></p>
<h4 id="example-metadata-before-scale-encoded"><a class="header" href="#example-metadata-before-scale-encoded">Example Metadata (before SCALE-encoded)</a></h4>
<pre><pre class="playground"><code class="language-rust"><span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>pub struct Metadata {
Expand Down Expand Up @@ -477,15 +477,15 @@ <h3 id="xcq-program-execution-flow"><a class="header" href="#xcq-program-executi
</li>
</ol>
<h3 id="xcm-integration"><a class="header" href="#xcm-integration">XCM integration</a></h3>
<p>The integration of XCQ into XCM is acheived by adding a new instruction to XCM, as well as a new variant of the <code>Response</code> type in <code>QueryResponse</code> message.:</p>
<p>The integration of XCQ into XCM is achieved by adding a new instruction to XCM, as well as a new variant of the <code>Response</code> type in <code>QueryResponse</code> message.:</p>
<ul>
<li>A new <code>ReportQuery</code> instruction</li>
</ul>
<pre><pre class="playground"><code class="language-rust"><span class="boring">#![allow(unused)]
</span><span class="boring">fn main() {
</span>ReportQuery {
query: SizeLimitedXcq,
weight_limit: Option&lt;Weight&gt;,
weight_limit: WeightLimit,
info: QueryResponseInfo,
}
<span class="boring">}</span></code></pre></pre>
Expand Down Expand Up @@ -549,7 +549,7 @@ <h3 id="performance-issues"><a class="header" href="#performance-issues">Perform
<li>XCQ Query Program Size: The size of XCQ query programs should be optimized to ensure efficient storage and transmission via XCMP/HRMP.
Some strategies to address this issue include:
<ul>
<li>Exploring modular program structures that allow for separate storage and transmission of core logic and supporting elements. PolkaVM supports spliting the program into multiple modules.</li>
<li>Exploring modular program structures that allow for separate storage and transmission of core logic and supporting elements. PolkaVM supports splitting the program into multiple modules.</li>
<li>Establishing guidelines for optimizing dynamic memory usage within query programs</li>
</ul>
</li>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 4e33d09

Please sign in to comment.