Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Predictoor support #678

Merged
merged 34 commits into from
Nov 21, 2023
Merged

Predictoor support #678

merged 34 commits into from
Nov 21, 2023

Conversation

alexcos20
Copy link
Member

@alexcos20 alexcos20 commented May 14, 2023

For this epic "[Predictoor BE] Ship MVP" -- Add DT3 to subgraph repo

Changes in this PR:

  • [A] Create schema
  • [A] Update subgraph template
  • [A] Create handlers in mappings
  • Only merge when: we've deployed ocean contracts v2 to all networks, including Sapphire testnet

"Add tests" has been moved to -> #697

Example query:

query {
  predictContracts{
    id	
    token{
      name
    }
    blocksPerEpoch
    blocksPerSubscription
    truevalSubmitTimeoutBlock
    block
    eventIndex
    slots{
      id
      predictions{
        id
        user {
          id
        }
        stake
        payout {
          id
          predictedValue
          trueValue
          payout
        }
      }
      trueValues{
        trueValue
        floatValue
        txId
      }
      revenue
      revenues{
        
        amount
        txId
      }
      
      
    }
    subscriptions{
      
      user {
        id
      }
      expireTime
      txId
    }
    }
    
 }



@alexcos20 alexcos20 self-assigned this May 14, 2023
@alexcos20 alexcos20 mentioned this pull request May 22, 2023
alexcos20 and others added 9 commits July 29, 2023 19:50
* Update tests.yml

* Update handlers

* Update schema

* Linter

* Update abi and fields

* use latest contracts

* use latest contracts

* expose agg preds in trueval

* fix abi path

* remove unused abis

* fix

---------

Co-authored-by: trizin <25263018+trizin@users.noreply.github.com>
trizin and others added 6 commits August 29, 2023 15:40
* Update status

* Fix

* Update contracts version

* Use number for predict slot

* Fixes

* Linter

* Fix

* Fix

* tostring

* Fix

* Fix

* Fix
* bump contracts

* add pause for predictoorContract
@trentmc trentmc removed the Incentives label Oct 4, 2023
@alexcos20 alexcos20 marked this pull request as ready for review November 21, 2023 13:14
@alexcos20 alexcos20 merged commit c600433 into main Nov 21, 2023
@alexcos20 alexcos20 deleted the feature/predictoor branch November 21, 2023 13:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants