Skip to content

Commit

Permalink
Merge branch 'master' of github.com:LIT-Protocol/js-sdk into cleanup/…
Browse files Browse the repository at this point in the history
…logger
  • Loading branch information
Josh Long committed Jan 29, 2024
2 parents bc5a099 + dccdaf8 commit 34e73af
Show file tree
Hide file tree
Showing 220 changed files with 5,148 additions and 1,172 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ on:
branches:
- master
pull_request:

branches:
- master
- feat/**
jobs:
master:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -44,7 +46,7 @@ jobs:
- name: Install project dependencies
run: yarn install
- name: Lint
run: yarn prettier:check
run: yarn nx format:check --all
e2e-connection:
runs-on: ubuntu-latest
timeout-minutes: 30
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,6 @@ dep-graph.json

apps/html/index.html
apps/nodejs/main.ts
apps/react/src/app/app.tsx
apps/react/src/app/app.tsx

storage.test.db
54 changes: 27 additions & 27 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions apps/html/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Mon, 29 Jan 2024 17:43:55 GMT -->
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Fri, 26 Jan 2024 19:51:34 GMT -->
<!DOCTYPE html>
<html lang="en">
<head>
Expand Down Expand Up @@ -62,7 +62,7 @@
</style>
</head>
<body>
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Mon, 29 Jan 2024 17:43:55 GMT
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Fri, 26 Jan 2024 19:51:34 GMT

<!-- ==================== ALL EXPORTED VANILLA LIBRARIES ==================== -->
<script src="dist/packages/access-control-conditions-vanilla/access-control-conditions.js"></script>
Expand Down
2 changes: 1 addition & 1 deletion apps/react/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ pre {
`,
}}
/>
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Mon, 29 Jan 2024 17:43:56 GMT
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Fri, 26 Jan 2024 19:51:35 GMT
<div id="root"></div>
<pre><code id="result"></code></pre>
</>
Expand Down
2 changes: 1 addition & 1 deletion doc/assets/search.js

Large diffs are not rendered by default.

390 changes: 298 additions & 92 deletions doc/classes/contracts_sdk_src.LitContracts.html

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions doc/classes/lit_node_client_src.LitNodeClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<li><span class="target">LitNodeClient</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/9c3e1f48/packages/lit-node-client/src/lib/lit-node-client.ts#L7">packages/lit-node-client/src/lib/lit-node-client.ts:7</a></li></ul></aside>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/lit-node-client/src/lib/lit-node-client.ts#L8">packages/lit-node-client/src/lib/lit-node-client.ts:8</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">
Expand Down Expand Up @@ -55,7 +55,7 @@ <h5>args: <span class="tsd-signature-type">any</span></h5></li></ul></div>
<h4 class="tsd-returns-title">Returns <a href="lit_node_client_src.LitNodeClient.html" class="tsd-signature-type" data-tsd-kind="Class">LitNodeClient</a></h4><aside class="tsd-sources">
<p>Overrides <a href="lit_node_client_src.LitNodeClientNodeJs.html">LitNodeClientNodeJs</a>.<a href="lit_node_client_src.LitNodeClientNodeJs.html#constructor">constructor</a></p>
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/9c3e1f48/packages/lit-node-client/src/lib/lit-node-client.ts#L8">packages/lit-node-client/src/lib/lit-node-client.ts:8</a></li></ul></aside></li></ul></section></section>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/lit-node-client/src/lib/lit-node-client.ts#L9">packages/lit-node-client/src/lib/lit-node-client.ts:9</a></li></ul></aside></li></ul></section></section>
<section class="tsd-panel-group tsd-member-group">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="overrideConfigsFromLocalStorage" class="tsd-anchor"></a>
Expand All @@ -68,7 +68,7 @@ <h3 class="tsd-anchor-link"><span>override<wbr/>Configs<wbr/>From<wbr/>Local<wbr
<h3>Returns</h3></div>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/9c3e1f48/packages/lit-node-client/src/lib/lit-node-client.ts#L25">packages/lit-node-client/src/lib/lit-node-client.ts:25</a></li></ul></aside></li></ul></section></section></div>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/lit-node-client/src/lib/lit-node-client.ts#L26">packages/lit-node-client/src/lib/lit-node-client.ts:26</a></li></ul></aside></li></ul></section></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 Down Expand Up @@ -108,6 +108,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-module"><a href="../modules/lit_node_client_nodejs_src.html">lit-<wbr/>node-<wbr/>client-<wbr/>nodejs/src</a></li>
<li class="current tsd-kind-module"><a href="../modules/lit_node_client_src.html">lit-<wbr/>node-<wbr/>client/src</a></li>
<li class="tsd-kind-module"><a href="../modules/lit_third_party_libs_src.html">lit-<wbr/>third-<wbr/>party-<wbr/>libs/src</a></li>
<li class="tsd-kind-module"><a href="../modules/logger_src.html">logger/src</a></li>
<li class="tsd-kind-module"><a href="../modules/misc_browser_src.html">misc-<wbr/>browser/src</a></li>
<li class="tsd-kind-module"><a href="../modules/misc_src.html">misc/src</a></li>
<li class="tsd-kind-module"><a href="../modules/nacl_src.html">nacl/src</a></li>
Expand All @@ -128,6 +129,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-module"><a href="../modules/pkp_ethers_src.html">pkp-<wbr/>ethers/src</a></li>
<li class="tsd-kind-module"><a href="../modules/pkp_sui_src.html">pkp-<wbr/>sui/src</a></li>
<li class="tsd-kind-module"><a href="../modules/pkp_walletconnect_src.html">pkp-<wbr/>walletconnect/src</a></li>
<li class="tsd-kind-module"><a href="../modules/sev_snp_utils_sdk_src.html">sev-<wbr/>snp-<wbr/>utils-<wbr/>sdk/src</a></li>
<li class="tsd-kind-module"><a href="../modules/types_src.html">types/src</a></li>
<li class="tsd-kind-module"><a href="../modules/uint8arrays_src.html">uint8arrays/src</a></li></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
Expand Down
8 changes: 5 additions & 3 deletions doc/enums/constants_src.EITHER_TYPE.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1>Enumeration EITHER_TYPE<code class="tsd-tag ts-flagConst">Const</code> </h1>
<div class="tsd-comment tsd-typography"><p>The only either possible error types</p>
</div></section><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/9c3e1f48/packages/constants/src/lib/enums.ts#L16">packages/constants/src/lib/enums.ts:16</a></li></ul></aside>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/constants/src/lib/enums.ts#L17">packages/constants/src/lib/enums.ts:17</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">
Expand All @@ -37,12 +37,12 @@ <h2>Enumeration Members</h2>
<h3 class="tsd-anchor-link"><span>ERROR</span><a href="#ERROR" 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></h3>
<div class="tsd-signature">ERROR<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;ERROR&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/9c3e1f48/packages/constants/src/lib/enums.ts#L17">packages/constants/src/lib/enums.ts:17</a></li></ul></aside></section>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/constants/src/lib/enums.ts#L18">packages/constants/src/lib/enums.ts:18</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="SUCCESS" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>SUCCESS</span><a href="#SUCCESS" 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"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">SUCCESS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;SUCCESS&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/9c3e1f48/packages/constants/src/lib/enums.ts#L18">packages/constants/src/lib/enums.ts:18</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/constants/src/lib/enums.ts#L19">packages/constants/src/lib/enums.ts:19</a></li></ul></aside></section></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 Down Expand Up @@ -82,6 +82,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-module"><a href="../modules/lit_node_client_nodejs_src.html">lit-<wbr/>node-<wbr/>client-<wbr/>nodejs/src</a></li>
<li class="tsd-kind-module"><a href="../modules/lit_node_client_src.html">lit-<wbr/>node-<wbr/>client/src</a></li>
<li class="tsd-kind-module"><a href="../modules/lit_third_party_libs_src.html">lit-<wbr/>third-<wbr/>party-<wbr/>libs/src</a></li>
<li class="tsd-kind-module"><a href="../modules/logger_src.html">logger/src</a></li>
<li class="tsd-kind-module"><a href="../modules/misc_browser_src.html">misc-<wbr/>browser/src</a></li>
<li class="tsd-kind-module"><a href="../modules/misc_src.html">misc/src</a></li>
<li class="tsd-kind-module"><a href="../modules/nacl_src.html">nacl/src</a></li>
Expand All @@ -102,6 +103,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-module"><a href="../modules/pkp_ethers_src.html">pkp-<wbr/>ethers/src</a></li>
<li class="tsd-kind-module"><a href="../modules/pkp_sui_src.html">pkp-<wbr/>sui/src</a></li>
<li class="tsd-kind-module"><a href="../modules/pkp_walletconnect_src.html">pkp-<wbr/>walletconnect/src</a></li>
<li class="tsd-kind-module"><a href="../modules/sev_snp_utils_sdk_src.html">sev-<wbr/>snp-<wbr/>utils-<wbr/>sdk/src</a></li>
<li class="tsd-kind-module"><a href="../modules/types_src.html">types/src</a></li>
<li class="tsd-kind-module"><a href="../modules/uint8arrays_src.html">uint8arrays/src</a></li></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
Expand Down
19 changes: 13 additions & 6 deletions doc/enums/constants_src.SIGTYPE.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<li><a href="constants_src.SIGTYPE.html">SIGTYPE</a></li></ul>
<h1>Enumeration SIGTYPE</h1></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/9c3e1f48/packages/constants/src/lib/enums.ts#L8">packages/constants/src/lib/enums.ts:8</a></li></ul></aside>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/constants/src/lib/enums.ts#L8">packages/constants/src/lib/enums.ts:8</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">
Expand All @@ -35,12 +35,17 @@ <h2>Enumeration Members</h2>
<h3 class="tsd-anchor-link"><span>BLS</span><a href="#BLS" 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></h3>
<div class="tsd-signature">BLS<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;BLS&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/9c3e1f48/packages/constants/src/lib/enums.ts#L9">packages/constants/src/lib/enums.ts:9</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="ECDSA" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>ECDSA</span><a href="#ECDSA" 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"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">ECDSA<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;ECDSA&quot;</span></div><aside class="tsd-sources">
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/constants/src/lib/enums.ts#L9">packages/constants/src/lib/enums.ts:9</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="EcdsaCAITSITHP256" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>EcdsaCAITSITHP256</span><a href="#EcdsaCAITSITHP256" 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"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">EcdsaCAITSITHP256<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;EcdsaCaitSithP256&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/9c3e1f48/packages/constants/src/lib/enums.ts#L10">packages/constants/src/lib/enums.ts:10</a></li></ul></aside></section></section></div>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/constants/src/lib/enums.ts#L11">packages/constants/src/lib/enums.ts:11</a></li></ul></aside></section>
<section class="tsd-panel tsd-member tsd-kind-enum-member tsd-parent-kind-enum"><a id="EcdsaCaitSith" class="tsd-anchor"></a>
<h3 class="tsd-anchor-link"><span>Ecdsa<wbr/>Cait<wbr/>Sith</span><a href="#EcdsaCaitSith" 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"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
<div class="tsd-signature">Ecdsa<wbr/>Cait<wbr/>Sith<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">&quot;ECDSA_CAIT_SITH&quot;</span></div><aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/LIT-Protocol/js-sdk/blob/3a4f5462/packages/constants/src/lib/enums.ts#L10">packages/constants/src/lib/enums.ts:10</a></li></ul></aside></section></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 Down Expand Up @@ -80,6 +85,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-module"><a href="../modules/lit_node_client_nodejs_src.html">lit-<wbr/>node-<wbr/>client-<wbr/>nodejs/src</a></li>
<li class="tsd-kind-module"><a href="../modules/lit_node_client_src.html">lit-<wbr/>node-<wbr/>client/src</a></li>
<li class="tsd-kind-module"><a href="../modules/lit_third_party_libs_src.html">lit-<wbr/>third-<wbr/>party-<wbr/>libs/src</a></li>
<li class="tsd-kind-module"><a href="../modules/logger_src.html">logger/src</a></li>
<li class="tsd-kind-module"><a href="../modules/misc_browser_src.html">misc-<wbr/>browser/src</a></li>
<li class="tsd-kind-module"><a href="../modules/misc_src.html">misc/src</a></li>
<li class="tsd-kind-module"><a href="../modules/nacl_src.html">nacl/src</a></li>
Expand All @@ -100,6 +106,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<li class="tsd-kind-module"><a href="../modules/pkp_ethers_src.html">pkp-<wbr/>ethers/src</a></li>
<li class="tsd-kind-module"><a href="../modules/pkp_sui_src.html">pkp-<wbr/>sui/src</a></li>
<li class="tsd-kind-module"><a href="../modules/pkp_walletconnect_src.html">pkp-<wbr/>walletconnect/src</a></li>
<li class="tsd-kind-module"><a href="../modules/sev_snp_utils_sdk_src.html">sev-<wbr/>snp-<wbr/>utils-<wbr/>sdk/src</a></li>
<li class="tsd-kind-module"><a href="../modules/types_src.html">types/src</a></li>
<li class="tsd-kind-module"><a href="../modules/uint8arrays_src.html">uint8arrays/src</a></li></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
Expand Down
Loading

0 comments on commit 34e73af

Please sign in to comment.