Skip to content

Commit

Permalink
Update/lit 402 (#92)
Browse files Browse the repository at this point in the history
* hotfix: add sessionSigs as a field and use it in PKPWallet

* workflow: added dev:target watch mode

* fix: jest setup configs to polyfill

* feat: add pkp-cosmos

* script: add publish script for pkp

* feat: new library

* Published version 2.1.95 --pkp tag

* chore: update .gitignore

* feat: update dev tools to watch build in order

* feat: update gitignore

* feat: pkp-ethers to extend from pkp-base

* feat: test settings to send real tx

* refactor: rewrote uint8arrays to be compatible with specs.ts

* feat: unit8arrays test works

* feat: make test:e2e run on react only

* feat: add console.log test snippet

* fix: uint8arrayToString to cast arg as Uint8Array

* fix: use cosmos bundled sdk

* Published version 2.1.97 --pkp

* Published version 2.1.98 --pkp

* chore: add test cases to crypto

* feat: add cosmosBunbledSdk test

* feat: add draft pkp client

* feat: add pkp client

* feat: added some executeJs tests

* feat: add verify tool

* feat: add types to 3rd party libs & updated tests

* feat: add jsParams setter to PKP base

* WIP: eth_signTypedData

* chore: update types

* feat: new pkg with pkp auth helpers

* bump: published version 2.1.101 --dev

* fix: nanoid dependency

* bump: published version 2.1.103 --dev

* docs: readme

* docs: update

* docs: update readme

* fix: add webpack to react so it loads crypto

* feat: restructure pkp-cosmos

* gitignore update

* wip: update handler

* chore: add note

* fix: handler.mjs

* feat: add .spec.mjs tools

* feat: added some dev styling

* chore: update style

* feat: add ts json handlers

* Squashed commit of the following:

commit c285143
Author: Ansonhkg <ansonox@gmail.com>
Date:   Tue Apr 4 15:58:08 2023 +0100

    Published version 2.1.108 --dev

commit 58d507c
Author: Ansonhkg <ansonox@gmail.com>
Date:   Tue Apr 4 15:48:55 2023 +0100

    chore: update test

commit 94deb7b
Author: Ansonhkg <ansonox@gmail.com>
Date:   Tue Apr 4 15:46:25 2023 +0100

    feat: complete lit-pkp-sdk integration

commit 6d765b2
Author: Ansonhkg <ansonox@gmail.com>
Date:   Mon Apr 3 22:16:02 2023 +0100

    feat: sendtx test cases

commit 19c0b5e
Author: Ansonhkg <ansonox@gmail.com>
Date:   Mon Apr 3 16:10:23 2023 +0100

    feat: add ts json handlers

commit dac9af0
Author: Ansonhkg <ansonox@gmail.com>
Date:   Fri Mar 31 22:27:44 2023 +0100

    chore: update style

commit 73b08c4
Author: Ansonhkg <ansonox@gmail.com>
Date:   Fri Mar 31 22:26:20 2023 +0100

    feat: added some dev styling

commit 619acd2
Author: Ansonhkg <ansonox@gmail.com>
Date:   Fri Mar 31 22:16:33 2023 +0100

    feat: add .spec.mjs tools

commit 25558c5
Author: Ansonhkg <ansonox@gmail.com>
Date:   Fri Mar 31 20:34:10 2023 +0100

    fix: handler.mjs

commit 69ae254
Author: Ansonhkg <ansonox@gmail.com>
Date:   Fri Mar 31 19:55:54 2023 +0100

    chore: add note

commit a5ffc19
Author: Ansonhkg <ansonox@gmail.com>
Date:   Fri Mar 31 19:42:29 2023 +0100

    wip: update handler

commit f72eb13
Author: Ansonhkg <ansonox@gmail.com>
Date:   Fri Mar 31 17:45:47 2023 +0100

    gitignore update

commit 9ea014a
Author: Ansonhkg <ansonox@gmail.com>
Date:   Fri Mar 31 17:40:28 2023 +0100

    feat: restructure pkp-cosmos

commit 2a32099
Author: Ansonhkg <ansonox@gmail.com>
Date:   Fri Mar 31 17:35:21 2023 +0100

    fix: add webpack to react so it loads crypto

commit b0d0b9a
Author: Ansonhkg <ansonox@gmail.com>
Date:   Thu Mar 30 18:05:10 2023 +0100

    chore: update types

commit 2e680bf
Author: Ansonhkg <ansonox@gmail.com>
Date:   Thu Mar 30 17:56:24 2023 +0100

    WIP: eth_signTypedData

commit 3d08446
Author: Ansonhkg <ansonox@gmail.com>
Date:   Thu Mar 30 13:35:21 2023 +0100

    feat: add jsParams setter to PKP base

commit f4b7b01
Author: Ansonhkg <ansonox@gmail.com>
Date:   Thu Mar 30 13:16:30 2023 +0100

    feat: add types to 3rd party libs & updated tests

* Feat pkp client merge master (#71)

* chore: Change logs for sessionSigs support to remaining functions (#64)

* Published version 2.1.104

* juno works nicely (#68)

* Feature/juno network (#69)

* juno works nicely

* published latest version 2.1.106

* Squashed commit of the following:

commit 849e2f2
Author: Ansonhkg <ansonox@gmail.com>
Date:   Tue Apr 4 14:16:42 2023 +0100

    fix: re-export disconnectWeb3

* Published version 2.1.107

* feat: e2e & unit tests passed

---------

Co-authored-by: Adarsh-Kumar28 <115020815+Adarsh-Kumar28@users.noreply.github.com>
Co-authored-by: Chris Cassano <1285652+glitch003@users.noreply.github.com>

* feat: add sessionSigs helper in PKPBase

* refactor: make rpc optional on PKPBase, check for provider in PKPEthers

* feat: add demo-pkp-social-auth

* fix: type annotation

* fix: type annotation

* feat: added some test cases

* fix: siwe message optional domain

* feat: update PKPClient constructor & test cases

* feat: add msg & tx signing without rpc

* feat: test to send cosmos tx in pkpClient

* refactor: flatten wallet props, track sigs expiry, handle connect rpc

* Published version 2.1.110 --pkp

* fix: remove pkpPubKey

* [wip] update PKPBase props (#75)

* feat: add types to 3rd party libs & updated tests

* feat: add jsParams setter to PKP base

* WIP: eth_signTypedData

* chore: update types

* fix: add webpack to react so it loads crypto

* feat: restructure pkp-cosmos

* gitignore update

* wip: update handler

* chore: add note

* fix: handler.mjs

* feat: add .spec.mjs tools

* feat: added some dev styling

* chore: update style

* feat: add ts json handlers

* feat: add sessionSigs helper in PKPBase

* refactor: make rpc optional on PKPBase, check for provider in PKPEthers

* refactor: flatten wallet props, track sigs expiry, handle connect rpc

* fix: remove pkpPubKey

---------

Co-authored-by: Ansonhkg <ansonox@gmail.com>

* fix: remove yarn.lock, use env var

* feat: add session sigs wrapper, pass relay url to LitRelay

* chore: eslint

* temp: comment methods

* fix: types

* refactor: improve handling of provided keypair in getSessionKey

* feat: ensure parsed key pair is of correct type

* fix: consistent with throwing error

* fix: wrong property

* refactor: getSessionSigs wrapper in LitAuthClient and make expiration optional in signSessionKey prop, chore: remove unused funcs, types

* feat: update demo with new litauthclient and use new chronicle chain

* chore: update litauthclient init options in demo app

* docs: update readme

* fix: import TextEncoder in lit-auth-client spec

* feat: make relay api key optional in type interface

* bump: published version 2.1.120 --dev

* chore: update pkg in demo, clean up unused

* refactor: move auth, session, and relay logic into providers

* update: types

* refactor: one initProvider method, abstract authenticate method

* fix: initProvider return type, rename eth provider

* WIP: build works

* refactor: initProvider, provider options, tests, use dynamic import

* feat: turned off nx cloud

* fix: pkp-ethers test cases

* fix: pkp-client specs works

* fix: contracts-sdk spec works

* feat: use node16 moduleResolution to work with dynamic imports

* docs: readme

* fix: because of THIS, circular dependency error

* fix: uncomment some tests, docs

* feat: add extra test PKP for nonce won't get block

* demo: use published pkg

* fix: expiration not used

* fix: test cases finally f-ing passes

* feat: update pkp-ethers to use default rpc from constants

* feat: change test case order

* Feat/tx handler for test cases (#91)

* feat: add tx handler server to avoid nonce

* feat: launch server before unit tests

* feat: increase retries

* feat: use remote tx handling server instead

* chore: some notes on tx handler server

---------

Co-authored-by: sarahzdev <sarah.hg.zhang@gmail.com>
Co-authored-by: Adarsh-Kumar28 <115020815+Adarsh-Kumar28@users.noreply.github.com>
Co-authored-by: Chris Cassano <1285652+glitch003@users.noreply.github.com>
Co-authored-by: sarah z <15064710+sarahzdev@users.noreply.github.com>
  • Loading branch information
5 people committed May 1, 2023
1 parent fde05b2 commit bbb2814
Show file tree
Hide file tree
Showing 199 changed files with 106,869 additions and 7,211 deletions.
4 changes: 3 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nrwl/nx/typescript"],
"rules": {}
"rules": {
"@typescript-eslint/no-inferrable-types": "off"
}
},
{
"files": ["*.js", "*.jsx"],
Expand Down
9 changes: 8 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,11 @@ doc

apps/demo-contracts-sdk-react/package-lock.json
apps/demo-encrypt-decrypt-react/package-lock.json
apps/demo-pkp-ethers-react/package-lock.json
apps/demo-pkp-ethers-react/package-lock.json


dep-graph.json

apps/html/index.html
apps/nodejs/main.ts
apps/react/src/app/app.tsx
37 changes: 20 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,26 @@ Individual packages are below so that you can import the minimum required packag

Package | Category | Version | Download
--- | --- | --- | ---
| [@lit-protocol/lit-node-client-nodejs](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-node-client-nodejs) | ![lit-node-client-nodejs](https://img.shields.io/badge/-nodejs-2E8B57 "lit-node-client-nodejs") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/lit-node-client-nodejs">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/lit-node-client-nodejs-vanilla/lit-node-client-nodejs.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/lit-node-client](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-node-client) | ![lit-node-client](https://img.shields.io/badge/-universal-8A6496 "lit-node-client") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/lit-node-client">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/lit-node-client-vanilla/lit-node-client.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/access-control-conditions](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/access-control-conditions) | ![access-control-conditions](https://img.shields.io/badge/-universal-8A6496 "access-control-conditions") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/access-control-conditions">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/access-control-conditions-vanilla/access-control-conditions.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/bls-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/bls-sdk) | ![bls-sdk](https://img.shields.io/badge/-universal-8A6496 "bls-sdk") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/bls-sdk">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/bls-sdk-vanilla/bls-sdk.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/constants](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/constants) | ![constants](https://img.shields.io/badge/-universal-8A6496 "constants") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/constants">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/constants-vanilla/constants.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/contracts-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/contracts-sdk) | ![contracts-sdk](https://img.shields.io/badge/-universal-8A6496 "contracts-sdk") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/contracts-sdk">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/contracts-sdk-vanilla/contracts-sdk.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/crypto](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/crypto) | ![crypto](https://img.shields.io/badge/-universal-8A6496 "crypto") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/crypto">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/crypto-vanilla/crypto.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/ecdsa-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/ecdsa-sdk) | ![ecdsa-sdk](https://img.shields.io/badge/-universal-8A6496 "ecdsa-sdk") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/ecdsa-sdk">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/ecdsa-sdk-vanilla/ecdsa-sdk.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/encryption](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/encryption) | ![encryption](https://img.shields.io/badge/-universal-8A6496 "encryption") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/encryption">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/encryption-vanilla/encryption.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/lit-third-party-libs](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-third-party-libs) | ![lit-third-party-libs](https://img.shields.io/badge/-universal-8A6496 "lit-third-party-libs") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/lit-third-party-libs">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/lit-third-party-libs-vanilla/lit-third-party-libs.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/misc](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/misc) | ![misc](https://img.shields.io/badge/-universal-8A6496 "misc") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/misc">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/misc-vanilla/misc.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/nacl](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/nacl) | ![nacl](https://img.shields.io/badge/-universal-8A6496 "nacl") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/nacl">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/nacl-vanilla/nacl.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/pkp-ethers](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-ethers) | ![pkp-ethers](https://img.shields.io/badge/-universal-8A6496 "pkp-ethers") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/pkp-ethers">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/pkp-ethers-vanilla/pkp-ethers.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/types](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/types) | ![types](https://img.shields.io/badge/-universal-8A6496 "types") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/types">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/types-vanilla/types.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/uint8arrays](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/uint8arrays) | ![uint8arrays](https://img.shields.io/badge/-universal-8A6496 "uint8arrays") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/uint8arrays">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/uint8arrays-vanilla/uint8arrays.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/auth-browser](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/auth-browser) | ![auth-browser](https://img.shields.io/badge/-browser-E98869 "auth-browser") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/auth-browser">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/auth-browser-vanilla/auth-browser.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/misc-browser](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/misc-browser) | ![misc-browser](https://img.shields.io/badge/-browser-E98869 "misc-browser") | 2.1.135 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/misc-browser">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/misc-browser-vanilla/misc-browser.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/lit-node-client-nodejs](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-node-client-nodejs) | ![lit-node-client-nodejs](https://img.shields.io/badge/-nodejs-2E8B57 "lit-node-client-nodejs") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/lit-node-client-nodejs">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/lit-node-client-nodejs-vanilla/lit-node-client-nodejs.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/lit-node-client](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-node-client) | ![lit-node-client](https://img.shields.io/badge/-universal-8A6496 "lit-node-client") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/lit-node-client">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/lit-node-client-vanilla/lit-node-client.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/access-control-conditions](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/access-control-conditions) | ![access-control-conditions](https://img.shields.io/badge/-universal-8A6496 "access-control-conditions") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/access-control-conditions">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/access-control-conditions-vanilla/access-control-conditions.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/bls-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/bls-sdk) | ![bls-sdk](https://img.shields.io/badge/-universal-8A6496 "bls-sdk") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/bls-sdk">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/bls-sdk-vanilla/bls-sdk.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/constants](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/constants) | ![constants](https://img.shields.io/badge/-universal-8A6496 "constants") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/constants">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/constants-vanilla/constants.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/contracts-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/contracts-sdk) | ![contracts-sdk](https://img.shields.io/badge/-universal-8A6496 "contracts-sdk") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/contracts-sdk">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/contracts-sdk-vanilla/contracts-sdk.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/crypto](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/crypto) | ![crypto](https://img.shields.io/badge/-universal-8A6496 "crypto") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/crypto">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/crypto-vanilla/crypto.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/ecdsa-sdk](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/ecdsa-sdk) | ![ecdsa-sdk](https://img.shields.io/badge/-universal-8A6496 "ecdsa-sdk") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/ecdsa-sdk">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/ecdsa-sdk-vanilla/ecdsa-sdk.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/encryption](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/encryption) | ![encryption](https://img.shields.io/badge/-universal-8A6496 "encryption") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/encryption">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/encryption-vanilla/encryption.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/lit-third-party-libs](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/lit-third-party-libs) | ![lit-third-party-libs](https://img.shields.io/badge/-universal-8A6496 "lit-third-party-libs") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/lit-third-party-libs">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/lit-third-party-libs-vanilla/lit-third-party-libs.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/misc](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/misc) | ![misc](https://img.shields.io/badge/-universal-8A6496 "misc") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/misc">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/misc-vanilla/misc.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/nacl](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/nacl) | ![nacl](https://img.shields.io/badge/-universal-8A6496 "nacl") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/nacl">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/nacl-vanilla/nacl.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/pkp-base](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-base) | ![pkp-base](https://img.shields.io/badge/-universal-8A6496 "pkp-base") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/pkp-base">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/pkp-base-vanilla/pkp-base.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/pkp-client](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-client) | ![pkp-client](https://img.shields.io/badge/-universal-8A6496 "pkp-client") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/pkp-client">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/pkp-client-vanilla/pkp-client.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/pkp-cosmos](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-cosmos) | ![pkp-cosmos](https://img.shields.io/badge/-universal-8A6496 "pkp-cosmos") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/pkp-cosmos">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/pkp-cosmos-vanilla/pkp-cosmos.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/pkp-ethers](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/pkp-ethers) | ![pkp-ethers](https://img.shields.io/badge/-universal-8A6496 "pkp-ethers") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/pkp-ethers">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/pkp-ethers-vanilla/pkp-ethers.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/types](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/types) | ![types](https://img.shields.io/badge/-universal-8A6496 "types") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/types">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/types-vanilla/types.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/uint8arrays](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/uint8arrays) | ![uint8arrays](https://img.shields.io/badge/-universal-8A6496 "uint8arrays") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/uint8arrays">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/uint8arrays-vanilla/uint8arrays.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/auth-browser](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/auth-browser) | ![auth-browser](https://img.shields.io/badge/-browser-E98869 "auth-browser") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/auth-browser">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/auth-browser-vanilla/auth-browser.min.js">Vanilla JS (UMD)</a>
| [@lit-protocol/misc-browser](https://github.com/LIT-Protocol/js-sdk/tree/master/packages/misc-browser) | ![misc-browser](https://img.shields.io/badge/-browser-E98869 "misc-browser") | 2.1.138 | <a target="_blank" href="https://www.npmjs.com/package/@lit-protocol/misc-browser">npm</a><br/><a href="https://cdn.jsdelivr.net/npm/@lit-protocol/misc-browser-vanilla/misc-browser.min.js">Vanilla JS (UMD)</a>

<!-- autogen:package:end -->

Expand Down
3 changes: 3 additions & 0 deletions apps/demo-pkp-social-auth-next-ts/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next/core-web-vitals", "prettier"]
}
32 changes: 32 additions & 0 deletions apps/demo-pkp-social-auth-next-ts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local

# vercel
.vercel
3 changes: 3 additions & 0 deletions apps/demo-pkp-social-auth-next-ts/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
dist/
.prettierrc
6 changes: 6 additions & 0 deletions apps/demo-pkp-social-auth-next-ts/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"arrowParens": "avoid",
"trailingComma": "es5",
"singleQuote": true,
"semi": true
}
25 changes: 25 additions & 0 deletions apps/demo-pkp-social-auth-next-ts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# PKP x Google OAuth Web Example 🪢

This is an example web app that shows how you can mint and use programmable key pairs (PKPs) with just Google account. With PKPs, you can build distributed and customizable MPC wallets. Learn more about PKPs [here](https://developer.litprotocol.com/pkp/wallets/intro).

Check out the [live demo](https://pkp-social-auth-example.vercel.app/).

## 💻 Getting Started

1. Clone this repo and install dependencies:

```bash
git clone git@github.com:LIT-Protocol/pkp-social-auth-example.git

cd pkp-social-auth-example

yarn install
```

2. Start your development server:

```bash
yarn dev
```

3. Visit [http://localhost:3000](http://localhost:3000) to start playing with the app.
7 changes: 7 additions & 0 deletions apps/demo-pkp-social-auth-next-ts/jsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"paths": {
"@/*": ["./src/*"]
}
}
}
5 changes: 5 additions & 0 deletions apps/demo-pkp-social-auth-next-ts/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
6 changes: 6 additions & 0 deletions apps/demo-pkp-social-auth-next-ts/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}

module.exports = nextConfig
Loading

1 comment on commit bbb2814

@vercel
Copy link

@vercel vercel bot commented on bbb2814 May 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.