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

Feature/lit 2545 js sdk fix cosmjscrypto #381

Merged
merged 4 commits into from
Feb 22, 2024

Conversation

Ansonhkg
Copy link
Collaborator

@Ansonhkg Ansonhkg commented Feb 21, 2024

Description

This PR explicitly declares @cosmos dependencies in the contracts-sdk to ensure their inclusion in the package.json of the built package when running yarn build. It's unclear why this was functioning correctly in version 3.1.4 when they share the same dependencies, but this adjustment should resolve the issue.

3.1.4

"dependencies": {
    "bs58": "^5.0.0",
    "date-and-time": "^2.4.1",
    "multiformats": "^9.7.1",
    "ethers": "^5.7.1",
    "bitcoinjs-lib": "^6.1.0",
    "@lit-protocol/types": "3.1.4",
    "@lit-protocol/auth-helpers": "3.1.4",
    "tslib": "^2.3.0",
    "siwe": "^2.0.5",
    "siwe-recap": "0.0.2-alpha.0",
    "jszip": "^3.10.1",
    "@lit-protocol/accs-schemas": "0.0.3",
    "jose": "^4.14.4",
    "@lit-protocol/misc": "3.1.4",
    "@lit-protocol/constants": "3.1.4",
    "@lit-protocol/logger": "3.1.4",
    "uint8arrays": "^4.0.3",
    "ajv": "^8.12.0"
  }

3.2.0

"dependencies": {
    "bs58": "^5.0.0",
    "date-and-time": "^2.4.1",
    "multiformats": "^9.7.1",
    "ethers": "^5.7.1",
    "bitcoinjs-lib": "^6.1.0",
    "@lit-protocol/types": "3.2.0",
    "@lit-protocol/auth-helpers": "3.2.0",
    "tslib": "^2.3.0",
    "siwe": "^2.0.5",
    "siwe-recap": "0.0.2-alpha.0",
    "jszip": "^3.10.1",
    "@lit-protocol/accs-schemas": "0.0.6",
    "jose": "^4.14.4",
    "@lit-protocol/misc": "3.2.0",
    "@lit-protocol/constants": "3.2.0",
    "@lit-protocol/logger": "3.2.0",
    "uint8arrays": "^4.0.3",
    "ajv": "^8.12.0"
  }

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@Ansonhkg Ansonhkg mentioned this pull request Feb 22, 2024
5 tasks
@Ansonhkg Ansonhkg marked this pull request as ready for review February 22, 2024 01:21
@Ansonhkg Ansonhkg merged commit a39f5b8 into staging/3.2.1 Feb 22, 2024
1 of 4 checks passed
@Ansonhkg Ansonhkg deleted the feature/lit-2545-js-sdk-fix-cosmjscrypto branch February 22, 2024 04:57
Ansonhkg added a commit that referenced this pull request Feb 22, 2024
* init patch

* Feature/lit 2545 js sdk fix cosmjscrypto (#381)

* fix: should add dependencies to related packages

* fix: include cosmos dependencies

* fix: correct version

* fix: correct version

* Check certificate before passing to wasm (#374)

* init release

* feat: fix contracts-sdk (#359)

* use testThis in testThese to unify criteria and fix the pipeline that… (#360)

* use testThis in testThese to unify criteria and fix the pipeline that was missing some tests due to testThese finishing the process with code 0

* fmt

* remove problematic process.exit

* Add `K256` as alias of `ECDSA_CAIT_SITH` sig type

* add CI run on PRs targeting staging branches (#361)

* add comment pointing to repo (#362)

* Add `K256` as alias of `ECDSA_CAIT_SITH` sig type (#356)

* add comment pointing to repo

---------

Co-authored-by: Massimo Cairo <[email protected]>

* prettied

* feature/lit-2511-js-sdk-review-remove-lit-siwe (#373)

* implement new interface to unify session authentication in client (#358)

* implement new interface to unify session authentication in client

* fix eth pkp wallet creation unit test

* update test to use global config

* add test group to CI

* change encryption test to also validate getting session sigs from cache

* remove process termination order included on testThese that was avoiding other tests to run

* Add `K256` as alias of `ECDSA_CAIT_SITH` sig type (#356)

* fix rpc constant used in testing

* add empty resourceAbilityRequests to test

* fix and clean test using new session cache interface to sign using PKPEthersWallet

* fix encryption test

* remove old test

* staging

* chore: update readme

* v?

* use throwError function

* remove unnnecessary sessionKeys as they are obtained from cache afterwards

* move authContext validation to function that validates the PKP auth context

* backwards compatibility to avoid a breaking change

* fmt

* fmt

* fix siwe import

---------

Co-authored-by: Massimo Cairo <[email protected]>
Co-authored-by: Ansonhkg <[email protected]>

* remove vanilla js builds (#372)

* Feature/lit 2494 js sdk get rid of lit third party libs (#371)

* remove 3rd party libs

* fix: revert back to fix react

* it works

* cherry picks 735438f 3b0422f

* readme

* resolve conflicts

---------

Signed-off-by: Anson <[email protected]>

* fix: build issues

* Check certificate before passing to wasm

---------

Signed-off-by: Anson <[email protected]>
Co-authored-by: Ansonhkg <[email protected]>
Co-authored-by: Federico Amura <[email protected]>
Co-authored-by: Massimo Cairo <[email protected]>

* fix: add blockhash to react demo app (#379)

---------

Signed-off-by: Anson <[email protected]>
Co-authored-by: Chris Cassano <[email protected]>
Co-authored-by: Federico Amura <[email protected]>
Co-authored-by: Massimo Cairo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant