Skip to content

Commit 3a44f68

Browse files
author
Bean
authored
Publish 3.0.26 (#287)
1 parent 4b12228 commit 3a44f68

File tree

36 files changed

+77
-62
lines changed

36 files changed

+77
-62
lines changed

README.md

Lines changed: 26 additions & 26 deletions
Large diffs are not rendered by default.

apps/html/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Mon, 18 Dec 2023 15:47:25 GMT -->
1+
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Mon, 18 Dec 2023 23:49:45 GMT -->
22
<!DOCTYPE html>
33
<html lang="en">
44
<head>
@@ -62,7 +62,7 @@
6262
</style>
6363
</head>
6464
<body>
65-
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Mon, 18 Dec 2023 15:47:25 GMT
65+
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Mon, 18 Dec 2023 23:49:45 GMT
6666

6767
<!-- ==================== ALL EXPORTED VANILLA LIBRARIES ==================== -->
6868
<script src="dist/packages/access-control-conditions-vanilla/access-control-conditions.js"></script>

apps/react/src/app/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1879,7 +1879,7 @@ pre {
18791879
`,
18801880
}}
18811881
/>
1882-
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Mon, 18 Dec 2023 15:47:25 GMT
1882+
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Mon, 18 Dec 2023 23:49:46 GMT
18831883
<div id="root"></div>
18841884
<pre><code id="result"></code></pre>
18851885
</>

e2e-nodejs/loader.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { LitContracts } from '@lit-protocol/contracts-sdk';
33
import { uint8arrayFromString } from '@lit-protocol/uint8arrays';
44
import { BigNumber, ethers } from 'ethers';
55
import * as siwe from 'siwe';
6+
import * as LitJsSdk from '@lit-protocol/lit-node-client';
67

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

1920
// Craft the SIWE message
21+
22+
const litNodeClient = new LitJsSdk.LitNodeClient({
23+
litNetwork: network,
24+
});
25+
await litNodeClient.connect();
26+
let nonce = litNodeClient.getLatestBlockhash();
27+
console.log('GENERATED NONCE: ', nonce);
2028
const domain = 'localhost';
2129
const origin = 'https://localhost/login';
2230
const statement =
@@ -28,6 +36,7 @@ const siweMessage = new siwe.SiweMessage({
2836
uri: origin,
2937
version: '1',
3038
chainId: 1,
39+
nonce,
3140
expirationTime: new Date(Date.now() + 1000 * 60 * 7).toISOString(),
3241
});
3342
const messageToSign = siweMessage.prepareMessage();
@@ -51,6 +60,7 @@ globalThis.LitCI.CONTROLLER_AUTHSIG = authSig;
5160

5261
globalThis.LitCI.PKP_INFO = {};
5362
globalThis.LitCI.PKP_INFO.publicKey = LITCONFIG.PKP_PUBKEY;
63+
5464
if (mintNew) {
5565
let contractClient = new LitContracts({
5666
signer: wallet,

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"useNx": true,
44
"useWorkspaces": true,
5-
"version": "3.0.25"
5+
"version": "3.0.26"
66
}

packages/access-control-conditions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tags": [
2222
"universal"
2323
],
24-
"version": "3.0.25",
24+
"version": "3.0.26",
2525
"main": "./dist/src/index.js",
2626
"typings": "./dist/src/index.d.ts"
2727
}

packages/auth-browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"tags": [
3131
"browser"
3232
],
33-
"version": "3.0.25",
33+
"version": "3.0.26",
3434
"main": "./dist/src/index.js",
3535
"typings": "./dist/src/index.d.ts"
3636
}

packages/auth-helpers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"crypto": false,
2929
"stream": false
3030
},
31-
"version": "3.0.25",
31+
"version": "3.0.26",
3232
"main": "./dist/src/index.js",
3333
"typings": "./dist/src/index.d.ts"
3434
}

packages/bls-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"buildOptions": {
2828
"genReact": false
2929
},
30-
"version": "3.0.25",
30+
"version": "3.0.26",
3131
"main": "./dist/src/index.js",
3232
"typings": "./dist/src/index.d.ts"
3333
}

packages/constants/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tags": [
2121
"universal"
2222
],
23-
"version": "3.0.25",
23+
"version": "3.0.26",
2424
"main": "./dist/src/index.js",
2525
"typings": "./dist/src/index.d.ts"
2626
}

packages/constants/src/lib/constants/autogen_internal.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Last Modified: 2023-12-18 15:45:54
1+
// Last Modified: 2023-12-18 23:48:16
22
// This file is auto-generated by tools/scripts/gen-internal-dev.mjs
33
export const INTERNAL_DEV = [];
44

packages/constants/src/lib/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '3.0.25';
1+
export const version = '3.0.26';

packages/contracts-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"tags": [
2828
"universal"
2929
],
30-
"version": "3.0.25",
30+
"version": "3.0.26",
3131
"main": "./dist/src/index.js",
3232
"typings": "./dist/src/index.d.ts"
3333
}

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/core",
3-
"version": "3.0.25",
3+
"version": "3.0.26",
44
"type": "commonjs",
55
"license": "MIT",
66
"homepage": "https://github.com/Lit-Protocol/js-sdk",

packages/core/src/lib/lit-core.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ export class LitCore {
275275
networkPubKey: resp.networkPublicKey,
276276
networkPubKeySet: resp.networkPublicKeySet,
277277
hdRootPubkeys: resp.hdRootPubkeys,
278+
latestBlockhash: resp.latestBlockhash,
278279
};
279280

280281
// -- validate returned keys
@@ -374,6 +375,11 @@ export class LitCore {
374375
(keysFromSingleNode: any) => keysFromSingleNode.hdRootPubkeys
375376
)
376377
);
378+
this.latestBlockhash = mostCommonString(
379+
Object.values(this.serverKeys).map(
380+
(keysFromSingleNode: any) => keysFromSingleNode.latestBlockhash
381+
)
382+
);
377383
this.ready = true;
378384

379385
log(
@@ -384,6 +390,7 @@ export class LitCore {
384390
networkPubKeySet: this.networkPubKeySet,
385391
hdRootPubkeys: this.hdRootPubkeys,
386392
subnetPubkey: this.subnetPubKey,
393+
latesBlockhash: this.latestBlockhash,
387394
});
388395

389396
// @ts-ignore

packages/crypto/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tags": [
2222
"universal"
2323
],
24-
"version": "3.0.25",
24+
"version": "3.0.26",
2525
"main": "./dist/src/index.js",
2626
"typings": "./dist/src/index.d.ts"
2727
}

packages/ecdsa-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"tags": [
2525
"universal"
2626
],
27-
"version": "3.0.25",
27+
"version": "3.0.26",
2828
"main": "./dist/src/index.js",
2929
"typings": "./dist/src/index.d.ts"
3030
}

packages/encryption/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"crypto": false,
2626
"stream": false
2727
},
28-
"version": "3.0.25",
28+
"version": "3.0.26",
2929
"main": "./dist/src/index.js",
3030
"typings": "./dist/src/index.d.ts"
3131
}

packages/lit-auth-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/lit-auth-client",
3-
"version": "3.0.25",
3+
"version": "3.0.26",
44
"type": "commonjs",
55
"license": "MIT",
66
"homepage": "https://github.com/Lit-Protocol/js-sdk",

packages/lit-node-client-nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"tags": [
2525
"nodejs"
2626
],
27-
"version": "3.0.25",
27+
"version": "3.0.26",
2828
"main": "./dist/src/index.js",
2929
"typings": "./dist/src/index.d.ts"
3030
}

packages/lit-node-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"crypto": false,
2626
"stream": false
2727
},
28-
"version": "3.0.25",
28+
"version": "3.0.26",
2929
"main": "./dist/src/index.js",
3030
"typings": "./dist/src/index.d.ts"
3131
}

packages/lit-third-party-libs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"universal"
2222
],
2323
"gitHead": "0d7334c2c55f448e91fe32f29edc5db8f5e09e4b",
24-
"version": "3.0.25",
24+
"version": "3.0.26",
2525
"main": "./dist/src/index.js",
2626
"typings": "./dist/src/index.d.ts"
2727
}

packages/logger/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/logger",
3-
"version": "3.0.25",
3+
"version": "3.0.26",
44
"type": "commonjs",
55
"tags": [
66
"universal"

packages/misc-browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tags": [
2222
"browser"
2323
],
24-
"version": "3.0.25",
24+
"version": "3.0.26",
2525
"main": "./dist/src/index.js",
2626
"typings": "./dist/src/index.d.ts"
2727
}

packages/misc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"tags": [
2525
"universal"
2626
],
27-
"version": "3.0.25",
27+
"version": "3.0.26",
2828
"main": "./dist/src/index.js",
2929
"typings": "./dist/src/index.d.ts"
3030
}

packages/nacl/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"access": "public",
2222
"directory": "../../dist/packages/nacl"
2323
},
24-
"version": "3.0.25",
24+
"version": "3.0.26",
2525
"main": "./dist/src/index.js",
2626
"typings": "./dist/src/index.d.ts"
2727
}

packages/pkp-base/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/pkp-base",
3-
"version": "3.0.25",
3+
"version": "3.0.26",
44
"type": "commonjs",
55
"license": "MIT",
66
"homepage": "https://github.com/Lit-Protocol/js-sdk",

packages/pkp-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/pkp-client",
3-
"version": "3.0.25",
3+
"version": "3.0.26",
44
"type": "commonjs",
55
"license": "MIT",
66
"homepage": "https://github.com/Lit-Protocol/js-sdk",

packages/pkp-cosmos/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/pkp-cosmos",
3-
"version": "3.0.25",
3+
"version": "3.0.26",
44
"type": "commonjs",
55
"license": "MIT",
66
"homepage": "https://github.com/Lit-Protocol/js-sdk",

packages/pkp-ethers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"tags": [
2121
"universal"
2222
],
23-
"version": "3.0.25",
23+
"version": "3.0.26",
2424
"main": "./dist/src/index.js",
2525
"typings": "./dist/src/index.d.ts"
2626
}

packages/pkp-sui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/pkp-sui",
3-
"version": "3.0.25",
3+
"version": "3.0.26",
44
"type": "commonjs",
55
"license": "MIT",
66
"homepage": "https://github.com/Lit-Protocol/js-sdk",

packages/pkp-walletconnect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lit-protocol/pkp-walletconnect",
3-
"version": "3.0.25",
3+
"version": "3.0.26",
44
"type": "commonjs",
55
"license": "MIT",
66
"homepage": "https://github.com/Lit-Protocol/js-sdk",

packages/sev-snp-utils-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"buildOptions": {
2828
"genReact": false
2929
},
30-
"version": "3.0.25",
30+
"version": "3.0.26",
3131
"main": "./dist/src/index.js",
3232
"typings": "./dist/src/index.d.ts"
3333
}

packages/types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"buildOptions": {
2424
"genReact": false
2525
},
26-
"version": "3.0.25",
26+
"version": "3.0.26",
2727
"main": "./dist/src/index.js",
2828
"typings": "./dist/src/index.d.ts"
2929
}

packages/uint8arrays/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"tags": [
2222
"universal"
2323
],
24-
"version": "3.0.25",
24+
"version": "3.0.26",
2525
"main": "./dist/src/index.js",
2626
"typings": "./dist/src/index.d.ts"
2727
}

pull_request_template.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
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.
44

5-
65
## Type of change
76

87
- [ ] 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
1716
- [ ] Test A
1817
- [ ] Test B
1918

20-
2119
# Checklist:
2220

2321
- [ ] 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
2725
- [ ] My changes generate no new warnings
2826
- [ ] I have added tests that prove my fix is effective or that my feature works
2927
- [ ] New and existing unit tests pass locally with my changes
30-
- [ ] Any dependent changes have been merged and published in downstream modules
28+
- [ ] Any dependent changes have been merged and published in downstream modules

0 commit comments

Comments
 (0)