Skip to content

Commit

Permalink
chore: update Kinetic to 1.0.0-rc.16 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
beeman authored Jan 30, 2023
1 parent e2303c1 commit e645f75
Show file tree
Hide file tree
Showing 56 changed files with 253 additions and 713 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
image: ghcr.io/kin-labs/kinetic-solana-network:latest
ports: [ '8899:8899', '8900:8900' ]
kinetic:
image: ghcr.io/kin-labs/kinetic:1.0.0-rc.13
image: ghcr.io/kin-labs/kinetic:1.0.0-rc.16
ports:
- 3000:3000
options: --health-cmd "wget localhost:3000/api/uptime -q -O - > /dev/null 2>&1" --health-interval 10s --health-timeout 5s --health-retries 5
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ In order to use this SDK, please head over to the [Kinetic Pyrhon SDK](https://d

## Version

This SDK is built to work with `@kinetic/api@v1.0.0-rc.13`. Using it with other versions may lead to issues.
This SDK is built to work with `@kinetic/api@v1.0.0-rc.16`. Using it with other versions may lead to issues.

## Contributing

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kinetic-sdk"
version = "1.0.0-rc.13-1"
version = "1.0.0-rc.16"
description = ""
authors = ["Kin Foundation <dev@kin.org>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/api/account_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/api/airdrop_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/api/app_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
125 changes: 124 additions & 1 deletion src/kinetic_sdk/generated/client/api/transaction_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -43,6 +43,61 @@ def __init__(self, api_client=None):
if api_client is None:
api_client = ApiClient()
self.api_client = api_client
self.get_kinetic_transaction_endpoint = _Endpoint(
settings={
"response_type": ([Transaction],),
"auth": [],
"endpoint_path": "/api/transaction/kinetic-transaction/{environment}/{index}",
"operation_id": "get_kinetic_transaction",
"http_method": "GET",
"servers": None,
},
params_map={
"all": [
"environment",
"index",
"reference",
"signature",
],
"required": [
"environment",
"index",
"reference",
"signature",
],
"nullable": [],
"enum": [],
"validation": [],
},
root_map={
"validations": {},
"allowed_values": {},
"openapi_types": {
"environment": (str,),
"index": (int,),
"reference": (str,),
"signature": (str,),
},
"attribute_map": {
"environment": "environment",
"index": "index",
"reference": "reference",
"signature": "signature",
},
"location_map": {
"environment": "path",
"index": "path",
"reference": "query",
"signature": "query",
},
"collection_format_map": {},
},
headers_map={
"accept": ["application/json"],
"content_type": [],
},
api_client=api_client,
)
self.get_latest_blockhash_endpoint = _Endpoint(
settings={
"response_type": (LatestBlockhashResponse,),
Expand Down Expand Up @@ -229,6 +284,74 @@ def __init__(self, api_client=None):
api_client=api_client,
)

def get_kinetic_transaction(self, environment, index, reference, signature, **kwargs):
"""# noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
>>> thread = api.get_kinetic_transaction(environment, index, reference, signature, async_req=True)
>>> result = thread.get()
Args:
environment (str):
index (int):
reference (str):
signature (str):
Keyword Args:
_return_http_data_only (bool): response data without head status
code and headers. Default is True.
_preload_content (bool): if False, the urllib3.HTTPResponse object
will be returned without reading/decoding response data.
Default is True.
_request_timeout (int/float/tuple): timeout setting for this request. If
one number provided, it will be total request timeout. It can also
be a pair (tuple) of (connection, read) timeouts.
Default is None.
_check_input_type (bool): specifies if type checking
should be done one the data sent to the server.
Default is True.
_check_return_type (bool): specifies if type checking
should be done one the data received from the server.
Default is True.
_spec_property_naming (bool): True if the variable names in the input data
are serialized names, as specified in the OpenAPI document.
False if the variable names in the input data
are pythonic names, e.g. snake case (default)
_content_type (str/None): force body content-type.
Default is None and content-type will be predicted by allowed
content-types and body.
_host_index (int/None): specifies the index of the server
that we want to use.
Default is read from the configuration.
_request_auths (list): set to override the auth_settings for an a single
request; this effectively ignores the authentication
in the spec for a single request.
Default is None
async_req (bool): execute request asynchronously
Returns:
[Transaction]
If the method is called asynchronously, returns the request
thread.
"""
kwargs["async_req"] = kwargs.get("async_req", False)
kwargs["_return_http_data_only"] = kwargs.get("_return_http_data_only", True)
kwargs["_preload_content"] = kwargs.get("_preload_content", True)
kwargs["_request_timeout"] = kwargs.get("_request_timeout", None)
kwargs["_check_input_type"] = kwargs.get("_check_input_type", True)
kwargs["_check_return_type"] = kwargs.get("_check_return_type", True)
kwargs["_spec_property_naming"] = kwargs.get("_spec_property_naming", False)
kwargs["_content_type"] = kwargs.get("_content_type")
kwargs["_host_index"] = kwargs.get("_host_index")
kwargs["_request_auths"] = kwargs.get("_request_auths", None)
kwargs["environment"] = environment
kwargs["index"] = index
kwargs["reference"] = reference
kwargs["signature"] = signature
return self.get_kinetic_transaction_endpoint.call_with_http_info(**kwargs)

def get_latest_blockhash(self, environment, index, **kwargs):
"""# noqa: E501
Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
4 changes: 2 additions & 2 deletions src/kinetic_sdk/generated/client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -390,7 +390,7 @@ def to_debug_report(self):
"Python SDK Debug Report:\n"
"OS: {env}\n"
"Python Version: {pyversion}\n"
"Version of the API: 1.0.0-rc.13\n"
"Version of the API: 1.0.0-rc.16\n"
"SDK Package Version: 1.0.0".format(env=sys.platform, pyversion=sys.version)
)

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/model/account_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/model/app_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/model/app_config_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/model/app_config_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/model/app_config_mint.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/model/app_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/model/balance_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/model/balance_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
17 changes: 5 additions & 12 deletions src/kinetic_sdk/generated/client/model/close_account_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down Expand Up @@ -101,11 +101,7 @@ def openapi_types():
"environment": (str,), # noqa: E501
"index": (int,), # noqa: E501
"mint": (str,), # noqa: E501
"reference_id": (
str,
none_type,
), # noqa: E501
"reference_type": (
"reference": (
str,
none_type,
), # noqa: E501
Expand All @@ -121,8 +117,7 @@ def discriminator():
"environment": "environment", # noqa: E501
"index": "index", # noqa: E501
"mint": "mint", # noqa: E501
"reference_id": "referenceId", # noqa: E501
"reference_type": "referenceType", # noqa: E501
"reference": "reference", # noqa: E501
}

read_only_vars = {}
Expand Down Expand Up @@ -172,8 +167,7 @@ def _from_openapi_data(cls, commitment, account, environment, index, mint, *args
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
reference_id (str, none_type): [optional] # noqa: E501
reference_type (str, none_type): [optional] # noqa: E501
reference (str, none_type): [optional] # noqa: E501
"""

_check_type = kwargs.pop("_check_type", True)
Expand Down Expand Up @@ -276,8 +270,7 @@ def __init__(self, commitment, account, environment, index, mint, *args, **kwarg
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
reference_id (str, none_type): [optional] # noqa: E501
reference_type (str, none_type): [optional] # noqa: E501
reference (str, none_type): [optional] # noqa: E501
"""

_check_type = kwargs.pop("_check_type", True)
Expand Down
2 changes: 1 addition & 1 deletion src/kinetic_sdk/generated/client/model/cluster_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The OpenAPI definition of the Kinetic API # noqa: E501
The version of the OpenAPI document: 1.0.0-rc.13
The version of the OpenAPI document: 1.0.0-rc.16
Generated by: https://openapi-generator.tech
"""

Expand Down
Loading

0 comments on commit e645f75

Please sign in to comment.