UNPKG

@truffle/codec

Version:

Library for encoding and decoding smart contract data

346 lines 156 kB
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>ProjectDecoder | Truffle Decoding and Encoding</title><meta name="description" content="Documentation for Truffle Decoding and Encoding"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar"> <div class="tsd-toolbar-contents container"> <div class="table-cell" id="tsd-search" data-base=".."> <div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div> <div class="field"> <div id="tsd-toolbar-links"></div></div> <ul class="results"> <li class="state loading">Preparing search index...</li> <li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">Truffle Decoding and Encoding</a></div> <div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header> <div class="container container-main"> <div class="col-content"> <div class="tsd-page-title"> <ul class="tsd-breadcrumb"> <li><a href="../index.html">Truffle Decoding and Encoding</a></li> <li><a href="../modules/decoder_lib.html">decoder/lib</a></li> <li><a href="decoder_lib.ProjectDecoder.html">ProjectDecoder</a></li></ul> <h1>Class ProjectDecoder</h1></div> <section class="tsd-panel tsd-comment"> <div class="tsd-comment tsd-typography"><p>The ProjectDecoder class. Decodes transactions and logs. See below for a method listing.</p> </div> <div class="tsd-comment tsd-typography"></div></section> <section class="tsd-panel tsd-hierarchy"> <h4>Hierarchy</h4> <ul class="tsd-hierarchy"> <li><span class="target">ProjectDecoder</span></li></ul></section><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L58">decoder/lib/decoders.ts:58</a></li></ul></aside> <section class="tsd-panel-group tsd-index-group"> <section class="tsd-panel tsd-index-panel"> <details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"> <h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex=0><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M1.5 5.50969L8 11.6609L14.5 5.50969L12.5466 3.66086L8 7.96494L3.45341 3.66086L1.5 5.50969Z" fill="var(--color-text)"></path></svg> Index</h5></summary> <div class="tsd-accordion-details"> <section class="tsd-index-section"> <h3 class="tsd-index-heading">Constructors</h3> <div class="tsd-index-list"><a href="decoder_lib.ProjectDecoder.html#constructor" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-512"><rect fill="var(--color-icon-background)" stroke="#4D7FFF" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M11.898 16.1201C11.098 16.1201 10.466 15.8961 10.002 15.4481C9.53803 15.0001 9.30603 14.3841 9.30603 13.6001V9.64012C9.30603 8.85612 9.53803 8.24012 10.002 7.79212C10.466 7.34412 11.098 7.12012 11.898 7.12012C12.682 7.12012 13.306 7.34812 13.77 7.80412C14.234 8.25212 14.466 8.86412 14.466 9.64012H13.386C13.386 9.14412 13.254 8.76412 12.99 8.50012C12.734 8.22812 12.37 8.09212 11.898 8.09212C11.426 8.09212 11.054 8.22412 10.782 8.48812C10.518 8.75212 10.386 9.13212 10.386 9.62812V13.6001C10.386 14.0961 10.518 14.4801 10.782 14.7521C11.054 15.0161 11.426 15.1481 11.898 15.1481C12.37 15.1481 12.734 15.0161 12.99 14.7521C13.254 14.4801 13.386 14.0961 13.386 13.6001H14.466C14.466 14.3761 14.234 14.9921 13.77 15.4481C13.306 15.8961 12.682 16.1201 11.898 16.1201Z" fill="var(--color-text)"></path></g></svg><span>constructor</span></a> </div></section> <section class="tsd-index-section"> <h3 class="tsd-index-heading">Properties</h3> <div class="tsd-index-list"><a href="decoder_lib.ProjectDecoder.html#addProjectInfoNonce" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-1024"><rect fill="var(--color-icon-background)" stroke="#FF984D" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.354 16V7.24H12.174C12.99 7.24 13.638 7.476 14.118 7.948C14.606 8.412 14.85 9.036 14.85 9.82C14.85 10.604 14.606 11.232 14.118 11.704C13.638 12.168 12.99 12.4 12.174 12.4H10.434V16H9.354ZM10.434 11.428H12.174C12.646 11.428 13.022 11.284 13.302 10.996C13.59 10.7 13.734 10.308 13.734 9.82C13.734 9.324 13.59 8.932 13.302 8.644C13.022 8.356 12.646 8.212 12.174 8.212H10.434V11.428Z" fill="var(--color-text)"></path></g></svg><span>add<wbr/>Project<wbr/>Info<wbr/>Nonce</span></a> <a href="decoder_lib.ProjectDecoder.html#allocations" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>allocations</span></a> <a href="decoder_lib.ProjectDecoder.html#codeCache" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>code<wbr/>Cache</span></a> <a href="decoder_lib.ProjectDecoder.html#compilations" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>compilations</span></a> <a href="decoder_lib.ProjectDecoder.html#contexts" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>contexts</span></a> <a href="decoder_lib.ProjectDecoder.html#contractsAndContexts" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>contracts<wbr/>And<wbr/>Contexts</span></a> <a href="decoder_lib.ProjectDecoder.html#deployedContexts" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>deployed<wbr/>Contexts</span></a> <a href="decoder_lib.ProjectDecoder.html#ens" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>ens</span></a> <a href="decoder_lib.ProjectDecoder.html#ensCache" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>ens<wbr/>Cache</span></a> <a href="decoder_lib.ProjectDecoder.html#ensSettings" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>ens<wbr/>Settings</span></a> <a href="decoder_lib.ProjectDecoder.html#providerAdapter" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>provider<wbr/>Adapter</span></a> <a href="decoder_lib.ProjectDecoder.html#referenceDeclarations" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>reference<wbr/>Declarations</span></a> <a href="decoder_lib.ProjectDecoder.html#selectorDirectory" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>selector<wbr/>Directory</span></a> <a href="decoder_lib.ProjectDecoder.html#userDefinedTypes" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>user<wbr/>Defined<wbr/>Types</span></a> <a href="decoder_lib.ProjectDecoder.html#userDefinedTypesByCompilation" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-1024"></use></svg><span>user<wbr/>Defined<wbr/>Types<wbr/>By<wbr/>Compilation</span></a> </div></section> <section class="tsd-index-section"> <h3 class="tsd-index-heading">Methods</h3> <div class="tsd-index-list"><a href="decoder_lib.ProjectDecoder.html#abifyCalldataDecoding" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-2048"><rect fill="var(--color-icon-background)" stroke="#FF4DB8" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M9.162 16V7.24H10.578L11.514 10.072C11.602 10.328 11.674 10.584 11.73 10.84C11.794 11.088 11.842 11.28 11.874 11.416C11.906 11.28 11.954 11.088 12.018 10.84C12.082 10.584 12.154 10.324 12.234 10.06L13.122 7.24H14.538V16H13.482V12.82C13.482 12.468 13.49 12.068 13.506 11.62C13.53 11.172 13.558 10.716 13.59 10.252C13.622 9.78 13.654 9.332 13.686 8.908C13.726 8.476 13.762 8.1 13.794 7.78L12.366 12.16H11.334L9.894 7.78C9.934 8.092 9.97 8.456 10.002 8.872C10.042 9.28 10.078 9.716 10.11 10.18C10.142 10.636 10.166 11.092 10.182 11.548C10.206 12.004 10.218 12.428 10.218 12.82V16H9.162Z" fill="var(--color-text)"></path></g></svg><span>abify<wbr/>Calldata<wbr/>Decoding</span></a> <a href="decoder_lib.ProjectDecoder.html#abifyLogDecoding" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>abify<wbr/>Log<wbr/>Decoding</span></a> <a href="decoder_lib.ProjectDecoder.html#abifyReturndataDecoding" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>abify<wbr/>Returndata<wbr/>Decoding</span></a> <a href="decoder_lib.ProjectDecoder.html#addAdditionalProjectInfo" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>add<wbr/>Additional<wbr/>Project<wbr/>Info</span></a> <a href="decoder_lib.ProjectDecoder.html#addCompilations" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>add<wbr/>Compilations</span></a> <a href="decoder_lib.ProjectDecoder.html#decodeLog" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>decode<wbr/>Log</span></a> <a href="decoder_lib.ProjectDecoder.html#decodeLogWithAdditionalOptions" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>decode<wbr/>Log<wbr/>With<wbr/>Additional<wbr/>Options</span></a> <a href="decoder_lib.ProjectDecoder.html#decodeTransaction" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>decode<wbr/>Transaction</span></a> <a href="decoder_lib.ProjectDecoder.html#decodeTransactionBySelector" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>decode<wbr/>Transaction<wbr/>By<wbr/>Selector</span></a> <a href="decoder_lib.ProjectDecoder.html#decodeTransactionWithAdditionalContexts" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>decode<wbr/>Transaction<wbr/>With<wbr/>Additional<wbr/>Contexts</span></a> <a href="decoder_lib.ProjectDecoder.html#events" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>events</span></a> <a href="decoder_lib.ProjectDecoder.html#eventsWithAdditionalContexts" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>events<wbr/>With<wbr/>Additional<wbr/>Contexts</span></a> <a href="decoder_lib.ProjectDecoder.html#forAddress" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>for<wbr/>Address</span></a> <a href="decoder_lib.ProjectDecoder.html#forArtifact" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>for<wbr/>Artifact</span></a> <a href="decoder_lib.ProjectDecoder.html#forInstance" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>for<wbr/>Instance</span></a> <a href="decoder_lib.ProjectDecoder.html#getAllocations" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Allocations</span></a> <a href="decoder_lib.ProjectDecoder.html#getCode" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Code</span></a> <a href="decoder_lib.ProjectDecoder.html#getContextByAddress" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Context<wbr/>By<wbr/>Address</span></a> <a href="decoder_lib.ProjectDecoder.html#getDeployedContexts" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Deployed<wbr/>Contexts</span></a> <a href="decoder_lib.ProjectDecoder.html#getEnsSettings" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Ens<wbr/>Settings</span></a> <a href="decoder_lib.ProjectDecoder.html#getProviderAdapter" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Provider<wbr/>Adapter</span></a> <a href="decoder_lib.ProjectDecoder.html#getReferenceDeclarations" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>Reference<wbr/>Declarations</span></a> <a href="decoder_lib.ProjectDecoder.html#getUserDefinedTypes" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>get<wbr/>User<wbr/>Defined<wbr/>Types</span></a> <a href="decoder_lib.ProjectDecoder.html#init" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>init</span></a> <a href="decoder_lib.ProjectDecoder.html#interpretAggregate" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>interpret<wbr/>Aggregate</span></a> <a href="decoder_lib.ProjectDecoder.html#interpretBlockhashedMulticall" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>interpret<wbr/>Blockhashed<wbr/>Multicall</span></a> <a href="decoder_lib.ProjectDecoder.html#interpretCallInAggregate" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>interpret<wbr/>Call<wbr/>In<wbr/>Aggregate</span></a> <a href="decoder_lib.ProjectDecoder.html#interpretCallInMulti" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>interpret<wbr/>Call<wbr/>In<wbr/>Multi</span></a> <a href="decoder_lib.ProjectDecoder.html#interpretDeadlinedMulticall" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>interpret<wbr/>Deadlined<wbr/>Multicall</span></a> <a href="decoder_lib.ProjectDecoder.html#interpretMulticall" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>interpret<wbr/>Multicall</span></a> <a href="decoder_lib.ProjectDecoder.html#interpretTryAggregate" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>interpret<wbr/>Try<wbr/>Aggregate</span></a> <a href="decoder_lib.ProjectDecoder.html#regularizeBlock" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>regularize<wbr/>Block</span></a> <a href="decoder_lib.ProjectDecoder.html#reverseEnsResolve" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>reverse<wbr/>Ens<wbr/>Resolve</span></a> <a href="decoder_lib.ProjectDecoder.html#withMulticallInterpretations" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-2048"></use></svg><span>with<wbr/>Multicall<wbr/>Interpretations</span></a> </div></section></div></details></section></section> <section class="tsd-panel-group tsd-member-group"> <h2>Constructors</h2> <section class="tsd-panel tsd-member tsd-is-protected"><a id="constructor" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><g stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" id="icon-anchor"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></g></svg></a></h3> <ul class="tsd-signatures tsd-is-protected"> <li class="tsd-signature tsd-anchor-link" id="constructor.new_ProjectDecoder"><span class="tsd-kind-constructor-signature">new <wbr/>Project<wbr/>Decoder</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">compilations</span>, <span class="tsd-kind-parameter">provider</span>, <span class="tsd-kind-parameter">ensSettings</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">selectorDirectory</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="decoder_lib.ProjectDecoder.html" class="tsd-signature-type tsd-kind-class">ProjectDecoder</a><a href="#constructor.new_ProjectDecoder" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"><code class="tsd-tag ts-flagProtected">Protected</code> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">compilations</span>: <a href="../interfaces/_truffle_codec.Compilations.Compilation.html" class="tsd-signature-type tsd-kind-interface">Compilation</a><span class="tsd-signature-symbol">[]</span></h5></li> <li> <h5><span class="tsd-kind-parameter">provider</span>: <span class="tsd-signature-type ">Provider</span></h5></li> <li> <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">ensSettings</span>: <a href="../interfaces/decoder_lib.EnsSettings.html" class="tsd-signature-type tsd-kind-interface">EnsSettings</a></h5></li> <li> <h5><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">selectorDirectory</span>: <span class="tsd-signature-type ">SelectorDirectorySettings</span></h5></li></ul></div> <h4 class="tsd-returns-title">Returns <a href="decoder_lib.ProjectDecoder.html" class="tsd-signature-type tsd-kind-class">ProjectDecoder</a></h4> <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L84">decoder/lib/decoders.ts:84</a></li></ul></aside></li></ul></section></section> <section class="tsd-panel-group tsd-member-group"> <h2>Properties</h2> <section class="tsd-panel tsd-member tsd-is-private"><a id="addProjectInfoNonce" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>add<wbr/>Project<wbr/>Info<wbr/>Nonce</span><a href="#addProjectInfoNonce" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">add<wbr/>Project<wbr/>Info<wbr/>Nonce</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L79">decoder/lib/decoders.ts:79</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="allocations" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>allocations</span><a href="#allocations" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">allocations</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/_truffle_codec.Evm.AllocationInfo.html" class="tsd-signature-type tsd-kind-interface">AllocationInfo</a></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L69">decoder/lib/decoders.ts:69</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="codeCache" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>code<wbr/>Cache</span><a href="#codeCache" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">code<wbr/>Cache</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">CodeCache</span><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L71">decoder/lib/decoders.ts:71</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="compilations" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>compilations</span><a href="#compilations" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">compilations</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/_truffle_codec.Compilations.Compilation.html" class="tsd-signature-type tsd-kind-interface">Compilation</a><span class="tsd-signature-symbol">[]</span></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L61">decoder/lib/decoders.ts:61</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="contexts" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>contexts</span><a href="#contexts" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">contexts</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/_truffle_codec.Contexts.Contexts.html" class="tsd-signature-type tsd-kind-interface">Contexts</a><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L62">decoder/lib/decoders.ts:62</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="contractsAndContexts" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>contracts<wbr/>And<wbr/>Contexts</span><a href="#contractsAndContexts" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">contracts<wbr/>And<wbr/>Contexts</span><span class="tsd-signature-symbol">:</span> <a href="../modules/_truffle_codec.AbiData.html" class="tsd-signature-type tsd-kind-namespace">AbiData</a><span class="tsd-signature-symbol">.</span><a href="../modules/_truffle_codec.AbiData.Allocate.html" class="tsd-signature-type tsd-kind-namespace">Allocate</a><span class="tsd-signature-symbol">.</span><a href="../interfaces/_truffle_codec.AbiData.Allocate.ContractAndContexts.html" class="tsd-signature-type tsd-kind-interface">ContractAndContexts</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> = []</span></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L64">decoder/lib/decoders.ts:64</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="deployedContexts" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>deployed<wbr/>Contexts</span><a href="#deployedContexts" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">deployed<wbr/>Contexts</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/_truffle_codec.Contexts.Contexts.html" class="tsd-signature-type tsd-kind-interface">Contexts</a><span class="tsd-signature-symbol"> = {}</span></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L63">decoder/lib/decoders.ts:63</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="ens" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>ens</span><a href="#ens" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">ens</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L74">decoder/lib/decoders.ts:74</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="ensCache" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>ens<wbr/>Cache</span><a href="#ensCache" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">ens<wbr/>Cache</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span>[<span class="tsd-kind-index-signature">address</span>: <span class="tsd-signature-type">string</span>]<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Uint8Array</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span><span class="tsd-signature-symbol"> = {}</span></div> <div class="tsd-type-declaration"> <h4>Type declaration</h4> <ul class="tsd-parameters"> <li class="tsd-parameter-index-signature"> <h5><span class="tsd-signature-symbol">[</span><span class="tsd-kind-parameter">address</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><span class="tsd-signature-type ">Uint8Array</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">null</span></h5></li></ul></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L72">decoder/lib/decoders.ts:72</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="ensSettings" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>ens<wbr/>Settings</span><a href="#ensSettings" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">ens<wbr/>Settings</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/decoder_lib.EnsSettings.html" class="tsd-signature-type tsd-kind-interface">EnsSettings</a></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L75">decoder/lib/decoders.ts:75</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="providerAdapter" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>provider<wbr/>Adapter</span><a href="#providerAdapter" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">provider<wbr/>Adapter</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type ">ProviderAdapter</span></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L59">decoder/lib/decoders.ts:59</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="referenceDeclarations" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>reference<wbr/>Declarations</span><a href="#referenceDeclarations" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">reference<wbr/>Declarations</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">{ </span><br/><span>    </span>[<span class="tsd-kind-index-signature">compilationId</span>: <span class="tsd-signature-type">string</span>]<span class="tsd-signature-symbol">: </span><a href="../interfaces/_truffle_codec.Ast.AstNodes.html" class="tsd-signature-type tsd-kind-interface">AstNodes</a><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span></div> <div class="tsd-type-declaration"> <h4>Type declaration</h4> <ul class="tsd-parameters"> <li class="tsd-parameter-index-signature"> <h5><span class="tsd-signature-symbol">[</span><span class="tsd-kind-parameter">compilationId</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">]: </span><a href="../interfaces/_truffle_codec.Ast.AstNodes.html" class="tsd-signature-type tsd-kind-interface">AstNodes</a></h5></li></ul></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L66">decoder/lib/decoders.ts:66</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="selectorDirectory" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>selector<wbr/>Directory</span><a href="#selectorDirectory" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">selector<wbr/>Directory</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L77">decoder/lib/decoders.ts:77</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="userDefinedTypes" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>user<wbr/>Defined<wbr/>Types</span><a href="#userDefinedTypes" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">user<wbr/>Defined<wbr/>Types</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/_truffle_codec.Format.Types.TypesById.html" class="tsd-signature-type tsd-kind-interface">TypesById</a></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L68">decoder/lib/decoders.ts:68</a></li></ul></aside></section> <section class="tsd-panel tsd-member tsd-is-private"><a id="userDefinedTypesByCompilation" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>user<wbr/>Defined<wbr/>Types<wbr/>By<wbr/>Compilation</span><a href="#userDefinedTypesByCompilation" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <div class="tsd-signature"><span class="tsd-kind-property">user<wbr/>Defined<wbr/>Types<wbr/>By<wbr/>Compilation</span><span class="tsd-signature-symbol">:</span> <a href="../interfaces/_truffle_codec.Format.Types.TypesByCompilationAndId.html" class="tsd-signature-type tsd-kind-interface">TypesByCompilationAndId</a></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L67">decoder/lib/decoders.ts:67</a></li></ul></aside></section></section> <section class="tsd-panel-group tsd-member-group"> <h2>Methods</h2> <section class="tsd-panel tsd-member"><a id="abifyCalldataDecoding" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>abify<wbr/>Calldata<wbr/>Decoding</span><a href="#abifyCalldataDecoding" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="abifyCalldataDecoding.abifyCalldataDecoding-1"><span class="tsd-kind-call-signature">abify<wbr/>Calldata<wbr/>Decoding</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">decoding</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/_truffle_codec.CalldataDecoding.html" class="tsd-signature-type tsd-kind-type-alias">CalldataDecoding</a><a href="#abifyCalldataDecoding.abifyCalldataDecoding-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Takes a [[CalldataDecoding]], which may have been produced in full mode or ABI mode, and converts it to its ABI mode equivalent. See the README for more information.</p> <p>Please only use on decodings produced by this same decoder instance; use on decodings produced by other instances may not work consistently.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">decoding</span>: <a href="../types/_truffle_codec.CalldataDecoding.html" class="tsd-signature-type tsd-kind-type-alias">CalldataDecoding</a></h5> <div class="tsd-comment tsd-typography"><p>The decoding to abify</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <a href="../types/_truffle_codec.CalldataDecoding.html" class="tsd-signature-type tsd-kind-type-alias">CalldataDecoding</a></h4> <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L728">decoder/lib/decoders.ts:728</a></li></ul></aside></li></ul></section> <section class="tsd-panel tsd-member"><a id="abifyLogDecoding" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>abify<wbr/>Log<wbr/>Decoding</span><a href="#abifyLogDecoding" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="abifyLogDecoding.abifyLogDecoding-1"><span class="tsd-kind-call-signature">abify<wbr/>Log<wbr/>Decoding</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">decoding</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/_truffle_codec.LogDecoding.html" class="tsd-signature-type tsd-kind-type-alias">LogDecoding</a><a href="#abifyLogDecoding.abifyLogDecoding-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Takes a [[LogDecoding]], which may have been produced in full mode or ABI mode, and converts it to its ABI mode equivalent. See the README for more information.</p> <p>Please only use on decodings produced by this same decoder instance; use on decodings produced by other instances may not work consistently.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">decoding</span>: <a href="../types/_truffle_codec.LogDecoding.html" class="tsd-signature-type tsd-kind-type-alias">LogDecoding</a></h5> <div class="tsd-comment tsd-typography"><p>The decoding to abify</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <a href="../types/_truffle_codec.LogDecoding.html" class="tsd-signature-type tsd-kind-type-alias">LogDecoding</a></h4> <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L740">decoder/lib/decoders.ts:740</a></li></ul></aside></li></ul></section> <section class="tsd-panel tsd-member"><a id="abifyReturndataDecoding" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>abify<wbr/>Returndata<wbr/>Decoding</span><a href="#abifyReturndataDecoding" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="abifyReturndataDecoding.abifyReturndataDecoding-1"><span class="tsd-kind-call-signature">abify<wbr/>Returndata<wbr/>Decoding</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">decoding</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../types/_truffle_codec.ReturndataDecoding.html" class="tsd-signature-type tsd-kind-type-alias">ReturndataDecoding</a><a href="#abifyReturndataDecoding.abifyReturndataDecoding-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p>Takes a [[ReturndataDecoding]], which may have been produced in full mode or ABI mode, and converts it to its ABI mode equivalent. See the README for more information.</p> <p>Please only use on decodings produced by this same decoder instance; use on decodings produced by other instances may not work consistently.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">decoding</span>: <a href="../types/_truffle_codec.ReturndataDecoding.html" class="tsd-signature-type tsd-kind-type-alias">ReturndataDecoding</a></h5> <div class="tsd-comment tsd-typography"><p>The decoding to abify</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <a href="../types/_truffle_codec.ReturndataDecoding.html" class="tsd-signature-type tsd-kind-type-alias">ReturndataDecoding</a></h4> <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L753">decoder/lib/decoders.ts:753</a></li></ul></aside></li></ul></section> <section class="tsd-panel tsd-member"><a id="addAdditionalProjectInfo" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>add<wbr/>Additional<wbr/>Project<wbr/>Info</span><a href="#addAdditionalProjectInfo" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="addAdditionalProjectInfo.addAdditionalProjectInfo-1"><span class="tsd-kind-call-signature">add<wbr/>Additional<wbr/>Project<wbr/>Info</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">projectInfo</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#addAdditionalProjectInfo.addAdditionalProjectInfo-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p><strong>This function is asynchronous.</strong></p> <p>Adds additional compilations to the decoder like [[addCompilations]], but allows it to be specified in more general forms.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">projectInfo</span>: <a href="../modules/_truffle_codec.Compilations.html" class="tsd-signature-type tsd-kind-namespace">Compilations</a><span class="tsd-signature-symbol">.</span><a href="../types/_truffle_codec.Compilations.ProjectInfo.html" class="tsd-signature-type tsd-kind-type-alias">ProjectInfo</a></h5> <div class="tsd-comment tsd-typography"><p>Information about the additional compilations or contracts to be decoded. This may come in several forms; see the type documentation for more information. If passing in <code>{ compilations: ... }</code>, take care that the compilations have different IDs from others passed in so far, otherwise this will error. If passed in in another form, an ID will be assigned automatically, which should generally avoid any collisions.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4> <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L325">decoder/lib/decoders.ts:325</a></li></ul></aside></li></ul></section> <section class="tsd-panel tsd-member"><a id="addCompilations" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>add<wbr/>Compilations</span><a href="#addCompilations" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="addCompilations.addCompilations-1"><span class="tsd-kind-call-signature">add<wbr/>Compilations</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">compilations</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span><a href="#addCompilations.addCompilations-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p><strong>This function is asynchronous.</strong></p> <p>Adds compilations to the decoder after it has started. Note it is only presently possible to do this with a <code>ProjectDecoder</code> and not with the other decoder classes.</p> </div> <div class="tsd-parameters"> <h4 class="tsd-parameters-title">Parameters</h4> <ul class="tsd-parameter-list"> <li> <h5><span class="tsd-kind-parameter">compilations</span>: <a href="../interfaces/_truffle_codec.Compilations.Compilation.html" class="tsd-signature-type tsd-kind-interface">Compilation</a><span class="tsd-signature-symbol">[]</span></h5> <div class="tsd-comment tsd-typography"><p>The compilations to be added. Take care that these have IDs distinct from those the decoder already has.</p> </div> <div class="tsd-comment tsd-typography"></div></li></ul></div> <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></h4> <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"> <ul> <li>Defined in <a href="https://github.com/trufflesuite/truffle/blob/8c81e30a6/packages/decoder/lib/decoders.ts#L209">decoder/lib/decoders.ts:209</a></li></ul></aside></li></ul></section> <section class="tsd-panel tsd-member"><a id="decodeLog" class="tsd-anchor"></a> <h3 class="tsd-anchor-link"><span>decode<wbr/>Log</span><a href="#decodeLog" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></h3> <ul class="tsd-signatures"> <li class="tsd-signature tsd-anchor-link" id="decodeLog.decodeLog-1"><span class="tsd-kind-call-signature">decode<wbr/>Log</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">log</span>, <span class="tsd-kind-parameter">options</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type ">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/_truffle_codec.LogDecoding.html" class="tsd-signature-type tsd-kind-type-alias">LogDecoding</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#decodeLog.decodeLog-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="#icon-anchor"></use></svg></a></li> <li class="tsd-description"> <div class="tsd-comment tsd-typography"><p><strong>This method is asynchronous.</strong></p> <p>Takes a [[Log]] object and decodes it. Logs can be ambiguous, so this function returns an array of [[LogDecoding|LogDecodings]].</p> <p>Note that logs are decoded in strict mode, so (with one exception) none of the decodings should contain errors; if a decoding would contain an error, instead it is simply excluded from the list of possible decodings. The one exception to this is that indexed parameters of reference type cannot meaningfully be decoded, so those will decode to an error.</p> <p>If there are multiple possible decodings, they will always be listed in the following order:</p> <ol> <li>Non-anonymous events coming from the contract itself (these will moreover be ordered from most derived to most base)</li> <li>Non-anonymous events coming from libraries</li> <li>Anonymous events coming from the contract itself (again, ordered from most derived to most base)</li> <li>Anonymous events coming from libraries</li> </ol> <p>You can check the kind and class.contractKind fields to distinguish between these.</p> <p>If no possible decodings are found, the returned array of decodings will be empty.</p> <p>Note that different decodings may use different decoding modes.</p> <p>Using <code>options.extras = &quot;on&quot;</code> or <code>options.extras = &quot;necessary&quot;</code> will change the above behavior; see the documentation on