Skip to content

Commit b7e738b

Browse files
committed
v1.15.30
1 parent e2694c1 commit b7e738b

File tree

6 files changed

+148
-19
lines changed

6 files changed

+148
-19
lines changed

api/openapi.yaml

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3277,6 +3277,12 @@ paths:
32773277
description: Get proposal's votes
32783278
operationId: proposal-votes
32793279
parameters:
3280+
- description: Internal identity
3281+
in: path
3282+
name: id
3283+
required: true
3284+
schema:
3285+
type: integer
32803286
- description: Count of requested entities
32813287
in: query
32823288
name: limit
@@ -3289,7 +3295,7 @@ paths:
32893295
schema:
32903296
type: integer
32913297
- description: Option
3292-
in: path
3298+
in: query
32933299
name: option
32943300
required: true
32953301
schema:
@@ -3300,14 +3306,28 @@ paths:
33003306
- abstain
33013307
type: string
33023308
- description: Voter type
3303-
in: path
3309+
in: query
33043310
name: voter
33053311
required: true
33063312
schema:
33073313
enum:
33083314
- address
33093315
- validator
33103316
type: string
3317+
- description: Voter address
3318+
in: query
3319+
name: address
3320+
schema:
3321+
maxLength: 47
3322+
minLength: 47
3323+
type: string
3324+
- description: Voter address
3325+
in: query
3326+
name: validator
3327+
schema:
3328+
maxLength: 54
3329+
minLength: 54
3330+
type: string
33113331
responses:
33123332
"200":
33133333
content:
@@ -8255,6 +8275,7 @@ components:
82558275
created_at: 2023-07-04T03:10:57Z
82568276
description: Some proposal description
82578277
threshold: "0.33"
8278+
error: Some error text
82588279
title: Proposal title
82598280
type: param_changed
82608281
abstain_vals: 1234
@@ -8327,6 +8348,10 @@ components:
83278348
example: 2023-07-04T03:10:57Z
83288349
format: date-time
83298350
type: string
8351+
error:
8352+
example: Some error text
8353+
format: string
8354+
type: string
83308355
height:
83318356
example: 100
83328357
format: int64

api_proposal.go

Lines changed: 47 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/ProposalAPI.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ No authorization required
158158

159159
## ProposalVotes
160160

161-
> []ResponsesVote ProposalVotes(ctx, option, voter).Limit(limit).Offset(offset).Execute()
161+
> []ResponsesVote ProposalVotes(ctx, id).Option(option).Voter(voter).Limit(limit).Offset(offset).Address(address).Validator(validator).Execute()
162162
163163
Get proposal's votes
164164

@@ -177,14 +177,17 @@ import (
177177
)
178178

179179
func main() {
180+
id := int32(56) // int32 | Internal identity
180181
option := "option_example" // string | Option
181182
voter := "voter_example" // string | Voter type
182183
limit := int32(56) // int32 | Count of requested entities (optional)
183184
offset := int32(56) // int32 | Offset (optional)
185+
address := "address_example" // string | Voter address (optional)
186+
validator := "validator_example" // string | Voter address (optional)
184187

185188
configuration := openapiclient.NewConfiguration()
186189
apiClient := openapiclient.NewAPIClient(configuration)
187-
resp, r, err := apiClient.ProposalAPI.ProposalVotes(context.Background(), option, voter).Limit(limit).Offset(offset).Execute()
190+
resp, r, err := apiClient.ProposalAPI.ProposalVotes(context.Background(), id).Option(option).Voter(voter).Limit(limit).Offset(offset).Address(address).Validator(validator).Execute()
188191
if err != nil {
189192
fmt.Fprintf(os.Stderr, "Error when calling `ProposalAPI.ProposalVotes``: %v\n", err)
190193
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -200,8 +203,7 @@ func main() {
200203
Name | Type | Description | Notes
201204
------------- | ------------- | ------------- | -------------
202205
**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
203-
**option** | **string** | Option |
204-
**voter** | **string** | Voter type |
206+
**id** | **int32** | Internal identity |
205207

206208
### Other Parameters
207209

@@ -211,9 +213,12 @@ Other parameters are passed through a pointer to a apiProposalVotesRequest struc
211213
Name | Type | Description | Notes
212214
------------- | ------------- | ------------- | -------------
213215

214-
216+
**option** | **string** | Option |
217+
**voter** | **string** | Voter type |
215218
**limit** | **int32** | Count of requested entities |
216219
**offset** | **int32** | Offset |
220+
**address** | **string** | Voter address |
221+
**validator** | **string** | Voter address |
217222

218223
### Return type
219224

docs/ResponsesProposal.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**DepositTime** | Pointer to **time.Time** | | [optional]
1515
**Description** | Pointer to **string** | | [optional]
1616
**EndTime** | Pointer to **time.Time** | | [optional]
17+
**Error** | Pointer to **string** | | [optional]
1718
**Height** | Pointer to **int64** | | [optional]
1819
**Id** | Pointer to **int64** | | [optional]
1920
**Metadata** | Pointer to **string** | | [optional]
@@ -310,6 +311,31 @@ SetEndTime sets EndTime field to given value.
310311

311312
HasEndTime returns a boolean if a field has been set.
312313

314+
### GetError
315+
316+
`func (o *ResponsesProposal) GetError() string`
317+
318+
GetError returns the Error field if non-nil, zero value otherwise.
319+
320+
### GetErrorOk
321+
322+
`func (o *ResponsesProposal) GetErrorOk() (*string, bool)`
323+
324+
GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise
325+
and a boolean to check if the value has been set.
326+
327+
### SetError
328+
329+
`func (o *ResponsesProposal) SetError(v string)`
330+
331+
SetError sets Error field to given value.
332+
333+
### HasError
334+
335+
`func (o *ResponsesProposal) HasError() bool`
336+
337+
HasError returns a boolean if a field has been set.
338+
313339
### GetHeight
314340

315341
`func (o *ResponsesProposal) GetHeight() int64`

model_responses_proposal.go

Lines changed: 36 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/api_proposal_test.go

Lines changed: 2 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)