Skip to content

Commit

Permalink
Deploying to gh-pages from @ 1ba973f 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
modship committed Oct 2, 2024
1 parent 79d1e4d commit 82ec8d6
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 30 deletions.
44 changes: 22 additions & 22 deletions massa_sc_runtime/trait.Interface.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/massa_sc_runtime/as_execution/abi.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3622,7 +3622,7 @@
};
<span class="kw">let </span>(available, <span class="kw-2">mut </span>price) = env
.get_interface()
.deferred_call_quote(asc_slot, max_gas <span class="kw">as </span>u64)<span class="question-mark">?</span>;
.get_deferred_call_quote(asc_slot, max_gas <span class="kw">as </span>u64)<span class="question-mark">?</span>;
<span class="kw">if </span>!available {
price = <span class="number">0</span>;
}
Expand Down
10 changes: 9 additions & 1 deletion src/massa_sc_runtime/types.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,10 @@
<a href="#719" id="719">719</a>
<a href="#720" id="720">720</a>
<a href="#721" id="721">721</a>
<a href="#722" id="722">722</a>
<a href="#723" id="723">723</a>
<a href="#724" id="724">724</a>
<a href="#725" id="725">725</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>anyhow::{anyhow, bail, <span class="prelude-ty">Result</span>};
<span class="kw">use </span>massa_proto_rs::massa::model::v1::{
AddressCategory, ComparisonResult, NativeAmount, NativeTime, Slot,
Expand Down Expand Up @@ -1299,7 +1303,11 @@
</span><span class="kw">fn </span>chain_id(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; <span class="prelude-ty">Result</span>&lt;u64&gt;;

<span class="comment">// Return a boolean that determine if there is place in this slot and an amount of fee needed to take the space
</span><span class="kw">fn </span>deferred_call_quote(<span class="kw-2">&amp;</span><span class="self">self</span>, target_slot: (u64, u8), gas_limit: u64) -&gt; <span class="prelude-ty">Result</span>&lt;(bool, u64)&gt;;
</span><span class="kw">fn </span>get_deferred_call_quote(
<span class="kw-2">&amp;</span><span class="self">self</span>,
target_slot: (u64, u8),
gas_limit: u64,
) -&gt; <span class="prelude-ty">Result</span>&lt;(bool, u64)&gt;;

<span class="comment">// Register a new deferred call and return his id
</span><span class="kw">fn </span>deferred_call_register(
Expand Down
12 changes: 7 additions & 5 deletions src/massa_sc_runtime/wasmv1_execution/abi/abis.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1952,6 +1952,7 @@
<a href="#1952" id="1952">1952</a>
<a href="#1953" id="1953">1953</a>
<a href="#1954" id="1954">1954</a>
<a href="#1955" id="1955">1955</a>
</pre></div><pre class="rust"><code><span class="kw">use super</span>::{
<span class="kw">super</span>::{env::ABIEnv, WasmV1Error},
handler::{handle_abi, handle_abi_raw},
Expand Down Expand Up @@ -2035,7 +2036,7 @@
<span class="string">&quot;abi_compare_pub_key&quot; </span>=&gt; abi_compare_pub_key,
<span class="string">&quot;abi_create_sc&quot; </span>=&gt; abi_create_sc,
<span class="string">&quot;abi_deferred_call_cancel&quot; </span>=&gt; abi_deferred_call_cancel,
<span class="string">&quot;abi_deferred_call_quote&quot; </span>=&gt; abi_deferred_call_quote,
<span class="string">&quot;abi_get_deferred_call_quote&quot; </span>=&gt; abi_get_deferred_call_quote,
<span class="string">&quot;abi_deferred_call_exists&quot; </span>=&gt; abi_deferred_call_exists,
<span class="string">&quot;abi_deferred_call_register&quot; </span>=&gt; abi_deferred_call_register,
<span class="string">&quot;abi_delete_ds_entry&quot; </span>=&gt; abi_delete_ds_entry,
Expand Down Expand Up @@ -2962,7 +2963,7 @@
}

<span class="attr">#[named]
</span><span class="kw">fn </span>abi_deferred_call_quote(
</span><span class="kw">fn </span>abi_get_deferred_call_quote(
store_env: FunctionEnvMut&lt;ABIEnv&gt;,
arg_offset: i32,
) -&gt; <span class="prelude-ty">Result</span>&lt;i32, WasmV1Error&gt; {
Expand All @@ -2977,9 +2978,10 @@
<span class="kw">return </span><span class="macro">resp_err!</span>(<span class="string">&quot;Target slot is required&quot;</span>);
};

<span class="kw">match </span>interface
.deferred_call_quote((target_slot.period, target_slot.thread <span class="kw">as </span>u8), req.max_gas)
{
<span class="kw">match </span>interface.get_deferred_call_quote(
(target_slot.period, target_slot.thread <span class="kw">as </span>u8),
req.max_gas,
) {
<span class="prelude-val">Ok</span>((available, <span class="kw-2">mut </span>price)) =&gt; {
<span class="kw">if </span>!available {
price = <span class="number">0</span>;
Expand Down

0 comments on commit 82ec8d6

Please sign in to comment.