diff --git a/.swagger-codegen-ignore b/.swagger-codegen-ignore new file mode 100644 index 0000000..c5fa491 --- /dev/null +++ b/.swagger-codegen-ignore @@ -0,0 +1,23 @@ +# Swagger Codegen Ignore +# Generated by swagger-codegen https://github.com/swagger-api/swagger-codegen + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..dd6c445 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +# ref: https://docs.travis-ci.com/user/languages/python +language: python +python: + - "3.2" + - "3.3" + - "3.4" + - "3.5" + #- "3.5-dev" # 3.5 development branch + #- "nightly" # points to the latest development branch e.g. 3.6-dev +# command to install dependencies +install: "pip install -r requirements.txt" +# command to run tests +script: nosetests diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 4e504ac..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2022 Ankr - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md index 9ca58cf..8f82ff4 100644 --- a/README.md +++ b/README.md @@ -101,7 +101,9 @@ logs = ankr_w3.query.get_logs( Get data about all the NFTs (collectibles) owned by a wallet. ````python3 -nfts = ankr_w3.nft.get_nfts( +import ankr + +nfts = ankr.advanced_apis.AnkrNFTAPI.get_nfts( blockchain="eth", wallet_address="0x0E11A192d574b342C51be9e306694C41547185DD", filter=[ diff --git a/ankr/__init__.py b/ankr/__init__.py index dc77ad5..0614520 100644 --- a/ankr/__init__.py +++ b/ankr/__init__.py @@ -1,4 +1,85 @@ -from __future__ import annotations +# coding: utf-8 -from ankr.advanced_apis import AnkrAdvancedAPI -from ankr.web3 import AnkrWeb3 +# flake8: noqa + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +# import apis into sdk package +from ankr.api.early_access_api import EarlyAccessApi +from ankr.api.nft_api_api import NFTAPIApi +from ankr.api.query_api_api import QueryAPIApi +from ankr.api.token_api_api import TokenAPIApi +# import ApiClient +from ankr.api_client import ApiClient +from ankr.configuration import Configuration +# import models into sdk package +from ankr.models.ankr_explain_token_price_body import AnkrExplainTokenPriceBody +from ankr.models.ankr_explain_token_price_params import AnkrExplainTokenPriceParams +from ankr.models.ankr_get_account_balance_body import AnkrGetAccountBalanceBody +from ankr.models.ankr_get_account_balance_historical_body import AnkrGetAccountBalanceHistoricalBody +from ankr.models.ankr_get_account_balance_historical_params import AnkrGetAccountBalanceHistoricalParams +from ankr.models.ankr_get_account_balance_params import AnkrGetAccountBalanceParams +from ankr.models.ankr_get_blockchain_stats_body import AnkrGetBlockchainStatsBody +from ankr.models.ankr_get_blockchain_stats_params import AnkrGetBlockchainStatsParams +from ankr.models.ankr_get_blocks_body import AnkrGetBlocksBody +from ankr.models.ankr_get_blocks_params import AnkrGetBlocksParams +from ankr.models.ankr_get_currencies_body import AnkrGetCurrenciesBody +from ankr.models.ankr_get_currencies_params import AnkrGetCurrenciesParams +from ankr.models.ankr_get_interactions_body import AnkrGetInteractionsBody +from ankr.models.ankr_get_interactions_params import AnkrGetInteractionsParams +from ankr.models.ankr_get_internal_transactions_by_block_number_body import AnkrGetInternalTransactionsByBlockNumberBody +from ankr.models.ankr_get_internal_transactions_by_block_number_params import AnkrGetInternalTransactionsByBlockNumberParams +from ankr.models.ankr_get_internal_transactions_by_parent_hash_body import AnkrGetInternalTransactionsByParentHashBody +from ankr.models.ankr_get_internal_transactions_by_parent_hash_params import AnkrGetInternalTransactionsByParentHashParams +from ankr.models.ankr_get_logs_body import AnkrGetLogsBody +from ankr.models.ankr_get_logs_params import AnkrGetLogsParams +from ankr.models.ankr_get_nft_holders_body import AnkrGetNFTHoldersBody +from ankr.models.ankr_get_nft_holders_params import AnkrGetNFTHoldersParams +from ankr.models.ankr_get_nft_metadata_body import AnkrGetNFTMetadataBody +from ankr.models.ankr_get_nft_metadata_params import AnkrGetNFTMetadataParams +from ankr.models.ankr_get_nfts_by_owner_body import AnkrGetNFTsByOwnerBody +from ankr.models.ankr_get_nfts_by_owner_params import AnkrGetNFTsByOwnerParams +from ankr.models.ankr_get_nft_transfers_body import AnkrGetNftTransfersBody +from ankr.models.ankr_get_nft_transfers_params import AnkrGetNftTransfersParams +from ankr.models.ankr_get_token_holders_body import AnkrGetTokenHoldersBody +from ankr.models.ankr_get_token_holders_count_body import AnkrGetTokenHoldersCountBody +from ankr.models.ankr_get_token_holders_params import AnkrGetTokenHoldersParams +from ankr.models.ankr_get_token_price_body import AnkrGetTokenPriceBody +from ankr.models.ankr_get_token_price_history_body import AnkrGetTokenPriceHistoryBody +from ankr.models.ankr_get_token_price_history_params import AnkrGetTokenPriceHistoryParams +from ankr.models.ankr_get_token_price_params import AnkrGetTokenPriceParams +from ankr.models.ankr_get_token_transfers_body import AnkrGetTokenTransfersBody +from ankr.models.ankr_get_transactions_by_address_body import AnkrGetTransactionsByAddressBody +from ankr.models.ankr_get_transactions_by_address_params import AnkrGetTransactionsByAddressParams +from ankr.models.ankr_get_transactions_by_hash_body import AnkrGetTransactionsByHashBody +from ankr.models.ankr_get_transactions_by_hash_params import AnkrGetTransactionsByHashParams +from ankr.models.inline_response200 import InlineResponse200 +from ankr.models.inline_response2001 import InlineResponse2001 +from ankr.models.inline_response20010 import InlineResponse20010 +from ankr.models.inline_response20011 import InlineResponse20011 +from ankr.models.inline_response20012 import InlineResponse20012 +from ankr.models.inline_response20013 import InlineResponse20013 +from ankr.models.inline_response20014 import InlineResponse20014 +from ankr.models.inline_response20015 import InlineResponse20015 +from ankr.models.inline_response20016 import InlineResponse20016 +from ankr.models.inline_response20017 import InlineResponse20017 +from ankr.models.inline_response20018 import InlineResponse20018 +from ankr.models.inline_response20019 import InlineResponse20019 +from ankr.models.inline_response2002 import InlineResponse2002 +from ankr.models.inline_response2003 import InlineResponse2003 +from ankr.models.inline_response2004 import InlineResponse2004 +from ankr.models.inline_response2005 import InlineResponse2005 +from ankr.models.inline_response2006 import InlineResponse2006 +from ankr.models.inline_response2007 import InlineResponse2007 +from ankr.models.inline_response2008 import InlineResponse2008 +from ankr.models.inline_response2009 import InlineResponse2009 diff --git a/ankr/advanced_apis.py b/ankr/advanced_apis.py deleted file mode 100644 index c6ebceb..0000000 --- a/ankr/advanced_apis.py +++ /dev/null @@ -1,270 +0,0 @@ -from __future__ import annotations - -from typing import Any, Dict, Iterable, List, Optional - -from ankr import types -from ankr.exceptions import APIError -from ankr.providers import MultichainHTTPProvider - - -class AnkrMultichainAPI: - def __init__( - self, - api_key: str, - endpoint_uri: Optional[str] = None, - ) -> None: - self.provider = MultichainHTTPProvider(api_key, endpoint_uri) - - -class AnkrQueryAPI(AnkrMultichainAPI): - def get_logs( - self, - blockchain: types.BlockchainNames, - from_block: Optional[types.BlockNumber] = None, - to_block: Optional[types.BlockNumber] = None, - address: Optional[types.AddressOrAddresses] = None, - topics: Optional[types.Topics] = None, - decode_logs: Optional[bool] = None, - limit: Optional[int] = None, - **kwargs: Any, - ) -> Iterable[types.Log]: - for log in self.provider.call_method_paginated( - rpc="ankr_getLogs", - request=types.GetLogsRequest( - blockchain=blockchain, - from_block=from_block, - to_block=to_block, - address=address, - topics=topics, - decode_logs=decode_logs, - **kwargs, - ), - reply_type=types.GetLogsReply, - iterable_name="logs", - iterable_type=types.Log, - limit=limit, - ): - yield log - - def get_blocks( - self, - blockchain: types.BlockchainName, - from_block: Optional[types.BlockNumber] = None, - to_block: Optional[types.BlockNumber] = None, - desc_order: Optional[bool] = None, - include_logs: Optional[bool] = None, - include_txs: Optional[bool] = None, - decode_logs: Optional[bool] = None, - decode_tx_data: Optional[bool] = None, - **kwargs: Any, - ) -> List[types.Block]: - reply = self.provider.call_method( - "ankr_getBlocks", - types.GetBlocksRequest( - blockchain=blockchain, - from_block=from_block, - to_block=to_block, - desc_order=desc_order, - include_logs=include_logs, - include_txs=include_txs, - decode_logs=decode_logs, - decode_tx_data=decode_tx_data, - **kwargs, - ), - types.GetBlocksReply, - ) - return reply.blocks - - def get_transaction( - self, - transaction_hash: str, - blockchain: Optional[types.BlockchainNames] = None, - include_logs: Optional[bool] = False, - decode_logs: Optional[bool] = False, - decode_tx_data: Optional[bool] = False, - **kwargs: Any, - ) -> Optional[types.Transaction]: - reply = self.provider.call_method( - "ankr_getTransactionsByHash", - types.GetTransactionsByHashRequest( - blockchain=blockchain, - transaction_hash=transaction_hash, - include_logs=include_logs, - decode_logs=decode_logs, - decode_tx_data=decode_tx_data, - **kwargs, - ), - types.GetTransactionsByHashReply, - ) - if reply.transactions: - return reply.transactions[0] - - -class AnkrTokenAPI(AnkrMultichainAPI): - def get_token_holders( - self, - blockchain: types.BlockchainName, - contract_address: str, - limit: Optional[int] = None, - **kwargs: Any, - ) -> Iterable[types.HolderBalance]: - for holder in self.provider.call_method_paginated( - rpc="ankr_getTokenHolders", - request=types.GetTokenHoldersRequest( - blockchain=blockchain, - contract_address=contract_address, - **kwargs, - ), - reply_type=types.GetTokenHoldersReply, - iterable_name="holders", - iterable_type=types.HolderBalance, - limit=limit, - ): - yield holder - - def get_token_holders_count_history( - self, - blockchain: types.BlockchainName, - contract_address: str, - limit: Optional[int] = None, - **kwargs: Any, - ) -> Iterable[types.DailyHolderCount]: - for daily_holder_count in self.provider.call_method_paginated( - rpc="ankr_getTokenHoldersCount", - request=types.GetTokenHoldersCountRequest( - blockchain=blockchain, - contract_address=contract_address, - **kwargs, - ), - reply_type=types.GetTokenHoldersCountReply, - iterable_name="holder_count_history", - iterable_type=types.DailyHolderCount, - limit=limit, - ): - yield daily_holder_count - - def get_token_holders_count( - self, - blockchain: types.BlockchainName, - contract_address: str, - **kwargs: Any, - ) -> types.DailyHolderCount: - reply = self.provider.call_method( - rpc="ankr_getTokenHoldersCount", - request=types.GetTokenHoldersCountRequest( - blockchain=blockchain, - contract_address=contract_address, - page_size=1, - **kwargs, - ), - reply_type=types.GetTokenHoldersCountReply, - ) - if len(reply.holder_count_history) < 1: - raise APIError("no token holders count found") - return reply.holder_count_history[0] - - def get_token_price( - self, - blockchain: types.BlockchainName, - contract_address: str, - **kwargs: Any, - ) -> str: - reply = self.provider.call_method( - rpc="ankr_getTokenPrice", - request=types.GetTokenPriceRequest( - blockchain=blockchain, - contract_address=contract_address, - **kwargs, - ), - reply_type=types.GetTokenPriceReply, - ) - - return reply.usd_price - - def get_account_balance( - self, - wallet_address: str, - blockchain: Optional[types.BlockchainNames] = None, - limit: Optional[int] = None, - **kwargs: Any, - ) -> Iterable[types.Balance]: - for asset in self.provider.call_method_paginated( - rpc="ankr_getAccountBalance", - request=types.GetAccountBalanceRequest( - blockchain=blockchain, - wallet_address=wallet_address, - **kwargs, - ), - reply_type=types.GetAccountBalanceReply, - iterable_name="assets", - iterable_type=types.Balance, - limit=limit, - ): - yield asset - - -class AnkrNFTAPI(AnkrMultichainAPI): - def get_nfts( - self, - blockchain: types.BlockchainNames, - wallet_address: str, - filter: Optional[List[Dict[str, List[str]]]] = None, - limit: Optional[int] = None, - **kwargs: Any, - ) -> Iterable[types.Nft]: - for nft in self.provider.call_method_paginated( - rpc="ankr_getNFTsByOwner", - request=types.GetNFTsByOwnerRequest( - blockchain=blockchain, - wallet_address=wallet_address, - filter=filter, - **kwargs, - ), - reply_type=types.GetNFTsByOwnerReply, - iterable_name="assets", - iterable_type=types.Nft, - limit=limit, - ): - yield nft - - def get_nft_metadata( - self, - blockchain: types.BlockchainName, - contract_address: str, - token_id: str, - **kwargs: Any, - ) -> types.GetNFTMetadataReply: - return self.provider.call_method( - "ankr_getNFTMetadata", - types.GetNFTMetadataRequest( - blockchain=blockchain, - contract_address=contract_address, - token_id=token_id, - **kwargs, - ), - types.GetNFTMetadataReply, - ) - - def get_nft_holders( - self, - blockchain: types.BlockchainName, - contract_address: str, - limit: Optional[int] = None, - **kwargs: Any, - ) -> Iterable[types.Address]: - return self.provider.call_method_paginated( - rpc="ankr_getNFTHolders", - request=types.GetNFTHoldersRequest( - blockchain=blockchain, - contract_address=contract_address, - **kwargs, - ), - reply_type=types.GetNFTHoldersReply, - iterable_name="holders", - iterable_type=types.Address, - limit=limit, - ) - - -class AnkrAdvancedAPI(AnkrQueryAPI, AnkrTokenAPI, AnkrNFTAPI): - ... diff --git a/ankr/api/__init__.py b/ankr/api/__init__.py new file mode 100644 index 0000000..04e5c20 --- /dev/null +++ b/ankr/api/__init__.py @@ -0,0 +1,9 @@ +from __future__ import absolute_import + +# flake8: noqa + +# import apis into api package +from ankr.api.early_access_api import EarlyAccessApi +from ankr.api.nft_api_api import NFTAPIApi +from ankr.api.query_api_api import QueryAPIApi +from ankr.api.token_api_api import TokenAPIApi diff --git a/ankr/api/early_access_api.py b/ankr/api/early_access_api.py new file mode 100644 index 0000000..11aeba3 --- /dev/null +++ b/ankr/api/early_access_api.py @@ -0,0 +1,413 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from ankr.api_client import ApiClient + + +class EarlyAccessApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def ankr_get_account_balance_historical_post(self, **kwargs): # noqa: E501 + """ankr_getAccountBalanceHistorical # noqa: E501 + + Retrieves the historical balance of the specified account. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_account_balance_historical_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetAccountBalanceHistoricalBody body: + :return: InlineResponse2002 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_account_balance_historical_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_account_balance_historical_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_account_balance_historical_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getAccountBalanceHistorical # noqa: E501 + + Retrieves the historical balance of the specified account. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_account_balance_historical_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetAccountBalanceHistoricalBody body: + :return: InlineResponse2002 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_account_balance_historical_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getAccountBalanceHistorical', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2002', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_internal_transactions_by_block_number_post(self, **kwargs): # noqa: E501 + """ankr_getInternalTransactionsByBlockNumber # noqa: E501 + + Retrieves the details of internal transactions for the specified block number. Internal transactions are callbacks that happen during contract-to-contract interactions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_internal_transactions_by_block_number_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetInternalTransactionsByBlockNumberBody body: + :return: InlineResponse2007 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_internal_transactions_by_block_number_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_internal_transactions_by_block_number_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_internal_transactions_by_block_number_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getInternalTransactionsByBlockNumber # noqa: E501 + + Retrieves the details of internal transactions for the specified block number. Internal transactions are callbacks that happen during contract-to-contract interactions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_internal_transactions_by_block_number_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetInternalTransactionsByBlockNumberBody body: + :return: InlineResponse2007 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_internal_transactions_by_block_number_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getInternalTransactionsByBlockNumber', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2007', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_internal_transactions_by_parent_hash_post(self, **kwargs): # noqa: E501 + """ankr_getInternalTransactionsByParentHash # noqa: E501 + + Retrieves the details of internal transactions for the specified parent transaction hash. Internal transactions are callbacks that happen during contract-to-contract interactions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_internal_transactions_by_parent_hash_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetInternalTransactionsByParentHashBody body: + :return: InlineResponse2007 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_internal_transactions_by_parent_hash_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_internal_transactions_by_parent_hash_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_internal_transactions_by_parent_hash_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getInternalTransactionsByParentHash # noqa: E501 + + Retrieves the details of internal transactions for the specified parent transaction hash. Internal transactions are callbacks that happen during contract-to-contract interactions. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_internal_transactions_by_parent_hash_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetInternalTransactionsByParentHashBody body: + :return: InlineResponse2007 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_internal_transactions_by_parent_hash_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getInternalTransactionsByParentHash', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2007', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_token_price_history_post(self, **kwargs): # noqa: E501 + """ankr_getTokenPriceHistory # noqa: E501 + + Retrieves the historical price of the specified token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_price_history_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenPriceHistoryBody body: + :return: InlineResponse20016 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_token_price_history_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_token_price_history_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_token_price_history_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getTokenPriceHistory # noqa: E501 + + Retrieves the historical price of the specified token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_price_history_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenPriceHistoryBody body: + :return: InlineResponse20016 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_token_price_history_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getTokenPriceHistory', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20016', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/ankr/api/nft_api_api.py b/ankr/api/nft_api_api.py new file mode 100644 index 0000000..1a4bf2f --- /dev/null +++ b/ankr/api/nft_api_api.py @@ -0,0 +1,413 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from ankr.api_client import ApiClient + + +class NFTAPIApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def ankr_get_nft_holders_post(self, **kwargs): # noqa: E501 + """ankr_getNFTHolders # noqa: E501 + + Retrieves a list of holders (wallet addresses) of the specified NFT. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_nft_holders_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetNFTHoldersBody body: + :return: InlineResponse2009 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_nft_holders_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_nft_holders_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_nft_holders_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getNFTHolders # noqa: E501 + + Retrieves a list of holders (wallet addresses) of the specified NFT. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_nft_holders_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetNFTHoldersBody body: + :return: InlineResponse2009 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_nft_holders_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getNFTHolders', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2009', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_nft_metadata_post(self, **kwargs): # noqa: E501 + """ankr_getNFTMetadata # noqa: E501 + + Retrieves the metadata of to the specified NFT (ERC721/ERC1155/ENS/POAP). # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_nft_metadata_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetNFTMetadataBody body: + :return: InlineResponse20010 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_nft_metadata_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_nft_metadata_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_nft_metadata_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getNFTMetadata # noqa: E501 + + Retrieves the metadata of to the specified NFT (ERC721/ERC1155/ENS/POAP). # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_nft_metadata_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetNFTMetadataBody body: + :return: InlineResponse20010 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_nft_metadata_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getNFTMetadata', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20010', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_nft_transfers_post(self, **kwargs): # noqa: E501 + """ankr_getNftTransfers # noqa: E501 + + Retrieves the details of NFT transfers for the specified address. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_nft_transfers_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetNftTransfersBody body: + :return: InlineResponse20012 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_nft_transfers_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_nft_transfers_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_nft_transfers_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getNftTransfers # noqa: E501 + + Retrieves the details of NFT transfers for the specified address. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_nft_transfers_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetNftTransfersBody body: + :return: InlineResponse20012 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_nft_transfers_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getNftTransfers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20012', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_nfts_by_owner_post(self, **kwargs): # noqa: E501 + """ankr_getNFTsByOwner # noqa: E501 + + Retrieves a list of NFTs (ERC721/ERC1155/ENS/POAP) that belong to the specified account. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_nfts_by_owner_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetNFTsByOwnerBody body: + :return: InlineResponse20011 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_nfts_by_owner_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_nfts_by_owner_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_nfts_by_owner_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getNFTsByOwner # noqa: E501 + + Retrieves a list of NFTs (ERC721/ERC1155/ENS/POAP) that belong to the specified account. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_nfts_by_owner_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetNFTsByOwnerBody body: + :return: InlineResponse20011 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_nfts_by_owner_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getNFTsByOwner', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20011', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/ankr/api/query_api_api.py b/ankr/api/query_api_api.py new file mode 100644 index 0000000..1a1f150 --- /dev/null +++ b/ankr/api/query_api_api.py @@ -0,0 +1,698 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from ankr.api_client import ApiClient + + +class QueryAPIApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def ankr_get_blockchain_stats_post(self, **kwargs): # noqa: E501 + """ankr_getBlockchainStats # noqa: E501 + + Retrieves blockchain statistics. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_blockchain_stats_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetBlockchainStatsBody body: + :return: InlineResponse2003 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_blockchain_stats_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_blockchain_stats_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_blockchain_stats_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getBlockchainStats # noqa: E501 + + Retrieves blockchain statistics. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_blockchain_stats_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetBlockchainStatsBody body: + :return: InlineResponse2003 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_blockchain_stats_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getBlockchainStats', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2003', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_blocks_post(self, **kwargs): # noqa: E501 + """ankr_getBlocks # noqa: E501 + + Retrieves details of the specified range of blocks. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_blocks_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetBlocksBody body: + :return: InlineResponse2004 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_blocks_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_blocks_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_blocks_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getBlocks # noqa: E501 + + Retrieves details of the specified range of blocks. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_blocks_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetBlocksBody body: + :return: InlineResponse2004 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_blocks_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getBlocks', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2004', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_interactions_post(self, **kwargs): # noqa: E501 + """ankr_getInteractions # noqa: E501 + + Retrieves a list of blockchains on which interactions (tokens, NFTs, transactions) were registered for the specified address. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_interactions_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetInteractionsBody body: + :return: InlineResponse2006 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_interactions_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_interactions_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_interactions_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getInteractions # noqa: E501 + + Retrieves a list of blockchains on which interactions (tokens, NFTs, transactions) were registered for the specified address. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_interactions_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetInteractionsBody body: + :return: InlineResponse2006 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_interactions_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getInteractions', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2006', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_logs_post(self, **kwargs): # noqa: E501 + """ankr_getLogs # noqa: E501 + + Retrieves historical data for the specified range of blocks. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_logs_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetLogsBody body: + :return: InlineResponse2008 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_logs_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_logs_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_logs_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getLogs # noqa: E501 + + Retrieves historical data for the specified range of blocks. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_logs_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetLogsBody body: + :return: InlineResponse2008 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_logs_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getLogs', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2008', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_token_transfers_post(self, **kwargs): # noqa: E501 + """ankr_getTokenTransfers # noqa: E501 + + Retrieves the details of token transfers for the specified wallet address. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_transfers_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenTransfersBody body: + :return: InlineResponse20017 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_token_transfers_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_token_transfers_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_token_transfers_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getTokenTransfers # noqa: E501 + + Retrieves the details of token transfers for the specified wallet address. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_transfers_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenTransfersBody body: + :return: InlineResponse20017 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_token_transfers_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getTokenTransfers', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20017', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_transactions_by_address_post(self, **kwargs): # noqa: E501 + """ankr_getTransactionsByAddress # noqa: E501 + + Retrieves the details of transactions for the specified address. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_transactions_by_address_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTransactionsByAddressBody body: + :return: InlineResponse20018 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_transactions_by_address_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_transactions_by_address_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_transactions_by_address_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getTransactionsByAddress # noqa: E501 + + Retrieves the details of transactions for the specified address. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_transactions_by_address_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTransactionsByAddressBody body: + :return: InlineResponse20018 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_transactions_by_address_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getTransactionsByAddress', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20018', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_transactions_by_hash_post(self, **kwargs): # noqa: E501 + """ankr_getTransactionsByHash # noqa: E501 + + Retrieves details of the transaction specified by its hash. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_transactions_by_hash_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTransactionsByHashBody body: + :return: InlineResponse20019 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_transactions_by_hash_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_transactions_by_hash_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_transactions_by_hash_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getTransactionsByHash # noqa: E501 + + Retrieves details of the transaction specified by its hash. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_transactions_by_hash_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTransactionsByHashBody body: + :return: InlineResponse20019 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_transactions_by_hash_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getTransactionsByHash', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20019', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/ankr/api/token_api_api.py b/ankr/api/token_api_api.py new file mode 100644 index 0000000..910e498 --- /dev/null +++ b/ankr/api/token_api_api.py @@ -0,0 +1,603 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import re # noqa: F401 + +# python 2 and python 3 compatibility library +import six + +from ankr.api_client import ApiClient + + +class TokenAPIApi(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + Ref: https://github.com/swagger-api/swagger-codegen + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient() + self.api_client = api_client + + def ankr_explain_token_price_post(self, **kwargs): # noqa: E501 + """ankr_explainTokenPrice # noqa: E501 + + Offers a breakdown of the specified token's price, detailing the contributing token pairs, their liquidity pools, and intermediate prices. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_explain_token_price_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrExplainTokenPriceBody body: + :return: InlineResponse200 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_explain_token_price_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_explain_token_price_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_explain_token_price_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_explainTokenPrice # noqa: E501 + + Offers a breakdown of the specified token's price, detailing the contributing token pairs, their liquidity pools, and intermediate prices. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_explain_token_price_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrExplainTokenPriceBody body: + :return: InlineResponse200 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_explain_token_price_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_explainTokenPrice', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse200', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_account_balance_post(self, **kwargs): # noqa: E501 + """ankr_getAccountBalance # noqa: E501 + + Retrieves the balance of the specified account. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_account_balance_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetAccountBalanceBody body: + :return: InlineResponse2001 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_account_balance_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_account_balance_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_account_balance_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getAccountBalance # noqa: E501 + + Retrieves the balance of the specified account. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_account_balance_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetAccountBalanceBody body: + :return: InlineResponse2001 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_account_balance_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getAccountBalance', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2001', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_currencies_post(self, **kwargs): # noqa: E501 + """ankr_getCurrencies # noqa: E501 + + Retrieves a list of all currencies used on the specified blockchain. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_currencies_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetCurrenciesBody body: + :return: InlineResponse2005 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_currencies_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_currencies_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_currencies_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getCurrencies # noqa: E501 + + Retrieves a list of all currencies used on the specified blockchain. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_currencies_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetCurrenciesBody body: + :return: InlineResponse2005 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_currencies_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getCurrencies', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse2005', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_token_holders_count_post(self, **kwargs): # noqa: E501 + """ankr_getTokenHoldersCount # noqa: E501 + + Retrieves the number of holders of the specified token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_holders_count_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenHoldersCountBody body: + :return: InlineResponse20014 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_token_holders_count_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_token_holders_count_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_token_holders_count_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getTokenHoldersCount # noqa: E501 + + Retrieves the number of holders of the specified token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_holders_count_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenHoldersCountBody body: + :return: InlineResponse20014 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_token_holders_count_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getTokenHoldersCount', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20014', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_token_holders_post(self, **kwargs): # noqa: E501 + """ankr_getTokenHolders # noqa: E501 + + Retrieves the metadata and a list of holders (wallet addresses) of the specified token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_holders_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenHoldersBody body: + :return: InlineResponse20013 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_token_holders_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_token_holders_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_token_holders_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getTokenHolders # noqa: E501 + + Retrieves the metadata and a list of holders (wallet addresses) of the specified token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_holders_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenHoldersBody body: + :return: InlineResponse20013 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_token_holders_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getTokenHolders', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20013', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def ankr_get_token_price_post(self, **kwargs): # noqa: E501 + """ankr_getTokenPrice # noqa: E501 + + Retrieves the USD price of the specified token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_price_post(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenPriceBody body: + :return: InlineResponse20015 + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('async_req'): + return self.ankr_get_token_price_post_with_http_info(**kwargs) # noqa: E501 + else: + (data) = self.ankr_get_token_price_post_with_http_info(**kwargs) # noqa: E501 + return data + + def ankr_get_token_price_post_with_http_info(self, **kwargs): # noqa: E501 + """ankr_getTokenPrice # noqa: E501 + + Retrieves the USD price of the specified token. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + >>> thread = api.ankr_get_token_price_post_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req bool + :param AnkrGetTokenPriceBody body: + :return: InlineResponse20015 + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body'] # noqa: E501 + all_params.append('async_req') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in six.iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method ankr_get_token_price_post" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 + ['application/json']) # noqa: E501 + + # Authentication setting + auth_settings = [] # noqa: E501 + + return self.api_client.call_api( + '/?ankr_getTokenPrice', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='InlineResponse20015', # noqa: E501 + auth_settings=auth_settings, + async_req=params.get('async_req'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) diff --git a/ankr/api_client.py b/ankr/api_client.py new file mode 100644 index 0000000..84b7a8a --- /dev/null +++ b/ankr/api_client.py @@ -0,0 +1,632 @@ +# coding: utf-8 +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" +from __future__ import absolute_import + +import datetime +import json +import mimetypes +from multiprocessing.pool import ThreadPool +import os +import re +import tempfile + +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import quote + +from ankr.configuration import Configuration +import ankr.models +from ankr import rest + + +class ApiClient(object): + """Generic API client for Swagger client library builds. + + Swagger generic API client. This client handles the client- + server communication, and is invariant across implementations. Specifics of + the methods and models for each application are generated from the Swagger + templates. + + NOTE: This class is auto generated by the swagger code generator program. + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + + :param configuration: .Configuration object for this client + :param header_name: a header to pass when making calls to the API. + :param header_value: a header value to pass when making calls to + the API. + :param cookie: a cookie to include in the header when making calls + to the API + """ + + PRIMITIVE_TYPES = (float, bool, bytes, six.text_type) + six.integer_types + NATIVE_TYPES_MAPPING = { + 'int': int, + 'long': int if six.PY3 else long, # noqa: F821 + 'float': float, + 'str': str, + 'bool': bool, + 'date': datetime.date, + 'datetime': datetime.datetime, + 'object': object, + } + + def __init__(self, configuration=None, header_name=None, header_value=None, + cookie=None): + if configuration is None: + configuration = Configuration() + self.configuration = configuration + + self.pool = ThreadPool() + self.rest_client = rest.RESTClientObject(configuration) + self.default_headers = {} + if header_name is not None: + self.default_headers[header_name] = header_value + self.cookie = cookie + # Set default User-Agent. + self.user_agent = 'Swagger-Codegen/1.0.0/python' + + def __del__(self): + self.pool.close() + self.pool.join() + + @property + def user_agent(self): + """User agent for this API client""" + return self.default_headers['User-Agent'] + + @user_agent.setter + def user_agent(self, value): + self.default_headers['User-Agent'] = value + + def set_default_header(self, header_name, header_value): + self.default_headers[header_name] = header_value + + def __call_api( + self, resource_path, method, path_params=None, + query_params=None, header_params=None, body=None, post_params=None, + files=None, response_type=None, auth_settings=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + + config = self.configuration + + # header parameters + header_params = header_params or {} + header_params.update(self.default_headers) + if self.cookie: + header_params['Cookie'] = self.cookie + if header_params: + header_params = self.sanitize_for_serialization(header_params) + header_params = dict(self.parameters_to_tuples(header_params, + collection_formats)) + + # path parameters + if path_params: + path_params = self.sanitize_for_serialization(path_params) + path_params = self.parameters_to_tuples(path_params, + collection_formats) + for k, v in path_params: + # specified safe chars, encode everything + resource_path = resource_path.replace( + '{%s}' % k, + quote(str(v), safe=config.safe_chars_for_path_param) + ) + + # query parameters + if query_params: + query_params = self.sanitize_for_serialization(query_params) + query_params = self.parameters_to_tuples(query_params, + collection_formats) + + # post parameters + if post_params or files: + post_params = self.prepare_post_parameters(post_params, files) + post_params = self.sanitize_for_serialization(post_params) + post_params = self.parameters_to_tuples(post_params, + collection_formats) + + # auth setting + self.update_params_for_auth(header_params, query_params, auth_settings) + + # body + if body: + body = self.sanitize_for_serialization(body) + + # request url + url = self.configuration.host + resource_path + + # perform request and return response + response_data = self.request( + method, url, query_params=query_params, headers=header_params, + post_params=post_params, body=body, + _preload_content=_preload_content, + _request_timeout=_request_timeout) + + self.last_response = response_data + + return_data = response_data + if _preload_content: + # deserialize response data + if response_type: + return_data = self.deserialize(response_data, response_type) + else: + return_data = None + + if _return_http_data_only: + return (return_data) + else: + return (return_data, response_data.status, + response_data.getheaders()) + + def sanitize_for_serialization(self, obj): + """Builds a JSON POST object. + + If obj is None, return None. + If obj is str, int, long, float, bool, return directly. + If obj is datetime.datetime, datetime.date + convert to string in iso8601 format. + If obj is list, sanitize each element in the list. + If obj is dict, return the dict. + If obj is swagger model, return the properties dict. + + :param obj: The data to serialize. + :return: The serialized form of data. + """ + if obj is None: + return None + elif isinstance(obj, self.PRIMITIVE_TYPES): + return obj + elif isinstance(obj, list): + return [self.sanitize_for_serialization(sub_obj) + for sub_obj in obj] + elif isinstance(obj, tuple): + return tuple(self.sanitize_for_serialization(sub_obj) + for sub_obj in obj) + elif isinstance(obj, (datetime.datetime, datetime.date)): + return obj.isoformat() + + if isinstance(obj, dict): + obj_dict = obj + else: + # Convert model obj to dict except + # attributes `swagger_types`, `attribute_map` + # and attributes which value is not None. + # Convert attribute name to json key in + # model definition for request. + obj_dict = {obj.attribute_map[attr]: getattr(obj, attr) + for attr, _ in six.iteritems(obj.swagger_types) + if getattr(obj, attr) is not None} + + return {key: self.sanitize_for_serialization(val) + for key, val in six.iteritems(obj_dict)} + + def deserialize(self, response, response_type): + """Deserializes response into an object. + + :param response: RESTResponse object to be deserialized. + :param response_type: class literal for + deserialized object, or string of class name. + + :return: deserialized object. + """ + # handle file downloading + # save response body into a tmp file and return the instance + if response_type == "file": + return self.__deserialize_file(response) + + # fetch data from response object + try: + data = json.loads(response.data) + except ValueError: + data = response.data + + return self.__deserialize(data, response_type) + + def __deserialize(self, data, klass): + """Deserializes dict, list, str into an object. + + :param data: dict, list or str. + :param klass: class literal, or string of class name. + + :return: object. + """ + if data is None: + return None + + if type(klass) == str: + if klass.startswith('list['): + sub_kls = re.match(r'list\[(.*)\]', klass).group(1) + return [self.__deserialize(sub_data, sub_kls) + for sub_data in data] + + if klass.startswith('dict('): + sub_kls = re.match(r'dict\(([^,]*), (.*)\)', klass).group(2) + return {k: self.__deserialize(v, sub_kls) + for k, v in six.iteritems(data)} + + # convert str to class + if klass in self.NATIVE_TYPES_MAPPING: + klass = self.NATIVE_TYPES_MAPPING[klass] + else: + klass = getattr(ankr.models, klass) + + if klass in self.PRIMITIVE_TYPES: + return self.__deserialize_primitive(data, klass) + elif klass == object: + return self.__deserialize_object(data) + elif klass == datetime.date: + return self.__deserialize_date(data) + elif klass == datetime.datetime: + return self.__deserialize_datatime(data) + else: + return self.__deserialize_model(data, klass) + + def call_api(self, resource_path, method, + path_params=None, query_params=None, header_params=None, + body=None, post_params=None, files=None, + response_type=None, auth_settings=None, async_req=None, + _return_http_data_only=None, collection_formats=None, + _preload_content=True, _request_timeout=None): + """Makes the HTTP request (synchronous) and returns deserialized data. + + To make an async request, set the async_req parameter. + + :param resource_path: Path to method endpoint. + :param method: Method to call. + :param path_params: Path parameters in the url. + :param query_params: Query parameters in the url. + :param header_params: Header parameters to be + placed in the request header. + :param body: Request body. + :param post_params dict: Request post form parameters, + for `application/x-www-form-urlencoded`, `multipart/form-data`. + :param auth_settings list: Auth Settings names for the request. + :param response: Response data type. + :param files dict: key -> filename, value -> filepath, + for `multipart/form-data`. + :param async_req bool: execute request asynchronously + :param _return_http_data_only: response data without head status code + and headers + :param collection_formats: dict of collection formats for path, query, + header, and post parameters. + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: 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. + :return: + If async_req parameter is True, + the request will be called asynchronously. + The method will return the request thread. + If parameter async_req is False or missing, + then the method will return the response directly. + """ + if not async_req: + return self.__call_api(resource_path, method, + path_params, query_params, header_params, + body, post_params, files, + response_type, auth_settings, + _return_http_data_only, collection_formats, + _preload_content, _request_timeout) + else: + thread = self.pool.apply_async(self.__call_api, (resource_path, + method, path_params, query_params, + header_params, body, + post_params, files, + response_type, auth_settings, + _return_http_data_only, + collection_formats, + _preload_content, _request_timeout)) + return thread + + def request(self, method, url, query_params=None, headers=None, + post_params=None, body=None, _preload_content=True, + _request_timeout=None): + """Makes the HTTP request using RESTClient.""" + if method == "GET": + return self.rest_client.GET(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "HEAD": + return self.rest_client.HEAD(url, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + headers=headers) + elif method == "OPTIONS": + return self.rest_client.OPTIONS(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "POST": + return self.rest_client.POST(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PUT": + return self.rest_client.PUT(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "PATCH": + return self.rest_client.PATCH(url, + query_params=query_params, + headers=headers, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + elif method == "DELETE": + return self.rest_client.DELETE(url, + query_params=query_params, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + else: + raise ValueError( + "http method must be `GET`, `HEAD`, `OPTIONS`," + " `POST`, `PATCH`, `PUT` or `DELETE`." + ) + + def parameters_to_tuples(self, params, collection_formats): + """Get parameters as list of tuples, formatting collections. + + :param params: Parameters as dict or list of two-tuples + :param dict collection_formats: Parameter collection formats + :return: Parameters as list of tuples, collections formatted + """ + new_params = [] + if collection_formats is None: + collection_formats = {} + for k, v in six.iteritems(params) if isinstance(params, dict) else params: # noqa: E501 + if k in collection_formats: + collection_format = collection_formats[k] + if collection_format == 'multi': + new_params.extend((k, value) for value in v) + else: + if collection_format == 'ssv': + delimiter = ' ' + elif collection_format == 'tsv': + delimiter = '\t' + elif collection_format == 'pipes': + delimiter = '|' + else: # csv is the default + delimiter = ',' + new_params.append( + (k, delimiter.join(str(value) for value in v))) + else: + new_params.append((k, v)) + return new_params + + def prepare_post_parameters(self, post_params=None, files=None): + """Builds form parameters. + + :param post_params: Normal form parameters. + :param files: File parameters. + :return: Form parameters with files. + """ + params = [] + + if post_params: + params = post_params + + if files: + for k, v in six.iteritems(files): + if not v: + continue + file_names = v if type(v) is list else [v] + for n in file_names: + with open(n, 'rb') as f: + filename = os.path.basename(f.name) + filedata = f.read() + mimetype = (mimetypes.guess_type(filename)[0] or + 'application/octet-stream') + params.append( + tuple([k, tuple([filename, filedata, mimetype])])) + + return params + + def select_header_accept(self, accepts): + """Returns `Accept` based on an array of accepts provided. + + :param accepts: List of headers. + :return: Accept (e.g. application/json). + """ + if not accepts: + return + + accepts = [x.lower() for x in accepts] + + if 'application/json' in accepts: + return 'application/json' + else: + return ', '.join(accepts) + + def select_header_content_type(self, content_types): + """Returns `Content-Type` based on an array of content_types provided. + + :param content_types: List of content-types. + :return: Content-Type (e.g. application/json). + """ + if not content_types: + return 'application/json' + + content_types = [x.lower() for x in content_types] + + if 'application/json' in content_types or '*/*' in content_types: + return 'application/json' + else: + return content_types[0] + + def update_params_for_auth(self, headers, querys, auth_settings): + """Updates header and query params based on authentication setting. + + :param headers: Header parameters dict to be updated. + :param querys: Query parameters tuple list to be updated. + :param auth_settings: Authentication setting identifiers list. + """ + if not auth_settings: + return + + for auth in auth_settings: + auth_setting = self.configuration.auth_settings().get(auth) + if auth_setting: + if not auth_setting['value']: + continue + elif auth_setting['in'] == 'header': + headers[auth_setting['key']] = auth_setting['value'] + elif auth_setting['in'] == 'query': + querys.append((auth_setting['key'], auth_setting['value'])) + else: + raise ValueError( + 'Authentication token must be in `query` or `header`' + ) + + def __deserialize_file(self, response): + """Deserializes body to file + + Saves response body into a file in a temporary folder, + using the filename from the `Content-Disposition` header if provided. + + :param response: RESTResponse. + :return: file path. + """ + fd, path = tempfile.mkstemp(dir=self.configuration.temp_folder_path) + os.close(fd) + os.remove(path) + + content_disposition = response.getheader("Content-Disposition") + if content_disposition: + filename = re.search(r'filename=[\'"]?([^\'"\s]+)[\'"]?', + content_disposition).group(1) + path = os.path.join(os.path.dirname(path), filename) + response_data = response.data + with open(path, "wb") as f: + if isinstance(response_data, str): + # change str to bytes so we can write it + response_data = response_data.encode('utf-8') + f.write(response_data) + else: + f.write(response_data) + return path + + def __deserialize_primitive(self, data, klass): + """Deserializes string to primitive type. + + :param data: str. + :param klass: class literal. + + :return: int, long, float, str, bool. + """ + try: + return klass(data) + except UnicodeEncodeError: + return six.text_type(data) + except TypeError: + return data + + def __deserialize_object(self, value): + """Return a original value. + + :return: object. + """ + return value + + def __deserialize_date(self, string): + """Deserializes string to date. + + :param string: str. + :return: date. + """ + try: + from dateutil.parser import parse + return parse(string).date() + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason="Failed to parse `{0}` as date object".format(string) + ) + + def __deserialize_datatime(self, string): + """Deserializes string to datetime. + + The string should be in iso8601 datetime format. + + :param string: str. + :return: datetime. + """ + try: + from dateutil.parser import parse + return parse(string) + except ImportError: + return string + except ValueError: + raise rest.ApiException( + status=0, + reason=( + "Failed to parse `{0}` as datetime object" + .format(string) + ) + ) + + def __hasattr(self, object, name): + return name in object.__class__.__dict__ + + def __deserialize_model(self, data, klass): + """Deserializes list or dict to model. + + :param data: dict, list. + :param klass: class literal. + :return: model object. + """ + + if not klass.swagger_types and not self.__hasattr(klass, 'get_real_child_model'): + return data + + kwargs = {} + if klass.swagger_types is not None: + for attr, attr_type in six.iteritems(klass.swagger_types): + if (data is not None and + klass.attribute_map[attr] in data and + isinstance(data, (list, dict))): + value = data[klass.attribute_map[attr]] + kwargs[attr] = self.__deserialize(value, attr_type) + + instance = klass(**kwargs) + + if (isinstance(instance, dict) and + klass.swagger_types is not None and + isinstance(data, dict)): + for key, value in data.items(): + if key not in klass.swagger_types: + instance[key] = value + if self.__hasattr(instance, 'get_real_child_model'): + klass_name = instance.get_real_child_model(data) + if klass_name: + instance = self.__deserialize(data, klass_name) + return instance diff --git a/ankr/configuration.py b/ankr/configuration.py new file mode 100644 index 0000000..839949c --- /dev/null +++ b/ankr/configuration.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import copy +import logging +import multiprocessing +import sys +import urllib3 + +import six +from six.moves import http_client as httplib + + +class TypeWithDefault(type): + def __init__(cls, name, bases, dct): + super(TypeWithDefault, cls).__init__(name, bases, dct) + cls._default = None + + def __call__(cls): + if cls._default is None: + cls._default = type.__call__(cls) + return copy.copy(cls._default) + + def set_default(cls, default): + cls._default = copy.copy(default) + + +class Configuration(six.with_metaclass(TypeWithDefault, object)): + """NOTE: This class is auto generated by the swagger code generator program. + + Ref: https://github.com/swagger-api/swagger-codegen + Do not edit the class manually. + """ + + def __init__(self): + """Constructor""" + # Default Base url + self.host = "https://rpc.ankr.com/multichain" + # Temp file folder for downloading files + self.temp_folder_path = None + + # Authentication Settings + # dict to store API key(s) + self.api_key = {} + # dict to store API prefix (e.g. Bearer) + self.api_key_prefix = {} + # function to refresh API key if expired + self.refresh_api_key_hook = None + # Username for HTTP basic authentication + self.username = "" + # Password for HTTP basic authentication + self.password = "" + # Logging Settings + self.logger = {} + self.logger["package_logger"] = logging.getLogger("ankr") + self.logger["urllib3_logger"] = logging.getLogger("urllib3") + # Log format + self.logger_format = '%(asctime)s %(levelname)s %(message)s' + # Log stream handler + self.logger_stream_handler = None + # Log file handler + self.logger_file_handler = None + # Debug file location + self.logger_file = None + # Debug switch + self.debug = False + + # SSL/TLS verification + # Set this to false to skip verifying SSL certificate when calling API + # from https server. + self.verify_ssl = True + # Set this to customize the certificate file to verify the peer. + self.ssl_ca_cert = None + # client certificate file + self.cert_file = None + # client key file + self.key_file = None + # Set this to True/False to enable/disable SSL hostname verification. + self.assert_hostname = None + + # urllib3 connection pool's maximum number of connections saved + # per pool. urllib3 uses 1 connection as default value, but this is + # not the best value when you are making a lot of possibly parallel + # requests to the same host, which is often the case here. + # cpu_count * 5 is used as default value to increase performance. + self.connection_pool_maxsize = multiprocessing.cpu_count() * 5 + + # Proxy URL + self.proxy = None + # Safe chars for path_param + self.safe_chars_for_path_param = '' + + @property + def logger_file(self): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + return self.__logger_file + + @logger_file.setter + def logger_file(self, value): + """The logger file. + + If the logger_file is None, then add stream handler and remove file + handler. Otherwise, add file handler and remove stream handler. + + :param value: The logger_file path. + :type: str + """ + self.__logger_file = value + if self.__logger_file: + # If set logging file, + # then add file handler and remove stream handler. + self.logger_file_handler = logging.FileHandler(self.__logger_file) + self.logger_file_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_file_handler) + if self.logger_stream_handler: + logger.removeHandler(self.logger_stream_handler) + else: + # If not set logging file, + # then add stream handler and remove file handler. + self.logger_stream_handler = logging.StreamHandler() + self.logger_stream_handler.setFormatter(self.logger_formatter) + for _, logger in six.iteritems(self.logger): + logger.addHandler(self.logger_stream_handler) + if self.logger_file_handler: + logger.removeHandler(self.logger_file_handler) + + @property + def debug(self): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + return self.__debug + + @debug.setter + def debug(self, value): + """Debug status + + :param value: The debug status, True or False. + :type: bool + """ + self.__debug = value + if self.__debug: + # if debug status is True, turn on debug logging + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.DEBUG) + # turn on httplib debug + httplib.HTTPConnection.debuglevel = 1 + else: + # if debug status is False, turn off debug logging, + # setting log level to default `logging.WARNING` + for _, logger in six.iteritems(self.logger): + logger.setLevel(logging.WARNING) + # turn off httplib debug + httplib.HTTPConnection.debuglevel = 0 + + @property + def logger_format(self): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + return self.__logger_format + + @logger_format.setter + def logger_format(self, value): + """The logger format. + + The logger_formatter will be updated when sets logger_format. + + :param value: The format string. + :type: str + """ + self.__logger_format = value + self.logger_formatter = logging.Formatter(self.__logger_format) + + def get_api_key_with_prefix(self, identifier): + """Gets API key (with prefix if set). + + :param identifier: The identifier of apiKey. + :return: The token for api key authentication. + """ + if self.refresh_api_key_hook: + self.refresh_api_key_hook(self) + + key = self.api_key.get(identifier) + if key: + prefix = self.api_key_prefix.get(identifier) + if prefix: + return "%s %s" % (prefix, key) + else: + return key + + def get_basic_auth_token(self): + """Gets HTTP basic authentication header (string). + + :return: The token for basic HTTP authentication. + """ + return urllib3.util.make_headers( + basic_auth=self.username + ':' + self.password + ).get('authorization') + + def auth_settings(self): + """Gets Auth Settings dict for api client. + + :return: The Auth Settings information dict. + """ + return { + } + + def to_debug_report(self): + """Gets the essential information for debugging. + + :return: The report for debugging. + """ + return "Python SDK Debug Report:\n"\ + "OS: {env}\n"\ + "Python Version: {pyversion}\n"\ + "Version of the API: \n"\ + "SDK Package Version: 1.0.0".\ + format(env=sys.platform, pyversion=sys.version) diff --git a/ankr/exceptions.py b/ankr/exceptions.py deleted file mode 100644 index 666b210..0000000 --- a/ankr/exceptions.py +++ /dev/null @@ -1,8 +0,0 @@ -from __future__ import annotations - -from web3.types import RPCError - - -class APIError(Exception): - def __init__(self, error: RPCError | str) -> None: - super().__init__(f"failed to handle request, {error}") diff --git a/ankr/models/__init__.py b/ankr/models/__init__.py new file mode 100644 index 0000000..0af5019 --- /dev/null +++ b/ankr/models/__init__.py @@ -0,0 +1,76 @@ +# coding: utf-8 + +# flake8: noqa +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +# import models into model package +from ankr.models.ankr_explain_token_price_body import AnkrExplainTokenPriceBody +from ankr.models.ankr_explain_token_price_params import AnkrExplainTokenPriceParams +from ankr.models.ankr_get_account_balance_body import AnkrGetAccountBalanceBody +from ankr.models.ankr_get_account_balance_historical_body import AnkrGetAccountBalanceHistoricalBody +from ankr.models.ankr_get_account_balance_historical_params import AnkrGetAccountBalanceHistoricalParams +from ankr.models.ankr_get_account_balance_params import AnkrGetAccountBalanceParams +from ankr.models.ankr_get_blockchain_stats_body import AnkrGetBlockchainStatsBody +from ankr.models.ankr_get_blockchain_stats_params import AnkrGetBlockchainStatsParams +from ankr.models.ankr_get_blocks_body import AnkrGetBlocksBody +from ankr.models.ankr_get_blocks_params import AnkrGetBlocksParams +from ankr.models.ankr_get_currencies_body import AnkrGetCurrenciesBody +from ankr.models.ankr_get_currencies_params import AnkrGetCurrenciesParams +from ankr.models.ankr_get_interactions_body import AnkrGetInteractionsBody +from ankr.models.ankr_get_interactions_params import AnkrGetInteractionsParams +from ankr.models.ankr_get_internal_transactions_by_block_number_body import AnkrGetInternalTransactionsByBlockNumberBody +from ankr.models.ankr_get_internal_transactions_by_block_number_params import AnkrGetInternalTransactionsByBlockNumberParams +from ankr.models.ankr_get_internal_transactions_by_parent_hash_body import AnkrGetInternalTransactionsByParentHashBody +from ankr.models.ankr_get_internal_transactions_by_parent_hash_params import AnkrGetInternalTransactionsByParentHashParams +from ankr.models.ankr_get_logs_body import AnkrGetLogsBody +from ankr.models.ankr_get_logs_params import AnkrGetLogsParams +from ankr.models.ankr_get_nft_holders_body import AnkrGetNFTHoldersBody +from ankr.models.ankr_get_nft_holders_params import AnkrGetNFTHoldersParams +from ankr.models.ankr_get_nft_metadata_body import AnkrGetNFTMetadataBody +from ankr.models.ankr_get_nft_metadata_params import AnkrGetNFTMetadataParams +from ankr.models.ankr_get_nfts_by_owner_body import AnkrGetNFTsByOwnerBody +from ankr.models.ankr_get_nfts_by_owner_params import AnkrGetNFTsByOwnerParams +from ankr.models.ankr_get_nft_transfers_body import AnkrGetNftTransfersBody +from ankr.models.ankr_get_nft_transfers_params import AnkrGetNftTransfersParams +from ankr.models.ankr_get_token_holders_body import AnkrGetTokenHoldersBody +from ankr.models.ankr_get_token_holders_count_body import AnkrGetTokenHoldersCountBody +from ankr.models.ankr_get_token_holders_params import AnkrGetTokenHoldersParams +from ankr.models.ankr_get_token_price_body import AnkrGetTokenPriceBody +from ankr.models.ankr_get_token_price_history_body import AnkrGetTokenPriceHistoryBody +from ankr.models.ankr_get_token_price_history_params import AnkrGetTokenPriceHistoryParams +from ankr.models.ankr_get_token_price_params import AnkrGetTokenPriceParams +from ankr.models.ankr_get_token_transfers_body import AnkrGetTokenTransfersBody +from ankr.models.ankr_get_transactions_by_address_body import AnkrGetTransactionsByAddressBody +from ankr.models.ankr_get_transactions_by_address_params import AnkrGetTransactionsByAddressParams +from ankr.models.ankr_get_transactions_by_hash_body import AnkrGetTransactionsByHashBody +from ankr.models.ankr_get_transactions_by_hash_params import AnkrGetTransactionsByHashParams +from ankr.models.inline_response200 import InlineResponse200 +from ankr.models.inline_response2001 import InlineResponse2001 +from ankr.models.inline_response20010 import InlineResponse20010 +from ankr.models.inline_response20011 import InlineResponse20011 +from ankr.models.inline_response20012 import InlineResponse20012 +from ankr.models.inline_response20013 import InlineResponse20013 +from ankr.models.inline_response20014 import InlineResponse20014 +from ankr.models.inline_response20015 import InlineResponse20015 +from ankr.models.inline_response20016 import InlineResponse20016 +from ankr.models.inline_response20017 import InlineResponse20017 +from ankr.models.inline_response20018 import InlineResponse20018 +from ankr.models.inline_response20019 import InlineResponse20019 +from ankr.models.inline_response2002 import InlineResponse2002 +from ankr.models.inline_response2003 import InlineResponse2003 +from ankr.models.inline_response2004 import InlineResponse2004 +from ankr.models.inline_response2005 import InlineResponse2005 +from ankr.models.inline_response2006 import InlineResponse2006 +from ankr.models.inline_response2007 import InlineResponse2007 +from ankr.models.inline_response2008 import InlineResponse2008 +from ankr.models.inline_response2009 import InlineResponse2009 diff --git a/ankr/models/ankr_explain_token_price_body.py b/ankr/models/ankr_explain_token_price_body.py new file mode 100644 index 0000000..95a955f --- /dev/null +++ b/ankr/models/ankr_explain_token_price_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrExplainTokenPriceBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrExplainTokenPriceParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrExplainTokenPriceBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrExplainTokenPriceBody. # noqa: E501 + + + :return: The id of this AnkrExplainTokenPriceBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrExplainTokenPriceBody. + + + :param id: The id of this AnkrExplainTokenPriceBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrExplainTokenPriceBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrExplainTokenPriceBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrExplainTokenPriceBody. + + + :param jsonrpc: The jsonrpc of this AnkrExplainTokenPriceBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrExplainTokenPriceBody. # noqa: E501 + + + :return: The method of this AnkrExplainTokenPriceBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrExplainTokenPriceBody. + + + :param method: The method of this AnkrExplainTokenPriceBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_explainTokenPrice"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrExplainTokenPriceBody. # noqa: E501 + + + :return: The params of this AnkrExplainTokenPriceBody. # noqa: E501 + :rtype: AnkrExplainTokenPriceParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrExplainTokenPriceBody. + + + :param params: The params of this AnkrExplainTokenPriceBody. # noqa: E501 + :type: AnkrExplainTokenPriceParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrExplainTokenPriceBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrExplainTokenPriceBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_explain_token_price_params.py b/ankr/models/ankr_explain_token_price_params.py new file mode 100644 index 0000000..b489ca7 --- /dev/null +++ b/ankr/models/ankr_explain_token_price_params.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrExplainTokenPriceParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'block_height': 'int', + 'blockchain': 'str', + 'token_address': 'str' + } + + attribute_map = { + 'block_height': 'blockHeight', + 'blockchain': 'blockchain', + 'token_address': 'tokenAddress' + } + + def __init__(self, block_height=None, blockchain=None, token_address=None): # noqa: E501 + """AnkrExplainTokenPriceParams - a model defined in Swagger""" # noqa: E501 + self._block_height = None + self._blockchain = None + self._token_address = None + self.discriminator = None + if block_height is not None: + self.block_height = block_height + self.blockchain = blockchain + if token_address is not None: + self.token_address = token_address + + @property + def block_height(self): + """Gets the block_height of this AnkrExplainTokenPriceParams. # noqa: E501 + + Number of the block. # noqa: E501 + + :return: The block_height of this AnkrExplainTokenPriceParams. # noqa: E501 + :rtype: int + """ + return self._block_height + + @block_height.setter + def block_height(self, block_height): + """Sets the block_height of this AnkrExplainTokenPriceParams. + + Number of the block. # noqa: E501 + + :param block_height: The block_height of this AnkrExplainTokenPriceParams. # noqa: E501 + :type: int + """ + + self._block_height = block_height + + @property + def blockchain(self): + """Gets the blockchain of this AnkrExplainTokenPriceParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrExplainTokenPriceParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrExplainTokenPriceParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrExplainTokenPriceParams. # noqa: E501 + :type: str + """ + if blockchain is None: + raise ValueError("Invalid value for `blockchain`, must not be `None`") # noqa: E501 + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def token_address(self): + """Gets the token_address of this AnkrExplainTokenPriceParams. # noqa: E501 + + Address of the token contract. # noqa: E501 + + :return: The token_address of this AnkrExplainTokenPriceParams. # noqa: E501 + :rtype: str + """ + return self._token_address + + @token_address.setter + def token_address(self, token_address): + """Sets the token_address of this AnkrExplainTokenPriceParams. + + Address of the token contract. # noqa: E501 + + :param token_address: The token_address of this AnkrExplainTokenPriceParams. # noqa: E501 + :type: str + """ + + self._token_address = token_address + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrExplainTokenPriceParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrExplainTokenPriceParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_account_balance_body.py b/ankr/models/ankr_get_account_balance_body.py new file mode 100644 index 0000000..a07a1ac --- /dev/null +++ b/ankr/models/ankr_get_account_balance_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetAccountBalanceBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetAccountBalanceParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetAccountBalanceBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetAccountBalanceBody. # noqa: E501 + + + :return: The id of this AnkrGetAccountBalanceBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetAccountBalanceBody. + + + :param id: The id of this AnkrGetAccountBalanceBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetAccountBalanceBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetAccountBalanceBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetAccountBalanceBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetAccountBalanceBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetAccountBalanceBody. # noqa: E501 + + + :return: The method of this AnkrGetAccountBalanceBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetAccountBalanceBody. + + + :param method: The method of this AnkrGetAccountBalanceBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getAccountBalance"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetAccountBalanceBody. # noqa: E501 + + + :return: The params of this AnkrGetAccountBalanceBody. # noqa: E501 + :rtype: AnkrGetAccountBalanceParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetAccountBalanceBody. + + + :param params: The params of this AnkrGetAccountBalanceBody. # noqa: E501 + :type: AnkrGetAccountBalanceParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetAccountBalanceBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetAccountBalanceBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_account_balance_historical_body.py b/ankr/models/ankr_get_account_balance_historical_body.py new file mode 100644 index 0000000..5ec6ce7 --- /dev/null +++ b/ankr/models/ankr_get_account_balance_historical_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetAccountBalanceHistoricalBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetAccountBalanceHistoricalParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetAccountBalanceHistoricalBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + + + :return: The id of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetAccountBalanceHistoricalBody. + + + :param id: The id of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetAccountBalanceHistoricalBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + + + :return: The method of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetAccountBalanceHistoricalBody. + + + :param method: The method of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getAccountBalanceHistorical"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + + + :return: The params of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + :rtype: AnkrGetAccountBalanceHistoricalParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetAccountBalanceHistoricalBody. + + + :param params: The params of this AnkrGetAccountBalanceHistoricalBody. # noqa: E501 + :type: AnkrGetAccountBalanceHistoricalParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetAccountBalanceHistoricalBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetAccountBalanceHistoricalBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_account_balance_historical_params.py b/ankr/models/ankr_get_account_balance_historical_params.py new file mode 100644 index 0000000..06fd71c --- /dev/null +++ b/ankr/models/ankr_get_account_balance_historical_params.py @@ -0,0 +1,309 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetAccountBalanceHistoricalParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'block_height': 'int', + 'blockchain': 'list[str]', + 'native_first': 'bool', + 'only_whitelisted': 'bool', + 'page_size': 'int', + 'page_token': 'str', + 'sync_check': 'bool', + 'wallet_address': 'str' + } + + attribute_map = { + 'block_height': 'blockHeight', + 'blockchain': 'blockchain', + 'native_first': 'nativeFirst', + 'only_whitelisted': 'onlyWhitelisted', + 'page_size': 'pageSize', + 'page_token': 'pageToken', + 'sync_check': 'syncCheck', + 'wallet_address': 'walletAddress' + } + + def __init__(self, block_height=None, blockchain=None, native_first=None, only_whitelisted=None, page_size=None, page_token=None, sync_check=None, wallet_address=None): # noqa: E501 + """AnkrGetAccountBalanceHistoricalParams - a model defined in Swagger""" # noqa: E501 + self._block_height = None + self._blockchain = None + self._native_first = None + self._only_whitelisted = None + self._page_size = None + self._page_token = None + self._sync_check = None + self._wallet_address = None + self.discriminator = None + if block_height is not None: + self.block_height = block_height + if blockchain is not None: + self.blockchain = blockchain + if native_first is not None: + self.native_first = native_first + if only_whitelisted is not None: + self.only_whitelisted = only_whitelisted + if page_size is not None: + self.page_size = page_size + if page_token is not None: + self.page_token = page_token + if sync_check is not None: + self.sync_check = sync_check + self.wallet_address = wallet_address + + @property + def block_height(self): + """Gets the block_height of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + + Height of the block to get balance from. Latest block if 0. # noqa: E501 + + :return: The block_height of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :rtype: int + """ + return self._block_height + + @block_height.setter + def block_height(self, block_height): + """Sets the block_height of this AnkrGetAccountBalanceHistoricalParams. + + Height of the block to get balance from. Latest block if 0. # noqa: E501 + + :param block_height: The block_height of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :type: int + """ + + self._block_height = block_height + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. # noqa: E501 + + :return: The blockchain of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :rtype: list[str] + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetAccountBalanceHistoricalParams. + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :type: list[str] + """ + + self._blockchain = blockchain + + @property + def native_first(self): + """Gets the native_first of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + + Sorting order. Native network token first (true) or not (false). # noqa: E501 + + :return: The native_first of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :rtype: bool + """ + return self._native_first + + @native_first.setter + def native_first(self, native_first): + """Sets the native_first of this AnkrGetAccountBalanceHistoricalParams. + + Sorting order. Native network token first (true) or not (false). # noqa: E501 + + :param native_first: The native_first of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :type: bool + """ + + self._native_first = native_first + + @property + def only_whitelisted(self): + """Gets the only_whitelisted of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + + Filtering. Only show tokens listed on CoinGekko (true) or all the tokens (false). Default — true. # noqa: E501 + + :return: The only_whitelisted of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :rtype: bool + """ + return self._only_whitelisted + + @only_whitelisted.setter + def only_whitelisted(self, only_whitelisted): + """Sets the only_whitelisted of this AnkrGetAccountBalanceHistoricalParams. + + Filtering. Only show tokens listed on CoinGekko (true) or all the tokens (false). Default — true. # noqa: E501 + + :param only_whitelisted: The only_whitelisted of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :type: bool + """ + + self._only_whitelisted = only_whitelisted + + @property + def page_size(self): + """Gets the page_size of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + + Number of entries per page. int32. Max value — all, default value — all. # noqa: E501 + + :return: The page_size of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this AnkrGetAccountBalanceHistoricalParams. + + Number of entries per page. int32. Max value — all, default value — all. # noqa: E501 + + :param page_size: The page_size of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def page_token(self): + """Gets the page_token of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + + Current page token for pagination. # noqa: E501 + + :return: The page_token of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :rtype: str + """ + return self._page_token + + @page_token.setter + def page_token(self, page_token): + """Sets the page_token of this AnkrGetAccountBalanceHistoricalParams. + + Current page token for pagination. # noqa: E501 + + :param page_token: The page_token of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :type: str + """ + + self._page_token = page_token + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetAccountBalanceHistoricalParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def wallet_address(self): + """Gets the wallet_address of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + + Address to get the balance of. # noqa: E501 + + :return: The wallet_address of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :rtype: str + """ + return self._wallet_address + + @wallet_address.setter + def wallet_address(self, wallet_address): + """Sets the wallet_address of this AnkrGetAccountBalanceHistoricalParams. + + Address to get the balance of. # noqa: E501 + + :param wallet_address: The wallet_address of this AnkrGetAccountBalanceHistoricalParams. # noqa: E501 + :type: str + """ + if wallet_address is None: + raise ValueError("Invalid value for `wallet_address`, must not be `None`") # noqa: E501 + + self._wallet_address = wallet_address + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetAccountBalanceHistoricalParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetAccountBalanceHistoricalParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_account_balance_params.py b/ankr/models/ankr_get_account_balance_params.py new file mode 100644 index 0000000..2460196 --- /dev/null +++ b/ankr/models/ankr_get_account_balance_params.py @@ -0,0 +1,281 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetAccountBalanceParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'list[str]', + 'native_first': 'bool', + 'only_whitelisted': 'bool', + 'page_size': 'int', + 'page_token': 'str', + 'sync_check': 'bool', + 'wallet_address': 'str' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'native_first': 'nativeFirst', + 'only_whitelisted': 'onlyWhitelisted', + 'page_size': 'pageSize', + 'page_token': 'pageToken', + 'sync_check': 'syncCheck', + 'wallet_address': 'walletAddress' + } + + def __init__(self, blockchain=None, native_first=None, only_whitelisted=None, page_size=None, page_token=None, sync_check=None, wallet_address=None): # noqa: E501 + """AnkrGetAccountBalanceParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._native_first = None + self._only_whitelisted = None + self._page_size = None + self._page_token = None + self._sync_check = None + self._wallet_address = None + self.discriminator = None + if blockchain is not None: + self.blockchain = blockchain + if native_first is not None: + self.native_first = native_first + if only_whitelisted is not None: + self.only_whitelisted = only_whitelisted + if page_size is not None: + self.page_size = page_size + if page_token is not None: + self.page_token = page_token + if sync_check is not None: + self.sync_check = sync_check + self.wallet_address = wallet_address + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetAccountBalanceParams. # noqa: E501 + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. # noqa: E501 + + :return: The blockchain of this AnkrGetAccountBalanceParams. # noqa: E501 + :rtype: list[str] + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetAccountBalanceParams. + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetAccountBalanceParams. # noqa: E501 + :type: list[str] + """ + + self._blockchain = blockchain + + @property + def native_first(self): + """Gets the native_first of this AnkrGetAccountBalanceParams. # noqa: E501 + + Sorting order. Native network token first (true) or not (false). # noqa: E501 + + :return: The native_first of this AnkrGetAccountBalanceParams. # noqa: E501 + :rtype: bool + """ + return self._native_first + + @native_first.setter + def native_first(self, native_first): + """Sets the native_first of this AnkrGetAccountBalanceParams. + + Sorting order. Native network token first (true) or not (false). # noqa: E501 + + :param native_first: The native_first of this AnkrGetAccountBalanceParams. # noqa: E501 + :type: bool + """ + + self._native_first = native_first + + @property + def only_whitelisted(self): + """Gets the only_whitelisted of this AnkrGetAccountBalanceParams. # noqa: E501 + + Filtering. Only show tokens listed on CoinGekko (true) or all the tokens (false). Default — true. # noqa: E501 + + :return: The only_whitelisted of this AnkrGetAccountBalanceParams. # noqa: E501 + :rtype: bool + """ + return self._only_whitelisted + + @only_whitelisted.setter + def only_whitelisted(self, only_whitelisted): + """Sets the only_whitelisted of this AnkrGetAccountBalanceParams. + + Filtering. Only show tokens listed on CoinGekko (true) or all the tokens (false). Default — true. # noqa: E501 + + :param only_whitelisted: The only_whitelisted of this AnkrGetAccountBalanceParams. # noqa: E501 + :type: bool + """ + + self._only_whitelisted = only_whitelisted + + @property + def page_size(self): + """Gets the page_size of this AnkrGetAccountBalanceParams. # noqa: E501 + + Number of entries per page. int32. Max value — all, default value — all. # noqa: E501 + + :return: The page_size of this AnkrGetAccountBalanceParams. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this AnkrGetAccountBalanceParams. + + Number of entries per page. int32. Max value — all, default value — all. # noqa: E501 + + :param page_size: The page_size of this AnkrGetAccountBalanceParams. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def page_token(self): + """Gets the page_token of this AnkrGetAccountBalanceParams. # noqa: E501 + + Current page token for pagination. # noqa: E501 + + :return: The page_token of this AnkrGetAccountBalanceParams. # noqa: E501 + :rtype: str + """ + return self._page_token + + @page_token.setter + def page_token(self, page_token): + """Sets the page_token of this AnkrGetAccountBalanceParams. + + Current page token for pagination. # noqa: E501 + + :param page_token: The page_token of this AnkrGetAccountBalanceParams. # noqa: E501 + :type: str + """ + + self._page_token = page_token + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetAccountBalanceParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetAccountBalanceParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetAccountBalanceParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetAccountBalanceParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def wallet_address(self): + """Gets the wallet_address of this AnkrGetAccountBalanceParams. # noqa: E501 + + Address to get the balance of. # noqa: E501 + + :return: The wallet_address of this AnkrGetAccountBalanceParams. # noqa: E501 + :rtype: str + """ + return self._wallet_address + + @wallet_address.setter + def wallet_address(self, wallet_address): + """Sets the wallet_address of this AnkrGetAccountBalanceParams. + + Address to get the balance of. # noqa: E501 + + :param wallet_address: The wallet_address of this AnkrGetAccountBalanceParams. # noqa: E501 + :type: str + """ + if wallet_address is None: + raise ValueError("Invalid value for `wallet_address`, must not be `None`") # noqa: E501 + + self._wallet_address = wallet_address + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetAccountBalanceParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetAccountBalanceParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_blockchain_stats_body.py b/ankr/models/ankr_get_blockchain_stats_body.py new file mode 100644 index 0000000..04a8059 --- /dev/null +++ b/ankr/models/ankr_get_blockchain_stats_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetBlockchainStatsBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetBlockchainStatsParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetBlockchainStatsBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetBlockchainStatsBody. # noqa: E501 + + + :return: The id of this AnkrGetBlockchainStatsBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetBlockchainStatsBody. + + + :param id: The id of this AnkrGetBlockchainStatsBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetBlockchainStatsBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetBlockchainStatsBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetBlockchainStatsBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetBlockchainStatsBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetBlockchainStatsBody. # noqa: E501 + + + :return: The method of this AnkrGetBlockchainStatsBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetBlockchainStatsBody. + + + :param method: The method of this AnkrGetBlockchainStatsBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getBlockchainStats"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetBlockchainStatsBody. # noqa: E501 + + + :return: The params of this AnkrGetBlockchainStatsBody. # noqa: E501 + :rtype: AnkrGetBlockchainStatsParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetBlockchainStatsBody. + + + :param params: The params of this AnkrGetBlockchainStatsBody. # noqa: E501 + :type: AnkrGetBlockchainStatsParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetBlockchainStatsBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetBlockchainStatsBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_blockchain_stats_params.py b/ankr/models/ankr_get_blockchain_stats_params.py new file mode 100644 index 0000000..ead3ba9 --- /dev/null +++ b/ankr/models/ankr_get_blockchain_stats_params.py @@ -0,0 +1,140 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetBlockchainStatsParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'list[str]', + 'sync_check': 'bool' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'sync_check': 'syncCheck' + } + + def __init__(self, blockchain=None, sync_check=None): # noqa: E501 + """AnkrGetBlockchainStatsParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._sync_check = None + self.discriminator = None + if blockchain is not None: + self.blockchain = blockchain + if sync_check is not None: + self.sync_check = sync_check + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetBlockchainStatsParams. # noqa: E501 + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. # noqa: E501 + + :return: The blockchain of this AnkrGetBlockchainStatsParams. # noqa: E501 + :rtype: list[str] + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetBlockchainStatsParams. + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetBlockchainStatsParams. # noqa: E501 + :type: list[str] + """ + + self._blockchain = blockchain + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetBlockchainStatsParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetBlockchainStatsParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetBlockchainStatsParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetBlockchainStatsParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetBlockchainStatsParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetBlockchainStatsParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_blocks_body.py b/ankr/models/ankr_get_blocks_body.py new file mode 100644 index 0000000..ec60178 --- /dev/null +++ b/ankr/models/ankr_get_blocks_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetBlocksBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetBlocksParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetBlocksBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetBlocksBody. # noqa: E501 + + + :return: The id of this AnkrGetBlocksBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetBlocksBody. + + + :param id: The id of this AnkrGetBlocksBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetBlocksBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetBlocksBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetBlocksBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetBlocksBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetBlocksBody. # noqa: E501 + + + :return: The method of this AnkrGetBlocksBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetBlocksBody. + + + :param method: The method of this AnkrGetBlocksBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getBlocks"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetBlocksBody. # noqa: E501 + + + :return: The params of this AnkrGetBlocksBody. # noqa: E501 + :rtype: AnkrGetBlocksParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetBlocksBody. + + + :param params: The params of this AnkrGetBlocksBody. # noqa: E501 + :type: AnkrGetBlocksParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetBlocksBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetBlocksBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_blocks_params.py b/ankr/models/ankr_get_blocks_params.py new file mode 100644 index 0000000..b420cc6 --- /dev/null +++ b/ankr/models/ankr_get_blocks_params.py @@ -0,0 +1,343 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetBlocksParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'str', + 'decode_logs': 'bool', + 'decode_tx_data': 'bool', + 'desc_order': 'bool', + 'from_block': 'int', + 'include_logs': 'bool', + 'include_txs': 'bool', + 'sync_check': 'bool', + 'to_block': 'object' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'decode_logs': 'decodeLogs', + 'decode_tx_data': 'decodeTxData', + 'desc_order': 'descOrder', + 'from_block': 'fromBlock', + 'include_logs': 'includeLogs', + 'include_txs': 'includeTxs', + 'sync_check': 'syncCheck', + 'to_block': 'toBlock' + } + + def __init__(self, blockchain=None, decode_logs=None, decode_tx_data=None, desc_order=None, from_block=None, include_logs=None, include_txs=None, sync_check=None, to_block=None): # noqa: E501 + """AnkrGetBlocksParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._decode_logs = None + self._decode_tx_data = None + self._desc_order = None + self._from_block = None + self._include_logs = None + self._include_txs = None + self._sync_check = None + self._to_block = None + self.discriminator = None + self.blockchain = blockchain + if decode_logs is not None: + self.decode_logs = decode_logs + if decode_tx_data is not None: + self.decode_tx_data = decode_tx_data + if desc_order is not None: + self.desc_order = desc_order + if from_block is not None: + self.from_block = from_block + if include_logs is not None: + self.include_logs = include_logs + if include_txs is not None: + self.include_txs = include_txs + if sync_check is not None: + self.sync_check = sync_check + if to_block is not None: + self.to_block = to_block + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetBlocksParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrGetBlocksParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetBlocksParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetBlocksParams. # noqa: E501 + :type: str + """ + if blockchain is None: + raise ValueError("Invalid value for `blockchain`, must not be `None`") # noqa: E501 + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def decode_logs(self): + """Gets the decode_logs of this AnkrGetBlocksParams. # noqa: E501 + + Decode logs (true) or not (false). # noqa: E501 + + :return: The decode_logs of this AnkrGetBlocksParams. # noqa: E501 + :rtype: bool + """ + return self._decode_logs + + @decode_logs.setter + def decode_logs(self, decode_logs): + """Sets the decode_logs of this AnkrGetBlocksParams. + + Decode logs (true) or not (false). # noqa: E501 + + :param decode_logs: The decode_logs of this AnkrGetBlocksParams. # noqa: E501 + :type: bool + """ + + self._decode_logs = decode_logs + + @property + def decode_tx_data(self): + """Gets the decode_tx_data of this AnkrGetBlocksParams. # noqa: E501 + + Decode transaction data (true) or not (false). # noqa: E501 + + :return: The decode_tx_data of this AnkrGetBlocksParams. # noqa: E501 + :rtype: bool + """ + return self._decode_tx_data + + @decode_tx_data.setter + def decode_tx_data(self, decode_tx_data): + """Sets the decode_tx_data of this AnkrGetBlocksParams. + + Decode transaction data (true) or not (false). # noqa: E501 + + :param decode_tx_data: The decode_tx_data of this AnkrGetBlocksParams. # noqa: E501 + :type: bool + """ + + self._decode_tx_data = decode_tx_data + + @property + def desc_order(self): + """Gets the desc_order of this AnkrGetBlocksParams. # noqa: E501 + + Sorting order. Descending (true) or ascending (false). # noqa: E501 + + :return: The desc_order of this AnkrGetBlocksParams. # noqa: E501 + :rtype: bool + """ + return self._desc_order + + @desc_order.setter + def desc_order(self, desc_order): + """Sets the desc_order of this AnkrGetBlocksParams. + + Sorting order. Descending (true) or ascending (false). # noqa: E501 + + :param desc_order: The desc_order of this AnkrGetBlocksParams. # noqa: E501 + :type: bool + """ + + self._desc_order = desc_order + + @property + def from_block(self): + """Gets the from_block of this AnkrGetBlocksParams. # noqa: E501 + + Number of the first block in a range. Integer or string (hex value or earliest). Max range — 30 blocks. # noqa: E501 + + :return: The from_block of this AnkrGetBlocksParams. # noqa: E501 + :rtype: int + """ + return self._from_block + + @from_block.setter + def from_block(self, from_block): + """Sets the from_block of this AnkrGetBlocksParams. + + Number of the first block in a range. Integer or string (hex value or earliest). Max range — 30 blocks. # noqa: E501 + + :param from_block: The from_block of this AnkrGetBlocksParams. # noqa: E501 + :type: int + """ + + self._from_block = from_block + + @property + def include_logs(self): + """Gets the include_logs of this AnkrGetBlocksParams. # noqa: E501 + + Include logs (true) or exclude them (false). Logs are stored inside transactions, so includeTxs also has to be true when IncludeLogs is true. # noqa: E501 + + :return: The include_logs of this AnkrGetBlocksParams. # noqa: E501 + :rtype: bool + """ + return self._include_logs + + @include_logs.setter + def include_logs(self, include_logs): + """Sets the include_logs of this AnkrGetBlocksParams. + + Include logs (true) or exclude them (false). Logs are stored inside transactions, so includeTxs also has to be true when IncludeLogs is true. # noqa: E501 + + :param include_logs: The include_logs of this AnkrGetBlocksParams. # noqa: E501 + :type: bool + """ + + self._include_logs = include_logs + + @property + def include_txs(self): + """Gets the include_txs of this AnkrGetBlocksParams. # noqa: E501 + + Include transactions (true) or exclude them (false). IncludeTxs has to be true if IncludeLogs is true. # noqa: E501 + + :return: The include_txs of this AnkrGetBlocksParams. # noqa: E501 + :rtype: bool + """ + return self._include_txs + + @include_txs.setter + def include_txs(self, include_txs): + """Sets the include_txs of this AnkrGetBlocksParams. + + Include transactions (true) or exclude them (false). IncludeTxs has to be true if IncludeLogs is true. # noqa: E501 + + :param include_txs: The include_txs of this AnkrGetBlocksParams. # noqa: E501 + :type: bool + """ + + self._include_txs = include_txs + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetBlocksParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetBlocksParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetBlocksParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetBlocksParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def to_block(self): + """Gets the to_block of this AnkrGetBlocksParams. # noqa: E501 + + Number of the last block in a range. Integer or string (hex value or latest). Max range — 30 blocks. # noqa: E501 + + :return: The to_block of this AnkrGetBlocksParams. # noqa: E501 + :rtype: object + """ + return self._to_block + + @to_block.setter + def to_block(self, to_block): + """Sets the to_block of this AnkrGetBlocksParams. + + Number of the last block in a range. Integer or string (hex value or latest). Max range — 30 blocks. # noqa: E501 + + :param to_block: The to_block of this AnkrGetBlocksParams. # noqa: E501 + :type: object + """ + + self._to_block = to_block + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetBlocksParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetBlocksParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_currencies_body.py b/ankr/models/ankr_get_currencies_body.py new file mode 100644 index 0000000..f0efe5b --- /dev/null +++ b/ankr/models/ankr_get_currencies_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetCurrenciesBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetCurrenciesParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetCurrenciesBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetCurrenciesBody. # noqa: E501 + + + :return: The id of this AnkrGetCurrenciesBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetCurrenciesBody. + + + :param id: The id of this AnkrGetCurrenciesBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetCurrenciesBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetCurrenciesBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetCurrenciesBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetCurrenciesBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetCurrenciesBody. # noqa: E501 + + + :return: The method of this AnkrGetCurrenciesBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetCurrenciesBody. + + + :param method: The method of this AnkrGetCurrenciesBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getCurrencies"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetCurrenciesBody. # noqa: E501 + + + :return: The params of this AnkrGetCurrenciesBody. # noqa: E501 + :rtype: AnkrGetCurrenciesParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetCurrenciesBody. + + + :param params: The params of this AnkrGetCurrenciesBody. # noqa: E501 + :type: AnkrGetCurrenciesParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetCurrenciesBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetCurrenciesBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_currencies_params.py b/ankr/models/ankr_get_currencies_params.py new file mode 100644 index 0000000..135a3da --- /dev/null +++ b/ankr/models/ankr_get_currencies_params.py @@ -0,0 +1,147 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetCurrenciesParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'str', + 'sync_check': 'bool' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'sync_check': 'syncCheck' + } + + def __init__(self, blockchain=None, sync_check=None): # noqa: E501 + """AnkrGetCurrenciesParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._sync_check = None + self.discriminator = None + self.blockchain = blockchain + if sync_check is not None: + self.sync_check = sync_check + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetCurrenciesParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrGetCurrenciesParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetCurrenciesParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetCurrenciesParams. # noqa: E501 + :type: str + """ + if blockchain is None: + raise ValueError("Invalid value for `blockchain`, must not be `None`") # noqa: E501 + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetCurrenciesParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetCurrenciesParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetCurrenciesParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetCurrenciesParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetCurrenciesParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetCurrenciesParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_interactions_body.py b/ankr/models/ankr_get_interactions_body.py new file mode 100644 index 0000000..3198259 --- /dev/null +++ b/ankr/models/ankr_get_interactions_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetInteractionsBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetInteractionsParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetInteractionsBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetInteractionsBody. # noqa: E501 + + + :return: The id of this AnkrGetInteractionsBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetInteractionsBody. + + + :param id: The id of this AnkrGetInteractionsBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetInteractionsBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetInteractionsBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetInteractionsBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetInteractionsBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetInteractionsBody. # noqa: E501 + + + :return: The method of this AnkrGetInteractionsBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetInteractionsBody. + + + :param method: The method of this AnkrGetInteractionsBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getInteractions"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetInteractionsBody. # noqa: E501 + + + :return: The params of this AnkrGetInteractionsBody. # noqa: E501 + :rtype: AnkrGetInteractionsParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetInteractionsBody. + + + :param params: The params of this AnkrGetInteractionsBody. # noqa: E501 + :type: AnkrGetInteractionsParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetInteractionsBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetInteractionsBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_interactions_params.py b/ankr/models/ankr_get_interactions_params.py new file mode 100644 index 0000000..d4167db --- /dev/null +++ b/ankr/models/ankr_get_interactions_params.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetInteractionsParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'address': 'str', + 'sync_check': 'bool' + } + + attribute_map = { + 'address': 'address', + 'sync_check': 'syncCheck' + } + + def __init__(self, address=None, sync_check=None): # noqa: E501 + """AnkrGetInteractionsParams - a model defined in Swagger""" # noqa: E501 + self._address = None + self._sync_check = None + self.discriminator = None + self.address = address + if sync_check is not None: + self.sync_check = sync_check + + @property + def address(self): + """Gets the address of this AnkrGetInteractionsParams. # noqa: E501 + + Address of a wallet or a contract. # noqa: E501 + + :return: The address of this AnkrGetInteractionsParams. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this AnkrGetInteractionsParams. + + Address of a wallet or a contract. # noqa: E501 + + :param address: The address of this AnkrGetInteractionsParams. # noqa: E501 + :type: str + """ + if address is None: + raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 + + self._address = address + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetInteractionsParams. # noqa: E501 + + If true the info will be returned regardless of the indexer health. # noqa: E501 + + :return: The sync_check of this AnkrGetInteractionsParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetInteractionsParams. + + If true the info will be returned regardless of the indexer health. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetInteractionsParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetInteractionsParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetInteractionsParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_internal_transactions_by_block_number_body.py b/ankr/models/ankr_get_internal_transactions_by_block_number_body.py new file mode 100644 index 0000000..5a2e4a2 --- /dev/null +++ b/ankr/models/ankr_get_internal_transactions_by_block_number_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetInternalTransactionsByBlockNumberBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetInternalTransactionsByBlockNumberParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetInternalTransactionsByBlockNumberBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + + + :return: The id of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetInternalTransactionsByBlockNumberBody. + + + :param id: The id of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetInternalTransactionsByBlockNumberBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + + + :return: The method of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetInternalTransactionsByBlockNumberBody. + + + :param method: The method of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getInternalTransactionsByBlockNumber"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + + + :return: The params of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + :rtype: AnkrGetInternalTransactionsByBlockNumberParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetInternalTransactionsByBlockNumberBody. + + + :param params: The params of this AnkrGetInternalTransactionsByBlockNumberBody. # noqa: E501 + :type: AnkrGetInternalTransactionsByBlockNumberParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetInternalTransactionsByBlockNumberBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetInternalTransactionsByBlockNumberBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_internal_transactions_by_block_number_params.py b/ankr/models/ankr_get_internal_transactions_by_block_number_params.py new file mode 100644 index 0000000..da3b5cd --- /dev/null +++ b/ankr/models/ankr_get_internal_transactions_by_block_number_params.py @@ -0,0 +1,203 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetInternalTransactionsByBlockNumberParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'block_number': 'int', + 'blockchain': 'str', + 'only_with_value': 'bool', + 'sync_check': 'bool' + } + + attribute_map = { + 'block_number': 'blockNumber', + 'blockchain': 'blockchain', + 'only_with_value': 'onlyWithValue', + 'sync_check': 'syncCheck' + } + + def __init__(self, block_number=None, blockchain=None, only_with_value=None, sync_check=None): # noqa: E501 + """AnkrGetInternalTransactionsByBlockNumberParams - a model defined in Swagger""" # noqa: E501 + self._block_number = None + self._blockchain = None + self._only_with_value = None + self._sync_check = None + self.discriminator = None + if block_number is not None: + self.block_number = block_number + self.blockchain = blockchain + if only_with_value is not None: + self.only_with_value = only_with_value + if sync_check is not None: + self.sync_check = sync_check + + @property + def block_number(self): + """Gets the block_number of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + + Number of the block that contains the transaction. # noqa: E501 + + :return: The block_number of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + :rtype: int + """ + return self._block_number + + @block_number.setter + def block_number(self, block_number): + """Sets the block_number of this AnkrGetInternalTransactionsByBlockNumberParams. + + Number of the block that contains the transaction. # noqa: E501 + + :param block_number: The block_number of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + :type: int + """ + + self._block_number = block_number + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetInternalTransactionsByBlockNumberParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + :type: str + """ + if blockchain is None: + raise ValueError("Invalid value for `blockchain`, must not be `None`") # noqa: E501 + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def only_with_value(self): + """Gets the only_with_value of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + + Filtering. Only responses containing the value parameter (true) or all responses (false). # noqa: E501 + + :return: The only_with_value of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + :rtype: bool + """ + return self._only_with_value + + @only_with_value.setter + def only_with_value(self, only_with_value): + """Sets the only_with_value of this AnkrGetInternalTransactionsByBlockNumberParams. + + Filtering. Only responses containing the value parameter (true) or all responses (false). # noqa: E501 + + :param only_with_value: The only_with_value of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + :type: bool + """ + + self._only_with_value = only_with_value + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetInternalTransactionsByBlockNumberParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetInternalTransactionsByBlockNumberParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetInternalTransactionsByBlockNumberParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetInternalTransactionsByBlockNumberParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_internal_transactions_by_parent_hash_body.py b/ankr/models/ankr_get_internal_transactions_by_parent_hash_body.py new file mode 100644 index 0000000..2cce465 --- /dev/null +++ b/ankr/models/ankr_get_internal_transactions_by_parent_hash_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetInternalTransactionsByParentHashBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetInternalTransactionsByParentHashParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetInternalTransactionsByParentHashBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + + + :return: The id of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetInternalTransactionsByParentHashBody. + + + :param id: The id of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetInternalTransactionsByParentHashBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + + + :return: The method of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetInternalTransactionsByParentHashBody. + + + :param method: The method of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getInternalTransactionsByParentHash"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + + + :return: The params of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + :rtype: AnkrGetInternalTransactionsByParentHashParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetInternalTransactionsByParentHashBody. + + + :param params: The params of this AnkrGetInternalTransactionsByParentHashBody. # noqa: E501 + :type: AnkrGetInternalTransactionsByParentHashParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetInternalTransactionsByParentHashBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetInternalTransactionsByParentHashBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_internal_transactions_by_parent_hash_params.py b/ankr/models/ankr_get_internal_transactions_by_parent_hash_params.py new file mode 100644 index 0000000..3a93be3 --- /dev/null +++ b/ankr/models/ankr_get_internal_transactions_by_parent_hash_params.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetInternalTransactionsByParentHashParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'str', + 'only_with_value': 'bool', + 'parent_transaction_hash': 'str', + 'sync_check': 'bool' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'only_with_value': 'onlyWithValue', + 'parent_transaction_hash': 'parentTransactionHash', + 'sync_check': 'syncCheck' + } + + def __init__(self, blockchain=None, only_with_value=None, parent_transaction_hash=None, sync_check=None): # noqa: E501 + """AnkrGetInternalTransactionsByParentHashParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._only_with_value = None + self._parent_transaction_hash = None + self._sync_check = None + self.discriminator = None + self.blockchain = blockchain + if only_with_value is not None: + self.only_with_value = only_with_value + self.parent_transaction_hash = parent_transaction_hash + if sync_check is not None: + self.sync_check = sync_check + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetInternalTransactionsByParentHashParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + :type: str + """ + if blockchain is None: + raise ValueError("Invalid value for `blockchain`, must not be `None`") # noqa: E501 + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def only_with_value(self): + """Gets the only_with_value of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + + Filtering. Only responses containing the value parameter (true) or all responses (false). # noqa: E501 + + :return: The only_with_value of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + :rtype: bool + """ + return self._only_with_value + + @only_with_value.setter + def only_with_value(self, only_with_value): + """Sets the only_with_value of this AnkrGetInternalTransactionsByParentHashParams. + + Filtering. Only responses containing the value parameter (true) or all responses (false). # noqa: E501 + + :param only_with_value: The only_with_value of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + :type: bool + """ + + self._only_with_value = only_with_value + + @property + def parent_transaction_hash(self): + """Gets the parent_transaction_hash of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + + Hash of the parents transaction — the one that caused internal transaction. # noqa: E501 + + :return: The parent_transaction_hash of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + :rtype: str + """ + return self._parent_transaction_hash + + @parent_transaction_hash.setter + def parent_transaction_hash(self, parent_transaction_hash): + """Sets the parent_transaction_hash of this AnkrGetInternalTransactionsByParentHashParams. + + Hash of the parents transaction — the one that caused internal transaction. # noqa: E501 + + :param parent_transaction_hash: The parent_transaction_hash of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + :type: str + """ + if parent_transaction_hash is None: + raise ValueError("Invalid value for `parent_transaction_hash`, must not be `None`") # noqa: E501 + + self._parent_transaction_hash = parent_transaction_hash + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetInternalTransactionsByParentHashParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetInternalTransactionsByParentHashParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetInternalTransactionsByParentHashParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetInternalTransactionsByParentHashParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_logs_body.py b/ankr/models/ankr_get_logs_body.py new file mode 100644 index 0000000..92f08ed --- /dev/null +++ b/ankr/models/ankr_get_logs_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetLogsBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetLogsParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetLogsBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetLogsBody. # noqa: E501 + + + :return: The id of this AnkrGetLogsBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetLogsBody. + + + :param id: The id of this AnkrGetLogsBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetLogsBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetLogsBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetLogsBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetLogsBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetLogsBody. # noqa: E501 + + + :return: The method of this AnkrGetLogsBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetLogsBody. + + + :param method: The method of this AnkrGetLogsBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getLogs"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetLogsBody. # noqa: E501 + + + :return: The params of this AnkrGetLogsBody. # noqa: E501 + :rtype: AnkrGetLogsParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetLogsBody. + + + :param params: The params of this AnkrGetLogsBody. # noqa: E501 + :type: AnkrGetLogsParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetLogsBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetLogsBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_logs_params.py b/ankr/models/ankr_get_logs_params.py new file mode 100644 index 0000000..1582604 --- /dev/null +++ b/ankr/models/ankr_get_logs_params.py @@ -0,0 +1,420 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetLogsParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'address': 'list[str]', + 'blockchain': 'list[str]', + 'decode_logs': 'bool', + 'desc_order': 'bool', + 'from_block': 'int', + 'from_timestamp': 'int', + 'page_size': 'int', + 'page_token': 'str', + 'sync_check': 'bool', + 'to_block': 'object', + 'to_timestamp': 'object', + 'topics': 'list[list[list[int]]]' + } + + attribute_map = { + 'address': 'address', + 'blockchain': 'blockchain', + 'decode_logs': 'decodeLogs', + 'desc_order': 'descOrder', + 'from_block': 'fromBlock', + 'from_timestamp': 'fromTimestamp', + 'page_size': 'pageSize', + 'page_token': 'pageToken', + 'sync_check': 'syncCheck', + 'to_block': 'toBlock', + 'to_timestamp': 'toTimestamp', + 'topics': 'topics' + } + + def __init__(self, address=None, blockchain=None, decode_logs=None, desc_order=True, from_block=None, from_timestamp=None, page_size=1000, page_token=None, sync_check=None, to_block=None, to_timestamp=None, topics=None): # noqa: E501 + """AnkrGetLogsParams - a model defined in Swagger""" # noqa: E501 + self._address = None + self._blockchain = None + self._decode_logs = None + self._desc_order = None + self._from_block = None + self._from_timestamp = None + self._page_size = None + self._page_token = None + self._sync_check = None + self._to_block = None + self._to_timestamp = None + self._topics = None + self.discriminator = None + if address is not None: + self.address = address + if blockchain is not None: + self.blockchain = blockchain + if decode_logs is not None: + self.decode_logs = decode_logs + if desc_order is not None: + self.desc_order = desc_order + if from_block is not None: + self.from_block = from_block + if from_timestamp is not None: + self.from_timestamp = from_timestamp + if page_size is not None: + self.page_size = page_size + if page_token is not None: + self.page_token = page_token + if sync_check is not None: + self.sync_check = sync_check + if to_block is not None: + self.to_block = to_block + if to_timestamp is not None: + self.to_timestamp = to_timestamp + if topics is not None: + self.topics = topics + + @property + def address(self): + """Gets the address of this AnkrGetLogsParams. # noqa: E501 + + Сontract address or a list of addresses from which logs should originate. # noqa: E501 + + :return: The address of this AnkrGetLogsParams. # noqa: E501 + :rtype: list[str] + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this AnkrGetLogsParams. + + Сontract address or a list of addresses from which logs should originate. # noqa: E501 + + :param address: The address of this AnkrGetLogsParams. # noqa: E501 + :type: list[str] + """ + + self._address = address + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetLogsParams. # noqa: E501 + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. # noqa: E501 + + :return: The blockchain of this AnkrGetLogsParams. # noqa: E501 + :rtype: list[str] + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetLogsParams. + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetLogsParams. # noqa: E501 + :type: list[str] + """ + + self._blockchain = blockchain + + @property + def decode_logs(self): + """Gets the decode_logs of this AnkrGetLogsParams. # noqa: E501 + + Decode logs (true) or not (false). # noqa: E501 + + :return: The decode_logs of this AnkrGetLogsParams. # noqa: E501 + :rtype: bool + """ + return self._decode_logs + + @decode_logs.setter + def decode_logs(self, decode_logs): + """Sets the decode_logs of this AnkrGetLogsParams. + + Decode logs (true) or not (false). # noqa: E501 + + :param decode_logs: The decode_logs of this AnkrGetLogsParams. # noqa: E501 + :type: bool + """ + + self._decode_logs = decode_logs + + @property + def desc_order(self): + """Gets the desc_order of this AnkrGetLogsParams. # noqa: E501 + + Sorting order. Descending (true) or ascending (false). # noqa: E501 + + :return: The desc_order of this AnkrGetLogsParams. # noqa: E501 + :rtype: bool + """ + return self._desc_order + + @desc_order.setter + def desc_order(self, desc_order): + """Sets the desc_order of this AnkrGetLogsParams. + + Sorting order. Descending (true) or ascending (false). # noqa: E501 + + :param desc_order: The desc_order of this AnkrGetLogsParams. # noqa: E501 + :type: bool + """ + + self._desc_order = desc_order + + @property + def from_block(self): + """Gets the from_block of this AnkrGetLogsParams. # noqa: E501 + + Number of the first block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :return: The from_block of this AnkrGetLogsParams. # noqa: E501 + :rtype: int + """ + return self._from_block + + @from_block.setter + def from_block(self, from_block): + """Sets the from_block of this AnkrGetLogsParams. + + Number of the first block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :param from_block: The from_block of this AnkrGetLogsParams. # noqa: E501 + :type: int + """ + + self._from_block = from_block + + @property + def from_timestamp(self): + """Gets the from_timestamp of this AnkrGetLogsParams. # noqa: E501 + + Beginning of a time period. UNIX timestamp. # noqa: E501 + + :return: The from_timestamp of this AnkrGetLogsParams. # noqa: E501 + :rtype: int + """ + return self._from_timestamp + + @from_timestamp.setter + def from_timestamp(self, from_timestamp): + """Sets the from_timestamp of this AnkrGetLogsParams. + + Beginning of a time period. UNIX timestamp. # noqa: E501 + + :param from_timestamp: The from_timestamp of this AnkrGetLogsParams. # noqa: E501 + :type: int + """ + + self._from_timestamp = from_timestamp + + @property + def page_size(self): + """Gets the page_size of this AnkrGetLogsParams. # noqa: E501 + + Number of entries per page. int32. # noqa: E501 + + :return: The page_size of this AnkrGetLogsParams. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this AnkrGetLogsParams. + + Number of entries per page. int32. # noqa: E501 + + :param page_size: The page_size of this AnkrGetLogsParams. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def page_token(self): + """Gets the page_token of this AnkrGetLogsParams. # noqa: E501 + + Current page token for pagination. # noqa: E501 + + :return: The page_token of this AnkrGetLogsParams. # noqa: E501 + :rtype: str + """ + return self._page_token + + @page_token.setter + def page_token(self, page_token): + """Sets the page_token of this AnkrGetLogsParams. + + Current page token for pagination. # noqa: E501 + + :param page_token: The page_token of this AnkrGetLogsParams. # noqa: E501 + :type: str + """ + + self._page_token = page_token + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetLogsParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetLogsParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetLogsParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetLogsParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def to_block(self): + """Gets the to_block of this AnkrGetLogsParams. # noqa: E501 + + Number of the last block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :return: The to_block of this AnkrGetLogsParams. # noqa: E501 + :rtype: object + """ + return self._to_block + + @to_block.setter + def to_block(self, to_block): + """Sets the to_block of this AnkrGetLogsParams. + + Number of the last block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :param to_block: The to_block of this AnkrGetLogsParams. # noqa: E501 + :type: object + """ + + self._to_block = to_block + + @property + def to_timestamp(self): + """Gets the to_timestamp of this AnkrGetLogsParams. # noqa: E501 + + End of a time period. UNIX timestamp. # noqa: E501 + + :return: The to_timestamp of this AnkrGetLogsParams. # noqa: E501 + :rtype: object + """ + return self._to_timestamp + + @to_timestamp.setter + def to_timestamp(self, to_timestamp): + """Sets the to_timestamp of this AnkrGetLogsParams. + + End of a time period. UNIX timestamp. # noqa: E501 + + :param to_timestamp: The to_timestamp of this AnkrGetLogsParams. # noqa: E501 + :type: object + """ + + self._to_timestamp = to_timestamp + + @property + def topics(self): + """Gets the topics of this AnkrGetLogsParams. # noqa: E501 + + Array of 32 Bytes DATA topics. Topics are order-dependent. Each topic can also be an array of DATA with 'or' options. # noqa: E501 + + :return: The topics of this AnkrGetLogsParams. # noqa: E501 + :rtype: list[list[list[int]]] + """ + return self._topics + + @topics.setter + def topics(self, topics): + """Sets the topics of this AnkrGetLogsParams. + + Array of 32 Bytes DATA topics. Topics are order-dependent. Each topic can also be an array of DATA with 'or' options. # noqa: E501 + + :param topics: The topics of this AnkrGetLogsParams. # noqa: E501 + :type: list[list[list[int]]] + """ + + self._topics = topics + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetLogsParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetLogsParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_nft_holders_body.py b/ankr/models/ankr_get_nft_holders_body.py new file mode 100644 index 0000000..86921c3 --- /dev/null +++ b/ankr/models/ankr_get_nft_holders_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetNFTHoldersBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetNFTHoldersParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetNFTHoldersBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetNFTHoldersBody. # noqa: E501 + + + :return: The id of this AnkrGetNFTHoldersBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetNFTHoldersBody. + + + :param id: The id of this AnkrGetNFTHoldersBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetNFTHoldersBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetNFTHoldersBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetNFTHoldersBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetNFTHoldersBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetNFTHoldersBody. # noqa: E501 + + + :return: The method of this AnkrGetNFTHoldersBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetNFTHoldersBody. + + + :param method: The method of this AnkrGetNFTHoldersBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getNFTHolders"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetNFTHoldersBody. # noqa: E501 + + + :return: The params of this AnkrGetNFTHoldersBody. # noqa: E501 + :rtype: AnkrGetNFTHoldersParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetNFTHoldersBody. + + + :param params: The params of this AnkrGetNFTHoldersBody. # noqa: E501 + :type: AnkrGetNFTHoldersParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetNFTHoldersBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetNFTHoldersBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_nft_holders_params.py b/ankr/models/ankr_get_nft_holders_params.py new file mode 100644 index 0000000..f67b66d --- /dev/null +++ b/ankr/models/ankr_get_nft_holders_params.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetNFTHoldersParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'str', + 'contract_address': 'str', + 'page_size': 'int', + 'page_token': 'str', + 'sync_check': 'bool' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'contract_address': 'contractAddress', + 'page_size': 'pageSize', + 'page_token': 'pageToken', + 'sync_check': 'syncCheck' + } + + def __init__(self, blockchain=None, contract_address=None, page_size=None, page_token=None, sync_check=None): # noqa: E501 + """AnkrGetNFTHoldersParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._contract_address = None + self._page_size = None + self._page_token = None + self._sync_check = None + self.discriminator = None + self.blockchain = blockchain + self.contract_address = contract_address + if page_size is not None: + self.page_size = page_size + if page_token is not None: + self.page_token = page_token + if sync_check is not None: + self.sync_check = sync_check + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetNFTHoldersParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrGetNFTHoldersParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetNFTHoldersParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetNFTHoldersParams. # noqa: E501 + :type: str + """ + if blockchain is None: + raise ValueError("Invalid value for `blockchain`, must not be `None`") # noqa: E501 + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def contract_address(self): + """Gets the contract_address of this AnkrGetNFTHoldersParams. # noqa: E501 + + Contract address of the NFT collection. Supports ENS. # noqa: E501 + + :return: The contract_address of this AnkrGetNFTHoldersParams. # noqa: E501 + :rtype: str + """ + return self._contract_address + + @contract_address.setter + def contract_address(self, contract_address): + """Sets the contract_address of this AnkrGetNFTHoldersParams. + + Contract address of the NFT collection. Supports ENS. # noqa: E501 + + :param contract_address: The contract_address of this AnkrGetNFTHoldersParams. # noqa: E501 + :type: str + """ + if contract_address is None: + raise ValueError("Invalid value for `contract_address`, must not be `None`") # noqa: E501 + + self._contract_address = contract_address + + @property + def page_size(self): + """Gets the page_size of this AnkrGetNFTHoldersParams. # noqa: E501 + + Number of entries per page. int32. Max value — 10000, default value — 1000. # noqa: E501 + + :return: The page_size of this AnkrGetNFTHoldersParams. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this AnkrGetNFTHoldersParams. + + Number of entries per page. int32. Max value — 10000, default value — 1000. # noqa: E501 + + :param page_size: The page_size of this AnkrGetNFTHoldersParams. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def page_token(self): + """Gets the page_token of this AnkrGetNFTHoldersParams. # noqa: E501 + + Current page token for pagination. # noqa: E501 + + :return: The page_token of this AnkrGetNFTHoldersParams. # noqa: E501 + :rtype: str + """ + return self._page_token + + @page_token.setter + def page_token(self, page_token): + """Sets the page_token of this AnkrGetNFTHoldersParams. + + Current page token for pagination. # noqa: E501 + + :param page_token: The page_token of this AnkrGetNFTHoldersParams. # noqa: E501 + :type: str + """ + + self._page_token = page_token + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetNFTHoldersParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetNFTHoldersParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetNFTHoldersParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetNFTHoldersParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetNFTHoldersParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetNFTHoldersParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_nft_metadata_body.py b/ankr/models/ankr_get_nft_metadata_body.py new file mode 100644 index 0000000..6955a89 --- /dev/null +++ b/ankr/models/ankr_get_nft_metadata_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetNFTMetadataBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetNFTMetadataParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetNFTMetadataBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetNFTMetadataBody. # noqa: E501 + + + :return: The id of this AnkrGetNFTMetadataBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetNFTMetadataBody. + + + :param id: The id of this AnkrGetNFTMetadataBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetNFTMetadataBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetNFTMetadataBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetNFTMetadataBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetNFTMetadataBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetNFTMetadataBody. # noqa: E501 + + + :return: The method of this AnkrGetNFTMetadataBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetNFTMetadataBody. + + + :param method: The method of this AnkrGetNFTMetadataBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getNFTMetadata"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetNFTMetadataBody. # noqa: E501 + + + :return: The params of this AnkrGetNFTMetadataBody. # noqa: E501 + :rtype: AnkrGetNFTMetadataParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetNFTMetadataBody. + + + :param params: The params of this AnkrGetNFTMetadataBody. # noqa: E501 + :type: AnkrGetNFTMetadataParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetNFTMetadataBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetNFTMetadataBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_nft_metadata_params.py b/ankr/models/ankr_get_nft_metadata_params.py new file mode 100644 index 0000000..dd10296 --- /dev/null +++ b/ankr/models/ankr_get_nft_metadata_params.py @@ -0,0 +1,231 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetNFTMetadataParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'str', + 'contract_address': 'str', + 'force_fetch': 'bool', + 'sync_check': 'bool', + 'token_id': 'str' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'contract_address': 'contractAddress', + 'force_fetch': 'forceFetch', + 'sync_check': 'syncCheck', + 'token_id': 'tokenId' + } + + def __init__(self, blockchain=None, contract_address=None, force_fetch=None, sync_check=None, token_id=None): # noqa: E501 + """AnkrGetNFTMetadataParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._contract_address = None + self._force_fetch = None + self._sync_check = None + self._token_id = None + self.discriminator = None + if blockchain is not None: + self.blockchain = blockchain + self.contract_address = contract_address + if force_fetch is not None: + self.force_fetch = force_fetch + if sync_check is not None: + self.sync_check = sync_check + if token_id is not None: + self.token_id = token_id + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetNFTMetadataParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrGetNFTMetadataParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetNFTMetadataParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetNFTMetadataParams. # noqa: E501 + :type: str + """ + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def contract_address(self): + """Gets the contract_address of this AnkrGetNFTMetadataParams. # noqa: E501 + + Address of the NFT contract the metadata belongs to. Supports ENS. # noqa: E501 + + :return: The contract_address of this AnkrGetNFTMetadataParams. # noqa: E501 + :rtype: str + """ + return self._contract_address + + @contract_address.setter + def contract_address(self, contract_address): + """Sets the contract_address of this AnkrGetNFTMetadataParams. + + Address of the NFT contract the metadata belongs to. Supports ENS. # noqa: E501 + + :param contract_address: The contract_address of this AnkrGetNFTMetadataParams. # noqa: E501 + :type: str + """ + if contract_address is None: + raise ValueError("Invalid value for `contract_address`, must not be `None`") # noqa: E501 + + self._contract_address = contract_address + + @property + def force_fetch(self): + """Gets the force_fetch of this AnkrGetNFTMetadataParams. # noqa: E501 + + Get NFT metadata from the contract (true) or database (false). # noqa: E501 + + :return: The force_fetch of this AnkrGetNFTMetadataParams. # noqa: E501 + :rtype: bool + """ + return self._force_fetch + + @force_fetch.setter + def force_fetch(self, force_fetch): + """Sets the force_fetch of this AnkrGetNFTMetadataParams. + + Get NFT metadata from the contract (true) or database (false). # noqa: E501 + + :param force_fetch: The force_fetch of this AnkrGetNFTMetadataParams. # noqa: E501 + :type: bool + """ + + self._force_fetch = force_fetch + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetNFTMetadataParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetNFTMetadataParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetNFTMetadataParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetNFTMetadataParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def token_id(self): + """Gets the token_id of this AnkrGetNFTMetadataParams. # noqa: E501 + + Token ID of the NFT the metadata belongs to. Created by the contract when minting the NFT. # noqa: E501 + + :return: The token_id of this AnkrGetNFTMetadataParams. # noqa: E501 + :rtype: str + """ + return self._token_id + + @token_id.setter + def token_id(self, token_id): + """Sets the token_id of this AnkrGetNFTMetadataParams. + + Token ID of the NFT the metadata belongs to. Created by the contract when minting the NFT. # noqa: E501 + + :param token_id: The token_id of this AnkrGetNFTMetadataParams. # noqa: E501 + :type: str + """ + + self._token_id = token_id + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetNFTMetadataParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetNFTMetadataParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_nft_transfers_body.py b/ankr/models/ankr_get_nft_transfers_body.py new file mode 100644 index 0000000..8c8b720 --- /dev/null +++ b/ankr/models/ankr_get_nft_transfers_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetNftTransfersBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetNftTransfersParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetNftTransfersBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetNftTransfersBody. # noqa: E501 + + + :return: The id of this AnkrGetNftTransfersBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetNftTransfersBody. + + + :param id: The id of this AnkrGetNftTransfersBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetNftTransfersBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetNftTransfersBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetNftTransfersBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetNftTransfersBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetNftTransfersBody. # noqa: E501 + + + :return: The method of this AnkrGetNftTransfersBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetNftTransfersBody. + + + :param method: The method of this AnkrGetNftTransfersBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getNftTransfers"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetNftTransfersBody. # noqa: E501 + + + :return: The params of this AnkrGetNftTransfersBody. # noqa: E501 + :rtype: AnkrGetNftTransfersParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetNftTransfersBody. + + + :param params: The params of this AnkrGetNftTransfersBody. # noqa: E501 + :type: AnkrGetNftTransfersParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetNftTransfersBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetNftTransfersBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_nft_transfers_params.py b/ankr/models/ankr_get_nft_transfers_params.py new file mode 100644 index 0000000..2602a04 --- /dev/null +++ b/ankr/models/ankr_get_nft_transfers_params.py @@ -0,0 +1,364 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetNftTransfersParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'address': 'list[str]', + 'blockchain': 'list[str]', + 'desc_order': 'bool', + 'from_block': 'int', + 'from_timestamp': 'int', + 'page_size': 'int', + 'page_token': 'str', + 'sync_check': 'bool', + 'to_block': 'object', + 'to_timestamp': 'object' + } + + attribute_map = { + 'address': 'address', + 'blockchain': 'blockchain', + 'desc_order': 'descOrder', + 'from_block': 'fromBlock', + 'from_timestamp': 'fromTimestamp', + 'page_size': 'pageSize', + 'page_token': 'pageToken', + 'sync_check': 'syncCheck', + 'to_block': 'toBlock', + 'to_timestamp': 'toTimestamp' + } + + def __init__(self, address=None, blockchain=None, desc_order=None, from_block=None, from_timestamp=None, page_size=None, page_token=None, sync_check=None, to_block=None, to_timestamp=None): # noqa: E501 + """AnkrGetNftTransfersParams - a model defined in Swagger""" # noqa: E501 + self._address = None + self._blockchain = None + self._desc_order = None + self._from_block = None + self._from_timestamp = None + self._page_size = None + self._page_token = None + self._sync_check = None + self._to_block = None + self._to_timestamp = None + self.discriminator = None + if address is not None: + self.address = address + if blockchain is not None: + self.blockchain = blockchain + if desc_order is not None: + self.desc_order = desc_order + if from_block is not None: + self.from_block = from_block + if from_timestamp is not None: + self.from_timestamp = from_timestamp + if page_size is not None: + self.page_size = page_size + if page_token is not None: + self.page_token = page_token + if sync_check is not None: + self.sync_check = sync_check + if to_block is not None: + self.to_block = to_block + if to_timestamp is not None: + self.to_timestamp = to_timestamp + + @property + def address(self): + """Gets the address of this AnkrGetNftTransfersParams. # noqa: E501 + + Address or a list of addresses to get transfer information on. # noqa: E501 + + :return: The address of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: list[str] + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this AnkrGetNftTransfersParams. + + Address or a list of addresses to get transfer information on. # noqa: E501 + + :param address: The address of this AnkrGetNftTransfersParams. # noqa: E501 + :type: list[str] + """ + + self._address = address + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetNftTransfersParams. # noqa: E501 + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. # noqa: E501 + + :return: The blockchain of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: list[str] + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetNftTransfersParams. + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetNftTransfersParams. # noqa: E501 + :type: list[str] + """ + + self._blockchain = blockchain + + @property + def desc_order(self): + """Gets the desc_order of this AnkrGetNftTransfersParams. # noqa: E501 + + Sorting order. Descending (true) or ascending (false). # noqa: E501 + + :return: The desc_order of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: bool + """ + return self._desc_order + + @desc_order.setter + def desc_order(self, desc_order): + """Sets the desc_order of this AnkrGetNftTransfersParams. + + Sorting order. Descending (true) or ascending (false). # noqa: E501 + + :param desc_order: The desc_order of this AnkrGetNftTransfersParams. # noqa: E501 + :type: bool + """ + + self._desc_order = desc_order + + @property + def from_block(self): + """Gets the from_block of this AnkrGetNftTransfersParams. # noqa: E501 + + Number of the first block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :return: The from_block of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: int + """ + return self._from_block + + @from_block.setter + def from_block(self, from_block): + """Sets the from_block of this AnkrGetNftTransfersParams. + + Number of the first block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :param from_block: The from_block of this AnkrGetNftTransfersParams. # noqa: E501 + :type: int + """ + + self._from_block = from_block + + @property + def from_timestamp(self): + """Gets the from_timestamp of this AnkrGetNftTransfersParams. # noqa: E501 + + Beginning of a time period. UNIX timestamp. # noqa: E501 + + :return: The from_timestamp of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: int + """ + return self._from_timestamp + + @from_timestamp.setter + def from_timestamp(self, from_timestamp): + """Sets the from_timestamp of this AnkrGetNftTransfersParams. + + Beginning of a time period. UNIX timestamp. # noqa: E501 + + :param from_timestamp: The from_timestamp of this AnkrGetNftTransfersParams. # noqa: E501 + :type: int + """ + + self._from_timestamp = from_timestamp + + @property + def page_size(self): + """Gets the page_size of this AnkrGetNftTransfersParams. # noqa: E501 + + Number of entries per page. int32. Max value — 10000, default value — 100. # noqa: E501 + + :return: The page_size of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this AnkrGetNftTransfersParams. + + Number of entries per page. int32. Max value — 10000, default value — 100. # noqa: E501 + + :param page_size: The page_size of this AnkrGetNftTransfersParams. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def page_token(self): + """Gets the page_token of this AnkrGetNftTransfersParams. # noqa: E501 + + Current page token for pagination. # noqa: E501 + + :return: The page_token of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: str + """ + return self._page_token + + @page_token.setter + def page_token(self, page_token): + """Sets the page_token of this AnkrGetNftTransfersParams. + + Current page token for pagination. # noqa: E501 + + :param page_token: The page_token of this AnkrGetNftTransfersParams. # noqa: E501 + :type: str + """ + + self._page_token = page_token + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetNftTransfersParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetNftTransfersParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetNftTransfersParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def to_block(self): + """Gets the to_block of this AnkrGetNftTransfersParams. # noqa: E501 + + Number of the last block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :return: The to_block of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: object + """ + return self._to_block + + @to_block.setter + def to_block(self, to_block): + """Sets the to_block of this AnkrGetNftTransfersParams. + + Number of the last block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :param to_block: The to_block of this AnkrGetNftTransfersParams. # noqa: E501 + :type: object + """ + + self._to_block = to_block + + @property + def to_timestamp(self): + """Gets the to_timestamp of this AnkrGetNftTransfersParams. # noqa: E501 + + End of a time period. UNIX timestamp. # noqa: E501 + + :return: The to_timestamp of this AnkrGetNftTransfersParams. # noqa: E501 + :rtype: object + """ + return self._to_timestamp + + @to_timestamp.setter + def to_timestamp(self, to_timestamp): + """Sets the to_timestamp of this AnkrGetNftTransfersParams. + + End of a time period. UNIX timestamp. # noqa: E501 + + :param to_timestamp: The to_timestamp of this AnkrGetNftTransfersParams. # noqa: E501 + :type: object + """ + + self._to_timestamp = to_timestamp + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetNftTransfersParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetNftTransfersParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_nfts_by_owner_body.py b/ankr/models/ankr_get_nfts_by_owner_body.py new file mode 100644 index 0000000..0206909 --- /dev/null +++ b/ankr/models/ankr_get_nfts_by_owner_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetNFTsByOwnerBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetNFTsByOwnerParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetNFTsByOwnerBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetNFTsByOwnerBody. # noqa: E501 + + + :return: The id of this AnkrGetNFTsByOwnerBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetNFTsByOwnerBody. + + + :param id: The id of this AnkrGetNFTsByOwnerBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetNFTsByOwnerBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetNFTsByOwnerBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetNFTsByOwnerBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetNFTsByOwnerBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetNFTsByOwnerBody. # noqa: E501 + + + :return: The method of this AnkrGetNFTsByOwnerBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetNFTsByOwnerBody. + + + :param method: The method of this AnkrGetNFTsByOwnerBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getNFTsByOwner"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetNFTsByOwnerBody. # noqa: E501 + + + :return: The params of this AnkrGetNFTsByOwnerBody. # noqa: E501 + :rtype: AnkrGetNFTsByOwnerParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetNFTsByOwnerBody. + + + :param params: The params of this AnkrGetNFTsByOwnerBody. # noqa: E501 + :type: AnkrGetNFTsByOwnerParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetNFTsByOwnerBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetNFTsByOwnerBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_nfts_by_owner_params.py b/ankr/models/ankr_get_nfts_by_owner_params.py new file mode 100644 index 0000000..cad1894 --- /dev/null +++ b/ankr/models/ankr_get_nfts_by_owner_params.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetNFTsByOwnerParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'list[str]', + 'filter': 'list[dict(str, list[str])]', + 'page_size': 'int', + 'page_token': 'str', + 'sync_check': 'bool', + 'wallet_address': 'str' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'filter': 'filter', + 'page_size': 'pageSize', + 'page_token': 'pageToken', + 'sync_check': 'syncCheck', + 'wallet_address': 'walletAddress' + } + + def __init__(self, blockchain=None, filter=None, page_size=None, page_token=None, sync_check=None, wallet_address=None): # noqa: E501 + """AnkrGetNFTsByOwnerParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._filter = None + self._page_size = None + self._page_token = None + self._sync_check = None + self._wallet_address = None + self.discriminator = None + if blockchain is not None: + self.blockchain = blockchain + if filter is not None: + self.filter = filter + if page_size is not None: + self.page_size = page_size + if page_token is not None: + self.page_token = page_token + if sync_check is not None: + self.sync_check = sync_check + self.wallet_address = wallet_address + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetNFTsByOwnerParams. # noqa: E501 + + Name of the blockchain or list of blockchain names. Single: eth. [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. # noqa: E501 + + :return: The blockchain of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :rtype: list[str] + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetNFTsByOwnerParams. + + Name of the blockchain or list of blockchain names. Single: eth. [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :type: list[str] + """ + + self._blockchain = blockchain + + @property + def filter(self): + """Gets the filter of this AnkrGetNFTsByOwnerParams. # noqa: E501 + + Filtering. Contract address (retrieves all NFTS by the address) or contract address plus NFT ID (retrieves only that NFT). key-value. # noqa: E501 + + :return: The filter of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :rtype: list[dict(str, list[str])] + """ + return self._filter + + @filter.setter + def filter(self, filter): + """Sets the filter of this AnkrGetNFTsByOwnerParams. + + Filtering. Contract address (retrieves all NFTS by the address) or contract address plus NFT ID (retrieves only that NFT). key-value. # noqa: E501 + + :param filter: The filter of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :type: list[dict(str, list[str])] + """ + + self._filter = filter + + @property + def page_size(self): + """Gets the page_size of this AnkrGetNFTsByOwnerParams. # noqa: E501 + + Number of entries per page. int32. Max value — 50, default value — 10. # noqa: E501 + + :return: The page_size of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this AnkrGetNFTsByOwnerParams. + + Number of entries per page. int32. Max value — 50, default value — 10. # noqa: E501 + + :param page_size: The page_size of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def page_token(self): + """Gets the page_token of this AnkrGetNFTsByOwnerParams. # noqa: E501 + + Current page token for pagination. # noqa: E501 + + :return: The page_token of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :rtype: str + """ + return self._page_token + + @page_token.setter + def page_token(self, page_token): + """Sets the page_token of this AnkrGetNFTsByOwnerParams. + + Current page token for pagination. # noqa: E501 + + :param page_token: The page_token of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :type: str + """ + + self._page_token = page_token + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetNFTsByOwnerParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetNFTsByOwnerParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def wallet_address(self): + """Gets the wallet_address of this AnkrGetNFTsByOwnerParams. # noqa: E501 + + Address to query for NFTs. Supports ENS. # noqa: E501 + + :return: The wallet_address of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :rtype: str + """ + return self._wallet_address + + @wallet_address.setter + def wallet_address(self, wallet_address): + """Sets the wallet_address of this AnkrGetNFTsByOwnerParams. + + Address to query for NFTs. Supports ENS. # noqa: E501 + + :param wallet_address: The wallet_address of this AnkrGetNFTsByOwnerParams. # noqa: E501 + :type: str + """ + if wallet_address is None: + raise ValueError("Invalid value for `wallet_address`, must not be `None`") # noqa: E501 + + self._wallet_address = wallet_address + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetNFTsByOwnerParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetNFTsByOwnerParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_token_holders_body.py b/ankr/models/ankr_get_token_holders_body.py new file mode 100644 index 0000000..3296cf4 --- /dev/null +++ b/ankr/models/ankr_get_token_holders_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTokenHoldersBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetTokenHoldersParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetTokenHoldersBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetTokenHoldersBody. # noqa: E501 + + + :return: The id of this AnkrGetTokenHoldersBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetTokenHoldersBody. + + + :param id: The id of this AnkrGetTokenHoldersBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetTokenHoldersBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetTokenHoldersBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetTokenHoldersBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetTokenHoldersBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetTokenHoldersBody. # noqa: E501 + + + :return: The method of this AnkrGetTokenHoldersBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetTokenHoldersBody. + + + :param method: The method of this AnkrGetTokenHoldersBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getTokenHolders"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetTokenHoldersBody. # noqa: E501 + + + :return: The params of this AnkrGetTokenHoldersBody. # noqa: E501 + :rtype: AnkrGetTokenHoldersParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetTokenHoldersBody. + + + :param params: The params of this AnkrGetTokenHoldersBody. # noqa: E501 + :type: AnkrGetTokenHoldersParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTokenHoldersBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTokenHoldersBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_token_holders_count_body.py b/ankr/models/ankr_get_token_holders_count_body.py new file mode 100644 index 0000000..a498608 --- /dev/null +++ b/ankr/models/ankr_get_token_holders_count_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTokenHoldersCountBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetTokenHoldersParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetTokenHoldersCountBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetTokenHoldersCountBody. # noqa: E501 + + + :return: The id of this AnkrGetTokenHoldersCountBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetTokenHoldersCountBody. + + + :param id: The id of this AnkrGetTokenHoldersCountBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetTokenHoldersCountBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetTokenHoldersCountBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetTokenHoldersCountBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetTokenHoldersCountBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetTokenHoldersCountBody. # noqa: E501 + + + :return: The method of this AnkrGetTokenHoldersCountBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetTokenHoldersCountBody. + + + :param method: The method of this AnkrGetTokenHoldersCountBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getTokenHoldersCount"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetTokenHoldersCountBody. # noqa: E501 + + + :return: The params of this AnkrGetTokenHoldersCountBody. # noqa: E501 + :rtype: AnkrGetTokenHoldersParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetTokenHoldersCountBody. + + + :param params: The params of this AnkrGetTokenHoldersCountBody. # noqa: E501 + :type: AnkrGetTokenHoldersParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTokenHoldersCountBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTokenHoldersCountBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_token_holders_params.py b/ankr/models/ankr_get_token_holders_params.py new file mode 100644 index 0000000..640aa44 --- /dev/null +++ b/ankr/models/ankr_get_token_holders_params.py @@ -0,0 +1,232 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTokenHoldersParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'str', + 'contract_address': 'str', + 'page_size': 'int', + 'page_token': 'str', + 'sync_check': 'bool' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'contract_address': 'contractAddress', + 'page_size': 'pageSize', + 'page_token': 'pageToken', + 'sync_check': 'syncCheck' + } + + def __init__(self, blockchain=None, contract_address=None, page_size=None, page_token=None, sync_check=None): # noqa: E501 + """AnkrGetTokenHoldersParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._contract_address = None + self._page_size = None + self._page_token = None + self._sync_check = None + self.discriminator = None + self.blockchain = blockchain + self.contract_address = contract_address + if page_size is not None: + self.page_size = page_size + if page_token is not None: + self.page_token = page_token + if sync_check is not None: + self.sync_check = sync_check + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetTokenHoldersParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrGetTokenHoldersParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetTokenHoldersParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetTokenHoldersParams. # noqa: E501 + :type: str + """ + if blockchain is None: + raise ValueError("Invalid value for `blockchain`, must not be `None`") # noqa: E501 + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def contract_address(self): + """Gets the contract_address of this AnkrGetTokenHoldersParams. # noqa: E501 + + Address of the token contract. # noqa: E501 + + :return: The contract_address of this AnkrGetTokenHoldersParams. # noqa: E501 + :rtype: str + """ + return self._contract_address + + @contract_address.setter + def contract_address(self, contract_address): + """Sets the contract_address of this AnkrGetTokenHoldersParams. + + Address of the token contract. # noqa: E501 + + :param contract_address: The contract_address of this AnkrGetTokenHoldersParams. # noqa: E501 + :type: str + """ + if contract_address is None: + raise ValueError("Invalid value for `contract_address`, must not be `None`") # noqa: E501 + + self._contract_address = contract_address + + @property + def page_size(self): + """Gets the page_size of this AnkrGetTokenHoldersParams. # noqa: E501 + + Number of entries per page. int32. Max value — 10000, default value — 10000. # noqa: E501 + + :return: The page_size of this AnkrGetTokenHoldersParams. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this AnkrGetTokenHoldersParams. + + Number of entries per page. int32. Max value — 10000, default value — 10000. # noqa: E501 + + :param page_size: The page_size of this AnkrGetTokenHoldersParams. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def page_token(self): + """Gets the page_token of this AnkrGetTokenHoldersParams. # noqa: E501 + + Current page token for pagination. # noqa: E501 + + :return: The page_token of this AnkrGetTokenHoldersParams. # noqa: E501 + :rtype: str + """ + return self._page_token + + @page_token.setter + def page_token(self, page_token): + """Sets the page_token of this AnkrGetTokenHoldersParams. + + Current page token for pagination. # noqa: E501 + + :param page_token: The page_token of this AnkrGetTokenHoldersParams. # noqa: E501 + :type: str + """ + + self._page_token = page_token + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetTokenHoldersParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetTokenHoldersParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetTokenHoldersParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetTokenHoldersParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTokenHoldersParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTokenHoldersParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_token_price_body.py b/ankr/models/ankr_get_token_price_body.py new file mode 100644 index 0000000..e3d1a8b --- /dev/null +++ b/ankr/models/ankr_get_token_price_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTokenPriceBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetTokenPriceParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetTokenPriceBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetTokenPriceBody. # noqa: E501 + + + :return: The id of this AnkrGetTokenPriceBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetTokenPriceBody. + + + :param id: The id of this AnkrGetTokenPriceBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetTokenPriceBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetTokenPriceBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetTokenPriceBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetTokenPriceBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetTokenPriceBody. # noqa: E501 + + + :return: The method of this AnkrGetTokenPriceBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetTokenPriceBody. + + + :param method: The method of this AnkrGetTokenPriceBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getTokenPrice"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetTokenPriceBody. # noqa: E501 + + + :return: The params of this AnkrGetTokenPriceBody. # noqa: E501 + :rtype: AnkrGetTokenPriceParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetTokenPriceBody. + + + :param params: The params of this AnkrGetTokenPriceBody. # noqa: E501 + :type: AnkrGetTokenPriceParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTokenPriceBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTokenPriceBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_token_price_history_body.py b/ankr/models/ankr_get_token_price_history_body.py new file mode 100644 index 0000000..e40376e --- /dev/null +++ b/ankr/models/ankr_get_token_price_history_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTokenPriceHistoryBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetTokenPriceHistoryParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetTokenPriceHistoryBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + + + :return: The id of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetTokenPriceHistoryBody. + + + :param id: The id of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetTokenPriceHistoryBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + + + :return: The method of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetTokenPriceHistoryBody. + + + :param method: The method of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getTokenPriceHistory"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + + + :return: The params of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + :rtype: AnkrGetTokenPriceHistoryParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetTokenPriceHistoryBody. + + + :param params: The params of this AnkrGetTokenPriceHistoryBody. # noqa: E501 + :type: AnkrGetTokenPriceHistoryParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTokenPriceHistoryBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTokenPriceHistoryBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_token_price_history_params.py b/ankr/models/ankr_get_token_price_history_params.py new file mode 100644 index 0000000..8074de8 --- /dev/null +++ b/ankr/models/ankr_get_token_price_history_params.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTokenPriceHistoryParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'str', + 'contract_address': 'str', + 'from_timestamp': 'int', + 'interval': 'int', + 'limit': 'int', + 'sync_check': 'bool', + 'to_timestamp': 'object' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'contract_address': 'contractAddress', + 'from_timestamp': 'fromTimestamp', + 'interval': 'interval', + 'limit': 'limit', + 'sync_check': 'syncCheck', + 'to_timestamp': 'toTimestamp' + } + + def __init__(self, blockchain=None, contract_address=None, from_timestamp=None, interval=None, limit=None, sync_check=None, to_timestamp=None): # noqa: E501 + """AnkrGetTokenPriceHistoryParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._contract_address = None + self._from_timestamp = None + self._interval = None + self._limit = None + self._sync_check = None + self._to_timestamp = None + self.discriminator = None + self.blockchain = blockchain + if contract_address is not None: + self.contract_address = contract_address + if from_timestamp is not None: + self.from_timestamp = from_timestamp + if interval is not None: + self.interval = interval + if limit is not None: + self.limit = limit + if sync_check is not None: + self.sync_check = sync_check + if to_timestamp is not None: + self.to_timestamp = to_timestamp + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetTokenPriceHistoryParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :type: str + """ + if blockchain is None: + raise ValueError("Invalid value for `blockchain`, must not be `None`") # noqa: E501 + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def contract_address(self): + """Gets the contract_address of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + + Address of the token contract. # noqa: E501 + + :return: The contract_address of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :rtype: str + """ + return self._contract_address + + @contract_address.setter + def contract_address(self, contract_address): + """Sets the contract_address of this AnkrGetTokenPriceHistoryParams. + + Address of the token contract. # noqa: E501 + + :param contract_address: The contract_address of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :type: str + """ + + self._contract_address = contract_address + + @property + def from_timestamp(self): + """Gets the from_timestamp of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + + Beginning of a time period. UNIX timestamp. # noqa: E501 + + :return: The from_timestamp of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :rtype: int + """ + return self._from_timestamp + + @from_timestamp.setter + def from_timestamp(self, from_timestamp): + """Sets the from_timestamp of this AnkrGetTokenPriceHistoryParams. + + Beginning of a time period. UNIX timestamp. # noqa: E501 + + :param from_timestamp: The from_timestamp of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :type: int + """ + + self._from_timestamp = from_timestamp + + @property + def interval(self): + """Gets the interval of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + + Time interval for updating the token price. UNIX timestamp. # noqa: E501 + + :return: The interval of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :rtype: int + """ + return self._interval + + @interval.setter + def interval(self, interval): + """Sets the interval of this AnkrGetTokenPriceHistoryParams. + + Time interval for updating the token price. UNIX timestamp. # noqa: E501 + + :param interval: The interval of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :type: int + """ + + self._interval = interval + + @property + def limit(self): + """Gets the limit of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + + Amount of records to be returned. # noqa: E501 + + :return: The limit of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :rtype: int + """ + return self._limit + + @limit.setter + def limit(self, limit): + """Sets the limit of this AnkrGetTokenPriceHistoryParams. + + Amount of records to be returned. # noqa: E501 + + :param limit: The limit of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :type: int + """ + + self._limit = limit + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetTokenPriceHistoryParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def to_timestamp(self): + """Gets the to_timestamp of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + + End of a time period. UNIX timestamp. # noqa: E501 + + :return: The to_timestamp of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :rtype: object + """ + return self._to_timestamp + + @to_timestamp.setter + def to_timestamp(self, to_timestamp): + """Sets the to_timestamp of this AnkrGetTokenPriceHistoryParams. + + End of a time period. UNIX timestamp. # noqa: E501 + + :param to_timestamp: The to_timestamp of this AnkrGetTokenPriceHistoryParams. # noqa: E501 + :type: object + """ + + self._to_timestamp = to_timestamp + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTokenPriceHistoryParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTokenPriceHistoryParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_token_price_params.py b/ankr/models/ankr_get_token_price_params.py new file mode 100644 index 0000000..b458b9c --- /dev/null +++ b/ankr/models/ankr_get_token_price_params.py @@ -0,0 +1,175 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTokenPriceParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'str', + 'contract_address': 'str', + 'sync_check': 'bool' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'contract_address': 'contractAddress', + 'sync_check': 'syncCheck' + } + + def __init__(self, blockchain=None, contract_address=None, sync_check=None): # noqa: E501 + """AnkrGetTokenPriceParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._contract_address = None + self._sync_check = None + self.discriminator = None + self.blockchain = blockchain + if contract_address is not None: + self.contract_address = contract_address + if sync_check is not None: + self.sync_check = sync_check + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetTokenPriceParams. # noqa: E501 + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :return: The blockchain of this AnkrGetTokenPriceParams. # noqa: E501 + :rtype: str + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetTokenPriceParams. + + Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetTokenPriceParams. # noqa: E501 + :type: str + """ + if blockchain is None: + raise ValueError("Invalid value for `blockchain`, must not be `None`") # noqa: E501 + allowed_values = ["arbitrum", "avalanche", "avalanche_fuji", "base", "bsc", "eth", "eth_goerli", "fantom", "flare", "gnosis", "linea", "optimism", "optimism_testnet", "polygon", "polygon_mumbai", "polygon_zkevm", "rollux", "scroll", "syscoin"] # noqa: E501 + if blockchain not in allowed_values: + raise ValueError( + "Invalid value for `blockchain` ({0}), must be one of {1}" # noqa: E501 + .format(blockchain, allowed_values) + ) + + self._blockchain = blockchain + + @property + def contract_address(self): + """Gets the contract_address of this AnkrGetTokenPriceParams. # noqa: E501 + + Address of the token contract. # noqa: E501 + + :return: The contract_address of this AnkrGetTokenPriceParams. # noqa: E501 + :rtype: str + """ + return self._contract_address + + @contract_address.setter + def contract_address(self, contract_address): + """Sets the contract_address of this AnkrGetTokenPriceParams. + + Address of the token contract. # noqa: E501 + + :param contract_address: The contract_address of this AnkrGetTokenPriceParams. # noqa: E501 + :type: str + """ + + self._contract_address = contract_address + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetTokenPriceParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetTokenPriceParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetTokenPriceParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetTokenPriceParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTokenPriceParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTokenPriceParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_token_transfers_body.py b/ankr/models/ankr_get_token_transfers_body.py new file mode 100644 index 0000000..c33b227 --- /dev/null +++ b/ankr/models/ankr_get_token_transfers_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTokenTransfersBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetNftTransfersParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetTokenTransfersBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetTokenTransfersBody. # noqa: E501 + + + :return: The id of this AnkrGetTokenTransfersBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetTokenTransfersBody. + + + :param id: The id of this AnkrGetTokenTransfersBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetTokenTransfersBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetTokenTransfersBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetTokenTransfersBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetTokenTransfersBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetTokenTransfersBody. # noqa: E501 + + + :return: The method of this AnkrGetTokenTransfersBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetTokenTransfersBody. + + + :param method: The method of this AnkrGetTokenTransfersBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getTokenTransfers"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetTokenTransfersBody. # noqa: E501 + + + :return: The params of this AnkrGetTokenTransfersBody. # noqa: E501 + :rtype: AnkrGetNftTransfersParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetTokenTransfersBody. + + + :param params: The params of this AnkrGetTokenTransfersBody. # noqa: E501 + :type: AnkrGetNftTransfersParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTokenTransfersBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTokenTransfersBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_transactions_by_address_body.py b/ankr/models/ankr_get_transactions_by_address_body.py new file mode 100644 index 0000000..293a4f9 --- /dev/null +++ b/ankr/models/ankr_get_transactions_by_address_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTransactionsByAddressBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetTransactionsByAddressParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetTransactionsByAddressBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetTransactionsByAddressBody. # noqa: E501 + + + :return: The id of this AnkrGetTransactionsByAddressBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetTransactionsByAddressBody. + + + :param id: The id of this AnkrGetTransactionsByAddressBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetTransactionsByAddressBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetTransactionsByAddressBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetTransactionsByAddressBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetTransactionsByAddressBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetTransactionsByAddressBody. # noqa: E501 + + + :return: The method of this AnkrGetTransactionsByAddressBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetTransactionsByAddressBody. + + + :param method: The method of this AnkrGetTransactionsByAddressBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getTransactionsByAddress"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetTransactionsByAddressBody. # noqa: E501 + + + :return: The params of this AnkrGetTransactionsByAddressBody. # noqa: E501 + :rtype: AnkrGetTransactionsByAddressParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetTransactionsByAddressBody. + + + :param params: The params of this AnkrGetTransactionsByAddressBody. # noqa: E501 + :type: AnkrGetTransactionsByAddressParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTransactionsByAddressBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTransactionsByAddressBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_transactions_by_address_params.py b/ankr/models/ankr_get_transactions_by_address_params.py new file mode 100644 index 0000000..5a19cc2 --- /dev/null +++ b/ankr/models/ankr_get_transactions_by_address_params.py @@ -0,0 +1,393 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTransactionsByAddressParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'address': 'list[str]', + 'blockchain': 'list[str]', + 'desc_order': 'bool', + 'from_block': 'int', + 'from_timestamp': 'int', + 'include_logs': 'bool', + 'page_size': 'int', + 'page_token': 'str', + 'sync_check': 'bool', + 'to_block': 'object', + 'to_timestamp': 'object' + } + + attribute_map = { + 'address': 'address', + 'blockchain': 'blockchain', + 'desc_order': 'descOrder', + 'from_block': 'fromBlock', + 'from_timestamp': 'fromTimestamp', + 'include_logs': 'includeLogs', + 'page_size': 'pageSize', + 'page_token': 'pageToken', + 'sync_check': 'syncCheck', + 'to_block': 'toBlock', + 'to_timestamp': 'toTimestamp' + } + + def __init__(self, address=None, blockchain=None, desc_order=None, from_block=None, from_timestamp=None, include_logs=None, page_size=None, page_token=None, sync_check=None, to_block=None, to_timestamp=None): # noqa: E501 + """AnkrGetTransactionsByAddressParams - a model defined in Swagger""" # noqa: E501 + self._address = None + self._blockchain = None + self._desc_order = None + self._from_block = None + self._from_timestamp = None + self._include_logs = None + self._page_size = None + self._page_token = None + self._sync_check = None + self._to_block = None + self._to_timestamp = None + self.discriminator = None + self.address = address + if blockchain is not None: + self.blockchain = blockchain + if desc_order is not None: + self.desc_order = desc_order + if from_block is not None: + self.from_block = from_block + if from_timestamp is not None: + self.from_timestamp = from_timestamp + if include_logs is not None: + self.include_logs = include_logs + if page_size is not None: + self.page_size = page_size + if page_token is not None: + self.page_token = page_token + if sync_check is not None: + self.sync_check = sync_check + if to_block is not None: + self.to_block = to_block + if to_timestamp is not None: + self.to_timestamp = to_timestamp + + @property + def address(self): + """Gets the address of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + Address to query for transactions. # noqa: E501 + + :return: The address of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: list[str] + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this AnkrGetTransactionsByAddressParams. + + Address to query for transactions. # noqa: E501 + + :param address: The address of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: list[str] + """ + if address is None: + raise ValueError("Invalid value for `address`, must not be `None`") # noqa: E501 + + self._address = address + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. # noqa: E501 + + :return: The blockchain of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: list[str] + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetTransactionsByAddressParams. + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: list[str] + """ + + self._blockchain = blockchain + + @property + def desc_order(self): + """Gets the desc_order of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + Sorting order. Descending (true) or ascending (false). # noqa: E501 + + :return: The desc_order of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: bool + """ + return self._desc_order + + @desc_order.setter + def desc_order(self, desc_order): + """Sets the desc_order of this AnkrGetTransactionsByAddressParams. + + Sorting order. Descending (true) or ascending (false). # noqa: E501 + + :param desc_order: The desc_order of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: bool + """ + + self._desc_order = desc_order + + @property + def from_block(self): + """Gets the from_block of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + Number of the first block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :return: The from_block of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: int + """ + return self._from_block + + @from_block.setter + def from_block(self, from_block): + """Sets the from_block of this AnkrGetTransactionsByAddressParams. + + Number of the first block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :param from_block: The from_block of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: int + """ + + self._from_block = from_block + + @property + def from_timestamp(self): + """Gets the from_timestamp of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + Beginning of a time period. UNIX timestamp. # noqa: E501 + + :return: The from_timestamp of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: int + """ + return self._from_timestamp + + @from_timestamp.setter + def from_timestamp(self, from_timestamp): + """Sets the from_timestamp of this AnkrGetTransactionsByAddressParams. + + Beginning of a time period. UNIX timestamp. # noqa: E501 + + :param from_timestamp: The from_timestamp of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: int + """ + + self._from_timestamp = from_timestamp + + @property + def include_logs(self): + """Gets the include_logs of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + Include logs (true) or exclude them (false). # noqa: E501 + + :return: The include_logs of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: bool + """ + return self._include_logs + + @include_logs.setter + def include_logs(self, include_logs): + """Sets the include_logs of this AnkrGetTransactionsByAddressParams. + + Include logs (true) or exclude them (false). # noqa: E501 + + :param include_logs: The include_logs of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: bool + """ + + self._include_logs = include_logs + + @property + def page_size(self): + """Gets the page_size of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + Number of entries per page. int32. Max value — 10000, default value — 100. # noqa: E501 + + :return: The page_size of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: int + """ + return self._page_size + + @page_size.setter + def page_size(self, page_size): + """Sets the page_size of this AnkrGetTransactionsByAddressParams. + + Number of entries per page. int32. Max value — 10000, default value — 100. # noqa: E501 + + :param page_size: The page_size of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: int + """ + + self._page_size = page_size + + @property + def page_token(self): + """Gets the page_token of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + Current page token for pagination. # noqa: E501 + + :return: The page_token of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: str + """ + return self._page_token + + @page_token.setter + def page_token(self, page_token): + """Sets the page_token of this AnkrGetTransactionsByAddressParams. + + Current page token for pagination. # noqa: E501 + + :param page_token: The page_token of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: str + """ + + self._page_token = page_token + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetTransactionsByAddressParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def to_block(self): + """Gets the to_block of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + Number of the last block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :return: The to_block of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: object + """ + return self._to_block + + @to_block.setter + def to_block(self, to_block): + """Sets the to_block of this AnkrGetTransactionsByAddressParams. + + Number of the last block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). # noqa: E501 + + :param to_block: The to_block of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: object + """ + + self._to_block = to_block + + @property + def to_timestamp(self): + """Gets the to_timestamp of this AnkrGetTransactionsByAddressParams. # noqa: E501 + + End of a time period. UNIX timestamp. # noqa: E501 + + :return: The to_timestamp of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :rtype: object + """ + return self._to_timestamp + + @to_timestamp.setter + def to_timestamp(self, to_timestamp): + """Sets the to_timestamp of this AnkrGetTransactionsByAddressParams. + + End of a time period. UNIX timestamp. # noqa: E501 + + :param to_timestamp: The to_timestamp of this AnkrGetTransactionsByAddressParams. # noqa: E501 + :type: object + """ + + self._to_timestamp = to_timestamp + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTransactionsByAddressParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTransactionsByAddressParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_transactions_by_hash_body.py b/ankr/models/ankr_get_transactions_by_hash_body.py new file mode 100644 index 0000000..e03ad33 --- /dev/null +++ b/ankr/models/ankr_get_transactions_by_hash_body.py @@ -0,0 +1,204 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTransactionsByHashBody(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'method': 'str', + 'params': 'AnkrGetTransactionsByHashParams' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'method': 'method', + 'params': 'params' + } + + def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E501 + """AnkrGetTransactionsByHashBody - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._method = None + self._params = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.method = method + self.params = params + + @property + def id(self): + """Gets the id of this AnkrGetTransactionsByHashBody. # noqa: E501 + + + :return: The id of this AnkrGetTransactionsByHashBody. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this AnkrGetTransactionsByHashBody. + + + :param id: The id of this AnkrGetTransactionsByHashBody. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this AnkrGetTransactionsByHashBody. # noqa: E501 + + + :return: The jsonrpc of this AnkrGetTransactionsByHashBody. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this AnkrGetTransactionsByHashBody. + + + :param jsonrpc: The jsonrpc of this AnkrGetTransactionsByHashBody. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def method(self): + """Gets the method of this AnkrGetTransactionsByHashBody. # noqa: E501 + + + :return: The method of this AnkrGetTransactionsByHashBody. # noqa: E501 + :rtype: str + """ + return self._method + + @method.setter + def method(self, method): + """Sets the method of this AnkrGetTransactionsByHashBody. + + + :param method: The method of this AnkrGetTransactionsByHashBody. # noqa: E501 + :type: str + """ + if method is None: + raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501 + allowed_values = ["ankr_getTransactionsByHash"] # noqa: E501 + if method not in allowed_values: + raise ValueError( + "Invalid value for `method` ({0}), must be one of {1}" # noqa: E501 + .format(method, allowed_values) + ) + + self._method = method + + @property + def params(self): + """Gets the params of this AnkrGetTransactionsByHashBody. # noqa: E501 + + + :return: The params of this AnkrGetTransactionsByHashBody. # noqa: E501 + :rtype: AnkrGetTransactionsByHashParams + """ + return self._params + + @params.setter + def params(self, params): + """Sets the params of this AnkrGetTransactionsByHashBody. + + + :param params: The params of this AnkrGetTransactionsByHashBody. # noqa: E501 + :type: AnkrGetTransactionsByHashParams + """ + if params is None: + raise ValueError("Invalid value for `params`, must not be `None`") # noqa: E501 + + self._params = params + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTransactionsByHashBody, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTransactionsByHashBody): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/ankr_get_transactions_by_hash_params.py b/ankr/models/ankr_get_transactions_by_hash_params.py new file mode 100644 index 0000000..9cea864 --- /dev/null +++ b/ankr/models/ankr_get_transactions_by_hash_params.py @@ -0,0 +1,253 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class AnkrGetTransactionsByHashParams(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blockchain': 'list[str]', + 'decode_logs': 'bool', + 'decode_tx_data': 'bool', + 'include_logs': 'bool', + 'sync_check': 'bool', + 'transaction_hash': 'str' + } + + attribute_map = { + 'blockchain': 'blockchain', + 'decode_logs': 'decodeLogs', + 'decode_tx_data': 'decodeTxData', + 'include_logs': 'includeLogs', + 'sync_check': 'syncCheck', + 'transaction_hash': 'transactionHash' + } + + def __init__(self, blockchain=None, decode_logs=None, decode_tx_data=None, include_logs=None, sync_check=None, transaction_hash=None): # noqa: E501 + """AnkrGetTransactionsByHashParams - a model defined in Swagger""" # noqa: E501 + self._blockchain = None + self._decode_logs = None + self._decode_tx_data = None + self._include_logs = None + self._sync_check = None + self._transaction_hash = None + self.discriminator = None + if blockchain is not None: + self.blockchain = blockchain + if decode_logs is not None: + self.decode_logs = decode_logs + if decode_tx_data is not None: + self.decode_tx_data = decode_tx_data + if include_logs is not None: + self.include_logs = include_logs + if sync_check is not None: + self.sync_check = sync_check + self.transaction_hash = transaction_hash + + @property + def blockchain(self): + """Gets the blockchain of this AnkrGetTransactionsByHashParams. # noqa: E501 + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. # noqa: E501 + + :return: The blockchain of this AnkrGetTransactionsByHashParams. # noqa: E501 + :rtype: list[str] + """ + return self._blockchain + + @blockchain.setter + def blockchain(self, blockchain): + """Sets the blockchain of this AnkrGetTransactionsByHashParams. + + Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. # noqa: E501 + + :param blockchain: The blockchain of this AnkrGetTransactionsByHashParams. # noqa: E501 + :type: list[str] + """ + + self._blockchain = blockchain + + @property + def decode_logs(self): + """Gets the decode_logs of this AnkrGetTransactionsByHashParams. # noqa: E501 + + Decode logs (true) or not (false). # noqa: E501 + + :return: The decode_logs of this AnkrGetTransactionsByHashParams. # noqa: E501 + :rtype: bool + """ + return self._decode_logs + + @decode_logs.setter + def decode_logs(self, decode_logs): + """Sets the decode_logs of this AnkrGetTransactionsByHashParams. + + Decode logs (true) or not (false). # noqa: E501 + + :param decode_logs: The decode_logs of this AnkrGetTransactionsByHashParams. # noqa: E501 + :type: bool + """ + + self._decode_logs = decode_logs + + @property + def decode_tx_data(self): + """Gets the decode_tx_data of this AnkrGetTransactionsByHashParams. # noqa: E501 + + Decode transaction data (true) or not (false). # noqa: E501 + + :return: The decode_tx_data of this AnkrGetTransactionsByHashParams. # noqa: E501 + :rtype: bool + """ + return self._decode_tx_data + + @decode_tx_data.setter + def decode_tx_data(self, decode_tx_data): + """Sets the decode_tx_data of this AnkrGetTransactionsByHashParams. + + Decode transaction data (true) or not (false). # noqa: E501 + + :param decode_tx_data: The decode_tx_data of this AnkrGetTransactionsByHashParams. # noqa: E501 + :type: bool + """ + + self._decode_tx_data = decode_tx_data + + @property + def include_logs(self): + """Gets the include_logs of this AnkrGetTransactionsByHashParams. # noqa: E501 + + Include logs (true) or exclude them (false). # noqa: E501 + + :return: The include_logs of this AnkrGetTransactionsByHashParams. # noqa: E501 + :rtype: bool + """ + return self._include_logs + + @include_logs.setter + def include_logs(self, include_logs): + """Sets the include_logs of this AnkrGetTransactionsByHashParams. + + Include logs (true) or exclude them (false). # noqa: E501 + + :param include_logs: The include_logs of this AnkrGetTransactionsByHashParams. # noqa: E501 + :type: bool + """ + + self._include_logs = include_logs + + @property + def sync_check(self): + """Gets the sync_check of this AnkrGetTransactionsByHashParams. # noqa: E501 + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :return: The sync_check of this AnkrGetTransactionsByHashParams. # noqa: E501 + :rtype: bool + """ + return self._sync_check + + @sync_check.setter + def sync_check(self, sync_check): + """Sets the sync_check of this AnkrGetTransactionsByHashParams. + + If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. # noqa: E501 + + :param sync_check: The sync_check of this AnkrGetTransactionsByHashParams. # noqa: E501 + :type: bool + """ + + self._sync_check = sync_check + + @property + def transaction_hash(self): + """Gets the transaction_hash of this AnkrGetTransactionsByHashParams. # noqa: E501 + + Hash of the transaction. # noqa: E501 + + :return: The transaction_hash of this AnkrGetTransactionsByHashParams. # noqa: E501 + :rtype: str + """ + return self._transaction_hash + + @transaction_hash.setter + def transaction_hash(self, transaction_hash): + """Sets the transaction_hash of this AnkrGetTransactionsByHashParams. + + Hash of the transaction. # noqa: E501 + + :param transaction_hash: The transaction_hash of this AnkrGetTransactionsByHashParams. # noqa: E501 + :type: str + """ + if transaction_hash is None: + raise ValueError("Invalid value for `transaction_hash`, must not be `None`") # noqa: E501 + + self._transaction_hash = transaction_hash + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(AnkrGetTransactionsByHashParams, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, AnkrGetTransactionsByHashParams): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response200.py b/ankr/models/inline_response200.py new file mode 100644 index 0000000..b4c1c0b --- /dev/null +++ b/ankr/models/inline_response200.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse200(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse200 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse200. # noqa: E501 + + + :return: The id of this InlineResponse200. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse200. + + + :param id: The id of this InlineResponse200. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse200. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse200. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse200. + + + :param jsonrpc: The jsonrpc of this InlineResponse200. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse200. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse200. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse200. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse200. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse200, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse200): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response2001.py b/ankr/models/inline_response2001.py new file mode 100644 index 0000000..9ec9469 --- /dev/null +++ b/ankr/models/inline_response2001.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2001(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse2001 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse2001. # noqa: E501 + + + :return: The id of this InlineResponse2001. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2001. + + + :param id: The id of this InlineResponse2001. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse2001. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse2001. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse2001. + + + :param jsonrpc: The jsonrpc of this InlineResponse2001. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse2001. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse2001. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse2001. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse2001. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2001, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2001): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20010.py b/ankr/models/inline_response20010.py new file mode 100644 index 0000000..40edbf3 --- /dev/null +++ b/ankr/models/inline_response20010.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20010(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20010 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20010. # noqa: E501 + + + :return: The id of this InlineResponse20010. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20010. + + + :param id: The id of this InlineResponse20010. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20010. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20010. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20010. + + + :param jsonrpc: The jsonrpc of this InlineResponse20010. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20010. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20010. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20010. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20010. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20010, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20010): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20011.py b/ankr/models/inline_response20011.py new file mode 100644 index 0000000..a8b65e9 --- /dev/null +++ b/ankr/models/inline_response20011.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20011(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20011 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20011. # noqa: E501 + + + :return: The id of this InlineResponse20011. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20011. + + + :param id: The id of this InlineResponse20011. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20011. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20011. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20011. + + + :param jsonrpc: The jsonrpc of this InlineResponse20011. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20011. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20011. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20011. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20011. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20011, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20011): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20012.py b/ankr/models/inline_response20012.py new file mode 100644 index 0000000..7761ce8 --- /dev/null +++ b/ankr/models/inline_response20012.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20012(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20012 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20012. # noqa: E501 + + + :return: The id of this InlineResponse20012. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20012. + + + :param id: The id of this InlineResponse20012. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20012. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20012. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20012. + + + :param jsonrpc: The jsonrpc of this InlineResponse20012. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20012. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20012. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20012. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20012. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20012, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20012): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20013.py b/ankr/models/inline_response20013.py new file mode 100644 index 0000000..c130f1f --- /dev/null +++ b/ankr/models/inline_response20013.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20013(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20013 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20013. # noqa: E501 + + + :return: The id of this InlineResponse20013. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20013. + + + :param id: The id of this InlineResponse20013. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20013. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20013. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20013. + + + :param jsonrpc: The jsonrpc of this InlineResponse20013. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20013. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20013. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20013. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20013. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20013, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20013): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20014.py b/ankr/models/inline_response20014.py new file mode 100644 index 0000000..b99b5f9 --- /dev/null +++ b/ankr/models/inline_response20014.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20014(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20014 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20014. # noqa: E501 + + + :return: The id of this InlineResponse20014. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20014. + + + :param id: The id of this InlineResponse20014. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20014. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20014. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20014. + + + :param jsonrpc: The jsonrpc of this InlineResponse20014. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20014. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20014. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20014. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20014. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20014, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20014): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20015.py b/ankr/models/inline_response20015.py new file mode 100644 index 0000000..7ec2d75 --- /dev/null +++ b/ankr/models/inline_response20015.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20015(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20015 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20015. # noqa: E501 + + + :return: The id of this InlineResponse20015. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20015. + + + :param id: The id of this InlineResponse20015. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20015. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20015. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20015. + + + :param jsonrpc: The jsonrpc of this InlineResponse20015. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20015. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20015. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20015. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20015. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20015, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20015): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20016.py b/ankr/models/inline_response20016.py new file mode 100644 index 0000000..9a0f399 --- /dev/null +++ b/ankr/models/inline_response20016.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20016(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20016 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20016. # noqa: E501 + + + :return: The id of this InlineResponse20016. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20016. + + + :param id: The id of this InlineResponse20016. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20016. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20016. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20016. + + + :param jsonrpc: The jsonrpc of this InlineResponse20016. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20016. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20016. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20016. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20016. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20016, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20016): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20017.py b/ankr/models/inline_response20017.py new file mode 100644 index 0000000..80e68f0 --- /dev/null +++ b/ankr/models/inline_response20017.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20017(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20017 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20017. # noqa: E501 + + + :return: The id of this InlineResponse20017. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20017. + + + :param id: The id of this InlineResponse20017. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20017. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20017. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20017. + + + :param jsonrpc: The jsonrpc of this InlineResponse20017. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20017. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20017. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20017. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20017. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20017, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20017): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20018.py b/ankr/models/inline_response20018.py new file mode 100644 index 0000000..d02007a --- /dev/null +++ b/ankr/models/inline_response20018.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20018(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20018 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20018. # noqa: E501 + + + :return: The id of this InlineResponse20018. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20018. + + + :param id: The id of this InlineResponse20018. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20018. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20018. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20018. + + + :param jsonrpc: The jsonrpc of this InlineResponse20018. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20018. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20018. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20018. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20018. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20018, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20018): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response20019.py b/ankr/models/inline_response20019.py new file mode 100644 index 0000000..3e0a1b5 --- /dev/null +++ b/ankr/models/inline_response20019.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse20019(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse20019 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse20019. # noqa: E501 + + + :return: The id of this InlineResponse20019. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse20019. + + + :param id: The id of this InlineResponse20019. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse20019. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse20019. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse20019. + + + :param jsonrpc: The jsonrpc of this InlineResponse20019. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse20019. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse20019. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse20019. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse20019. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse20019, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse20019): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response2002.py b/ankr/models/inline_response2002.py new file mode 100644 index 0000000..0afc6cc --- /dev/null +++ b/ankr/models/inline_response2002.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2002(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse2002 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse2002. # noqa: E501 + + + :return: The id of this InlineResponse2002. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2002. + + + :param id: The id of this InlineResponse2002. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse2002. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse2002. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse2002. + + + :param jsonrpc: The jsonrpc of this InlineResponse2002. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse2002. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse2002. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse2002. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse2002. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2002, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2002): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response2003.py b/ankr/models/inline_response2003.py new file mode 100644 index 0000000..6978eb1 --- /dev/null +++ b/ankr/models/inline_response2003.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2003(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse2003 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse2003. # noqa: E501 + + + :return: The id of this InlineResponse2003. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2003. + + + :param id: The id of this InlineResponse2003. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse2003. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse2003. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse2003. + + + :param jsonrpc: The jsonrpc of this InlineResponse2003. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse2003. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse2003. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse2003. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse2003. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2003, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2003): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response2004.py b/ankr/models/inline_response2004.py new file mode 100644 index 0000000..5708af2 --- /dev/null +++ b/ankr/models/inline_response2004.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2004(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse2004 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse2004. # noqa: E501 + + + :return: The id of this InlineResponse2004. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2004. + + + :param id: The id of this InlineResponse2004. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse2004. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse2004. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse2004. + + + :param jsonrpc: The jsonrpc of this InlineResponse2004. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse2004. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse2004. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse2004. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse2004. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2004, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2004): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response2005.py b/ankr/models/inline_response2005.py new file mode 100644 index 0000000..c38c289 --- /dev/null +++ b/ankr/models/inline_response2005.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2005(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse2005 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse2005. # noqa: E501 + + + :return: The id of this InlineResponse2005. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2005. + + + :param id: The id of this InlineResponse2005. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse2005. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse2005. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse2005. + + + :param jsonrpc: The jsonrpc of this InlineResponse2005. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse2005. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse2005. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse2005. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse2005. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2005, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2005): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response2006.py b/ankr/models/inline_response2006.py new file mode 100644 index 0000000..c4aa6d6 --- /dev/null +++ b/ankr/models/inline_response2006.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2006(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse2006 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse2006. # noqa: E501 + + + :return: The id of this InlineResponse2006. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2006. + + + :param id: The id of this InlineResponse2006. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse2006. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse2006. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse2006. + + + :param jsonrpc: The jsonrpc of this InlineResponse2006. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse2006. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse2006. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse2006. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse2006. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2006, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2006): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response2007.py b/ankr/models/inline_response2007.py new file mode 100644 index 0000000..15da341 --- /dev/null +++ b/ankr/models/inline_response2007.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2007(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse2007 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse2007. # noqa: E501 + + + :return: The id of this InlineResponse2007. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2007. + + + :param id: The id of this InlineResponse2007. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse2007. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse2007. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse2007. + + + :param jsonrpc: The jsonrpc of this InlineResponse2007. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse2007. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse2007. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse2007. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse2007. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2007, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2007): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response2008.py b/ankr/models/inline_response2008.py new file mode 100644 index 0000000..8857b5a --- /dev/null +++ b/ankr/models/inline_response2008.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2008(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse2008 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse2008. # noqa: E501 + + + :return: The id of this InlineResponse2008. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2008. + + + :param id: The id of this InlineResponse2008. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse2008. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse2008. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse2008. + + + :param jsonrpc: The jsonrpc of this InlineResponse2008. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse2008. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse2008. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse2008. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse2008. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2008, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2008): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/models/inline_response2009.py b/ankr/models/inline_response2009.py new file mode 100644 index 0000000..4ddf54a --- /dev/null +++ b/ankr/models/inline_response2009.py @@ -0,0 +1,173 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class InlineResponse2009(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'id': 'int', + 'jsonrpc': 'str', + 'result': 'object' + } + + attribute_map = { + 'id': 'id', + 'jsonrpc': 'jsonrpc', + 'result': 'result' + } + + def __init__(self, id=None, jsonrpc=None, result=None): # noqa: E501 + """InlineResponse2009 - a model defined in Swagger""" # noqa: E501 + self._id = None + self._jsonrpc = None + self._result = None + self.discriminator = None + self.id = id + self.jsonrpc = jsonrpc + self.result = result + + @property + def id(self): + """Gets the id of this InlineResponse2009. # noqa: E501 + + + :return: The id of this InlineResponse2009. # noqa: E501 + :rtype: int + """ + return self._id + + @id.setter + def id(self, id): + """Sets the id of this InlineResponse2009. + + + :param id: The id of this InlineResponse2009. # noqa: E501 + :type: int + """ + if id is None: + raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501 + + self._id = id + + @property + def jsonrpc(self): + """Gets the jsonrpc of this InlineResponse2009. # noqa: E501 + + + :return: The jsonrpc of this InlineResponse2009. # noqa: E501 + :rtype: str + """ + return self._jsonrpc + + @jsonrpc.setter + def jsonrpc(self, jsonrpc): + """Sets the jsonrpc of this InlineResponse2009. + + + :param jsonrpc: The jsonrpc of this InlineResponse2009. # noqa: E501 + :type: str + """ + if jsonrpc is None: + raise ValueError("Invalid value for `jsonrpc`, must not be `None`") # noqa: E501 + allowed_values = ["2.0"] # noqa: E501 + if jsonrpc not in allowed_values: + raise ValueError( + "Invalid value for `jsonrpc` ({0}), must be one of {1}" # noqa: E501 + .format(jsonrpc, allowed_values) + ) + + self._jsonrpc = jsonrpc + + @property + def result(self): + """Gets the result of this InlineResponse2009. # noqa: E501 + + Result of the query. # noqa: E501 + + :return: The result of this InlineResponse2009. # noqa: E501 + :rtype: object + """ + return self._result + + @result.setter + def result(self, result): + """Sets the result of this InlineResponse2009. + + Result of the query. # noqa: E501 + + :param result: The result of this InlineResponse2009. # noqa: E501 + :type: object + """ + if result is None: + raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501 + + self._result = result + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(InlineResponse2009, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, InlineResponse2009): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/ankr/providers.py b/ankr/providers.py deleted file mode 100644 index 25f65d7..0000000 --- a/ankr/providers.py +++ /dev/null @@ -1,122 +0,0 @@ -from __future__ import annotations - -from typing import Any, Iterable, List, Optional, Type, TypeVar, Union - -from eth_typing import URI -from typing_extensions import Protocol -from web3 import HTTPProvider -from web3.types import RPCEndpoint, RPCResponse - -from ankr import types -from ankr.exceptions import APIError - -TRequest = TypeVar("TRequest", bound=types.RPCModel) -TReply = TypeVar("TReply") -TRequestPaginated = TypeVar("TRequestPaginated", bound=types.RPCRequestPaginated) -TReplyPaginated = TypeVar("TReplyPaginated", bound=types.RPCReplyPaginated) - - -class MultichainHTTPProvider(HTTPProvider): - def __init__( - self, - api_key: str, - endpoint_uri: Optional[Union[URI, str]] = None, - request_kwargs: Optional[Any] = None, - session: Optional[Any] = None, - ) -> None: - endpoint_uri = endpoint_uri or "https://rpc.ankr.com/multichain/" - super().__init__(endpoint_uri + api_key, request_kwargs, session) - - def make_request(self, method: RPCEndpoint, params: Any) -> RPCResponse: - response = super().make_request(method, params) - if response.get("error"): - raise APIError(response["error"]) - if "result" not in response: - raise APIError("returned no result") - return response - - def call_method( - self, - rpc: str, - request: TRequest, - reply_type: Type[TReply], - ) -> TReply: - request_dict = request.dict(by_alias=True, exclude_none=True) - response = self.make_request(RPCEndpoint(rpc), request_dict) - reply = reply_type(**response["result"]) - return reply - - def call_method_paginated( - self, - *, - rpc: str, - request: TRequestPaginated, - reply_type: Type[TReplyPaginated], - iterable_name: str, - iterable_type: Type[TReply], - limit: Optional[int] = None, - ) -> Iterable[TReply]: - request_dict = request.dict(by_alias=True, exclude_none=True) - response = self.make_request(RPCEndpoint(rpc), request_dict) - reply = reply_type(**response["result"]) - - items: List[TReply] = getattr(reply, iterable_name) or [] - - if limit: - if limit <= len(items): - yield from items[:limit] - return - limit -= len(items) - - yield from items - - if reply.next_page_token: - request.page_token = reply.next_page_token - yield from self.call_method_paginated( - rpc=RPCEndpoint(rpc), - request=request, - reply_type=reply_type, - iterable_name=iterable_name, - iterable_type=iterable_type, - limit=limit, - ) - - -class TProviderConstructor(Protocol): - def __call__( - self, api_key: Optional[str] = None, request_kwargs: Optional[Any] = None - ) -> HTTPProvider: - ... - - -def http_provider_constructor(url: str) -> TProviderConstructor: - def init( - api_key: Optional[str] = None, - request_kwargs: Optional[Any] = None, - ) -> HTTPProvider: - if api_key is None: - api_key = "" - return HTTPProvider(f"{url}/{api_key}", request_kwargs) - - return init - - -# EVM -ArbitrumHTTPProvider = http_provider_constructor("https://rpc.ankr.com/arbitrum") -AvalancheHTTPProvider = http_provider_constructor("https://rpc.ankr.com/avalanche") -BscHTTPProvider = http_provider_constructor("https://rpc.ankr.com/bsc") -CeloHTTPProvider = http_provider_constructor("https://rpc.ankr.com/celo") -EthHTTPProvider = http_provider_constructor("https://rpc.ankr.com/eth") -FantomHTTPProvider = http_provider_constructor("https://rpc.ankr.com/fantom") -GnosisHTTPProvider = http_provider_constructor("https://rpc.ankr.com/gnosis") -HarmonyHTTPProvider = http_provider_constructor("https://rpc.ankr.com/harmony") -IotexHTTPProvider = http_provider_constructor("https://rpc.ankr.com/iotex") -MoonbeamHTTPProvider = http_provider_constructor("https://rpc.ankr.com/moonbeam") -NervosHTTPProvider = http_provider_constructor("https://rpc.ankr.com/nervos") -OptimismHTTPProvider = http_provider_constructor("https://rpc.ankr.com/optimism") -PolygonHTTPProvider = http_provider_constructor("https://rpc.ankr.com/polygon") -SyscoinHTTPProvider = http_provider_constructor("https://rpc.ankr.com/syscoin") - -# Non-EVM -NearHTTPProvider = http_provider_constructor("https://rpc.ankr.com/near") -SolanaHTTPProvider = http_provider_constructor("https://rpc.ankr.com/solana") diff --git a/ankr/rest.py b/ankr/rest.py new file mode 100644 index 0000000..999da85 --- /dev/null +++ b/ankr/rest.py @@ -0,0 +1,317 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import io +import json +import logging +import re +import ssl + +import certifi +# python 2 and python 3 compatibility library +import six +from six.moves.urllib.parse import urlencode + +try: + import urllib3 +except ImportError: + raise ImportError('Swagger python client requires urllib3.') + + +logger = logging.getLogger(__name__) + + +class RESTResponse(io.IOBase): + + def __init__(self, resp): + self.urllib3_response = resp + self.status = resp.status + self.reason = resp.reason + self.data = resp.data + + def getheaders(self): + """Returns a dictionary of the response headers.""" + return self.urllib3_response.getheaders() + + def getheader(self, name, default=None): + """Returns a given response header.""" + return self.urllib3_response.getheader(name, default) + + +class RESTClientObject(object): + + def __init__(self, configuration, pools_size=4, maxsize=None): + # urllib3.PoolManager will pass all kw parameters to connectionpool + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501 + # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501 + # maxsize is the number of requests to host that are allowed in parallel # noqa: E501 + # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501 + + # cert_reqs + if configuration.verify_ssl: + cert_reqs = ssl.CERT_REQUIRED + else: + cert_reqs = ssl.CERT_NONE + + # ca_certs + if configuration.ssl_ca_cert: + ca_certs = configuration.ssl_ca_cert + else: + # if not set certificate file, use Mozilla's root certificates. + ca_certs = certifi.where() + + addition_pool_args = {} + if configuration.assert_hostname is not None: + addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501 + + if maxsize is None: + if configuration.connection_pool_maxsize is not None: + maxsize = configuration.connection_pool_maxsize + else: + maxsize = 4 + + # https pool manager + if configuration.proxy: + self.pool_manager = urllib3.ProxyManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + proxy_url=configuration.proxy, + **addition_pool_args + ) + else: + self.pool_manager = urllib3.PoolManager( + num_pools=pools_size, + maxsize=maxsize, + cert_reqs=cert_reqs, + ca_certs=ca_certs, + cert_file=configuration.cert_file, + key_file=configuration.key_file, + **addition_pool_args + ) + + def request(self, method, url, query_params=None, headers=None, + body=None, post_params=None, _preload_content=True, + _request_timeout=None): + """Perform requests. + + :param method: http request method + :param url: http request url + :param query_params: query parameters in the url + :param headers: http request headers + :param body: request json body, for `application/json` + :param post_params: request post parameters, + `application/x-www-form-urlencoded` + and `multipart/form-data` + :param _preload_content: if False, the urllib3.HTTPResponse object will + be returned without reading/decoding response + data. Default is True. + :param _request_timeout: 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. + """ + method = method.upper() + assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT', + 'PATCH', 'OPTIONS'] + + if post_params and body: + raise ValueError( + "body parameter cannot be used with post_params parameter." + ) + + post_params = post_params or {} + headers = headers or {} + + timeout = None + if _request_timeout: + if isinstance(_request_timeout, (int, ) if six.PY3 else (int, long)): # noqa: E501,F821 + timeout = urllib3.Timeout(total=_request_timeout) + elif (isinstance(_request_timeout, tuple) and + len(_request_timeout) == 2): + timeout = urllib3.Timeout( + connect=_request_timeout[0], read=_request_timeout[1]) + + if 'Content-Type' not in headers: + headers['Content-Type'] = 'application/json' + + try: + # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE` + if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']: + if query_params: + url += '?' + urlencode(query_params) + if re.search('json', headers['Content-Type'], re.IGNORECASE): + request_body = '{}' + if body is not None: + request_body = json.dumps(body) + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501 + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=False, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + elif headers['Content-Type'] == 'multipart/form-data': + # must del headers['Content-Type'], or the correct + # Content-Type which generated by urllib3 will be + # overwritten. + del headers['Content-Type'] + r = self.pool_manager.request( + method, url, + fields=post_params, + encode_multipart=True, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + # Pass a `string` parameter directly in the body to support + # other content types than Json when `body` argument is + # provided in serialized form + elif isinstance(body, str): + request_body = body + r = self.pool_manager.request( + method, url, + body=request_body, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + else: + # Cannot generate the request from given parameters + msg = """Cannot prepare a request message for provided + arguments. Please check that your arguments match + declared content type.""" + raise ApiException(status=0, reason=msg) + # For `GET`, `HEAD` + else: + r = self.pool_manager.request(method, url, + fields=query_params, + preload_content=_preload_content, + timeout=timeout, + headers=headers) + except urllib3.exceptions.SSLError as e: + msg = "{0}\n{1}".format(type(e).__name__, str(e)) + raise ApiException(status=0, reason=msg) + + if _preload_content: + r = RESTResponse(r) + + # log response body + logger.debug("response body: %s", r.data) + + if not 200 <= r.status <= 299: + raise ApiException(http_resp=r) + + return r + + def GET(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("GET", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def HEAD(self, url, headers=None, query_params=None, _preload_content=True, + _request_timeout=None): + return self.request("HEAD", url, + headers=headers, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + query_params=query_params) + + def OPTIONS(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("OPTIONS", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def DELETE(self, url, headers=None, query_params=None, body=None, + _preload_content=True, _request_timeout=None): + return self.request("DELETE", url, + headers=headers, + query_params=query_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def POST(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("POST", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PUT(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PUT", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + def PATCH(self, url, headers=None, query_params=None, post_params=None, + body=None, _preload_content=True, _request_timeout=None): + return self.request("PATCH", url, + headers=headers, + query_params=query_params, + post_params=post_params, + _preload_content=_preload_content, + _request_timeout=_request_timeout, + body=body) + + +class ApiException(Exception): + + def __init__(self, status=None, reason=None, http_resp=None): + if http_resp: + self.status = http_resp.status + self.reason = http_resp.reason + self.body = http_resp.data + self.headers = http_resp.getheaders() + else: + self.status = status + self.reason = reason + self.body = None + self.headers = None + + def __str__(self): + """Custom error messages for exception""" + error_message = "({0})\n"\ + "Reason: {1}\n".format(self.status, self.reason) + if self.headers: + error_message += "HTTP response headers: {0}\n".format( + self.headers) + + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + return error_message diff --git a/ankr/types.py b/ankr/types.py deleted file mode 100644 index 658dadf..0000000 --- a/ankr/types.py +++ /dev/null @@ -1,387 +0,0 @@ -from __future__ import annotations - -import enum -from abc import ABC -from typing import Dict, List, Optional, Type, Union - -import humps -from pydantic import BaseModel - - -class Blockchain(str, enum.Enum): - ETH = "eth" - BSC = "bsc" - POLYGON = "polygon" - FANTOM = "fantom" - ARBITRUM = "arbitrum" - AVALANCHE = "avalanche" - SYSCOIN = "syscoin" - - -class NftContractType(str, enum.Enum): - ERC721 = "ERC721" - ERC1155 = "ERC1155" - UNDEFINED = "UNDEFINED" - - -class BlockNumberName(str, enum.Enum): - latest = "latest" - earliest = "earliest" - - -BlockchainName = Union[Blockchain, str] -BlockchainNames = Union[BlockchainName, List[BlockchainName]] -BlockNumber = Union[int, str, BlockNumberName] -Address = str -AddressOrAddresses = Union[str, List[str]] -Topics = Union[str, List[Union[str, List[str]]]] - - -class RPCModel(BaseModel): - class Config: - alias_generator = humps.camelize - allow_population_by_field_name = True - - -class RPCRequestPaginated(ABC, RPCModel): - page_token: Optional[str] = None - - -class RPCReplyPaginated(ABC, RPCModel): - next_page_token: Optional[str] = None - _iter_type: Type - - -class GetNFTsByOwnerRequest(RPCRequestPaginated): - blockchain: BlockchainNames - wallet_address: str - filter: Optional[List[Dict[str, List[str]]]] = None - page_token: Optional[str] = None - page_size: Optional[int] = None - - -class Attribute(RPCModel): - trait_type: Optional[str] = None - value: Optional[str] = None - display_type: Optional[str] = None - bunny_id: Optional[str] = None - count: Optional[int] = None - frequency: Optional[str] = None - mp_score: Optional[str] = None - rarity: Optional[str] = None - - -class Nft(RPCModel): - blockchain: BlockchainName - name: str - token_id: str - token_url: str - image_url: str - collection_name: str - symbol: str - contract_type: str - contract_address: str - quantity: Optional[str] = None - traits: Optional[List[Attribute]] = None - - -class GetNFTsByOwnerReply(RPCReplyPaginated): - owner: str - assets: List[Nft] - next_page_token: str - - -class GetNFTMetadataRequest(RPCModel): - blockchain: BlockchainName - contract_address: str - token_id: str - - -class NftAttributes(RPCModel): - token_url: str - image_url: str - name: str - description: str - contract_type: NftContractType - traits: Optional[List[Attribute]] = None - - -class NftMetadata(RPCModel): - blockchain: BlockchainName - contract_address: str - token_id: str - contract_type: NftContractType - - -class GetNFTMetadataReply(RPCModel): - metadata: Optional[NftMetadata] = None - attributes: Optional[NftAttributes] = None - - -class GetNFTHoldersRequest(RPCRequestPaginated): - blockchain: BlockchainName - contract_address: Address - page_token: Optional[str] = None - page_size: Optional[int] = None - - -class GetNFTHoldersReply(RPCReplyPaginated): - holders: List[Address] - next_page_token: Optional[str] = None - - -class Balance(RPCModel): - blockchain: str - token_name: str - token_symbol: str - token_decimals: int - token_type: str - holder_address: str - balance: str - balance_raw_integer: str - balance_usd: str - token_price: str - thumbnail: str - contract_address: Optional[str] = None - - -class GetAccountBalanceReply(RPCReplyPaginated): - total_balance_usd: str - assets: List[Balance] - next_page_token: Optional[str] = None - - -class GetAccountBalanceRequest(RPCRequestPaginated): - blockchain: Optional[BlockchainNames] - wallet_address: str - page_token: Optional[str] = None - page_size: Optional[int] = None - - -class GetTokenHoldersRequest(RPCRequestPaginated): - blockchain: BlockchainName - contract_address: str - page_token: Optional[str] = None - page_size: Optional[int] = None - - -class HolderBalance(RPCModel): - holder_address: str - balance: str - balance_raw_integer: str - - -class GetTokenHoldersReply(RPCReplyPaginated): - blockchain: BlockchainName - contract_address: str - token_decimals: int - holders: Optional[List[HolderBalance]] - holders_count: int - next_page_token: str - - -class GetTokenHoldersCountRequest(RPCRequestPaginated): - blockchain: BlockchainName - contract_address: str - page_token: Optional[str] = None - page_size: Optional[int] = None - - -class GetTokenPriceRequest(RPCModel): - blockchain: BlockchainName - contract_address: str - - -class GetTokenPriceReply(RPCModel): - usd_price: str - blockchain: BlockchainName - contract_address: str - - -class DailyHolderCount(RPCModel): - holder_count: int - total_amount: str - total_amount_raw_integer: str - last_updated_at: str - - -class GetTokenHoldersCountReply(RPCReplyPaginated): - blockchain: BlockchainName - contract_address: str - token_decimals: int - holder_count_history: List[DailyHolderCount] - next_page_token: str - - -class GetCurrenciesRequest(RPCModel): - blockchain: BlockchainName - - -class CurrencyDetailsExtended(RPCModel): - blockchain: BlockchainName - address: Optional[str] - name: str - decimals: int - symbol: str - thumbnail: str - - -class GetCurrenciesReply(RPCModel): - currencies: List[CurrencyDetailsExtended] - - -class GetUsdPriceRequest(RPCModel): - blockchain: BlockchainName - contract_address: str - - -class GetUsdPriceReply(RPCModel): - usd_price: str - blockchain: BlockchainName - contract_address: Optional[str] = None - - -class EventInput(RPCModel): - name: str - type: str - indexed: bool - size: int - value_decoded: str - - -class Event(RPCModel): - name: str - inputs: List[EventInput] - anonymous: bool - string: str - signature: str - id: str - verified: bool - - -class Log(RPCModel): - address: str - topics: List[str] - data: str - block_number: str - transaction_hash: str - transaction_index: str - block_hash: str - log_index: str - removed: bool - event: Optional[Event] = None - - -class GetLogsReply(RPCReplyPaginated): - logs: List[Log] - next_page_token: Optional[str] = None - - -class GetLogsRequest(RPCRequestPaginated): - blockchain: BlockchainNames - from_block: Optional[BlockNumber] = None - to_block: Optional[BlockNumber] = None - address: Optional[Union[str, List[str]]] = None - topics: Optional[Topics] = None - page_token: Optional[str] = None - page_size: Optional[int] = None - decode_logs: Optional[bool] = None - - -class GetBlocksRequest(RPCModel): - blockchain: BlockchainName - from_block: Optional[BlockNumber] = None - to_block: Optional[BlockNumber] = None - desc_order: Optional[bool] = None - include_logs: Optional[bool] = None - include_txs: Optional[bool] = None - decode_logs: Optional[bool] = None - decode_tx_data: Optional[bool] = None - - -class MethodInput(RPCModel): - name: str - type: str - size: int - value_decoded: str - - -class Method(RPCModel): - name: str - inputs: List[MethodInput] - string: str - signature: str - id: str - verified: bool - - -class Transaction(RPCModel): - class Config: - fields = { - "from_address": "from", - "to_address": "to", - } - - v: str - r: str - s: str - nonce: str - gas: str - gas_price: str - input: str - block_number: str - to_address: Optional[str] - from_address: str - transaction_index: str - block_hash: str - value: str - type: str - contract_address: Optional[str] - cumulative_gas_used: str - gas_used: str - logs: Optional[List[Log]] - hash: str - status: str - blockchain: str - timestamp: str - method: Optional[Method] - - -class Block(RPCModel): - blockchain: str - number: str - hash: str - parent_hash: str - nonce: str - mix_hash: str - sha3_uncles: str - logs_bloom: str - state_root: str - miner: str - difficulty: str - extra_data: str - size: str - gas_limit: str - gas_used: str - timestamp: str - transactions_root: str - receipts_root: str - total_difficulty: str - transactions: List[Transaction] - uncles: List[str] - - -class GetBlocksReply(RPCModel): - blocks: List[Block] - - -class GetTransactionsByHashRequest(RPCModel): - blockchain: Optional[BlockchainNames] - transaction_hash: str - include_logs: Optional[bool] = None - decode_logs: Optional[bool] = None - decode_tx_data: Optional[bool] = None - - -class GetTransactionsByHashReply(RPCModel): - transactions: List[Transaction] diff --git a/ankr/web3.py b/ankr/web3.py deleted file mode 100644 index 9e4030c..0000000 --- a/ankr/web3.py +++ /dev/null @@ -1,104 +0,0 @@ -from __future__ import annotations - -from typing import Any, Dict, Optional, Sequence, Type, Union, cast - -from ens import ENS -from web3 import Web3 -from web3._utils.empty import empty -from web3.eth import Eth -from web3.middleware import geth_poa_middleware -from web3.module import Module - -from ankr.advanced_apis import AnkrNFTAPI, AnkrQueryAPI, AnkrTokenAPI -from ankr.providers import ( - ArbitrumHTTPProvider, - AvalancheHTTPProvider, - BscHTTPProvider, - CeloHTTPProvider, - EthHTTPProvider, - FantomHTTPProvider, - GnosisHTTPProvider, - HarmonyHTTPProvider, - IotexHTTPProvider, - MoonbeamHTTPProvider, - NervosHTTPProvider, - OptimismHTTPProvider, - PolygonHTTPProvider, - SyscoinHTTPProvider, - TProviderConstructor, -) - - -class _Web3NamedMeta(type): - def __new__(metacls, name, bases, namespace, **kw): # type: ignore - return super().__new__(metacls, "Web3", bases, namespace, **kw) - - -class AnkrWeb3(Web3, metaclass=_Web3NamedMeta): - query: AnkrQueryAPI - token: AnkrTokenAPI - nft: AnkrNFTAPI - - eth: Eth - arbitrum: Eth - avalanche: Eth - bsc: Eth - celo: Eth - fantom: Eth - gnosis: Eth - harmony: Eth - iotex: Eth - moonbeam: Eth - nervos: Eth - optimism: Eth - polygon: Eth - syscoin: Eth - - def __init__( - self, - api_key: str, - request_kwargs: Optional[Any] = None, - middlewares: Optional[Sequence[Any]] = None, - modules: Optional[Dict[str, Union[Type[Module], Sequence[Any]]]] = None, - external_modules: Optional[ - Dict[str, Union[Type[Module], Sequence[Any]]] - ] = None, - ens: ENS = cast(ENS, empty), - ) -> None: - self.__api_key = api_key - self.__request_kwargs = request_kwargs - self.__middlewares = middlewares - self.__modules = modules - self.__external_modules = external_modules - self.__ens = ens - - self.query = AnkrQueryAPI(api_key) - self.token = AnkrTokenAPI(api_key) - self.nft = AnkrNFTAPI(api_key) - - eth_provider = EthHTTPProvider(api_key, request_kwargs) - super().__init__(eth_provider, middlewares, modules, external_modules, ens) - self.arbitrum = self.__new_evm_chain(ArbitrumHTTPProvider) - self.avalanche = self.__new_evm_chain(AvalancheHTTPProvider) - self.bsc = self.__new_evm_chain(BscHTTPProvider) - self.celo = self.__new_evm_chain(CeloHTTPProvider) - self.fantom = self.__new_evm_chain(FantomHTTPProvider) - self.gnosis = self.__new_evm_chain(GnosisHTTPProvider) - self.harmony = self.__new_evm_chain(HarmonyHTTPProvider) - self.iotex = self.__new_evm_chain(IotexHTTPProvider) - self.moonbeam = self.__new_evm_chain(MoonbeamHTTPProvider) - self.nervos = self.__new_evm_chain(NervosHTTPProvider) - self.optimism = self.__new_evm_chain(OptimismHTTPProvider) - self.polygon = self.__new_evm_chain(PolygonHTTPProvider) - self.syscoin = self.__new_evm_chain(SyscoinHTTPProvider) - - def __new_evm_chain(self, provider: TProviderConstructor) -> Eth: - w3 = Web3( - provider(self.__api_key, self.__request_kwargs), - self.__middlewares, - self.__modules, - self.__external_modules, - self.__ens, - ) - w3.middleware_onion.inject(geth_poa_middleware, layer=0) - return w3.eth diff --git a/docs/AnkrExplainTokenPriceBody.md b/docs/AnkrExplainTokenPriceBody.md new file mode 100644 index 0000000..f1d10de --- /dev/null +++ b/docs/AnkrExplainTokenPriceBody.md @@ -0,0 +1,12 @@ +# AnkrExplainTokenPriceBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrExplainTokenPriceParams**](AnkrExplainTokenPriceParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrExplainTokenPriceParams.md b/docs/AnkrExplainTokenPriceParams.md new file mode 100644 index 0000000..c0a3e99 --- /dev/null +++ b/docs/AnkrExplainTokenPriceParams.md @@ -0,0 +1,11 @@ +# AnkrExplainTokenPriceParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**block_height** | **int** | Number of the block. | [optional] +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | +**token_address** | **str** | Address of the token contract. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetAccountBalanceBody.md b/docs/AnkrGetAccountBalanceBody.md new file mode 100644 index 0000000..9fc95a8 --- /dev/null +++ b/docs/AnkrGetAccountBalanceBody.md @@ -0,0 +1,12 @@ +# AnkrGetAccountBalanceBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetAccountBalanceParams**](AnkrGetAccountBalanceParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetAccountBalanceHistoricalBody.md b/docs/AnkrGetAccountBalanceHistoricalBody.md new file mode 100644 index 0000000..f5b4d5d --- /dev/null +++ b/docs/AnkrGetAccountBalanceHistoricalBody.md @@ -0,0 +1,12 @@ +# AnkrGetAccountBalanceHistoricalBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetAccountBalanceHistoricalParams**](AnkrGetAccountBalanceHistoricalParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetAccountBalanceHistoricalParams.md b/docs/AnkrGetAccountBalanceHistoricalParams.md new file mode 100644 index 0000000..e02c9df --- /dev/null +++ b/docs/AnkrGetAccountBalanceHistoricalParams.md @@ -0,0 +1,16 @@ +# AnkrGetAccountBalanceHistoricalParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**block_height** | **int** | Height of the block to get balance from. Latest block if 0. | [optional] +**blockchain** | **list[str]** | Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. | [optional] +**native_first** | **bool** | Sorting order. Native network token first (true) or not (false). | [optional] +**only_whitelisted** | **bool** | Filtering. Only show tokens listed on CoinGekko (true) or all the tokens (false). Default — true. | [optional] +**page_size** | **int** | Number of entries per page. int32. Max value — all, default value — all. | [optional] +**page_token** | **str** | Current page token for pagination. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**wallet_address** | **str** | Address to get the balance of. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetAccountBalanceParams.md b/docs/AnkrGetAccountBalanceParams.md new file mode 100644 index 0000000..9e926ca --- /dev/null +++ b/docs/AnkrGetAccountBalanceParams.md @@ -0,0 +1,15 @@ +# AnkrGetAccountBalanceParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **list[str]** | Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. | [optional] +**native_first** | **bool** | Sorting order. Native network token first (true) or not (false). | [optional] +**only_whitelisted** | **bool** | Filtering. Only show tokens listed on CoinGekko (true) or all the tokens (false). Default — true. | [optional] +**page_size** | **int** | Number of entries per page. int32. Max value — all, default value — all. | [optional] +**page_token** | **str** | Current page token for pagination. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**wallet_address** | **str** | Address to get the balance of. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetBlockchainStatsBody.md b/docs/AnkrGetBlockchainStatsBody.md new file mode 100644 index 0000000..2225274 --- /dev/null +++ b/docs/AnkrGetBlockchainStatsBody.md @@ -0,0 +1,12 @@ +# AnkrGetBlockchainStatsBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetBlockchainStatsParams**](AnkrGetBlockchainStatsParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetBlockchainStatsParams.md b/docs/AnkrGetBlockchainStatsParams.md new file mode 100644 index 0000000..e814aad --- /dev/null +++ b/docs/AnkrGetBlockchainStatsParams.md @@ -0,0 +1,10 @@ +# AnkrGetBlockchainStatsParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **list[str]** | Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetBlocksBody.md b/docs/AnkrGetBlocksBody.md new file mode 100644 index 0000000..6f4978d --- /dev/null +++ b/docs/AnkrGetBlocksBody.md @@ -0,0 +1,12 @@ +# AnkrGetBlocksBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetBlocksParams**](AnkrGetBlocksParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetBlocksParams.md b/docs/AnkrGetBlocksParams.md new file mode 100644 index 0000000..32252c1 --- /dev/null +++ b/docs/AnkrGetBlocksParams.md @@ -0,0 +1,17 @@ +# AnkrGetBlocksParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | +**decode_logs** | **bool** | Decode logs (true) or not (false). | [optional] +**decode_tx_data** | **bool** | Decode transaction data (true) or not (false). | [optional] +**desc_order** | **bool** | Sorting order. Descending (true) or ascending (false). | [optional] +**from_block** | **int** | Number of the first block in a range. Integer or string (hex value or earliest). Max range — 30 blocks. | [optional] +**include_logs** | **bool** | Include logs (true) or exclude them (false). Logs are stored inside transactions, so includeTxs also has to be true when IncludeLogs is true. | [optional] +**include_txs** | **bool** | Include transactions (true) or exclude them (false). IncludeTxs has to be true if IncludeLogs is true. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**to_block** | **object** | Number of the last block in a range. Integer or string (hex value or latest). Max range — 30 blocks. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetCurrenciesBody.md b/docs/AnkrGetCurrenciesBody.md new file mode 100644 index 0000000..d3aed7b --- /dev/null +++ b/docs/AnkrGetCurrenciesBody.md @@ -0,0 +1,12 @@ +# AnkrGetCurrenciesBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetCurrenciesParams**](AnkrGetCurrenciesParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetCurrenciesParams.md b/docs/AnkrGetCurrenciesParams.md new file mode 100644 index 0000000..f78d879 --- /dev/null +++ b/docs/AnkrGetCurrenciesParams.md @@ -0,0 +1,10 @@ +# AnkrGetCurrenciesParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetInteractionsBody.md b/docs/AnkrGetInteractionsBody.md new file mode 100644 index 0000000..7aed133 --- /dev/null +++ b/docs/AnkrGetInteractionsBody.md @@ -0,0 +1,12 @@ +# AnkrGetInteractionsBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetInteractionsParams**](AnkrGetInteractionsParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetInteractionsParams.md b/docs/AnkrGetInteractionsParams.md new file mode 100644 index 0000000..4a1797f --- /dev/null +++ b/docs/AnkrGetInteractionsParams.md @@ -0,0 +1,10 @@ +# AnkrGetInteractionsParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **str** | Address of a wallet or a contract. | +**sync_check** | **bool** | If true the info will be returned regardless of the indexer health. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetInternalTransactionsByBlockNumberBody.md b/docs/AnkrGetInternalTransactionsByBlockNumberBody.md new file mode 100644 index 0000000..bf382bc --- /dev/null +++ b/docs/AnkrGetInternalTransactionsByBlockNumberBody.md @@ -0,0 +1,12 @@ +# AnkrGetInternalTransactionsByBlockNumberBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetInternalTransactionsByBlockNumberParams**](AnkrGetInternalTransactionsByBlockNumberParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetInternalTransactionsByBlockNumberParams.md b/docs/AnkrGetInternalTransactionsByBlockNumberParams.md new file mode 100644 index 0000000..bc961fe --- /dev/null +++ b/docs/AnkrGetInternalTransactionsByBlockNumberParams.md @@ -0,0 +1,12 @@ +# AnkrGetInternalTransactionsByBlockNumberParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**block_number** | **int** | Number of the block that contains the transaction. | [optional] +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | +**only_with_value** | **bool** | Filtering. Only responses containing the value parameter (true) or all responses (false). | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetInternalTransactionsByParentHashBody.md b/docs/AnkrGetInternalTransactionsByParentHashBody.md new file mode 100644 index 0000000..e3b4fb0 --- /dev/null +++ b/docs/AnkrGetInternalTransactionsByParentHashBody.md @@ -0,0 +1,12 @@ +# AnkrGetInternalTransactionsByParentHashBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetInternalTransactionsByParentHashParams**](AnkrGetInternalTransactionsByParentHashParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetInternalTransactionsByParentHashParams.md b/docs/AnkrGetInternalTransactionsByParentHashParams.md new file mode 100644 index 0000000..a2958b5 --- /dev/null +++ b/docs/AnkrGetInternalTransactionsByParentHashParams.md @@ -0,0 +1,12 @@ +# AnkrGetInternalTransactionsByParentHashParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | +**only_with_value** | **bool** | Filtering. Only responses containing the value parameter (true) or all responses (false). | [optional] +**parent_transaction_hash** | **str** | Hash of the parents transaction — the one that caused internal transaction. | +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetLogsBody.md b/docs/AnkrGetLogsBody.md new file mode 100644 index 0000000..7578835 --- /dev/null +++ b/docs/AnkrGetLogsBody.md @@ -0,0 +1,12 @@ +# AnkrGetLogsBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetLogsParams**](AnkrGetLogsParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetLogsParams.md b/docs/AnkrGetLogsParams.md new file mode 100644 index 0000000..796999a --- /dev/null +++ b/docs/AnkrGetLogsParams.md @@ -0,0 +1,20 @@ +# AnkrGetLogsParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **list[str]** | Сontract address or a list of addresses from which logs should originate. | [optional] +**blockchain** | **list[str]** | Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. | [optional] +**decode_logs** | **bool** | Decode logs (true) or not (false). | [optional] +**desc_order** | **bool** | Sorting order. Descending (true) or ascending (false). | [optional] [default to True] +**from_block** | **int** | Number of the first block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). | [optional] +**from_timestamp** | **int** | Beginning of a time period. UNIX timestamp. | [optional] +**page_size** | **int** | Number of entries per page. int32. | [optional] [default to 1000] +**page_token** | **str** | Current page token for pagination. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**to_block** | **object** | Number of the last block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). | [optional] +**to_timestamp** | **object** | End of a time period. UNIX timestamp. | [optional] +**topics** | **list[list[list[int]]]** | Array of 32 Bytes DATA topics. Topics are order-dependent. Each topic can also be an array of DATA with 'or' options. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetNFTHoldersBody.md b/docs/AnkrGetNFTHoldersBody.md new file mode 100644 index 0000000..4b891c0 --- /dev/null +++ b/docs/AnkrGetNFTHoldersBody.md @@ -0,0 +1,12 @@ +# AnkrGetNFTHoldersBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetNFTHoldersParams**](AnkrGetNFTHoldersParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetNFTHoldersParams.md b/docs/AnkrGetNFTHoldersParams.md new file mode 100644 index 0000000..609008c --- /dev/null +++ b/docs/AnkrGetNFTHoldersParams.md @@ -0,0 +1,13 @@ +# AnkrGetNFTHoldersParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | +**contract_address** | **str** | Contract address of the NFT collection. Supports ENS. | +**page_size** | **int** | Number of entries per page. int32. Max value — 10000, default value — 1000. | [optional] +**page_token** | **str** | Current page token for pagination. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetNFTMetadataBody.md b/docs/AnkrGetNFTMetadataBody.md new file mode 100644 index 0000000..f6199ac --- /dev/null +++ b/docs/AnkrGetNFTMetadataBody.md @@ -0,0 +1,12 @@ +# AnkrGetNFTMetadataBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetNFTMetadataParams**](AnkrGetNFTMetadataParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetNFTMetadataParams.md b/docs/AnkrGetNFTMetadataParams.md new file mode 100644 index 0000000..578c560 --- /dev/null +++ b/docs/AnkrGetNFTMetadataParams.md @@ -0,0 +1,13 @@ +# AnkrGetNFTMetadataParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | [optional] +**contract_address** | **str** | Address of the NFT contract the metadata belongs to. Supports ENS. | +**force_fetch** | **bool** | Get NFT metadata from the contract (true) or database (false). | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**token_id** | **str** | Token ID of the NFT the metadata belongs to. Created by the contract when minting the NFT. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetNFTsByOwnerBody.md b/docs/AnkrGetNFTsByOwnerBody.md new file mode 100644 index 0000000..cde8272 --- /dev/null +++ b/docs/AnkrGetNFTsByOwnerBody.md @@ -0,0 +1,12 @@ +# AnkrGetNFTsByOwnerBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetNFTsByOwnerParams**](AnkrGetNFTsByOwnerParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetNFTsByOwnerParams.md b/docs/AnkrGetNFTsByOwnerParams.md new file mode 100644 index 0000000..6f1f6d6 --- /dev/null +++ b/docs/AnkrGetNFTsByOwnerParams.md @@ -0,0 +1,14 @@ +# AnkrGetNFTsByOwnerParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **list[str]** | Name of the blockchain or list of blockchain names. Single: eth. [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. | [optional] +**filter** | **list[dict(str, list[str])]** | Filtering. Contract address (retrieves all NFTS by the address) or contract address plus NFT ID (retrieves only that NFT). key-value. | [optional] +**page_size** | **int** | Number of entries per page. int32. Max value — 50, default value — 10. | [optional] +**page_token** | **str** | Current page token for pagination. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**wallet_address** | **str** | Address to query for NFTs. Supports ENS. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetNftTransfersBody.md b/docs/AnkrGetNftTransfersBody.md new file mode 100644 index 0000000..33714d8 --- /dev/null +++ b/docs/AnkrGetNftTransfersBody.md @@ -0,0 +1,12 @@ +# AnkrGetNftTransfersBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetNftTransfersParams**](AnkrGetNftTransfersParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetNftTransfersParams.md b/docs/AnkrGetNftTransfersParams.md new file mode 100644 index 0000000..d7de937 --- /dev/null +++ b/docs/AnkrGetNftTransfersParams.md @@ -0,0 +1,18 @@ +# AnkrGetNftTransfersParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **list[str]** | Address or a list of addresses to get transfer information on. | [optional] +**blockchain** | **list[str]** | Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai.]. All chains: empty value. | [optional] +**desc_order** | **bool** | Sorting order. Descending (true) or ascending (false). | [optional] +**from_block** | **int** | Number of the first block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). | [optional] +**from_timestamp** | **int** | Beginning of a time period. UNIX timestamp. | [optional] +**page_size** | **int** | Number of entries per page. int32. Max value — 10000, default value — 100. | [optional] +**page_token** | **str** | Current page token for pagination. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**to_block** | **object** | Number of the last block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). | [optional] +**to_timestamp** | **object** | End of a time period. UNIX timestamp. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTokenHoldersBody.md b/docs/AnkrGetTokenHoldersBody.md new file mode 100644 index 0000000..64ab24a --- /dev/null +++ b/docs/AnkrGetTokenHoldersBody.md @@ -0,0 +1,12 @@ +# AnkrGetTokenHoldersBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetTokenHoldersParams**](AnkrGetTokenHoldersParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTokenHoldersCountBody.md b/docs/AnkrGetTokenHoldersCountBody.md new file mode 100644 index 0000000..7b8da3f --- /dev/null +++ b/docs/AnkrGetTokenHoldersCountBody.md @@ -0,0 +1,12 @@ +# AnkrGetTokenHoldersCountBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetTokenHoldersParams**](AnkrGetTokenHoldersParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTokenHoldersParams.md b/docs/AnkrGetTokenHoldersParams.md new file mode 100644 index 0000000..f5f034e --- /dev/null +++ b/docs/AnkrGetTokenHoldersParams.md @@ -0,0 +1,13 @@ +# AnkrGetTokenHoldersParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | +**contract_address** | **str** | Address of the token contract. | +**page_size** | **int** | Number of entries per page. int32. Max value — 10000, default value — 10000. | [optional] +**page_token** | **str** | Current page token for pagination. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTokenPriceBody.md b/docs/AnkrGetTokenPriceBody.md new file mode 100644 index 0000000..938f25e --- /dev/null +++ b/docs/AnkrGetTokenPriceBody.md @@ -0,0 +1,12 @@ +# AnkrGetTokenPriceBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetTokenPriceParams**](AnkrGetTokenPriceParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTokenPriceHistoryBody.md b/docs/AnkrGetTokenPriceHistoryBody.md new file mode 100644 index 0000000..e1d64a1 --- /dev/null +++ b/docs/AnkrGetTokenPriceHistoryBody.md @@ -0,0 +1,12 @@ +# AnkrGetTokenPriceHistoryBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetTokenPriceHistoryParams**](AnkrGetTokenPriceHistoryParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTokenPriceHistoryParams.md b/docs/AnkrGetTokenPriceHistoryParams.md new file mode 100644 index 0000000..7c8bd24 --- /dev/null +++ b/docs/AnkrGetTokenPriceHistoryParams.md @@ -0,0 +1,15 @@ +# AnkrGetTokenPriceHistoryParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | +**contract_address** | **str** | Address of the token contract. | [optional] +**from_timestamp** | **int** | Beginning of a time period. UNIX timestamp. | [optional] +**interval** | **int** | Time interval for updating the token price. UNIX timestamp. | [optional] +**limit** | **int** | Amount of records to be returned. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**to_timestamp** | **object** | End of a time period. UNIX timestamp. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTokenPriceParams.md b/docs/AnkrGetTokenPriceParams.md new file mode 100644 index 0000000..de1763d --- /dev/null +++ b/docs/AnkrGetTokenPriceParams.md @@ -0,0 +1,11 @@ +# AnkrGetTokenPriceParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **str** | Name of the blockchain. Acceptable values: arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai. | +**contract_address** | **str** | Address of the token contract. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTokenTransfersBody.md b/docs/AnkrGetTokenTransfersBody.md new file mode 100644 index 0000000..2bca225 --- /dev/null +++ b/docs/AnkrGetTokenTransfersBody.md @@ -0,0 +1,12 @@ +# AnkrGetTokenTransfersBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetNftTransfersParams**](AnkrGetNftTransfersParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTransactionsByAddressBody.md b/docs/AnkrGetTransactionsByAddressBody.md new file mode 100644 index 0000000..5080381 --- /dev/null +++ b/docs/AnkrGetTransactionsByAddressBody.md @@ -0,0 +1,12 @@ +# AnkrGetTransactionsByAddressBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetTransactionsByAddressParams**](AnkrGetTransactionsByAddressParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTransactionsByAddressParams.md b/docs/AnkrGetTransactionsByAddressParams.md new file mode 100644 index 0000000..9eb653f --- /dev/null +++ b/docs/AnkrGetTransactionsByAddressParams.md @@ -0,0 +1,19 @@ +# AnkrGetTransactionsByAddressParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**address** | **list[str]** | Address to query for transactions. | +**blockchain** | **list[str]** | Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. | [optional] +**desc_order** | **bool** | Sorting order. Descending (true) or ascending (false). | [optional] +**from_block** | **int** | Number of the first block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). | [optional] +**from_timestamp** | **int** | Beginning of a time period. UNIX timestamp. | [optional] +**include_logs** | **bool** | Include logs (true) or exclude them (false). | [optional] +**page_size** | **int** | Number of entries per page. int32. Max value — 10000, default value — 100. | [optional] +**page_token** | **str** | Current page token for pagination. | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**to_block** | **object** | Number of the last block in a range. Integer or string (number, hex value, 'earliest' or 'latest'). | [optional] +**to_timestamp** | **object** | End of a time period. UNIX timestamp. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTransactionsByHashBody.md b/docs/AnkrGetTransactionsByHashBody.md new file mode 100644 index 0000000..95be7a2 --- /dev/null +++ b/docs/AnkrGetTransactionsByHashBody.md @@ -0,0 +1,12 @@ +# AnkrGetTransactionsByHashBody + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**method** | **str** | | +**params** | [**AnkrGetTransactionsByHashParams**](AnkrGetTransactionsByHashParams.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/AnkrGetTransactionsByHashParams.md b/docs/AnkrGetTransactionsByHashParams.md new file mode 100644 index 0000000..e8f0688 --- /dev/null +++ b/docs/AnkrGetTransactionsByHashParams.md @@ -0,0 +1,14 @@ +# AnkrGetTransactionsByHashParams + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockchain** | **list[str]** | Name of the blockchain or list of blockchain names. Single: eth. Multiple: [arbitrum, avalanche, base, bsc, eth, fantom, flare, gnosis, optimism, polygon, polygon_zkevm, rollux, syscoin, zksync_era, avalanche_fuji, eth_goerli, optimism_testnet, polygon_mumbai]. All chains: empty value. | [optional] +**decode_logs** | **bool** | Decode logs (true) or not (false). | [optional] +**decode_tx_data** | **bool** | Decode transaction data (true) or not (false). | [optional] +**include_logs** | **bool** | Include logs (true) or exclude them (false). | [optional] +**sync_check** | **bool** | If false, the data is returned regardless of indexer health, if true, the data is returned only when the indexer health check is positive. | [optional] +**transaction_hash** | **str** | Hash of the transaction. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/EarlyAccessApi.md b/docs/EarlyAccessApi.md new file mode 100644 index 0000000..00daa10 --- /dev/null +++ b/docs/EarlyAccessApi.md @@ -0,0 +1,203 @@ +# ankr.EarlyAccessApi + +All URIs are relative to *https://rpc.ankr.com/multichain* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ankr_get_account_balance_historical_post**](EarlyAccessApi.md#ankr_get_account_balance_historical_post) | **POST** /?ankr_getAccountBalanceHistorical | ankr_getAccountBalanceHistorical +[**ankr_get_internal_transactions_by_block_number_post**](EarlyAccessApi.md#ankr_get_internal_transactions_by_block_number_post) | **POST** /?ankr_getInternalTransactionsByBlockNumber | ankr_getInternalTransactionsByBlockNumber +[**ankr_get_internal_transactions_by_parent_hash_post**](EarlyAccessApi.md#ankr_get_internal_transactions_by_parent_hash_post) | **POST** /?ankr_getInternalTransactionsByParentHash | ankr_getInternalTransactionsByParentHash +[**ankr_get_token_price_history_post**](EarlyAccessApi.md#ankr_get_token_price_history_post) | **POST** /?ankr_getTokenPriceHistory | ankr_getTokenPriceHistory + +# **ankr_get_account_balance_historical_post** +> InlineResponse2002 ankr_get_account_balance_historical_post(body=body) + +ankr_getAccountBalanceHistorical + +Retrieves the historical balance of the specified account. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.EarlyAccessApi() +body = ankr.AnkrGetAccountBalanceHistoricalBody() # AnkrGetAccountBalanceHistoricalBody | (optional) + +try: + # ankr_getAccountBalanceHistorical + api_response = api_instance.ankr_get_account_balance_historical_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling EarlyAccessApi->ankr_get_account_balance_historical_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetAccountBalanceHistoricalBody**](AnkrGetAccountBalanceHistoricalBody.md)| | [optional] + +### Return type + +[**InlineResponse2002**](InlineResponse2002.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_internal_transactions_by_block_number_post** +> InlineResponse2007 ankr_get_internal_transactions_by_block_number_post(body=body) + +ankr_getInternalTransactionsByBlockNumber + +Retrieves the details of internal transactions for the specified block number. Internal transactions are callbacks that happen during contract-to-contract interactions. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.EarlyAccessApi() +body = ankr.AnkrGetInternalTransactionsByBlockNumberBody() # AnkrGetInternalTransactionsByBlockNumberBody | (optional) + +try: + # ankr_getInternalTransactionsByBlockNumber + api_response = api_instance.ankr_get_internal_transactions_by_block_number_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling EarlyAccessApi->ankr_get_internal_transactions_by_block_number_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetInternalTransactionsByBlockNumberBody**](AnkrGetInternalTransactionsByBlockNumberBody.md)| | [optional] + +### Return type + +[**InlineResponse2007**](InlineResponse2007.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_internal_transactions_by_parent_hash_post** +> InlineResponse2007 ankr_get_internal_transactions_by_parent_hash_post(body=body) + +ankr_getInternalTransactionsByParentHash + +Retrieves the details of internal transactions for the specified parent transaction hash. Internal transactions are callbacks that happen during contract-to-contract interactions. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.EarlyAccessApi() +body = ankr.AnkrGetInternalTransactionsByParentHashBody() # AnkrGetInternalTransactionsByParentHashBody | (optional) + +try: + # ankr_getInternalTransactionsByParentHash + api_response = api_instance.ankr_get_internal_transactions_by_parent_hash_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling EarlyAccessApi->ankr_get_internal_transactions_by_parent_hash_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetInternalTransactionsByParentHashBody**](AnkrGetInternalTransactionsByParentHashBody.md)| | [optional] + +### Return type + +[**InlineResponse2007**](InlineResponse2007.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_token_price_history_post** +> InlineResponse20016 ankr_get_token_price_history_post(body=body) + +ankr_getTokenPriceHistory + +Retrieves the historical price of the specified token. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.EarlyAccessApi() +body = ankr.AnkrGetTokenPriceHistoryBody() # AnkrGetTokenPriceHistoryBody | (optional) + +try: + # ankr_getTokenPriceHistory + api_response = api_instance.ankr_get_token_price_history_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling EarlyAccessApi->ankr_get_token_price_history_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetTokenPriceHistoryBody**](AnkrGetTokenPriceHistoryBody.md)| | [optional] + +### Return type + +[**InlineResponse20016**](InlineResponse20016.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md new file mode 100644 index 0000000..95f5b70 --- /dev/null +++ b/docs/InlineResponse200.md @@ -0,0 +1,11 @@ +# InlineResponse200 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md new file mode 100644 index 0000000..72386ec --- /dev/null +++ b/docs/InlineResponse2001.md @@ -0,0 +1,11 @@ +# InlineResponse2001 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20010.md b/docs/InlineResponse20010.md new file mode 100644 index 0000000..c0a3d51 --- /dev/null +++ b/docs/InlineResponse20010.md @@ -0,0 +1,11 @@ +# InlineResponse20010 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20011.md b/docs/InlineResponse20011.md new file mode 100644 index 0000000..44ed94f --- /dev/null +++ b/docs/InlineResponse20011.md @@ -0,0 +1,11 @@ +# InlineResponse20011 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20012.md b/docs/InlineResponse20012.md new file mode 100644 index 0000000..74d9bed --- /dev/null +++ b/docs/InlineResponse20012.md @@ -0,0 +1,11 @@ +# InlineResponse20012 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20013.md b/docs/InlineResponse20013.md new file mode 100644 index 0000000..f5f1180 --- /dev/null +++ b/docs/InlineResponse20013.md @@ -0,0 +1,11 @@ +# InlineResponse20013 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20014.md b/docs/InlineResponse20014.md new file mode 100644 index 0000000..3fe35da --- /dev/null +++ b/docs/InlineResponse20014.md @@ -0,0 +1,11 @@ +# InlineResponse20014 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20015.md b/docs/InlineResponse20015.md new file mode 100644 index 0000000..ffd2308 --- /dev/null +++ b/docs/InlineResponse20015.md @@ -0,0 +1,11 @@ +# InlineResponse20015 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20016.md b/docs/InlineResponse20016.md new file mode 100644 index 0000000..3c49bd3 --- /dev/null +++ b/docs/InlineResponse20016.md @@ -0,0 +1,11 @@ +# InlineResponse20016 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20017.md b/docs/InlineResponse20017.md new file mode 100644 index 0000000..a86dfe7 --- /dev/null +++ b/docs/InlineResponse20017.md @@ -0,0 +1,11 @@ +# InlineResponse20017 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20018.md b/docs/InlineResponse20018.md new file mode 100644 index 0000000..992f51f --- /dev/null +++ b/docs/InlineResponse20018.md @@ -0,0 +1,11 @@ +# InlineResponse20018 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse20019.md b/docs/InlineResponse20019.md new file mode 100644 index 0000000..179568b --- /dev/null +++ b/docs/InlineResponse20019.md @@ -0,0 +1,11 @@ +# InlineResponse20019 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse2002.md b/docs/InlineResponse2002.md new file mode 100644 index 0000000..755f220 --- /dev/null +++ b/docs/InlineResponse2002.md @@ -0,0 +1,11 @@ +# InlineResponse2002 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse2003.md b/docs/InlineResponse2003.md new file mode 100644 index 0000000..0437032 --- /dev/null +++ b/docs/InlineResponse2003.md @@ -0,0 +1,11 @@ +# InlineResponse2003 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse2004.md b/docs/InlineResponse2004.md new file mode 100644 index 0000000..cda4010 --- /dev/null +++ b/docs/InlineResponse2004.md @@ -0,0 +1,11 @@ +# InlineResponse2004 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse2005.md b/docs/InlineResponse2005.md new file mode 100644 index 0000000..7c6565c --- /dev/null +++ b/docs/InlineResponse2005.md @@ -0,0 +1,11 @@ +# InlineResponse2005 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse2006.md b/docs/InlineResponse2006.md new file mode 100644 index 0000000..26fb244 --- /dev/null +++ b/docs/InlineResponse2006.md @@ -0,0 +1,11 @@ +# InlineResponse2006 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse2007.md b/docs/InlineResponse2007.md new file mode 100644 index 0000000..b347fe4 --- /dev/null +++ b/docs/InlineResponse2007.md @@ -0,0 +1,11 @@ +# InlineResponse2007 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse2008.md b/docs/InlineResponse2008.md new file mode 100644 index 0000000..f7c1c7e --- /dev/null +++ b/docs/InlineResponse2008.md @@ -0,0 +1,11 @@ +# InlineResponse2008 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/InlineResponse2009.md b/docs/InlineResponse2009.md new file mode 100644 index 0000000..9fc9d20 --- /dev/null +++ b/docs/InlineResponse2009.md @@ -0,0 +1,11 @@ +# InlineResponse2009 + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **int** | | +**jsonrpc** | **str** | | +**result** | **object** | Result of the query. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/docs/NFTAPIApi.md b/docs/NFTAPIApi.md new file mode 100644 index 0000000..fabc0e3 --- /dev/null +++ b/docs/NFTAPIApi.md @@ -0,0 +1,203 @@ +# ankr.NFTAPIApi + +All URIs are relative to *https://rpc.ankr.com/multichain* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ankr_get_nft_holders_post**](NFTAPIApi.md#ankr_get_nft_holders_post) | **POST** /?ankr_getNFTHolders | ankr_getNFTHolders +[**ankr_get_nft_metadata_post**](NFTAPIApi.md#ankr_get_nft_metadata_post) | **POST** /?ankr_getNFTMetadata | ankr_getNFTMetadata +[**ankr_get_nft_transfers_post**](NFTAPIApi.md#ankr_get_nft_transfers_post) | **POST** /?ankr_getNftTransfers | ankr_getNftTransfers +[**ankr_get_nfts_by_owner_post**](NFTAPIApi.md#ankr_get_nfts_by_owner_post) | **POST** /?ankr_getNFTsByOwner | ankr_getNFTsByOwner + +# **ankr_get_nft_holders_post** +> InlineResponse2009 ankr_get_nft_holders_post(body=body) + +ankr_getNFTHolders + +Retrieves a list of holders (wallet addresses) of the specified NFT. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.NFTAPIApi() +body = ankr.AnkrGetNFTHoldersBody() # AnkrGetNFTHoldersBody | (optional) + +try: + # ankr_getNFTHolders + api_response = api_instance.ankr_get_nft_holders_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling NFTAPIApi->ankr_get_nft_holders_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetNFTHoldersBody**](AnkrGetNFTHoldersBody.md)| | [optional] + +### Return type + +[**InlineResponse2009**](InlineResponse2009.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_nft_metadata_post** +> InlineResponse20010 ankr_get_nft_metadata_post(body=body) + +ankr_getNFTMetadata + +Retrieves the metadata of to the specified NFT (ERC721/ERC1155/ENS/POAP). + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.NFTAPIApi() +body = ankr.AnkrGetNFTMetadataBody() # AnkrGetNFTMetadataBody | (optional) + +try: + # ankr_getNFTMetadata + api_response = api_instance.ankr_get_nft_metadata_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling NFTAPIApi->ankr_get_nft_metadata_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetNFTMetadataBody**](AnkrGetNFTMetadataBody.md)| | [optional] + +### Return type + +[**InlineResponse20010**](InlineResponse20010.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_nft_transfers_post** +> InlineResponse20012 ankr_get_nft_transfers_post(body=body) + +ankr_getNftTransfers + +Retrieves the details of NFT transfers for the specified address. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.NFTAPIApi() +body = ankr.AnkrGetNftTransfersBody() # AnkrGetNftTransfersBody | (optional) + +try: + # ankr_getNftTransfers + api_response = api_instance.ankr_get_nft_transfers_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling NFTAPIApi->ankr_get_nft_transfers_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetNftTransfersBody**](AnkrGetNftTransfersBody.md)| | [optional] + +### Return type + +[**InlineResponse20012**](InlineResponse20012.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_nfts_by_owner_post** +> InlineResponse20011 ankr_get_nfts_by_owner_post(body=body) + +ankr_getNFTsByOwner + +Retrieves a list of NFTs (ERC721/ERC1155/ENS/POAP) that belong to the specified account. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.NFTAPIApi() +body = ankr.AnkrGetNFTsByOwnerBody() # AnkrGetNFTsByOwnerBody | (optional) + +try: + # ankr_getNFTsByOwner + api_response = api_instance.ankr_get_nfts_by_owner_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling NFTAPIApi->ankr_get_nfts_by_owner_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetNFTsByOwnerBody**](AnkrGetNFTsByOwnerBody.md)| | [optional] + +### Return type + +[**InlineResponse20011**](InlineResponse20011.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/QueryAPIApi.md b/docs/QueryAPIApi.md new file mode 100644 index 0000000..14a7ace --- /dev/null +++ b/docs/QueryAPIApi.md @@ -0,0 +1,350 @@ +# ankr.QueryAPIApi + +All URIs are relative to *https://rpc.ankr.com/multichain* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ankr_get_blockchain_stats_post**](QueryAPIApi.md#ankr_get_blockchain_stats_post) | **POST** /?ankr_getBlockchainStats | ankr_getBlockchainStats +[**ankr_get_blocks_post**](QueryAPIApi.md#ankr_get_blocks_post) | **POST** /?ankr_getBlocks | ankr_getBlocks +[**ankr_get_interactions_post**](QueryAPIApi.md#ankr_get_interactions_post) | **POST** /?ankr_getInteractions | ankr_getInteractions +[**ankr_get_logs_post**](QueryAPIApi.md#ankr_get_logs_post) | **POST** /?ankr_getLogs | ankr_getLogs +[**ankr_get_token_transfers_post**](QueryAPIApi.md#ankr_get_token_transfers_post) | **POST** /?ankr_getTokenTransfers | ankr_getTokenTransfers +[**ankr_get_transactions_by_address_post**](QueryAPIApi.md#ankr_get_transactions_by_address_post) | **POST** /?ankr_getTransactionsByAddress | ankr_getTransactionsByAddress +[**ankr_get_transactions_by_hash_post**](QueryAPIApi.md#ankr_get_transactions_by_hash_post) | **POST** /?ankr_getTransactionsByHash | ankr_getTransactionsByHash + +# **ankr_get_blockchain_stats_post** +> InlineResponse2003 ankr_get_blockchain_stats_post(body=body) + +ankr_getBlockchainStats + +Retrieves blockchain statistics. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.QueryAPIApi() +body = ankr.AnkrGetBlockchainStatsBody() # AnkrGetBlockchainStatsBody | (optional) + +try: + # ankr_getBlockchainStats + api_response = api_instance.ankr_get_blockchain_stats_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling QueryAPIApi->ankr_get_blockchain_stats_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetBlockchainStatsBody**](AnkrGetBlockchainStatsBody.md)| | [optional] + +### Return type + +[**InlineResponse2003**](InlineResponse2003.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_blocks_post** +> InlineResponse2004 ankr_get_blocks_post(body=body) + +ankr_getBlocks + +Retrieves details of the specified range of blocks. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.QueryAPIApi() +body = ankr.AnkrGetBlocksBody() # AnkrGetBlocksBody | (optional) + +try: + # ankr_getBlocks + api_response = api_instance.ankr_get_blocks_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling QueryAPIApi->ankr_get_blocks_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetBlocksBody**](AnkrGetBlocksBody.md)| | [optional] + +### Return type + +[**InlineResponse2004**](InlineResponse2004.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_interactions_post** +> InlineResponse2006 ankr_get_interactions_post(body=body) + +ankr_getInteractions + +Retrieves a list of blockchains on which interactions (tokens, NFTs, transactions) were registered for the specified address. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.QueryAPIApi() +body = ankr.AnkrGetInteractionsBody() # AnkrGetInteractionsBody | (optional) + +try: + # ankr_getInteractions + api_response = api_instance.ankr_get_interactions_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling QueryAPIApi->ankr_get_interactions_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetInteractionsBody**](AnkrGetInteractionsBody.md)| | [optional] + +### Return type + +[**InlineResponse2006**](InlineResponse2006.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_logs_post** +> InlineResponse2008 ankr_get_logs_post(body=body) + +ankr_getLogs + +Retrieves historical data for the specified range of blocks. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.QueryAPIApi() +body = ankr.AnkrGetLogsBody() # AnkrGetLogsBody | (optional) + +try: + # ankr_getLogs + api_response = api_instance.ankr_get_logs_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling QueryAPIApi->ankr_get_logs_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetLogsBody**](AnkrGetLogsBody.md)| | [optional] + +### Return type + +[**InlineResponse2008**](InlineResponse2008.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_token_transfers_post** +> InlineResponse20017 ankr_get_token_transfers_post(body=body) + +ankr_getTokenTransfers + +Retrieves the details of token transfers for the specified wallet address. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.QueryAPIApi() +body = ankr.AnkrGetTokenTransfersBody() # AnkrGetTokenTransfersBody | (optional) + +try: + # ankr_getTokenTransfers + api_response = api_instance.ankr_get_token_transfers_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling QueryAPIApi->ankr_get_token_transfers_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetTokenTransfersBody**](AnkrGetTokenTransfersBody.md)| | [optional] + +### Return type + +[**InlineResponse20017**](InlineResponse20017.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_transactions_by_address_post** +> InlineResponse20018 ankr_get_transactions_by_address_post(body=body) + +ankr_getTransactionsByAddress + +Retrieves the details of transactions for the specified address. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.QueryAPIApi() +body = ankr.AnkrGetTransactionsByAddressBody() # AnkrGetTransactionsByAddressBody | (optional) + +try: + # ankr_getTransactionsByAddress + api_response = api_instance.ankr_get_transactions_by_address_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling QueryAPIApi->ankr_get_transactions_by_address_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetTransactionsByAddressBody**](AnkrGetTransactionsByAddressBody.md)| | [optional] + +### Return type + +[**InlineResponse20018**](InlineResponse20018.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_transactions_by_hash_post** +> InlineResponse20019 ankr_get_transactions_by_hash_post(body=body) + +ankr_getTransactionsByHash + +Retrieves details of the transaction specified by its hash. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.QueryAPIApi() +body = ankr.AnkrGetTransactionsByHashBody() # AnkrGetTransactionsByHashBody | (optional) + +try: + # ankr_getTransactionsByHash + api_response = api_instance.ankr_get_transactions_by_hash_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling QueryAPIApi->ankr_get_transactions_by_hash_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetTransactionsByHashBody**](AnkrGetTransactionsByHashBody.md)| | [optional] + +### Return type + +[**InlineResponse20019**](InlineResponse20019.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/TokenAPIApi.md b/docs/TokenAPIApi.md new file mode 100644 index 0000000..c0af630 --- /dev/null +++ b/docs/TokenAPIApi.md @@ -0,0 +1,301 @@ +# ankr.TokenAPIApi + +All URIs are relative to *https://rpc.ankr.com/multichain* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ankr_explain_token_price_post**](TokenAPIApi.md#ankr_explain_token_price_post) | **POST** /?ankr_explainTokenPrice | ankr_explainTokenPrice +[**ankr_get_account_balance_post**](TokenAPIApi.md#ankr_get_account_balance_post) | **POST** /?ankr_getAccountBalance | ankr_getAccountBalance +[**ankr_get_currencies_post**](TokenAPIApi.md#ankr_get_currencies_post) | **POST** /?ankr_getCurrencies | ankr_getCurrencies +[**ankr_get_token_holders_count_post**](TokenAPIApi.md#ankr_get_token_holders_count_post) | **POST** /?ankr_getTokenHoldersCount | ankr_getTokenHoldersCount +[**ankr_get_token_holders_post**](TokenAPIApi.md#ankr_get_token_holders_post) | **POST** /?ankr_getTokenHolders | ankr_getTokenHolders +[**ankr_get_token_price_post**](TokenAPIApi.md#ankr_get_token_price_post) | **POST** /?ankr_getTokenPrice | ankr_getTokenPrice + +# **ankr_explain_token_price_post** +> InlineResponse200 ankr_explain_token_price_post(body=body) + +ankr_explainTokenPrice + +Offers a breakdown of the specified token's price, detailing the contributing token pairs, their liquidity pools, and intermediate prices. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.TokenAPIApi() +body = ankr.AnkrExplainTokenPriceBody() # AnkrExplainTokenPriceBody | (optional) + +try: + # ankr_explainTokenPrice + api_response = api_instance.ankr_explain_token_price_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling TokenAPIApi->ankr_explain_token_price_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrExplainTokenPriceBody**](AnkrExplainTokenPriceBody.md)| | [optional] + +### Return type + +[**InlineResponse200**](InlineResponse200.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_account_balance_post** +> InlineResponse2001 ankr_get_account_balance_post(body=body) + +ankr_getAccountBalance + +Retrieves the balance of the specified account. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.TokenAPIApi() +body = ankr.AnkrGetAccountBalanceBody() # AnkrGetAccountBalanceBody | (optional) + +try: + # ankr_getAccountBalance + api_response = api_instance.ankr_get_account_balance_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling TokenAPIApi->ankr_get_account_balance_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetAccountBalanceBody**](AnkrGetAccountBalanceBody.md)| | [optional] + +### Return type + +[**InlineResponse2001**](InlineResponse2001.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_currencies_post** +> InlineResponse2005 ankr_get_currencies_post(body=body) + +ankr_getCurrencies + +Retrieves a list of all currencies used on the specified blockchain. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.TokenAPIApi() +body = ankr.AnkrGetCurrenciesBody() # AnkrGetCurrenciesBody | (optional) + +try: + # ankr_getCurrencies + api_response = api_instance.ankr_get_currencies_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling TokenAPIApi->ankr_get_currencies_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetCurrenciesBody**](AnkrGetCurrenciesBody.md)| | [optional] + +### Return type + +[**InlineResponse2005**](InlineResponse2005.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_token_holders_count_post** +> InlineResponse20014 ankr_get_token_holders_count_post(body=body) + +ankr_getTokenHoldersCount + +Retrieves the number of holders of the specified token. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.TokenAPIApi() +body = ankr.AnkrGetTokenHoldersCountBody() # AnkrGetTokenHoldersCountBody | (optional) + +try: + # ankr_getTokenHoldersCount + api_response = api_instance.ankr_get_token_holders_count_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling TokenAPIApi->ankr_get_token_holders_count_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetTokenHoldersCountBody**](AnkrGetTokenHoldersCountBody.md)| | [optional] + +### Return type + +[**InlineResponse20014**](InlineResponse20014.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_token_holders_post** +> InlineResponse20013 ankr_get_token_holders_post(body=body) + +ankr_getTokenHolders + +Retrieves the metadata and a list of holders (wallet addresses) of the specified token. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.TokenAPIApi() +body = ankr.AnkrGetTokenHoldersBody() # AnkrGetTokenHoldersBody | (optional) + +try: + # ankr_getTokenHolders + api_response = api_instance.ankr_get_token_holders_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling TokenAPIApi->ankr_get_token_holders_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetTokenHoldersBody**](AnkrGetTokenHoldersBody.md)| | [optional] + +### Return type + +[**InlineResponse20013**](InlineResponse20013.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +# **ankr_get_token_price_post** +> InlineResponse20015 ankr_get_token_price_post(body=body) + +ankr_getTokenPrice + +Retrieves the USD price of the specified token. + +### Example +```python +from __future__ import print_function +import time +import ankr +from ankr.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = ankr.TokenAPIApi() +body = ankr.AnkrGetTokenPriceBody() # AnkrGetTokenPriceBody | (optional) + +try: + # ankr_getTokenPrice + api_response = api_instance.ankr_get_token_price_post(body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling TokenAPIApi->ankr_get_token_price_post: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**AnkrGetTokenPriceBody**](AnkrGetTokenPriceBody.md)| | [optional] + +### Return type + +[**InlineResponse20015**](InlineResponse20015.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/git_push.sh b/git_push.sh new file mode 100644 index 0000000..ae01b18 --- /dev/null +++ b/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 swagger-petstore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/poetry.lock b/poetry.lock deleted file mode 100644 index 6c6ffac..0000000 --- a/poetry.lock +++ /dev/null @@ -1,1840 +0,0 @@ -# This file is automatically @generated by Poetry 1.4.2 and should not be changed by hand. - -[[package]] -name = "aiohttp" -version = "3.8.4" -description = "Async http client/server framework (asyncio)" -category = "main" -optional = false -python-versions = ">=3.6" -files = [ - {file = "aiohttp-3.8.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:5ce45967538fb747370308d3145aa68a074bdecb4f3a300869590f725ced69c1"}, - {file = "aiohttp-3.8.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:b744c33b6f14ca26b7544e8d8aadff6b765a80ad6164fb1a430bbadd593dfb1a"}, - {file = "aiohttp-3.8.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1a45865451439eb320784918617ba54b7a377e3501fb70402ab84d38c2cd891b"}, - {file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a86d42d7cba1cec432d47ab13b6637bee393a10f664c425ea7b305d1301ca1a3"}, - {file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ee3c36df21b5714d49fc4580247947aa64bcbe2939d1b77b4c8dcb8f6c9faecc"}, - {file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:176a64b24c0935869d5bbc4c96e82f89f643bcdf08ec947701b9dbb3c956b7dd"}, - {file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c844fd628851c0bc309f3c801b3a3d58ce430b2ce5b359cd918a5a76d0b20cb5"}, - {file = "aiohttp-3.8.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5393fb786a9e23e4799fec788e7e735de18052f83682ce2dfcabaf1c00c2c08e"}, - {file = "aiohttp-3.8.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e4b09863aae0dc965c3ef36500d891a3ff495a2ea9ae9171e4519963c12ceefd"}, - {file = "aiohttp-3.8.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:adfbc22e87365a6e564c804c58fc44ff7727deea782d175c33602737b7feadb6"}, - {file = "aiohttp-3.8.4-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:147ae376f14b55f4f3c2b118b95be50a369b89b38a971e80a17c3fd623f280c9"}, - {file = "aiohttp-3.8.4-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:eafb3e874816ebe2a92f5e155f17260034c8c341dad1df25672fb710627c6949"}, - {file = "aiohttp-3.8.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:c6cc15d58053c76eacac5fa9152d7d84b8d67b3fde92709195cb984cfb3475ea"}, - {file = "aiohttp-3.8.4-cp310-cp310-win32.whl", hash = "sha256:59f029a5f6e2d679296db7bee982bb3d20c088e52a2977e3175faf31d6fb75d1"}, - {file = "aiohttp-3.8.4-cp310-cp310-win_amd64.whl", hash = "sha256:fe7ba4a51f33ab275515f66b0a236bcde4fb5561498fe8f898d4e549b2e4509f"}, - {file = "aiohttp-3.8.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:3d8ef1a630519a26d6760bc695842579cb09e373c5f227a21b67dc3eb16cfea4"}, - {file = "aiohttp-3.8.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:5b3f2e06a512e94722886c0827bee9807c86a9f698fac6b3aee841fab49bbfb4"}, - {file = "aiohttp-3.8.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:3a80464982d41b1fbfe3154e440ba4904b71c1a53e9cd584098cd41efdb188ef"}, - {file = "aiohttp-3.8.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8b631e26df63e52f7cce0cce6507b7a7f1bc9b0c501fcde69742130b32e8782f"}, - {file = "aiohttp-3.8.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3f43255086fe25e36fd5ed8f2ee47477408a73ef00e804cb2b5cba4bf2ac7f5e"}, - {file = "aiohttp-3.8.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:4d347a172f866cd1d93126d9b239fcbe682acb39b48ee0873c73c933dd23bd0f"}, - {file = "aiohttp-3.8.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a3fec6a4cb5551721cdd70473eb009d90935b4063acc5f40905d40ecfea23e05"}, - {file = "aiohttp-3.8.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:80a37fe8f7c1e6ce8f2d9c411676e4bc633a8462844e38f46156d07a7d401654"}, - {file = "aiohttp-3.8.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:d1e6a862b76f34395a985b3cd39a0d949ca80a70b6ebdea37d3ab39ceea6698a"}, - {file = "aiohttp-3.8.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:cd468460eefef601ece4428d3cf4562459157c0f6523db89365202c31b6daebb"}, - {file = "aiohttp-3.8.4-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:618c901dd3aad4ace71dfa0f5e82e88b46ef57e3239fc7027773cb6d4ed53531"}, - {file = "aiohttp-3.8.4-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:652b1bff4f15f6287550b4670546a2947f2a4575b6c6dff7760eafb22eacbf0b"}, - {file = "aiohttp-3.8.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:80575ba9377c5171407a06d0196b2310b679dc752d02a1fcaa2bc20b235dbf24"}, - {file = "aiohttp-3.8.4-cp311-cp311-win32.whl", hash = "sha256:bbcf1a76cf6f6dacf2c7f4d2ebd411438c275faa1dc0c68e46eb84eebd05dd7d"}, - {file = "aiohttp-3.8.4-cp311-cp311-win_amd64.whl", hash = "sha256:6e74dd54f7239fcffe07913ff8b964e28b712f09846e20de78676ce2a3dc0bfc"}, - {file = "aiohttp-3.8.4-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:880e15bb6dad90549b43f796b391cfffd7af373f4646784795e20d92606b7a51"}, - {file = "aiohttp-3.8.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb96fa6b56bb536c42d6a4a87dfca570ff8e52de2d63cabebfd6fb67049c34b6"}, - {file = "aiohttp-3.8.4-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4a6cadebe132e90cefa77e45f2d2f1a4b2ce5c6b1bfc1656c1ddafcfe4ba8131"}, - {file = "aiohttp-3.8.4-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f352b62b45dff37b55ddd7b9c0c8672c4dd2eb9c0f9c11d395075a84e2c40f75"}, - {file = "aiohttp-3.8.4-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7ab43061a0c81198d88f39aaf90dae9a7744620978f7ef3e3708339b8ed2ef01"}, - {file = "aiohttp-3.8.4-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c9cb1565a7ad52e096a6988e2ee0397f72fe056dadf75d17fa6b5aebaea05622"}, - {file = "aiohttp-3.8.4-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:1b3ea7edd2d24538959c1c1abf97c744d879d4e541d38305f9bd7d9b10c9ec41"}, - {file = "aiohttp-3.8.4-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:7c7837fe8037e96b6dd5cfcf47263c1620a9d332a87ec06a6ca4564e56bd0f36"}, - {file = "aiohttp-3.8.4-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:3b90467ebc3d9fa5b0f9b6489dfb2c304a1db7b9946fa92aa76a831b9d587e99"}, - {file = "aiohttp-3.8.4-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:cab9401de3ea52b4b4c6971db5fb5c999bd4260898af972bf23de1c6b5dd9d71"}, - {file = "aiohttp-3.8.4-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:d1f9282c5f2b5e241034a009779e7b2a1aa045f667ff521e7948ea9b56e0c5ff"}, - {file = "aiohttp-3.8.4-cp36-cp36m-win32.whl", hash = "sha256:5e14f25765a578a0a634d5f0cd1e2c3f53964553a00347998dfdf96b8137f777"}, - {file = "aiohttp-3.8.4-cp36-cp36m-win_amd64.whl", hash = "sha256:4c745b109057e7e5f1848c689ee4fb3a016c8d4d92da52b312f8a509f83aa05e"}, - {file = "aiohttp-3.8.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:aede4df4eeb926c8fa70de46c340a1bc2c6079e1c40ccf7b0eae1313ffd33519"}, - {file = "aiohttp-3.8.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4ddaae3f3d32fc2cb4c53fab020b69a05c8ab1f02e0e59665c6f7a0d3a5be54f"}, - {file = "aiohttp-3.8.4-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c4eb3b82ca349cf6fadcdc7abcc8b3a50ab74a62e9113ab7a8ebc268aad35bb9"}, - {file = "aiohttp-3.8.4-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9bcb89336efa095ea21b30f9e686763f2be4478f1b0a616969551982c4ee4c3b"}, - {file = "aiohttp-3.8.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c08e8ed6fa3d477e501ec9db169bfac8140e830aa372d77e4a43084d8dd91ab"}, - {file = "aiohttp-3.8.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c6cd05ea06daca6ad6a4ca3ba7fe7dc5b5de063ff4daec6170ec0f9979f6c332"}, - {file = "aiohttp-3.8.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:b7a00a9ed8d6e725b55ef98b1b35c88013245f35f68b1b12c5cd4100dddac333"}, - {file = "aiohttp-3.8.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:de04b491d0e5007ee1b63a309956eaed959a49f5bb4e84b26c8f5d49de140fa9"}, - {file = "aiohttp-3.8.4-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:40653609b3bf50611356e6b6554e3a331f6879fa7116f3959b20e3528783e699"}, - {file = "aiohttp-3.8.4-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:dbf3a08a06b3f433013c143ebd72c15cac33d2914b8ea4bea7ac2c23578815d6"}, - {file = "aiohttp-3.8.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:854f422ac44af92bfe172d8e73229c270dc09b96535e8a548f99c84f82dde241"}, - {file = "aiohttp-3.8.4-cp37-cp37m-win32.whl", hash = "sha256:aeb29c84bb53a84b1a81c6c09d24cf33bb8432cc5c39979021cc0f98c1292a1a"}, - {file = "aiohttp-3.8.4-cp37-cp37m-win_amd64.whl", hash = "sha256:db3fc6120bce9f446d13b1b834ea5b15341ca9ff3f335e4a951a6ead31105480"}, - {file = "aiohttp-3.8.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:fabb87dd8850ef0f7fe2b366d44b77d7e6fa2ea87861ab3844da99291e81e60f"}, - {file = "aiohttp-3.8.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:91f6d540163f90bbaef9387e65f18f73ffd7c79f5225ac3d3f61df7b0d01ad15"}, - {file = "aiohttp-3.8.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:d265f09a75a79a788237d7f9054f929ced2e69eb0bb79de3798c468d8a90f945"}, - {file = "aiohttp-3.8.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3d89efa095ca7d442a6d0cbc755f9e08190ba40069b235c9886a8763b03785da"}, - {file = "aiohttp-3.8.4-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4dac314662f4e2aa5009977b652d9b8db7121b46c38f2073bfeed9f4049732cd"}, - {file = "aiohttp-3.8.4-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:fe11310ae1e4cd560035598c3f29d86cef39a83d244c7466f95c27ae04850f10"}, - {file = "aiohttp-3.8.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6ddb2a2026c3f6a68c3998a6c47ab6795e4127315d2e35a09997da21865757f8"}, - {file = "aiohttp-3.8.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e75b89ac3bd27d2d043b234aa7b734c38ba1b0e43f07787130a0ecac1e12228a"}, - {file = "aiohttp-3.8.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:6e601588f2b502c93c30cd5a45bfc665faaf37bbe835b7cfd461753068232074"}, - {file = "aiohttp-3.8.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:a5d794d1ae64e7753e405ba58e08fcfa73e3fad93ef9b7e31112ef3c9a0efb52"}, - {file = "aiohttp-3.8.4-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:a1f4689c9a1462f3df0a1f7e797791cd6b124ddbee2b570d34e7f38ade0e2c71"}, - {file = "aiohttp-3.8.4-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:3032dcb1c35bc330134a5b8a5d4f68c1a87252dfc6e1262c65a7e30e62298275"}, - {file = "aiohttp-3.8.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:8189c56eb0ddbb95bfadb8f60ea1b22fcfa659396ea36f6adcc521213cd7b44d"}, - {file = "aiohttp-3.8.4-cp38-cp38-win32.whl", hash = "sha256:33587f26dcee66efb2fff3c177547bd0449ab7edf1b73a7f5dea1e38609a0c54"}, - {file = "aiohttp-3.8.4-cp38-cp38-win_amd64.whl", hash = "sha256:e595432ac259af2d4630008bf638873d69346372d38255774c0e286951e8b79f"}, - {file = "aiohttp-3.8.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:5a7bdf9e57126dc345b683c3632e8ba317c31d2a41acd5800c10640387d193ed"}, - {file = "aiohttp-3.8.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:22f6eab15b6db242499a16de87939a342f5a950ad0abaf1532038e2ce7d31567"}, - {file = "aiohttp-3.8.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:7235604476a76ef249bd64cb8274ed24ccf6995c4a8b51a237005ee7a57e8643"}, - {file = "aiohttp-3.8.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ea9eb976ffdd79d0e893869cfe179a8f60f152d42cb64622fca418cd9b18dc2a"}, - {file = "aiohttp-3.8.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:92c0cea74a2a81c4c76b62ea1cac163ecb20fb3ba3a75c909b9fa71b4ad493cf"}, - {file = "aiohttp-3.8.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:493f5bc2f8307286b7799c6d899d388bbaa7dfa6c4caf4f97ef7521b9cb13719"}, - {file = "aiohttp-3.8.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0a63f03189a6fa7c900226e3ef5ba4d3bd047e18f445e69adbd65af433add5a2"}, - {file = "aiohttp-3.8.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:10c8cefcff98fd9168cdd86c4da8b84baaa90bf2da2269c6161984e6737bf23e"}, - {file = "aiohttp-3.8.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:bca5f24726e2919de94f047739d0a4fc01372801a3672708260546aa2601bf57"}, - {file = "aiohttp-3.8.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:03baa76b730e4e15a45f81dfe29a8d910314143414e528737f8589ec60cf7391"}, - {file = "aiohttp-3.8.4-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:8c29c77cc57e40f84acef9bfb904373a4e89a4e8b74e71aa8075c021ec9078c2"}, - {file = "aiohttp-3.8.4-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:03543dcf98a6619254b409be2d22b51f21ec66272be4ebda7b04e6412e4b2e14"}, - {file = "aiohttp-3.8.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:17b79c2963db82086229012cff93ea55196ed31f6493bb1ccd2c62f1724324e4"}, - {file = "aiohttp-3.8.4-cp39-cp39-win32.whl", hash = "sha256:34ce9f93a4a68d1272d26030655dd1b58ff727b3ed2a33d80ec433561b03d67a"}, - {file = "aiohttp-3.8.4-cp39-cp39-win_amd64.whl", hash = "sha256:41a86a69bb63bb2fc3dc9ad5ea9f10f1c9c8e282b471931be0268ddd09430b04"}, - {file = "aiohttp-3.8.4.tar.gz", hash = "sha256:bf2e1a9162c1e441bf805a1fd166e249d574ca04e03b34f97e2928769e91ab5c"}, -] - -[package.dependencies] -aiosignal = ">=1.1.2" -async-timeout = ">=4.0.0a3,<5.0" -attrs = ">=17.3.0" -charset-normalizer = ">=2.0,<4.0" -frozenlist = ">=1.1.1" -multidict = ">=4.5,<7.0" -yarl = ">=1.0,<2.0" - -[package.extras] -speedups = ["Brotli", "aiodns", "cchardet"] - -[[package]] -name = "aiosignal" -version = "1.3.1" -description = "aiosignal: a list of registered asynchronous callbacks" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17"}, - {file = "aiosignal-1.3.1.tar.gz", hash = "sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc"}, -] - -[package.dependencies] -frozenlist = ">=1.1.0" - -[[package]] -name = "async-timeout" -version = "4.0.2" -description = "Timeout context manager for asyncio programs" -category = "main" -optional = false -python-versions = ">=3.6" -files = [ - {file = "async-timeout-4.0.2.tar.gz", hash = "sha256:2163e1640ddb52b7a8c80d0a67a08587e5d245cc9c553a74a847056bc2976b15"}, - {file = "async_timeout-4.0.2-py3-none-any.whl", hash = "sha256:8ca1e4fcf50d07413d66d1a5e416e42cfdf5851c981d679a09851a6853383b3c"}, -] - -[[package]] -name = "attrs" -version = "23.1.0" -description = "Classes Without Boilerplate" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "attrs-23.1.0-py3-none-any.whl", hash = "sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04"}, - {file = "attrs-23.1.0.tar.gz", hash = "sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015"}, -] - -[package.extras] -cov = ["attrs[tests]", "coverage[toml] (>=5.3)"] -dev = ["attrs[docs,tests]", "pre-commit"] -docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope-interface"] -tests = ["attrs[tests-no-zope]", "zope-interface"] -tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] - -[[package]] -name = "bitarray" -version = "2.7.3" -description = "efficient arrays of booleans -- C extension" -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "bitarray-2.7.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:979d42e0b2c3113526f9716a461e08671788a23ce7e3b5cd090ce3e6a6762641"}, - {file = "bitarray-2.7.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:860edf8533223d82bd6201894bcaf540f828f49075f363390eecf04b12fb94cb"}, - {file = "bitarray-2.7.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:78378d8dacbe1f4f263347f42ec0a41cc2097cd671c6ac30a65a838284a5e141"}, - {file = "bitarray-2.7.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:888df211aafe5fad41c0792a686d95c8ba37345d5037f437aa3c09608f9c3b56"}, - {file = "bitarray-2.7.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:fb3f003dee96dbf24a6df71443557f249b17b20083c189995302b14eb01530bf"}, - {file = "bitarray-2.7.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c531532c21bc1063e65957a1a85a2d13601ec21801f70821c89d9339b16ebc78"}, - {file = "bitarray-2.7.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8b8fd92c8026e4ba6874e94f538890e35bef2a3a18ea54e3663c578b7916ade1"}, - {file = "bitarray-2.7.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6d19c34a2121eccfeb642d4ad71163bd3342a8f3a99e6724fe824bdfbc0a5b65"}, - {file = "bitarray-2.7.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:102db74ee82ec5774aba01481e73eedaebd27ba167344a81d3b42e6fbf9ffb77"}, - {file = "bitarray-2.7.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:7f6540b45b2230442f7a0614745131e0a6f28251f5d33ac19d0ed61d80db7153"}, - {file = "bitarray-2.7.3-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:99c9345c417a9cff98f9f6e59b0350dcc10c2e0e1ea66acf7946de1cd60541fa"}, - {file = "bitarray-2.7.3-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:a1d439c98e65ab8e5fbcc2b242a16e7a3f076974bff78185ff42ba2d4c220032"}, - {file = "bitarray-2.7.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:87897ec0e4876c9f2c1ae313519de0ed2ad8041a4d2210a083f9b4a239add2e3"}, - {file = "bitarray-2.7.3-cp310-cp310-win32.whl", hash = "sha256:cb46c3a4002c8322dd0e1b4b53f8a647dcb0f199f5c7a1fc03d3880c3eabbd2c"}, - {file = "bitarray-2.7.3-cp310-cp310-win_amd64.whl", hash = "sha256:5df10eb9b794932b0cf806f412d1c6d04fb7655ca7ae5caf6354b9edc380a5f7"}, - {file = "bitarray-2.7.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:27524bc92fdeb464a5057a4677a35f482cf30be2e920bd1d11c46de533cafda6"}, - {file = "bitarray-2.7.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3cf37431de779b29e5c0d8e36868f77f6df53c3c19c20e8404137e257dc80040"}, - {file = "bitarray-2.7.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:8abd23f94cdcce971d932a5f0a066d40fbc61901fd087aa70d32cccd1793bd20"}, - {file = "bitarray-2.7.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7659bdfe7716b14a39007e31e957fa64d7f0d9e40a1dbd024bd81b972d76bffb"}, - {file = "bitarray-2.7.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:da1570f301abdfda68f4fdb40c4d3f09af4bb6e4550b4fa5395db0d142b680bc"}, - {file = "bitarray-2.7.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8becbb9649fd29ee577f9f0405ce2fba5cf9fa2c290c9b044bc235c04473f213"}, - {file = "bitarray-2.7.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:72fd7f6f940bc42914c86700591ccfd1daeff0e414cefcbd7843117df2fac4e9"}, - {file = "bitarray-2.7.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:23b7bada6d6b62cba08f4a1b8a95da2d8592aae1db3c167dcb52abcba0a7bef5"}, - {file = "bitarray-2.7.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:4b2d150a81a981537801ac7d4f4f5d082c48343612a21f4e2c4cd2e887973bd5"}, - {file = "bitarray-2.7.3-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:1502660ab489b1f18c3493c766252cd5d24bc1cbf4bdf3594e0a30de142ed453"}, - {file = "bitarray-2.7.3-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:91f43f6b6c9129a56d3e2dccb8b88ffce0e4f4893dd9d69d285676bdf5b9ca14"}, - {file = "bitarray-2.7.3-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:a69c99274aee2ffdc7f1cfd34044ccb7155790d6f5217d677ea46a6ddead6dd2"}, - {file = "bitarray-2.7.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d63f20299441e32171f08fc62f7ea7e401cc12a96f67a36ab2d76439ecfcb118"}, - {file = "bitarray-2.7.3-cp311-cp311-win32.whl", hash = "sha256:0b84fd9dbf999cbca1090a7703aa1404cd01af4035c6ba3adf69d41280611fb6"}, - {file = "bitarray-2.7.3-cp311-cp311-win_amd64.whl", hash = "sha256:76bbbb9ceebb9cbb2b14369b3681fecab226792b339f612e79f6575ca31fed45"}, - {file = "bitarray-2.7.3-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50d5e2c026b3e3d145f64c457338ea99edcbdd302fdcbd96418251ac51a98a59"}, - {file = "bitarray-2.7.3-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7d571056115bbdc18f199a9ee4c2a1b5884f5e63a3c05fe43d2fc7fc67320515"}, - {file = "bitarray-2.7.3-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e2a0313657e6656efca2148cfc91c50fdafca6f811b6c7d0906e6ba57134e560"}, - {file = "bitarray-2.7.3-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d3b5abb73c45d40d27f9795dac9d6eb1515729c13f93dd67df2be07be6549990"}, - {file = "bitarray-2.7.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7776c070943f45cd8303543a6625cf82f2e000ef9c885d52d7828be099e52f42"}, - {file = "bitarray-2.7.3-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:057f9c53a34e42deed6e8813a82b9c85924f4728be28e3b9b65144569ac5a387"}, - {file = "bitarray-2.7.3-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:8591ad5768860ad186dc94fd58b2932604a7639b57eefbbff2b4865af3407691"}, - {file = "bitarray-2.7.3-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:bd7f4b2df89bf4e298756c0be0be67fb84d6aa49bda60d46805d43f0e643abd5"}, - {file = "bitarray-2.7.3-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:433f91c8ab8338662aaa86b0677e6c15c35f8f7b65d4c43d7d1647a8198bc0b0"}, - {file = "bitarray-2.7.3-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:31e60d8341c3189aa156ca8cb2f6370b29d79cf132e3d091714b0a5a9097eb69"}, - {file = "bitarray-2.7.3-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:ea33ed09157e032f0a7a2627ef87f156e9927697f59b55961439d34bf45af23a"}, - {file = "bitarray-2.7.3-cp36-cp36m-win32.whl", hash = "sha256:302149aaff75939beb8af7f32ac9bf922480033a24fb54f4ebc0c9dc175247c4"}, - {file = "bitarray-2.7.3-cp36-cp36m-win_amd64.whl", hash = "sha256:7a8995737fae8de03b31ed83acf4f4326a55b217022009d18be19ff87fc9010e"}, - {file = "bitarray-2.7.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8b2f31a4cc28aef27355ab896e4b4cc2da2204b2b7adb674d8be7fefa0c93868"}, - {file = "bitarray-2.7.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b5df624ee8a4098c3b1149f4817f2a4a0121c4920e1c114af324bc52d6659e2b"}, - {file = "bitarray-2.7.3-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cb1d60ed709989e34e7158d97fdb077a2f2dfc505998a84161a70f81a6101172"}, - {file = "bitarray-2.7.3-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:748847e58c45a37f23db1f53a6dc16ae32aa80ee504653d79336830de1a79ed7"}, - {file = "bitarray-2.7.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e4b7fdb9772e087174f446655bbc497a1600b5758f279c6d44fcf344c13d5c8a"}, - {file = "bitarray-2.7.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:86e9c48ffeddb0f943e87ab65e1e95dccc9b44ef3761af3bf9642973ab7646d2"}, - {file = "bitarray-2.7.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:0d1f49cc51919d6fa0f7eebd073d2c620b80079aa537d084a7fafb46a35c7a4d"}, - {file = "bitarray-2.7.3-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:b43d56c7c96f5a055f4051be426496db2a616840645d0ab3733d5ceacb2f701b"}, - {file = "bitarray-2.7.3-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:01f8d02c3eae82c98d4259777cb2f042a0b3989d7dceeb37c643cb94b91d5a42"}, - {file = "bitarray-2.7.3-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:d089b1d0b157c9a484f8f7475eecea813d0dc3818adc5bf352903da14fe88fc3"}, - {file = "bitarray-2.7.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:1362e9fb78ca72aa52ec1f1fbd62872801302001b0156ed2a1e707850cd30ffd"}, - {file = "bitarray-2.7.3-cp37-cp37m-win32.whl", hash = "sha256:2cdf5700537e5aa4ec9f4a0b498b8d5b03b9859d503e01ea17a6a134a838aa30"}, - {file = "bitarray-2.7.3-cp37-cp37m-win_amd64.whl", hash = "sha256:1e1553933f4533040491f4e4499bcbbfcee42c4056f56d7e18010e779daab33d"}, - {file = "bitarray-2.7.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:1048a29b3d72b1821a3ae9e8d64e71ed96c53a1a36b1da6db02091a424a8f795"}, - {file = "bitarray-2.7.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:10dc358fe29d7a4c5be78ab2fb5aa50cb8066babd23e0b5589eb68e26afe58d8"}, - {file = "bitarray-2.7.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:8ab6770833976448a9a973bc0df63adedc4c30de4774cec5a9928fc496423ebb"}, - {file = "bitarray-2.7.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4abe2f829f6f2d330bccf1bcde2192264ab9a15d6d00e507265f46dc66557014"}, - {file = "bitarray-2.7.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:87851a82bdf849e3c40ff6d8af5f734634e17f52a8f7f7e74486c2f8ce717578"}, - {file = "bitarray-2.7.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a5fc2512bdf5289a1412c936c65d17881d2b46edb0036c63a8d5605dc8d398a3"}, - {file = "bitarray-2.7.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1289f408a8b5c87cdb4fd7975d4021c6e61209ccb956d0411e72bf43c7f78463"}, - {file = "bitarray-2.7.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9ee181cc00aaba38d9812f4df4e7d828105b6dde3b068cd2c43f1d8f395e0046"}, - {file = "bitarray-2.7.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:00e93f70cbcbeabd1e79accf1b6f5b2424cd40556e7877f618549523d0031c98"}, - {file = "bitarray-2.7.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:3fb6a952796d16c3a309d866eef56a8f4e5591d112c22446e67d33ecb096b44b"}, - {file = "bitarray-2.7.3-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:0fe747a134f7f5bc0877eee58090ae7e7f23628eeb459f681ade65719c3f246a"}, - {file = "bitarray-2.7.3-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:2c1b2c91bf991b5c641faee78dd5a751dff6155ec51c7a6c7f922dc85431898e"}, - {file = "bitarray-2.7.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:c3956ae54285ab30d802756144887e30e013f81c9f03e5ffff9daa46d8ca0154"}, - {file = "bitarray-2.7.3-cp38-cp38-win32.whl", hash = "sha256:00a6fc4355bd4e6ead54d05187dc4ea39f0af439b336ae113f0194673ed730ae"}, - {file = "bitarray-2.7.3-cp38-cp38-win_amd64.whl", hash = "sha256:305e6f7441c007f296644ba3899c0306ce9fd7a482dbbc06b6e7b7bd6e0ddabc"}, - {file = "bitarray-2.7.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:fe80c23409efb41b86efb5e45f334420a9b5b7828f5b3d08b5ff28f03a024d9e"}, - {file = "bitarray-2.7.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:16345146b61e93ca20679c83537ccf7245f78b17035f5b1a436fd2b75da04c5e"}, - {file = "bitarray-2.7.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:1af9b720a048c69e999094e2310138b7cfca5471a9d2c1dbe4b53dd10e516720"}, - {file = "bitarray-2.7.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:088e6e9ea7f0eaf8b672679a68096dbc0a7a7b7a4ed567860f7362e1588370a6"}, - {file = "bitarray-2.7.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:122cd70ee0de2cc9d94da8b8ebcb7dca12b9f4d3beefb94c11e110e1d87503bb"}, - {file = "bitarray-2.7.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cb9a8ee23416bd0cfd457118978bc2f6f02c20b95336db486887f670bf92c2b7"}, - {file = "bitarray-2.7.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9a544f99c24b6f658907eb9edf290a9c54f4106738b2ab84cd19dc6013cc3abf"}, - {file = "bitarray-2.7.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:980f6564218f853a9341fb045446539d4153338926ed2fb222e86dc9b2ae9b8f"}, - {file = "bitarray-2.7.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:f64abe9301b918d2c352e42198cea0196f3639bc1ad23a4a9d8ae97f66068901"}, - {file = "bitarray-2.7.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:029c724bf38c6616b90b1c423b846b63f8d607ed5a23d270e3862696d88a5392"}, - {file = "bitarray-2.7.3-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:16cb00911584a6e9ca0f42c305714898120dc6bfbbec90dacedeed4690331a47"}, - {file = "bitarray-2.7.3-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:699b0134e87c0c4e3b224d879d218c4385a06e6b72df73b4c9c9d549155fb837"}, - {file = "bitarray-2.7.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:b508e1bba4ec68fd0ef28505e2dad2f56de7df710c8334c97036705a562cb908"}, - {file = "bitarray-2.7.3-cp39-cp39-win32.whl", hash = "sha256:4b84230624d15868e407ba8b66df54fc69ee6a9e9cb6d51eb264b8f2614596f1"}, - {file = "bitarray-2.7.3-cp39-cp39-win_amd64.whl", hash = "sha256:757a08bf0aed5a650a399f8c66bcba00c210bce34408b6d7b09b4837bee8f4da"}, - {file = "bitarray-2.7.3.tar.gz", hash = "sha256:f71256a32609b036adad932e1228b66a6b4e2cae6be397e588ddc0babd9a78b9"}, -] - -[[package]] -name = "certifi" -version = "2023.5.7" -description = "Python package for providing Mozilla's CA Bundle." -category = "main" -optional = false -python-versions = ">=3.6" -files = [ - {file = "certifi-2023.5.7-py3-none-any.whl", hash = "sha256:c6c2e98f5c7869efca1f8916fed228dd91539f9f1b444c314c06eef02980c716"}, - {file = "certifi-2023.5.7.tar.gz", hash = "sha256:0f0d56dc5a6ad56fd4ba36484d6cc34451e1c6548c61daad8c320169f91eddc7"}, -] - -[[package]] -name = "charset-normalizer" -version = "3.1.0" -description = "The Real First Universal Charset Detector. Open, modern and actively maintained alternative to Chardet." -category = "main" -optional = false -python-versions = ">=3.7.0" -files = [ - {file = "charset-normalizer-3.1.0.tar.gz", hash = "sha256:34e0a2f9c370eb95597aae63bf85eb5e96826d81e3dcf88b8886012906f509b5"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:e0ac8959c929593fee38da1c2b64ee9778733cdf03c482c9ff1d508b6b593b2b"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d7fc3fca01da18fbabe4625d64bb612b533533ed10045a2ac3dd194bfa656b60"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:04eefcee095f58eaabe6dc3cc2262f3bcd776d2c67005880894f447b3f2cb9c1"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:20064ead0717cf9a73a6d1e779b23d149b53daf971169289ed2ed43a71e8d3b0"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1435ae15108b1cb6fffbcea2af3d468683b7afed0169ad718451f8db5d1aff6f"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c84132a54c750fda57729d1e2599bb598f5fa0344085dbde5003ba429a4798c0"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:75f2568b4189dda1c567339b48cba4ac7384accb9c2a7ed655cd86b04055c795"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:11d3bcb7be35e7b1bba2c23beedac81ee893ac9871d0ba79effc7fc01167db6c"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:891cf9b48776b5c61c700b55a598621fdb7b1e301a550365571e9624f270c203"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:5f008525e02908b20e04707a4f704cd286d94718f48bb33edddc7d7b584dddc1"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:b06f0d3bf045158d2fb8837c5785fe9ff9b8c93358be64461a1089f5da983137"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:49919f8400b5e49e961f320c735388ee686a62327e773fa5b3ce6721f7e785ce"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:22908891a380d50738e1f978667536f6c6b526a2064156203d418f4856d6e86a"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-win32.whl", hash = "sha256:12d1a39aa6b8c6f6248bb54550efcc1c38ce0d8096a146638fd4738e42284448"}, - {file = "charset_normalizer-3.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:65ed923f84a6844de5fd29726b888e58c62820e0769b76565480e1fdc3d062f8"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:9a3267620866c9d17b959a84dd0bd2d45719b817245e49371ead79ed4f710d19"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6734e606355834f13445b6adc38b53c0fd45f1a56a9ba06c2058f86893ae8017"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f8303414c7b03f794347ad062c0516cee0e15f7a612abd0ce1e25caf6ceb47df"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aaf53a6cebad0eae578f062c7d462155eada9c172bd8c4d250b8c1d8eb7f916a"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3dc5b6a8ecfdc5748a7e429782598e4f17ef378e3e272eeb1340ea57c9109f41"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e1b25e3ad6c909f398df8921780d6a3d120d8c09466720226fc621605b6f92b1"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0ca564606d2caafb0abe6d1b5311c2649e8071eb241b2d64e75a0d0065107e62"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b82fab78e0b1329e183a65260581de4375f619167478dddab510c6c6fb04d9b6"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:bd7163182133c0c7701b25e604cf1611c0d87712e56e88e7ee5d72deab3e76b5"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:11d117e6c63e8f495412d37e7dc2e2fff09c34b2d09dbe2bee3c6229577818be"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:cf6511efa4801b9b38dc5546d7547d5b5c6ef4b081c60b23e4d941d0eba9cbeb"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:abc1185d79f47c0a7aaf7e2412a0eb2c03b724581139193d2d82b3ad8cbb00ac"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:cb7b2ab0188829593b9de646545175547a70d9a6e2b63bf2cd87a0a391599324"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-win32.whl", hash = "sha256:c36bcbc0d5174a80d6cccf43a0ecaca44e81d25be4b7f90f0ed7bcfbb5a00909"}, - {file = "charset_normalizer-3.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:cca4def576f47a09a943666b8f829606bcb17e2bc2d5911a46c8f8da45f56755"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:0c95f12b74681e9ae127728f7e5409cbbef9cd914d5896ef238cc779b8152373"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:fca62a8301b605b954ad2e9c3666f9d97f63872aa4efcae5492baca2056b74ab"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ac0aa6cd53ab9a31d397f8303f92c42f534693528fafbdb997c82bae6e477ad9"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c3af8e0f07399d3176b179f2e2634c3ce9c1301379a6b8c9c9aeecd481da494f"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3a5fc78f9e3f501a1614a98f7c54d3969f3ad9bba8ba3d9b438c3bc5d047dd28"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:628c985afb2c7d27a4800bfb609e03985aaecb42f955049957814e0491d4006d"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:74db0052d985cf37fa111828d0dd230776ac99c740e1a758ad99094be4f1803d"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:1e8fcdd8f672a1c4fc8d0bd3a2b576b152d2a349782d1eb0f6b8e52e9954731d"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:04afa6387e2b282cf78ff3dbce20f0cc071c12dc8f685bd40960cc68644cfea6"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:dd5653e67b149503c68c4018bf07e42eeed6b4e956b24c00ccdf93ac79cdff84"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:d2686f91611f9e17f4548dbf050e75b079bbc2a82be565832bc8ea9047b61c8c"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-win32.whl", hash = "sha256:4155b51ae05ed47199dc5b2a4e62abccb274cee6b01da5b895099b61b1982974"}, - {file = "charset_normalizer-3.1.0-cp37-cp37m-win_amd64.whl", hash = "sha256:322102cdf1ab682ecc7d9b1c5eed4ec59657a65e1c146a0da342b78f4112db23"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:e633940f28c1e913615fd624fcdd72fdba807bf53ea6925d6a588e84e1151531"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:3a06f32c9634a8705f4ca9946d667609f52cf130d5548881401f1eb2c39b1e2c"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:7381c66e0561c5757ffe616af869b916c8b4e42b367ab29fedc98481d1e74e14"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3573d376454d956553c356df45bb824262c397c6e26ce43e8203c4c540ee0acb"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e89df2958e5159b811af9ff0f92614dabf4ff617c03a4c1c6ff53bf1c399e0e1"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:78cacd03e79d009d95635e7d6ff12c21eb89b894c354bd2b2ed0b4763373693b"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:de5695a6f1d8340b12a5d6d4484290ee74d61e467c39ff03b39e30df62cf83a0"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1c60b9c202d00052183c9be85e5eaf18a4ada0a47d188a83c8f5c5b23252f649"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:f645caaf0008bacf349875a974220f1f1da349c5dbe7c4ec93048cdc785a3326"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ea9f9c6034ea2d93d9147818f17c2a0860d41b71c38b9ce4d55f21b6f9165a11"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:80d1543d58bd3d6c271b66abf454d437a438dff01c3e62fdbcd68f2a11310d4b"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:73dc03a6a7e30b7edc5b01b601e53e7fc924b04e1835e8e407c12c037e81adbd"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:6f5c2e7bc8a4bf7c426599765b1bd33217ec84023033672c1e9a8b35eaeaaaf8"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-win32.whl", hash = "sha256:12a2b561af122e3d94cdb97fe6fb2bb2b82cef0cdca131646fdb940a1eda04f0"}, - {file = "charset_normalizer-3.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:3160a0fd9754aab7d47f95a6b63ab355388d890163eb03b2d2b87ab0a30cfa59"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:38e812a197bf8e71a59fe55b757a84c1f946d0ac114acafaafaf21667a7e169e"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:6baf0baf0d5d265fa7944feb9f7451cc316bfe30e8df1a61b1bb08577c554f31"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:8f25e17ab3039b05f762b0a55ae0b3632b2e073d9c8fc88e89aca31a6198e88f"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3747443b6a904001473370d7810aa19c3a180ccd52a7157aacc264a5ac79265e"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b116502087ce8a6b7a5f1814568ccbd0e9f6cfd99948aa59b0e241dc57cf739f"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d16fd5252f883eb074ca55cb622bc0bee49b979ae4e8639fff6ca3ff44f9f854"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:21fa558996782fc226b529fdd2ed7866c2c6ec91cee82735c98a197fae39f706"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f6c7a8a57e9405cad7485f4c9d3172ae486cfef1344b5ddd8e5239582d7355e"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:ac3775e3311661d4adace3697a52ac0bab17edd166087d493b52d4f4f553f9f0"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:10c93628d7497c81686e8e5e557aafa78f230cd9e77dd0c40032ef90c18f2230"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:6f4f4668e1831850ebcc2fd0b1cd11721947b6dc7c00bf1c6bd3c929ae14f2c7"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:0be65ccf618c1e7ac9b849c315cc2e8a8751d9cfdaa43027d4f6624bd587ab7e"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:53d0a3fa5f8af98a1e261de6a3943ca631c526635eb5817a87a59d9a57ebf48f"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-win32.whl", hash = "sha256:a04f86f41a8916fe45ac5024ec477f41f886b3c435da2d4e3d2709b22ab02af1"}, - {file = "charset_normalizer-3.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:830d2948a5ec37c386d3170c483063798d7879037492540f10a475e3fd6f244b"}, - {file = "charset_normalizer-3.1.0-py3-none-any.whl", hash = "sha256:3d9098b479e78c85080c98e1e35ff40b4a31d8953102bb0fd7d1b6f8a2111a3d"}, -] - -[[package]] -name = "colorama" -version = "0.4.6" -description = "Cross-platform colored terminal text." -category = "dev" -optional = false -python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" -files = [ - {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, - {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, -] - -[[package]] -name = "cytoolz" -version = "0.12.1" -description = "Cython implementation of Toolz: High performance functional utilities" -category = "main" -optional = false -python-versions = ">=3.6" -files = [ - {file = "cytoolz-0.12.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:5c59bb4ca88e1c69931468bf21f91c8f64d8bf1999eb163b7a2df336f60c304a"}, - {file = "cytoolz-0.12.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4d700e011156ff112966c6d77faaae125fcaf538f4cec2b9ce8957de82858f0f"}, - {file = "cytoolz-0.12.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23c3f57c48eb939d2986eba4aeaeedf930ebf94d58c91a42d4e0fc45ed5427dc"}, - {file = "cytoolz-0.12.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:25ff13c468c06da9ef26651dc389e7e8bb7af548f8c1dfb96305f57f18d398a8"}, - {file = "cytoolz-0.12.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a734511144309ea6e105406633affb74e303a3df07d8a3954f9b01946e27ecb1"}, - {file = "cytoolz-0.12.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:48bc2f30d1b2646d675bb8e7778ab59379bf9edc59fe06fb0e7f85ba1271bf44"}, - {file = "cytoolz-0.12.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:30936ae8fa68b6a1ac8ad6c4bacb5a8a00d51bc6c89f9614a1557b0105d09f8a"}, - {file = "cytoolz-0.12.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:efd1b2da3ee577fcfa723a214f73186aef9674dd5b28242d90443c7a82722b0f"}, - {file = "cytoolz-0.12.1-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:6805b007af3557ee6c20dab491b6e55a8177f5b6845d9e6c653374d540366ba7"}, - {file = "cytoolz-0.12.1-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:a6e63fc67b23830947b51e0a488992e3c904fce825ead565f3904dcf621d05f7"}, - {file = "cytoolz-0.12.1-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:9e324a94856d88ecf10f34c102d0ded67d7c3cf644153d77e34a29720ce6aa47"}, - {file = "cytoolz-0.12.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:02975e2b1e61e47e9afa311f4c1783d155136fad37c54a1cebfe991c5a0798a1"}, - {file = "cytoolz-0.12.1-cp310-cp310-win32.whl", hash = "sha256:b6569f6038133909cd658dbdcc6fc955f791dc47a7f5b55d2066f742253dcbfe"}, - {file = "cytoolz-0.12.1-cp310-cp310-win_amd64.whl", hash = "sha256:1be368623e46ad3c1ce807e7a436acb119c26001507b31f92ceb21b86e08c386"}, - {file = "cytoolz-0.12.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:849f461bffa1e7700ccfcb5186df29cd4cdcc9efdb7199cb8b5681dc37045d72"}, - {file = "cytoolz-0.12.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:4284120c978fb7039901bf6e66832cb3e82ac1b2a107512e735bdb04fd5533ed"}, - {file = "cytoolz-0.12.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2ec296f01c29c809698eaf677211b6255691295c2b35caab2131e1e7eaadfbac"}, - {file = "cytoolz-0.12.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:37c53f456a1c84566a7d911eec57c4c6280b915ab0600e7671582793cc2769fe"}, - {file = "cytoolz-0.12.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1b6761791973b1e839b8309d5853b40eeb413368e31beaf5f2b6ed44c6fc7cf0"}, - {file = "cytoolz-0.12.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ff478682e8ee6dbaa37201bb71bf4a6eee744006ab000e8f5cea05066fc7c845"}, - {file = "cytoolz-0.12.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:867bebe6be30ee36a836f9b835790762a74f46be8cc339ea57b68dcecdbc1133"}, - {file = "cytoolz-0.12.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:7e903df991f0957e2b271a37bb25d28e0d260c52825ae67507d15ca55a935961"}, - {file = "cytoolz-0.12.1-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:e797c4afb1b7962d3205b1959e1051f7e6bfbba29da44042a9efc2391f1feb38"}, - {file = "cytoolz-0.12.1-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:b8eceaa12b7f152b046b67cb053ec2b5b00f73593983de69bc5e63a8aca4a7a8"}, - {file = "cytoolz-0.12.1-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:b575393dd431b8e211de35bd593d831dac870172b16e2b7934f3566b8fc89377"}, - {file = "cytoolz-0.12.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:3032c0ba42dee5836d6b57a72a569b65df2c29e8ed266cb900d569003cf933a9"}, - {file = "cytoolz-0.12.1-cp311-cp311-win32.whl", hash = "sha256:c576bd63495150385b8d05eaae775387f378be2fd9805d3ffb4d17c87271fbad"}, - {file = "cytoolz-0.12.1-cp311-cp311-win_amd64.whl", hash = "sha256:421b224dc4157a0d66625acb5798cf50858cfa06a5232d39a8bd6cf1fa88aca3"}, - {file = "cytoolz-0.12.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:be5a454a95797343d0fb1ed02caecae73a023b1393c112951c84f17ec9f4076c"}, - {file = "cytoolz-0.12.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:061387aa39b9c1576c25d0c59142513c09e77a2a07bd5d6211a43c7a758b6f45"}, - {file = "cytoolz-0.12.1-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:14f4dbc3f0ec8f6fc68865489af21dcf042ff007d2737c27bfd73296f15db544"}, - {file = "cytoolz-0.12.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a816bff6bf424753e1ac2441902ceaf37ae6718b745a53f6aa1a60c617fb4f5f"}, - {file = "cytoolz-0.12.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:633f19d1990b1cf9c67dce9c28bf8b5a18e42785d15548607a100e1236384d5d"}, - {file = "cytoolz-0.12.1-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6fa7009c843667868aa8bdb3d68e5ef3d6356dd418b17ed5ca4e1340e82483a5"}, - {file = "cytoolz-0.12.1-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:1c29dd04e282ddfd45b457e3551075beec9128aa9271245e58ce924bf6e055f8"}, - {file = "cytoolz-0.12.1-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:cd35c0be4c46274129dd1678bb911dd4e93d23968b26f4e39cd55bc7cb3b1bac"}, - {file = "cytoolz-0.12.1-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:5158ae6d8dd112d003f677039a3613ca7d2592bfe35d7accf23684edb961fc26"}, - {file = "cytoolz-0.12.1-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:7eb9e6fa8a82c3d2f519f7d3942898a97792e3895569e9501b9431048289b82f"}, - {file = "cytoolz-0.12.1-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:ac6784cc43aec51a86cf9058a2a343084f8cf46a9281bea5762bfa608127c53b"}, - {file = "cytoolz-0.12.1-cp36-cp36m-win32.whl", hash = "sha256:794cce219bbcb2f36ca220f27d5afd64eaa854e04901bd6f240be156a578b607"}, - {file = "cytoolz-0.12.1-cp36-cp36m-win_amd64.whl", hash = "sha256:695dd8231e4f1bfb9a2363775a6e4e56ad9d2058058f817203a49614f4bfe33b"}, - {file = "cytoolz-0.12.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b1bd8017ef0da935a20106272c5f5ff6b1114add1ccb09cfed1ff7ec5cc01c6d"}, - {file = "cytoolz-0.12.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:56e1ebf6eb4438b8c45cbe7e7b22fc65df0c9efa97a70d3bf2f51e08b19756a5"}, - {file = "cytoolz-0.12.1-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:816c2038008ebf50d81171ddfae377f1af9e71d504ec609469dcb0906bfcf2ae"}, - {file = "cytoolz-0.12.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9bebe58f7a160db7838eb70990c704db4bdc2d58bd364290fd69be0587be8bac"}, - {file = "cytoolz-0.12.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a72440305f634604827f96810e4469877b89f5c060d6852267650a49b0e3768c"}, - {file = "cytoolz-0.12.1-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b46ebc463bb45f278a2b94e630061c26e10077cb68d4c93583d8f4199699a5ef"}, - {file = "cytoolz-0.12.1-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:e75e287787e6adafed9d8c3d3e7647c0b5eb460221f9f92d7dfe48b45ba77c0d"}, - {file = "cytoolz-0.12.1-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:03ab22c9aeb1535f8647d23b6520b0c3d41aaa18d04ef42b352dde1931f2e2b1"}, - {file = "cytoolz-0.12.1-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:b2ac288f27a2689d9e39f4cf4df5437a8eb038eaae515169586c77f9f8fb343a"}, - {file = "cytoolz-0.12.1-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:97a24c0d0806fcf9a6e75fc18aeb95adc37eb0baf6451f10a2de23ffd815329d"}, - {file = "cytoolz-0.12.1-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:42c9e5cd2a48a257b1f2402334b48122501f249b8dcf77082f569f2680f185eb"}, - {file = "cytoolz-0.12.1-cp37-cp37m-win32.whl", hash = "sha256:35fae4eaa0eaf9072a5fe2d244a79e65baae4e5ddbe9cc629c5037af800213a2"}, - {file = "cytoolz-0.12.1-cp37-cp37m-win_amd64.whl", hash = "sha256:5af43ca7026ead3dd08b261e4f7163cd2cf3ceaa74fa5a81f7b7ea5d445e41d6"}, - {file = "cytoolz-0.12.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:fcc378fa97f02fbcef090b3611305425d72bd1c0afdd13ef4a82dc67d40638b6"}, - {file = "cytoolz-0.12.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:cc3645cf6b9246cb8e179db2803e4f0d148211d2a2cf22d5c9b5219111cd91a0"}, - {file = "cytoolz-0.12.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2b245b824f4705aef0e4a03fafef3ad6cb59ef43cc564cdbf683ee28dfc11ad5"}, - {file = "cytoolz-0.12.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c1964dcb5f250fd13fac210944b20810d61ef4094a17fbbe502ab7a7eaeeace7"}, - {file = "cytoolz-0.12.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:f7194a22a4a24f3561cb6ad1cca9c9b2f2cf34cc8d4bce6d6a24c80960323fa8"}, - {file = "cytoolz-0.12.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e1c5434db53f3a94a37ad8aedb231901e001995d899af6ed1165f3d27fa04a6a"}, - {file = "cytoolz-0.12.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b30cd083ef8af4ba66d9fe5cc75c653ede3f2655f97a032db1a14cc8a006719c"}, - {file = "cytoolz-0.12.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:bef934bd3e024d512c6c0ad1c66eb173f61d9ccb4dbca8d75f727a5604f7c2f6"}, - {file = "cytoolz-0.12.1-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:37320669c364f7d370392af33cc1034b4563da66c22cd3261e3530f4d30dbe4b"}, - {file = "cytoolz-0.12.1-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:3cb95d23defb2322cddf70efb4af6dac191d95edaa343e8c1f58f1afa4f92ecd"}, - {file = "cytoolz-0.12.1-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:ac5895d5f78dbd8646fe37266655ba4995f9cfec38a86595282fee69e41787da"}, - {file = "cytoolz-0.12.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:499af2aff04f65b4c23de1df08e1d1484a93b23ddaaa0163e44b5070b68356eb"}, - {file = "cytoolz-0.12.1-cp38-cp38-win32.whl", hash = "sha256:aa61e3da751a2dfe95aeca603f3ef510071a136ba9905f61ae6cb5d0696271ad"}, - {file = "cytoolz-0.12.1-cp38-cp38-win_amd64.whl", hash = "sha256:f5b43ce952a5a31441556c55f5f5f5a8e62c28581a0ff2a2c31c04ef992d73bd"}, - {file = "cytoolz-0.12.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:b8b8f88251b84b3877254cdd59c86a1dc6b2b39a03c6c9c067d344ef879562e0"}, - {file = "cytoolz-0.12.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d72415b0110f7958dd3a5ee98a70166f47bd42ede85e3535669c794d06f57406"}, - {file = "cytoolz-0.12.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f8101ab6de5aa0b26a2b5032bc488d430010c91863e701812d65836b03a12f61"}, - {file = "cytoolz-0.12.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2eed428b5e68c28abf2c71195e799850e040d67a27c05f7785319c611665b86a"}, - {file = "cytoolz-0.12.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:59641eb1f41cb688b3cb2f98c9003c493a5024325f76b5c02333d08dd972127c"}, - {file = "cytoolz-0.12.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2a48940ff0449ffcf690310bf9228bb57885f7571406ed2fe05c98e299987195"}, - {file = "cytoolz-0.12.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9bae431a5985cdb2014be09d37206c288e0d063940cf9539e9769bd2ec26b220"}, - {file = "cytoolz-0.12.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:cb8b10405960a8e6801a4702af98ea640130ec6ecfc1208195762de3f5503ba9"}, - {file = "cytoolz-0.12.1-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:3c9a16a5b4f54d5c0a131f56b0ca65998a9a74958b5b36840c280edba4f8b907"}, - {file = "cytoolz-0.12.1-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:49911cb533c96d275e31e7eaeb0742ac3f7afe386a1d8c40937814d75039a0f7"}, - {file = "cytoolz-0.12.1-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:dbae37d48ef5a0ab90cfaf2b9312d96f034b1c828208a9cbe25377a1b19ba129"}, - {file = "cytoolz-0.12.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:c34e69be4429633fc614febe3127fa03aa418a1abb9252f29d9ba5b3394573a5"}, - {file = "cytoolz-0.12.1-cp39-cp39-win32.whl", hash = "sha256:0d474dacbafbdbb44c7de986bbf71ff56ae62df0d52ab3b6fa966784dc88737a"}, - {file = "cytoolz-0.12.1-cp39-cp39-win_amd64.whl", hash = "sha256:3d6d0b0075731832343eb88229cea4bf39e96f3fc7acbc449aadbdfec2842703"}, - {file = "cytoolz-0.12.1-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:8506d1863f30d26f577c4ed59d2cfd03d2f39569f9cbaa02a764a9de73d312d5"}, - {file = "cytoolz-0.12.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a1eae39656a1685e8b3f433eecfd72015ce5c1d7519e9c8f9402153c68331bb"}, - {file = "cytoolz-0.12.1-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a0055943074c6c85b77fcc3f42f7c54010a3478daa2ed9d6243d0411c84a4d3"}, - {file = "cytoolz-0.12.1-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a8a7a325b8fe885a6dd91093616c703134f2dacbd869bc519970df3849c2a15b"}, - {file = "cytoolz-0.12.1-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:7b60caf0fa5f1b49f1062f7dc0f66c7b23e2736bad50fa8296bfb845995e3051"}, - {file = "cytoolz-0.12.1-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:980e7eb7205e01816a92f3290cfc80507957e64656b9271a0dfebb85fe3718c0"}, - {file = "cytoolz-0.12.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:06d38a40fe153f23cda0e823413fe9d9ebee89dd461827285316eff929fb121e"}, - {file = "cytoolz-0.12.1-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d540e9c34a61b53b6a374ea108794a48388178f7889d772e364cdbd6df37774c"}, - {file = "cytoolz-0.12.1-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:117871f036926e42d3abcee587eafa9dc7383f1064ac53a806d33e76604de311"}, - {file = "cytoolz-0.12.1-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:31131b54a0c72efc0eb432dc66df546c6a54f2a7d396c9a34cf65ac1c26b1df8"}, - {file = "cytoolz-0.12.1-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:4534cbfad73cdb1a6dad495530d4186d57d73089c01e9cb0558caab50e46cb3b"}, - {file = "cytoolz-0.12.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:50db41e875e36aec11881b8b12bc69c6f4836b7dd9e88a9e5bbf26c2cb3ba6cd"}, - {file = "cytoolz-0.12.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6716855f9c669c9e25a185d88e0f169839bf8553d16496796325acd114607c11"}, - {file = "cytoolz-0.12.1-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2f32452e833f0605b871626e6c61b71b0cba24233aad0e04accc3240497d4995"}, - {file = "cytoolz-0.12.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:ba74c239fc6cb6e962eabc420967c7565f3f363b776c89b3df5234caecf1f463"}, - {file = "cytoolz-0.12.1.tar.gz", hash = "sha256:fc33909397481c90de3cec831bfb88d97e220dc91939d996920202f184b4648e"}, -] - -[package.dependencies] -toolz = ">=0.8.0" - -[package.extras] -cython = ["cython"] - -[[package]] -name = "eth-abi" -version = "4.0.0" -description = "eth_abi: Python utilities for working with Ethereum ABI definitions, especially encoding and decoding" -category = "main" -optional = false -python-versions = ">=3.7, <4" -files = [ - {file = "eth_abi-4.0.0-py3-none-any.whl", hash = "sha256:79d258669f3505319e53638d644a75e1c816db552a1ab1927c3063763cc41031"}, - {file = "eth_abi-4.0.0.tar.gz", hash = "sha256:6949baba61a2c453f0719309ca145e8876a1cbae7ba377c991e67240c13ec7fc"}, -] - -[package.dependencies] -eth-typing = ">=3.0.0" -eth-utils = ">=2.0.0" -parsimonious = ">=0.9.0,<0.10.0" - -[package.extras] -dev = ["black", "bumpversion (>=0.5.3,<1)", "eth-hash[pycryptodome]", "flake8", "hypothesis (>=4.18.2,<5.0.0)", "ipython", "isort (>=4.2.15,<5)", "jinja2 (>=3.0.0,<3.1.0)", "mypy (==0.910)", "pydocstyle (>=6.0.0,<7)", "pytest (>=6.2.5,<7)", "pytest-pythonpath (>=0.7.1)", "pytest-watch (>=4.1.0,<5)", "pytest-xdist (>=2.5.0,<3)", "sphinx (>=4.5.0,<5)", "sphinx-rtd-theme (>=1.0.0)", "towncrier (==18.5.0)", "tox (>=2.9.1,<3)", "twine", "wheel"] -doc = ["jinja2 (>=3.0.0,<3.1.0)", "sphinx (>=4.5.0,<5)", "sphinx-rtd-theme (>=1.0.0)", "towncrier (==18.5.0)"] -lint = ["black", "flake8", "isort (>=4.2.15,<5)", "mypy (==0.910)", "pydocstyle (>=6.0.0,<7)"] -test = ["eth-hash[pycryptodome]", "hypothesis (>=4.18.2,<5.0.0)", "pytest (>=6.2.5,<7)", "pytest-pythonpath (>=0.7.1)", "pytest-xdist (>=2.5.0,<3)", "tox (>=2.9.1,<3)"] -tools = ["hypothesis (>=4.18.2,<5.0.0)"] - -[[package]] -name = "eth-account" -version = "0.8.0" -description = "eth-account: Sign Ethereum transactions and messages with local private keys" -category = "main" -optional = false -python-versions = ">=3.6, <4" -files = [ - {file = "eth-account-0.8.0.tar.gz", hash = "sha256:ccb2d90a16c81c8ea4ca4dc76a70b50f1d63cea6aff3c5a5eddedf9e45143eca"}, - {file = "eth_account-0.8.0-py3-none-any.whl", hash = "sha256:0ccc0edbb17021004356ae6e37887528b6e59e6ae6283f3917b9759a5887203b"}, -] - -[package.dependencies] -bitarray = ">=2.4.0,<3" -eth-abi = ">=3.0.1" -eth-keyfile = ">=0.6.0,<0.7.0" -eth-keys = ">=0.4.0,<0.5" -eth-rlp = ">=0.3.0,<1" -eth-utils = ">=2.0.0,<3" -hexbytes = ">=0.1.0,<1" -rlp = ">=1.0.0,<4" - -[package.extras] -dev = ["Sphinx (>=1.6.5,<5)", "black (>=22,<23)", "bumpversion (>=0.5.3,<1)", "coverage", "flake8 (==3.7.9)", "hypothesis (>=4.18.0,<5)", "ipython", "isort (>=4.2.15,<5)", "jinja2 (>=3.0.0,<3.1.0)", "mypy (==0.910)", "pydocstyle (>=5.0.0,<6)", "pytest (>=6.2.5,<7)", "pytest-watch (>=4.1.0,<5)", "pytest-xdist", "sphinx-rtd-theme (>=0.1.9,<1)", "towncrier (>=21,<22)", "tox (==3.25.0)", "twine", "wheel"] -doc = ["Sphinx (>=1.6.5,<5)", "jinja2 (>=3.0.0,<3.1.0)", "sphinx-rtd-theme (>=0.1.9,<1)", "towncrier (>=21,<22)"] -lint = ["black (>=22,<23)", "flake8 (==3.7.9)", "isort (>=4.2.15,<5)", "mypy (==0.910)", "pydocstyle (>=5.0.0,<6)"] -test = ["coverage", "hypothesis (>=4.18.0,<5)", "pytest (>=6.2.5,<7)", "pytest-xdist", "tox (==3.25.0)"] - -[[package]] -name = "eth-hash" -version = "0.5.1" -description = "eth-hash: The Ethereum hashing function, keccak256, sometimes (erroneously) called sha3" -category = "main" -optional = false -python-versions = ">=3.7, <4" -files = [ - {file = "eth-hash-0.5.1.tar.gz", hash = "sha256:9805075f653e114a31a99678e93b257fb4082337696f4eff7b4371fe65158409"}, - {file = "eth_hash-0.5.1-py3-none-any.whl", hash = "sha256:4d992e885f3ae3901abbe98bd776ba62d0f6335f98c6e9fc60a39b9d114dfb5a"}, -] - -[package.dependencies] -pycryptodome = {version = ">=3.6.6,<4", optional = true, markers = "extra == \"pycryptodome\""} - -[package.extras] -dev = ["Sphinx (>=5.0.0,<6)", "black (>=22.0,<23)", "bumpversion (>=0.5.3,<1)", "flake8 (==3.7.9)", "ipython", "isort (>=4.2.15,<5)", "jinja2 (>=3.0.0,<3.1.0)", "mypy (==0.961)", "pydocstyle (>=5.0.0,<6)", "pytest (>=6.2.5,<7)", "pytest-watch (>=4.1.0,<5)", "pytest-xdist (>=2.4.0,<3)", "sphinx-rtd-theme (>=0.1.9,<1)", "towncrier (>=21,<22)", "tox (>=3.14.6,<4)", "twine", "wheel"] -doc = ["Sphinx (>=5.0.0,<6)", "jinja2 (>=3.0.0,<3.1.0)", "sphinx-rtd-theme (>=0.1.9,<1)", "towncrier (>=21,<22)"] -lint = ["black (>=22.0,<23)", "flake8 (==3.7.9)", "isort (>=4.2.15,<5)", "mypy (==0.961)", "pydocstyle (>=5.0.0,<6)"] -pycryptodome = ["pycryptodome (>=3.6.6,<4)"] -pysha3 = ["pysha3 (>=1.0.0,<2.0.0)", "safe-pysha3 (>=1.0.0)"] -test = ["pytest (>=6.2.5,<7)", "pytest-xdist (>=2.4.0,<3)", "tox (>=3.14.6,<4)"] - -[[package]] -name = "eth-keyfile" -version = "0.6.1" -description = "A library for handling the encrypted keyfiles used to store ethereum private keys." -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "eth-keyfile-0.6.1.tar.gz", hash = "sha256:471be6e5386fce7b22556b3d4bde5558dbce46d2674f00848027cb0a20abdc8c"}, - {file = "eth_keyfile-0.6.1-py3-none-any.whl", hash = "sha256:609773a1ad5956944a33348413cad366ec6986c53357a806528c8f61c4961560"}, -] - -[package.dependencies] -eth-keys = ">=0.4.0,<0.5.0" -eth-utils = ">=2,<3" -pycryptodome = ">=3.6.6,<4" - -[package.extras] -dev = ["bumpversion (>=0.5.3,<1)", "eth-keys (>=0.4.0,<0.5.0)", "eth-utils (>=2,<3)", "flake8 (==4.0.1)", "idna (==2.7)", "pluggy (>=1.0.0,<2)", "pycryptodome (>=3.6.6,<4)", "pytest (>=6.2.5,<7)", "requests (>=2.20,<3)", "setuptools (>=38.6.0)", "tox (>=2.7.0)", "twine", "wheel"] -keyfile = ["eth-keys (>=0.4.0,<0.5.0)", "eth-utils (>=2,<3)", "pycryptodome (>=3.6.6,<4)"] -lint = ["flake8 (==4.0.1)"] -test = ["pytest (>=6.2.5,<7)"] - -[[package]] -name = "eth-keys" -version = "0.4.0" -description = "Common API for Ethereum key operations." -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "eth-keys-0.4.0.tar.gz", hash = "sha256:7d18887483bc9b8a3fdd8e32ddcb30044b9f08fcb24a380d93b6eee3a5bb3216"}, - {file = "eth_keys-0.4.0-py3-none-any.whl", hash = "sha256:e07915ffb91277803a28a379418bdd1fad1f390c38ad9353a0f189789a440d5d"}, -] - -[package.dependencies] -eth-typing = ">=3.0.0,<4" -eth-utils = ">=2.0.0,<3.0.0" - -[package.extras] -coincurve = ["coincurve (>=7.0.0,<16.0.0)"] -dev = ["asn1tools (>=0.146.2,<0.147)", "bumpversion (==0.5.3)", "eth-hash[pycryptodome]", "eth-hash[pysha3]", "eth-typing (>=3.0.0,<4)", "eth-utils (>=2.0.0,<3.0.0)", "factory-boy (>=3.0.1,<3.1)", "flake8 (==3.0.4)", "hypothesis (>=5.10.3,<6.0.0)", "mypy (==0.782)", "pyasn1 (>=0.4.5,<0.5)", "pytest (==6.2.5)", "tox (==3.20.0)", "twine"] -eth-keys = ["eth-typing (>=3.0.0,<4)", "eth-utils (>=2.0.0,<3.0.0)"] -lint = ["flake8 (==3.0.4)", "mypy (==0.782)"] -test = ["asn1tools (>=0.146.2,<0.147)", "eth-hash[pycryptodome]", "eth-hash[pysha3]", "factory-boy (>=3.0.1,<3.1)", "hypothesis (>=5.10.3,<6.0.0)", "pyasn1 (>=0.4.5,<0.5)", "pytest (==6.2.5)"] - -[[package]] -name = "eth-rlp" -version = "0.3.0" -description = "eth-rlp: RLP definitions for common Ethereum objects in Python" -category = "main" -optional = false -python-versions = ">=3.7, <4" -files = [ - {file = "eth-rlp-0.3.0.tar.gz", hash = "sha256:f3263b548df718855d9a8dbd754473f383c0efc82914b0b849572ce3e06e71a6"}, - {file = "eth_rlp-0.3.0-py3-none-any.whl", hash = "sha256:e88e949a533def85c69fa94224618bbbd6de00061f4cff645c44621dab11cf33"}, -] - -[package.dependencies] -eth-utils = ">=2.0.0,<3" -hexbytes = ">=0.1.0,<1" -rlp = ">=0.6.0,<4" - -[package.extras] -dev = ["Sphinx (>=1.6.5,<2)", "bumpversion (>=0.5.3,<1)", "eth-hash[pycryptodome]", "flake8 (==3.7.9)", "ipython", "isort (>=4.2.15,<5)", "mypy (==0.770)", "pydocstyle (>=3.0.0,<4)", "pytest (>=6.2.5,<7)", "pytest-watch (>=4.1.0,<5)", "pytest-xdist", "sphinx-rtd-theme (>=0.1.9)", "towncrier (>=19.2.0,<20)", "tox (==3.14.6)", "twine", "wheel"] -doc = ["Sphinx (>=1.6.5,<2)", "sphinx-rtd-theme (>=0.1.9)", "towncrier (>=19.2.0,<20)"] -lint = ["flake8 (==3.7.9)", "isort (>=4.2.15,<5)", "mypy (==0.770)", "pydocstyle (>=3.0.0,<4)"] -test = ["eth-hash[pycryptodome]", "pytest (>=6.2.5,<7)", "pytest-xdist", "tox (==3.14.6)"] - -[[package]] -name = "eth-typing" -version = "3.3.0" -description = "eth-typing: Common type annotations for ethereum python packages" -category = "main" -optional = false -python-versions = ">=3.7.2, <4" -files = [ - {file = "eth-typing-3.3.0.tar.gz", hash = "sha256:e9535e9d524d4c7a0cbd3d9832093cc5001a3e31869e72645674d24c6376d196"}, - {file = "eth_typing-3.3.0-py3-none-any.whl", hash = "sha256:323111b3b76c8ceaff01619367aa52806f0264ca0ec1a70d4b9a42e44360f554"}, -] - -[package.extras] -dev = ["bumpversion (>=0.5.3,<1)", "flake8 (==3.8.3)", "ipython", "isort (>=4.2.15,<5)", "mypy (==0.910)", "pydocstyle (>=3.0.0,<4)", "pytest (>=6.2.5,<7)", "pytest-watch (>=4.1.0,<5)", "pytest-xdist", "sphinx (>=4.2.0,<5)", "sphinx-rtd-theme (>=0.1.9)", "towncrier (>=21,<22)", "tox (>=2.9.1,<3)", "twine", "wheel"] -doc = ["sphinx (>=4.2.0,<5)", "sphinx-rtd-theme (>=0.1.9)", "towncrier (>=21,<22)"] -lint = ["flake8 (==3.8.3)", "isort (>=4.2.15,<5)", "mypy (==0.910)", "pydocstyle (>=3.0.0,<4)"] -test = ["pytest (>=6.2.5,<7)", "pytest-xdist", "tox (>=2.9.1,<3)"] - -[[package]] -name = "eth-utils" -version = "2.1.0" -description = "eth-utils: Common utility functions for python code that interacts with Ethereum" -category = "main" -optional = false -python-versions = ">=3.7,<4" -files = [ - {file = "eth-utils-2.1.0.tar.gz", hash = "sha256:fcb4c3c1b32947ba92970963f9aaf40da73b04ea1034964ff8c0e70595127138"}, - {file = "eth_utils-2.1.0-py3-none-any.whl", hash = "sha256:63901e54ec9e4ac16ae0a0d28e1dc48b968c20184d22f2727e5f3ca24b6250bc"}, -] - -[package.dependencies] -cytoolz = {version = ">=0.10.1", markers = "implementation_name == \"cpython\""} -eth-hash = ">=0.3.1" -eth-typing = ">=3.0.0" -toolz = {version = ">0.8.2", markers = "implementation_name == \"pypy\""} - -[package.extras] -dev = ["Sphinx (>=1.6.5,<2)", "black (>=22)", "bumpversion (>=0.5.3,<1)", "flake8 (==3.7.9)", "hypothesis (>=4.43.0,<5.0.0)", "ipython", "isort (>=4.2.15,<5)", "jinja2 (>=3.0.0,<3.0.1)", "mypy (==0.910)", "pydocstyle (>=5.0.0,<6)", "pytest (>=6.2.5,<7)", "pytest-watch (>=4.1.0,<5)", "pytest-xdist", "sphinx-rtd-theme (>=0.1.9,<2)", "towncrier (>=21,<22)", "tox (==3.14.6)", "twine (>=1.13,<2)", "types-setuptools", "wheel (>=0.30.0,<1.0.0)"] -doc = ["Sphinx (>=1.6.5,<2)", "jinja2 (>=3.0.0,<3.0.1)", "sphinx-rtd-theme (>=0.1.9,<2)", "towncrier (>=21,<22)"] -lint = ["black (>=22)", "flake8 (==3.7.9)", "isort (>=4.2.15,<5)", "mypy (==0.910)", "pydocstyle (>=5.0.0,<6)", "pytest (>=6.2.5,<7)", "types-setuptools"] -test = ["hypothesis (>=4.43.0,<5.0.0)", "pytest (>=6.2.5,<7)", "pytest-xdist", "tox (==3.14.6)", "types-setuptools"] - -[[package]] -name = "exceptiongroup" -version = "1.1.1" -description = "Backport of PEP 654 (exception groups)" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "exceptiongroup-1.1.1-py3-none-any.whl", hash = "sha256:232c37c63e4f682982c8b6459f33a8981039e5fb8756b2074364e5055c498c9e"}, - {file = "exceptiongroup-1.1.1.tar.gz", hash = "sha256:d484c3090ba2889ae2928419117447a14daf3c1231d5e30d0aae34f354f01785"}, -] - -[package.extras] -test = ["pytest (>=6)"] - -[[package]] -name = "flake8" -version = "6.0.0" -description = "the modular source code checker: pep8 pyflakes and co" -category = "dev" -optional = false -python-versions = ">=3.8.1" -files = [ - {file = "flake8-6.0.0-py2.py3-none-any.whl", hash = "sha256:3833794e27ff64ea4e9cf5d410082a8b97ff1a06c16aa3d2027339cd0f1195c7"}, - {file = "flake8-6.0.0.tar.gz", hash = "sha256:c61007e76655af75e6785a931f452915b371dc48f56efd765247c8fe68f2b181"}, -] - -[package.dependencies] -mccabe = ">=0.7.0,<0.8.0" -pycodestyle = ">=2.10.0,<2.11.0" -pyflakes = ">=3.0.0,<3.1.0" - -[[package]] -name = "frozenlist" -version = "1.3.3" -description = "A list-like structure which implements collections.abc.MutableSequence" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "frozenlist-1.3.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:ff8bf625fe85e119553b5383ba0fb6aa3d0ec2ae980295aaefa552374926b3f4"}, - {file = "frozenlist-1.3.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:dfbac4c2dfcc082fcf8d942d1e49b6aa0766c19d3358bd86e2000bf0fa4a9cf0"}, - {file = "frozenlist-1.3.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:b1c63e8d377d039ac769cd0926558bb7068a1f7abb0f003e3717ee003ad85530"}, - {file = "frozenlist-1.3.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7fdfc24dcfce5b48109867c13b4cb15e4660e7bd7661741a391f821f23dfdca7"}, - {file = "frozenlist-1.3.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2c926450857408e42f0bbc295e84395722ce74bae69a3b2aa2a65fe22cb14b99"}, - {file = "frozenlist-1.3.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:1841e200fdafc3d51f974d9d377c079a0694a8f06de2e67b48150328d66d5483"}, - {file = "frozenlist-1.3.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f470c92737afa7d4c3aacc001e335062d582053d4dbe73cda126f2d7031068dd"}, - {file = "frozenlist-1.3.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:783263a4eaad7c49983fe4b2e7b53fa9770c136c270d2d4bbb6d2192bf4d9caf"}, - {file = "frozenlist-1.3.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:924620eef691990dfb56dc4709f280f40baee568c794b5c1885800c3ecc69816"}, - {file = "frozenlist-1.3.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:ae4dc05c465a08a866b7a1baf360747078b362e6a6dbeb0c57f234db0ef88ae0"}, - {file = "frozenlist-1.3.3-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:bed331fe18f58d844d39ceb398b77d6ac0b010d571cba8267c2e7165806b00ce"}, - {file = "frozenlist-1.3.3-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:02c9ac843e3390826a265e331105efeab489ffaf4dd86384595ee8ce6d35ae7f"}, - {file = "frozenlist-1.3.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:9545a33965d0d377b0bc823dcabf26980e77f1b6a7caa368a365a9497fb09420"}, - {file = "frozenlist-1.3.3-cp310-cp310-win32.whl", hash = "sha256:d5cd3ab21acbdb414bb6c31958d7b06b85eeb40f66463c264a9b343a4e238642"}, - {file = "frozenlist-1.3.3-cp310-cp310-win_amd64.whl", hash = "sha256:b756072364347cb6aa5b60f9bc18e94b2f79632de3b0190253ad770c5df17db1"}, - {file = "frozenlist-1.3.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:b4395e2f8d83fbe0c627b2b696acce67868793d7d9750e90e39592b3626691b7"}, - {file = "frozenlist-1.3.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:14143ae966a6229350021384870458e4777d1eae4c28d1a7aa47f24d030e6678"}, - {file = "frozenlist-1.3.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:5d8860749e813a6f65bad8285a0520607c9500caa23fea6ee407e63debcdbef6"}, - {file = "frozenlist-1.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23d16d9f477bb55b6154654e0e74557040575d9d19fe78a161bd33d7d76808e8"}, - {file = "frozenlist-1.3.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:eb82dbba47a8318e75f679690190c10a5e1f447fbf9df41cbc4c3afd726d88cb"}, - {file = "frozenlist-1.3.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9309869032abb23d196cb4e4db574232abe8b8be1339026f489eeb34a4acfd91"}, - {file = "frozenlist-1.3.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:a97b4fe50b5890d36300820abd305694cb865ddb7885049587a5678215782a6b"}, - {file = "frozenlist-1.3.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c188512b43542b1e91cadc3c6c915a82a5eb95929134faf7fd109f14f9892ce4"}, - {file = "frozenlist-1.3.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:303e04d422e9b911a09ad499b0368dc551e8c3cd15293c99160c7f1f07b59a48"}, - {file = "frozenlist-1.3.3-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:0771aed7f596c7d73444c847a1c16288937ef988dc04fb9f7be4b2aa91db609d"}, - {file = "frozenlist-1.3.3-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:66080ec69883597e4d026f2f71a231a1ee9887835902dbe6b6467d5a89216cf6"}, - {file = "frozenlist-1.3.3-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:41fe21dc74ad3a779c3d73a2786bdf622ea81234bdd4faf90b8b03cad0c2c0b4"}, - {file = "frozenlist-1.3.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:f20380df709d91525e4bee04746ba612a4df0972c1b8f8e1e8af997e678c7b81"}, - {file = "frozenlist-1.3.3-cp311-cp311-win32.whl", hash = "sha256:f30f1928162e189091cf4d9da2eac617bfe78ef907a761614ff577ef4edfb3c8"}, - {file = "frozenlist-1.3.3-cp311-cp311-win_amd64.whl", hash = "sha256:a6394d7dadd3cfe3f4b3b186e54d5d8504d44f2d58dcc89d693698e8b7132b32"}, - {file = "frozenlist-1.3.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:8df3de3a9ab8325f94f646609a66cbeeede263910c5c0de0101079ad541af332"}, - {file = "frozenlist-1.3.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0693c609e9742c66ba4870bcee1ad5ff35462d5ffec18710b4ac89337ff16e27"}, - {file = "frozenlist-1.3.3-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cd4210baef299717db0a600d7a3cac81d46ef0e007f88c9335db79f8979c0d3d"}, - {file = "frozenlist-1.3.3-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:394c9c242113bfb4b9aa36e2b80a05ffa163a30691c7b5a29eba82e937895d5e"}, - {file = "frozenlist-1.3.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6327eb8e419f7d9c38f333cde41b9ae348bec26d840927332f17e887a8dcb70d"}, - {file = "frozenlist-1.3.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e24900aa13212e75e5b366cb9065e78bbf3893d4baab6052d1aca10d46d944c"}, - {file = "frozenlist-1.3.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:3843f84a6c465a36559161e6c59dce2f2ac10943040c2fd021cfb70d58c4ad56"}, - {file = "frozenlist-1.3.3-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:84610c1502b2461255b4c9b7d5e9c48052601a8957cd0aea6ec7a7a1e1fb9420"}, - {file = "frozenlist-1.3.3-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:c21b9aa40e08e4f63a2f92ff3748e6b6c84d717d033c7b3438dd3123ee18f70e"}, - {file = "frozenlist-1.3.3-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:efce6ae830831ab6a22b9b4091d411698145cb9b8fc869e1397ccf4b4b6455cb"}, - {file = "frozenlist-1.3.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:40de71985e9042ca00b7953c4f41eabc3dc514a2d1ff534027f091bc74416401"}, - {file = "frozenlist-1.3.3-cp37-cp37m-win32.whl", hash = "sha256:180c00c66bde6146a860cbb81b54ee0df350d2daf13ca85b275123bbf85de18a"}, - {file = "frozenlist-1.3.3-cp37-cp37m-win_amd64.whl", hash = "sha256:9bbbcedd75acdfecf2159663b87f1bb5cfc80e7cd99f7ddd9d66eb98b14a8411"}, - {file = "frozenlist-1.3.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:034a5c08d36649591be1cbb10e09da9f531034acfe29275fc5454a3b101ce41a"}, - {file = "frozenlist-1.3.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ba64dc2b3b7b158c6660d49cdb1d872d1d0bf4e42043ad8d5006099479a194e5"}, - {file = "frozenlist-1.3.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:47df36a9fe24054b950bbc2db630d508cca3aa27ed0566c0baf661225e52c18e"}, - {file = "frozenlist-1.3.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:008a054b75d77c995ea26629ab3a0c0d7281341f2fa7e1e85fa6153ae29ae99c"}, - {file = "frozenlist-1.3.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:841ea19b43d438a80b4de62ac6ab21cfe6827bb8a9dc62b896acc88eaf9cecba"}, - {file = "frozenlist-1.3.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e235688f42b36be2b6b06fc37ac2126a73b75fb8d6bc66dd632aa35286238703"}, - {file = "frozenlist-1.3.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ca713d4af15bae6e5d79b15c10c8522859a9a89d3b361a50b817c98c2fb402a2"}, - {file = "frozenlist-1.3.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9ac5995f2b408017b0be26d4a1d7c61bce106ff3d9e3324374d66b5964325448"}, - {file = "frozenlist-1.3.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:a4ae8135b11652b08a8baf07631d3ebfe65a4c87909dbef5fa0cdde440444ee4"}, - {file = "frozenlist-1.3.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:4ea42116ceb6bb16dbb7d526e242cb6747b08b7710d9782aa3d6732bd8d27649"}, - {file = "frozenlist-1.3.3-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:810860bb4bdce7557bc0febb84bbd88198b9dbc2022d8eebe5b3590b2ad6c842"}, - {file = "frozenlist-1.3.3-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:ee78feb9d293c323b59a6f2dd441b63339a30edf35abcb51187d2fc26e696d13"}, - {file = "frozenlist-1.3.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:0af2e7c87d35b38732e810befb9d797a99279cbb85374d42ea61c1e9d23094b3"}, - {file = "frozenlist-1.3.3-cp38-cp38-win32.whl", hash = "sha256:899c5e1928eec13fd6f6d8dc51be23f0d09c5281e40d9cf4273d188d9feeaf9b"}, - {file = "frozenlist-1.3.3-cp38-cp38-win_amd64.whl", hash = "sha256:7f44e24fa70f6fbc74aeec3e971f60a14dde85da364aa87f15d1be94ae75aeef"}, - {file = "frozenlist-1.3.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:2b07ae0c1edaa0a36339ec6cce700f51b14a3fc6545fdd32930d2c83917332cf"}, - {file = "frozenlist-1.3.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ebb86518203e12e96af765ee89034a1dbb0c3c65052d1b0c19bbbd6af8a145e1"}, - {file = "frozenlist-1.3.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:5cf820485f1b4c91e0417ea0afd41ce5cf5965011b3c22c400f6d144296ccbc0"}, - {file = "frozenlist-1.3.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5c11e43016b9024240212d2a65043b70ed8dfd3b52678a1271972702d990ac6d"}, - {file = "frozenlist-1.3.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8fa3c6e3305aa1146b59a09b32b2e04074945ffcfb2f0931836d103a2c38f936"}, - {file = "frozenlist-1.3.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:352bd4c8c72d508778cf05ab491f6ef36149f4d0cb3c56b1b4302852255d05d5"}, - {file = "frozenlist-1.3.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:65a5e4d3aa679610ac6e3569e865425b23b372277f89b5ef06cf2cdaf1ebf22b"}, - {file = "frozenlist-1.3.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b1e2c1185858d7e10ff045c496bbf90ae752c28b365fef2c09cf0fa309291669"}, - {file = "frozenlist-1.3.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:f163d2fd041c630fed01bc48d28c3ed4a3b003c00acd396900e11ee5316b56bb"}, - {file = "frozenlist-1.3.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:05cdb16d09a0832eedf770cb7bd1fe57d8cf4eaf5aced29c4e41e3f20b30a784"}, - {file = "frozenlist-1.3.3-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:8bae29d60768bfa8fb92244b74502b18fae55a80eac13c88eb0b496d4268fd2d"}, - {file = "frozenlist-1.3.3-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:eedab4c310c0299961ac285591acd53dc6723a1ebd90a57207c71f6e0c2153ab"}, - {file = "frozenlist-1.3.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:3bbdf44855ed8f0fbcd102ef05ec3012d6a4fd7c7562403f76ce6a52aeffb2b1"}, - {file = "frozenlist-1.3.3-cp39-cp39-win32.whl", hash = "sha256:efa568b885bca461f7c7b9e032655c0c143d305bf01c30caf6db2854a4532b38"}, - {file = "frozenlist-1.3.3-cp39-cp39-win_amd64.whl", hash = "sha256:cfe33efc9cb900a4c46f91a5ceba26d6df370ffddd9ca386eb1d4f0ad97b9ea9"}, - {file = "frozenlist-1.3.3.tar.gz", hash = "sha256:58bcc55721e8a90b88332d6cd441261ebb22342e238296bb330968952fbb3a6a"}, -] - -[[package]] -name = "hexbytes" -version = "0.3.0" -description = "hexbytes: Python `bytes` subclass that decodes hex, with a readable console output" -category = "main" -optional = false -python-versions = ">=3.7, <4" -files = [ - {file = "hexbytes-0.3.0-py3-none-any.whl", hash = "sha256:21c3a5bd00a383097f0369c387174e79839d75c4ccc3a7edda315c9644f4458a"}, - {file = "hexbytes-0.3.0.tar.gz", hash = "sha256:afeebfb800f5f15a3ca5bab52e49eabcb4b6dac06ec8ff01a94fdb890c6c0712"}, -] - -[package.extras] -dev = ["Sphinx (>=4.0.0,<5)", "black (>=22,<23)", "bumpversion (>=0.5.3,<1)", "eth-utils (>=1.0.1,<3)", "flake8 (==3.7.9)", "hypothesis (>=3.44.24,<=6.31.6)", "ipython", "isort (>=4.2.15,<5)", "mypy (==0.971)", "pydocstyle (>=5.0.0,<6)", "pytest (>=7,<8)", "pytest-watch (>=4.1.0,<5)", "pytest-xdist", "sphinx-rtd-theme (>=0.1.9,<1)", "towncrier (>=21,<22)", "tox (>=3.25.1,<4)", "twine", "wheel"] -doc = ["Sphinx (>=4.0.0,<5)", "sphinx-rtd-theme (>=0.1.9,<1)", "towncrier (>=21,<22)"] -lint = ["black (>=22,<23)", "flake8 (==3.7.9)", "isort (>=4.2.15,<5)", "mypy (==0.971)", "pydocstyle (>=5.0.0,<6)"] -test = ["eth-utils (>=1.0.1,<3)", "hypothesis (>=3.44.24,<=6.31.6)", "pytest (>=7,<8)", "pytest-xdist", "tox (>=3.25.1,<4)"] - -[[package]] -name = "idna" -version = "3.4" -description = "Internationalized Domain Names in Applications (IDNA)" -category = "main" -optional = false -python-versions = ">=3.5" -files = [ - {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"}, - {file = "idna-3.4.tar.gz", hash = "sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4"}, -] - -[[package]] -name = "importlib-resources" -version = "5.12.0" -description = "Read resources from Python packages" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "importlib_resources-5.12.0-py3-none-any.whl", hash = "sha256:7b1deeebbf351c7578e09bf2f63fa2ce8b5ffec296e0d349139d43cca061a81a"}, - {file = "importlib_resources-5.12.0.tar.gz", hash = "sha256:4be82589bf5c1d7999aedf2a45159d10cb3ca4f19b2271f8792bc8e6da7b22f6"}, -] - -[package.dependencies] -zipp = {version = ">=3.1.0", markers = "python_version < \"3.10\""} - -[package.extras] -docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["flake8 (<5)", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] - -[[package]] -name = "iniconfig" -version = "2.0.0" -description = "brain-dead simple config-ini parsing" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, - {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, -] - -[[package]] -name = "isort" -version = "5.12.0" -description = "A Python utility / library to sort Python imports." -category = "dev" -optional = false -python-versions = ">=3.8.0" -files = [ - {file = "isort-5.12.0-py3-none-any.whl", hash = "sha256:f84c2818376e66cf843d497486ea8fed8700b340f308f076c6fb1229dff318b6"}, - {file = "isort-5.12.0.tar.gz", hash = "sha256:8bef7dde241278824a6d83f44a544709b065191b95b6e50894bdc722fcba0504"}, -] - -[package.extras] -colors = ["colorama (>=0.4.3)"] -pipfile-deprecated-finder = ["pip-shims (>=0.5.2)", "pipreqs", "requirementslib"] -plugins = ["setuptools"] -requirements-deprecated-finder = ["pip-api", "pipreqs"] - -[[package]] -name = "jsonschema" -version = "4.17.3" -description = "An implementation of JSON Schema validation for Python" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "jsonschema-4.17.3-py3-none-any.whl", hash = "sha256:a870ad254da1a8ca84b6a2905cac29d265f805acc57af304784962a2aa6508f6"}, - {file = "jsonschema-4.17.3.tar.gz", hash = "sha256:0f864437ab8b6076ba6707453ef8f98a6a0d512a80e93f8abdb676f737ecb60d"}, -] - -[package.dependencies] -attrs = ">=17.4.0" -importlib-resources = {version = ">=1.4.0", markers = "python_version < \"3.9\""} -pkgutil-resolve-name = {version = ">=1.3.10", markers = "python_version < \"3.9\""} -pyrsistent = ">=0.14.0,<0.17.0 || >0.17.0,<0.17.1 || >0.17.1,<0.17.2 || >0.17.2" - -[package.extras] -format = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3987", "uri-template", "webcolors (>=1.11)"] -format-nongpl = ["fqdn", "idna", "isoduration", "jsonpointer (>1.13)", "rfc3339-validator", "rfc3986-validator (>0.1.0)", "uri-template", "webcolors (>=1.11)"] - -[[package]] -name = "lru-dict" -version = "1.2.0" -description = "An Dict like LRU container." -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "lru-dict-1.2.0.tar.gz", hash = "sha256:13c56782f19d68ddf4d8db0170041192859616514c706b126d0df2ec72a11bd7"}, - {file = "lru_dict-1.2.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:de906e5486b5c053d15b7731583c25e3c9147c288ac8152a6d1f9bccdec72641"}, - {file = "lru_dict-1.2.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:604d07c7604b20b3130405d137cae61579578b0e8377daae4125098feebcb970"}, - {file = "lru_dict-1.2.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:203b3e78d03d88f491fa134f85a42919020686b6e6f2d09759b2f5517260c651"}, - {file = "lru_dict-1.2.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:020b93870f8c7195774cbd94f033b96c14f51c57537969965c3af300331724fe"}, - {file = "lru_dict-1.2.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1184d91cfebd5d1e659d47f17a60185bbf621635ca56dcdc46c6a1745d25df5c"}, - {file = "lru_dict-1.2.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:fc42882b554a86e564e0b662da47b8a4b32fa966920bd165e27bb8079a323bc1"}, - {file = "lru_dict-1.2.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:18ee88ada65bd2ffd483023be0fa1c0a6a051ef666d1cd89e921dcce134149f2"}, - {file = "lru_dict-1.2.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:756230c22257597b7557eaef7f90484c489e9ba78e5bb6ab5a5bcfb6b03cb075"}, - {file = "lru_dict-1.2.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:c4da599af36618881748b5db457d937955bb2b4800db891647d46767d636c408"}, - {file = "lru_dict-1.2.0-cp310-cp310-win32.whl", hash = "sha256:35a142a7d1a4fd5d5799cc4f8ab2fff50a598d8cee1d1c611f50722b3e27874f"}, - {file = "lru_dict-1.2.0-cp310-cp310-win_amd64.whl", hash = "sha256:6da5b8099766c4da3bf1ed6e7d7f5eff1681aff6b5987d1258a13bd2ed54f0c9"}, - {file = "lru_dict-1.2.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b20b7c9beb481e92e07368ebfaa363ed7ef61e65ffe6e0edbdbaceb33e134124"}, - {file = "lru_dict-1.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:22147367b296be31cc858bf167c448af02435cac44806b228c9be8117f1bfce4"}, - {file = "lru_dict-1.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:34a3091abeb95e707f381a8b5b7dc8e4ee016316c659c49b726857b0d6d1bd7a"}, - {file = "lru_dict-1.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:877801a20f05c467126b55338a4e9fa30e2a141eb7b0b740794571b7d619ee11"}, - {file = "lru_dict-1.2.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7d3336e901acec897bcd318c42c2b93d5f1d038e67688f497045fc6bad2c0be7"}, - {file = "lru_dict-1.2.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:8dafc481d2defb381f19b22cc51837e8a42631e98e34b9e0892245cc96593deb"}, - {file = "lru_dict-1.2.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:87bbad3f5c3de8897b8c1263a9af73bbb6469fb90e7b57225dad89b8ef62cd8d"}, - {file = "lru_dict-1.2.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:25f9e0bc2fe8f41c2711ccefd2871f8a5f50a39e6293b68c3dec576112937aad"}, - {file = "lru_dict-1.2.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:ae301c282a499dc1968dd633cfef8771dd84228ae9d40002a3ea990e4ff0c469"}, - {file = "lru_dict-1.2.0-cp311-cp311-win32.whl", hash = "sha256:c9617583173a29048e11397f165501edc5ae223504a404b2532a212a71ecc9ed"}, - {file = "lru_dict-1.2.0-cp311-cp311-win_amd64.whl", hash = "sha256:6b7a031e47421d4b7aa626b8c91c180a9f037f89e5d0a71c4bb7afcf4036c774"}, - {file = "lru_dict-1.2.0-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:ea2ac3f7a7a2f32f194c84d82a034e66780057fd908b421becd2f173504d040e"}, - {file = "lru_dict-1.2.0-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cd46c94966f631a81ffe33eee928db58e9fbee15baba5923d284aeadc0e0fa76"}, - {file = "lru_dict-1.2.0-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:086ce993414f0b28530ded7e004c77dc57c5748fa6da488602aa6e7f79e6210e"}, - {file = "lru_dict-1.2.0-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:df25a426446197488a6702954dcc1de511deee20c9db730499a2aa83fddf0df1"}, - {file = "lru_dict-1.2.0-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c53b12b89bd7a6c79f0536ff0d0a84fdf4ab5f6252d94b24b9b753bd9ada2ddf"}, - {file = "lru_dict-1.2.0-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:f9484016e6765bd295708cccc9def49f708ce07ac003808f69efa386633affb9"}, - {file = "lru_dict-1.2.0-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:d0f7ec902a0097ac39f1922c89be9eaccf00eb87751e28915320b4f72912d057"}, - {file = "lru_dict-1.2.0-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:981ef3edc82da38d39eb60eae225b88a538d47b90cce2e5808846fd2cf64384b"}, - {file = "lru_dict-1.2.0-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:e25b2e90a032dc248213af7f3f3e975e1934b204f3b16aeeaeaff27a3b65e128"}, - {file = "lru_dict-1.2.0-cp36-cp36m-win32.whl", hash = "sha256:59f3df78e94e07959f17764e7fa7ca6b54e9296953d2626a112eab08e1beb2db"}, - {file = "lru_dict-1.2.0-cp36-cp36m-win_amd64.whl", hash = "sha256:de24b47159e07833aeab517d9cb1c3c5c2d6445cc378b1c2f1d8d15fb4841d63"}, - {file = "lru_dict-1.2.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:d0dd4cd58220351233002f910e35cc01d30337696b55c6578f71318b137770f9"}, - {file = "lru_dict-1.2.0-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a87bdc291718bbdf9ea4be12ae7af26cbf0706fa62c2ac332748e3116c5510a7"}, - {file = "lru_dict-1.2.0-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:05fb8744f91f58479cbe07ed80ada6696ec7df21ea1740891d4107a8dd99a970"}, - {file = "lru_dict-1.2.0-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:00f6e8a3fc91481b40395316a14c94daa0f0a5de62e7e01a7d589f8d29224052"}, - {file = "lru_dict-1.2.0-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5b172fce0a0ffc0fa6d282c14256d5a68b5db1e64719c2915e69084c4b6bf555"}, - {file = "lru_dict-1.2.0-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:e707d93bae8f0a14e6df1ae8b0f076532b35f00e691995f33132d806a88e5c18"}, - {file = "lru_dict-1.2.0-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:b9ec7a4a0d6b8297102aa56758434fb1fca276a82ed7362e37817407185c3abb"}, - {file = "lru_dict-1.2.0-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:f404dcc8172da1f28da9b1f0087009578e608a4899b96d244925c4f463201f2a"}, - {file = "lru_dict-1.2.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:1171ad3bff32aa8086778be4a3bdff595cc2692e78685bcce9cb06b96b22dcc2"}, - {file = "lru_dict-1.2.0-cp37-cp37m-win32.whl", hash = "sha256:0c316dfa3897fabaa1fe08aae89352a3b109e5f88b25529bc01e98ac029bf878"}, - {file = "lru_dict-1.2.0-cp37-cp37m-win_amd64.whl", hash = "sha256:5919dd04446bc1ee8d6ecda2187deeebfff5903538ae71083e069bc678599446"}, - {file = "lru_dict-1.2.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:fbf36c5a220a85187cacc1fcb7dd87070e04b5fc28df7a43f6842f7c8224a388"}, - {file = "lru_dict-1.2.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:712e71b64da181e1c0a2eaa76cd860265980cd15cb0e0498602b8aa35d5db9f8"}, - {file = "lru_dict-1.2.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f54908bf91280a9b8fa6a8c8f3c2f65850ce6acae2852bbe292391628ebca42f"}, - {file = "lru_dict-1.2.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3838e33710935da2ade1dd404a8b936d571e29268a70ff4ca5ba758abb3850df"}, - {file = "lru_dict-1.2.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f5d5a5f976b39af73324f2b793862859902ccb9542621856d51a5993064f25e4"}, - {file = "lru_dict-1.2.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:8bda3a9afd241ee0181661decaae25e5336ce513ac268ab57da737eacaa7871f"}, - {file = "lru_dict-1.2.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:bd2cd1b998ea4c8c1dad829fc4fa88aeed4dee555b5e03c132fc618e6123f168"}, - {file = "lru_dict-1.2.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:b55753ee23028ba8644fd22e50de7b8f85fa60b562a0fafaad788701d6131ff8"}, - {file = "lru_dict-1.2.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:7e51fa6a203fa91d415f3b2900e5748ec8e06ad75777c98cc3aeb3983ca416d7"}, - {file = "lru_dict-1.2.0-cp38-cp38-win32.whl", hash = "sha256:cd6806313606559e6c7adfa0dbeb30fc5ab625f00958c3d93f84831e7a32b71e"}, - {file = "lru_dict-1.2.0-cp38-cp38-win_amd64.whl", hash = "sha256:5d90a70c53b0566084447c3ef9374cc5a9be886e867b36f89495f211baabd322"}, - {file = "lru_dict-1.2.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a3ea7571b6bf2090a85ff037e6593bbafe1a8598d5c3b4560eb56187bcccb4dc"}, - {file = "lru_dict-1.2.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:287c2115a59c1c9ed0d5d8ae7671e594b1206c36ea9df2fca6b17b86c468ff99"}, - {file = "lru_dict-1.2.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b5ccfd2291c93746a286c87c3f895165b697399969d24c54804ec3ec559d4e43"}, - {file = "lru_dict-1.2.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b710f0f4d7ec4f9fa89dfde7002f80bcd77de8024017e70706b0911ea086e2ef"}, - {file = "lru_dict-1.2.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5345bf50e127bd2767e9fd42393635bbc0146eac01f6baf6ef12c332d1a6a329"}, - {file = "lru_dict-1.2.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:291d13f85224551913a78fe695cde04cbca9dcb1d84c540167c443eb913603c9"}, - {file = "lru_dict-1.2.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:d5bb41bc74b321789803d45b124fc2145c1b3353b4ad43296d9d1d242574969b"}, - {file = "lru_dict-1.2.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:0facf49b053bf4926d92d8d5a46fe07eecd2af0441add0182c7432d53d6da667"}, - {file = "lru_dict-1.2.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:987b73a06bcf5a95d7dc296241c6b1f9bc6cda42586948c9dabf386dc2bef1cd"}, - {file = "lru_dict-1.2.0-cp39-cp39-win32.whl", hash = "sha256:231d7608f029dda42f9610e5723614a35b1fff035a8060cf7d2be19f1711ace8"}, - {file = "lru_dict-1.2.0-cp39-cp39-win_amd64.whl", hash = "sha256:71da89e134747e20ed5b8ad5b4ee93fc5b31022c2b71e8176e73c5a44699061b"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:21b3090928c7b6cec509e755cc3ab742154b33660a9b433923bd12c37c448e3e"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aaecd7085212d0aa4cd855f38b9d61803d6509731138bf798a9594745953245b"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ead83ac59a29d6439ddff46e205ce32f8b7f71a6bd8062347f77e232825e3d0a"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:312b6b2a30188586fe71358f0f33e4bac882d33f5e5019b26f084363f42f986f"}, - {file = "lru_dict-1.2.0-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:b30122e098c80e36d0117810d46459a46313421ce3298709170b687dc1240b02"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:f010cfad3ab10676e44dc72a813c968cd586f37b466d27cde73d1f7f1ba158c2"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:20f5f411f7751ad9a2c02e80287cedf69ae032edd321fe696e310d32dd30a1f8"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:afdadd73304c9befaed02eb42f5f09fdc16288de0a08b32b8080f0f0f6350aa6"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d7ab0c10c4fa99dc9e26b04e6b62ac32d2bcaea3aad9b81ec8ce9a7aa32b7b1b"}, - {file = "lru_dict-1.2.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:edad398d5d402c43d2adada390dd83c74e46e020945ff4df801166047013617e"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:91d577a11b84387013815b1ad0bb6e604558d646003b44c92b3ddf886ad0f879"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bb12f19cdf9c4f2d9aa259562e19b188ff34afab28dd9509ff32a3f1c2c29326"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9e4c85aa8844bdca3c8abac3b7f78da1531c74e9f8b3e4890c6e6d86a5a3f6c0"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5c6acbd097b15bead4de8e83e8a1030bb4d8257723669097eac643a301a952f0"}, - {file = "lru_dict-1.2.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:b6613daa851745dd22b860651de930275be9d3e9373283a2164992abacb75b62"}, -] - -[package.extras] -test = ["pytest"] - -[[package]] -name = "mccabe" -version = "0.7.0" -description = "McCabe checker, plugin for flake8" -category = "dev" -optional = false -python-versions = ">=3.6" -files = [ - {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, - {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, -] - -[[package]] -name = "multidict" -version = "6.0.4" -description = "multidict implementation" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "multidict-6.0.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b1a97283e0c85772d613878028fec909f003993e1007eafa715b24b377cb9b8"}, - {file = "multidict-6.0.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:eeb6dcc05e911516ae3d1f207d4b0520d07f54484c49dfc294d6e7d63b734171"}, - {file = "multidict-6.0.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d6d635d5209b82a3492508cf5b365f3446afb65ae7ebd755e70e18f287b0adf7"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c048099e4c9e9d615545e2001d3d8a4380bd403e1a0578734e0d31703d1b0c0b"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ea20853c6dbbb53ed34cb4d080382169b6f4554d394015f1bef35e881bf83547"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:16d232d4e5396c2efbbf4f6d4df89bfa905eb0d4dc5b3549d872ab898451f569"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:36c63aaa167f6c6b04ef2c85704e93af16c11d20de1d133e39de6a0e84582a93"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:64bdf1086b6043bf519869678f5f2757f473dee970d7abf6da91ec00acb9cb98"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:43644e38f42e3af682690876cff722d301ac585c5b9e1eacc013b7a3f7b696a0"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:7582a1d1030e15422262de9f58711774e02fa80df0d1578995c76214f6954988"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:ddff9c4e225a63a5afab9dd15590432c22e8057e1a9a13d28ed128ecf047bbdc"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:ee2a1ece51b9b9e7752e742cfb661d2a29e7bcdba2d27e66e28a99f1890e4fa0"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a2e4369eb3d47d2034032a26c7a80fcb21a2cb22e1173d761a162f11e562caa5"}, - {file = "multidict-6.0.4-cp310-cp310-win32.whl", hash = "sha256:574b7eae1ab267e5f8285f0fe881f17efe4b98c39a40858247720935b893bba8"}, - {file = "multidict-6.0.4-cp310-cp310-win_amd64.whl", hash = "sha256:4dcbb0906e38440fa3e325df2359ac6cb043df8e58c965bb45f4e406ecb162cc"}, - {file = "multidict-6.0.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:0dfad7a5a1e39c53ed00d2dd0c2e36aed4650936dc18fd9a1826a5ae1cad6f03"}, - {file = "multidict-6.0.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:64da238a09d6039e3bd39bb3aee9c21a5e34f28bfa5aa22518581f910ff94af3"}, - {file = "multidict-6.0.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ff959bee35038c4624250473988b24f846cbeb2c6639de3602c073f10410ceba"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:01a3a55bd90018c9c080fbb0b9f4891db37d148a0a18722b42f94694f8b6d4c9"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c5cb09abb18c1ea940fb99360ea0396f34d46566f157122c92dfa069d3e0e982"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:666daae833559deb2d609afa4490b85830ab0dfca811a98b70a205621a6109fe"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:11bdf3f5e1518b24530b8241529d2050014c884cf18b6fc69c0c2b30ca248710"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7d18748f2d30f94f498e852c67d61261c643b349b9d2a581131725595c45ec6c"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:458f37be2d9e4c95e2d8866a851663cbc76e865b78395090786f6cd9b3bbf4f4"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:b1a2eeedcead3a41694130495593a559a668f382eee0727352b9a41e1c45759a"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:7d6ae9d593ef8641544d6263c7fa6408cc90370c8cb2bbb65f8d43e5b0351d9c"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:5979b5632c3e3534e42ca6ff856bb24b2e3071b37861c2c727ce220d80eee9ed"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:dcfe792765fab89c365123c81046ad4103fcabbc4f56d1c1997e6715e8015461"}, - {file = "multidict-6.0.4-cp311-cp311-win32.whl", hash = "sha256:3601a3cece3819534b11d4efc1eb76047488fddd0c85a3948099d5da4d504636"}, - {file = "multidict-6.0.4-cp311-cp311-win_amd64.whl", hash = "sha256:81a4f0b34bd92df3da93315c6a59034df95866014ac08535fc819f043bfd51f0"}, - {file = "multidict-6.0.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:67040058f37a2a51ed8ea8f6b0e6ee5bd78ca67f169ce6122f3e2ec80dfe9b78"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:853888594621e6604c978ce2a0444a1e6e70c8d253ab65ba11657659dcc9100f"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:39ff62e7d0f26c248b15e364517a72932a611a9b75f35b45be078d81bdb86603"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:af048912e045a2dc732847d33821a9d84ba553f5c5f028adbd364dd4765092ac"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b1e8b901e607795ec06c9e42530788c45ac21ef3aaa11dbd0c69de543bfb79a9"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62501642008a8b9871ddfccbf83e4222cf8ac0d5aeedf73da36153ef2ec222d2"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:99b76c052e9f1bc0721f7541e5e8c05db3941eb9ebe7b8553c625ef88d6eefde"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:509eac6cf09c794aa27bcacfd4d62c885cce62bef7b2c3e8b2e49d365b5003fe"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:21a12c4eb6ddc9952c415f24eef97e3e55ba3af61f67c7bc388dcdec1404a067"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:5cad9430ab3e2e4fa4a2ef4450f548768400a2ac635841bc2a56a2052cdbeb87"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:ab55edc2e84460694295f401215f4a58597f8f7c9466faec545093045476327d"}, - {file = "multidict-6.0.4-cp37-cp37m-win32.whl", hash = "sha256:5a4dcf02b908c3b8b17a45fb0f15b695bf117a67b76b7ad18b73cf8e92608775"}, - {file = "multidict-6.0.4-cp37-cp37m-win_amd64.whl", hash = "sha256:6ed5f161328b7df384d71b07317f4d8656434e34591f20552c7bcef27b0ab88e"}, - {file = "multidict-6.0.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5fc1b16f586f049820c5c5b17bb4ee7583092fa0d1c4e28b5239181ff9532e0c"}, - {file = "multidict-6.0.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1502e24330eb681bdaa3eb70d6358e818e8e8f908a22a1851dfd4e15bc2f8161"}, - {file = "multidict-6.0.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:b692f419760c0e65d060959df05f2a531945af31fda0c8a3b3195d4efd06de11"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:45e1ecb0379bfaab5eef059f50115b54571acfbe422a14f668fc8c27ba410e7e"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ddd3915998d93fbcd2566ddf9cf62cdb35c9e093075f862935573d265cf8f65d"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:59d43b61c59d82f2effb39a93c48b845efe23a3852d201ed2d24ba830d0b4cf2"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cc8e1d0c705233c5dd0c5e6460fbad7827d5d36f310a0fadfd45cc3029762258"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d6aa0418fcc838522256761b3415822626f866758ee0bc6632c9486b179d0b52"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:6748717bb10339c4760c1e63da040f5f29f5ed6e59d76daee30305894069a660"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:4d1a3d7ef5e96b1c9e92f973e43aa5e5b96c659c9bc3124acbbd81b0b9c8a951"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4372381634485bec7e46718edc71528024fcdc6f835baefe517b34a33c731d60"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:fc35cb4676846ef752816d5be2193a1e8367b4c1397b74a565a9d0389c433a1d"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:4b9d9e4e2b37daddb5c23ea33a3417901fa7c7b3dee2d855f63ee67a0b21e5b1"}, - {file = "multidict-6.0.4-cp38-cp38-win32.whl", hash = "sha256:e41b7e2b59679edfa309e8db64fdf22399eec4b0b24694e1b2104fb789207779"}, - {file = "multidict-6.0.4-cp38-cp38-win_amd64.whl", hash = "sha256:d6c254ba6e45d8e72739281ebc46ea5eb5f101234f3ce171f0e9f5cc86991480"}, - {file = "multidict-6.0.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:16ab77bbeb596e14212e7bab8429f24c1579234a3a462105cda4a66904998664"}, - {file = "multidict-6.0.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bc779e9e6f7fda81b3f9aa58e3a6091d49ad528b11ed19f6621408806204ad35"}, - {file = "multidict-6.0.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4ceef517eca3e03c1cceb22030a3e39cb399ac86bff4e426d4fc6ae49052cc60"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:281af09f488903fde97923c7744bb001a9b23b039a909460d0f14edc7bf59706"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:52f2dffc8acaba9a2f27174c41c9e57f60b907bb9f096b36b1a1f3be71c6284d"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b41156839806aecb3641f3208c0dafd3ac7775b9c4c422d82ee2a45c34ba81ca"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d5e3fc56f88cc98ef8139255cf8cd63eb2c586531e43310ff859d6bb3a6b51f1"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8316a77808c501004802f9beebde51c9f857054a0c871bd6da8280e718444449"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:f70b98cd94886b49d91170ef23ec5c0e8ebb6f242d734ed7ed677b24d50c82cf"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:bf6774e60d67a9efe02b3616fee22441d86fab4c6d335f9d2051d19d90a40063"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:e69924bfcdda39b722ef4d9aa762b2dd38e4632b3641b1d9a57ca9cd18f2f83a"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:6b181d8c23da913d4ff585afd1155a0e1194c0b50c54fcfe286f70cdaf2b7176"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:52509b5be062d9eafc8170e53026fbc54cf3b32759a23d07fd935fb04fc22d95"}, - {file = "multidict-6.0.4-cp39-cp39-win32.whl", hash = "sha256:27c523fbfbdfd19c6867af7346332b62b586eed663887392cff78d614f9ec313"}, - {file = "multidict-6.0.4-cp39-cp39-win_amd64.whl", hash = "sha256:33029f5734336aa0d4c0384525da0387ef89148dc7191aae00ca5fb23d7aafc2"}, - {file = "multidict-6.0.4.tar.gz", hash = "sha256:3666906492efb76453c0e7b97f2cf459b0682e7402c0489a95484965dbc1da49"}, -] - -[[package]] -name = "mypy" -version = "1.3.0" -description = "Optional static typing for Python" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "mypy-1.3.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:c1eb485cea53f4f5284e5baf92902cd0088b24984f4209e25981cc359d64448d"}, - {file = "mypy-1.3.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4c99c3ecf223cf2952638da9cd82793d8f3c0c5fa8b6ae2b2d9ed1e1ff51ba85"}, - {file = "mypy-1.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:550a8b3a19bb6589679a7c3c31f64312e7ff482a816c96e0cecec9ad3a7564dd"}, - {file = "mypy-1.3.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:cbc07246253b9e3d7d74c9ff948cd0fd7a71afcc2b77c7f0a59c26e9395cb152"}, - {file = "mypy-1.3.0-cp310-cp310-win_amd64.whl", hash = "sha256:a22435632710a4fcf8acf86cbd0d69f68ac389a3892cb23fbad176d1cddaf228"}, - {file = "mypy-1.3.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6e33bb8b2613614a33dff70565f4c803f889ebd2f859466e42b46e1df76018dd"}, - {file = "mypy-1.3.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7d23370d2a6b7a71dc65d1266f9a34e4cde9e8e21511322415db4b26f46f6b8c"}, - {file = "mypy-1.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:658fe7b674769a0770d4b26cb4d6f005e88a442fe82446f020be8e5f5efb2fae"}, - {file = "mypy-1.3.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:6e42d29e324cdda61daaec2336c42512e59c7c375340bd202efa1fe0f7b8f8ca"}, - {file = "mypy-1.3.0-cp311-cp311-win_amd64.whl", hash = "sha256:d0b6c62206e04061e27009481cb0ec966f7d6172b5b936f3ead3d74f29fe3dcf"}, - {file = "mypy-1.3.0-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:76ec771e2342f1b558c36d49900dfe81d140361dd0d2df6cd71b3db1be155409"}, - {file = "mypy-1.3.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ebc95f8386314272bbc817026f8ce8f4f0d2ef7ae44f947c4664efac9adec929"}, - {file = "mypy-1.3.0-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:faff86aa10c1aa4a10e1a301de160f3d8fc8703b88c7e98de46b531ff1276a9a"}, - {file = "mypy-1.3.0-cp37-cp37m-win_amd64.whl", hash = "sha256:8c5979d0deb27e0f4479bee18ea0f83732a893e81b78e62e2dda3e7e518c92ee"}, - {file = "mypy-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:c5d2cc54175bab47011b09688b418db71403aefad07cbcd62d44010543fc143f"}, - {file = "mypy-1.3.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:87df44954c31d86df96c8bd6e80dfcd773473e877ac6176a8e29898bfb3501cb"}, - {file = "mypy-1.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:473117e310febe632ddf10e745a355714e771ffe534f06db40702775056614c4"}, - {file = "mypy-1.3.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:74bc9b6e0e79808bf8678d7678b2ae3736ea72d56eede3820bd3849823e7f305"}, - {file = "mypy-1.3.0-cp38-cp38-win_amd64.whl", hash = "sha256:44797d031a41516fcf5cbfa652265bb994e53e51994c1bd649ffcd0c3a7eccbf"}, - {file = "mypy-1.3.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:ddae0f39ca146972ff6bb4399f3b2943884a774b8771ea0a8f50e971f5ea5ba8"}, - {file = "mypy-1.3.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:1c4c42c60a8103ead4c1c060ac3cdd3ff01e18fddce6f1016e08939647a0e703"}, - {file = "mypy-1.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e86c2c6852f62f8f2b24cb7a613ebe8e0c7dc1402c61d36a609174f63e0ff017"}, - {file = "mypy-1.3.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:f9dca1e257d4cc129517779226753dbefb4f2266c4eaad610fc15c6a7e14283e"}, - {file = "mypy-1.3.0-cp39-cp39-win_amd64.whl", hash = "sha256:95d8d31a7713510685b05fbb18d6ac287a56c8f6554d88c19e73f724a445448a"}, - {file = "mypy-1.3.0-py3-none-any.whl", hash = "sha256:a8763e72d5d9574d45ce5881962bc8e9046bf7b375b0abf031f3e6811732a897"}, - {file = "mypy-1.3.0.tar.gz", hash = "sha256:e1f4d16e296f5135624b34e8fb741eb0eadedca90862405b1f1fde2040b9bd11"}, -] - -[package.dependencies] -mypy-extensions = ">=1.0.0" -tomli = {version = ">=1.1.0", markers = "python_version < \"3.11\""} -typing-extensions = ">=3.10" - -[package.extras] -dmypy = ["psutil (>=4.0)"] -install-types = ["pip"] -python2 = ["typed-ast (>=1.4.0,<2)"] -reports = ["lxml"] - -[[package]] -name = "mypy-extensions" -version = "1.0.0" -description = "Type system extensions for programs checked with the mypy type checker." -category = "dev" -optional = false -python-versions = ">=3.5" -files = [ - {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, - {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, -] - -[[package]] -name = "packaging" -version = "23.1" -description = "Core utilities for Python packages" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "packaging-23.1-py3-none-any.whl", hash = "sha256:994793af429502c4ea2ebf6bf664629d07c1a9fe974af92966e4b8d2df7edc61"}, - {file = "packaging-23.1.tar.gz", hash = "sha256:a392980d2b6cffa644431898be54b0045151319d1e7ec34f0cfed48767dd334f"}, -] - -[[package]] -name = "parsimonious" -version = "0.9.0" -description = "(Soon to be) the fastest pure-Python PEG parser I could muster" -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "parsimonious-0.9.0.tar.gz", hash = "sha256:b2ad1ae63a2f65bd78f5e0a8ac510a98f3607a43f1db2a8d46636a5d9e4a30c1"}, -] - -[package.dependencies] -regex = ">=2022.3.15" - -[[package]] -name = "pkgutil-resolve-name" -version = "1.3.10" -description = "Resolve a name to an object." -category = "main" -optional = false -python-versions = ">=3.6" -files = [ - {file = "pkgutil_resolve_name-1.3.10-py3-none-any.whl", hash = "sha256:ca27cc078d25c5ad71a9de0a7a330146c4e014c2462d9af19c6b828280649c5e"}, - {file = "pkgutil_resolve_name-1.3.10.tar.gz", hash = "sha256:357d6c9e6a755653cfd78893817c0853af365dd51ec97f3d358a819373bbd174"}, -] - -[[package]] -name = "pluggy" -version = "1.0.0" -description = "plugin and hook calling mechanisms for python" -category = "dev" -optional = false -python-versions = ">=3.6" -files = [ - {file = "pluggy-1.0.0-py2.py3-none-any.whl", hash = "sha256:74134bbf457f031a36d68416e1509f34bd5ccc019f0bcc952c7b909d06b37bd3"}, - {file = "pluggy-1.0.0.tar.gz", hash = "sha256:4224373bacce55f955a878bf9cfa763c1e360858e330072059e10bad68531159"}, -] - -[package.extras] -dev = ["pre-commit", "tox"] -testing = ["pytest", "pytest-benchmark"] - -[[package]] -name = "protobuf" -version = "4.23.2" -description = "" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "protobuf-4.23.2-cp310-abi3-win32.whl", hash = "sha256:384dd44cb4c43f2ccddd3645389a23ae61aeb8cfa15ca3a0f60e7c3ea09b28b3"}, - {file = "protobuf-4.23.2-cp310-abi3-win_amd64.whl", hash = "sha256:09310bce43353b46d73ba7e3bca78273b9bc50349509b9698e64d288c6372c2a"}, - {file = "protobuf-4.23.2-cp37-abi3-macosx_10_9_universal2.whl", hash = "sha256:b2cfab63a230b39ae603834718db74ac11e52bccaaf19bf20f5cce1a84cf76df"}, - {file = "protobuf-4.23.2-cp37-abi3-manylinux2014_aarch64.whl", hash = "sha256:c52cfcbfba8eb791255edd675c1fe6056f723bf832fa67f0442218f8817c076e"}, - {file = "protobuf-4.23.2-cp37-abi3-manylinux2014_x86_64.whl", hash = "sha256:86df87016d290143c7ce3be3ad52d055714ebaebb57cc659c387e76cfacd81aa"}, - {file = "protobuf-4.23.2-cp37-cp37m-win32.whl", hash = "sha256:281342ea5eb631c86697e1e048cb7e73b8a4e85f3299a128c116f05f5c668f8f"}, - {file = "protobuf-4.23.2-cp37-cp37m-win_amd64.whl", hash = "sha256:ce744938406de1e64b91410f473736e815f28c3b71201302612a68bf01517fea"}, - {file = "protobuf-4.23.2-cp38-cp38-win32.whl", hash = "sha256:6c081863c379bb1741be8f8193e893511312b1d7329b4a75445d1ea9955be69e"}, - {file = "protobuf-4.23.2-cp38-cp38-win_amd64.whl", hash = "sha256:25e3370eda26469b58b602e29dff069cfaae8eaa0ef4550039cc5ef8dc004511"}, - {file = "protobuf-4.23.2-cp39-cp39-win32.whl", hash = "sha256:efabbbbac1ab519a514579ba9ec52f006c28ae19d97915951f69fa70da2c9e91"}, - {file = "protobuf-4.23.2-cp39-cp39-win_amd64.whl", hash = "sha256:54a533b971288af3b9926e53850c7eb186886c0c84e61daa8444385a4720297f"}, - {file = "protobuf-4.23.2-py3-none-any.whl", hash = "sha256:8da6070310d634c99c0db7df48f10da495cc283fd9e9234877f0cd182d43ab7f"}, - {file = "protobuf-4.23.2.tar.gz", hash = "sha256:20874e7ca4436f683b64ebdbee2129a5a2c301579a67d1a7dda2cdf62fb7f5f7"}, -] - -[[package]] -name = "pycodestyle" -version = "2.10.0" -description = "Python style guide checker" -category = "dev" -optional = false -python-versions = ">=3.6" -files = [ - {file = "pycodestyle-2.10.0-py2.py3-none-any.whl", hash = "sha256:8a4eaf0d0495c7395bdab3589ac2db602797d76207242c17d470186815706610"}, - {file = "pycodestyle-2.10.0.tar.gz", hash = "sha256:347187bdb476329d98f695c213d7295a846d1152ff4fe9bacb8a9590b8ee7053"}, -] - -[[package]] -name = "pycryptodome" -version = "3.18.0" -description = "Cryptographic library for Python" -category = "main" -optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*" -files = [ - {file = "pycryptodome-3.18.0-cp27-cp27m-macosx_10_9_x86_64.whl", hash = "sha256:d1497a8cd4728db0e0da3c304856cb37c0c4e3d0b36fcbabcc1600f18504fc54"}, - {file = "pycryptodome-3.18.0-cp27-cp27m-manylinux2010_i686.whl", hash = "sha256:928078c530da78ff08e10eb6cada6e0dff386bf3d9fa9871b4bbc9fbc1efe024"}, - {file = "pycryptodome-3.18.0-cp27-cp27m-manylinux2010_x86_64.whl", hash = "sha256:157c9b5ba5e21b375f052ca78152dd309a09ed04703fd3721dce3ff8ecced148"}, - {file = "pycryptodome-3.18.0-cp27-cp27m-manylinux2014_aarch64.whl", hash = "sha256:d20082bdac9218649f6abe0b885927be25a917e29ae0502eaf2b53f1233ce0c2"}, - {file = "pycryptodome-3.18.0-cp27-cp27m-musllinux_1_1_aarch64.whl", hash = "sha256:e8ad74044e5f5d2456c11ed4cfd3e34b8d4898c0cb201c4038fe41458a82ea27"}, - {file = "pycryptodome-3.18.0-cp27-cp27m-win32.whl", hash = "sha256:62a1e8847fabb5213ccde38915563140a5b338f0d0a0d363f996b51e4a6165cf"}, - {file = "pycryptodome-3.18.0-cp27-cp27m-win_amd64.whl", hash = "sha256:16bfd98dbe472c263ed2821284118d899c76968db1a6665ade0c46805e6b29a4"}, - {file = "pycryptodome-3.18.0-cp27-cp27mu-manylinux2010_i686.whl", hash = "sha256:7a3d22c8ee63de22336679e021c7f2386f7fc465477d59675caa0e5706387944"}, - {file = "pycryptodome-3.18.0-cp27-cp27mu-manylinux2010_x86_64.whl", hash = "sha256:78d863476e6bad2a592645072cc489bb90320972115d8995bcfbee2f8b209918"}, - {file = "pycryptodome-3.18.0-cp27-cp27mu-manylinux2014_aarch64.whl", hash = "sha256:b6a610f8bfe67eab980d6236fdc73bfcdae23c9ed5548192bb2d530e8a92780e"}, - {file = "pycryptodome-3.18.0-cp27-cp27mu-musllinux_1_1_aarch64.whl", hash = "sha256:422c89fd8df8a3bee09fb8d52aaa1e996120eafa565437392b781abec2a56e14"}, - {file = "pycryptodome-3.18.0-cp35-abi3-macosx_10_9_universal2.whl", hash = "sha256:9ad6f09f670c466aac94a40798e0e8d1ef2aa04589c29faa5b9b97566611d1d1"}, - {file = "pycryptodome-3.18.0-cp35-abi3-macosx_10_9_x86_64.whl", hash = "sha256:53aee6be8b9b6da25ccd9028caf17dcdce3604f2c7862f5167777b707fbfb6cb"}, - {file = "pycryptodome-3.18.0-cp35-abi3-manylinux2014_aarch64.whl", hash = "sha256:10da29526a2a927c7d64b8f34592f461d92ae55fc97981aab5bbcde8cb465bb6"}, - {file = "pycryptodome-3.18.0-cp35-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f21efb8438971aa16924790e1c3dba3a33164eb4000106a55baaed522c261acf"}, - {file = "pycryptodome-3.18.0-cp35-abi3-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4944defabe2ace4803f99543445c27dd1edbe86d7d4edb87b256476a91e9ffa4"}, - {file = "pycryptodome-3.18.0-cp35-abi3-musllinux_1_1_aarch64.whl", hash = "sha256:51eae079ddb9c5f10376b4131be9589a6554f6fd84f7f655180937f611cd99a2"}, - {file = "pycryptodome-3.18.0-cp35-abi3-musllinux_1_1_i686.whl", hash = "sha256:83c75952dcf4a4cebaa850fa257d7a860644c70a7cd54262c237c9f2be26f76e"}, - {file = "pycryptodome-3.18.0-cp35-abi3-musllinux_1_1_x86_64.whl", hash = "sha256:957b221d062d5752716923d14e0926f47670e95fead9d240fa4d4862214b9b2f"}, - {file = "pycryptodome-3.18.0-cp35-abi3-win32.whl", hash = "sha256:795bd1e4258a2c689c0b1f13ce9684fa0dd4c0e08680dcf597cf9516ed6bc0f3"}, - {file = "pycryptodome-3.18.0-cp35-abi3-win_amd64.whl", hash = "sha256:b1d9701d10303eec8d0bd33fa54d44e67b8be74ab449052a8372f12a66f93fb9"}, - {file = "pycryptodome-3.18.0-pp27-pypy_73-manylinux2010_x86_64.whl", hash = "sha256:cb1be4d5af7f355e7d41d36d8eec156ef1382a88638e8032215c215b82a4b8ec"}, - {file = "pycryptodome-3.18.0-pp27-pypy_73-win32.whl", hash = "sha256:fc0a73f4db1e31d4a6d71b672a48f3af458f548059aa05e83022d5f61aac9c08"}, - {file = "pycryptodome-3.18.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:f022a4fd2a5263a5c483a2bb165f9cb27f2be06f2f477113783efe3fe2ad887b"}, - {file = "pycryptodome-3.18.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:363dd6f21f848301c2dcdeb3c8ae5f0dee2286a5e952a0f04954b82076f23825"}, - {file = "pycryptodome-3.18.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:12600268763e6fec3cefe4c2dcdf79bde08d0b6dc1813887e789e495cb9f3403"}, - {file = "pycryptodome-3.18.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:4604816adebd4faf8810782f137f8426bf45fee97d8427fa8e1e49ea78a52e2c"}, - {file = "pycryptodome-3.18.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:01489bbdf709d993f3058e2996f8f40fee3f0ea4d995002e5968965fa2fe89fb"}, - {file = "pycryptodome-3.18.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3811e31e1ac3069988f7a1c9ee7331b942e605dfc0f27330a9ea5997e965efb2"}, - {file = "pycryptodome-3.18.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6f4b967bb11baea9128ec88c3d02f55a3e338361f5e4934f5240afcb667fdaec"}, - {file = "pycryptodome-3.18.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:9c8eda4f260072f7dbe42f473906c659dcbadd5ae6159dfb49af4da1293ae380"}, - {file = "pycryptodome-3.18.0.tar.gz", hash = "sha256:c9adee653fc882d98956e33ca2c1fb582e23a8af7ac82fee75bd6113c55a0413"}, -] - -[[package]] -name = "pydantic" -version = "1.10.8" -description = "Data validation and settings management using python type hints" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "pydantic-1.10.8-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1243d28e9b05003a89d72e7915fdb26ffd1d39bdd39b00b7dbe4afae4b557f9d"}, - {file = "pydantic-1.10.8-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c0ab53b609c11dfc0c060d94335993cc2b95b2150e25583bec37a49b2d6c6c3f"}, - {file = "pydantic-1.10.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f9613fadad06b4f3bc5db2653ce2f22e0de84a7c6c293909b48f6ed37b83c61f"}, - {file = "pydantic-1.10.8-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:df7800cb1984d8f6e249351139667a8c50a379009271ee6236138a22a0c0f319"}, - {file = "pydantic-1.10.8-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:0c6fafa0965b539d7aab0a673a046466d23b86e4b0e8019d25fd53f4df62c277"}, - {file = "pydantic-1.10.8-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:e82d4566fcd527eae8b244fa952d99f2ca3172b7e97add0b43e2d97ee77f81ab"}, - {file = "pydantic-1.10.8-cp310-cp310-win_amd64.whl", hash = "sha256:ab523c31e22943713d80d8d342d23b6f6ac4b792a1e54064a8d0cf78fd64e800"}, - {file = "pydantic-1.10.8-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:666bdf6066bf6dbc107b30d034615d2627e2121506c555f73f90b54a463d1f33"}, - {file = "pydantic-1.10.8-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:35db5301b82e8661fa9c505c800d0990bc14e9f36f98932bb1d248c0ac5cada5"}, - {file = "pydantic-1.10.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f90c1e29f447557e9e26afb1c4dbf8768a10cc676e3781b6a577841ade126b85"}, - {file = "pydantic-1.10.8-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:93e766b4a8226e0708ef243e843105bf124e21331694367f95f4e3b4a92bbb3f"}, - {file = "pydantic-1.10.8-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:88f195f582851e8db960b4a94c3e3ad25692c1c1539e2552f3df7a9e972ef60e"}, - {file = "pydantic-1.10.8-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:34d327c81e68a1ecb52fe9c8d50c8a9b3e90d3c8ad991bfc8f953fb477d42fb4"}, - {file = "pydantic-1.10.8-cp311-cp311-win_amd64.whl", hash = "sha256:d532bf00f381bd6bc62cabc7d1372096b75a33bc197a312b03f5838b4fb84edd"}, - {file = "pydantic-1.10.8-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:7d5b8641c24886d764a74ec541d2fc2c7fb19f6da2a4001e6d580ba4a38f7878"}, - {file = "pydantic-1.10.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7b1f6cb446470b7ddf86c2e57cd119a24959af2b01e552f60705910663af09a4"}, - {file = "pydantic-1.10.8-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c33b60054b2136aef8cf190cd4c52a3daa20b2263917c49adad20eaf381e823b"}, - {file = "pydantic-1.10.8-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:1952526ba40b220b912cdc43c1c32bcf4a58e3f192fa313ee665916b26befb68"}, - {file = "pydantic-1.10.8-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:bb14388ec45a7a0dc429e87def6396f9e73c8c77818c927b6a60706603d5f2ea"}, - {file = "pydantic-1.10.8-cp37-cp37m-win_amd64.whl", hash = "sha256:16f8c3e33af1e9bb16c7a91fc7d5fa9fe27298e9f299cff6cb744d89d573d62c"}, - {file = "pydantic-1.10.8-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1ced8375969673929809d7f36ad322934c35de4af3b5e5b09ec967c21f9f7887"}, - {file = "pydantic-1.10.8-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:93e6bcfccbd831894a6a434b0aeb1947f9e70b7468f274154d03d71fabb1d7c6"}, - {file = "pydantic-1.10.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:191ba419b605f897ede9892f6c56fb182f40a15d309ef0142212200a10af4c18"}, - {file = "pydantic-1.10.8-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:052d8654cb65174d6f9490cc9b9a200083a82cf5c3c5d3985db765757eb3b375"}, - {file = "pydantic-1.10.8-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:ceb6a23bf1ba4b837d0cfe378329ad3f351b5897c8d4914ce95b85fba96da5a1"}, - {file = "pydantic-1.10.8-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:6f2e754d5566f050954727c77f094e01793bcb5725b663bf628fa6743a5a9108"}, - {file = "pydantic-1.10.8-cp38-cp38-win_amd64.whl", hash = "sha256:6a82d6cda82258efca32b40040228ecf43a548671cb174a1e81477195ed3ed56"}, - {file = "pydantic-1.10.8-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3e59417ba8a17265e632af99cc5f35ec309de5980c440c255ab1ca3ae96a3e0e"}, - {file = "pydantic-1.10.8-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:84d80219c3f8d4cad44575e18404099c76851bc924ce5ab1c4c8bb5e2a2227d0"}, - {file = "pydantic-1.10.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:2e4148e635994d57d834be1182a44bdb07dd867fa3c2d1b37002000646cc5459"}, - {file = "pydantic-1.10.8-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:12f7b0bf8553e310e530e9f3a2f5734c68699f42218bf3568ef49cd9b0e44df4"}, - {file = "pydantic-1.10.8-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:42aa0c4b5c3025483240a25b09f3c09a189481ddda2ea3a831a9d25f444e03c1"}, - {file = "pydantic-1.10.8-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:17aef11cc1b997f9d574b91909fed40761e13fac438d72b81f902226a69dac01"}, - {file = "pydantic-1.10.8-cp39-cp39-win_amd64.whl", hash = "sha256:66a703d1983c675a6e0fed8953b0971c44dba48a929a2000a493c3772eb61a5a"}, - {file = "pydantic-1.10.8-py3-none-any.whl", hash = "sha256:7456eb22ed9aaa24ff3e7b4757da20d9e5ce2a81018c1b3ebd81a0b88a18f3b2"}, - {file = "pydantic-1.10.8.tar.gz", hash = "sha256:1410275520dfa70effadf4c21811d755e7ef9bb1f1d077a21958153a92c8d9ca"}, -] - -[package.dependencies] -typing-extensions = ">=4.2.0" - -[package.extras] -dotenv = ["python-dotenv (>=0.10.4)"] -email = ["email-validator (>=1.0.3)"] - -[[package]] -name = "pyflakes" -version = "3.0.1" -description = "passive checker of Python programs" -category = "dev" -optional = false -python-versions = ">=3.6" -files = [ - {file = "pyflakes-3.0.1-py2.py3-none-any.whl", hash = "sha256:ec55bf7fe21fff7f1ad2f7da62363d749e2a470500eab1b555334b67aa1ef8cf"}, - {file = "pyflakes-3.0.1.tar.gz", hash = "sha256:ec8b276a6b60bd80defed25add7e439881c19e64850afd9b346283d4165fd0fd"}, -] - -[[package]] -name = "pyhumps" -version = "3.8.0" -description = "🐫 Convert strings (and dictionary keys) between snake case, camel case and pascal case in Python. Inspired by Humps for Node" -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "pyhumps-3.8.0-py3-none-any.whl", hash = "sha256:060e1954d9069f428232a1adda165db0b9d8dfdce1d265d36df7fbff540acfd6"}, - {file = "pyhumps-3.8.0.tar.gz", hash = "sha256:498026258f7ee1a8e447c2e28526c0bea9407f9a59c03260aee4bd6c04d681a3"}, -] - -[[package]] -name = "pyrsistent" -version = "0.19.3" -description = "Persistent/Functional/Immutable data structures" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "pyrsistent-0.19.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:20460ac0ea439a3e79caa1dbd560344b64ed75e85d8703943e0b66c2a6150e4a"}, - {file = "pyrsistent-0.19.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4c18264cb84b5e68e7085a43723f9e4c1fd1d935ab240ce02c0324a8e01ccb64"}, - {file = "pyrsistent-0.19.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4b774f9288dda8d425adb6544e5903f1fb6c273ab3128a355c6b972b7df39dcf"}, - {file = "pyrsistent-0.19.3-cp310-cp310-win32.whl", hash = "sha256:5a474fb80f5e0d6c9394d8db0fc19e90fa540b82ee52dba7d246a7791712f74a"}, - {file = "pyrsistent-0.19.3-cp310-cp310-win_amd64.whl", hash = "sha256:49c32f216c17148695ca0e02a5c521e28a4ee6c5089f97e34fe24163113722da"}, - {file = "pyrsistent-0.19.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:f0774bf48631f3a20471dd7c5989657b639fd2d285b861237ea9e82c36a415a9"}, - {file = "pyrsistent-0.19.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3ab2204234c0ecd8b9368dbd6a53e83c3d4f3cab10ecaf6d0e772f456c442393"}, - {file = "pyrsistent-0.19.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e42296a09e83028b3476f7073fcb69ffebac0e66dbbfd1bd847d61f74db30f19"}, - {file = "pyrsistent-0.19.3-cp311-cp311-win32.whl", hash = "sha256:64220c429e42a7150f4bfd280f6f4bb2850f95956bde93c6fda1b70507af6ef3"}, - {file = "pyrsistent-0.19.3-cp311-cp311-win_amd64.whl", hash = "sha256:016ad1afadf318eb7911baa24b049909f7f3bb2c5b1ed7b6a8f21db21ea3faa8"}, - {file = "pyrsistent-0.19.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:c4db1bd596fefd66b296a3d5d943c94f4fac5bcd13e99bffe2ba6a759d959a28"}, - {file = "pyrsistent-0.19.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:aeda827381f5e5d65cced3024126529ddc4289d944f75e090572c77ceb19adbf"}, - {file = "pyrsistent-0.19.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:42ac0b2f44607eb92ae88609eda931a4f0dfa03038c44c772e07f43e738bcac9"}, - {file = "pyrsistent-0.19.3-cp37-cp37m-win32.whl", hash = "sha256:e8f2b814a3dc6225964fa03d8582c6e0b6650d68a232df41e3cc1b66a5d2f8d1"}, - {file = "pyrsistent-0.19.3-cp37-cp37m-win_amd64.whl", hash = "sha256:c9bb60a40a0ab9aba40a59f68214eed5a29c6274c83b2cc206a359c4a89fa41b"}, - {file = "pyrsistent-0.19.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:a2471f3f8693101975b1ff85ffd19bb7ca7dd7c38f8a81701f67d6b4f97b87d8"}, - {file = "pyrsistent-0.19.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc5d149f31706762c1f8bda2e8c4f8fead6e80312e3692619a75301d3dbb819a"}, - {file = "pyrsistent-0.19.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3311cb4237a341aa52ab8448c27e3a9931e2ee09561ad150ba94e4cfd3fc888c"}, - {file = "pyrsistent-0.19.3-cp38-cp38-win32.whl", hash = "sha256:f0e7c4b2f77593871e918be000b96c8107da48444d57005b6a6bc61fb4331b2c"}, - {file = "pyrsistent-0.19.3-cp38-cp38-win_amd64.whl", hash = "sha256:c147257a92374fde8498491f53ffa8f4822cd70c0d85037e09028e478cababb7"}, - {file = "pyrsistent-0.19.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:b735e538f74ec31378f5a1e3886a26d2ca6351106b4dfde376a26fc32a044edc"}, - {file = "pyrsistent-0.19.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:99abb85579e2165bd8522f0c0138864da97847875ecbd45f3e7e2af569bfc6f2"}, - {file = "pyrsistent-0.19.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3a8cb235fa6d3fd7aae6a4f1429bbb1fec1577d978098da1252f0489937786f3"}, - {file = "pyrsistent-0.19.3-cp39-cp39-win32.whl", hash = "sha256:c74bed51f9b41c48366a286395c67f4e894374306b197e62810e0fdaf2364da2"}, - {file = "pyrsistent-0.19.3-cp39-cp39-win_amd64.whl", hash = "sha256:878433581fc23e906d947a6814336eee031a00e6defba224234169ae3d3d6a98"}, - {file = "pyrsistent-0.19.3-py3-none-any.whl", hash = "sha256:ccf0d6bd208f8111179f0c26fdf84ed7c3891982f2edaeae7422575f47e66b64"}, - {file = "pyrsistent-0.19.3.tar.gz", hash = "sha256:1a2994773706bbb4995c31a97bc94f1418314923bd1048c6d964837040376440"}, -] - -[[package]] -name = "pytest" -version = "7.3.1" -description = "pytest: simple powerful testing with Python" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "pytest-7.3.1-py3-none-any.whl", hash = "sha256:3799fa815351fea3a5e96ac7e503a96fa51cc9942c3753cda7651b93c1cfa362"}, - {file = "pytest-7.3.1.tar.gz", hash = "sha256:434afafd78b1d78ed0addf160ad2b77a30d35d4bdf8af234fe621919d9ed15e3"}, -] - -[package.dependencies] -colorama = {version = "*", markers = "sys_platform == \"win32\""} -exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} -iniconfig = "*" -packaging = "*" -pluggy = ">=0.12,<2.0" -tomli = {version = ">=1.0.0", markers = "python_version < \"3.11\""} - -[package.extras] -testing = ["argcomplete", "attrs (>=19.2.0)", "hypothesis (>=3.56)", "mock", "nose", "pygments (>=2.7.2)", "requests", "xmlschema"] - -[[package]] -name = "pywin32" -version = "306" -description = "Python for Window Extensions" -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "pywin32-306-cp310-cp310-win32.whl", hash = "sha256:06d3420a5155ba65f0b72f2699b5bacf3109f36acbe8923765c22938a69dfc8d"}, - {file = "pywin32-306-cp310-cp310-win_amd64.whl", hash = "sha256:84f4471dbca1887ea3803d8848a1616429ac94a4a8d05f4bc9c5dcfd42ca99c8"}, - {file = "pywin32-306-cp311-cp311-win32.whl", hash = "sha256:e65028133d15b64d2ed8f06dd9fbc268352478d4f9289e69c190ecd6818b6407"}, - {file = "pywin32-306-cp311-cp311-win_amd64.whl", hash = "sha256:a7639f51c184c0272e93f244eb24dafca9b1855707d94c192d4a0b4c01e1100e"}, - {file = "pywin32-306-cp311-cp311-win_arm64.whl", hash = "sha256:70dba0c913d19f942a2db25217d9a1b726c278f483a919f1abfed79c9cf64d3a"}, - {file = "pywin32-306-cp312-cp312-win32.whl", hash = "sha256:383229d515657f4e3ed1343da8be101000562bf514591ff383ae940cad65458b"}, - {file = "pywin32-306-cp312-cp312-win_amd64.whl", hash = "sha256:37257794c1ad39ee9be652da0462dc2e394c8159dfd913a8a4e8eb6fd346da0e"}, - {file = "pywin32-306-cp312-cp312-win_arm64.whl", hash = "sha256:5821ec52f6d321aa59e2db7e0a35b997de60c201943557d108af9d4ae1ec7040"}, - {file = "pywin32-306-cp37-cp37m-win32.whl", hash = "sha256:1c73ea9a0d2283d889001998059f5eaaba3b6238f767c9cf2833b13e6a685f65"}, - {file = "pywin32-306-cp37-cp37m-win_amd64.whl", hash = "sha256:72c5f621542d7bdd4fdb716227be0dd3f8565c11b280be6315b06ace35487d36"}, - {file = "pywin32-306-cp38-cp38-win32.whl", hash = "sha256:e4c092e2589b5cf0d365849e73e02c391c1349958c5ac3e9d5ccb9a28e017b3a"}, - {file = "pywin32-306-cp38-cp38-win_amd64.whl", hash = "sha256:e8ac1ae3601bee6ca9f7cb4b5363bf1c0badb935ef243c4733ff9a393b1690c0"}, - {file = "pywin32-306-cp39-cp39-win32.whl", hash = "sha256:e25fd5b485b55ac9c057f67d94bc203f3f6595078d1fb3b458c9c28b7153a802"}, - {file = "pywin32-306-cp39-cp39-win_amd64.whl", hash = "sha256:39b61c15272833b5c329a2989999dcae836b1eed650252ab1b7bfbe1d59f30f4"}, -] - -[[package]] -name = "regex" -version = "2023.5.5" -description = "Alternative regular expression module, to replace re." -category = "main" -optional = false -python-versions = ">=3.6" -files = [ - {file = "regex-2023.5.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:48c9ec56579d4ba1c88f42302194b8ae2350265cb60c64b7b9a88dcb7fbde309"}, - {file = "regex-2023.5.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:02f4541550459c08fdd6f97aa4e24c6f1932eec780d58a2faa2068253df7d6ff"}, - {file = "regex-2023.5.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:53e22e4460f0245b468ee645156a4f84d0fc35a12d9ba79bd7d79bdcd2f9629d"}, - {file = "regex-2023.5.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4b870b6f632fc74941cadc2a0f3064ed8409e6f8ee226cdfd2a85ae50473aa94"}, - {file = "regex-2023.5.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:171c52e320fe29260da550d81c6b99f6f8402450dc7777ef5ced2e848f3b6f8f"}, - {file = "regex-2023.5.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:aad5524c2aedaf9aa14ef1bc9327f8abd915699dea457d339bebbe2f0d218f86"}, - {file = "regex-2023.5.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5a0f874ee8c0bc820e649c900243c6d1e6dc435b81da1492046716f14f1a2a96"}, - {file = "regex-2023.5.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:e645c757183ee0e13f0bbe56508598e2d9cd42b8abc6c0599d53b0d0b8dd1479"}, - {file = "regex-2023.5.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:a4c5da39bca4f7979eefcbb36efea04471cd68db2d38fcbb4ee2c6d440699833"}, - {file = "regex-2023.5.5-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:5e3f4468b8c6fd2fd33c218bbd0a1559e6a6fcf185af8bb0cc43f3b5bfb7d636"}, - {file = "regex-2023.5.5-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:59e4b729eae1a0919f9e4c0fc635fbcc9db59c74ad98d684f4877be3d2607dd6"}, - {file = "regex-2023.5.5-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:ba73a14e9c8f9ac409863543cde3290dba39098fc261f717dc337ea72d3ebad2"}, - {file = "regex-2023.5.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:0bbd5dcb19603ab8d2781fac60114fb89aee8494f4505ae7ad141a3314abb1f9"}, - {file = "regex-2023.5.5-cp310-cp310-win32.whl", hash = "sha256:40005cbd383438aecf715a7b47fe1e3dcbc889a36461ed416bdec07e0ef1db66"}, - {file = "regex-2023.5.5-cp310-cp310-win_amd64.whl", hash = "sha256:59597cd6315d3439ed4b074febe84a439c33928dd34396941b4d377692eca810"}, - {file = "regex-2023.5.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:8f08276466fedb9e36e5193a96cb944928301152879ec20c2d723d1031cd4ddd"}, - {file = "regex-2023.5.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:cd46f30e758629c3ee91713529cfbe107ac50d27110fdcc326a42ce2acf4dafc"}, - {file = "regex-2023.5.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f2910502f718828cecc8beff004917dcf577fc5f8f5dd40ffb1ea7612124547b"}, - {file = "regex-2023.5.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:445d6f4fc3bd9fc2bf0416164454f90acab8858cd5a041403d7a11e3356980e8"}, - {file = "regex-2023.5.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:18196c16a584619c7c1d843497c069955d7629ad4a3fdee240eb347f4a2c9dbe"}, - {file = "regex-2023.5.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:33d430a23b661629661f1fe8395be2004006bc792bb9fc7c53911d661b69dd7e"}, - {file = "regex-2023.5.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:72a28979cc667e5f82ef433db009184e7ac277844eea0f7f4d254b789517941d"}, - {file = "regex-2023.5.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:f764e4dfafa288e2eba21231f455d209f4709436baeebb05bdecfb5d8ddc3d35"}, - {file = "regex-2023.5.5-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:23d86ad2121b3c4fc78c58f95e19173790e22ac05996df69b84e12da5816cb17"}, - {file = "regex-2023.5.5-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:690a17db524ee6ac4a27efc5406530dd90e7a7a69d8360235323d0e5dafb8f5b"}, - {file = "regex-2023.5.5-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:1ecf3dcff71f0c0fe3e555201cbe749fa66aae8d18f80d2cc4de8e66df37390a"}, - {file = "regex-2023.5.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:811040d7f3dd9c55eb0d8b00b5dcb7fd9ae1761c454f444fd9f37fe5ec57143a"}, - {file = "regex-2023.5.5-cp311-cp311-win32.whl", hash = "sha256:c8c143a65ce3ca42e54d8e6fcaf465b6b672ed1c6c90022794a802fb93105d22"}, - {file = "regex-2023.5.5-cp311-cp311-win_amd64.whl", hash = "sha256:586a011f77f8a2da4b888774174cd266e69e917a67ba072c7fc0e91878178a80"}, - {file = "regex-2023.5.5-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:b6365703e8cf1644b82104cdd05270d1a9f043119a168d66c55684b1b557d008"}, - {file = "regex-2023.5.5-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a56c18f21ac98209da9c54ae3ebb3b6f6e772038681d6cb43b8d53da3b09ee81"}, - {file = "regex-2023.5.5-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b8b942d8b3ce765dbc3b1dad0a944712a89b5de290ce8f72681e22b3c55f3cc8"}, - {file = "regex-2023.5.5-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:844671c9c1150fcdac46d43198364034b961bd520f2c4fdaabfc7c7d7138a2dd"}, - {file = "regex-2023.5.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c2ce65bdeaf0a386bb3b533a28de3994e8e13b464ac15e1e67e4603dd88787fa"}, - {file = "regex-2023.5.5-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:fee0016cc35a8a91e8cc9312ab26a6fe638d484131a7afa79e1ce6165328a135"}, - {file = "regex-2023.5.5-cp36-cp36m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:18f05d14f14a812fe9723f13afafefe6b74ca042d99f8884e62dbd34dcccf3e2"}, - {file = "regex-2023.5.5-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:941b3f1b2392f0bcd6abf1bc7a322787d6db4e7457be6d1ffd3a693426a755f2"}, - {file = "regex-2023.5.5-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:921473a93bcea4d00295799ab929522fc650e85c6b9f27ae1e6bb32a790ea7d3"}, - {file = "regex-2023.5.5-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:e2205a81f815b5bb17e46e74cc946c575b484e5f0acfcb805fb252d67e22938d"}, - {file = "regex-2023.5.5-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:385992d5ecf1a93cb85adff2f73e0402dd9ac29b71b7006d342cc920816e6f32"}, - {file = "regex-2023.5.5-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:890a09cb0a62198bff92eda98b2b507305dd3abf974778bae3287f98b48907d3"}, - {file = "regex-2023.5.5-cp36-cp36m-win32.whl", hash = "sha256:821a88b878b6589c5068f4cc2cfeb2c64e343a196bc9d7ac68ea8c2a776acd46"}, - {file = "regex-2023.5.5-cp36-cp36m-win_amd64.whl", hash = "sha256:7918a1b83dd70dc04ab5ed24c78ae833ae8ea228cef84e08597c408286edc926"}, - {file = "regex-2023.5.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:338994d3d4ca4cf12f09822e025731a5bdd3a37aaa571fa52659e85ca793fb67"}, - {file = "regex-2023.5.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0a69cf0c00c4d4a929c6c7717fd918414cab0d6132a49a6d8fc3ded1988ed2ea"}, - {file = "regex-2023.5.5-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8f5e06df94fff8c4c85f98c6487f6636848e1dc85ce17ab7d1931df4a081f657"}, - {file = "regex-2023.5.5-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a8906669b03c63266b6a7693d1f487b02647beb12adea20f8840c1a087e2dfb5"}, - {file = "regex-2023.5.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fda3e50abad8d0f48df621cf75adc73c63f7243cbe0e3b2171392b445401550"}, - {file = "regex-2023.5.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5ac2b7d341dc1bd102be849d6dd33b09701223a851105b2754339e390be0627a"}, - {file = "regex-2023.5.5-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:fb2b495dd94b02de8215625948132cc2ea360ae84fe6634cd19b6567709c8ae2"}, - {file = "regex-2023.5.5-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:aa7d032c1d84726aa9edeb6accf079b4caa87151ca9fabacef31fa028186c66d"}, - {file = "regex-2023.5.5-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:3d45864693351c15531f7e76f545ec35000d50848daa833cead96edae1665559"}, - {file = "regex-2023.5.5-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:21e90a288e6ba4bf44c25c6a946cb9b0f00b73044d74308b5e0afd190338297c"}, - {file = "regex-2023.5.5-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:10250a093741ec7bf74bcd2039e697f519b028518f605ff2aa7ac1e9c9f97423"}, - {file = "regex-2023.5.5-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:6b8d0c153f07a953636b9cdb3011b733cadd4178123ef728ccc4d5969e67f3c2"}, - {file = "regex-2023.5.5-cp37-cp37m-win32.whl", hash = "sha256:10374c84ee58c44575b667310d5bbfa89fb2e64e52349720a0182c0017512f6c"}, - {file = "regex-2023.5.5-cp37-cp37m-win_amd64.whl", hash = "sha256:9b320677521aabf666cdd6e99baee4fb5ac3996349c3b7f8e7c4eee1c00dfe3a"}, - {file = "regex-2023.5.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:afb1c70ec1e594a547f38ad6bf5e3d60304ce7539e677c1429eebab115bce56e"}, - {file = "regex-2023.5.5-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:cf123225945aa58b3057d0fba67e8061c62d14cc8a4202630f8057df70189051"}, - {file = "regex-2023.5.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a99757ad7fe5c8a2bb44829fc57ced11253e10f462233c1255fe03888e06bc19"}, - {file = "regex-2023.5.5-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a623564d810e7a953ff1357f7799c14bc9beeab699aacc8b7ab7822da1e952b8"}, - {file = "regex-2023.5.5-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:ced02e3bd55e16e89c08bbc8128cff0884d96e7f7a5633d3dc366b6d95fcd1d6"}, - {file = "regex-2023.5.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d1cbe6b5be3b9b698d8cc4ee4dee7e017ad655e83361cd0ea8e653d65e469468"}, - {file = "regex-2023.5.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4a6e4b0e0531223f53bad07ddf733af490ba2b8367f62342b92b39b29f72735a"}, - {file = "regex-2023.5.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:2e9c4f778514a560a9c9aa8e5538bee759b55f6c1dcd35613ad72523fd9175b8"}, - {file = "regex-2023.5.5-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:256f7f4c6ba145f62f7a441a003c94b8b1af78cee2cccacfc1e835f93bc09426"}, - {file = "regex-2023.5.5-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:bd7b68fd2e79d59d86dcbc1ccd6e2ca09c505343445daaa4e07f43c8a9cc34da"}, - {file = "regex-2023.5.5-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4a5059bd585e9e9504ef9c07e4bc15b0a621ba20504388875d66b8b30a5c4d18"}, - {file = "regex-2023.5.5-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:6893544e06bae009916a5658ce7207e26ed17385149f35a3125f5259951f1bbe"}, - {file = "regex-2023.5.5-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:c64d5abe91a3dfe5ff250c6bb267ef00dbc01501518225b45a5f9def458f31fb"}, - {file = "regex-2023.5.5-cp38-cp38-win32.whl", hash = "sha256:7923470d6056a9590247ff729c05e8e0f06bbd4efa6569c916943cb2d9b68b91"}, - {file = "regex-2023.5.5-cp38-cp38-win_amd64.whl", hash = "sha256:4035d6945cb961c90c3e1c1ca2feb526175bcfed44dfb1cc77db4fdced060d3e"}, - {file = "regex-2023.5.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:50fd2d9b36938d4dcecbd684777dd12a407add4f9f934f235c66372e630772b0"}, - {file = "regex-2023.5.5-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:d19e57f888b00cd04fc38f5e18d0efbd91ccba2d45039453ab2236e6eec48d4d"}, - {file = "regex-2023.5.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bd966475e963122ee0a7118ec9024388c602d12ac72860f6eea119a3928be053"}, - {file = "regex-2023.5.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:db09e6c18977a33fea26fe67b7a842f706c67cf8bda1450974d0ae0dd63570df"}, - {file = "regex-2023.5.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:6164d4e2a82f9ebd7752a06bd6c504791bedc6418c0196cd0a23afb7f3e12b2d"}, - {file = "regex-2023.5.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:84397d3f750d153ebd7f958efaa92b45fea170200e2df5e0e1fd4d85b7e3f58a"}, - {file = "regex-2023.5.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9c3efee9bb53cbe7b285760c81f28ac80dc15fa48b5fe7e58b52752e642553f1"}, - {file = "regex-2023.5.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl", hash = "sha256:144b5b017646b5a9392a5554a1e5db0000ae637be4971c9747566775fc96e1b2"}, - {file = "regex-2023.5.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:1189fbbb21e2c117fda5303653b61905aeeeea23de4a94d400b0487eb16d2d60"}, - {file = "regex-2023.5.5-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:f83fe9e10f9d0b6cf580564d4d23845b9d692e4c91bd8be57733958e4c602956"}, - {file = "regex-2023.5.5-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:72aa4746993a28c841e05889f3f1b1e5d14df8d3daa157d6001a34c98102b393"}, - {file = "regex-2023.5.5-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:de2f780c3242ea114dd01f84848655356af4dd561501896c751d7b885ea6d3a1"}, - {file = "regex-2023.5.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:290fd35219486dfbc00b0de72f455ecdd63e59b528991a6aec9fdfc0ce85672e"}, - {file = "regex-2023.5.5-cp39-cp39-win32.whl", hash = "sha256:732176f5427e72fa2325b05c58ad0b45af341c459910d766f814b0584ac1f9ac"}, - {file = "regex-2023.5.5-cp39-cp39-win_amd64.whl", hash = "sha256:1307aa4daa1cbb23823d8238e1f61292fd07e4e5d8d38a6efff00b67a7cdb764"}, - {file = "regex-2023.5.5.tar.gz", hash = "sha256:7d76a8a1fc9da08296462a18f16620ba73bcbf5909e42383b253ef34d9d5141e"}, -] - -[[package]] -name = "requests" -version = "2.31.0" -description = "Python HTTP for Humans." -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "requests-2.31.0-py3-none-any.whl", hash = "sha256:58cd2187c01e70e6e26505bca751777aa9f2ee0b7f4300988b709f44e013003f"}, - {file = "requests-2.31.0.tar.gz", hash = "sha256:942c5a758f98d790eaed1a29cb6eefc7ffb0d1cf7af05c3d2791656dbd6ad1e1"}, -] - -[package.dependencies] -certifi = ">=2017.4.17" -charset-normalizer = ">=2,<4" -idna = ">=2.5,<4" -urllib3 = ">=1.21.1,<3" - -[package.extras] -socks = ["PySocks (>=1.5.6,!=1.5.7)"] -use-chardet-on-py3 = ["chardet (>=3.0.2,<6)"] - -[[package]] -name = "rlp" -version = "3.0.0" -description = "A package for Recursive Length Prefix encoding and decoding" -category = "main" -optional = false -python-versions = "*" -files = [ - {file = "rlp-3.0.0-py2.py3-none-any.whl", hash = "sha256:d2a963225b3f26795c5b52310e0871df9824af56823d739511583ef459895a7d"}, - {file = "rlp-3.0.0.tar.gz", hash = "sha256:63b0465d2948cd9f01de449d7adfb92d207c1aef3982f20310f8009be4a507e8"}, -] - -[package.dependencies] -eth-utils = ">=2.0.0,<3" - -[package.extras] -dev = ["Sphinx (>=1.6.5,<2)", "bumpversion (>=0.5.3,<1)", "flake8 (==3.4.1)", "hypothesis (==5.19.0)", "ipython", "pytest (>=6.2.5,<7)", "pytest-watch (>=4.1.0,<5)", "pytest-xdist", "setuptools (>=36.2.0)", "sphinx-rtd-theme (>=0.1.9)", "tox (>=2.9.1,<3)", "twine", "wheel"] -doc = ["Sphinx (>=1.6.5,<2)", "sphinx-rtd-theme (>=0.1.9)"] -lint = ["flake8 (==3.4.1)"] -rust-backend = ["rusty-rlp (>=0.2.1,<0.3)"] -test = ["hypothesis (==5.19.0)", "pytest (>=6.2.5,<7)", "tox (>=2.9.1,<3)"] - -[[package]] -name = "tomli" -version = "2.0.1" -description = "A lil' TOML parser" -category = "dev" -optional = false -python-versions = ">=3.7" -files = [ - {file = "tomli-2.0.1-py3-none-any.whl", hash = "sha256:939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc"}, - {file = "tomli-2.0.1.tar.gz", hash = "sha256:de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"}, -] - -[[package]] -name = "toolz" -version = "0.12.0" -description = "List processing tools and functional utilities" -category = "main" -optional = false -python-versions = ">=3.5" -files = [ - {file = "toolz-0.12.0-py3-none-any.whl", hash = "sha256:2059bd4148deb1884bb0eb770a3cde70e7f954cfbbdc2285f1f2de01fd21eb6f"}, - {file = "toolz-0.12.0.tar.gz", hash = "sha256:88c570861c440ee3f2f6037c4654613228ff40c93a6c25e0eba70d17282c6194"}, -] - -[[package]] -name = "typing-extensions" -version = "4.6.2" -description = "Backported and Experimental Type Hints for Python 3.7+" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "typing_extensions-4.6.2-py3-none-any.whl", hash = "sha256:3a8b36f13dd5fdc5d1b16fe317f5668545de77fa0b8e02006381fd49d731ab98"}, - {file = "typing_extensions-4.6.2.tar.gz", hash = "sha256:06006244c70ac8ee83fa8282cb188f697b8db25bc8b4df07be1873c43897060c"}, -] - -[[package]] -name = "urllib3" -version = "2.0.2" -description = "HTTP library with thread-safe connection pooling, file post, and more." -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "urllib3-2.0.2-py3-none-any.whl", hash = "sha256:d055c2f9d38dc53c808f6fdc8eab7360b6fdbbde02340ed25cfbcd817c62469e"}, - {file = "urllib3-2.0.2.tar.gz", hash = "sha256:61717a1095d7e155cdb737ac7bb2f4324a858a1e2e6466f6d03ff630ca68d3cc"}, -] - -[package.extras] -brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] -secure = ["certifi", "cryptography (>=1.9)", "idna (>=2.0.0)", "pyopenssl (>=17.1.0)", "urllib3-secure-extra"] -socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] -zstd = ["zstandard (>=0.18.0)"] - -[[package]] -name = "web3" -version = "6.4.0" -description = "web3.py" -category = "main" -optional = false -python-versions = ">=3.7.2" -files = [ - {file = "web3-6.4.0-py3-none-any.whl", hash = "sha256:c86889b9c0b8f9f5ce5f5f0bb9f9bfc551cf775aeaf903964ddf28d303b85c62"}, - {file = "web3-6.4.0.tar.gz", hash = "sha256:b9fcc2372e7cac27d96621c169be40174eccbb93346bba2ab45ad791140d47fe"}, -] - -[package.dependencies] -aiohttp = ">=3.7.4.post0" -eth-abi = ">=4.0.0" -eth-account = ">=0.8.0" -eth-hash = {version = ">=0.5.1", extras = ["pycryptodome"]} -eth-typing = ">=3.0.0" -eth-utils = ">=2.1.0" -hexbytes = ">=0.1.0" -jsonschema = ">=4.0.0" -lru-dict = ">=1.1.6" -protobuf = ">=4.21.6" -pywin32 = {version = ">=223", markers = "platform_system == \"Windows\""} -requests = ">=2.16.0" -websockets = ">=10.0.0" - -[package.extras] -dev = ["black (>=22.1.0)", "build (>=0.9.0)", "bumpversion", "eth-tester[py-evm] (==v0.9.0-b.1)", "flake8 (==3.8.3)", "flaky (>=3.7.0)", "hypothesis (>=3.31.2)", "importlib-metadata (<5.0)", "ipfshttpclient (==0.8.0a2)", "isort (>=5.11.0)", "mypy (==0.910)", "pluggy (==0.13.1)", "py-geth (>=3.11.0)", "pytest (>=7.0.0)", "pytest-asyncio (>=0.18.1)", "pytest-mock (>=1.10)", "pytest-watch (>=4.2)", "pytest-xdist (>=1.29)", "setuptools (>=38.6.0)", "sphinx (>=5.3.0)", "sphinx-rtd-theme (>=1.0.0)", "towncrier (>=21,<22)", "tox (>=3.18.0)", "tqdm (>4.32)", "twine (>=1.13)", "types-protobuf (==3.19.13)", "types-requests (>=2.26.1)", "types-setuptools (>=57.4.4)", "when-changed (>=0.3.0)"] -docs = ["sphinx (>=5.3.0)", "sphinx-rtd-theme (>=1.0.0)", "towncrier (>=21,<22)"] -ipfs = ["ipfshttpclient (==0.8.0a2)"] -linter = ["black (>=22.1.0)", "flake8 (==3.8.3)", "isort (>=5.11.0)", "mypy (==0.910)", "types-protobuf (==3.19.13)", "types-requests (>=2.26.1)", "types-setuptools (>=57.4.4)"] -tester = ["eth-tester[py-evm] (==v0.9.0-b.1)", "py-geth (>=3.11.0)"] - -[[package]] -name = "websockets" -version = "11.0.3" -description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "websockets-11.0.3-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:3ccc8a0c387629aec40f2fc9fdcb4b9d5431954f934da3eaf16cdc94f67dbfac"}, - {file = "websockets-11.0.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d67ac60a307f760c6e65dad586f556dde58e683fab03323221a4e530ead6f74d"}, - {file = "websockets-11.0.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:84d27a4832cc1a0ee07cdcf2b0629a8a72db73f4cf6de6f0904f6661227f256f"}, - {file = "websockets-11.0.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ffd7dcaf744f25f82190856bc26ed81721508fc5cbf2a330751e135ff1283564"}, - {file = "websockets-11.0.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7622a89d696fc87af8e8d280d9b421db5133ef5b29d3f7a1ce9f1a7bf7fcfa11"}, - {file = "websockets-11.0.3-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bceab846bac555aff6427d060f2fcfff71042dba6f5fca7dc4f75cac815e57ca"}, - {file = "websockets-11.0.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:54c6e5b3d3a8936a4ab6870d46bdd6ec500ad62bde9e44462c32d18f1e9a8e54"}, - {file = "websockets-11.0.3-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:41f696ba95cd92dc047e46b41b26dd24518384749ed0d99bea0a941ca87404c4"}, - {file = "websockets-11.0.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:86d2a77fd490ae3ff6fae1c6ceaecad063d3cc2320b44377efdde79880e11526"}, - {file = "websockets-11.0.3-cp310-cp310-win32.whl", hash = "sha256:2d903ad4419f5b472de90cd2d40384573b25da71e33519a67797de17ef849b69"}, - {file = "websockets-11.0.3-cp310-cp310-win_amd64.whl", hash = "sha256:1d2256283fa4b7f4c7d7d3e84dc2ece74d341bce57d5b9bf385df109c2a1a82f"}, - {file = "websockets-11.0.3-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:e848f46a58b9fcf3d06061d17be388caf70ea5b8cc3466251963c8345e13f7eb"}, - {file = "websockets-11.0.3-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:aa5003845cdd21ac0dc6c9bf661c5beddd01116f6eb9eb3c8e272353d45b3288"}, - {file = "websockets-11.0.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b58cbf0697721120866820b89f93659abc31c1e876bf20d0b3d03cef14faf84d"}, - {file = "websockets-11.0.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:660e2d9068d2bedc0912af508f30bbeb505bbbf9774d98def45f68278cea20d3"}, - {file = "websockets-11.0.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c1f0524f203e3bd35149f12157438f406eff2e4fb30f71221c8a5eceb3617b6b"}, - {file = "websockets-11.0.3-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:def07915168ac8f7853812cc593c71185a16216e9e4fa886358a17ed0fd9fcf6"}, - {file = "websockets-11.0.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b30c6590146e53149f04e85a6e4fcae068df4289e31e4aee1fdf56a0dead8f97"}, - {file = "websockets-11.0.3-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:619d9f06372b3a42bc29d0cd0354c9bb9fb39c2cbc1a9c5025b4538738dbffaf"}, - {file = "websockets-11.0.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:01f5567d9cf6f502d655151645d4e8b72b453413d3819d2b6f1185abc23e82dd"}, - {file = "websockets-11.0.3-cp311-cp311-win32.whl", hash = "sha256:e1459677e5d12be8bbc7584c35b992eea142911a6236a3278b9b5ce3326f282c"}, - {file = "websockets-11.0.3-cp311-cp311-win_amd64.whl", hash = "sha256:e7837cb169eca3b3ae94cc5787c4fed99eef74c0ab9506756eea335e0d6f3ed8"}, - {file = "websockets-11.0.3-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:9f59a3c656fef341a99e3d63189852be7084c0e54b75734cde571182c087b152"}, - {file = "websockets-11.0.3-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2529338a6ff0eb0b50c7be33dc3d0e456381157a31eefc561771ee431134a97f"}, - {file = "websockets-11.0.3-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:34fd59a4ac42dff6d4681d8843217137f6bc85ed29722f2f7222bd619d15e95b"}, - {file = "websockets-11.0.3-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:332d126167ddddec94597c2365537baf9ff62dfcc9db4266f263d455f2f031cb"}, - {file = "websockets-11.0.3-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:6505c1b31274723ccaf5f515c1824a4ad2f0d191cec942666b3d0f3aa4cb4007"}, - {file = "websockets-11.0.3-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:f467ba0050b7de85016b43f5a22b46383ef004c4f672148a8abf32bc999a87f0"}, - {file = "websockets-11.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:9d9acd80072abcc98bd2c86c3c9cd4ac2347b5a5a0cae7ed5c0ee5675f86d9af"}, - {file = "websockets-11.0.3-cp37-cp37m-win32.whl", hash = "sha256:e590228200fcfc7e9109509e4d9125eace2042fd52b595dd22bbc34bb282307f"}, - {file = "websockets-11.0.3-cp37-cp37m-win_amd64.whl", hash = "sha256:b16fff62b45eccb9c7abb18e60e7e446998093cdcb50fed33134b9b6878836de"}, - {file = "websockets-11.0.3-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:fb06eea71a00a7af0ae6aefbb932fb8a7df3cb390cc217d51a9ad7343de1b8d0"}, - {file = "websockets-11.0.3-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8a34e13a62a59c871064dfd8ffb150867e54291e46d4a7cf11d02c94a5275bae"}, - {file = "websockets-11.0.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:4841ed00f1026dfbced6fca7d963c4e7043aa832648671b5138008dc5a8f6d99"}, - {file = "websockets-11.0.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a073fc9ab1c8aff37c99f11f1641e16da517770e31a37265d2755282a5d28aa"}, - {file = "websockets-11.0.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:68b977f21ce443d6d378dbd5ca38621755f2063d6fdb3335bda981d552cfff86"}, - {file = "websockets-11.0.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e1a99a7a71631f0efe727c10edfba09ea6bee4166a6f9c19aafb6c0b5917d09c"}, - {file = "websockets-11.0.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:bee9fcb41db2a23bed96c6b6ead6489702c12334ea20a297aa095ce6d31370d0"}, - {file = "websockets-11.0.3-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:4b253869ea05a5a073ebfdcb5cb3b0266a57c3764cf6fe114e4cd90f4bfa5f5e"}, - {file = "websockets-11.0.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:1553cb82942b2a74dd9b15a018dce645d4e68674de2ca31ff13ebc2d9f283788"}, - {file = "websockets-11.0.3-cp38-cp38-win32.whl", hash = "sha256:f61bdb1df43dc9c131791fbc2355535f9024b9a04398d3bd0684fc16ab07df74"}, - {file = "websockets-11.0.3-cp38-cp38-win_amd64.whl", hash = "sha256:03aae4edc0b1c68498f41a6772d80ac7c1e33c06c6ffa2ac1c27a07653e79d6f"}, - {file = "websockets-11.0.3-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:777354ee16f02f643a4c7f2b3eff8027a33c9861edc691a2003531f5da4f6bc8"}, - {file = "websockets-11.0.3-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:8c82f11964f010053e13daafdc7154ce7385ecc538989a354ccc7067fd7028fd"}, - {file = "websockets-11.0.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3580dd9c1ad0701169e4d6fc41e878ffe05e6bdcaf3c412f9d559389d0c9e016"}, - {file = "websockets-11.0.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6f1a3f10f836fab6ca6efa97bb952300b20ae56b409414ca85bff2ad241d2a61"}, - {file = "websockets-11.0.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:df41b9bc27c2c25b486bae7cf42fccdc52ff181c8c387bfd026624a491c2671b"}, - {file = "websockets-11.0.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:279e5de4671e79a9ac877427f4ac4ce93751b8823f276b681d04b2156713b9dd"}, - {file = "websockets-11.0.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:1fdf26fa8a6a592f8f9235285b8affa72748dc12e964a5518c6c5e8f916716f7"}, - {file = "websockets-11.0.3-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:69269f3a0b472e91125b503d3c0b3566bda26da0a3261c49f0027eb6075086d1"}, - {file = "websockets-11.0.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:97b52894d948d2f6ea480171a27122d77af14ced35f62e5c892ca2fae9344311"}, - {file = "websockets-11.0.3-cp39-cp39-win32.whl", hash = "sha256:c7f3cb904cce8e1be667c7e6fef4516b98d1a6a0635a58a57528d577ac18a128"}, - {file = "websockets-11.0.3-cp39-cp39-win_amd64.whl", hash = "sha256:c792ea4eabc0159535608fc5658a74d1a81020eb35195dd63214dcf07556f67e"}, - {file = "websockets-11.0.3-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:f2e58f2c36cc52d41f2659e4c0cbf7353e28c8c9e63e30d8c6d3494dc9fdedcf"}, - {file = "websockets-11.0.3-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:de36fe9c02995c7e6ae6efe2e205816f5f00c22fd1fbf343d4d18c3d5ceac2f5"}, - {file = "websockets-11.0.3-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0ac56b661e60edd453585f4bd68eb6a29ae25b5184fd5ba51e97652580458998"}, - {file = "websockets-11.0.3-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e052b8467dd07d4943936009f46ae5ce7b908ddcac3fda581656b1b19c083d9b"}, - {file = "websockets-11.0.3-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:42cc5452a54a8e46a032521d7365da775823e21bfba2895fb7b77633cce031bb"}, - {file = "websockets-11.0.3-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:e6316827e3e79b7b8e7d8e3b08f4e331af91a48e794d5d8b099928b6f0b85f20"}, - {file = "websockets-11.0.3-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8531fdcad636d82c517b26a448dcfe62f720e1922b33c81ce695d0edb91eb931"}, - {file = "websockets-11.0.3-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c114e8da9b475739dde229fd3bc6b05a6537a88a578358bc8eb29b4030fac9c9"}, - {file = "websockets-11.0.3-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e063b1865974611313a3849d43f2c3f5368093691349cf3c7c8f8f75ad7cb280"}, - {file = "websockets-11.0.3-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:92b2065d642bf8c0a82d59e59053dd2fdde64d4ed44efe4870fa816c1232647b"}, - {file = "websockets-11.0.3-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:0ee68fe502f9031f19d495dae2c268830df2760c0524cbac5d759921ba8c8e82"}, - {file = "websockets-11.0.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dcacf2c7a6c3a84e720d1bb2b543c675bf6c40e460300b628bab1b1efc7c034c"}, - {file = "websockets-11.0.3-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b67c6f5e5a401fc56394f191f00f9b3811fe843ee93f4a70df3c389d1adf857d"}, - {file = "websockets-11.0.3-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1d5023a4b6a5b183dc838808087033ec5df77580485fc533e7dab2567851b0a4"}, - {file = "websockets-11.0.3-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:ed058398f55163a79bb9f06a90ef9ccc063b204bb346c4de78efc5d15abfe602"}, - {file = "websockets-11.0.3-py3-none-any.whl", hash = "sha256:6681ba9e7f8f3b19440921e99efbb40fc89f26cd71bf539e45d8c8a25c976dc6"}, - {file = "websockets-11.0.3.tar.gz", hash = "sha256:88fc51d9a26b10fc331be344f1781224a375b78488fc343620184e95a4b27016"}, -] - -[[package]] -name = "yarl" -version = "1.9.2" -description = "Yet another URL library" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8c2ad583743d16ddbdf6bb14b5cd76bf43b0d0006e918809d5d4ddf7bde8dd82"}, - {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:82aa6264b36c50acfb2424ad5ca537a2060ab6de158a5bd2a72a032cc75b9eb8"}, - {file = "yarl-1.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c0c77533b5ed4bcc38e943178ccae29b9bcf48ffd1063f5821192f23a1bd27b9"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ee4afac41415d52d53a9833ebae7e32b344be72835bbb589018c9e938045a560"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9bf345c3a4f5ba7f766430f97f9cc1320786f19584acc7086491f45524a551ac"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2a96c19c52ff442a808c105901d0bdfd2e28575b3d5f82e2f5fd67e20dc5f4ea"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:891c0e3ec5ec881541f6c5113d8df0315ce5440e244a716b95f2525b7b9f3608"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c3a53ba34a636a256d767c086ceb111358876e1fb6b50dfc4d3f4951d40133d5"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:566185e8ebc0898b11f8026447eacd02e46226716229cea8db37496c8cdd26e0"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:2b0738fb871812722a0ac2154be1f049c6223b9f6f22eec352996b69775b36d4"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:32f1d071b3f362c80f1a7d322bfd7b2d11e33d2adf395cc1dd4df36c9c243095"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:e9fdc7ac0d42bc3ea78818557fab03af6181e076a2944f43c38684b4b6bed8e3"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:56ff08ab5df8429901ebdc5d15941b59f6253393cb5da07b4170beefcf1b2528"}, - {file = "yarl-1.9.2-cp310-cp310-win32.whl", hash = "sha256:8ea48e0a2f931064469bdabca50c2f578b565fc446f302a79ba6cc0ee7f384d3"}, - {file = "yarl-1.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:50f33040f3836e912ed16d212f6cc1efb3231a8a60526a407aeb66c1c1956dde"}, - {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:646d663eb2232d7909e6601f1a9107e66f9791f290a1b3dc7057818fe44fc2b6"}, - {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:aff634b15beff8902d1f918012fc2a42e0dbae6f469fce134c8a0dc51ca423bb"}, - {file = "yarl-1.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a83503934c6273806aed765035716216cc9ab4e0364f7f066227e1aaea90b8d0"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b25322201585c69abc7b0e89e72790469f7dad90d26754717f3310bfe30331c2"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:22a94666751778629f1ec4280b08eb11815783c63f52092a5953faf73be24191"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ec53a0ea2a80c5cd1ab397925f94bff59222aa3cf9c6da938ce05c9ec20428d"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:159d81f22d7a43e6eabc36d7194cb53f2f15f498dbbfa8edc8a3239350f59fe7"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:832b7e711027c114d79dffb92576acd1bd2decc467dec60e1cac96912602d0e6"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:95d2ecefbcf4e744ea952d073c6922e72ee650ffc79028eb1e320e732898d7e8"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d4e2c6d555e77b37288eaf45b8f60f0737c9efa3452c6c44626a5455aeb250b9"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:783185c75c12a017cc345015ea359cc801c3b29a2966c2655cd12b233bf5a2be"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:b8cc1863402472f16c600e3e93d542b7e7542a540f95c30afd472e8e549fc3f7"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:822b30a0f22e588b32d3120f6d41e4ed021806418b4c9f0bc3048b8c8cb3f92a"}, - {file = "yarl-1.9.2-cp311-cp311-win32.whl", hash = "sha256:a60347f234c2212a9f0361955007fcf4033a75bf600a33c88a0a8e91af77c0e8"}, - {file = "yarl-1.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:be6b3fdec5c62f2a67cb3f8c6dbf56bbf3f61c0f046f84645cd1ca73532ea051"}, - {file = "yarl-1.9.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:38a3928ae37558bc1b559f67410df446d1fbfa87318b124bf5032c31e3447b74"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ac9bb4c5ce3975aeac288cfcb5061ce60e0d14d92209e780c93954076c7c4367"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3da8a678ca8b96c8606bbb8bfacd99a12ad5dd288bc6f7979baddd62f71c63ef"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:13414591ff516e04fcdee8dc051c13fd3db13b673c7a4cb1350e6b2ad9639ad3"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf74d08542c3a9ea97bb8f343d4fcbd4d8f91bba5ec9d5d7f792dbe727f88938"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6e7221580dc1db478464cfeef9b03b95c5852cc22894e418562997df0d074ccc"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:494053246b119b041960ddcd20fd76224149cfea8ed8777b687358727911dd33"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:52a25809fcbecfc63ac9ba0c0fb586f90837f5425edfd1ec9f3372b119585e45"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:e65610c5792870d45d7b68c677681376fcf9cc1c289f23e8e8b39c1485384185"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:1b1bba902cba32cdec51fca038fd53f8beee88b77efc373968d1ed021024cc04"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:662e6016409828ee910f5d9602a2729a8a57d74b163c89a837de3fea050c7582"}, - {file = "yarl-1.9.2-cp37-cp37m-win32.whl", hash = "sha256:f364d3480bffd3aa566e886587eaca7c8c04d74f6e8933f3f2c996b7f09bee1b"}, - {file = "yarl-1.9.2-cp37-cp37m-win_amd64.whl", hash = "sha256:6a5883464143ab3ae9ba68daae8e7c5c95b969462bbe42e2464d60e7e2698368"}, - {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5610f80cf43b6202e2c33ba3ec2ee0a2884f8f423c8f4f62906731d876ef4fac"}, - {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b9a4e67ad7b646cd6f0938c7ebfd60e481b7410f574c560e455e938d2da8e0f4"}, - {file = "yarl-1.9.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:83fcc480d7549ccebe9415d96d9263e2d4226798c37ebd18c930fce43dfb9574"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5fcd436ea16fee7d4207c045b1e340020e58a2597301cfbcfdbe5abd2356c2fb"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:84e0b1599334b1e1478db01b756e55937d4614f8654311eb26012091be109d59"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3458a24e4ea3fd8930e934c129b676c27452e4ebda80fbe47b56d8c6c7a63a9e"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:838162460b3a08987546e881a2bfa573960bb559dfa739e7800ceeec92e64417"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f4e2d08f07a3d7d3e12549052eb5ad3eab1c349c53ac51c209a0e5991bbada78"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:de119f56f3c5f0e2fb4dee508531a32b069a5f2c6e827b272d1e0ff5ac040333"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:149ddea5abf329752ea5051b61bd6c1d979e13fbf122d3a1f9f0c8be6cb6f63c"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:674ca19cbee4a82c9f54e0d1eee28116e63bc6fd1e96c43031d11cbab8b2afd5"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:9b3152f2f5677b997ae6c804b73da05a39daa6a9e85a512e0e6823d81cdad7cc"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5415d5a4b080dc9612b1b63cba008db84e908b95848369aa1da3686ae27b6d2b"}, - {file = "yarl-1.9.2-cp38-cp38-win32.whl", hash = "sha256:f7a3d8146575e08c29ed1cd287068e6d02f1c7bdff8970db96683b9591b86ee7"}, - {file = "yarl-1.9.2-cp38-cp38-win_amd64.whl", hash = "sha256:63c48f6cef34e6319a74c727376e95626f84ea091f92c0250a98e53e62c77c72"}, - {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:75df5ef94c3fdc393c6b19d80e6ef1ecc9ae2f4263c09cacb178d871c02a5ba9"}, - {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c027a6e96ef77d401d8d5a5c8d6bc478e8042f1e448272e8d9752cb0aff8b5c8"}, - {file = "yarl-1.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f3b078dbe227f79be488ffcfc7a9edb3409d018e0952cf13f15fd6512847f3f7"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:59723a029760079b7d991a401386390c4be5bfec1e7dd83e25a6a0881859e716"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b03917871bf859a81ccb180c9a2e6c1e04d2f6a51d953e6a5cdd70c93d4e5a2a"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c1012fa63eb6c032f3ce5d2171c267992ae0c00b9e164efe4d73db818465fac3"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a74dcbfe780e62f4b5a062714576f16c2f3493a0394e555ab141bf0d746bb955"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8c56986609b057b4839968ba901944af91b8e92f1725d1a2d77cbac6972b9ed1"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:2c315df3293cd521033533d242d15eab26583360b58f7ee5d9565f15fee1bef4"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:b7232f8dfbd225d57340e441d8caf8652a6acd06b389ea2d3222b8bc89cbfca6"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:53338749febd28935d55b41bf0bcc79d634881195a39f6b2f767870b72514caf"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:066c163aec9d3d073dc9ffe5dd3ad05069bcb03fcaab8d221290ba99f9f69ee3"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8288d7cd28f8119b07dd49b7230d6b4562f9b61ee9a4ab02221060d21136be80"}, - {file = "yarl-1.9.2-cp39-cp39-win32.whl", hash = "sha256:b124e2a6d223b65ba8768d5706d103280914d61f5cae3afbc50fc3dfcc016623"}, - {file = "yarl-1.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:61016e7d582bc46a5378ffdd02cd0314fb8ba52f40f9cf4d9a5e7dbef88dee18"}, - {file = "yarl-1.9.2.tar.gz", hash = "sha256:04ab9d4b9f587c06d801c2abfe9317b77cdf996c65a90d5e84ecc45010823571"}, -] - -[package.dependencies] -idna = ">=2.0" -multidict = ">=4.0" - -[[package]] -name = "zipp" -version = "3.15.0" -description = "Backport of pathlib-compatible object wrapper for zip files" -category = "main" -optional = false -python-versions = ">=3.7" -files = [ - {file = "zipp-3.15.0-py3-none-any.whl", hash = "sha256:48904fc76a60e542af151aded95726c1a5c34ed43ab4134b597665c86d7ad556"}, - {file = "zipp-3.15.0.tar.gz", hash = "sha256:112929ad649da941c23de50f356a2b5570c954b65150642bccdd66bf194d224b"}, -] - -[package.extras] -docs = ["furo", "jaraco.packaging (>=9)", "jaraco.tidelift (>=1.4)", "rst.linker (>=1.9)", "sphinx (>=3.5)", "sphinx-lint"] -testing = ["big-O", "flake8 (<5)", "jaraco.functools", "jaraco.itertools", "more-itertools", "pytest (>=6)", "pytest-black (>=0.3.7)", "pytest-checkdocs (>=2.4)", "pytest-cov", "pytest-enabler (>=1.3)", "pytest-flake8", "pytest-mypy (>=0.9.1)"] - -[metadata] -lock-version = "2.0" -python-versions = "^3.8.1" -content-hash = "dcd8eac1c96dd7e0487047f7135ec18d6c5a88cf6007d603f75c2d6e13b5767a" diff --git a/pyproject.toml b/pyproject.toml deleted file mode 100644 index 16743e9..0000000 --- a/pyproject.toml +++ /dev/null @@ -1,32 +0,0 @@ -[tool.poetry] -name = "ankr-sdk" -version = "0.4.0" -description = "Compact Python library for interacting with Ankr's Advanced APIs." -authors = ["Roman Fasakhov "] -license = "MIT License" - -homepage = "https://ankr.com/" -repository = "https://github.com/Ankr-network/ankr-python-sdk" -keywords = ["ankr", "sdk", "blockchain", "nft"] -readme = "README.md" -include = ["LICENSE"] - -packages = [{ include = "ankr" }] - - -[tool.poetry.dependencies] -python = "^3.8.1" -web3 = "^6.4.0" -pydantic = "^1.10.8" -pyhumps = "^3.8.0" -typing-extensions = "^4.6.2" - -[tool.poetry.dev-dependencies] -pytest = "^7.3.1" -mypy = "^1.3.0" -flake8 = "^6.0.0" -isort = "^5.12.0" - -[build-system] -requires = ["poetry-core>=1.0.0"] -build-backend = "poetry.core.masonry.api" diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..bafdc07 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,5 @@ +certifi >= 14.05.14 +six >= 1.10 +python_dateutil >= 2.5.3 +setuptools >= 21.0.0 +urllib3 >= 1.15.1 diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 3544177..0000000 --- a/setup.cfg +++ /dev/null @@ -1,22 +0,0 @@ -[mypy] -ignore_missing_imports = True -warn_no_return = False -check_untyped_defs = True -warn_unused_ignores = True -disallow_untyped_defs = True -allow_redefinition = True -follow_imports = skip -exclude = env|venv|venv.*|tests|test_* - -[flake8] -max-complexity = 8 -max-annotations-complexity = 4 -max-line-length = 120 -max-function-length = 100 -exclude = env,venv,pytest.ini -per-file-ignores = - __init__.py: F401 - -[tool:pytest] -markers = - webtest: mark a test as a webtest. \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..62d8f37 --- /dev/null +++ b/setup.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from setuptools import setup, find_packages # noqa: H301 + +NAME = "ankr-sdk" +VERSION = "1.0.0" +# To install the library, run the following +# +# python setup.py install +# +# prerequisite: setuptools +# http://pypi.python.org/pypi/setuptools + +REQUIRES = ["urllib3 >= 1.15", "six >= 1.10", "certifi", "python-dateutil"] + +setup( + name=NAME, + version=VERSION, + description="Ankr Advanced API", + author_email="", + url="", + keywords=["Swagger", "Ankr Advanced API"], + install_requires=REQUIRES, + packages=find_packages(), + include_package_data=True, + long_description="""\ + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + """ +) diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..2702246 --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1,5 @@ +coverage>=4.0.3 +nose>=1.3.7 +pluggy>=0.3.1 +py>=1.4.31 +randomize>=0.13 diff --git a/test/__init__.py b/test/__init__.py new file mode 100644 index 0000000..576f56f --- /dev/null +++ b/test/__init__.py @@ -0,0 +1 @@ +# coding: utf-8 \ No newline at end of file diff --git a/test/test_ankr_explain_token_price_body.py b/test/test_ankr_explain_token_price_body.py new file mode 100644 index 0000000..1dc182e --- /dev/null +++ b/test/test_ankr_explain_token_price_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_explain_token_price_body import AnkrExplainTokenPriceBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrExplainTokenPriceBody(unittest.TestCase): + """AnkrExplainTokenPriceBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrExplainTokenPriceBody(self): + """Test AnkrExplainTokenPriceBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_explain_token_price_body.AnkrExplainTokenPriceBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_explain_token_price_params.py b/test/test_ankr_explain_token_price_params.py new file mode 100644 index 0000000..645f8d3 --- /dev/null +++ b/test/test_ankr_explain_token_price_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_explain_token_price_params import AnkrExplainTokenPriceParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrExplainTokenPriceParams(unittest.TestCase): + """AnkrExplainTokenPriceParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrExplainTokenPriceParams(self): + """Test AnkrExplainTokenPriceParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_explain_token_price_params.AnkrExplainTokenPriceParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_account_balance_body.py b/test/test_ankr_get_account_balance_body.py new file mode 100644 index 0000000..4881e88 --- /dev/null +++ b/test/test_ankr_get_account_balance_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_account_balance_body import AnkrGetAccountBalanceBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetAccountBalanceBody(unittest.TestCase): + """AnkrGetAccountBalanceBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetAccountBalanceBody(self): + """Test AnkrGetAccountBalanceBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_account_balance_body.AnkrGetAccountBalanceBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_account_balance_historical_body.py b/test/test_ankr_get_account_balance_historical_body.py new file mode 100644 index 0000000..f7db2a0 --- /dev/null +++ b/test/test_ankr_get_account_balance_historical_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_account_balance_historical_body import AnkrGetAccountBalanceHistoricalBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetAccountBalanceHistoricalBody(unittest.TestCase): + """AnkrGetAccountBalanceHistoricalBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetAccountBalanceHistoricalBody(self): + """Test AnkrGetAccountBalanceHistoricalBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_account_balance_historical_body.AnkrGetAccountBalanceHistoricalBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_account_balance_historical_params.py b/test/test_ankr_get_account_balance_historical_params.py new file mode 100644 index 0000000..df01606 --- /dev/null +++ b/test/test_ankr_get_account_balance_historical_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_account_balance_historical_params import AnkrGetAccountBalanceHistoricalParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetAccountBalanceHistoricalParams(unittest.TestCase): + """AnkrGetAccountBalanceHistoricalParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetAccountBalanceHistoricalParams(self): + """Test AnkrGetAccountBalanceHistoricalParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_account_balance_historical_params.AnkrGetAccountBalanceHistoricalParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_account_balance_params.py b/test/test_ankr_get_account_balance_params.py new file mode 100644 index 0000000..2f24c94 --- /dev/null +++ b/test/test_ankr_get_account_balance_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_account_balance_params import AnkrGetAccountBalanceParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetAccountBalanceParams(unittest.TestCase): + """AnkrGetAccountBalanceParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetAccountBalanceParams(self): + """Test AnkrGetAccountBalanceParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_account_balance_params.AnkrGetAccountBalanceParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_blockchain_stats_body.py b/test/test_ankr_get_blockchain_stats_body.py new file mode 100644 index 0000000..32aa26f --- /dev/null +++ b/test/test_ankr_get_blockchain_stats_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_blockchain_stats_body import AnkrGetBlockchainStatsBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetBlockchainStatsBody(unittest.TestCase): + """AnkrGetBlockchainStatsBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetBlockchainStatsBody(self): + """Test AnkrGetBlockchainStatsBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_blockchain_stats_body.AnkrGetBlockchainStatsBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_blockchain_stats_params.py b/test/test_ankr_get_blockchain_stats_params.py new file mode 100644 index 0000000..6ed6746 --- /dev/null +++ b/test/test_ankr_get_blockchain_stats_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_blockchain_stats_params import AnkrGetBlockchainStatsParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetBlockchainStatsParams(unittest.TestCase): + """AnkrGetBlockchainStatsParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetBlockchainStatsParams(self): + """Test AnkrGetBlockchainStatsParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_blockchain_stats_params.AnkrGetBlockchainStatsParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_blocks_body.py b/test/test_ankr_get_blocks_body.py new file mode 100644 index 0000000..3756ef4 --- /dev/null +++ b/test/test_ankr_get_blocks_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_blocks_body import AnkrGetBlocksBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetBlocksBody(unittest.TestCase): + """AnkrGetBlocksBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetBlocksBody(self): + """Test AnkrGetBlocksBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_blocks_body.AnkrGetBlocksBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_blocks_params.py b/test/test_ankr_get_blocks_params.py new file mode 100644 index 0000000..8a176f4 --- /dev/null +++ b/test/test_ankr_get_blocks_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_blocks_params import AnkrGetBlocksParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetBlocksParams(unittest.TestCase): + """AnkrGetBlocksParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetBlocksParams(self): + """Test AnkrGetBlocksParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_blocks_params.AnkrGetBlocksParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_currencies_body.py b/test/test_ankr_get_currencies_body.py new file mode 100644 index 0000000..44da33e --- /dev/null +++ b/test/test_ankr_get_currencies_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_currencies_body import AnkrGetCurrenciesBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetCurrenciesBody(unittest.TestCase): + """AnkrGetCurrenciesBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetCurrenciesBody(self): + """Test AnkrGetCurrenciesBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_currencies_body.AnkrGetCurrenciesBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_currencies_params.py b/test/test_ankr_get_currencies_params.py new file mode 100644 index 0000000..b274bb0 --- /dev/null +++ b/test/test_ankr_get_currencies_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_currencies_params import AnkrGetCurrenciesParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetCurrenciesParams(unittest.TestCase): + """AnkrGetCurrenciesParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetCurrenciesParams(self): + """Test AnkrGetCurrenciesParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_currencies_params.AnkrGetCurrenciesParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_interactions_body.py b/test/test_ankr_get_interactions_body.py new file mode 100644 index 0000000..ca65bf2 --- /dev/null +++ b/test/test_ankr_get_interactions_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_interactions_body import AnkrGetInteractionsBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetInteractionsBody(unittest.TestCase): + """AnkrGetInteractionsBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetInteractionsBody(self): + """Test AnkrGetInteractionsBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_interactions_body.AnkrGetInteractionsBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_interactions_params.py b/test/test_ankr_get_interactions_params.py new file mode 100644 index 0000000..7fd4661 --- /dev/null +++ b/test/test_ankr_get_interactions_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_interactions_params import AnkrGetInteractionsParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetInteractionsParams(unittest.TestCase): + """AnkrGetInteractionsParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetInteractionsParams(self): + """Test AnkrGetInteractionsParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_interactions_params.AnkrGetInteractionsParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_internal_transactions_by_block_number_body.py b/test/test_ankr_get_internal_transactions_by_block_number_body.py new file mode 100644 index 0000000..717c702 --- /dev/null +++ b/test/test_ankr_get_internal_transactions_by_block_number_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_internal_transactions_by_block_number_body import AnkrGetInternalTransactionsByBlockNumberBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetInternalTransactionsByBlockNumberBody(unittest.TestCase): + """AnkrGetInternalTransactionsByBlockNumberBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetInternalTransactionsByBlockNumberBody(self): + """Test AnkrGetInternalTransactionsByBlockNumberBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_internal_transactions_by_block_number_body.AnkrGetInternalTransactionsByBlockNumberBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_internal_transactions_by_block_number_params.py b/test/test_ankr_get_internal_transactions_by_block_number_params.py new file mode 100644 index 0000000..f53a052 --- /dev/null +++ b/test/test_ankr_get_internal_transactions_by_block_number_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_internal_transactions_by_block_number_params import AnkrGetInternalTransactionsByBlockNumberParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetInternalTransactionsByBlockNumberParams(unittest.TestCase): + """AnkrGetInternalTransactionsByBlockNumberParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetInternalTransactionsByBlockNumberParams(self): + """Test AnkrGetInternalTransactionsByBlockNumberParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_internal_transactions_by_block_number_params.AnkrGetInternalTransactionsByBlockNumberParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_internal_transactions_by_parent_hash_body.py b/test/test_ankr_get_internal_transactions_by_parent_hash_body.py new file mode 100644 index 0000000..33ac390 --- /dev/null +++ b/test/test_ankr_get_internal_transactions_by_parent_hash_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_internal_transactions_by_parent_hash_body import AnkrGetInternalTransactionsByParentHashBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetInternalTransactionsByParentHashBody(unittest.TestCase): + """AnkrGetInternalTransactionsByParentHashBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetInternalTransactionsByParentHashBody(self): + """Test AnkrGetInternalTransactionsByParentHashBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_internal_transactions_by_parent_hash_body.AnkrGetInternalTransactionsByParentHashBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_internal_transactions_by_parent_hash_params.py b/test/test_ankr_get_internal_transactions_by_parent_hash_params.py new file mode 100644 index 0000000..bef842b --- /dev/null +++ b/test/test_ankr_get_internal_transactions_by_parent_hash_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_internal_transactions_by_parent_hash_params import AnkrGetInternalTransactionsByParentHashParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetInternalTransactionsByParentHashParams(unittest.TestCase): + """AnkrGetInternalTransactionsByParentHashParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetInternalTransactionsByParentHashParams(self): + """Test AnkrGetInternalTransactionsByParentHashParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_internal_transactions_by_parent_hash_params.AnkrGetInternalTransactionsByParentHashParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_logs_body.py b/test/test_ankr_get_logs_body.py new file mode 100644 index 0000000..2e8f147 --- /dev/null +++ b/test/test_ankr_get_logs_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_logs_body import AnkrGetLogsBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetLogsBody(unittest.TestCase): + """AnkrGetLogsBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetLogsBody(self): + """Test AnkrGetLogsBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_logs_body.AnkrGetLogsBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_logs_params.py b/test/test_ankr_get_logs_params.py new file mode 100644 index 0000000..0bad243 --- /dev/null +++ b/test/test_ankr_get_logs_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_logs_params import AnkrGetLogsParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetLogsParams(unittest.TestCase): + """AnkrGetLogsParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetLogsParams(self): + """Test AnkrGetLogsParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_logs_params.AnkrGetLogsParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_nft_holders_body.py b/test/test_ankr_get_nft_holders_body.py new file mode 100644 index 0000000..3611416 --- /dev/null +++ b/test/test_ankr_get_nft_holders_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_nft_holders_body import AnkrGetNFTHoldersBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetNFTHoldersBody(unittest.TestCase): + """AnkrGetNFTHoldersBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetNFTHoldersBody(self): + """Test AnkrGetNFTHoldersBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_nft_holders_body.AnkrGetNFTHoldersBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_nft_holders_params.py b/test/test_ankr_get_nft_holders_params.py new file mode 100644 index 0000000..124dfcf --- /dev/null +++ b/test/test_ankr_get_nft_holders_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_nft_holders_params import AnkrGetNFTHoldersParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetNFTHoldersParams(unittest.TestCase): + """AnkrGetNFTHoldersParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetNFTHoldersParams(self): + """Test AnkrGetNFTHoldersParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_nft_holders_params.AnkrGetNFTHoldersParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_nft_metadata_body.py b/test/test_ankr_get_nft_metadata_body.py new file mode 100644 index 0000000..0ec13bc --- /dev/null +++ b/test/test_ankr_get_nft_metadata_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_nft_metadata_body import AnkrGetNFTMetadataBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetNFTMetadataBody(unittest.TestCase): + """AnkrGetNFTMetadataBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetNFTMetadataBody(self): + """Test AnkrGetNFTMetadataBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_nft_metadata_body.AnkrGetNFTMetadataBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_nft_metadata_params.py b/test/test_ankr_get_nft_metadata_params.py new file mode 100644 index 0000000..4c30d14 --- /dev/null +++ b/test/test_ankr_get_nft_metadata_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_nft_metadata_params import AnkrGetNFTMetadataParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetNFTMetadataParams(unittest.TestCase): + """AnkrGetNFTMetadataParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetNFTMetadataParams(self): + """Test AnkrGetNFTMetadataParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_nft_metadata_params.AnkrGetNFTMetadataParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_nft_transfers_body.py b/test/test_ankr_get_nft_transfers_body.py new file mode 100644 index 0000000..42c65fb --- /dev/null +++ b/test/test_ankr_get_nft_transfers_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_nft_transfers_body import AnkrGetNftTransfersBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetNftTransfersBody(unittest.TestCase): + """AnkrGetNftTransfersBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetNftTransfersBody(self): + """Test AnkrGetNftTransfersBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_nft_transfers_body.AnkrGetNftTransfersBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_nft_transfers_params.py b/test/test_ankr_get_nft_transfers_params.py new file mode 100644 index 0000000..07de019 --- /dev/null +++ b/test/test_ankr_get_nft_transfers_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_nft_transfers_params import AnkrGetNftTransfersParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetNftTransfersParams(unittest.TestCase): + """AnkrGetNftTransfersParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetNftTransfersParams(self): + """Test AnkrGetNftTransfersParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_nft_transfers_params.AnkrGetNftTransfersParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_nfts_by_owner_body.py b/test/test_ankr_get_nfts_by_owner_body.py new file mode 100644 index 0000000..532a5b6 --- /dev/null +++ b/test/test_ankr_get_nfts_by_owner_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_nfts_by_owner_body import AnkrGetNFTsByOwnerBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetNFTsByOwnerBody(unittest.TestCase): + """AnkrGetNFTsByOwnerBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetNFTsByOwnerBody(self): + """Test AnkrGetNFTsByOwnerBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_nfts_by_owner_body.AnkrGetNFTsByOwnerBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_nfts_by_owner_params.py b/test/test_ankr_get_nfts_by_owner_params.py new file mode 100644 index 0000000..dfe7233 --- /dev/null +++ b/test/test_ankr_get_nfts_by_owner_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_nfts_by_owner_params import AnkrGetNFTsByOwnerParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetNFTsByOwnerParams(unittest.TestCase): + """AnkrGetNFTsByOwnerParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetNFTsByOwnerParams(self): + """Test AnkrGetNFTsByOwnerParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_nfts_by_owner_params.AnkrGetNFTsByOwnerParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_token_holders_body.py b/test/test_ankr_get_token_holders_body.py new file mode 100644 index 0000000..44c1658 --- /dev/null +++ b/test/test_ankr_get_token_holders_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_token_holders_body import AnkrGetTokenHoldersBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTokenHoldersBody(unittest.TestCase): + """AnkrGetTokenHoldersBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTokenHoldersBody(self): + """Test AnkrGetTokenHoldersBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_token_holders_body.AnkrGetTokenHoldersBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_token_holders_count_body.py b/test/test_ankr_get_token_holders_count_body.py new file mode 100644 index 0000000..826c548 --- /dev/null +++ b/test/test_ankr_get_token_holders_count_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_token_holders_count_body import AnkrGetTokenHoldersCountBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTokenHoldersCountBody(unittest.TestCase): + """AnkrGetTokenHoldersCountBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTokenHoldersCountBody(self): + """Test AnkrGetTokenHoldersCountBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_token_holders_count_body.AnkrGetTokenHoldersCountBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_token_holders_params.py b/test/test_ankr_get_token_holders_params.py new file mode 100644 index 0000000..0a8fe01 --- /dev/null +++ b/test/test_ankr_get_token_holders_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_token_holders_params import AnkrGetTokenHoldersParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTokenHoldersParams(unittest.TestCase): + """AnkrGetTokenHoldersParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTokenHoldersParams(self): + """Test AnkrGetTokenHoldersParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_token_holders_params.AnkrGetTokenHoldersParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_token_price_body.py b/test/test_ankr_get_token_price_body.py new file mode 100644 index 0000000..22ac467 --- /dev/null +++ b/test/test_ankr_get_token_price_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_token_price_body import AnkrGetTokenPriceBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTokenPriceBody(unittest.TestCase): + """AnkrGetTokenPriceBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTokenPriceBody(self): + """Test AnkrGetTokenPriceBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_token_price_body.AnkrGetTokenPriceBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_token_price_history_body.py b/test/test_ankr_get_token_price_history_body.py new file mode 100644 index 0000000..4bc2a14 --- /dev/null +++ b/test/test_ankr_get_token_price_history_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_token_price_history_body import AnkrGetTokenPriceHistoryBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTokenPriceHistoryBody(unittest.TestCase): + """AnkrGetTokenPriceHistoryBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTokenPriceHistoryBody(self): + """Test AnkrGetTokenPriceHistoryBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_token_price_history_body.AnkrGetTokenPriceHistoryBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_token_price_history_params.py b/test/test_ankr_get_token_price_history_params.py new file mode 100644 index 0000000..b11c850 --- /dev/null +++ b/test/test_ankr_get_token_price_history_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_token_price_history_params import AnkrGetTokenPriceHistoryParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTokenPriceHistoryParams(unittest.TestCase): + """AnkrGetTokenPriceHistoryParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTokenPriceHistoryParams(self): + """Test AnkrGetTokenPriceHistoryParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_token_price_history_params.AnkrGetTokenPriceHistoryParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_token_price_params.py b/test/test_ankr_get_token_price_params.py new file mode 100644 index 0000000..9eef4d1 --- /dev/null +++ b/test/test_ankr_get_token_price_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_token_price_params import AnkrGetTokenPriceParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTokenPriceParams(unittest.TestCase): + """AnkrGetTokenPriceParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTokenPriceParams(self): + """Test AnkrGetTokenPriceParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_token_price_params.AnkrGetTokenPriceParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_token_transfers_body.py b/test/test_ankr_get_token_transfers_body.py new file mode 100644 index 0000000..e1bbea5 --- /dev/null +++ b/test/test_ankr_get_token_transfers_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_token_transfers_body import AnkrGetTokenTransfersBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTokenTransfersBody(unittest.TestCase): + """AnkrGetTokenTransfersBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTokenTransfersBody(self): + """Test AnkrGetTokenTransfersBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_token_transfers_body.AnkrGetTokenTransfersBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_transactions_by_address_body.py b/test/test_ankr_get_transactions_by_address_body.py new file mode 100644 index 0000000..89f2ed2 --- /dev/null +++ b/test/test_ankr_get_transactions_by_address_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_transactions_by_address_body import AnkrGetTransactionsByAddressBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTransactionsByAddressBody(unittest.TestCase): + """AnkrGetTransactionsByAddressBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTransactionsByAddressBody(self): + """Test AnkrGetTransactionsByAddressBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_transactions_by_address_body.AnkrGetTransactionsByAddressBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_transactions_by_address_params.py b/test/test_ankr_get_transactions_by_address_params.py new file mode 100644 index 0000000..9133a16 --- /dev/null +++ b/test/test_ankr_get_transactions_by_address_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_transactions_by_address_params import AnkrGetTransactionsByAddressParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTransactionsByAddressParams(unittest.TestCase): + """AnkrGetTransactionsByAddressParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTransactionsByAddressParams(self): + """Test AnkrGetTransactionsByAddressParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_transactions_by_address_params.AnkrGetTransactionsByAddressParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_transactions_by_hash_body.py b/test/test_ankr_get_transactions_by_hash_body.py new file mode 100644 index 0000000..da409b2 --- /dev/null +++ b/test/test_ankr_get_transactions_by_hash_body.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_transactions_by_hash_body import AnkrGetTransactionsByHashBody # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTransactionsByHashBody(unittest.TestCase): + """AnkrGetTransactionsByHashBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTransactionsByHashBody(self): + """Test AnkrGetTransactionsByHashBody""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_transactions_by_hash_body.AnkrGetTransactionsByHashBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_ankr_get_transactions_by_hash_params.py b/test/test_ankr_get_transactions_by_hash_params.py new file mode 100644 index 0000000..544c47c --- /dev/null +++ b/test/test_ankr_get_transactions_by_hash_params.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.ankr_get_transactions_by_hash_params import AnkrGetTransactionsByHashParams # noqa: E501 +from ankr.rest import ApiException + + +class TestAnkrGetTransactionsByHashParams(unittest.TestCase): + """AnkrGetTransactionsByHashParams unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testAnkrGetTransactionsByHashParams(self): + """Test AnkrGetTransactionsByHashParams""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.ankr_get_transactions_by_hash_params.AnkrGetTransactionsByHashParams() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_early_access_api.py b/test/test_early_access_api.py new file mode 100644 index 0000000..1f4697c --- /dev/null +++ b/test/test_early_access_api.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.api.early_access_api import EarlyAccessApi # noqa: E501 +from ankr.rest import ApiException + + +class TestEarlyAccessApi(unittest.TestCase): + """EarlyAccessApi unit test stubs""" + + def setUp(self): + self.api = EarlyAccessApi() # noqa: E501 + + def tearDown(self): + pass + + def test_ankr_get_account_balance_historical_post(self): + """Test case for ankr_get_account_balance_historical_post + + ankr_getAccountBalanceHistorical # noqa: E501 + """ + pass + + def test_ankr_get_internal_transactions_by_block_number_post(self): + """Test case for ankr_get_internal_transactions_by_block_number_post + + ankr_getInternalTransactionsByBlockNumber # noqa: E501 + """ + pass + + def test_ankr_get_internal_transactions_by_parent_hash_post(self): + """Test case for ankr_get_internal_transactions_by_parent_hash_post + + ankr_getInternalTransactionsByParentHash # noqa: E501 + """ + pass + + def test_ankr_get_token_price_history_post(self): + """Test case for ankr_get_token_price_history_post + + ankr_getTokenPriceHistory # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response200.py b/test/test_inline_response200.py new file mode 100644 index 0000000..3b8b864 --- /dev/null +++ b/test/test_inline_response200.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response200 import InlineResponse200 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse200(unittest.TestCase): + """InlineResponse200 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse200(self): + """Test InlineResponse200""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response200.InlineResponse200() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2001.py b/test/test_inline_response2001.py new file mode 100644 index 0000000..0a169b4 --- /dev/null +++ b/test/test_inline_response2001.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response2001 import InlineResponse2001 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse2001(unittest.TestCase): + """InlineResponse2001 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2001(self): + """Test InlineResponse2001""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response2001.InlineResponse2001() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20010.py b/test/test_inline_response20010.py new file mode 100644 index 0000000..212dbf8 --- /dev/null +++ b/test/test_inline_response20010.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20010 import InlineResponse20010 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20010(unittest.TestCase): + """InlineResponse20010 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20010(self): + """Test InlineResponse20010""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20010.InlineResponse20010() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20011.py b/test/test_inline_response20011.py new file mode 100644 index 0000000..f62cb82 --- /dev/null +++ b/test/test_inline_response20011.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20011 import InlineResponse20011 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20011(unittest.TestCase): + """InlineResponse20011 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20011(self): + """Test InlineResponse20011""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20011.InlineResponse20011() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20012.py b/test/test_inline_response20012.py new file mode 100644 index 0000000..56ff9c2 --- /dev/null +++ b/test/test_inline_response20012.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20012 import InlineResponse20012 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20012(unittest.TestCase): + """InlineResponse20012 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20012(self): + """Test InlineResponse20012""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20012.InlineResponse20012() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20013.py b/test/test_inline_response20013.py new file mode 100644 index 0000000..4ee0dd8 --- /dev/null +++ b/test/test_inline_response20013.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20013 import InlineResponse20013 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20013(unittest.TestCase): + """InlineResponse20013 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20013(self): + """Test InlineResponse20013""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20013.InlineResponse20013() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20014.py b/test/test_inline_response20014.py new file mode 100644 index 0000000..f8de738 --- /dev/null +++ b/test/test_inline_response20014.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20014 import InlineResponse20014 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20014(unittest.TestCase): + """InlineResponse20014 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20014(self): + """Test InlineResponse20014""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20014.InlineResponse20014() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20015.py b/test/test_inline_response20015.py new file mode 100644 index 0000000..adca170 --- /dev/null +++ b/test/test_inline_response20015.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20015 import InlineResponse20015 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20015(unittest.TestCase): + """InlineResponse20015 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20015(self): + """Test InlineResponse20015""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20015.InlineResponse20015() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20016.py b/test/test_inline_response20016.py new file mode 100644 index 0000000..07b562b --- /dev/null +++ b/test/test_inline_response20016.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20016 import InlineResponse20016 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20016(unittest.TestCase): + """InlineResponse20016 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20016(self): + """Test InlineResponse20016""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20016.InlineResponse20016() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20017.py b/test/test_inline_response20017.py new file mode 100644 index 0000000..394e376 --- /dev/null +++ b/test/test_inline_response20017.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20017 import InlineResponse20017 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20017(unittest.TestCase): + """InlineResponse20017 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20017(self): + """Test InlineResponse20017""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20017.InlineResponse20017() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20018.py b/test/test_inline_response20018.py new file mode 100644 index 0000000..7160e1c --- /dev/null +++ b/test/test_inline_response20018.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20018 import InlineResponse20018 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20018(unittest.TestCase): + """InlineResponse20018 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20018(self): + """Test InlineResponse20018""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20018.InlineResponse20018() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response20019.py b/test/test_inline_response20019.py new file mode 100644 index 0000000..7333232 --- /dev/null +++ b/test/test_inline_response20019.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response20019 import InlineResponse20019 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse20019(unittest.TestCase): + """InlineResponse20019 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse20019(self): + """Test InlineResponse20019""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response20019.InlineResponse20019() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2002.py b/test/test_inline_response2002.py new file mode 100644 index 0000000..8a5105e --- /dev/null +++ b/test/test_inline_response2002.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response2002 import InlineResponse2002 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse2002(unittest.TestCase): + """InlineResponse2002 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2002(self): + """Test InlineResponse2002""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response2002.InlineResponse2002() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2003.py b/test/test_inline_response2003.py new file mode 100644 index 0000000..74bf0ba --- /dev/null +++ b/test/test_inline_response2003.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response2003 import InlineResponse2003 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse2003(unittest.TestCase): + """InlineResponse2003 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2003(self): + """Test InlineResponse2003""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response2003.InlineResponse2003() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2004.py b/test/test_inline_response2004.py new file mode 100644 index 0000000..497e9e5 --- /dev/null +++ b/test/test_inline_response2004.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response2004 import InlineResponse2004 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse2004(unittest.TestCase): + """InlineResponse2004 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2004(self): + """Test InlineResponse2004""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response2004.InlineResponse2004() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2005.py b/test/test_inline_response2005.py new file mode 100644 index 0000000..ba77aa4 --- /dev/null +++ b/test/test_inline_response2005.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response2005 import InlineResponse2005 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse2005(unittest.TestCase): + """InlineResponse2005 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2005(self): + """Test InlineResponse2005""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response2005.InlineResponse2005() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2006.py b/test/test_inline_response2006.py new file mode 100644 index 0000000..6f0fbee --- /dev/null +++ b/test/test_inline_response2006.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response2006 import InlineResponse2006 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse2006(unittest.TestCase): + """InlineResponse2006 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2006(self): + """Test InlineResponse2006""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response2006.InlineResponse2006() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2007.py b/test/test_inline_response2007.py new file mode 100644 index 0000000..fad33f2 --- /dev/null +++ b/test/test_inline_response2007.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response2007 import InlineResponse2007 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse2007(unittest.TestCase): + """InlineResponse2007 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2007(self): + """Test InlineResponse2007""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response2007.InlineResponse2007() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2008.py b/test/test_inline_response2008.py new file mode 100644 index 0000000..0cd4eac --- /dev/null +++ b/test/test_inline_response2008.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response2008 import InlineResponse2008 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse2008(unittest.TestCase): + """InlineResponse2008 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2008(self): + """Test InlineResponse2008""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response2008.InlineResponse2008() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_inline_response2009.py b/test/test_inline_response2009.py new file mode 100644 index 0000000..44567d8 --- /dev/null +++ b/test/test_inline_response2009.py @@ -0,0 +1,39 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.models.inline_response2009 import InlineResponse2009 # noqa: E501 +from ankr.rest import ApiException + + +class TestInlineResponse2009(unittest.TestCase): + """InlineResponse2009 unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testInlineResponse2009(self): + """Test InlineResponse2009""" + # FIXME: construct object with mandatory attributes with example values + # model = ankr.models.inline_response2009.InlineResponse2009() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_nft_api_api.py b/test/test_nft_api_api.py new file mode 100644 index 0000000..29946ec --- /dev/null +++ b/test/test_nft_api_api.py @@ -0,0 +1,61 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.api.nft_api_api import NFTAPIApi # noqa: E501 +from ankr.rest import ApiException + + +class TestNFTAPIApi(unittest.TestCase): + """NFTAPIApi unit test stubs""" + + def setUp(self): + self.api = NFTAPIApi() # noqa: E501 + + def tearDown(self): + pass + + def test_ankr_get_nft_holders_post(self): + """Test case for ankr_get_nft_holders_post + + ankr_getNFTHolders # noqa: E501 + """ + pass + + def test_ankr_get_nft_metadata_post(self): + """Test case for ankr_get_nft_metadata_post + + ankr_getNFTMetadata # noqa: E501 + """ + pass + + def test_ankr_get_nft_transfers_post(self): + """Test case for ankr_get_nft_transfers_post + + ankr_getNftTransfers # noqa: E501 + """ + pass + + def test_ankr_get_nfts_by_owner_post(self): + """Test case for ankr_get_nfts_by_owner_post + + ankr_getNFTsByOwner # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_query_api_api.py b/test/test_query_api_api.py new file mode 100644 index 0000000..7d215c2 --- /dev/null +++ b/test/test_query_api_api.py @@ -0,0 +1,82 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.api.query_api_api import QueryAPIApi # noqa: E501 +from ankr.rest import ApiException + + +class TestQueryAPIApi(unittest.TestCase): + """QueryAPIApi unit test stubs""" + + def setUp(self): + self.api = QueryAPIApi() # noqa: E501 + + def tearDown(self): + pass + + def test_ankr_get_blockchain_stats_post(self): + """Test case for ankr_get_blockchain_stats_post + + ankr_getBlockchainStats # noqa: E501 + """ + pass + + def test_ankr_get_blocks_post(self): + """Test case for ankr_get_blocks_post + + ankr_getBlocks # noqa: E501 + """ + pass + + def test_ankr_get_interactions_post(self): + """Test case for ankr_get_interactions_post + + ankr_getInteractions # noqa: E501 + """ + pass + + def test_ankr_get_logs_post(self): + """Test case for ankr_get_logs_post + + ankr_getLogs # noqa: E501 + """ + pass + + def test_ankr_get_token_transfers_post(self): + """Test case for ankr_get_token_transfers_post + + ankr_getTokenTransfers # noqa: E501 + """ + pass + + def test_ankr_get_transactions_by_address_post(self): + """Test case for ankr_get_transactions_by_address_post + + ankr_getTransactionsByAddress # noqa: E501 + """ + pass + + def test_ankr_get_transactions_by_hash_post(self): + """Test case for ankr_get_transactions_by_hash_post + + ankr_getTransactionsByHash # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_token_api_api.py b/test/test_token_api_api.py new file mode 100644 index 0000000..dec0a3f --- /dev/null +++ b/test/test_token_api_api.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + Ankr Advanced API + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +from __future__ import absolute_import + +import unittest + +import ankr +from ankr.api.token_api_api import TokenAPIApi # noqa: E501 +from ankr.rest import ApiException + + +class TestTokenAPIApi(unittest.TestCase): + """TokenAPIApi unit test stubs""" + + def setUp(self): + self.api = TokenAPIApi() # noqa: E501 + + def tearDown(self): + pass + + def test_ankr_explain_token_price_post(self): + """Test case for ankr_explain_token_price_post + + ankr_explainTokenPrice # noqa: E501 + """ + pass + + def test_ankr_get_account_balance_post(self): + """Test case for ankr_get_account_balance_post + + ankr_getAccountBalance # noqa: E501 + """ + pass + + def test_ankr_get_currencies_post(self): + """Test case for ankr_get_currencies_post + + ankr_getCurrencies # noqa: E501 + """ + pass + + def test_ankr_get_token_holders_count_post(self): + """Test case for ankr_get_token_holders_count_post + + ankr_getTokenHoldersCount # noqa: E501 + """ + pass + + def test_ankr_get_token_holders_post(self): + """Test case for ankr_get_token_holders_post + + ankr_getTokenHolders # noqa: E501 + """ + pass + + def test_ankr_get_token_price_post(self): + """Test case for ankr_get_token_price_post + + ankr_getTokenPrice # noqa: E501 + """ + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/tests/conftest.py b/tests/conftest.py deleted file mode 100644 index 8d94d49..0000000 --- a/tests/conftest.py +++ /dev/null @@ -1,17 +0,0 @@ -import os - -import pytest - -from ankr import AnkrAdvancedAPI - - -@pytest.fixture -def api_key() -> str: - key = os.environ.get("ANKR_API_KEY") - assert key - return key - - -@pytest.fixture -def client(api_key: str) -> AnkrAdvancedAPI: - return AnkrAdvancedAPI(api_key) diff --git a/tests/test_client.py b/tests/test_client.py deleted file mode 100644 index adc9362..0000000 --- a/tests/test_client.py +++ /dev/null @@ -1,219 +0,0 @@ -from __future__ import annotations - -import datetime - -import pytest - -from ankr.advanced_apis import AnkrAdvancedAPI -from ankr.types import Blockchain, NftContractType - - -def test_client_api_key() -> None: - assert ( - AnkrAdvancedAPI("my-test-api-key").provider.endpoint_uri - == "https://rpc.ankr.com/multichain/my-test-api-key" - ) - - -@pytest.mark.webtest -def test_get_logs(client: AnkrAdvancedAPI) -> None: - logs = list( - client.get_logs( - blockchain=Blockchain.ETH, - from_block="0xdaf6b1", - to_block=14350010, - address=["0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2"], - topics=[ - [], - ["0x000000000000000000000000def1c0ded9bec7f1a1670819833240f027b25eff"], - ], - decode_logs=True, - ) - ) - - assert len(logs) == 18 - assert logs[0].address == "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2" - assert logs[0].event - assert logs[0].event.name == "Transfer" - - -@pytest.mark.webtest -def test_get_blocks(client: AnkrAdvancedAPI) -> None: - blocks = client.get_blocks( - blockchain=Blockchain.ETH, - from_block=14500001, - to_block=14500001, - desc_order=True, - include_logs=True, - include_txs=True, - decode_logs=True, - ) - - assert len(blocks) == 1 - assert blocks[0].transactions - assert len(blocks[0].transactions) == 99 - assert blocks[0].transactions[6].logs - assert len(blocks[0].transactions[6].logs) == 1 - - -@pytest.mark.webtest -def test_get_nfts(client: AnkrAdvancedAPI) -> None: - nfts = list( - client.get_nfts( - blockchain=Blockchain.ETH, - wallet_address="0x0E11A192d574b342C51be9e306694C41547185DD", - filter=[ - {"0x700b4b9f39bb1faf5d0d16a20488f2733550bff4": []}, - {"0xd8682bfa6918b0174f287b888e765b9a1b4dc9c3": ["8937"]}, - ], - ) - ) - - assert len(nfts) > 0 - assert nfts[0].blockchain == Blockchain.ETH - assert nfts[0].traits - assert len(nfts[0].traits) > 0 - - -@pytest.mark.webtest -def test_get_nft_metadata(client: AnkrAdvancedAPI) -> None: - reply = client.get_nft_metadata( - blockchain="eth", - contract_address="0x4100670ee2f8aef6c47a4ed13c7f246e621228ec", - token_id="4", - ) - - assert reply.metadata - assert reply.metadata.blockchain == "eth" - assert reply.metadata.contract_type == NftContractType.ERC1155 - assert reply.attributes - assert reply.attributes.name == "Overleveraged" - - -@pytest.mark.webtest -def test_get_nft_holders(client: AnkrAdvancedAPI) -> None: - holders = list( - client.get_nft_holders( - blockchain="eth", - contract_address="0x4100670ee2f8aef6c47a4ed13c7f246e621228ec", - limit=10, - ) - ) - - assert holders - assert len(holders) == 10 - - -@pytest.mark.webtest -def test_get_transactions(client: AnkrAdvancedAPI) -> None: - tx = client.get_transaction( - transaction_hash="0x82c13aaac6f0b6471afb94a3a64ae89d45baa3608ad397621dbb0d847f51196f", - include_logs=True, - decode_logs=True, - decode_tx_data=True, - ) - - assert tx - assert ( - tx.hash == "0x82c13aaac6f0b6471afb94a3a64ae89d45baa3608ad397621dbb0d847f51196f" - ) - assert tx.to_address == "0x98767abab06e45a181ab73ae4cd0fecd0fbd0cd0" - assert tx.from_address == "0x64aa6f93e0e1f49ff4958990c40d4bf17dafc0eb" - assert tx.logs - assert tx.logs[0].event - assert tx.logs[0].event.name == "Transfer" - - -@pytest.mark.webtest -def test_get_token_holders(client: AnkrAdvancedAPI) -> None: - holders = list( - client.get_token_holders( - blockchain="bsc", - contract_address="0xf307910A4c7bbc79691fD374889b36d8531B08e3", - limit=10, - ) - ) - - assert len(holders) == 10 - assert holders[0].holder_address.startswith("0x") - assert "." in holders[0].balance - assert holders[0].balance_raw_integer.isnumeric() - - -@pytest.mark.webtest -def test_get_token_holders_pagination(client: AnkrAdvancedAPI) -> None: - holders = list( - client.get_token_holders( - blockchain="bsc", - contract_address="0xf307910A4c7bbc79691fD374889b36d8531B08e3", - limit=None, - ) - ) - - assert len(holders) > 1000 - assert holders[0].holder_address.startswith("0x") - assert "." in holders[0].balance - assert holders[0].balance_raw_integer.isnumeric() - - -@pytest.mark.webtest -def test_get_token_holders_count_history(client: AnkrAdvancedAPI) -> None: - daily_holders_counts = list( - client.get_token_holders_count_history( - blockchain="bsc", - contract_address="0xf307910A4c7bbc79691fD374889b36d8531B08e3", - limit=10, - ) - ) - - assert len(daily_holders_counts) == 10 - assert daily_holders_counts[0].holder_count > 0 - datetime.datetime.strptime( - daily_holders_counts[0].last_updated_at, "%Y-%m-%dT%H:%M:%SZ" - ) - - -@pytest.mark.webtest -def test_get_token_holders_count(client: AnkrAdvancedAPI) -> None: - holders_count = client.get_token_holders_count( - blockchain="bsc", - contract_address="0xf307910A4c7bbc79691fD374889b36d8531B08e3", - ) - - assert holders_count - assert holders_count.holder_count > 0 - datetime.datetime.strptime(holders_count.last_updated_at, "%Y-%m-%dT%H:%M:%SZ") - - -@pytest.mark.webtest -def test_get_account_balance(client: AnkrAdvancedAPI) -> None: - assets = list( - client.get_account_balance( - wallet_address="0x77A859A53D4de24bBC0CC80dD93Fbe391Df45527", - blockchain=["eth", "bsc"], - ) - ) - - assert assets - assert len(assets) > 0 - - -@pytest.mark.webtest -def test_get_token_price(client: AnkrAdvancedAPI) -> None: - price = client.get_token_price( - contract_address="0x8290333cef9e6d528dd5618fb97a76f268f3edd4", - blockchain="eth", - ) - - assert price - assert float(price) > 0 - - -@pytest.mark.webtest -def test_get_token_price__no_price(client: AnkrAdvancedAPI) -> None: - price = client.get_token_price( - contract_address="0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee", - blockchain="eth", - ) - - assert price == "0" diff --git a/tests/test_providers.py b/tests/test_providers.py deleted file mode 100644 index bdd5278..0000000 --- a/tests/test_providers.py +++ /dev/null @@ -1,52 +0,0 @@ -from __future__ import annotations - -from ankr.providers import ( - ArbitrumHTTPProvider, - AvalancheHTTPProvider, - BscHTTPProvider, - CeloHTTPProvider, - EthHTTPProvider, - FantomHTTPProvider, - GnosisHTTPProvider, - HarmonyHTTPProvider, - IotexHTTPProvider, - MoonbeamHTTPProvider, - MultichainHTTPProvider, - NearHTTPProvider, - NervosHTTPProvider, - OptimismHTTPProvider, - PolygonHTTPProvider, - SolanaHTTPProvider, - SyscoinHTTPProvider, -) - - -def test_provider_api_key() -> None: - assert ( - MultichainHTTPProvider("my-test-api-key").endpoint_uri - == "https://rpc.ankr.com/multichain/my-test-api-key" - ) - - -def test_chain_providers() -> None: - assert ArbitrumHTTPProvider().endpoint_uri == "https://rpc.ankr.com/arbitrum/" - assert AvalancheHTTPProvider().endpoint_uri == "https://rpc.ankr.com/avalanche/" - assert BscHTTPProvider().endpoint_uri == "https://rpc.ankr.com/bsc/" - assert CeloHTTPProvider().endpoint_uri == "https://rpc.ankr.com/celo/" - assert EthHTTPProvider().endpoint_uri == "https://rpc.ankr.com/eth/" - assert FantomHTTPProvider().endpoint_uri == "https://rpc.ankr.com/fantom/" - assert GnosisHTTPProvider().endpoint_uri == "https://rpc.ankr.com/gnosis/" - assert HarmonyHTTPProvider().endpoint_uri == "https://rpc.ankr.com/harmony/" - assert IotexHTTPProvider().endpoint_uri == "https://rpc.ankr.com/iotex/" - assert MoonbeamHTTPProvider().endpoint_uri == "https://rpc.ankr.com/moonbeam/" - assert NearHTTPProvider().endpoint_uri == "https://rpc.ankr.com/near/" - assert NervosHTTPProvider().endpoint_uri == "https://rpc.ankr.com/nervos/" - assert OptimismHTTPProvider().endpoint_uri == "https://rpc.ankr.com/optimism/" - assert PolygonHTTPProvider().endpoint_uri == "https://rpc.ankr.com/polygon/" - assert SolanaHTTPProvider().endpoint_uri == "https://rpc.ankr.com/solana/" - assert SyscoinHTTPProvider().endpoint_uri == "https://rpc.ankr.com/syscoin/" - - assert ( - ArbitrumHTTPProvider(api_key="123").endpoint_uri - == "https://rpc.ankr.com/arbitrum/123" - ) diff --git a/tests/test_web3.py b/tests/test_web3.py deleted file mode 100644 index a086d6d..0000000 --- a/tests/test_web3.py +++ /dev/null @@ -1,34 +0,0 @@ -from __future__ import annotations - -import pytest - -from ankr.web3 import AnkrWeb3 - - -@pytest.mark.webtest -@pytest.mark.parametrize( - "blockchain", - [ - "eth", - "arbitrum", - "avalanche", - "bsc", - "celo", - "fantom", - "gnosis", - "harmony", - "iotex", - "moonbeam", - "nervos", - "optimism", - "polygon", - "syscoin", - ], -) -def test_ankr_web3(blockchain: str, api_key: str) -> None: - w3 = AnkrWeb3(api_key) - - block = getattr(w3, blockchain).get_block("latest") - - assert block - assert block.get("number") diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..a310bec --- /dev/null +++ b/tox.ini @@ -0,0 +1,10 @@ +[tox] +envlist = py3 + +[testenv] +deps=-r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +commands= + nosetests \ + []