Skip to content

Commit

Permalink
Fixed generated files to handle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCuckoo committed Nov 15, 2023
1 parent 3470cf8 commit 2015493
Show file tree
Hide file tree
Showing 84 changed files with 776 additions and 264 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ __pycache__/

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_explain_token_price_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_account_balance_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_account_balance_historical_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_blockchain_stats_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_blocks_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_currencies_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_interactions_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_logs_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_nft_holders_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_nft_metadata_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_nft_transfers_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_nfts_by_owner_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_token_holders_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_token_holders_count_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_token_price_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_token_price_history_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_token_transfers_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
5 changes: 2 additions & 3 deletions ankr/models/ankr_get_transactions_by_address_body.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ def __init__(self, id=None, jsonrpc=None, method=None, params=None): # noqa: E5
self._method = None
self._params = None
self.discriminator = None
self.id = id
if id is not None:
self.id = id
self.jsonrpc = jsonrpc
self.method = method
self.params = params
Expand All @@ -71,8 +72,6 @@ def id(self, id):
: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

Expand Down
Loading

0 comments on commit 2015493

Please sign in to comment.