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

Add explicit generation fields #18

Merged
merged 1 commit into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 17 additions & 20 deletions docs/openapi/orchestration.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,23 @@
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/StakingServicePerformWorkflowStepBody"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure why this change showed up. Underlying package update is my best guess. I verified that they're functionally the same though.

"type": "object",
"properties": {
"step": {
"type": "integer",
"format": "int32",
"description": "The index of the step to be performed."
},
"data": {
"type": "string",
"description": "Transaction metadata. This is either the signed transaction or transaction hash depending on the workflow's broadcast method."
}
},
"description": "The request message for PerformWorkflowStep.",
"required": [
"step",
"data"
]
}
}
],
Expand Down Expand Up @@ -729,25 +745,6 @@
"default": "BALANCE_STATE_UNSPECIFIED",
"description": "Represents the different states a stake account balance can have.\nUsed to check to see if stake is actively earning rewards or ready to be withdrawn.\n\n - BALANCE_STATE_UNSPECIFIED: The balance is not known.\n - BALANCE_STATE_INACTIVE: The balance is not actively staking.\n - BALANCE_STATE_ACTIVATING: The balance is in a warm up period and will activate in the next epoch.\n - BALANCE_STATE_ACTIVE: The balance is actively staking and earning rewards.\n - BALANCE_STATE_DEACTIVATING: The balance is in a cool down period and will be deactivated in the next epoch."
},
"StakingServicePerformWorkflowStepBody": {
"type": "object",
"properties": {
"step": {
"type": "integer",
"format": "int32",
"description": "The index of the step to be performed."
},
"data": {
"type": "string",
"description": "Transaction metadata. This is either the signed transaction or transaction hash depending on the workflow's broadcast method."
}
},
"description": "The request message for PerformWorkflowStep.",
"required": [
"step",
"data"
]
},
"WaitStepOutputWaitUnit": {
"type": "string",
"enum": [
Expand Down
6 changes: 3 additions & 3 deletions docs/openapi/rewards.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@
},
"date": {
"type": "string",
"description": "The date of the reward in format 'YYYY-MM-DD' in UTC.",
"title": "The date of the reward in format 'YYYY-MM-DD' in UTC.",
"readOnly": true
},
"aggregationUnit": {
Expand Down Expand Up @@ -454,7 +454,7 @@
"readOnly": true
}
},
"description": "Rewards earned within a particular period of time."
"title": "Rewards earned within a particular period of time."
},
"v1RewardRate": {
"type": "object",
Expand Down Expand Up @@ -537,7 +537,7 @@
"readOnly": true
}
},
"description": "The representation of a staking activity at a particular point in time."
"title": "The representation of a staking activity at a particular point in time."
},
"v1USDValue": {
"type": "object",
Expand Down
5 changes: 5 additions & 0 deletions protos/buf.gen.rewards.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ plugins:
opt:
- allow_merge=true
- merge_file_name=rewards
- Mcoinbase/staking/rewards/v1/reward_service.proto=github.com/coinbase/staking-client-library-ts
- Mcoinbase/staking/rewards/v1/reward.proto=github.com/coinbase/staking-client-library-ts
- Mcoinbase/staking/rewards/v1/stake.proto=github.com/coinbase/staking-client-library-ts
- Mcoinbase/staking/rewards/v1/common.proto=github.com/coinbase/staking-client-library-ts
- Mcoinbase/staking/rewards/v1/protocol.proto=github.com/coinbase/staking-client-library-ts
Loading