Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/v7 migration 1 #72

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/**/*/node_modules
/**/*/.env
/**/*/.env
node_modules
934 changes: 934 additions & 0 deletions .yarn/releases/yarn-berry.cjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
yarnPath: ".yarn/releases/yarn-berry.cjs"
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,3 @@
These examples are designed to help you get started building with Lit!

Each example has instructions within its own README file!

# Tools

Reports the versions of dependencies starting with `@lit-protocol`

```
node ./report.mjs --tag=latest
node ./report.mjs --tag=datil-dev
```
4 changes: 2 additions & 2 deletions btc-trigger/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "btc-trigger-example",
"name": "btc-trigger-nodejs",
"version": "0.1.0",
"description": "Example of triggering a Bitcoin transaction with Lit Protocol",
"type": "module",
Expand Down Expand Up @@ -33,4 +33,4 @@
"tsx": "^4.12.0",
"typescript": "^5.5.3"
}
}
}
4 changes: 2 additions & 2 deletions conditional-signing/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "quick-start",
"name": "conditional-signing-browser",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down Expand Up @@ -32,4 +32,4 @@
"typescript": "^5.5.3",
"vite": "^5.3.1"
}
}
}
4 changes: 2 additions & 2 deletions conditional-signing/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "conditional-signing-in-nodejs",
"name": "conditional-signing-nodejs",
"version": "0.1.0",
"description": "Example of conditional signing within a Lit Action using Node.js",
"main": "index.js",
Expand Down Expand Up @@ -29,4 +29,4 @@
"tsx": "^4.17.0",
"typescript": "^5.5.4"
}
}
}
4 changes: 2 additions & 2 deletions custom-auth/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "custom-auth",
"name": "custom-auth-browser",
"version": "6.0.0",
"description": "Example of using custom authentication, auths that Lit doesn't support",
"main": "index.js",
Expand All @@ -16,4 +16,4 @@
"@lit-protocol/lit-node-client": "^6.2.2",
"ipfs-helpers": "^0.0.5"
}
}
}
4 changes: 2 additions & 2 deletions decrypt-api-key-in-action/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "decryption-in-lit-action",
"name": "decrypt-api-key-in-action-nodejs",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand All @@ -26,4 +26,4 @@
"@lit-protocol/contracts-sdk": "^6.4.10",
"@lit-protocol/lit-node-client": "^6.4.10"
}
}
}
4 changes: 2 additions & 2 deletions eip-191-signing/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "generating-eip-191-sigs-in-browser",
"name": "eip-191-signing-browser",
"version": "0.1.0",
"description": "Example of generating an EIP-191 signature using a Lit Action",
"type": "module",
Expand Down Expand Up @@ -32,4 +32,4 @@
"typescript": "^5.5.3",
"vite": "^5.3.1"
}
}
}
4 changes: 2 additions & 2 deletions eip-191-signing/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "generating-eip-191-sigs-in-nodejs",
"name": "eip-191-signing-nodejs",
"version": "0.1.0",
"description": "Example of generating an EIP-191 signature using a Lit Action",
"main": "index.js",
Expand Down Expand Up @@ -28,4 +28,4 @@
"tsx": "^4.19.1",
"typescript": "^5.6.2"
}
}
}
4 changes: 2 additions & 2 deletions lit-action-claim-key/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nodejs",
"name": "lit-action-claim-key-nodejs",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand All @@ -26,4 +26,4 @@
"tsx": "^4.12.0",
"typescript": "^5.4.5"
}
}
}
2 changes: 1 addition & 1 deletion lit-action-using-fetch/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
"devDependencies": {
"parcel-bundler": "^1.12.5"
}
}
}
4 changes: 2 additions & 2 deletions lit-action-using-fetch/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nodejs",
"name": "lit-action-using-fetch-nodejs",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand All @@ -26,4 +26,4 @@
"tsx": "^4.12.0",
"typescript": "^5.4.5"
}
}
}
42 changes: 42 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "lit-developer-guides-code",
"private": true,
"workspaces": [
"btc-trigger/nodejs",
"conditional-signing/browser",
"conditional-signing/nodejs",
"custom-auth/browser",
"decrypt-api-key-in-action/nodejs",
"eip-191-signing/browser",
"eip-191-signing/nodejs",
"lit-action-claim-key/nodejs",
"lit-action-using-fetch/browser",
"lit-action-using-fetch/nodejs",
"paying-for-lit/nodejs",
"payment-delegation-db-relayer/nodejs",
"pkp-migration/nodejs",
"session-signatures/getLitActionSessionSigs",
"session-signatures/getPkpSessionSigs",
"session-signatures/getSessionSigs",
"sign-and-combine-ecdsa/nodejs",
"siws-accs/browser",
"siws-authentication/browser",
"siws-encryption/browser",
"siws-session-sigs/browser",
"starter-guides/browser",
"starter-guides/nodejs",
"templates/browser",
"templates/nodejs",
"wrapped-keys/eip-712/nodejs",
"wrapped-keys/nodejs"
],
"scripts": {
"install:all": "yarn workspaces focus --all",
"upgrade:all": "yarn workspaces foreach --all exec yarn up \"@lit-protocol/*@latest\"",
"upgrade:all:alpha": "yarn workspaces foreach --all exec yarn up \"@lit-protocol/*@alpha\"",
"clean": "yarn workspaces foreach --all exec rimraf node_modules && yarn rimraf node_modules"
},
"devDependencies": {
"rimraf": "^6.0.1"
}
}
4 changes: 2 additions & 2 deletions paying-for-lit/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nodejs",
"name": "paying-for-lit-nodejs",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand Down Expand Up @@ -30,4 +30,4 @@
"tsx": "^4.12.0",
"typescript": "^5.4.5"
}
}
}
4 changes: 2 additions & 2 deletions payment-delegation-db-relayer/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nodejs",
"name": "payment-delegation-db-relayer-nodejs",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand Down Expand Up @@ -28,4 +28,4 @@
"@lit-protocol/types": "^6.2.1",
"ethers": "v5"
}
}
}
4 changes: 2 additions & 2 deletions pkp-migration/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pkp-migration",
"name": "pkp-migration-nodejs",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
Expand All @@ -26,4 +26,4 @@
"@lit-protocol/types": "^6.1.0-beta.2",
"ethers": "v5"
}
}
}
Loading