Skip to content

Commit

Permalink
feat: add new data pass functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelPretorius committed Jun 15, 2024
1 parent 2520bee commit 6888c69
Show file tree
Hide file tree
Showing 42 changed files with 1,139 additions and 182 deletions.
129 changes: 119 additions & 10 deletions README.md

Large diffs are not rendered by default.

Binary file modified assets/images/flows.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 4 additions & 18 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,12 @@
--dark-hl-6: #DCDCAA;
--light-hl-7: #008000;
--dark-hl-7: #6A9955;
--light-hl-8: #267F99;
--dark-hl-8: #4EC9B0;
--light-hl-8: #000000;
--dark-hl-8: #C8C8C8;
--light-hl-9: #098658;
--dark-hl-9: #B5CEA8;
--light-hl-10: #800000;
--dark-hl-10: #808080;
--light-hl-11: #E50000;
--dark-hl-11: #9CDCFE;
--light-hl-12: #000000FF;
--dark-hl-12: #D4D4D4;
--light-hl-10: #267F99;
--dark-hl-10: #4EC9B0;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}
Expand All @@ -41,8 +37,6 @@
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--hl-11: var(--light-hl-11);
--hl-12: var(--light-hl-12);
--code-background: var(--light-code-background);
} }

Expand All @@ -58,8 +52,6 @@
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--hl-11: var(--dark-hl-11);
--hl-12: var(--dark-hl-12);
--code-background: var(--dark-code-background);
} }

Expand All @@ -75,8 +67,6 @@
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--hl-11: var(--light-hl-11);
--hl-12: var(--light-hl-12);
--code-background: var(--light-code-background);
}

Expand All @@ -92,8 +82,6 @@
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--hl-11: var(--dark-hl-11);
--hl-12: var(--dark-hl-12);
--code-background: var(--dark-code-background);
}

Expand All @@ -108,6 +96,4 @@
.hl-8 { color: var(--hl-8); }
.hl-9 { color: var(--hl-9); }
.hl-10 { color: var(--hl-10); }
.hl-11 { color: var(--hl-11); }
.hl-12 { color: var(--hl-12); }
pre, code { background: var(--code-background); }
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

88 changes: 55 additions & 33 deletions docs/classes/SignX.html

Large diffs are not rendered by default.

17 changes: 11 additions & 6 deletions docs/functions/convertDataToDeeplink.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
<h1>Function convertDataToDeeplink</h1></div>
<section class="tsd-panel">
<ul class="tsd-signatures tsd-kind-function">
<li class="tsd-signature tsd-anchor-link" id="convertDataToDeeplink">convert<wbr/>Data<wbr/>To<wbr/>Deeplink<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">LOGIN_DATA</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">TRANSACT_DATA</span>, scheme<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#convertDataToDeeplink" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></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" id="icon-anchor-c"></path></svg></a></li>
<li class="tsd-signature tsd-anchor-link" id="convertDataToDeeplink">convert<wbr/>Data<wbr/>To<wbr/>Deeplink<span class="tsd-signature-symbol">(</span>data<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">LOGIN_DATA</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">DATA_PASS_DATA</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">TRANSACT_DATA</span>, scheme<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#convertDataToDeeplink" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></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" id="icon-anchor-c"></path></svg></a></li>
<li class="tsd-description">
<div class="tsd-comment tsd-typography"><p>Generate a deeplink uri from the provided data</p>
</div>
<div class="tsd-parameters">
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameter-list">
<li>
<h5>data: <span class="tsd-signature-type">LOGIN_DATA</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">TRANSACT_DATA</span></h5>
<h5>data: <span class="tsd-signature-type">LOGIN_DATA</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">DATA_PASS_DATA</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">TRANSACT_DATA</span></h5>
<div class="tsd-comment tsd-typography"><p>data to generate deeplink for (type LOGIN_DATA | TRANSACT_DATA)</p>
</div></li>
<li>
Expand All @@ -34,7 +34,7 @@ <h5>scheme: <span class="tsd-signature-type">string</span><span class="tsd-signa
</div></li></ul></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in src/utils/encoding.ts:62</li></ul></aside></li></ul></section></div>
<li>Defined in src/utils/encoding.ts:43</li></ul></aside></li></ul></section></div>
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
<div class="tsd-navigation settings">
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
Expand All @@ -60,9 +60,13 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<ul>
<li class="tsd-kind-class"><a href="../classes/Random.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-class)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-128-path"></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)" id="icon-128-text"></path></svg>Random</a></li>
<li class="tsd-kind-class"><a href="../classes/SignX.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-128-path"></use><use href="#icon-128-text"></use></svg>SignX</a></li>
<li class="tsd-kind-variable"><a href="../variables/LOGIN_VERSION.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg>LOGIN_<wbr/>VERSION</a></li>
<li class="tsd-kind-variable"><a href="../variables/DATA_VERSION.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg>DATA_<wbr/>VERSION</a></li>
<li class="tsd-kind-variable"><a href="../variables/LOGIN_VERSION.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>LOGIN_<wbr/>VERSION</a></li>
<li class="tsd-kind-variable"><a href="../variables/ROUTES.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>ROUTES</a></li>
<li class="tsd-kind-variable"><a href="../variables/SIGN_X_CLEAN_DEEPLINK.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>SIGN_<wbr/>X_<wbr/>CLEAN_<wbr/>DEEPLINK</a></li>
<li class="tsd-kind-variable"><a href="../variables/SIGN_X_DATA.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>SIGN_<wbr/>X_<wbr/>DATA</a></li>
<li class="tsd-kind-variable"><a href="../variables/SIGN_X_DATA_ERROR.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>SIGN_<wbr/>X_<wbr/>DATA_<wbr/>ERROR</a></li>
<li class="tsd-kind-variable"><a href="../variables/SIGN_X_DATA_SUCCESS.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>SIGN_<wbr/>X_<wbr/>DATA_<wbr/>SUCCESS</a></li>
<li class="tsd-kind-variable"><a href="../variables/SIGN_X_LOGIN.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>SIGN_<wbr/>X_<wbr/>LOGIN</a></li>
<li class="tsd-kind-variable"><a href="../variables/SIGN_X_LOGIN_ERROR.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>SIGN_<wbr/>X_<wbr/>LOGIN_<wbr/>ERROR</a></li>
<li class="tsd-kind-variable"><a href="../variables/SIGN_X_LOGIN_SUCCESS.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>SIGN_<wbr/>X_<wbr/>LOGIN_<wbr/>SUCCESS</a></li>
Expand All @@ -74,9 +78,10 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-variable"><a href="../variables/SIGN_X_TRANSACT_SUCCESS.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>SIGN_<wbr/>X_<wbr/>TRANSACT_<wbr/>SUCCESS</a></li>
<li class="tsd-kind-variable"><a href="../variables/TRANSACT_VERSION.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>TRANSACT_<wbr/>VERSION</a></li>
<li class="current tsd-kind-function"><a href="convertDataToDeeplink.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg>convert<wbr/>Data<wbr/>To<wbr/>Deeplink</a></li>
<li class="tsd-kind-function"><a href="decryptJson.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>decrypt<wbr/>Json</a></li>
<li class="tsd-kind-function"><a href="encryptJson.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>encrypt<wbr/>Json</a></li>
<li class="tsd-kind-function"><a href="generateSecureHash.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>generate<wbr/>Secure<wbr/>Hash</a></li>
<li class="tsd-kind-function"><a href="hashTransactData.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>hash<wbr/>Transact<wbr/>Data</a></li>
<li class="tsd-kind-function"><a href="hashTransactDataV2.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>hash<wbr/>Transact<wbr/>Data<wbr/>V2</a></li></ul></nav></div></div>
<li class="tsd-kind-function"><a href="hashTransactData.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>hash<wbr/>Transact<wbr/>Data</a></li></ul></nav></div></div>
<div class="container tsd-generator">
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
Loading

0 comments on commit 6888c69

Please sign in to comment.