Skip to content

Commit

Permalink
Merge pull request #195 from blockfrost/1000101/reward_types
Browse files Browse the repository at this point in the history
feat(accounts): differentiate between reward types
  • Loading branch information
mmahut authored Mar 24, 2022
2 parents fb1816e + ea32f54 commit 6cc42d6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project will adhere to [Semantic Versioning](https://semver.org/spec/v2

## [Unreleased]

### Added

- `type` property to `/accounts/{stake_address}/rewards` endpoint

## [0.1.36] - 2021-12-21

### Added
Expand Down
12 changes: 12 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6251,23 +6251,35 @@ components:
pool_id:
type: string
description: Bech32 pool ID being delegated to
type:
type: string
enum:
- leader
- member
- refund
description: Type of the reward
required:
- epoch
- amount
- pool_id
- type
example:
- epoch: 215
amount: '12695385'
pool_id: pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy
type: member
- epoch: 216
amount: '3586329'
pool_id: pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy
type: member
- epoch: 217
amount: '0'
pool_id: pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy
type: member
- epoch: 218
amount: '1395265'
pool_id: pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy
type: member
account_history_content:
type: array
items:
Expand Down
12 changes: 12 additions & 0 deletions src/schemas/accounts/account_reward_content.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,32 @@ items:
pool_id:
type: string
description: Bech32 pool ID being delegated to
type:
type: string
enum:
- leader
- member
- refund
description: Type of the reward
required:
- epoch
- amount
- pool_id
- type
example:
- epoch: 215
amount: "12695385"
pool_id: "pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy"
type: member
- epoch: 216
amount: "3586329"
pool_id: "pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy"
type: member
- epoch: 217
amount: "0"
pool_id: "pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy"
type: member
- epoch: 218
amount: "1395265"
pool_id: "pool1pu5jlj4q9w9jlxeu370a3c9myx47md5j5m2str0naunn2q3lkdy"
type: member

0 comments on commit 6cc42d6

Please sign in to comment.