Skip to content

Commit

Permalink
deploy: bbd13a6
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshOrndorff committed Apr 16, 2024
1 parent 436dc6b commit 583aa71
Show file tree
Hide file tree
Showing 69 changed files with 213 additions and 185 deletions.
4 changes: 2 additions & 2 deletions parachain_template_node/dev_service/type.FullClient.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions parachain_template_node/service/type.ParachainClient.html

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions search-index.js

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions src/tuxedo_core/executive.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1292,6 +1292,9 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<a href="#1290" id="1290">1290</a>
<a href="#1291" id="1291">1291</a>
<a href="#1292" id="1292">1292</a>
<a href="#1293" id="1293">1293</a>
<a href="#1294" id="1294">1294</a>
<a href="#1295" id="1295">1295</a>
</pre></div><pre class="rust"><code><span class="doccomment">//! # Executive Module
//!
//! The executive is the main orchestrator for the entire runtime.
Expand Down Expand Up @@ -1323,7 +1326,7 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
InvalidTransaction, TransactionLongevity, TransactionSource, TransactionValidity,
TransactionValidityError, ValidTransaction,
},
ApplyExtrinsicResult, StateVersion,
ApplyExtrinsicResult, ExtrinsicInclusionMode, StateVersion,
};
<span class="kw">use </span>sp_std::marker::PhantomData;
<span class="kw">use </span>sp_std::{collections::btree_set::BTreeSet, vec::Vec};
Expand Down Expand Up @@ -1540,7 +1543,7 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<span class="comment">// These next three methods are for the block authoring workflow.
// Open the block, apply zero or more extrinsics, close the block

</span><span class="kw">pub fn </span>open_block(header: <span class="kw-2">&amp;</span>Header) {
</span><span class="kw">pub fn </span>open_block(header: <span class="kw-2">&amp;</span>Header) -&gt; ExtrinsicInclusionMode {
<span class="macro">debug!</span>(
target: LOG_TARGET,
<span class="string">"Entering initialize_block. header: {:?}"</span>, header
Expand All @@ -1553,6 +1556,9 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<span class="comment">// Also store the height persistently so it is available when
// performing pool validations and other off-chain runtime calls.
</span>sp_io::storage::set(HEIGHT_KEY, <span class="kw-2">&amp;</span>header.number().encode());

<span class="comment">// Tuxedo blocks always allow user transactions.
</span>ExtrinsicInclusionMode::AllExtrinsics
}

<span class="kw">pub fn </span>apply_extrinsic(extrinsic: Transaction&lt;V, C&gt;) -&gt; ApplyExtrinsicResult {
Expand Down
10 changes: 7 additions & 3 deletions src/tuxedo_core/genesis/block_builder.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<a href="#90" id="90">90</a>
<a href="#91" id="91">91</a>
<a href="#92" id="92">92</a>
<a href="#93" id="93">93</a>
<a href="#94" id="94">94</a>
</pre></div><pre class="rust"><code><span class="doccomment">//! Custom GenesisBlockBuilder for Tuxedo, to allow extrinsics to be added to the genesis block.

</span><span class="kw">use </span>parity_scale_codec::{Decode, Encode};
Expand All @@ -100,7 +102,7 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<span class="kw">use </span>sc_executor::RuntimeVersionOf;
<span class="kw">use </span>sp_core::traits::CodeExecutor;
<span class="kw">use </span>sp_runtime::{
traits::{Block <span class="kw">as </span>BlockT, Hash <span class="kw">as </span>HashT, Header <span class="kw">as </span>HeaderT, Zero},
traits::{Block <span class="kw">as </span>BlockT, Hash <span class="kw">as </span>HashT, HashingFor, Header <span class="kw">as </span>HeaderT, Zero},
BuildStorage,
};
<span class="kw">use </span>std::sync::Arc;
Expand Down Expand Up @@ -152,8 +154,10 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
.build_storage()
.map_err(sp_blockchain::Error::Storage)<span class="question-mark">?</span>;

<span class="kw">let </span>state_version =
sc_chain_spec::resolve_state_version_from_wasm(<span class="kw-2">&amp;</span>genesis_storage, <span class="kw-2">&amp;</span><span class="self">self</span>.executor)<span class="question-mark">?</span>;
<span class="kw">let </span>state_version = sc_chain_spec::resolve_state_version_from_wasm::&lt;<span class="kw">_</span>, HashingFor&lt;Block&gt;&gt;(
<span class="kw-2">&amp;</span>genesis_storage,
<span class="kw-2">&amp;</span><span class="self">self</span>.executor,
)<span class="question-mark">?</span>;

<span class="kw">let </span>extrinsics = <span class="kw">match </span>genesis_storage.top.remove(<span class="kw">crate</span>::EXTRINSIC_KEY) {
<span class="prelude-val">Some</span>(v) =&gt; &lt;Vec&lt;&lt;Block <span class="kw">as </span>BlockT&gt;::Extrinsic&gt;&gt;::decode(<span class="kw-2">&amp;mut &amp;</span>v[..]).unwrap_or_default(),
Expand Down
2 changes: 1 addition & 1 deletion src/tuxedo_core/verifier/htlc.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<span class="attr">#[cfg(test)]
</span><span class="kw">mod </span>test {
<span class="kw">use super</span>::<span class="kw-2">*</span>;
<span class="kw">use </span>sp_core::{sr25519::Pair, Pair <span class="kw">as _</span>};
<span class="kw">use </span>sp_core::{sr25519::Pair, ByteArray, Pair <span class="kw">as _</span>};

<span class="kw">fn </span>bad_sig() -&gt; Signature {
Signature::from_slice(
Expand Down
2 changes: 1 addition & 1 deletion src/tuxedo_core/verifier/simple_signature.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<span class="attr">#[cfg(test)]
</span><span class="kw">mod </span>test {
<span class="kw">use super</span>::<span class="kw-2">*</span>;
<span class="kw">use </span>sp_core::{crypto::Pair <span class="kw">as _</span>, sr25519::Pair};
<span class="kw">use </span>sp_core::{crypto::Pair <span class="kw">as _</span>, sr25519::Pair, ByteArray};

<span class="kw">fn </span>bad_sig() -&gt; Signature {
Signature::from_slice(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/Tuxedo/Tuxedo/target/debug/build/tuxedo-parachain-runtime-9f7e72866533b0e1/out/wasm_binary.rs`."><title>wasm_binary.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../static.files/rustdoc-5bc39a1768837dd0.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../static.files/" data-current-crate="tuxedo_parachain_runtime" data-themes="" data-resource-suffix="" data-rustdoc-version="1.77.2 (25ef9e3d8 2024-04-09)" data-channel="1.77.2" data-search-js="search-dd67cee4cfa65049.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../../../../../../../../../../static.files/storage-4c98445ec4002617.js"></script><script defer src="../../../../../../../../../../../../static.files/src-script-e66d777a5a92e9b2.js"></script><script defer src="../../../../../../../../../../../../src-files.js"></script><script defer src="../../../../../../../../../../../../static.files/main-48f368f3872407c8.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../../../../static.files/noscript-04d5337699b92874.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="src-sidebar-title">
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/Tuxedo/Tuxedo/target/debug/build/tuxedo-parachain-runtime-08bcdc48adfd3c44/out/wasm_binary.rs`."><title>wasm_binary.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../static.files/rustdoc-5bc39a1768837dd0.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../static.files/" data-current-crate="tuxedo_parachain_runtime" data-themes="" data-resource-suffix="" data-rustdoc-version="1.77.2 (25ef9e3d8 2024-04-09)" data-channel="1.77.2" data-search-js="search-dd67cee4cfa65049.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../../../../../../../../../../static.files/storage-4c98445ec4002617.js"></script><script defer src="../../../../../../../../../../../../static.files/src-script-e66d777a5a92e9b2.js"></script><script defer src="../../../../../../../../../../../../src-files.js"></script><script defer src="../../../../../../../../../../../../static.files/main-48f368f3872407c8.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../../../../static.files/noscript-04d5337699b92874.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="src-sidebar-title">
<h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<main><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../../../../../../../../../../tuxedo_parachain_runtime/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../../../../../../../../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<a href="#2" id="2">2</a>
Expand Down
2 changes: 1 addition & 1 deletion src/tuxedo_parachain_runtime/lib.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ <h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
Executive::execute_block(block)
}

<span class="kw">fn </span>initialize_block(header: <span class="kw-2">&amp;</span>&lt;Block <span class="kw">as </span>BlockT&gt;::Header) {
<span class="kw">fn </span>initialize_block(header: <span class="kw-2">&amp;</span>&lt;Block <span class="kw">as </span>BlockT&gt;::Header) -&gt; sp_runtime::ExtrinsicInclusionMode {
Executive::open_block(header)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/Tuxedo/Tuxedo/target/debug/build/tuxedo-template-runtime-cfb95a5fb61e55c8/out/wasm_binary.rs`."><title>wasm_binary.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../static.files/rustdoc-5bc39a1768837dd0.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../static.files/" data-current-crate="tuxedo_template_runtime" data-themes="" data-resource-suffix="" data-rustdoc-version="1.77.2 (25ef9e3d8 2024-04-09)" data-channel="1.77.2" data-search-js="search-dd67cee4cfa65049.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../../../../../../../../../../static.files/storage-4c98445ec4002617.js"></script><script defer src="../../../../../../../../../../../../static.files/src-script-e66d777a5a92e9b2.js"></script><script defer src="../../../../../../../../../../../../src-files.js"></script><script defer src="../../../../../../../../../../../../static.files/main-48f368f3872407c8.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../../../../static.files/noscript-04d5337699b92874.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="src-sidebar-title">
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/Tuxedo/Tuxedo/target/debug/build/tuxedo-template-runtime-f1a5194acd33522f/out/wasm_binary.rs`."><title>wasm_binary.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../static.files/rustdoc-5bc39a1768837dd0.css"><meta name="rustdoc-vars" data-root-path="../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../static.files/" data-current-crate="tuxedo_template_runtime" data-themes="" data-resource-suffix="" data-rustdoc-version="1.77.2 (25ef9e3d8 2024-04-09)" data-channel="1.77.2" data-search-js="search-dd67cee4cfa65049.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../../../../../../../../../../static.files/storage-4c98445ec4002617.js"></script><script defer src="../../../../../../../../../../../../static.files/src-script-e66d777a5a92e9b2.js"></script><script defer src="../../../../../../../../../../../../src-files.js"></script><script defer src="../../../../../../../../../../../../static.files/main-48f368f3872407c8.js"></script><noscript><link rel="stylesheet" href="../../../../../../../../../../../../static.files/noscript-04d5337699b92874.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc src"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="src-sidebar-title">
<h2>Files</h2></div></nav><div class="sidebar-resizer"></div>
<main><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../../../../../../../../../../../tuxedo_template_runtime/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../../../../../../../../../../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<a href="#2" id="2">2</a>
Expand Down
Loading

0 comments on commit 583aa71

Please sign in to comment.