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

revert to 05684c61af30f79f2e0e0fbf0356ac9fb043369d #314

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

Ansonhkg
Copy link
Collaborator

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

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 requested a review from joshLong145 as a code owner January 20, 2024 10:44
@Ansonhkg Ansonhkg merged commit 075ff11 into master Jan 20, 2024
3 of 4 checks passed
@Ansonhkg Ansonhkg deleted the revert-to-05684c6 branch January 20, 2024 10:45
joshLong145 pushed a commit that referenced this pull request Jan 24, 2024
Ansonhkg added a commit that referenced this pull request Jan 24, 2024
…ndpoints (#307)

* wip retry agent

* tweak logging

* fix signature share combining

* tweak retry logic for failure detection

* add standard error logging

* add validation error

* fmt

* tweak to new signaure share processing

* add retry to network operations

* refactor retry for multi request tracking

* refactor for group request retry

* add uint tests for executeWithRetry

* fmt

* updates from review comments

* fmt

* fmt

* fix validateAndSignEcdsa retry logic

* remove logging

* fmt

* remove logging of provider object

* support removing circular refs when serializing objects

* move _safeStringify up for reuse

* Revert "remove logging of provider object"

This reverts commit 0844930.

* Revert "move _safeStringify up for reuse"

This reverts commit d8a15e5.

* Revert "support removing circular refs when serializing objects"

This reverts commit 393bb6e.

* Test/Encryption and decryption using the PKP as the requesting wallet (#312)

* add e2e test using the pkp to encrypt and decrypt instead of using a user provided wallet

* fmt

* fix typings

* refactor to no longer use request id when logging errors being retried

* refactor to not use trace id when logging retry on error

* fmt

* Feature/lit 2183 error with checkandsignauthmessage (#311)

* remove logging of provider object

* support removing circular refs when serializing objects

* move _safeStringify up for reuse

* fmt

* add comment to _safeStringify

* fix unused var

* auto-gen

* Publish 3.0.30

* feat: support session sigs when get auth method id

* revert to 05684c6 (#314)

* Publish 3.0.31

* fmt

* feature/lit-2303-js-sdk-authmethod-is-a-sessionsig-if-so-parse-one-of-the (#316)

* AuthMethod is a sessionSig if so parse one of the elements of it's array

* update comment

* nit: I think we could do this with a single  loop

* fmt

* feat: Support Scroll mainnet (#317)

* fix typeo

* Fix/failing unit tests (#321)

* fix failing unit tests

* fmt

* wip retry agent

* tweak logging

* fix signature share combining

* tweak retry logic for failure detection

* add standard error logging

* add validation error

* fmt

* tweak to new signaure share processing

* add retry to network operations

* refactor retry for multi request tracking

* refactor for group request retry

* add uint tests for executeWithRetry

* fmt

* updates from review comments

* fmt

* fmt

* fix validateAndSignEcdsa retry logic

* remove logging

* fmt

* fix typings

* refactor to no longer use request id when logging errors being retried

* refactor to not use trace id when logging retry on error

* fmt

* remove logging of provider object

* support removing circular refs when serializing objects

* move _safeStringify up for reuse

* Revert "remove logging of provider object"

This reverts commit 0844930.

* Revert "move _safeStringify up for reuse"

This reverts commit d8a15e5.

* Revert "support removing circular refs when serializing objects"

This reverts commit 393bb6e.

* Publish 3.0.30

* Test/Encryption and decryption using the PKP as the requesting wallet (#312)

* add e2e test using the pkp to encrypt and decrypt instead of using a user provided wallet

* fmt

* Feature/lit 2183 error with checkandsignauthmessage (#311)

* remove logging of provider object

* support removing circular refs when serializing objects

* move _safeStringify up for reuse

* fmt

* add comment to _safeStringify

* fix unused var

* auto-gen

* feat: support session sigs when get auth method id

* revert to 05684c6 (#314)

* Publish 3.0.31

* fmt

* feature/lit-2303-js-sdk-authmethod-is-a-sessionsig-if-so-parse-one-of-the (#316)

* AuthMethod is a sessionSig if so parse one of the elements of it's array

* update comment

* nit: I think we could do this with a single  loop

* fmt

* feat: Support Scroll mainnet (#317)

* fix typeo

* Fix/failing unit tests (#321)

* fix failing unit tests

* fmt

* rebase to feat/habanero-manzano

* fmt

* Feature/lit 2237 implement retry operations for stateless threshold endpoints feat/manzano habanero (#324)

* Resolved conflicts

* fix: no rli test

---------

Signed-off-by: Anson <ansonox@gmail.com>
Co-authored-by: Federico Amura <federicoamura@gmail.com>
Co-authored-by: Ansonhkg <ansonox@gmail.com>
Co-authored-by: Adarsh-Kumar28 <115020815+Adarsh-Kumar28@users.noreply.github.com>
joshLong145 pushed a commit that referenced this pull request Jan 26, 2024
* manzano support

* changes to tests

* add habanero support

* add habanero enum

* fix: Using received blockhash as nonce (#285)

* add blockhash log

* wip

* Revert "wip"

This reverts commit f900e15.

* connect to all nodes, fix kicked nodes filtering (#291)

* connect to all nodes, fix kicked nodes filtering

* fix 2-sigs test

---------

Co-authored-by: Josh Long <josh@litprotocol.com>

* fix exp in tests

* Feature/lit 2155 add custom contract context (#293)

* wip

* wip

* wip

* wip

* Support for contract resolver  for resolving addresses

* add e2e tests

* reduced contract resolve

* remove e2e test for unit test impl

* fix for type normalizing

* fmt

* run ci on all branches

* run ci oon pull requests

* change branch rules in workflow

* dont duplciate test runs on prs

* e2e works on both manzano and habanero

* remove internalDev

* remove internalDev

* remove internalDev

* remove internalDev

* rm unused code

* linted

* change lint command

* rm internalDev

* change ci lint command

* linted contracts-sdk

* gen code

* prettier

* feat: throw when bootstrap urls not found

* fix: check habanero network

* prettier

* add storage.test.db to gitignore

* Feat/manzano habanero cache (#322)

* cache

* add instru

* fix: don't exit

* resolve comments

* Feat/manzano habanero merge nft delegation (#323)

* wip

* feat: addRateLimitAuthSig

* fix: circular dependency issue

* recap works with ipfs-only-hash

* remove bs58 & cid

* make CID an async load module

* make addRateLimitAuthSig async

* ipfs-only-hash package

* WIP e2e test

* use ipfsBundler instead

* test: add recap test

* wip: e2e test

* WIP

* feat: utility function to generate accs hash for RLI delegation

* gen session sigs

* remove comment

* update test

* got sessionsigs

* remove unified accs

* add param

* wip

* feat: addRateLimitAuthSig

* fix: circular dependency issue

* recap works with ipfs-only-hash

* remove bs58 & cid

* make CID an async load module

* make addRateLimitAuthSig async

* ipfs-only-hash package

* merge

* sig works but not sure if rli works

* doesnt work

* add to siwe message

* add sanitize

* recap

* clean up test

* clean up test

* NodeWalletSignatureJSONError

* wip

* swap order

* put the order back

* wip

* now hitting rate limit exceeded

* varous fixes - stripping the 0x prefix in the delegate_to array.  uses needs to be a string

* this should work (#309)

* cache

* add instru

* fix: don't exit

* prettier

* add prettier to build script

* fix: recap test

* resolve comments

* disable: addRateLimitAuthSig and console.log

* add comment on addCapabilities

* disable generateUnifiedAccsForRLIDelegation

* add comment on mint rli

* consistent log on contracts-sdk

* consistent log on contracts-sdk

* optional domain

* add comment

* make nonce

* update test

* prettier

* update test

* add rli tests

* delegatee f-ing works

* dont write to disk

---------

Signed-off-by: Anson <ansonox@gmail.com>
Co-authored-by: Chris Cassano <chris@litprotocol.com>

* Feature/lit 2237 implement retry operations for stateless threshold endpoints (#307)

* wip retry agent

* tweak logging

* fix signature share combining

* tweak retry logic for failure detection

* add standard error logging

* add validation error

* fmt

* tweak to new signaure share processing

* add retry to network operations

* refactor retry for multi request tracking

* refactor for group request retry

* add uint tests for executeWithRetry

* fmt

* updates from review comments

* fmt

* fmt

* fix validateAndSignEcdsa retry logic

* remove logging

* fmt

* remove logging of provider object

* support removing circular refs when serializing objects

* move _safeStringify up for reuse

* Revert "remove logging of provider object"

This reverts commit 0844930.

* Revert "move _safeStringify up for reuse"

This reverts commit d8a15e5.

* Revert "support removing circular refs when serializing objects"

This reverts commit 393bb6e.

* Test/Encryption and decryption using the PKP as the requesting wallet (#312)

* add e2e test using the pkp to encrypt and decrypt instead of using a user provided wallet

* fmt

* fix typings

* refactor to no longer use request id when logging errors being retried

* refactor to not use trace id when logging retry on error

* fmt

* Feature/lit 2183 error with checkandsignauthmessage (#311)

* remove logging of provider object

* support removing circular refs when serializing objects

* move _safeStringify up for reuse

* fmt

* add comment to _safeStringify

* fix unused var

* auto-gen

* Publish 3.0.30

* feat: support session sigs when get auth method id

* revert to 05684c6 (#314)

* Publish 3.0.31

* fmt

* feature/lit-2303-js-sdk-authmethod-is-a-sessionsig-if-so-parse-one-of-the (#316)

* AuthMethod is a sessionSig if so parse one of the elements of it's array

* update comment

* nit: I think we could do this with a single  loop

* fmt

* feat: Support Scroll mainnet (#317)

* fix typeo

* Fix/failing unit tests (#321)

* fix failing unit tests

* fmt

* wip retry agent

* tweak logging

* fix signature share combining

* tweak retry logic for failure detection

* add standard error logging

* add validation error

* fmt

* tweak to new signaure share processing

* add retry to network operations

* refactor retry for multi request tracking

* refactor for group request retry

* add uint tests for executeWithRetry

* fmt

* updates from review comments

* fmt

* fmt

* fix validateAndSignEcdsa retry logic

* remove logging

* fmt

* fix typings

* refactor to no longer use request id when logging errors being retried

* refactor to not use trace id when logging retry on error

* fmt

* remove logging of provider object

* support removing circular refs when serializing objects

* move _safeStringify up for reuse

* Revert "remove logging of provider object"

This reverts commit 0844930.

* Revert "move _safeStringify up for reuse"

This reverts commit d8a15e5.

* Revert "support removing circular refs when serializing objects"

This reverts commit 393bb6e.

* Publish 3.0.30

* Test/Encryption and decryption using the PKP as the requesting wallet (#312)

* add e2e test using the pkp to encrypt and decrypt instead of using a user provided wallet

* fmt

* Feature/lit 2183 error with checkandsignauthmessage (#311)

* remove logging of provider object

* support removing circular refs when serializing objects

* move _safeStringify up for reuse

* fmt

* add comment to _safeStringify

* fix unused var

* auto-gen

* feat: support session sigs when get auth method id

* revert to 05684c6 (#314)

* Publish 3.0.31

* fmt

* feature/lit-2303-js-sdk-authmethod-is-a-sessionsig-if-so-parse-one-of-the (#316)

* AuthMethod is a sessionSig if so parse one of the elements of it's array

* update comment

* nit: I think we could do this with a single  loop

* fmt

* feat: Support Scroll mainnet (#317)

* fix typeo

* Fix/failing unit tests (#321)

* fix failing unit tests

* fmt

* rebase to feat/habanero-manzano

* fmt

* Feature/lit 2237 implement retry operations for stateless threshold endpoints feat/manzano habanero (#324)

* Resolved conflicts

* fix: no rli test

---------

Signed-off-by: Anson <ansonox@gmail.com>
Co-authored-by: Federico Amura <federicoamura@gmail.com>
Co-authored-by: Ansonhkg <ansonox@gmail.com>
Co-authored-by: Adarsh-Kumar28 <115020815+Adarsh-Kumar28@users.noreply.github.com>

* change test name

* update message

* remove lowercase

* types & constants & wip e2e tests

* build

* wip

* wip

* wip

* fix permission issues with eth wallet auth method type

* remove step 6 for minting new pkp

* Feat/manzano habanero final polish (#326)

* WIP

* polish up

* conditionally adding property

* remove console.log

* Add/stytch auth parsing to contract sdk (#327)

* port utility code for now to make contract-sdk auth parsing fully functional

* fmt

---------

Signed-off-by: Anson <ansonox@gmail.com>
Co-authored-by: Anson <ansonox@gmail.com>

* update docs for 3.1 (#328)

* fix: support network types

* Add/contract sdk network types (#329)

* add other network options

* Revert "add other network options"

This reverts commit ba94cd6.

* add other network options

* fmt

* add network flag to test case

* remove uneeded test cases

* Publish 3.1.0

* gen docs

---------

Signed-off-by: Anson <ansonox@gmail.com>
Co-authored-by: Josh Long <josh@litprotocol.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: Chris Cassano <chris@litprotocol.com>
Co-authored-by: Federico Amura <federicoamura@gmail.com>
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