From 3a44f68fcad583d36fb34d0215d059b5b8106396 Mon Sep 17 00:00:00 2001 From: Bean Date: Mon, 18 Dec 2023 18:53:44 -0500 Subject: [PATCH] Publish 3.0.26 (#287) --- README.md | 52 +++++++++---------- apps/html/index.html | 4 +- apps/react/src/app/app.tsx | 2 +- e2e-nodejs/loader.mjs | 10 ++++ lerna.json | 2 +- .../access-control-conditions/package.json | 2 +- packages/auth-browser/package.json | 2 +- packages/auth-helpers/package.json | 2 +- packages/bls-sdk/package.json | 2 +- packages/constants/package.json | 2 +- .../src/lib/constants/autogen_internal.ts | 2 +- packages/constants/src/lib/version.ts | 2 +- packages/contracts-sdk/package.json | 2 +- packages/core/package.json | 2 +- packages/core/src/lib/lit-core.ts | 7 +++ packages/crypto/package.json | 2 +- packages/ecdsa-sdk/package.json | 2 +- packages/encryption/package.json | 2 +- packages/lit-auth-client/package.json | 2 +- packages/lit-node-client-nodejs/package.json | 2 +- packages/lit-node-client/package.json | 2 +- packages/lit-third-party-libs/package.json | 2 +- packages/logger/package.json | 2 +- packages/misc-browser/package.json | 2 +- packages/misc/package.json | 2 +- packages/nacl/package.json | 2 +- packages/pkp-base/package.json | 2 +- packages/pkp-client/package.json | 2 +- packages/pkp-cosmos/package.json | 2 +- packages/pkp-ethers/package.json | 2 +- packages/pkp-sui/package.json | 2 +- packages/pkp-walletconnect/package.json | 2 +- packages/sev-snp-utils-sdk/package.json | 2 +- packages/types/package.json | 2 +- packages/uint8arrays/package.json | 2 +- pull_request_template.md | 4 +- 36 files changed, 77 insertions(+), 62 deletions(-) diff --git a/README.md b/README.md index add6fa3979..41e79fda33 100644 --- a/README.md +++ b/README.md @@ -69,8 +69,8 @@ For usage directly in the browser with a script tag Package | Category | Version | Download --- | --- | --- | --- -| [@lit-protocol/lit-node-client-nodejs](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-node-client-nodejs) | ![lit-node-client-nodejs](https://img.shields.io/badge/-nodejs-2E8B57 "lit-node-client-nodejs") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/lit-node-client](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-node-client) | ![lit-node-client](https://img.shields.io/badge/-universal-8A6496 "lit-node-client") | 3.0.25 | npm
Vanilla JS (UMD) +| [@lit-protocol/lit-node-client-nodejs](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-node-client-nodejs) | ![lit-node-client-nodejs](https://img.shields.io/badge/-nodejs-2E8B57 "lit-node-client-nodejs") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/lit-node-client](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-node-client) | ![lit-node-client](https://img.shields.io/badge/-universal-8A6496 "lit-node-client") | 3.0.26 | npm
Vanilla JS (UMD) If you're a tech-savvy user and wish to utilize only specific submodules that our main module relies upon, you can find individual packages listed below. This way, you can import only the necessary packages that cater to your specific use case:: @@ -78,30 +78,30 @@ If you're a tech-savvy user and wish to utilize only specific submodules that ou Package | Category | Version | Download --- | --- | --- | --- -| [@lit-protocol/access-control-conditions](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/access-control-conditions) | ![access-control-conditions](https://img.shields.io/badge/-universal-8A6496 "access-control-conditions") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/auth-helpers](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/auth-helpers) | ![auth-helpers](https://img.shields.io/badge/-universal-8A6496 "auth-helpers") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/bls-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/bls-sdk) | ![bls-sdk](https://img.shields.io/badge/-universal-8A6496 "bls-sdk") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/constants](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/constants) | ![constants](https://img.shields.io/badge/-universal-8A6496 "constants") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/contracts-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/contracts-sdk) | ![contracts-sdk](https://img.shields.io/badge/-universal-8A6496 "contracts-sdk") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/core](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/core) | ![core](https://img.shields.io/badge/-universal-8A6496 "core") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/crypto](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/crypto) | ![crypto](https://img.shields.io/badge/-universal-8A6496 "crypto") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/ecdsa-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/ecdsa-sdk) | ![ecdsa-sdk](https://img.shields.io/badge/-universal-8A6496 "ecdsa-sdk") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/encryption](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/encryption) | ![encryption](https://img.shields.io/badge/-universal-8A6496 "encryption") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/lit-third-party-libs](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-third-party-libs) | ![lit-third-party-libs](https://img.shields.io/badge/-universal-8A6496 "lit-third-party-libs") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/logger](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/logger) | ![logger](https://img.shields.io/badge/-universal-8A6496 "logger") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/misc](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/misc) | ![misc](https://img.shields.io/badge/-universal-8A6496 "misc") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/nacl](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/nacl) | ![nacl](https://img.shields.io/badge/-universal-8A6496 "nacl") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/pkp-base](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-base) | ![pkp-base](https://img.shields.io/badge/-universal-8A6496 "pkp-base") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/pkp-client](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-client) | ![pkp-client](https://img.shields.io/badge/-universal-8A6496 "pkp-client") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/pkp-cosmos](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-cosmos) | ![pkp-cosmos](https://img.shields.io/badge/-universal-8A6496 "pkp-cosmos") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/pkp-ethers](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-ethers) | ![pkp-ethers](https://img.shields.io/badge/-universal-8A6496 "pkp-ethers") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/pkp-sui](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-sui) | ![pkp-sui](https://img.shields.io/badge/-universal-8A6496 "pkp-sui") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/pkp-walletconnect](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-walletconnect) | ![pkp-walletconnect](https://img.shields.io/badge/-universal-8A6496 "pkp-walletconnect") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/sev-snp-utils-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/sev-snp-utils-sdk) | ![sev-snp-utils-sdk](https://img.shields.io/badge/-universal-8A6496 "sev-snp-utils-sdk") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/types](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/types) | ![types](https://img.shields.io/badge/-universal-8A6496 "types") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/uint8arrays](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/uint8arrays) | ![uint8arrays](https://img.shields.io/badge/-universal-8A6496 "uint8arrays") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/auth-browser](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/auth-browser) | ![auth-browser](https://img.shields.io/badge/-browser-E98869 "auth-browser") | 3.0.25 | npm
Vanilla JS (UMD) -| [@lit-protocol/misc-browser](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/misc-browser) | ![misc-browser](https://img.shields.io/badge/-browser-E98869 "misc-browser") | 3.0.25 | npm
Vanilla JS (UMD) +| [@lit-protocol/access-control-conditions](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/access-control-conditions) | ![access-control-conditions](https://img.shields.io/badge/-universal-8A6496 "access-control-conditions") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/auth-helpers](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/auth-helpers) | ![auth-helpers](https://img.shields.io/badge/-universal-8A6496 "auth-helpers") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/bls-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/bls-sdk) | ![bls-sdk](https://img.shields.io/badge/-universal-8A6496 "bls-sdk") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/constants](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/constants) | ![constants](https://img.shields.io/badge/-universal-8A6496 "constants") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/contracts-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/contracts-sdk) | ![contracts-sdk](https://img.shields.io/badge/-universal-8A6496 "contracts-sdk") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/core](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/core) | ![core](https://img.shields.io/badge/-universal-8A6496 "core") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/crypto](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/crypto) | ![crypto](https://img.shields.io/badge/-universal-8A6496 "crypto") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/ecdsa-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/ecdsa-sdk) | ![ecdsa-sdk](https://img.shields.io/badge/-universal-8A6496 "ecdsa-sdk") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/encryption](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/encryption) | ![encryption](https://img.shields.io/badge/-universal-8A6496 "encryption") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/lit-third-party-libs](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-third-party-libs) | ![lit-third-party-libs](https://img.shields.io/badge/-universal-8A6496 "lit-third-party-libs") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/logger](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/logger) | ![logger](https://img.shields.io/badge/-universal-8A6496 "logger") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/misc](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/misc) | ![misc](https://img.shields.io/badge/-universal-8A6496 "misc") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/nacl](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/nacl) | ![nacl](https://img.shields.io/badge/-universal-8A6496 "nacl") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/pkp-base](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-base) | ![pkp-base](https://img.shields.io/badge/-universal-8A6496 "pkp-base") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/pkp-client](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-client) | ![pkp-client](https://img.shields.io/badge/-universal-8A6496 "pkp-client") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/pkp-cosmos](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-cosmos) | ![pkp-cosmos](https://img.shields.io/badge/-universal-8A6496 "pkp-cosmos") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/pkp-ethers](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-ethers) | ![pkp-ethers](https://img.shields.io/badge/-universal-8A6496 "pkp-ethers") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/pkp-sui](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-sui) | ![pkp-sui](https://img.shields.io/badge/-universal-8A6496 "pkp-sui") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/pkp-walletconnect](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-walletconnect) | ![pkp-walletconnect](https://img.shields.io/badge/-universal-8A6496 "pkp-walletconnect") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/sev-snp-utils-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/sev-snp-utils-sdk) | ![sev-snp-utils-sdk](https://img.shields.io/badge/-universal-8A6496 "sev-snp-utils-sdk") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/types](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/types) | ![types](https://img.shields.io/badge/-universal-8A6496 "types") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/uint8arrays](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/uint8arrays) | ![uint8arrays](https://img.shields.io/badge/-universal-8A6496 "uint8arrays") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/auth-browser](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/auth-browser) | ![auth-browser](https://img.shields.io/badge/-browser-E98869 "auth-browser") | 3.0.26 | npm
Vanilla JS (UMD) +| [@lit-protocol/misc-browser](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/misc-browser) | ![misc-browser](https://img.shields.io/badge/-browser-E98869 "misc-browser") | 3.0.26 | npm
Vanilla JS (UMD) diff --git a/apps/html/index.html b/apps/html/index.html index 01c76a436f..dbae572c91 100644 --- a/apps/html/index.html +++ b/apps/html/index.html @@ -1,4 +1,4 @@ - + @@ -62,7 +62,7 @@ - (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 diff --git a/apps/react/src/app/app.tsx b/apps/react/src/app/app.tsx index 2abfb57a80..c5c7a091a2 100644 --- a/apps/react/src/app/app.tsx +++ b/apps/react/src/app/app.tsx @@ -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
diff --git a/e2e-nodejs/loader.mjs b/e2e-nodejs/loader.mjs index fac2791f68..19aa0e13d5 100644 --- a/e2e-nodejs/loader.mjs +++ b/e2e-nodejs/loader.mjs @@ -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; @@ -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 = @@ -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(); @@ -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, diff --git a/lerna.json b/lerna.json index e0da3b9086..b6adc1a44b 100644 --- a/lerna.json +++ b/lerna.json @@ -2,5 +2,5 @@ "$schema": "node_modules/lerna/schemas/lerna-schema.json", "useNx": true, "useWorkspaces": true, - "version": "3.0.25" + "version": "3.0.26" } \ No newline at end of file diff --git a/packages/access-control-conditions/package.json b/packages/access-control-conditions/package.json index 8c9e9c5477..ed4c99f166 100644 --- a/packages/access-control-conditions/package.json +++ b/packages/access-control-conditions/package.json @@ -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" } \ No newline at end of file diff --git a/packages/auth-browser/package.json b/packages/auth-browser/package.json index bac4e6bdc5..4c1c67b4a8 100644 --- a/packages/auth-browser/package.json +++ b/packages/auth-browser/package.json @@ -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" } \ No newline at end of file diff --git a/packages/auth-helpers/package.json b/packages/auth-helpers/package.json index dcf36013cf..c21378065f 100644 --- a/packages/auth-helpers/package.json +++ b/packages/auth-helpers/package.json @@ -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" } \ No newline at end of file diff --git a/packages/bls-sdk/package.json b/packages/bls-sdk/package.json index 32488fa5e2..e72ba42f49 100644 --- a/packages/bls-sdk/package.json +++ b/packages/bls-sdk/package.json @@ -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" } \ No newline at end of file diff --git a/packages/constants/package.json b/packages/constants/package.json index 260ce428e5..11f5e125bb 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -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" } \ No newline at end of file diff --git a/packages/constants/src/lib/constants/autogen_internal.ts b/packages/constants/src/lib/constants/autogen_internal.ts index 6cf2ef4c48..323f8fe154 100644 --- a/packages/constants/src/lib/constants/autogen_internal.ts +++ b/packages/constants/src/lib/constants/autogen_internal.ts @@ -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 = []; diff --git a/packages/constants/src/lib/version.ts b/packages/constants/src/lib/version.ts index eb78b84c1d..234dddd5d7 100644 --- a/packages/constants/src/lib/version.ts +++ b/packages/constants/src/lib/version.ts @@ -1 +1 @@ -export const version = '3.0.25'; \ No newline at end of file +export const version = '3.0.26'; \ No newline at end of file diff --git a/packages/contracts-sdk/package.json b/packages/contracts-sdk/package.json index 18a7449025..6e01c14739 100644 --- a/packages/contracts-sdk/package.json +++ b/packages/contracts-sdk/package.json @@ -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" } \ No newline at end of file diff --git a/packages/core/package.json b/packages/core/package.json index c8da8b5937..4c60ae703a 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -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", diff --git a/packages/core/src/lib/lit-core.ts b/packages/core/src/lib/lit-core.ts index 3c9633cf3f..0f889ab14e 100644 --- a/packages/core/src/lib/lit-core.ts +++ b/packages/core/src/lib/lit-core.ts @@ -275,6 +275,7 @@ export class LitCore { networkPubKey: resp.networkPublicKey, networkPubKeySet: resp.networkPublicKeySet, hdRootPubkeys: resp.hdRootPubkeys, + latestBlockhash: resp.latestBlockhash, }; // -- validate returned keys @@ -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( @@ -384,6 +390,7 @@ export class LitCore { networkPubKeySet: this.networkPubKeySet, hdRootPubkeys: this.hdRootPubkeys, subnetPubkey: this.subnetPubKey, + latesBlockhash: this.latestBlockhash, }); // @ts-ignore diff --git a/packages/crypto/package.json b/packages/crypto/package.json index 9ff7db4085..f5fc09c697 100644 --- a/packages/crypto/package.json +++ b/packages/crypto/package.json @@ -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" } \ No newline at end of file diff --git a/packages/ecdsa-sdk/package.json b/packages/ecdsa-sdk/package.json index 5187d7bc49..1d93f98dc7 100644 --- a/packages/ecdsa-sdk/package.json +++ b/packages/ecdsa-sdk/package.json @@ -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" } \ No newline at end of file diff --git a/packages/encryption/package.json b/packages/encryption/package.json index 6101670caa..464fce531a 100644 --- a/packages/encryption/package.json +++ b/packages/encryption/package.json @@ -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" } \ No newline at end of file diff --git a/packages/lit-auth-client/package.json b/packages/lit-auth-client/package.json index 795ce7a5d7..2c1960e6ca 100644 --- a/packages/lit-auth-client/package.json +++ b/packages/lit-auth-client/package.json @@ -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", diff --git a/packages/lit-node-client-nodejs/package.json b/packages/lit-node-client-nodejs/package.json index 53b79cf0cb..dbbc90b101 100644 --- a/packages/lit-node-client-nodejs/package.json +++ b/packages/lit-node-client-nodejs/package.json @@ -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" } \ No newline at end of file diff --git a/packages/lit-node-client/package.json b/packages/lit-node-client/package.json index 5bcfb71f10..fe0279629f 100644 --- a/packages/lit-node-client/package.json +++ b/packages/lit-node-client/package.json @@ -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" } \ No newline at end of file diff --git a/packages/lit-third-party-libs/package.json b/packages/lit-third-party-libs/package.json index 49100a2122..9f357ee164 100644 --- a/packages/lit-third-party-libs/package.json +++ b/packages/lit-third-party-libs/package.json @@ -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" } \ No newline at end of file diff --git a/packages/logger/package.json b/packages/logger/package.json index 4698ec7586..e0a23d2c6c 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -1,6 +1,6 @@ { "name": "@lit-protocol/logger", - "version": "3.0.25", + "version": "3.0.26", "type": "commonjs", "tags": [ "universal" diff --git a/packages/misc-browser/package.json b/packages/misc-browser/package.json index bb8f9c92cc..9e2df5af06 100644 --- a/packages/misc-browser/package.json +++ b/packages/misc-browser/package.json @@ -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" } \ No newline at end of file diff --git a/packages/misc/package.json b/packages/misc/package.json index 62c689f3b4..8dd0291f87 100644 --- a/packages/misc/package.json +++ b/packages/misc/package.json @@ -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" } \ No newline at end of file diff --git a/packages/nacl/package.json b/packages/nacl/package.json index 623bdea580..d418094afa 100644 --- a/packages/nacl/package.json +++ b/packages/nacl/package.json @@ -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" } \ No newline at end of file diff --git a/packages/pkp-base/package.json b/packages/pkp-base/package.json index 77dcf0c913..c6461adcaa 100644 --- a/packages/pkp-base/package.json +++ b/packages/pkp-base/package.json @@ -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", diff --git a/packages/pkp-client/package.json b/packages/pkp-client/package.json index 02fa489b74..fe1de4d0c0 100644 --- a/packages/pkp-client/package.json +++ b/packages/pkp-client/package.json @@ -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", diff --git a/packages/pkp-cosmos/package.json b/packages/pkp-cosmos/package.json index 895d7b40a8..947370b8e6 100644 --- a/packages/pkp-cosmos/package.json +++ b/packages/pkp-cosmos/package.json @@ -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", diff --git a/packages/pkp-ethers/package.json b/packages/pkp-ethers/package.json index c114b1969e..c6ecf41b2c 100644 --- a/packages/pkp-ethers/package.json +++ b/packages/pkp-ethers/package.json @@ -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" } \ No newline at end of file diff --git a/packages/pkp-sui/package.json b/packages/pkp-sui/package.json index 4820f3df72..7e5ece2459 100644 --- a/packages/pkp-sui/package.json +++ b/packages/pkp-sui/package.json @@ -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", diff --git a/packages/pkp-walletconnect/package.json b/packages/pkp-walletconnect/package.json index 8eb5584e58..437c585e27 100644 --- a/packages/pkp-walletconnect/package.json +++ b/packages/pkp-walletconnect/package.json @@ -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", diff --git a/packages/sev-snp-utils-sdk/package.json b/packages/sev-snp-utils-sdk/package.json index eac8d5045f..e264e5884f 100644 --- a/packages/sev-snp-utils-sdk/package.json +++ b/packages/sev-snp-utils-sdk/package.json @@ -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" } \ No newline at end of file diff --git a/packages/types/package.json b/packages/types/package.json index c531104f7a..bf9e97c19d 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -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" } \ No newline at end of file diff --git a/packages/uint8arrays/package.json b/packages/uint8arrays/package.json index c303e83350..0b9df188b8 100644 --- a/packages/uint8arrays/package.json +++ b/packages/uint8arrays/package.json @@ -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" } \ No newline at end of file diff --git a/pull_request_template.md b/pull_request_template.md index 2f3b5c11a4..cdd5196af9 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -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) @@ -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 @@ -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 \ No newline at end of file +- [ ] Any dependent changes have been merged and published in downstream modules