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

chore(rlnv2): contract interface changes #2770

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

rymnc
Copy link
Contributor

@rymnc rymnc commented Jun 4, 2024

Description

This PR implements the contract interface changes as shown in https://github.com/waku-org/waku-rlnv2-contract

All tests have been altered for the same

Changes

  • contract interface changes
  • contract bytecode changes
  • test changes

@rymnc rymnc force-pushed the rlnv2-contract-interface-changes branch from 37073d8 to c67a659 Compare June 4, 2024 09:04
Copy link

github-actions bot commented Jun 4, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2770-rln-v1

Built from 4b22da1

Copy link

github-actions bot commented Jun 4, 2024

You can find the image built from this PR at

quay.io/wakuorg/nwaku-pr:2770-rln-v2

Built from 4b22da1

@rymnc rymnc force-pushed the rlnv2-contract-interface-changes branch 3 times, most recently from a9f0a9b to 6298267 Compare June 4, 2024 13:30
@rymnc rymnc marked this pull request as ready for review June 4, 2024 14:33
@rymnc rymnc requested review from alrevuelta and gabrielmer June 4, 2024 14:33
@rymnc
Copy link
Contributor Author

rymnc commented Jun 4, 2024

cc: reviewers, please note the base branch is #2759

@rymnc rymnc requested a review from stubbsta June 5, 2024 07:01
Copy link
Collaborator

@Ivansete-status Ivansete-status left a comment

Choose a reason for hiding this comment

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

LGTM although I don't understand it 100%

@rymnc - will that contract change require a membership migration from the old contract to the new one?

let leaf = rateCommitment.toLeaf().get()
await g.registerBatch(@[leaf])
except CatchableError:
raise newException(ValueError, getCurrentExceptionMsg())
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
raise newException(ValueError, getCurrentExceptionMsg())
raise newException(ValueError, "exception reraised in atomicBatch: " & getCurrentExceptionMsg())

Copy link
Contributor Author

Choose a reason for hiding this comment

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

as @alrevuelta mentioned in thread, we will ask operators to re-register memberships to the new contract

Copy link
Contributor

@gabrielmer gabrielmer left a comment

Choose a reason for hiding this comment

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

LGTM, thanks so much! Added a couple questions :))

waku/waku_keystore/protocol_types.nim Outdated Show resolved Hide resolved
@stubbsta
Copy link

stubbsta commented Jun 5, 2024

Thanks for this @rymnc!

@rymnc rymnc force-pushed the rlnv2-contract-interface-changes branch from 153e0e0 to cec881b Compare June 5, 2024 11:08
@rymnc rymnc merged commit 2833f43 into rlnv2-only Jun 5, 2024
10 of 11 checks passed
@rymnc rymnc deleted the rlnv2-contract-interface-changes branch June 5, 2024 19:28
rymnc added a commit that referenced this pull request Jun 20, 2024
* chore(rlnv2): contract interface changes

* fix: tests

* fix: remove stuint[32]
@rymnc rymnc mentioned this pull request Jun 20, 2024
4 tasks
Ivansete-status pushed a commit that referenced this pull request Jun 20, 2024
* chore(rlnv2): contract interface changes (#2770)
* fix: tests
* fix: remove stuint[32]
* chore(submodule): update zerokit submodule to v0.5.1 (#2782)
* fix: remove cond comp for lightpush test
* fix: ci and nonceManager
Ivansete-status pushed a commit that referenced this pull request Jun 20, 2024
* chore(rlnv2): contract interface changes (#2770)
* fix: tests
* fix: remove stuint[32]
* chore(submodule): update zerokit submodule to v0.5.1 (#2782)
* fix: remove cond comp for lightpush test
* fix: ci and nonceManager
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.

4 participants