Skip to content

Commit

Permalink
Deploy rust API reference Merge pull request #1948 from oasisprotocol…
Browse files Browse the repository at this point in the history
…/matevz/features/actions-features-flag

.github/actions/hash-rust: Add features parameter 22b8922
  • Loading branch information
github-actions[bot] committed Aug 29, 2024
1 parent 00d2285 commit c0de3fd
Show file tree
Hide file tree
Showing 17 changed files with 54 additions and 54 deletions.
24 changes: 12 additions & 12 deletions rust/oasis_contract_sdk/context/trait.Context.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
type <a href="#associatedtype.Env" class="associatedtype">Env</a>: <a class="trait" href="../env/trait.Env.html" title="trait oasis_contract_sdk::env::Env">Env</a> + <a class="trait" href="../env/trait.Crypto.html" title="trait oasis_contract_sdk::env::Crypto">Crypto</a>;

// Required methods
fn <a href="#tymethod.instance_id" class="fn">instance_id</a>(&amp;self) -&gt; InstanceId;
<span class="item-spacer"></span> fn <a href="#tymethod.instance_address" class="fn">instance_address</a>(&amp;self) -&gt; &amp;Address;
<span class="item-spacer"></span> fn <a href="#tymethod.caller_address" class="fn">caller_address</a>(&amp;self) -&gt; &amp;Address;
<span class="item-spacer"></span> fn <a href="#tymethod.deposited_tokens" class="fn">deposited_tokens</a>(&amp;self) -&gt; &amp;[BaseUnits];
fn <a href="#tymethod.instance_id" class="fn">instance_id</a>(&amp;self) -&gt; <a class="struct" href="../../oasis_contract_sdk_types/struct.InstanceId.html" title="struct oasis_contract_sdk_types::InstanceId">InstanceId</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.instance_address" class="fn">instance_address</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../oasis_contract_sdk_types/address/struct.Address.html" title="struct oasis_contract_sdk_types::address::Address">Address</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.caller_address" class="fn">caller_address</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../oasis_contract_sdk_types/address/struct.Address.html" title="struct oasis_contract_sdk_types::address::Address">Address</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.deposited_tokens" class="fn">deposited_tokens</a>(&amp;self) -&gt; &amp;[<a class="struct" href="../../oasis_contract_sdk_types/token/struct.BaseUnits.html" title="struct oasis_contract_sdk_types::token::BaseUnits">BaseUnits</a>];
<span class="item-spacer"></span> fn <a href="#tymethod.is_read_only" class="fn">is_read_only</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.call_format" class="fn">call_format</a>(&amp;self) -&gt; CallFormat;
<span class="item-spacer"></span> fn <a href="#tymethod.emit_message" class="fn">emit_message</a>(&amp;mut self, msg: Message);
<span class="item-spacer"></span> fn <a href="#tymethod.call_format" class="fn">call_format</a>(&amp;self) -&gt; <a class="enum" href="../../oasis_contract_sdk_types/enum.CallFormat.html" title="enum oasis_contract_sdk_types::CallFormat">CallFormat</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.emit_message" class="fn">emit_message</a>(&amp;mut self, msg: <a class="enum" href="../../oasis_contract_sdk_types/message/enum.Message.html" title="enum oasis_contract_sdk_types::message::Message">Message</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.emit_event" class="fn">emit_event</a>&lt;E: <a class="trait" href="../event/trait.Event.html" title="trait oasis_contract_sdk::event::Event">Event</a>&gt;(&amp;mut self, event: E);
<span class="item-spacer"></span> fn <a href="#tymethod.public_store" class="fn">public_store</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="trait.Context.html#associatedtype.PublicStore" title="type oasis_contract_sdk::context::Context::PublicStore">PublicStore</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.confidential_store" class="fn">confidential_store</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="trait.Context.html#associatedtype.ConfidentialStore" title="type oasis_contract_sdk::context::Context::ConfidentialStore">ConfidentialStore</a>;
Expand All @@ -19,13 +19,13 @@
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.PublicStore" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#12">source</a><h4 class="code-header">type <a href="#associatedtype.PublicStore" class="associatedtype">PublicStore</a>: <a class="trait" href="../storage/trait.PublicStore.html" title="trait oasis_contract_sdk::storage::PublicStore">PublicStore</a></h4></section></summary><div class="docblock"><p>The public store.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.ConfidentialStore" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#14">source</a><h4 class="code-header">type <a href="#associatedtype.ConfidentialStore" class="associatedtype">ConfidentialStore</a>: <a class="trait" href="../storage/trait.ConfidentialStore.html" title="trait oasis_contract_sdk::storage::ConfidentialStore">ConfidentialStore</a></h4></section></summary><div class="docblock"><p>The confidential store.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Env" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#16">source</a><h4 class="code-header">type <a href="#associatedtype.Env" class="associatedtype">Env</a>: <a class="trait" href="../env/trait.Env.html" title="trait oasis_contract_sdk::env::Env">Env</a> + <a class="trait" href="../env/trait.Crypto.html" title="trait oasis_contract_sdk::env::Crypto">Crypto</a></h4></section></summary><div class="docblock"><p>The environment.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.instance_id" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#19">source</a><h4 class="code-header">fn <a href="#tymethod.instance_id" class="fn">instance_id</a>(&amp;self) -&gt; InstanceId</h4></section></summary><div class="docblock"><p>Contract instance identifier.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.instance_address" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#22">source</a><h4 class="code-header">fn <a href="#tymethod.instance_address" class="fn">instance_address</a>(&amp;self) -&gt; &amp;Address</h4></section></summary><div class="docblock"><p>Contract instance address.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.caller_address" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#25">source</a><h4 class="code-header">fn <a href="#tymethod.caller_address" class="fn">caller_address</a>(&amp;self) -&gt; &amp;Address</h4></section></summary><div class="docblock"><p>Caller address.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deposited_tokens" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#28">source</a><h4 class="code-header">fn <a href="#tymethod.deposited_tokens" class="fn">deposited_tokens</a>(&amp;self) -&gt; &amp;[BaseUnits]</h4></section></summary><div class="docblock"><p>Tokens deposited by the caller.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.instance_id" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#19">source</a><h4 class="code-header">fn <a href="#tymethod.instance_id" class="fn">instance_id</a>(&amp;self) -&gt; <a class="struct" href="../../oasis_contract_sdk_types/struct.InstanceId.html" title="struct oasis_contract_sdk_types::InstanceId">InstanceId</a></h4></section></summary><div class="docblock"><p>Contract instance identifier.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.instance_address" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#22">source</a><h4 class="code-header">fn <a href="#tymethod.instance_address" class="fn">instance_address</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../oasis_contract_sdk_types/address/struct.Address.html" title="struct oasis_contract_sdk_types::address::Address">Address</a></h4></section></summary><div class="docblock"><p>Contract instance address.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.caller_address" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#25">source</a><h4 class="code-header">fn <a href="#tymethod.caller_address" class="fn">caller_address</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../oasis_contract_sdk_types/address/struct.Address.html" title="struct oasis_contract_sdk_types::address::Address">Address</a></h4></section></summary><div class="docblock"><p>Caller address.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.deposited_tokens" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#28">source</a><h4 class="code-header">fn <a href="#tymethod.deposited_tokens" class="fn">deposited_tokens</a>(&amp;self) -&gt; &amp;[<a class="struct" href="../../oasis_contract_sdk_types/token/struct.BaseUnits.html" title="struct oasis_contract_sdk_types::token::BaseUnits">BaseUnits</a>]</h4></section></summary><div class="docblock"><p>Tokens deposited by the caller.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_read_only" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#31">source</a><h4 class="code-header">fn <a href="#tymethod.is_read_only" class="fn">is_read_only</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Whether the call is read-only and must not make any storage modifications.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.call_format" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#34">source</a><h4 class="code-header">fn <a href="#tymethod.call_format" class="fn">call_format</a>(&amp;self) -&gt; CallFormat</h4></section></summary><div class="docblock"><p>Call format.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.emit_message" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#37">source</a><h4 class="code-header">fn <a href="#tymethod.emit_message" class="fn">emit_message</a>(&amp;mut self, msg: Message)</h4></section></summary><div class="docblock"><p>Emits a message.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.call_format" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#34">source</a><h4 class="code-header">fn <a href="#tymethod.call_format" class="fn">call_format</a>(&amp;self) -&gt; <a class="enum" href="../../oasis_contract_sdk_types/enum.CallFormat.html" title="enum oasis_contract_sdk_types::CallFormat">CallFormat</a></h4></section></summary><div class="docblock"><p>Call format.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.emit_message" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#37">source</a><h4 class="code-header">fn <a href="#tymethod.emit_message" class="fn">emit_message</a>(&amp;mut self, msg: <a class="enum" href="../../oasis_contract_sdk_types/message/enum.Message.html" title="enum oasis_contract_sdk_types::message::Message">Message</a>)</h4></section></summary><div class="docblock"><p>Emits a message.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.emit_event" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#40">source</a><h4 class="code-header">fn <a href="#tymethod.emit_event" class="fn">emit_event</a>&lt;E: <a class="trait" href="../event/trait.Event.html" title="trait oasis_contract_sdk::event::Event">Event</a>&gt;(&amp;mut self, event: E)</h4></section></summary><div class="docblock"><p>Emits an event.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.public_store" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#43">source</a><h4 class="code-header">fn <a href="#tymethod.public_store" class="fn">public_store</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="trait.Context.html#associatedtype.PublicStore" title="type oasis_contract_sdk::context::Context::PublicStore">PublicStore</a></h4></section></summary><div class="docblock"><p>Public contract store.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.confidential_store" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/context.rs.html#46">source</a><h4 class="code-header">fn <a href="#tymethod.confidential_store" class="fn">confidential_store</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="associatedtype" href="trait.Context.html#associatedtype.ConfidentialStore" title="type oasis_contract_sdk::context::Context::ConfidentialStore">ConfidentialStore</a></h4></section></summary><div class="docblock"><p>Confidential contract store.</p>
Expand Down
4 changes: 2 additions & 2 deletions rust/oasis_contract_sdk/contract/trait.Contract.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="trait.Contract.html#associatedtype.Error" title="type oasis_contract_sdk::contract::Contract::Error">Error</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.handle_reply" class="fn">handle_reply</a>&lt;C: <a class="trait" href="../context/trait.Context.html" title="trait oasis_contract_sdk::context::Context">Context</a>&gt;(
_ctx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut C</a>,
_reply: Reply,
_reply: <a class="enum" href="../../oasis_contract_sdk_types/message/enum.Reply.html" title="enum oasis_contract_sdk_types::message::Reply">Reply</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="associatedtype" href="trait.Contract.html#associatedtype.Response" title="type oasis_contract_sdk::contract::Contract::Response">Response</a>&gt;, Self::<a class="associatedtype" href="trait.Contract.html#associatedtype.Error" title="type oasis_contract_sdk::contract::Contract::Error">Error</a>&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.pre_upgrade" class="fn">pre_upgrade</a>&lt;C: <a class="trait" href="../context/trait.Context.html" title="trait oasis_contract_sdk::context::Context">Context</a>&gt;(
_ctx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut C</a>,
Expand Down Expand Up @@ -48,7 +48,7 @@
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="trait.Contract.html#associatedtype.Error" title="type oasis_contract_sdk::contract::Contract::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Instantiate the contract.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.handle_reply" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/contract.rs.html#30-36">source</a><h4 class="code-header">fn <a href="#method.handle_reply" class="fn">handle_reply</a>&lt;C: <a class="trait" href="../context/trait.Context.html" title="trait oasis_contract_sdk::context::Context">Context</a>&gt;(
_ctx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut C</a>,
_reply: Reply,
_reply: <a class="enum" href="../../oasis_contract_sdk_types/message/enum.Reply.html" title="enum oasis_contract_sdk_types::message::Reply">Reply</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="associatedtype" href="trait.Contract.html#associatedtype.Response" title="type oasis_contract_sdk::contract::Contract::Response">Response</a>&gt;, Self::<a class="associatedtype" href="trait.Contract.html#associatedtype.Error" title="type oasis_contract_sdk::contract::Contract::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Handle replies from sent messages.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.pre_upgrade" class="method"><a class="src rightside" href="../../src/oasis_contract_sdk/contract.rs.html#41-44">source</a><h4 class="code-header">fn <a href="#method.pre_upgrade" class="fn">pre_upgrade</a>&lt;C: <a class="trait" href="../context/trait.Context.html" title="trait oasis_contract_sdk::context::Context">Context</a>&gt;(
_ctx: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut C</a>,
Expand Down
Loading

0 comments on commit c0de3fd

Please sign in to comment.