Skip to content

Commit

Permalink
Publish 3.0.26 (#287)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bean authored Dec 18, 2023
1 parent 4b12228 commit 3a44f68
Show file tree
Hide file tree
Showing 36 changed files with 77 additions and 62 deletions.
52 changes: 26 additions & 26 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, 18 Dec 2023 15:47:25 GMT -->
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Mon, 18 Dec 2023 23:49:45 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, 18 Dec 2023 15:47:25 GMT
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Mon, 18 Dec 2023 23:49:45 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, 18 Dec 2023 15:47:25 GMT
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Mon, 18 Dec 2023 23:49:46 GMT
<div id="root"></div>
<pre><code id="result"></code></pre>
</>
Expand Down
10 changes: 10 additions & 0 deletions e2e-nodejs/loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { LitContracts } from '@lit-protocol/contracts-sdk';
import { uint8arrayFromString } from '@lit-protocol/uint8arrays';
import { BigNumber, ethers } from 'ethers';
import * as siwe from 'siwe';
import * as LitJsSdk from '@lit-protocol/lit-node-client';

// ==================== ENV Loading ====================
const network = process.env.NETWORK ?? LITCONFIG.TEST_ENV.litNetwork;
Expand All @@ -17,6 +18,13 @@ const wallet = new ethers.Wallet(LITCONFIG.CONTROLLER_PRIVATE_KEY, provider);
const address = ethers.utils.getAddress(await wallet.getAddress());

// Craft the SIWE message

const litNodeClient = new LitJsSdk.LitNodeClient({
litNetwork: network,
});
await litNodeClient.connect();
let nonce = litNodeClient.getLatestBlockhash();
console.log('GENERATED NONCE: ', nonce);
const domain = 'localhost';
const origin = 'https://localhost/login';
const statement =
Expand All @@ -28,6 +36,7 @@ const siweMessage = new siwe.SiweMessage({
uri: origin,
version: '1',
chainId: 1,
nonce,
expirationTime: new Date(Date.now() + 1000 * 60 * 7).toISOString(),
});
const messageToSign = siweMessage.prepareMessage();
Expand All @@ -51,6 +60,7 @@ globalThis.LitCI.CONTROLLER_AUTHSIG = authSig;

globalThis.LitCI.PKP_INFO = {};
globalThis.LitCI.PKP_INFO.publicKey = LITCONFIG.PKP_PUBKEY;

if (mintNew) {
let contractClient = new LitContracts({
signer: wallet,
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": true,
"useWorkspaces": true,
"version": "3.0.25"
"version": "3.0.26"
}
2 changes: 1 addition & 1 deletion packages/access-control-conditions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"tags": [
"universal"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/auth-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"tags": [
"browser"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/auth-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"crypto": false,
"stream": false
},
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/bls-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"buildOptions": {
"genReact": false
},
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/constants/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"tags": [
"universal"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/constants/src/lib/constants/autogen_internal.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Last Modified: 2023-12-18 15:45:54
// Last Modified: 2023-12-18 23:48:16
// This file is auto-generated by tools/scripts/gen-internal-dev.mjs
export const INTERNAL_DEV = [];

Expand Down
2 changes: 1 addition & 1 deletion packages/constants/src/lib/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '3.0.25';
export const version = '3.0.26';
2 changes: 1 addition & 1 deletion packages/contracts-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"tags": [
"universal"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/core",
"version": "3.0.25",
"version": "3.0.26",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down
7 changes: 7 additions & 0 deletions packages/core/src/lib/lit-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export class LitCore {
networkPubKey: resp.networkPublicKey,
networkPubKeySet: resp.networkPublicKeySet,
hdRootPubkeys: resp.hdRootPubkeys,
latestBlockhash: resp.latestBlockhash,
};

// -- validate returned keys
Expand Down Expand Up @@ -374,6 +375,11 @@ export class LitCore {
(keysFromSingleNode: any) => keysFromSingleNode.hdRootPubkeys
)
);
this.latestBlockhash = mostCommonString(
Object.values(this.serverKeys).map(
(keysFromSingleNode: any) => keysFromSingleNode.latestBlockhash
)
);
this.ready = true;

log(
Expand All @@ -384,6 +390,7 @@ export class LitCore {
networkPubKeySet: this.networkPubKeySet,
hdRootPubkeys: this.hdRootPubkeys,
subnetPubkey: this.subnetPubKey,
latesBlockhash: this.latestBlockhash,
});

// @ts-ignore
Expand Down
2 changes: 1 addition & 1 deletion packages/crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"tags": [
"universal"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/ecdsa-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"tags": [
"universal"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/encryption/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"crypto": false,
"stream": false
},
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/lit-auth-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/lit-auth-client",
"version": "3.0.25",
"version": "3.0.26",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down
2 changes: 1 addition & 1 deletion packages/lit-node-client-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"tags": [
"nodejs"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/lit-node-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"crypto": false,
"stream": false
},
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/lit-third-party-libs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"universal"
],
"gitHead": "0d7334c2c55f448e91fe32f29edc5db8f5e09e4b",
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/logger",
"version": "3.0.25",
"version": "3.0.26",
"type": "commonjs",
"tags": [
"universal"
Expand Down
2 changes: 1 addition & 1 deletion packages/misc-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"tags": [
"browser"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/misc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"tags": [
"universal"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/nacl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"access": "public",
"directory": "../../dist/packages/nacl"
},
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/pkp-base/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-base",
"version": "3.0.25",
"version": "3.0.26",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down
2 changes: 1 addition & 1 deletion packages/pkp-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-client",
"version": "3.0.25",
"version": "3.0.26",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down
2 changes: 1 addition & 1 deletion packages/pkp-cosmos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-cosmos",
"version": "3.0.25",
"version": "3.0.26",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down
2 changes: 1 addition & 1 deletion packages/pkp-ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"tags": [
"universal"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/pkp-sui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-sui",
"version": "3.0.25",
"version": "3.0.26",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down
2 changes: 1 addition & 1 deletion packages/pkp-walletconnect/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lit-protocol/pkp-walletconnect",
"version": "3.0.25",
"version": "3.0.26",
"type": "commonjs",
"license": "MIT",
"homepage": "https://github.com/Lit-Protocol/js-sdk",
Expand Down
2 changes: 1 addition & 1 deletion packages/sev-snp-utils-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"buildOptions": {
"genReact": false
},
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"buildOptions": {
"genReact": false
},
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
2 changes: 1 addition & 1 deletion packages/uint8arrays/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"tags": [
"universal"
],
"version": "3.0.25",
"version": "3.0.26",
"main": "./dist/src/index.js",
"typings": "./dist/src/index.d.ts"
}
4 changes: 1 addition & 3 deletions pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.


## Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
Expand All @@ -17,7 +16,6 @@ Please describe the tests that you ran to verify your changes. Provide instructi
- [ ] Test A
- [ ] Test B


# Checklist:

- [ ] My code follows the style guidelines of this project
Expand All @@ -27,4 +25,4 @@ Please describe the tests that you ran to verify your changes. Provide instructi
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
- [ ] Any dependent changes have been merged and published in downstream modules

0 comments on commit 3a44f68

Please sign in to comment.