Skip to content

Commit

Permalink
Publish version 2.2.45
Browse files Browse the repository at this point in the history
  • Loading branch information
Ansonhkg committed Jul 20, 2023
1 parent b513362 commit 6833fa0
Show file tree
Hide file tree
Showing 223 changed files with 671 additions and 332 deletions.
47 changes: 24 additions & 23 deletions README.md

Large diffs are not rendered by default.

83 changes: 78 additions & 5 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, 17 Jul 2023 17:05:50 GMT -->
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Thu, 20 Jul 2023 22:00:59 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, 17 Jul 2023 17:05:50 GMT
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Thu, 20 Jul 2023 22:00:59 GMT

<!-- ==================== ALL EXPORTED VANILLA LIBRARIES ==================== -->
<script src="dist/packages/access-control-conditions-vanilla/access-control-conditions.js"></script>
Expand All @@ -86,6 +86,7 @@
<script src="dist/packages/pkp-client-vanilla/pkp-client.js"></script>
<script src="dist/packages/pkp-cosmos-vanilla/pkp-cosmos.js"></script>
<script src="dist/packages/pkp-ethers-vanilla/pkp-ethers.js"></script>
<script src="dist/packages/pkp-sui-vanilla/pkp-sui.js"></script>
<script src="dist/packages/pkp-walletconnect-vanilla/pkp-walletconnect.js"></script>
<script src="dist/packages/types-vanilla/types.js"></script>
<script src="dist/packages/uint8arrays-vanilla/uint8arrays.js"></script>
Expand Down Expand Up @@ -1604,7 +1605,79 @@ <h1>LitJsSdk_pkpEthers has ${entries.length} functions</h1>
</script>


<!-- (22): PKPWALLETCONNECT -->
<!-- (22): PKPSUI -->
<script>
if(typeof LitJsSdk_pkpSui === 'undefined') {
console.error("LitJsSdk_pkpSui:", LitJsSdk_pkpSui);
}else{
console.warn("LitJsSdk_pkpSui:", LitJsSdk_pkpSui);
window.LitJsSdk_pkpSui = LitJsSdk_pkpSui;
}
window.addEventListener('load', function() {

var root = document.getElementById('root');
var result = document.getElementById('result');
var entries = Object.entries(LitJsSdk_pkpSui);
var lis = entries.map(([key, value]) => `
<li>
<div id="LitJsSdk_pkpSui_${key}" class="key" onClick="(async (e) => {
var fn = LitJsSdk_pkpSui['${key}'];
var fnType = typeof fn;
console.warn('[${key}] is type of [' + fnType + ']');
if ( fnType === 'string' ) return;
if( fnType === 'function' ){
try{
console.log('params:', globalThis.params);
var res;
try{
res = new fn(globalThis.params);
}catch{
res = await fn(globalThis.params);
}
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
}catch(e){
console.error('Please set the [params] variable in the console then click again');
console.log(e);
}
return;
}
if( fnType === 'object' ){
var res = await fn;
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
return;
}
})();">${key}</div>
<pre class="code">
<code>${(typeof value === 'function' ? value : JSON.stringify(value, null, 2))}</code>
</pre>
</li>`);
lis = lis.join(' ');
var template = `
<div class="cat">
<h1>LitJsSdk_pkpSui has ${entries.length} functions</h1>
<ul>
${ lis }
</ul>
</div>
`;
root.insertAdjacentHTML('beforeend', template);
});
</script>


<!-- (23): PKPWALLETCONNECT -->
<script>
if(typeof LitJsSdk_pkpWalletconnect === 'undefined') {
console.error("LitJsSdk_pkpWalletconnect:", LitJsSdk_pkpWalletconnect);
Expand Down Expand Up @@ -1676,7 +1749,7 @@ <h1>LitJsSdk_pkpWalletconnect has ${entries.length} functions</h1>
</script>


<!-- (23): TYPES -->
<!-- (24): TYPES -->
<script>
if(typeof LitJsSdk_types === 'undefined') {
console.error("LitJsSdk_types:", LitJsSdk_types);
Expand Down Expand Up @@ -1748,7 +1821,7 @@ <h1>LitJsSdk_types has ${entries.length} functions</h1>
</script>


<!-- (24): UINT8ARRAYS -->
<!-- (25): UINT8ARRAYS -->
<script>
if(typeof LitJsSdk_uint8arrays === 'undefined') {
console.error("LitJsSdk_uint8arrays:", LitJsSdk_uint8arrays);
Expand Down
2 changes: 2 additions & 0 deletions apps/nodejs/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import * as pkpBase from '@lit-protocol/pkp-base';
import * as pkpClient from '@lit-protocol/pkp-client';
import * as pkpCosmos from '@lit-protocol/pkp-cosmos';
import * as pkpEthers from '@lit-protocol/pkp-ethers';
import * as pkpSui from '@lit-protocol/pkp-sui';
import * as pkpWalletconnect from '@lit-protocol/pkp-walletconnect';
import * as types from '@lit-protocol/types';
import * as uint8arrays from '@lit-protocol/uint8arrays';
Expand All @@ -49,6 +50,7 @@ console.log("pkpBase:", hasItems(pkpBase));
console.log("pkpClient:", hasItems(pkpClient));
console.log("pkpCosmos:", hasItems(pkpCosmos));
console.log("pkpEthers:", hasItems(pkpEthers));
console.log("pkpSui:", hasItems(pkpSui));
console.log("pkpWalletconnect:", hasItems(pkpWalletconnect));
console.log("types:", hasItems(types));
console.log("uint8arrays:", hasItems(uint8arrays));
Expand Down
76 changes: 75 additions & 1 deletion apps/react/src/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import * as LitJsSdk_pkpBase from 'dist/packages/pkp-base';
import * as LitJsSdk_pkpClient from 'dist/packages/pkp-client';
import * as LitJsSdk_pkpCosmos from 'dist/packages/pkp-cosmos';
import * as LitJsSdk_pkpEthers from 'dist/packages/pkp-ethers';
import * as LitJsSdk_pkpSui from 'dist/packages/pkp-sui';
import * as LitJsSdk_pkpWalletconnect from 'dist/packages/pkp-walletconnect';
import * as LitJsSdk_types from 'dist/packages/types';
import * as LitJsSdk_uint8arrays from 'dist/packages/uint8arrays';
Expand Down Expand Up @@ -49,6 +50,7 @@ declare global {
LitJsSdk_pkpClient: any;
LitJsSdk_pkpCosmos: any;
LitJsSdk_pkpEthers: any;
LitJsSdk_pkpSui: any;
LitJsSdk_pkpWalletconnect: any;
LitJsSdk_types: any;
LitJsSdk_uint8arrays: any;
Expand Down Expand Up @@ -1577,6 +1579,78 @@ export function App() {



if(typeof LitJsSdk_pkpSui === 'undefined') {
console.error("LitJsSdk_pkpSui:", LitJsSdk_pkpSui);
}else{
console.warn("LitJsSdk_pkpSui:", LitJsSdk_pkpSui);
window.LitJsSdk_pkpSui = LitJsSdk_pkpSui;
}
window.addEventListener('load', function() {

var root = document.getElementById('root');
var result = document.getElementById('result');
var entries = Object.entries(LitJsSdk_pkpSui);
var lis = entries.map(([key, value]) => `
<li>
<div id="LitJsSdk_pkpSui_${key}" class="key" onClick="(async (e) => {
var fn = LitJsSdk_pkpSui['${key}'];
var fnType = typeof fn;
console.warn('[${key}] is type of [' + fnType + ']');
if ( fnType === 'string' ) return;
if( fnType === 'function' ){
try{
console.log('params:', globalThis.params);
var res;
try{
res = new fn(globalThis.params);
}catch{
res = await fn(globalThis.params);
}
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
}catch(e){
console.error('Please set the [params] variable in the console then click again');
console.log(e);
}
return;
}
if( fnType === 'object' ){
var res = await fn;
window.output = res;
res = JSON.stringify(res, null, 2);
result.innerText = res;
console.log(res);
return;
}
})();">${key}</div>
<pre class="code">
<code>${(typeof value === 'function' ? value : JSON.stringify(value, null, 2))}</code>
</pre>
</li>`);
lis = lis.join(' ');
var template = `
<div class="cat">
<h1>LitJsSdk_pkpSui has ${entries.length} functions</h1>
<ul>
${ lis }
</ul>
</div>
`;
root.insertAdjacentHTML('beforeend', template);
});





if(typeof LitJsSdk_pkpWalletconnect === 'undefined') {
console.error("LitJsSdk_pkpWalletconnect:", LitJsSdk_pkpWalletconnect);
}else{
Expand Down Expand Up @@ -1870,7 +1944,7 @@ pre {
`,
}}
/>
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Mon, 17 Jul 2023 17:05:50 GMT
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Thu, 20 Jul 2023 22:00:59 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.

Loading

1 comment on commit 6833fa0

@vercel
Copy link

@vercel vercel bot commented on 6833fa0 Jul 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.