Skip to content

Commit 30976db

Browse files
committed
feat(websocket): add websocket, update api version
1 parent bf2141d commit 30976db

File tree

277 files changed

+3593
-450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

277 files changed

+3593
-450
lines changed

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.23
55
require (
66
github.com/btcsuite/btcd/btcec/v2 v2.3.4
77
github.com/go-resty/resty/v2 v2.14.0
8+
github.com/gorilla/websocket v1.5.3
89
github.com/stretchr/testify v1.9.0
910
github.com/tyler-smith/go-bip32 v1.0.0
1011
github.com/tyler-smith/go-bip39 v1.1.0

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1/go.mod h1:hyedUtir6IdtD/7lIxGeC
1919
github.com/go-resty/resty/v2 v2.14.0 h1:/rhkzsAqGQkozwfKS5aFAbb6TyKd3zyFRWcdRXLPCAU=
2020
github.com/go-resty/resty/v2 v2.14.0/go.mod h1:IW6mekUOsElt9C7oWr0XRt9BNSD6D5rr9mhk6NjmNHg=
2121
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
22+
github.com/gorilla/websocket v1.5.3 h1:saDtZ6Pbx/0u+bgYQ3q96pZgCzfhKXGPqt7kZ72aNNg=
23+
github.com/gorilla/websocket v1.5.3/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
2224
github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
2325
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
2426
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=

pkg/stacks_blockchain_api_client/.openapi-generator/FILES

+4-17
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ docs/ContractCallTransactionContractCallFunctionArgsInner.md
8181
docs/ContractListResponse.md
8282
docs/ContractSearchResult.md
8383
docs/ContractSearchResultTxData.md
84+
docs/ErrorResponse.md
8485
docs/ExtendedV1PoxEventsGetPoxParameter.md
8586
docs/FaucetsAPI.md
8687
docs/FeeRate.md
@@ -128,6 +129,7 @@ docs/GetPoxCycleSigners200ResponseResultsInner.md
128129
docs/GetPoxCycles200Response.md
129130
docs/GetPoxCycles200ResponseResultsInner.md
130131
docs/GetRawTransactionResult.md
132+
docs/GetSignerSignaturesForBlock200Response.md
131133
docs/GetSmartContractsStatus200ResponseValue.md
132134
docs/GetSmartContractsStatus200ResponseValueAnyOf.md
133135
docs/GetSmartContractsStatus200ResponseValueAnyOf1.md
@@ -336,6 +338,7 @@ model_contract_call_transaction_contract_call_function_args_inner.go
336338
model_contract_list_response.go
337339
model_contract_search_result.go
338340
model_contract_search_result_tx_data.go
341+
model_error_response.go
339342
model_fee_rate.go
340343
model_fee_rate_request.go
341344
model_ft_balance.go
@@ -379,6 +382,7 @@ model_get_pox_cycle_signers_200_response_results_inner.go
379382
model_get_pox_cycles_200_response.go
380383
model_get_pox_cycles_200_response_results_inner.go
381384
model_get_raw_transaction_result.go
385+
model_get_signer_signatures_for_block_200_response.go
382386
model_get_smart_contracts_status_200_response_value.go
383387
model_get_smart_contracts_status_200_response_value_any_of.go
384388
model_get_smart_contracts_status_200_response_value_any_of_1.go
@@ -516,21 +520,4 @@ model_transaction_not_found_result.go
516520
model_tx_search_result.go
517521
model_tx_search_result_tx_data.go
518522
response.go
519-
test/api_accounts_test.go
520-
test/api_blocks_test.go
521-
test/api_burn_blocks_test.go
522-
test/api_faucets_test.go
523-
test/api_fees_test.go
524-
test/api_fungible_tokens_test.go
525-
test/api_info_test.go
526-
test/api_mempool_test.go
527-
test/api_microblocks_test.go
528-
test/api_names_test.go
529-
test/api_non_fungible_tokens_test.go
530-
test/api_proof_of_transfer_test.go
531-
test/api_search_test.go
532-
test/api_smart_contracts_test.go
533-
test/api_stacking_rewards_test.go
534-
test/api_stacking_test.go
535-
test/api_transactions_test.go
536523
utils.go

pkg/stacks_blockchain_api_client/README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Welcome to the API reference overview for the [Stacks Blockchain API](https://do
77
## Overview
88
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
99

10-
- API version: v7.14.1
10+
- API version: v8.1.2
1111
- Package version: 1.0.0
1212
- Generator version: 7.8.0
1313
- Build package: org.openapitools.codegen.languages.GoClientCodegen
@@ -96,6 +96,7 @@ Class | Method | HTTP request | Description
9696
*BlocksAPI* | [**GetBlockByHeight**](docs/BlocksAPI.md#getblockbyheight) | **Get** /extended/v1/block/by_height/{height} | Get block by height
9797
*BlocksAPI* | [**GetBlockList**](docs/BlocksAPI.md#getblocklist) | **Get** /extended/v1/block/ | Get recent blocks
9898
*BlocksAPI* | [**GetBlocks**](docs/BlocksAPI.md#getblocks) | **Get** /extended/v2/blocks/ | Get blocks
99+
*BlocksAPI* | [**GetSignerSignaturesForBlock**](docs/BlocksAPI.md#getsignersignaturesforblock) | **Get** /extended/v2/blocks/{height_or_hash}/signer-signatures | Get signer signatures for block
99100
*BurnBlocksAPI* | [**GetBlocksByBurnBlock**](docs/BurnBlocksAPI.md#getblocksbyburnblock) | **Get** /extended/v2/burn-blocks/{height_or_hash}/blocks | Get blocks by burn block
100101
*BurnBlocksAPI* | [**GetBurnBlock**](docs/BurnBlocksAPI.md#getburnblock) | **Get** /extended/v2/burn-blocks/{height_or_hash} | Get burn block
101102
*BurnBlocksAPI* | [**GetBurnBlocks**](docs/BurnBlocksAPI.md#getburnblocks) | **Get** /extended/v2/burn-blocks/ | Get burn blocks
@@ -222,6 +223,7 @@ Class | Method | HTTP request | Description
222223
- [ContractListResponse](docs/ContractListResponse.md)
223224
- [ContractSearchResult](docs/ContractSearchResult.md)
224225
- [ContractSearchResultTxData](docs/ContractSearchResultTxData.md)
226+
- [ErrorResponse](docs/ErrorResponse.md)
225227
- [ExtendedV1PoxEventsGetPoxParameter](docs/ExtendedV1PoxEventsGetPoxParameter.md)
226228
- [FeeRate](docs/FeeRate.md)
227229
- [FeeRateRequest](docs/FeeRateRequest.md)
@@ -266,6 +268,7 @@ Class | Method | HTTP request | Description
266268
- [GetPoxCycles200Response](docs/GetPoxCycles200Response.md)
267269
- [GetPoxCycles200ResponseResultsInner](docs/GetPoxCycles200ResponseResultsInner.md)
268270
- [GetRawTransactionResult](docs/GetRawTransactionResult.md)
271+
- [GetSignerSignaturesForBlock200Response](docs/GetSignerSignaturesForBlock200Response.md)
269272
- [GetSmartContractsStatus200ResponseValue](docs/GetSmartContractsStatus200ResponseValue.md)
270273
- [GetSmartContractsStatus200ResponseValueAnyOf](docs/GetSmartContractsStatus200ResponseValueAnyOf.md)
271274
- [GetSmartContractsStatus200ResponseValueAnyOf1](docs/GetSmartContractsStatus200ResponseValueAnyOf1.md)

0 commit comments

Comments
 (0)