Skip to content

Commit

Permalink
Add explicit generation fields (#18)
Browse files Browse the repository at this point in the history
The previous generation relied on `go_package` fields in the
`coinbase.staking.rewards` package, which we removed. This change
ensures the generation still works.
  • Loading branch information
ProfMoo authored Apr 26, 2024
1 parent 55d630f commit 6cb7e6e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
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"
"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

0 comments on commit 6cb7e6e

Please sign in to comment.