Skip to content

Commit 7e3e633

Browse files
committed
v1.17.0
1 parent 100c068 commit 7e3e633

16 files changed

+812
-2
lines changed

.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ docs/ResponsesShortValidator.md
9595
docs/ResponsesSignalVersion.md
9696
docs/ResponsesSignedBlocks.md
9797
docs/ResponsesSizeGroup.md
98+
docs/ResponsesStakingDistributionItem.md
9899
docs/ResponsesState.md
99100
docs/ResponsesTPS.md
100101
docs/ResponsesTimeValueItem.md
@@ -188,6 +189,7 @@ model_responses_short_validator.go
188189
model_responses_signal_version.go
189190
model_responses_signed_blocks.go
190191
model_responses_size_group.go
192+
model_responses_staking_distribution_item.go
191193
model_responses_state.go
192194
model_responses_time_value_item.go
193195
model_responses_tps.go

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ Class | Method | HTTP request | Description
169169
*StatsAPI* | [**StatsSeriesCumulative**](docs/StatsAPI.md#statsseriescumulative) | **Get** /stats/series/{name}/{timeframe}/cumulative | Get cumulative histogram with precomputed stats
170170
*StatsAPI* | [**StatsSizeGroups**](docs/StatsAPI.md#statssizegroups) | **Get** /stats/size_groups | Get blobs count grouped by size
171171
*StatsAPI* | [**StatsSquareSize**](docs/StatsAPI.md#statssquaresize) | **Get** /stats/square_size | Get histogram for square size distribution
172+
*StatsAPI* | [**StatsStakingDistribution**](docs/StatsAPI.md#statsstakingdistribution) | **Get** /stats/staking/distribution | Get histogram for staking
172173
*StatsAPI* | [**StatsStakingSeries**](docs/StatsAPI.md#statsstakingseries) | **Get** /stats/staking/series/{id}/{name}/{timeframe} | Get histogram for staking with precomputed stats
173174
*StatsAPI* | [**StatsSummary**](docs/StatsAPI.md#statssummary) | **Get** /stats/summary/{table}/{function} | Get value by table and function
174175
*TransactionsAPI* | [**GetTransaction**](docs/TransactionsAPI.md#gettransaction) | **Get** /tx/{hash} | Get transaction by hash
@@ -260,6 +261,7 @@ Class | Method | HTTP request | Description
260261
- [ResponsesSignalVersion](docs/ResponsesSignalVersion.md)
261262
- [ResponsesSignedBlocks](docs/ResponsesSignedBlocks.md)
262263
- [ResponsesSizeGroup](docs/ResponsesSizeGroup.md)
264+
- [ResponsesStakingDistributionItem](docs/ResponsesStakingDistributionItem.md)
263265
- [ResponsesState](docs/ResponsesState.md)
264266
- [ResponsesTPS](docs/ResponsesTPS.md)
265267
- [ResponsesTimeValueItem](docs/ResponsesTimeValueItem.md)

api/openapi.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1888,6 +1888,11 @@ paths:
18881888
required: true
18891889
schema:
18901890
type: string
1891+
- description: Comma-separated array of share versions. Default is 0
1892+
in: query
1893+
name: versions
1894+
schema:
1895+
type: string
18911896
responses:
18921897
"200":
18931898
content:
@@ -4877,6 +4882,43 @@ paths:
48774882
summary: Get histogram for square size distribution
48784883
tags:
48794884
- stats
4885+
/stats/staking/distribution:
4886+
get:
4887+
description: Get histogram for staking
4888+
operationId: stats-staking-distribution
4889+
parameters:
4890+
- description: Time from in unix timestamp
4891+
in: query
4892+
name: from
4893+
schema:
4894+
type: integer
4895+
- description: Time to in unix timestamp
4896+
in: query
4897+
name: to
4898+
schema:
4899+
type: integer
4900+
responses:
4901+
"200":
4902+
content:
4903+
application/json:
4904+
schema:
4905+
$ref: "#/components/schemas/responses.StakingDistribution"
4906+
description: OK
4907+
"400":
4908+
content:
4909+
application/json:
4910+
schema:
4911+
$ref: "#/components/schemas/handler.Error"
4912+
description: Bad Request
4913+
"500":
4914+
content:
4915+
application/json:
4916+
schema:
4917+
$ref: "#/components/schemas/handler.Error"
4918+
description: Internal Server Error
4919+
summary: Get histogram for staking
4920+
tags:
4921+
- stats
48804922
/stats/staking/series/{id}/{name}/{timeframe}:
48814923
get:
48824924
description: Get histogram for staking with precomputed stats by series name
@@ -6453,6 +6495,7 @@ components:
64536495
logo: https://some_link.com/image.png
64546496
id: 321
64556497
slug: rollup_slug
6498+
share_version: 0
64566499
signer:
64576500
celestials:
64586501
image_url: https://ipfs.io/ipfs/QmUi269vE25fagqhyMCCTNSoiW6x4LHCwwQb3keSrEXAmC
@@ -6481,6 +6524,10 @@ components:
64816524
$ref: "#/components/schemas/responses.Namespace"
64826525
rollup:
64836526
$ref: "#/components/schemas/responses.ShortRollup"
6527+
share_version:
6528+
example: 0
6529+
format: integer
6530+
type: integer
64846531
signer:
64856532
$ref: "#/components/schemas/responses.ShortAddress"
64866533
size:
@@ -7962,6 +8009,7 @@ components:
79628009
id: 200
79638010
time: 2023-07-04T03:10:57Z
79648011
height: 100
8012+
share_version: 0
79658013
signer:
79668014
celestials:
79678015
image_url: https://ipfs.io/ipfs/QmUi269vE25fagqhyMCCTNSoiW6x4LHCwwQb3keSrEXAmC
@@ -7990,6 +8038,10 @@ components:
79908038
example: AAAAAAAAAAAAAAAAAAAAAAAAAAAAs2bWWU6FOB0=
79918039
format: base64
79928040
type: string
8041+
share_version:
8042+
example: 0
8043+
format: integer
8044+
type: integer
79938045
signer:
79948046
$ref: "#/components/schemas/responses.ShortAddress"
79958047
size:
@@ -9376,6 +9428,27 @@ components:
93769428
$ref: "#/components/schemas/responses.TimeValueItem"
93779429
type: array
93789430
type: object
9431+
responses.StakingDistribution:
9432+
additionalProperties:
9433+
items:
9434+
$ref: "#/components/schemas/responses.StakingDistributionItem"
9435+
type: array
9436+
type: object
9437+
responses.StakingDistributionItem:
9438+
properties:
9439+
percent:
9440+
example: "0.17632"
9441+
format: string
9442+
type: string
9443+
time:
9444+
example: 2023-07-04T03:10:57Z
9445+
format: date-time
9446+
type: string
9447+
value:
9448+
example: "0.17632"
9449+
format: string
9450+
type: string
9451+
type: object
93799452
responses.State:
93809453
example:
93819454
synced: true
@@ -9747,6 +9820,7 @@ components:
97479820
type: object
97489821
responses.Validator:
97499822
example:
9823+
creation_time: 2025-07-04T03:10:57Z
97509824
website: https://www.easy2stake.com/
97519825
address:
97529826
celestials:
@@ -9791,6 +9865,10 @@ components:
97919865
contacts:
97929866
example: security@0xfury.com
97939867
type: string
9868+
creation_time:
9869+
example: 2025-07-04T03:10:57Z
9870+
format: date-time
9871+
type: string
97949872
delegator:
97959873
$ref: "#/components/schemas/responses.ShortAddress"
97969874
details:

api_gas.go

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

api_stats.go

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

docs/GasAPI.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Method | HTTP request | Description
1212

1313
## GasEstimateForPfb
1414

15-
> int32 GasEstimateForPfb(ctx).Sizes(sizes).Execute()
15+
> int32 GasEstimateForPfb(ctx).Sizes(sizes).Versions(versions).Execute()
1616
1717
Get estimated gas for pay for blob
1818

@@ -32,10 +32,11 @@ import (
3232

3333
func main() {
3434
sizes := "sizes_example" // string | Comma-separated array of blob sizes
35+
versions := "versions_example" // string | Comma-separated array of share versions. Default is 0 (optional)
3536

3637
configuration := openapiclient.NewConfiguration()
3738
apiClient := openapiclient.NewAPIClient(configuration)
38-
resp, r, err := apiClient.GasAPI.GasEstimateForPfb(context.Background()).Sizes(sizes).Execute()
39+
resp, r, err := apiClient.GasAPI.GasEstimateForPfb(context.Background()).Sizes(sizes).Versions(versions).Execute()
3940
if err != nil {
4041
fmt.Fprintf(os.Stderr, "Error when calling `GasAPI.GasEstimateForPfb``: %v\n", err)
4142
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
@@ -57,6 +58,7 @@ Other parameters are passed through a pointer to a apiGasEstimateForPfbRequest s
5758
Name | Type | Description | Notes
5859
------------- | ------------- | ------------- | -------------
5960
**sizes** | **string** | Comma-separated array of blob sizes |
61+
**versions** | **string** | Comma-separated array of share versions. Default is 0 |
6062

6163
### Return type
6264

0 commit comments

Comments
 (0)