Skip to content

Commit

Permalink
make cayenne use 3 nodes by default (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
glitch003 authored Sep 16, 2023
1 parent 924431c commit f1de98f
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 55 deletions.
58 changes: 30 additions & 28 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 Thu, 14 Sep 2023 05:53:44 GMT -->
<!-- (DO NOT EDIT!) (HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Fri, 15 Sep 2023 22:51:26 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 Thu, 14 Sep 2023 05:53:44 GMT
(HTML) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-html.mjs Fri, 15 Sep 2023 22:51:26 GMT

<!-- ==================== ALL EXPORTED VANILLA LIBRARIES ==================== -->
<script src="dist/packages/access-control-conditions-vanilla/access-control-conditions.js"></script>
Expand Down
1 change: 0 additions & 1 deletion apps/html/manual_tests_claim_pkp.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
window.LitJsSdk = LitJsSdk_litNodeClient;

const litNodeClient = new LitNodeClient({
litNetwork: 'cayenne',
debug: true
});
litNodeClient.connect();
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 @@ -1802,7 +1802,7 @@ pre {
`,
}}
/>
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Thu, 14 Sep 2023 05:53:45 GMT
(REACT) THIS FILE IS AUTOMATICALLY GENERATED FROM tools/scripts/gen-react.mjs Fri, 15 Sep 2023 22:51:27 GMT
<div id="root"></div>
<pre><code id="result"></code></pre>
</>
Expand Down
7 changes: 0 additions & 7 deletions packages/constants/src/lib/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,13 +637,6 @@ export const LIT_NETWORKS = {
'https://cayenne.litgateway.com:7370',
'https://cayenne.litgateway.com:7371',
'https://cayenne.litgateway.com:7372',
'https://cayenne.litgateway.com:7373',
'https://cayenne.litgateway.com:7374',
'https://cayenne.litgateway.com:7375',
'https://cayenne.litgateway.com:7376',
'https://cayenne.litgateway.com:7377',
'https://cayenne.litgateway.com:7378',
'https://cayenne.litgateway.com:7379',
],
localhost: [
'http://localhost:7470',
Expand Down
15 changes: 4 additions & 11 deletions packages/constants/src/lib/constants/defaultLitNodeClientConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,12 @@ import { LitNodeClientConfig } from '@lit-protocol/types';

export const defaultLitnodeClientConfig: LitNodeClientConfig = {
alertWhenUnauthorized: true,
minNodeCount: 6,
minNodeCount: 2,
debug: true,
bootstrapUrls: [
'https://node2.litgateway.com:7370',
'https://node2.litgateway.com:7371',
'https://node2.litgateway.com:7372',
'https://node2.litgateway.com:7373',
'https://node2.litgateway.com:7374',
'https://node2.litgateway.com:7375',
'https://node2.litgateway.com:7376',
'https://node2.litgateway.com:7377',
'https://node2.litgateway.com:7378',
'https://node2.litgateway.com:7379',
'https://cayenne.litgateway.com:7370',
'https://cayenne.litgateway.com:7371',
'https://cayenne.litgateway.com:7372',
],
litNetwork: 'cayenne',
connectTimeout: 20000,
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/lib/lit-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class LitCore {

// ========== Constructor ==========
constructor(args: any[LitNodeClientConfig | CustomNetwork | any]) {
let customConfig = args;
const customConfig = args;

// -- initialize default config
this.config = defaultLitnodeClientConfig;
Expand Down
17 changes: 13 additions & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,24 @@
"importHelpers": true,
"target": "ES2020",
"module": "ES2020",
"lib": ["ES2020", "dom"],
"lib": [
"ES2020",
"dom",
"ES2021.String"
],
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"baseUrl": ".",
"allowSyntheticDefaultImports": true,
"resolveJsonModule": true,
"paths": {
"@lit-protocol/*": ["packages/*/src"]
"@lit-protocol/*": [
"packages/*/src"
]
}
},
"exclude": ["node_modules", "tmp"]
}
"exclude": [
"node_modules",
"tmp"
]
}

0 comments on commit f1de98f

Please sign in to comment.