Skip to content

Commit a0b606a

Browse files
committed
v1.12.1
1 parent ec77c5b commit a0b606a

20 files changed

+2082
-2
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ docs/ResponsesValidatorCount.md
8181
docs/ResponsesValidatorUptime.md
8282
docs/ResponsesVesting.md
8383
docs/ResponsesVestingPeriod.md
84+
docs/ResponsesVote.md
8485
docs/RollupAPI.md
8586
docs/SearchAPI.md
8687
docs/StatsAPI.md
@@ -151,6 +152,7 @@ model_responses_validator_count.go
151152
model_responses_validator_uptime.go
152153
model_responses_vesting.go
153154
model_responses_vesting_period.go
155+
model_responses_vote.go
154156
model_types_event_type.go
155157
model_types_msg_address_type.go
156158
model_types_msg_type.go

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Class | Method | HTTP request | Description
9090
*AddressAPI* | [**AddressTransactions**](docs/AddressAPI.md#addresstransactions) | **Get** /address/{hash}/txs | Get address transactions
9191
*AddressAPI* | [**AddressUndelegations**](docs/AddressAPI.md#addressundelegations) | **Get** /address/{hash}/undelegations | Get undelegations made by address
9292
*AddressAPI* | [**AddressVesting**](docs/AddressAPI.md#addressvesting) | **Get** /address/{hash}/vestings | Get vesting for address
93+
*AddressAPI* | [**AddressVotes**](docs/AddressAPI.md#addressvotes) | **Get** /address/{hash}/votes | Get list of votes for address
9394
*AddressAPI* | [**GetAddress**](docs/AddressAPI.md#getaddress) | **Get** /address/{hash} | Get address info
9495
*AddressAPI* | [**GetAddressCount**](docs/AddressAPI.md#getaddresscount) | **Get** /address/count | Get count of addresses in network
9596
*AddressAPI* | [**ListAddress**](docs/AddressAPI.md#listaddress) | **Get** /address | List address info
@@ -119,7 +120,9 @@ Class | Method | HTTP request | Description
119120
*NamespaceAPI* | [**GetNamespaceMessages**](docs/NamespaceAPI.md#getnamespacemessages) | **Get** /namespace/{id}/{version}/messages | Get namespace messages by id and version
120121
*NamespaceAPI* | [**GetNamespaceRollups**](docs/NamespaceAPI.md#getnamespacerollups) | **Get** /namespace/{id}/{version}/rollups | List rollups using the namespace
121122
*NamespaceAPI* | [**ListNamespace**](docs/NamespaceAPI.md#listnamespace) | **Get** /namespace | List namespace info
123+
*ProposalAPI* | [**GetProposal**](docs/ProposalAPI.md#getproposal) | **Get** /proposal/{id} | Get proposal info
122124
*ProposalAPI* | [**ListProposal**](docs/ProposalAPI.md#listproposal) | **Get** /proposal | List proposal info
125+
*ProposalAPI* | [**ProposalVotes**](docs/ProposalAPI.md#proposalvotes) | **Get** /proposal/{id}/votes | Get proposal's votes
123126
*RollupAPI* | [**GetRollup**](docs/RollupAPI.md#getrollup) | **Get** /rollup/{id} | Get rollup info
124127
*RollupAPI* | [**GetRollupAllSeries**](docs/RollupAPI.md#getrollupallseries) | **Get** /rollup/stats/series/{timeframe} | Get series for all rollups
125128
*RollupAPI* | [**GetRollupBlobs**](docs/RollupAPI.md#getrollupblobs) | **Get** /rollup/{id}/blobs | Get rollup blobs
@@ -159,6 +162,7 @@ Class | Method | HTTP request | Description
159162
*ValidatorAPI* | [**ValidatorCount**](docs/ValidatorAPI.md#validatorcount) | **Get** /validators/count | Get validator's count by status
160163
*ValidatorAPI* | [**ValidatorDelegators**](docs/ValidatorAPI.md#validatordelegators) | **Get** /validators/{id}/delegators | Get validator's delegators
161164
*ValidatorAPI* | [**ValidatorJails**](docs/ValidatorAPI.md#validatorjails) | **Get** /validators/{id}/jails | Get validator's jails
165+
*ValidatorAPI* | [**ValidatorVotes**](docs/ValidatorAPI.md#validatorvotes) | **Get** /validators/{id}/votes | Get list of votes for validator
162166
*VestingAPI* | [**GetVestingPeriods**](docs/VestingAPI.md#getvestingperiods) | **Get** /vesting/{id}/periods | Periods vesting periods by id
163167

164168

@@ -222,6 +226,7 @@ Class | Method | HTTP request | Description
222226
- [ResponsesValidatorUptime](docs/ResponsesValidatorUptime.md)
223227
- [ResponsesVesting](docs/ResponsesVesting.md)
224228
- [ResponsesVestingPeriod](docs/ResponsesVestingPeriod.md)
229+
- [ResponsesVote](docs/ResponsesVote.md)
225230
- [TypesEventType](docs/TypesEventType.md)
226231
- [TypesMsgAddressType](docs/TypesMsgAddressType.md)
227232
- [TypesMsgType](docs/TypesMsgType.md)

api/openapi.yaml

Lines changed: 272 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,6 +943,56 @@ paths:
943943
summary: Get vesting for address
944944
tags:
945945
- address
946+
/address/{hash}/votes:
947+
get:
948+
description: Get list of votes for address
949+
operationId: address-votes
950+
parameters:
951+
- description: Hash
952+
in: path
953+
name: hash
954+
required: true
955+
schema:
956+
maxLength: 47
957+
minLength: 47
958+
type: string
959+
- description: Count of requested entities
960+
in: query
961+
name: limit
962+
schema:
963+
maximum: 100
964+
minimum: 1
965+
type: integer
966+
- description: Offset
967+
in: query
968+
name: offset
969+
schema:
970+
minimum: 1
971+
type: integer
972+
responses:
973+
"200":
974+
content:
975+
application/json:
976+
schema:
977+
items:
978+
$ref: '#/components/schemas/responses.Vote'
979+
type: array
980+
description: OK
981+
"400":
982+
content:
983+
application/json:
984+
schema:
985+
$ref: '#/components/schemas/handler.Error'
986+
description: Bad Request
987+
"500":
988+
content:
989+
application/json:
990+
schema:
991+
$ref: '#/components/schemas/handler.Error'
992+
description: Internal Server Error
993+
summary: Get list of votes for address
994+
tags:
995+
- address
946996
/blob:
947997
get:
948998
description: Returns blobs
@@ -2276,6 +2326,102 @@ paths:
22762326
summary: List proposal info
22772327
tags:
22782328
- proposal
2329+
/proposal/{id}:
2330+
get:
2331+
description: Get proposal info
2332+
operationId: get-proposal
2333+
parameters:
2334+
- description: Internal identity
2335+
in: path
2336+
name: id
2337+
required: true
2338+
schema:
2339+
type: integer
2340+
responses:
2341+
"200":
2342+
content:
2343+
application/json:
2344+
schema:
2345+
$ref: '#/components/schemas/responses.Proposal'
2346+
description: OK
2347+
"204":
2348+
content: {}
2349+
description: No Content
2350+
"400":
2351+
content:
2352+
application/json:
2353+
schema:
2354+
$ref: '#/components/schemas/handler.Error'
2355+
description: Bad Request
2356+
"500":
2357+
content:
2358+
application/json:
2359+
schema:
2360+
$ref: '#/components/schemas/handler.Error'
2361+
description: Internal Server Error
2362+
summary: Get proposal info
2363+
tags:
2364+
- proposal
2365+
/proposal/{id}/votes:
2366+
get:
2367+
description: Get proposal's votes
2368+
operationId: proposal-votes
2369+
parameters:
2370+
- description: Count of requested entities
2371+
in: query
2372+
name: limit
2373+
schema:
2374+
maximum: 100
2375+
type: integer
2376+
- description: Offset
2377+
in: query
2378+
name: offset
2379+
schema:
2380+
type: integer
2381+
- description: Option
2382+
in: path
2383+
name: option
2384+
required: true
2385+
schema:
2386+
enum:
2387+
- "yes"
2388+
- "no"
2389+
- no_with_veto
2390+
- abstain
2391+
type: string
2392+
- description: Voter type
2393+
in: path
2394+
name: voter
2395+
required: true
2396+
schema:
2397+
enum:
2398+
- address
2399+
- validator
2400+
type: string
2401+
responses:
2402+
"200":
2403+
content:
2404+
application/json:
2405+
schema:
2406+
items:
2407+
$ref: '#/components/schemas/responses.Vote'
2408+
type: array
2409+
description: OK
2410+
"400":
2411+
content:
2412+
application/json:
2413+
schema:
2414+
$ref: '#/components/schemas/handler.Error'
2415+
description: Bad Request
2416+
"500":
2417+
content:
2418+
application/json:
2419+
schema:
2420+
$ref: '#/components/schemas/handler.Error'
2421+
description: Internal Server Error
2422+
summary: Get proposal's votes
2423+
tags:
2424+
- proposal
22792425
/rollup:
22802426
get:
22812427
description: List rollups info
@@ -2330,6 +2476,11 @@ paths:
23302476
name: provider
23312477
schema:
23322478
type: string
2479+
- description: "If true, shows rollups with activity over the last month"
2480+
in: query
2481+
name: is_active
2482+
schema:
2483+
type: boolean
23332484
responses:
23342485
"200":
23352486
content:
@@ -4383,6 +4534,54 @@ paths:
43834534
summary: Get validator's uptime and history of signed block
43844535
tags:
43854536
- validator
4537+
/validators/{id}/votes:
4538+
get:
4539+
description: Get list of votes for validator
4540+
operationId: validator-votes
4541+
parameters:
4542+
- description: Internal validator id
4543+
in: path
4544+
name: id
4545+
required: true
4546+
schema:
4547+
type: integer
4548+
- description: Count of requested entities
4549+
in: query
4550+
name: limit
4551+
schema:
4552+
maximum: 100
4553+
minimum: 1
4554+
type: integer
4555+
- description: Offset
4556+
in: query
4557+
name: offset
4558+
schema:
4559+
minimum: 1
4560+
type: integer
4561+
responses:
4562+
"200":
4563+
content:
4564+
application/json:
4565+
schema:
4566+
items:
4567+
$ref: '#/components/schemas/responses.Vote'
4568+
type: array
4569+
description: OK
4570+
"400":
4571+
content:
4572+
application/json:
4573+
schema:
4574+
$ref: '#/components/schemas/handler.Error'
4575+
description: Bad Request
4576+
"500":
4577+
content:
4578+
application/json:
4579+
schema:
4580+
$ref: '#/components/schemas/handler.Error'
4581+
description: Internal Server Error
4582+
summary: Get list of votes for validator
4583+
tags:
4584+
- validator
43864585
/vesting/{id}/periods:
43874586
get:
43884587
description: Periods vesting periods by id. Returns not empty array only for
@@ -5095,6 +5294,9 @@ components:
50955294
proposal_status:
50965295
- proposal_status
50975296
- proposal_status
5297+
vote_type:
5298+
- vote_type
5299+
- vote_type
50985300
rollup_type:
50995301
- rollup_type
51005302
- rollup_type
@@ -5113,6 +5315,9 @@ components:
51135315
tags:
51145316
- tags
51155317
- tags
5318+
vote_option:
5319+
- vote_option
5320+
- vote_option
51165321
properties:
51175322
categories:
51185323
items:
@@ -5150,6 +5355,14 @@ components:
51505355
items:
51515356
type: string
51525357
type: array
5358+
vote_option:
5359+
items:
5360+
type: string
5361+
type: array
5362+
vote_type:
5363+
items:
5364+
type: string
5365+
type: array
51535366
type: object
51545367
responses.Event:
51555368
example:
@@ -6308,6 +6521,7 @@ components:
63086521
slug: rollup_slug
63096522
github: https://github.com/account
63106523
website: https://website.com
6524+
is_active: true
63116525
size_pct: 0.9876
63126526
tags:
63136527
- tags
@@ -6384,6 +6598,10 @@ components:
63846598
example: 321
63856599
format: integer
63866600
type: integer
6601+
is_active:
6602+
example: true
6603+
format: boolean
6604+
type: boolean
63876605
l2_beat:
63886606
example: https://l2beat.com/scaling/projects/karak
63896607
format: string
@@ -7087,6 +7305,60 @@ components:
70877305
format: date-time
70887306
type: string
70897307
type: object
7308+
responses.Vote:
7309+
example:
7310+
proposal_id: 2
7311+
voter_id: 1
7312+
validator:
7313+
cons_address: E641C7A2C964833E556AEF934FBF166B712874B6
7314+
id: 321
7315+
moniker: Easy 2 Stake
7316+
weight: 12345678
7317+
deposit_time: 2023-07-04T03:10:57Z
7318+
id: 321
7319+
voter:
7320+
celestials:
7321+
image_url: https://ipfs.io/ipfs/QmUi269vE25fagqhyMCCTNSoiW6x4LHCwwQb3keSrEXAmC
7322+
name: name
7323+
primary: true
7324+
status: VERIFIED
7325+
hash: celestia1jc92qdnty48pafummfr8ava2tjtuhfdw774w60
7326+
height: 100
7327+
status: "yes"
7328+
properties:
7329+
deposit_time:
7330+
example: 2023-07-04T03:10:57Z
7331+
format: date-time
7332+
type: string
7333+
height:
7334+
example: 100
7335+
format: int64
7336+
type: integer
7337+
id:
7338+
example: 321
7339+
format: int64
7340+
type: integer
7341+
proposal_id:
7342+
example: 2
7343+
format: int64
7344+
type: integer
7345+
status:
7346+
example: "yes"
7347+
format: string
7348+
type: string
7349+
validator:
7350+
$ref: '#/components/schemas/responses.ShortValidator'
7351+
voter:
7352+
$ref: '#/components/schemas/responses.ShortAddress'
7353+
voter_id:
7354+
example: 1
7355+
format: int64
7356+
type: integer
7357+
weight:
7358+
example: 12345678
7359+
format: int64
7360+
type: integer
7361+
type: object
70907362
types.EventType:
70917363
enum:
70927364
- unknown

0 commit comments

Comments
 (0)