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

Introduce rewardsProvenance' mapped onto GetRewardInfoPool #173

Merged
merged 6 commits into from
Feb 12, 2022

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented Feb 12, 2022

This fixes #171


  • 📍 Add support for 'GetRewardInfoPool' state-query.
    In Ogmios, this query will be known as rewardProvenance', to makes it a bit clearer that it comes as a replacement of the now-deprecated rewardProvenance query.

  • 📍 Add new test vectors for rewardsProvenance'

  • 📍 Add deprecation notices regarding rewardsProvenance and utxo (by address) to the docs
    user guide and API reference.

  • 📍 Add support for non-deprecated rewards provenance to the TypeScript client.

  • 📍 Fill-in CHANGELOG about rewardsProvenance'

  • 📍 Bump node's version in continuous-integration workflow.


ogmios> await rewardsProvenanceNew()
[Object: null prototype] {
  desiredNumberOfPools: 500,
  poolInfluence: '3/10',
  totalRewards: 6788139944106,
  activeStake: 40345374027017494n,
  pools: [Object: null prototype] {
    pool1qqyjr9pcrv97gwrueunug829fs5znw6p2wxft3fvqkgu5f4qlrg: [Object: null prototype] {
      stake: 100616666007318,
      ownerStake: 100542104007083,
      approximatePerformance: 0.095,
      poolParameters: [Object: null prototype]
    },
    pool1qqfnw2fwajdnam7xsqhhrje5cgd8jcltzfrx655rd23eqlxjfef: [Object: null prototype] {
      stake: 259315015731,
      ownerStake: 0,
      approximatePerformance: 0.885,
      poolParameters: [Object: null prototype]
    },
    pool1qqnjh80kudcjphrxftj74x22q3a4uvw8wknlxptgs7gdqtstqad: [Object: null prototype] {
      stake: 6656216905,
      ownerStake: 5192517102,
      approximatePerformance: 0.885,
      poolParameters: [Object: null prototype]
    },
    pool1qquwwu6680fr72y4779r2kpc7mxtch8rp2uhuqcc7v9p6q4f7ph: [Object: null prototype] {
      stake: 14325430533,
      ownerStake: 497623502,
      approximatePerformance: 0.885,
      poolParameters: [Object: null prototype]
    },
    pool1qptl80vq84xm28pt3t2lhpfzqag28csjhktxz5k6a74n260clmt: [Object: null prototype] {
      stake: 15279596302,
      ownerStake: 1497448189,
      approximatePerformance: 0.885,
      poolParameters: [Object: null prototype]
    },
    pool1qz2vzszautc2c8mljnqre2857dpmheq7kgt6vav0s38tvvhxm6w: [Object: null prototype] {
      stake: 19757967781,
      ownerStake: 197447705,
      approximatePerformance: 0.885,
      poolParameters: [Object: null prototype]
    },
   [...]
}

  In Ogmios, this query will be known as rewardProvenance', to makes it a bit clearer that it comes as a replacement of the now-deprecated rewardProvenance query.
…ess) to the docs

  user guide and API reference.
@KtorZ KtorZ self-assigned this Feb 12, 2022
@KtorZ KtorZ merged commit 55d9bda into master Feb 12, 2022
@KtorZ KtorZ deleted the KtorZ/171/reward-info-pool branch February 12, 2022 13:22
@JaredCorduan
Copy link

thank you @KtorZ !

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.

Individual poolProvenance missing from rewardsProvenance call
2 participants