Skip to content

Commit d667c88

Browse files
authored
Merge branch 'staging/v7' into feature/lit-3748-naga
2 parents d4dfd95 + 8013aff commit d667c88

File tree

49 files changed

+94
-388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+94
-388
lines changed

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": "6.8.0"
5+
"version": "6.8.1"
66
}

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@
4040
"@cosmjs/proto-signing": "0.30.1",
4141
"@cosmjs/stargate": "0.30.1",
4242
"@dotenvx/dotenvx": "^1.6.4",
43-
"@ethersproject/abi": "^5.7.0",
44-
"@ethersproject/providers": "^5.7.2",
45-
"@lit-protocol/accs-schemas": "^0.0.12",
43+
"@lit-protocol/accs-schemas": "^0.0.13",
4644
"@lit-protocol/contracts": "^0.0.63",
4745
"@metamask/eth-sig-util": "5.0.2",
4846
"@mysten/sui.js": "^0.37.1",

packages/access-control-conditions/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ This submodule provides functionalities for formatting and canonicalizing data,
77
```
88
yarn add @lit-protocol/access-control-conditions
99
```
10-
11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/access-control-conditions-vanilla/access-control-conditions.js"></script>
15-
<script>
16-
console.log(LitJsSdk_accessControlConditions);
17-
</script>
18-
```

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": "6.8.0",
24+
"version": "6.8.1",
2525
"main": "./dist/src/index.js",
2626
"typings": "./dist/src/index.d.ts"
2727
}

packages/auth-browser/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,6 @@ This submodule provides functionalities from various modules within the Lit SDK,
88
yarn add @lit-protocol/auth-browser
99
```
1010

11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/auth-browser-vanilla/auth-browser.js"></script>
15-
<script>
16-
console.log(LitJsSdk_authBrowser);
17-
</script>
18-
```
19-
2011
## Generate an authSig with long expiration
2112

2213
```

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": "6.8.0",
33+
"version": "6.8.1",
3434
"main": "./dist/src/index.js",
3535
"typings": "./dist/src/index.d.ts"
3636
}

packages/auth-browser/src/lib/chains/eth.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ import { toUtf8Bytes } from '@ethersproject/strings';
77

88
// import WalletConnectProvider from '@walletconnect/ethereum-provider';
99
import { verifyMessage } from '@ethersproject/wallet';
10-
import { EthereumProvider } from '@walletconnect/ethereum-provider';
10+
import {
11+
EthereumProvider,
12+
default as WalletConnectProvider,
13+
} from '@walletconnect/ethereum-provider';
1114
import { ethers } from 'ethers';
1215
import { getAddress } from 'ethers/lib/utils';
1316
import { SiweMessage } from 'siwe';
@@ -128,6 +131,8 @@ export type WALLET_ERROR_VALUES =
128131

129132
/** ---------- Local Helpers ---------- */
130133

134+
let litWCProvider: WalletConnectProvider | undefined;
135+
131136
/**
132137
*
133138
* Convert chain hex id to chain name
@@ -386,8 +391,7 @@ export const connectWeb3 = async ({
386391
};
387392

388393
if (isBrowser()) {
389-
// @ts-ignore
390-
globalThis.litWCProvider = wcProvider;
394+
litWCProvider = wcProvider;
391395
}
392396
}
393397

@@ -440,10 +444,9 @@ export const disconnectWeb3 = (): void => {
440444
}
441445

442446
// @ts-ignore
443-
if (isBrowser() && globalThis.litWCProvider) {
447+
if (isBrowser() && litWCProvider) {
444448
try {
445-
// @ts-ignore
446-
globalThis.litWCProvider.disconnect();
449+
litWCProvider.disconnect();
447450
} catch (err) {
448451
log(
449452
'Attempted to disconnect global WalletConnectProvider for lit-connect-modal',

packages/auth-helpers/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ This submodule manages permissions and capabilities related to accessing specifi
77
```
88
yarn add @lit-protocol/auth-helpers
99
```
10-
11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/auth-helpers-vanilla/auth-helpers.js"></script>
15-
<script>
16-
console.log(LitJsSdk_authHelpers);
17-
</script>
18-
```

packages/auth-helpers/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": "6.8.0",
28+
"version": "6.8.1",
2929
"main": "./dist/src/index.js",
3030
"typings": "./dist/src/index.d.ts"
3131
}

packages/constants/README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,3 @@ This submodule exports various modules, constants, interfaces, errors, utilities
77
```
88
yarn add @lit-protocol/constants
99
```
10-
11-
### Vanilla JS (UMD)
12-
13-
```js
14-
<script src="https://cdn.jsdelivr.net/npm/@lit-protocol/constants-vanilla/constants.js"></script>
15-
<script>
16-
console.log(LitJsSdk_constants);
17-
</script>
18-
```

0 commit comments

Comments
 (0)