Skip to content

Commit

Permalink
Merge branch 'remove/internalDev' of github.com:LIT-Protocol/js-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh Long committed Dec 16, 2023
2 parents a2318d2 + 0eeda68 commit 683c0d1
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 36 deletions.
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 Tue, 28 Nov 2023 18:28:43 GMT -->
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Sat, 16 Dec 2023 14:15:19 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 Tue, 28 Nov 2023 18:28:43 GMT
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Sat, 16 Dec 2023 14:15:19 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 Tue, 28 Nov 2023 18:28:44 GMT
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Sat, 16 Dec 2023 14:15:19 GMT
<div id="root"></div>
<pre><code id="result"></code></pre>
</>
Expand Down
2 changes: 1 addition & 1 deletion e2e-nodejs/loader.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as siwe from 'siwe';
// ==================== ENV Loading ====================
const network = process.env.NETWORK ?? LITCONFIG.TEST_ENV.litNetwork;
const debug = process.env.DEBUG === 'true' ?? LITCONFIG.TEST_ENV.debug;
const checkSevAttestation = process.env.CHECK_SEV ?? false;
const checkSevAttestation = process.env.CHECK_SEV === true ? true : false;
const mintNew = process.env.MINT_NEW ?? true;

// ==================== SIWE Gen ====================
Expand Down
28 changes: 3 additions & 25 deletions packages/constants/src/lib/constants/autogen_internal.ts
Original file line number Diff line number Diff line change
@@ -1,36 +1,14 @@
// Last Modified: 2023-11-28 23:19:03
// Last Modified: 2023-12-16 14:13:50
// This file is auto-generated by tools/scripts/gen-internal-dev.mjs
export const INTERNAL_DEV = [
'https://199.115.117.113:443',
'https://199.115.117.114:443',
'https://167.114.17.202:443',
'https://64.131.85.106:443',
'https://64.131.85.108:443',
'https://167.114.17.203:443',
'https://108.62.0.105:443',
'https://167.114.17.204:443',
'https://167.114.17.201:443',
'https://167.114.17.205:443',
];
export const INTERNAL_DEV = [];

export const INTERNAL_MIN_NODE_COUNT = 2;

export const INTERNAL_DEFAULT_CONFIG = {
alertWhenUnauthorized: false,
minNodeCount: 2,
debug: true,
bootstrapUrls: [
'https://199.115.117.113:443',
'https://199.115.117.114:443',
'https://167.114.17.202:443',
'https://64.131.85.106:443',
'https://64.131.85.108:443',
'https://167.114.17.203:443',
'https://108.62.0.105:443',
'https://167.114.17.204:443',
'https://167.114.17.201:443',
'https://167.114.17.205:443',
],
bootstrapUrls: [],
litNetwork: 'internalDev',
connectTimeout: 20000,
};
1 change: 0 additions & 1 deletion packages/constants/src/lib/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export enum AuthMethodScope {

export enum LitNetwork {
Cayenne = 'cayenne',
InternalDev = 'internalDev',
Custom = 'custom',
}

Expand Down
10 changes: 8 additions & 2 deletions packages/core/src/lib/lit-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ export class LitCore {
* @returns {Promise<void>} A promise that resolves when the configuration is updated.
*/
setNewConfig = async (): Promise<void> => {
if (this.config.litNetwork !== LitNetwork.Cayenne && this.config.litNetwork !== LitNetwork.Custom) {
if (
this.config.litNetwork !== LitNetwork.Cayenne &&
this.config.litNetwork !== LitNetwork.Custom
) {
const minNodeCount = await LitContracts.getMinNodeCount(
this.config.litNetwork as LitNetwork
);
Expand Down Expand Up @@ -197,7 +200,10 @@ export class LitCore {
* @returns {Promise<void>} A promise that resolves when the listener is successfully set up.
*/
listenForNewEpoch = async (): Promise<void> => {
if (this.config.litNetwork !== LitNetwork.Cayenne && this.config.litNetwork !== LitNetwork.Custom) {
if (
this.config.litNetwork !== LitNetwork.Cayenne &&
this.config.litNetwork !== LitNetwork.Custom
) {
const stakingContract = await LitContracts.getStakingContract(
this.config.litNetwork as any
);
Expand Down
5 changes: 1 addition & 4 deletions packages/types/src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ export type LITChain<T> = {
[chainName: string]: T;
};

export type LIT_NETWORKS_KEYS =
| 'cayenne'
| 'localhost'
| 'custom';
export type LIT_NETWORKS_KEYS = 'cayenne' | 'localhost' | 'custom';

export type ConditionType = 'solRpc' | 'evmBasic' | 'evmContract' | 'cosmos';

Expand Down

0 comments on commit 683c0d1

Please sign in to comment.