Skip to content

Commit

Permalink
Add IncentiveEligible field to accounts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jannotti committed Nov 30, 2023
1 parent 927c31e commit 24b013e
Show file tree
Hide file tree
Showing 19 changed files with 1,176 additions and 1,075 deletions.
4 changes: 4 additions & 0 deletions daemon/algod/api/algod.oas2.json
Original file line number Diff line number Diff line change
Expand Up @@ -2983,6 +2983,10 @@
"participation": {
"$ref": "#/definitions/AccountParticipation"
},
"incentive-eligible": {
"description": "Whether or not the account can receive block incentives if its balance is in range at proposal time.",
"type": "boolean"
},
"pending-rewards": {
"description": "amount of MicroAlgos of pending rewards in this account.",
"type": "integer"
Expand Down
4 changes: 4 additions & 0 deletions daemon/algod/api/algod.oas3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,10 @@
},
"type": "array"
},
"incentive-eligible": {
"description": "Whether or not the account can receive block incentives if its balance is in range at proposal time.",
"type": "boolean"
},
"min-balance": {
"description": "MicroAlgo balance required by the account.\n\nThe requirement grows based on asset and application usage.",
"type": "integer"
Expand Down
1 change: 1 addition & 0 deletions daemon/algod/api/server/v2/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func AccountDataToAccount(
Status: record.Status.String(),
RewardBase: &record.RewardsBase,
Participation: apiParticipation,
IncentiveEligible: omitEmpty(record.IncentiveEligible),
CreatedAssets: &createdAssets,
TotalCreatedAssets: uint64(len(createdAssets)),
CreatedApps: &createdApps,
Expand Down
407 changes: 204 additions & 203 deletions daemon/algod/api/server/v2/generated/data/routes.go

Large diffs are not rendered by default.

253 changes: 127 additions & 126 deletions daemon/algod/api/server/v2/generated/experimental/routes.go

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions daemon/algod/api/server/v2/generated/model/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

259 changes: 130 additions & 129 deletions daemon/algod/api/server/v2/generated/nonparticipating/private/routes.go

Large diffs are not rendered by default.

407 changes: 204 additions & 203 deletions daemon/algod/api/server/v2/generated/nonparticipating/public/routes.go

Large diffs are not rendered by default.

419 changes: 210 additions & 209 deletions daemon/algod/api/server/v2/generated/participating/private/routes.go

Large diffs are not rendered by default.

276 changes: 138 additions & 138 deletions daemon/algod/api/server/v2/generated/participating/public/routes.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions daemon/algod/api/server/v2/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,7 @@ func (v2 *Handlers) basicAccountInformation(ctx echo.Context, addr basics.Addres
Status: record.Status.String(),
RewardBase: &record.RewardsBase,
Participation: apiParticipation,
IncentiveEligible: omitEmpty(record.IncentiveEligible),

Check warning on line 528 in daemon/algod/api/server/v2/handlers.go

View check run for this annotation

Codecov / codecov/patch

daemon/algod/api/server/v2/handlers.go#L528

Added line #L528 was not covered by tests
TotalCreatedAssets: record.TotalAssetParams,
TotalCreatedApps: record.TotalAppParams,
TotalAssetsOptedIn: record.TotalAssets,
Expand Down
Loading

0 comments on commit 24b013e

Please sign in to comment.