-
Notifications
You must be signed in to change notification settings - Fork 0
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(RealitioProxy): update contract for V2 #1
base: master
Are you sure you want to change the base?
Conversation
WalkthroughIn the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant RealitioProxyV2
participant IRealitio
participant IRealitioArbitrator
User->>RealitioProxyV2: requestArbitration(questionID)
RealitioProxyV2->>IRealitioArbitrator: getDisputeFee(questionID)
IRealitioArbitrator-->>RealitioProxyV2: disputeFee
RealitioProxyV2->>IRealitio: notifyOfArbitrationRequest(questionID)
IRealitio-->>RealitioProxyV2: confirmation
RealitioProxyV2-->>User: Arbitration Requested
User->>RealitioProxyV2: rule(questionID, ruling)
RealitioProxyV2->>IRealitio: assignWinnerAndSubmitAnswerByArbitrator( questionID, answer, ...)
IRealitio-->>RealitioProxyV2: confirmation
RealitioProxyV2-->>User: Ruling Submitted
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (3)
- contracts/src/RealityV2.sol (1 hunks)
- contracts/src/interfaces/IRealitio.sol (1 hunks)
- contracts/src/interfaces/IRealitioArbitrator.sol (1 hunks)
Additional comments not posted (15)
contracts/src/interfaces/IRealitioArbitrator.sol (3)
21-21
: LGTM!The function signature adheres to best practices.
28-28
: LGTM!The function signature adheres to best practices.
32-32
: LGTM!The function signature adheres to best practices.
contracts/src/interfaces/IRealitio.sol (2)
23-27
: LGTM!The function signature adheres to best practices.
37-43
: LGTM!The function signature adheres to best practices.
contracts/src/RealityV2.sol (10)
66-98
: LGTM!The constructor initializes all parameters correctly and follows best practices.
103-104
: LGTM!The function logic is correct and follows best practices.
111-122
: LGTM!The function logic is correct and follows best practices.
129-135
: LGTM!The function logic is correct and follows best practices.
141-143
: LGTM!The function logic is correct and follows best practices.
149-170
: LGTM!The function logic is correct and follows best practices.
176-188
: LGTM!The function logic is correct and follows best practices.
197-210
: LGTM!The function logic is correct and follows best practices.
215-220
: LGTM!The function logic is correct and follows best practices.
222-226
: LGTM!The error definitions are correct and follow best practices.
Summary by CodeRabbit
New Features
RealitioProxyV2
contract with enhanced arbitration functionalities.IRealitio
andIRealitioArbitrator
to facilitate external interactions.Improvements
Bug Fixes