Skip to content

Commit a552c5f

Browse files
committed
v1.10.11
1 parent 9070ef9 commit a552c5f

11 files changed

+430
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ Class | Method | HTTP request | Description
108108
*NamespaceAPI* | [**GetBlob**](docs/NamespaceAPI.md#getblob) | **Post** /blob | Get namespace blob by commitment on height
109109
*NamespaceAPI* | [**GetBlobLogs**](docs/NamespaceAPI.md#getbloblogs) | **Get** /namespace/{id}/{version}/blobs | Get blob changes for namespace
110110
*NamespaceAPI* | [**GetBlobMetadata**](docs/NamespaceAPI.md#getblobmetadata) | **Post** /blob/metadata | Get blob metadata by commitment on height
111+
*NamespaceAPI* | [**GetBlobProof**](docs/NamespaceAPI.md#getblobproof) | **Get** /blob/proofs | Get blob inclusion proofs
111112
*NamespaceAPI* | [**GetBlobs**](docs/NamespaceAPI.md#getblobs) | **Get** /blob | List all blobs with filters
112113
*NamespaceAPI* | [**GetNamespace**](docs/NamespaceAPI.md#getnamespace) | **Get** /namespace/{id} | Get namespace info
113114
*NamespaceAPI* | [**GetNamespaceActive**](docs/NamespaceAPI.md#getnamespaceactive) | **Get** /namespace/active | Get last used namespace

api/openapi.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,34 @@ paths:
10321032
tags:
10331033
- namespace
10341034
x-codegen-request-body-name: request
1035+
/blob/proofs:
1036+
get:
1037+
description: Returns blob inclusion proofs
1038+
operationId: get-blob-proof
1039+
requestBody:
1040+
content:
1041+
application/json:
1042+
schema:
1043+
$ref: '#/components/schemas/handler.postBlobRequest'
1044+
description: "Request body containing height, commitment and namespace hash"
1045+
required: true
1046+
responses:
1047+
"200":
1048+
content:
1049+
application/json:
1050+
schema:
1051+
$ref: '#/components/schemas/responses.BlobLog'
1052+
description: OK
1053+
"400":
1054+
content:
1055+
application/json:
1056+
schema:
1057+
$ref: '#/components/schemas/handler.Error'
1058+
description: Bad Request
1059+
summary: Get blob inclusion proofs
1060+
tags:
1061+
- namespace
1062+
x-codegen-request-body-name: request
10351063
/block:
10361064
get:
10371065
description: List blocks info
@@ -5576,6 +5604,7 @@ components:
55765604
github: https://github.com/account
55775605
stack: op_stack
55785606
website: https://website.com
5607+
defi_lama: Manta
55795608
description: Long rollup description
55805609
type: settled
55815610
twitter: https://x.com/account
@@ -5606,6 +5635,10 @@ components:
56065635
example: zip
56075636
format: string
56085637
type: string
5638+
defi_lama:
5639+
example: Manta
5640+
format: string
5641+
type: string
56095642
description:
56105643
example: Long rollup description
56115644
format: string
@@ -5763,6 +5796,7 @@ components:
57635796
example:
57645797
namespace_count: 100
57655798
stack: op_stack
5799+
defi_lama: Manta
57665800
description: Long rollup description
57675801
type: settled
57685802
blobs_count: 100
@@ -5813,6 +5847,10 @@ components:
58135847
example: zip
58145848
format: string
58155849
type: string
5850+
defi_lama:
5851+
example: Manta
5852+
format: string
5853+
type: string
58165854
description:
58175855
example: Long rollup description
58185856
format: string
@@ -5901,6 +5939,7 @@ components:
59015939
responses.RollupWithStats:
59025940
example:
59035941
stack: op_stack
5942+
defi_lama: Manta
59045943
fee: "123.456789"
59055944
description: Long rollup description
59065945
type: settled
@@ -5949,6 +5988,10 @@ components:
59495988
example: zip
59505989
format: string
59515990
type: string
5991+
defi_lama:
5992+
example: Manta
5993+
format: string
5994+
type: string
59525995
description:
59535996
example: Long rollup description
59545997
format: string

api_namespace.go

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

docs/NamespaceAPI.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Method | HTTP request | Description
77
[**GetBlob**](NamespaceAPI.md#GetBlob) | **Post** /blob | Get namespace blob by commitment on height
88
[**GetBlobLogs**](NamespaceAPI.md#GetBlobLogs) | **Get** /namespace/{id}/{version}/blobs | Get blob changes for namespace
99
[**GetBlobMetadata**](NamespaceAPI.md#GetBlobMetadata) | **Post** /blob/metadata | Get blob metadata by commitment on height
10+
[**GetBlobProof**](NamespaceAPI.md#GetBlobProof) | **Get** /blob/proofs | Get blob inclusion proofs
1011
[**GetBlobs**](NamespaceAPI.md#GetBlobs) | **Get** /blob | List all blobs with filters
1112
[**GetNamespace**](NamespaceAPI.md#GetNamespace) | **Get** /namespace/{id} | Get namespace info
1213
[**GetNamespaceActive**](NamespaceAPI.md#GetNamespaceActive) | **Get** /namespace/active | Get last used namespace
@@ -245,6 +246,72 @@ No authorization required
245246
[[Back to README]](../README.md)
246247

247248

249+
## GetBlobProof
250+
251+
> ResponsesBlobLog GetBlobProof(ctx).Request(request).Execute()
252+
253+
Get blob inclusion proofs
254+
255+
256+
257+
### Example
258+
259+
```go
260+
package main
261+
262+
import (
263+
"context"
264+
"fmt"
265+
"os"
266+
openapiclient "github.com/celenium-io/celenium-api-go"
267+
)
268+
269+
func main() {
270+
request := *openapiclient.NewHandlerPostBlobRequest("vbGakK59+Non81TE3ULg5Ve5ufT9SFm/bCyY+WLR3gg=", "AAAAAAAAAAAAAAAAAAAAAAAAAAAAs2bWWU6FOB0=", int32(123456)) // HandlerPostBlobRequest | Request body containing height, commitment and namespace hash
271+
272+
configuration := openapiclient.NewConfiguration()
273+
apiClient := openapiclient.NewAPIClient(configuration)
274+
resp, r, err := apiClient.NamespaceAPI.GetBlobProof(context.Background()).Request(request).Execute()
275+
if err != nil {
276+
fmt.Fprintf(os.Stderr, "Error when calling `NamespaceAPI.GetBlobProof``: %v\n", err)
277+
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
278+
}
279+
// response from `GetBlobProof`: ResponsesBlobLog
280+
fmt.Fprintf(os.Stdout, "Response from `NamespaceAPI.GetBlobProof`: %v\n", resp)
281+
}
282+
```
283+
284+
### Path Parameters
285+
286+
287+
288+
### Other Parameters
289+
290+
Other parameters are passed through a pointer to a apiGetBlobProofRequest struct via the builder pattern
291+
292+
293+
Name | Type | Description | Notes
294+
------------- | ------------- | ------------- | -------------
295+
**request** | [**HandlerPostBlobRequest**](HandlerPostBlobRequest.md) | Request body containing height, commitment and namespace hash |
296+
297+
### Return type
298+
299+
[**ResponsesBlobLog**](ResponsesBlobLog.md)
300+
301+
### Authorization
302+
303+
No authorization required
304+
305+
### HTTP request headers
306+
307+
- **Content-Type**: application/json
308+
- **Accept**: application/json
309+
310+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints)
311+
[[Back to Model list]](../README.md#documentation-for-models)
312+
[[Back to README]](../README.md)
313+
314+
248315
## GetBlobs
249316

250317
> []ResponsesLightBlobLog GetBlobs(ctx).Limit(limit).Offset(offset).Sort(sort).SortBy(sortBy).Commitment(commitment).From(from).To(to).Signers(signers).Namespaces(namespaces).Cursor(cursor).Execute()

docs/ResponsesRollup.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
77
**Bridge** | Pointer to **string** | | [optional]
88
**Category** | Pointer to **string** | | [optional]
99
**Compression** | Pointer to **string** | | [optional]
10+
**DefiLama** | Pointer to **string** | | [optional]
1011
**Description** | Pointer to **string** | | [optional]
1112
**Explorer** | Pointer to **string** | | [optional]
1213
**Github** | Pointer to **string** | | [optional]
@@ -117,6 +118,31 @@ SetCompression sets Compression field to given value.
117118

118119
HasCompression returns a boolean if a field has been set.
119120

121+
### GetDefiLama
122+
123+
`func (o *ResponsesRollup) GetDefiLama() string`
124+
125+
GetDefiLama returns the DefiLama field if non-nil, zero value otherwise.
126+
127+
### GetDefiLamaOk
128+
129+
`func (o *ResponsesRollup) GetDefiLamaOk() (*string, bool)`
130+
131+
GetDefiLamaOk returns a tuple with the DefiLama field if it's non-nil, zero value otherwise
132+
and a boolean to check if the value has been set.
133+
134+
### SetDefiLama
135+
136+
`func (o *ResponsesRollup) SetDefiLama(v string)`
137+
138+
SetDefiLama sets DefiLama field to given value.
139+
140+
### HasDefiLama
141+
142+
`func (o *ResponsesRollup) HasDefiLama() bool`
143+
144+
HasDefiLama returns a boolean if a field has been set.
145+
120146
### GetDescription
121147

122148
`func (o *ResponsesRollup) GetDescription() string`

docs/ResponsesRollupWithDayStats.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**Bridge** | Pointer to **string** | | [optional]
1111
**Category** | Pointer to **string** | | [optional]
1212
**Compression** | Pointer to **string** | | [optional]
13+
**DefiLama** | Pointer to **string** | | [optional]
1314
**Description** | Pointer to **string** | | [optional]
1415
**Explorer** | Pointer to **string** | | [optional]
1516
**FeePerPfb** | Pointer to **string** | | [optional]
@@ -201,6 +202,31 @@ SetCompression sets Compression field to given value.
201202

202203
HasCompression returns a boolean if a field has been set.
203204

205+
### GetDefiLama
206+
207+
`func (o *ResponsesRollupWithDayStats) GetDefiLama() string`
208+
209+
GetDefiLama returns the DefiLama field if non-nil, zero value otherwise.
210+
211+
### GetDefiLamaOk
212+
213+
`func (o *ResponsesRollupWithDayStats) GetDefiLamaOk() (*string, bool)`
214+
215+
GetDefiLamaOk returns a tuple with the DefiLama field if it's non-nil, zero value otherwise
216+
and a boolean to check if the value has been set.
217+
218+
### SetDefiLama
219+
220+
`func (o *ResponsesRollupWithDayStats) SetDefiLama(v string)`
221+
222+
SetDefiLama sets DefiLama field to given value.
223+
224+
### HasDefiLama
225+
226+
`func (o *ResponsesRollupWithDayStats) HasDefiLama() bool`
227+
228+
HasDefiLama returns a boolean if a field has been set.
229+
204230
### GetDescription
205231

206232
`func (o *ResponsesRollupWithDayStats) GetDescription() string`

0 commit comments

Comments
 (0)