-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
467 changed files
with
11,307 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="swaydoc"><meta name="description" content="List of all items in this project"><meta name="keywords" content="sway, swaylang, sway-lang"><link rel="icon" href="../static.files/sway-logo.svg"><title>List of all items in this project</title><link rel="stylesheet" type="text/css" href="../static.files/normalize.css"><link rel="stylesheet" type="text/css" href="../static.files/swaydoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../static.files/ayu.css"><link rel="stylesheet" href="../static.files/ayu.min.css"></head><body class="swaydoc mod"><nav class="sidebar"><a class="sidebar-logo" href="../core/index.html"><div class="logo-container"><img class="sway-logo" src="../static.files/sway-logo.svg" alt="logo"></div></a><h2 class="location">Library core</h2><div class="sidebar-elems"><a id="all-types" href="index.html"><p>Back to index</p></a><section><div class="block"><ul><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><script src="../search.js" type="text/javascript"></script><script>function onSearchFormSubmit(event){event.preventDefault();const searchQuery=document.getElementById("search-input").value;const url=new URL(window.location.href);if(searchQuery){url.searchParams.set('search',searchQuery)}else{url.searchParams.delete('search')}history.pushState({search:searchQuery},"",url);window.dispatchEvent(new HashChangeEvent("hashchange"))}document.addEventListener('DOMContentLoaded',()=>{const searchbar=document.getElementById("search-input");const searchForm=document.getElementById("search-form");searchbar.addEventListener("keyup",function(event){searchForm.dispatchEvent(new Event('submit'))});searchbar.addEventListener("search",function(event){searchForm.dispatchEvent(new Event('submit'))});function onQueryParamsChange(){const searchParams=new URLSearchParams(window.location.search);const query=searchParams.get("search");const searchSection=document.getElementById('search');const mainSection=document.getElementById('main-content');const searchInput=document.getElementById('search-input');if(query){searchInput.value=query;const results=Object.values(SEARCH_INDEX).flat().filter(item=>{const lowerQuery=query.toLowerCase();return item.name.toLowerCase().includes(lowerQuery)});const header=`<h1>Results for ${query}</h1>`;if(results.length>0){const resultList=results.map(item=>{const formattedName=`<span class="type ${item.type_name}">${item.name}</span>`;const name=[...item.module_info,formattedName].join("::");const path=["..",...item.module_info,item.html_filename].join("/");const left=`<td><span>${name}</span></td>`;const right=`<td><p>${item.preview}</p></td>`;return`<tr onclick="window.location='${path}';">${left}${right}</tr>`}).join('');searchSection.innerHTML=`${header}<table>${resultList}</table>`}else{searchSection.innerHTML=`${header}<p>No results found.</p>`}searchSection.setAttribute("class","search-results");mainSection.setAttribute("class","content hidden")}else{searchSection.setAttribute("class","search-results hidden");mainSection.setAttribute("class","content")}}window.addEventListener('hashchange',onQueryParamsChange);onQueryParamsChange()})</script><nav class="sub"><form id="search-form" class="search-form" onsubmit="onSearchFormSubmit(event)"><div class="search-container"><input id="search-input" class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Search the docs..." type="search"></div></form></nav><section id="main-content" class="content"><h1 class="fqn"><span class="in-band">List of all items</span></h1><h2 id="structs">Structs</h2><div class="item-table"><div class="item-row"><div class="item-left Struct-item"><a class="struct" href="codec/struct.Buffer.html">codec::Buffer</a></div></div><div class="item-row"><div class="item-left Struct-item"><a class="struct" href="codec/struct.BufferReader.html">codec::BufferReader</a></div></div><div class="item-row"><div class="item-left Struct-item"><a class="struct" href="storage/struct.StorageKey.html">storage::StorageKey</a></div><div class="item-right docblock-short"><p>Describes a location in storage.</p> | ||
</div></div></div><h2 id="traits">Traits</h2><div class="item-table"><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="codec/trait.AbiDecode.html">codec::AbiDecode</a></div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="codec/trait.AbiEncode.html">codec::AbiEncode</a></div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.Add.html">ops::Add</a></div><div class="item-right docblock-short"><p>Trait for the addition of two values.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.BitwiseAnd.html">ops::BitwiseAnd</a></div><div class="item-right docblock-short"><p>Trait to bitwise AND two values of the same type.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.BitwiseOr.html">ops::BitwiseOr</a></div><div class="item-right docblock-short"><p>Trait to bitwise OR two values of the same type.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.BitwiseXor.html">ops::BitwiseXor</a></div><div class="item-right docblock-short"><p>Trait to bitwise XOR two values of the same type.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.Divide.html">ops::Divide</a></div><div class="item-right docblock-short"><p>Trait for the division of two values.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.Eq.html">ops::Eq</a></div><div class="item-right docblock-short"><p>Trait to evaluate if two types are equal.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.Mod.html">ops::Mod</a></div><div class="item-right docblock-short"><p>Trait for the modulo of two values.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.Multiply.html">ops::Multiply</a></div><div class="item-right docblock-short"><p>Trait for the multiplication of two values.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.Not.html">ops::Not</a></div><div class="item-right docblock-short"><p>Trait to invert a type.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.Ord.html">ops::Ord</a></div><div class="item-right docblock-short"><p>Trait to evaluate if one value is greater or less than another of the same type.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.Shift.html">ops::Shift</a></div><div class="item-right docblock-short"><p>Trait to bit shift a value.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="ops/trait.Subtract.html">ops::Subtract</a></div><div class="item-right docblock-short"><p>Trait for the subtraction of two values.</p> | ||
</div></div><div class="item-row"><div class="item-left Trait-item"><a class="trait" href="raw_slice/trait.AsRawSlice.html">raw_slice::AsRawSlice</a></div><div class="item-right docblock-short"><p>Trait to return a type as a <code>raw_slice</code>.</p> | ||
</div></div></div><h2 id="functions">Functions</h2><div class="item-table"><div class="item-row"><div class="item-left Function-item"><a class="fn" href="codec/fn.abi_decode.html">codec::abi_decode</a></div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="codec/fn.contract_call.html">codec::contract_call</a></div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="codec/fn.decode_first_param.html">codec::decode_first_param</a></div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="codec/fn.decode_predicate_data.html">codec::decode_predicate_data</a></div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="codec/fn.decode_script_data.html">codec::decode_script_data</a></div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="codec/fn.decode_second_param.html">codec::decode_second_param</a></div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="codec/fn.encode.html">codec::encode</a></div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="ops/fn.ok_str_eq.html">ops::ok_str_eq</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left Function-item"><a class="fn" href="str/fn.from_str_array.html">str::from_str_array</a></div></div></div></section><section id="search" class="search-results"></section></div></main><script src="../static.files/highlight.js"></script><script>hljs.highlightAll();</script></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="swaydoc"><meta name="description" content="API documentation for the Sway `abi_decode` function in `codec`."><meta name="keywords" content="sway, swaylang, sway-lang, abi_decode"><link rel="icon" href="../../static.files/sway-logo.svg"><title>abi_decode in codec - Sway</title><link rel="stylesheet" type="text/css" href="../../static.files/normalize.css"><link rel="stylesheet" type="text/css" href="../../static.files/swaydoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../static.files/ayu.css"><link rel="stylesheet" href="../../static.files/ayu.min.css"></head><body class="swaydoc fn"><nav class="sidebar"><a class="sidebar-logo" href="../../core/index.html"><div class="logo-container"><img class="sway-logo" src="../../static.files/sway-logo.svg" alt="logo"></div></a><h2 class="location">Function abi_decode</h2><div class="sidebar-elems"><section><div class="block"><ul></ul></div></section></div></nav><main><div class="width-limiter"><script src="../../search.js" type="text/javascript"></script><script>function onSearchFormSubmit(event){event.preventDefault();const searchQuery=document.getElementById("search-input").value;const url=new URL(window.location.href);if(searchQuery){url.searchParams.set('search',searchQuery)}else{url.searchParams.delete('search')}history.pushState({search:searchQuery},"",url);window.dispatchEvent(new HashChangeEvent("hashchange"))}document.addEventListener('DOMContentLoaded',()=>{const searchbar=document.getElementById("search-input");const searchForm=document.getElementById("search-form");searchbar.addEventListener("keyup",function(event){searchForm.dispatchEvent(new Event('submit'))});searchbar.addEventListener("search",function(event){searchForm.dispatchEvent(new Event('submit'))});function onQueryParamsChange(){const searchParams=new URLSearchParams(window.location.search);const query=searchParams.get("search");const searchSection=document.getElementById('search');const mainSection=document.getElementById('main-content');const searchInput=document.getElementById('search-input');if(query){searchInput.value=query;const results=Object.values(SEARCH_INDEX).flat().filter(item=>{const lowerQuery=query.toLowerCase();return item.name.toLowerCase().includes(lowerQuery)});const header=`<h1>Results for ${query}</h1>`;if(results.length>0){const resultList=results.map(item=>{const formattedName=`<span class="type ${item.type_name}">${item.name}</span>`;const name=[...item.module_info,formattedName].join("::");const path=["../..",...item.module_info,item.html_filename].join("/");const left=`<td><span>${name}</span></td>`;const right=`<td><p>${item.preview}</p></td>`;return`<tr onclick="window.location='${path}';">${left}${right}</tr>`}).join('');searchSection.innerHTML=`${header}<table>${resultList}</table>`}else{searchSection.innerHTML=`${header}<p>No results found.</p>`}searchSection.setAttribute("class","search-results");mainSection.setAttribute("class","content hidden")}else{searchSection.setAttribute("class","search-results hidden");mainSection.setAttribute("class","content")}}window.addEventListener('hashchange',onQueryParamsChange);onQueryParamsChange()})</script><nav class="sub"><form id="search-form" class="search-form" onsubmit="onSearchFormSubmit(event)"><div class="search-container"><input id="search-input" class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Search the docs..." type="search"></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a class="mod" href="../index.html">core</a><span>::</span><a class="mod" href="index.html">codec</a><span>::</span><a class="fn" href="#">abi_decode</a></span></h1></div><div class="docblock item-decl"><pre class="sway fn"><code>pub fn abi_decode<T>(data: raw_slice) -> T | ||
where | ||
T: AbiDecode, | ||
</code></pre></div></section><section id="search" class="search-results"></section></div></main><script src="../../static.files/highlight.js"></script><script>hljs.highlightAll();</script></body></html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="swaydoc"><meta name="description" content="API documentation for the Sway `contract_call` function in `codec`."><meta name="keywords" content="sway, swaylang, sway-lang, contract_call"><link rel="icon" href="../../static.files/sway-logo.svg"><title>contract_call in codec - Sway</title><link rel="stylesheet" type="text/css" href="../../static.files/normalize.css"><link rel="stylesheet" type="text/css" href="../../static.files/swaydoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../static.files/ayu.css"><link rel="stylesheet" href="../../static.files/ayu.min.css"></head><body class="swaydoc fn"><nav class="sidebar"><a class="sidebar-logo" href="../../core/index.html"><div class="logo-container"><img class="sway-logo" src="../../static.files/sway-logo.svg" alt="logo"></div></a><h2 class="location">Function contract_call</h2><div class="sidebar-elems"><section><div class="block"><ul></ul></div></section></div></nav><main><div class="width-limiter"><script src="../../search.js" type="text/javascript"></script><script>function onSearchFormSubmit(event){event.preventDefault();const searchQuery=document.getElementById("search-input").value;const url=new URL(window.location.href);if(searchQuery){url.searchParams.set('search',searchQuery)}else{url.searchParams.delete('search')}history.pushState({search:searchQuery},"",url);window.dispatchEvent(new HashChangeEvent("hashchange"))}document.addEventListener('DOMContentLoaded',()=>{const searchbar=document.getElementById("search-input");const searchForm=document.getElementById("search-form");searchbar.addEventListener("keyup",function(event){searchForm.dispatchEvent(new Event('submit'))});searchbar.addEventListener("search",function(event){searchForm.dispatchEvent(new Event('submit'))});function onQueryParamsChange(){const searchParams=new URLSearchParams(window.location.search);const query=searchParams.get("search");const searchSection=document.getElementById('search');const mainSection=document.getElementById('main-content');const searchInput=document.getElementById('search-input');if(query){searchInput.value=query;const results=Object.values(SEARCH_INDEX).flat().filter(item=>{const lowerQuery=query.toLowerCase();return item.name.toLowerCase().includes(lowerQuery)});const header=`<h1>Results for ${query}</h1>`;if(results.length>0){const resultList=results.map(item=>{const formattedName=`<span class="type ${item.type_name}">${item.name}</span>`;const name=[...item.module_info,formattedName].join("::");const path=["../..",...item.module_info,item.html_filename].join("/");const left=`<td><span>${name}</span></td>`;const right=`<td><p>${item.preview}</p></td>`;return`<tr onclick="window.location='${path}';">${left}${right}</tr>`}).join('');searchSection.innerHTML=`${header}<table>${resultList}</table>`}else{searchSection.innerHTML=`${header}<p>No results found.</p>`}searchSection.setAttribute("class","search-results");mainSection.setAttribute("class","content hidden")}else{searchSection.setAttribute("class","search-results hidden");mainSection.setAttribute("class","content")}}window.addEventListener('hashchange',onQueryParamsChange);onQueryParamsChange()})</script><nav class="sub"><form id="search-form" class="search-form" onsubmit="onSearchFormSubmit(event)"><div class="search-container"><input id="search-input" class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Search the docs..." type="search"></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Function <a class="mod" href="../index.html">core</a><span>::</span><a class="mod" href="index.html">codec</a><span>::</span><a class="fn" href="#">contract_call</a></span></h1></div><div class="docblock item-decl"><pre class="sway fn"><code>pub fn contract_call<T, TArgs>( | ||
contract_id: b256, | ||
method_name: str, | ||
args: TArgs, | ||
coins: u64, | ||
asset_id: b256, | ||
gas: u64, | ||
) -> T | ||
where | ||
T: AbiDecode, | ||
TArgs: AbiEncode, | ||
</code></pre></div></section><section id="search" class="search-results"></section></div></main><script src="../../static.files/highlight.js"></script><script>hljs.highlightAll();</script></body></html> |
Oops, something went wrong.