Skip to content

feat(example): Optimistic Oracle implementation#4681

Closed
Intermarch3 wants to merge 6 commits intognolang:masterfrom
Intermarch3:master
Closed

feat(example): Optimistic Oracle implementation#4681
Intermarch3 wants to merge 6 commits intognolang:masterfrom
Intermarch3:master

Conversation

@Intermarch3
Copy link
Copy Markdown
Contributor

Description

In my journey to upskill on Gno.land, my first significant project is leveraging my knowledge of existing Ethereum smart contracts to implement an optimistic oracle, inspired by UMA Optimistic Oracle and their use in the well-known dApp Polymarket.
Here is a simplified implementation.

Add the following Realms:

r/intermarch3/home: my personal page and link to the oracle

r/intermarch3/oo: the oracle

@Gno2D2
Copy link
Copy Markdown
Collaborator

Gno2D2 commented Aug 24, 2025

🛠 PR Checks Summary

All Automated Checks passed. ✅

Manual Checks (for Reviewers):
  • IGNORE the bot requirements for this PR (force green CI check)
  • The pull request description provides enough details
Read More

🤖 This bot helps streamline PR reviews by verifying automated checks and providing guidance for contributors and reviewers.

✅ Automated Checks (for Contributors):

🟢 Maintainers must be able to edit this pull request (more info)
🟢 Pending initial approval by a review team member, or review from tech-staff

☑️ Contributor Actions:
  1. Fix any issues flagged by automated checks.
  2. Follow the Contributor Checklist to ensure your PR is ready for review.
    • Add new tests, or document why they are unnecessary.
    • Provide clear examples/screenshots, if necessary.
    • Update documentation, if required.
    • Ensure no breaking changes, or include BREAKING CHANGE notes.
    • Link related issues/PRs, where applicable.
☑️ Reviewer Actions:
  1. Complete manual checks for the PR, including the guidelines and additional checks if applicable.
📚 Resources:
Debug
Automated Checks
Maintainers must be able to edit this pull request (more info)

If

🟢 Condition met
└── 🟢 And
    ├── 🟢 The base branch matches this pattern: ^master$
    └── 🟢 The pull request was created from a fork (head branch repo: Intermarch3/gno)

Then

🟢 Requirement satisfied
└── 🟢 Maintainer can modify this pull request

Pending initial approval by a review team member, or review from tech-staff

If

🟢 Condition met
└── 🟢 And
    ├── 🟢 The base branch matches this pattern: ^master$
    └── 🟢 Not (🔴 Pull request author is a member of the team: tech-staff)

Then

🟢 Requirement satisfied
└── 🟢 If
    ├── 🟢 Condition
    │   └── 🟢 Or
    │       ├── 🔴 At least one of these user(s) reviewed the pull request: [jefft0 leohhhn n0izn0iz notJoon omarsy x1unix] (with state "APPROVED")
    │       ├── 🔴 At least 1 user(s) of the team tech-staff reviewed pull request
    │       └── 🟢 This pull request is a draft
    └── 🟢 Then
        └── 🟢 Not (🔴 This label is applied to pull request: review/triage-pending)

Manual Checks
**IGNORE** the bot requirements for this PR (force green CI check)

If

🟢 Condition met
└── 🟢 On every pull request

Can be checked by

  • Any user with comment edit permission
The pull request description provides enough details

If

🟢 Condition met
└── 🟢 And
    ├── 🟢 Not (🔴 Pull request author is a member of the team: core-contributors)
    └── 🟢 Not (🔴 Pull request author is user: dependabot[bot])

Can be checked by

  • team core-contributors

@codecov
Copy link
Copy Markdown

codecov bot commented Aug 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Copy Markdown
Contributor

@leohhhn leohhhn left a comment

Choose a reason for hiding this comment

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

hey, this is really cool. I'm leaving some preliminary comments below.

Please add tests to cover the functionality, and ideally, a realm that would be able to showcase how the OO can be used.

In general, I suggest you check out best Go writing practices; this code is okay but it's clear that it was taken as a port from Solidity

Comment thread examples/gno.land/r/intermarch3/oo/oracle.gno
Comment thread examples/gno.land/r/intermarch3/oo/README.md
Comment thread examples/gno.land/r/intermarch3/oo/oracle.gno
Comment thread examples/gno.land/r/intermarch3/oo/oracle.gno
Comment thread examples/gno.land/r/intermarch3/oo/oracle.gno
Comment thread examples/gno.land/r/intermarch3/oo/oracle.gno
Comment thread examples/gno.land/r/intermarch3/oo/oracle.gno
Comment thread examples/gno.land/r/intermarch3/oo/oracle.gno
@leohhhn
Copy link
Copy Markdown
Contributor

leohhhn commented Sep 24, 2025

Hey, do you plan to continue working on this?

@Intermarch3
Copy link
Copy Markdown
Contributor Author

Hey, do you plan to continue working on this?

Yes, of course. I was quite busy, but I’m starting my student program with Gno next week, so I will follow up on this project.

@Intermarch3
Copy link
Copy Markdown
Contributor Author

As discussed, we move this project here : gnoverse/community#16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🧾 package/realm Tag used for new Realms or Packages.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants