diff --git a/.gitignore b/.gitignore index 07f4af0350..e68ecfe096 100644 --- a/.gitignore +++ b/.gitignore @@ -160,33 +160,7 @@ contracts/exchange-forwarder/generated-wrappers/ contracts/exchange-forwarder/test/generated-wrappers/ contracts/dev-utils/generated-wrappers/ contracts/dev-utils/test/generated-wrappers/ -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/dev_utils/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc20_token/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/exchange/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/asset_proxy_owner/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/coordinator/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/coordinator_registry/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/dummy_erc20_token/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/dummy_erc721_token/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/dutch_auction/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc1155_mintable/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc1155_proxy/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc20_bridge_proxy/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc20_proxy/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc721_proxy/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/erc721_token/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/forwarder/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/i_asset_proxy/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/i_validator/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/i_wallet/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/multi_asset_proxy/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/order_validator/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/staking/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/staking_proxy/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/static_call_proxy/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/weth9/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/zrx_token/__init__.py -python-packages/contract_wrappers/src/zero_ex/contract_wrappers/zrx_vault/__init__.py +python-packages/contract_wrappers/src/zero_ex/contract_wrappers/*/__init__.py # solc-bin in sol-compiler packages/sol-compiler/solc_bin/ diff --git a/python-packages/contract_wrappers/setup.py b/python-packages/contract_wrappers/setup.py index dd95ec5a55..82ed7b2936 100755 --- a/python-packages/contract_wrappers/setup.py +++ b/python-packages/contract_wrappers/setup.py @@ -6,6 +6,7 @@ # we import things outside of top-level because 3rd party libs may not yet be # installed when you invoke this script +from glob import glob import subprocess # nosec from shutil import rmtree from os import environ, path, remove @@ -18,30 +19,6 @@ from setuptools.command.test import test as TestCommand -CONTRACTS_TO_BE_WRAPPED = [ - "asset_proxy_owner", - "coordinator", - "coordinator_registry", - "dev_utils", - "dummy_erc20_token", - "dummy_erc721_token", - "dutch_auction", - "erc20_proxy", - "erc20_token", - "erc721_proxy", - "erc721_token", - "exchange", - "forwarder", - "i_asset_proxy", - "i_validator", - "i_wallet", - "multi_asset_proxy", - "order_validator", - "weth9", - "zrx_token", -] - - class PreInstallCommand(distutils.command.build_py.build_py): """Custom setuptools command class for pulling in generated code.""" @@ -128,11 +105,27 @@ def run(self): rmtree(".mypy_cache", ignore_errors=True) rmtree(".tox", ignore_errors=True) rmtree(".pytest_cache", ignore_errors=True) - rmtree("src/0x_contract_wrappers.egg-info", ignore_errors=True) + rmtree( + path.join("src", "0x_contract_wrappers.egg-info"), + ignore_errors=True, + ) # generated files: - for contract in CONTRACTS_TO_BE_WRAPPED: + print("Removing src/zero_ex/contract_wrappers/*/__init__.py...") + for contract in glob( + path.join( + ".", "src", "zero_ex", "contract_wrappers", "*", "__init__.py" + ) + ): try: - remove(f"src/zero_ex/contract_wrappers/{contract}/__init__.py") + remove( + path.join( + "src", + "zero_ex", + "contract_wrappers", + contract, + "__init__.py", + ) + ) except FileNotFoundError: pass diff --git a/python-packages/sra_client/CHANGELOG.md b/python-packages/sra_client/CHANGELOG.md index 6d5f3c7f9f..264e7d0b05 100644 --- a/python-packages/sra_client/CHANGELOG.md +++ b/python-packages/sra_client/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 5.0.0 - TBD + +- Renamed class DefaultApi to RelayerApi, and changed its construction parameters. +- Updated documentation to include schemas for request payloads and responses, and to demonstrate the RelayerApi.get_order_config() method. +- Fixed bug with numeric types not being handled properly for asset data trade info and order config methods. + ## 4.0.0 - 2019-12-03 - Migrated from v2 to v3 of the 0x protocol. diff --git a/python-packages/sra_client/src/index.rst b/python-packages/sra_client/src/index.rst index ee65300a57..d05a4a98f2 100644 --- a/python-packages/sra_client/src/index.rst +++ b/python-packages/sra_client/src/index.rst @@ -9,10 +9,55 @@ Python zero_ex.sra_client .. automodule:: zero_ex.sra_client -zero_ex.sra_client.DefaultApi +zero_ex.sra_client.RelayerApi ============================= -.. autoclass:: zero_ex.sra_client.DefaultApi +.. autoclass:: zero_ex.sra_client.RelayerApi + :members: + +zero_ex.sra_client.models +========================= + +.. autoclass:: zero_ex.sra_client.models.relayer_api_asset_data_pairs_response_schema.RelayerApiAssetDataPairsResponseSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_asset_data_trade_info_schema.RelayerApiAssetDataTradeInfoSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_error_response_schema.RelayerApiErrorResponseSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_error_response_schema_validation_errors.RelayerApiErrorResponseSchemaValidationErrors + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_fee_recipients_response_schema.RelayerApiFeeRecipientsResponseSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_orderbook_response_schema.RelayerApiOrderbookResponseSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_order_config_payload_schema.RelayerApiOrderConfigPayloadSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_order_config_response_schema.RelayerApiOrderConfigResponseSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_orders_channel_subscribe_payload_schema.RelayerApiOrdersChannelSubscribePayloadSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_orders_channel_subscribe_schema.RelayerApiOrdersChannelSubscribeSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_orders_channel_update_schema.RelayerApiOrdersChannelUpdateSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_order_schema.RelayerApiOrderSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.relayer_api_orders_response_schema.RelayerApiOrdersResponseSchema + :members: + +.. autoclass:: zero_ex.sra_client.models.signed_order_schema.SignedOrderSchema :members: Indices and tables diff --git a/python-packages/sra_client/src/zero_ex/sra_client/__init__.py b/python-packages/sra_client/src/zero_ex/sra_client/__init__.py index ec95bd554b..d65f723dec 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/__init__.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/__init__.py @@ -42,10 +42,8 @@ Configure and create an API client instance ------------------------------------------- ->>> from zero_ex.sra_client import ApiClient, Configuration, DefaultApi ->>> config = Configuration() ->>> config.host = "http://localhost:3000" ->>> relayer = DefaultApi(ApiClient(config)) +>>> from zero_ex.sra_client import RelayerApi +>>> relayer = RelayerApi("http://localhost:3000") Preparing to trade ------------------ @@ -121,10 +119,39 @@ ... ) ... ) +Before hashing and submitting our order, it's a good idea to ask the relayer +how to configure the order, so that the submission won't be rejected: + +>>> order_config = relayer.get_order_config( +... relayer_api_order_config_payload_schema={ +... "makerAddress": order["makerAddress"], +... "takerAddress": order["takerAddress"], +... "makerAssetAmount": order["makerAssetAmount"], +... "takerAssetAmount": order["takerAssetAmount"], +... "expirationTimeSeconds": order["expirationTimeSeconds"], +... "makerAssetData": '0x' + order["makerAssetData"].hex(), +... "takerAssetData": '0x' + order["takerAssetData"].hex(), +... "exchangeAddress": contract_addresses.exchange, +... } +... ) +>>> order_config +{'fee_recipient_address': '0x0000000000000000000000000000000000000001', + 'maker_fee': '0', + 'sender_address': '0x0000000000000000000000000000000000000000', + 'taker_fee': '0'} + +Now we'll apply that configuration to our order before proceeding: + +>>> order["feeRecipientAddress"] = order_config.fee_recipient_address +>>> order["makerFee"] = int(order_config.maker_fee) +>>> order["takerFee"] = int(order_config.taker_fee) +>>> order["senderAddress"] = order_config.sender_address + >>> from zero_ex.order_utils import generate_order_hash_hex >>> order_hash_hex = generate_order_hash_hex( ... order, contract_addresses.exchange, Web3(eth_node).eth.chainId ... ) + >>> relayer.post_order_with_http_info( ... signed_order_schema=order_to_jsdict( ... order=order, @@ -155,7 +182,7 @@ 'order': {'chainId': 1337, 'exchangeAddress': '0x...', 'expirationTimeSeconds': '...', - 'feeRecipientAddress': '0x0000000000000000000000000000000000000000', + 'feeRecipientAddress': '0x0000000000000000000000000000000000000001', 'makerAddress': '0x...', 'makerAssetAmount': '2', 'makerAssetData': '0xf47261b0000000000000000000000000...', @@ -182,7 +209,7 @@ 'order': {'chainId': 1337, 'exchangeAddress': '0x...', 'expirationTimeSeconds': '...', - 'feeRecipientAddress': '0x0000000000000000000000000000000000000000', + 'feeRecipientAddress': '0x0000000000000000000000000000000000000001', 'makerAddress': '0x...', 'makerAssetAmount': '2', 'makerAssetData': '0xf47261b000000000000000000000000...', @@ -242,7 +269,7 @@ 'order': {'chainId': 1337, 'exchangeAddress': '0x...', 'expirationTimeSeconds': '...', - 'feeRecipientAddress': '0x0000000000000000000000000000000000000000', + 'feeRecipientAddress': '0x0000000000000000000000000000000000000001', 'makerAddress': '0x...', 'makerAssetAmount': '2', 'makerAssetData': '0xf47261b0000000000000000000000000...', @@ -278,7 +305,7 @@ >>> pprint(order) {'chainId': 1337, 'expirationTimeSeconds': ..., - 'feeRecipientAddress': '0x0000000000000000000000000000000000000000', + 'feeRecipientAddress': '0x0000000000000000000000000000000000000001', 'makerAddress': '0x...', 'makerAssetAmount': 2, 'makerAssetData': b... @@ -403,7 +430,7 @@ __version__ = "1.0.0" # import apis into sdk package -from .api.default_api import DefaultApi +from .api.relayer_api import RelayerApi # import ApiClient from .api_client import ApiClient diff --git a/python-packages/sra_client/src/zero_ex/sra_client/api/__init__.py b/python-packages/sra_client/src/zero_ex/sra_client/api/__init__.py index 01214f1cba..a98e99e272 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/api/__init__.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/api/__init__.py @@ -3,4 +3,4 @@ # flake8: noqa # import apis into api package -from zero_ex.sra_client.api.default_api import DefaultApi +from zero_ex.sra_client.api.relayer_api import RelayerApi diff --git a/python-packages/sra_client/src/zero_ex/sra_client/api/default_api.py b/python-packages/sra_client/src/zero_ex/sra_client/api/relayer_api.py similarity index 99% rename from python-packages/sra_client/src/zero_ex/sra_client/api/default_api.py rename to python-packages/sra_client/src/zero_ex/sra_client/api/relayer_api.py index f6457ff702..ef74aaf24b 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/api/default_api.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/api/relayer_api.py @@ -9,23 +9,24 @@ import six from zero_ex.sra_client.api_client import ApiClient +from zero_ex.sra_client.configuration import Configuration from zero_ex.sra_client.models.relayer_api_order_config_payload_schema import ( RelayerApiOrderConfigPayloadSchema, ) -class DefaultApi(object): - """Default API for SRA compliant 0x relayers.""" +class RelayerApi(object): + """API for SRA compliant 0x relayers.""" # NOTE: This class is auto generated by OpenAPI Generator # Ref: https://openapi-generator.tech # Do not edit the class manually. - def __init__(self, api_client=None): - if api_client is None: - api_client = ApiClient() - self.api_client = api_client + def __init__(self, url: str): + config = Configuration() + config.host = url + self.api_client = ApiClient(config) def get_asset_pairs(self, **kwargs): """get_asset_pairs diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/order_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/order_schema.py index 9b84a227d9..568cc7ec26 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/order_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/order_schema.py @@ -8,12 +8,6 @@ class OrderSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/paginated_collection_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/paginated_collection_schema.py index 4c73d31f44..4a327b0040 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/paginated_collection_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/paginated_collection_schema.py @@ -8,12 +8,6 @@ class PaginatedCollectionSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_asset_data_pairs_response_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_asset_data_pairs_response_schema.py index 97110b13a6..cc5cea4751 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_asset_data_pairs_response_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_asset_data_pairs_response_schema.py @@ -8,12 +8,6 @@ class RelayerApiAssetDataPairsResponseSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -35,10 +29,9 @@ def __init__(self, records=None): # noqa: E501 @property def records(self): - """Gets the records of this RelayerApiAssetDataPairsResponseSchema. # noqa: E501 + """Gets the records of this RelayerApiAssetDataPairsResponseSchema. - - :return: The records of this RelayerApiAssetDataPairsResponseSchema. # noqa: E501 + :return: The records of this RelayerApiAssetDataPairsResponseSchema. :rtype: list[object] """ return self._records @@ -47,8 +40,7 @@ def records(self): def records(self, records): """Sets the records of this RelayerApiAssetDataPairsResponseSchema. - - :param records: The records of this RelayerApiAssetDataPairsResponseSchema. # noqa: E501 + :param records: The records of this RelayerApiAssetDataPairsResponseSchema. :type: list[object] """ if records is None: diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_asset_data_trade_info_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_asset_data_trade_info_schema.py index c449d0a6af..387642678c 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_asset_data_trade_info_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_asset_data_trade_info_schema.py @@ -8,12 +8,6 @@ class RelayerApiAssetDataTradeInfoSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -56,10 +50,10 @@ def __init__( @property def asset_data(self): - """Gets the asset_data of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + """Gets the asset_data of this RelayerApiAssetDataTradeInfoSchema. - :return: The asset_data of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + :return: The asset_data of this RelayerApiAssetDataTradeInfoSchema. :rtype: str """ return self._asset_data @@ -69,7 +63,7 @@ def asset_data(self, asset_data): """Sets the asset_data of this RelayerApiAssetDataTradeInfoSchema. - :param asset_data: The asset_data of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + :param asset_data: The asset_data of this RelayerApiAssetDataTradeInfoSchema. :type: str """ if asset_data is None: @@ -87,10 +81,10 @@ def asset_data(self, asset_data): @property def min_amount(self): - """Gets the min_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + """Gets the min_amount of this RelayerApiAssetDataTradeInfoSchema. - :return: The min_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + :return: The min_amount of this RelayerApiAssetDataTradeInfoSchema. :rtype: str """ return self._min_amount @@ -100,24 +94,24 @@ def min_amount(self, min_amount): """Sets the min_amount of this RelayerApiAssetDataTradeInfoSchema. - :param min_amount: The min_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + :param min_amount: The min_amount of this RelayerApiAssetDataTradeInfoSchema. :type: str """ if min_amount is not None and not re.search( - r"^\\d+$", min_amount + r"^\d+$", min_amount ): # noqa: E501 raise ValueError( - r"Invalid value for `min_amount`, must be a follow pattern or equal to `/^\\d+$/`" + r"Invalid value for `min_amount`, must be a follow pattern or equal to `/^\d+$/`" ) # noqa: E501 self._min_amount = min_amount @property def max_amount(self): - """Gets the max_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + """Gets the max_amount of this RelayerApiAssetDataTradeInfoSchema. - :return: The max_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + :return: The max_amount of this RelayerApiAssetDataTradeInfoSchema. :rtype: str """ return self._max_amount @@ -127,24 +121,24 @@ def max_amount(self, max_amount): """Sets the max_amount of this RelayerApiAssetDataTradeInfoSchema. - :param max_amount: The max_amount of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + :param max_amount: The max_amount of this RelayerApiAssetDataTradeInfoSchema. :type: str """ if max_amount is not None and not re.search( - r"^\\d+$", max_amount + r"^\d+$", max_amount ): # noqa: E501 raise ValueError( - r"Invalid value for `max_amount`, must be a follow pattern or equal to `/^\\d+$/`" + r"Invalid value for `max_amount`, must be a follow pattern or equal to `/^\d+$/`" ) # noqa: E501 self._max_amount = max_amount @property def precision(self): - """Gets the precision of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + """Gets the precision of this RelayerApiAssetDataTradeInfoSchema. - :return: The precision of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + :return: The precision of this RelayerApiAssetDataTradeInfoSchema. :rtype: float """ return self._precision @@ -154,7 +148,7 @@ def precision(self, precision): """Sets the precision of this RelayerApiAssetDataTradeInfoSchema. - :param precision: The precision of this RelayerApiAssetDataTradeInfoSchema. # noqa: E501 + :param precision: The precision of this RelayerApiAssetDataTradeInfoSchema. :type: float """ diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_error_response_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_error_response_schema.py index fd06bb9f48..db21a30514 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_error_response_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_error_response_schema.py @@ -8,12 +8,6 @@ class RelayerApiErrorResponseSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -50,10 +44,10 @@ def __init__( @property def code(self): - """Gets the code of this RelayerApiErrorResponseSchema. # noqa: E501 + """Gets the code of this RelayerApiErrorResponseSchema. - :return: The code of this RelayerApiErrorResponseSchema. # noqa: E501 + :return: The code of this RelayerApiErrorResponseSchema. :rtype: int """ return self._code @@ -63,7 +57,7 @@ def code(self, code): """Sets the code of this RelayerApiErrorResponseSchema. - :param code: The code of this RelayerApiErrorResponseSchema. # noqa: E501 + :param code: The code of this RelayerApiErrorResponseSchema. :type: int """ if code is None: @@ -83,10 +77,10 @@ def code(self, code): @property def reason(self): - """Gets the reason of this RelayerApiErrorResponseSchema. # noqa: E501 + """Gets the reason of this RelayerApiErrorResponseSchema. - :return: The reason of this RelayerApiErrorResponseSchema. # noqa: E501 + :return: The reason of this RelayerApiErrorResponseSchema. :rtype: str """ return self._reason @@ -96,7 +90,7 @@ def reason(self, reason): """Sets the reason of this RelayerApiErrorResponseSchema. - :param reason: The reason of this RelayerApiErrorResponseSchema. # noqa: E501 + :param reason: The reason of this RelayerApiErrorResponseSchema. :type: str """ if reason is None: @@ -108,10 +102,10 @@ def reason(self, reason): @property def validation_errors(self): - """Gets the validation_errors of this RelayerApiErrorResponseSchema. # noqa: E501 + """Gets the validation_errors of this RelayerApiErrorResponseSchema. - :return: The validation_errors of this RelayerApiErrorResponseSchema. # noqa: E501 + :return: The validation_errors of this RelayerApiErrorResponseSchema. :rtype: list[RelayerApiErrorResponseSchemaValidationErrors] """ return self._validation_errors @@ -121,7 +115,7 @@ def validation_errors(self, validation_errors): """Sets the validation_errors of this RelayerApiErrorResponseSchema. - :param validation_errors: The validation_errors of this RelayerApiErrorResponseSchema. # noqa: E501 + :param validation_errors: The validation_errors of this RelayerApiErrorResponseSchema. :type: list[RelayerApiErrorResponseSchemaValidationErrors] """ diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_error_response_schema_validation_errors.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_error_response_schema_validation_errors.py index ee344bbf78..df7cb705f5 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_error_response_schema_validation_errors.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_error_response_schema_validation_errors.py @@ -8,12 +8,6 @@ class RelayerApiErrorResponseSchemaValidationErrors(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -39,10 +33,10 @@ def __init__(self, field=None, code=None, reason=None): # noqa: E501 @property def field(self): - """Gets the field of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501 + """Gets the field of this RelayerApiErrorResponseSchemaValidationErrors. - :return: The field of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501 + :return: The field of this RelayerApiErrorResponseSchemaValidationErrors. :rtype: str """ return self._field @@ -52,7 +46,7 @@ def field(self, field): """Sets the field of this RelayerApiErrorResponseSchemaValidationErrors. - :param field: The field of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501 + :param field: The field of this RelayerApiErrorResponseSchemaValidationErrors. :type: str """ if field is None: @@ -64,10 +58,10 @@ def field(self, field): @property def code(self): - """Gets the code of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501 + """Gets the code of this RelayerApiErrorResponseSchemaValidationErrors. - :return: The code of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501 + :return: The code of this RelayerApiErrorResponseSchemaValidationErrors. :rtype: int """ return self._code @@ -77,7 +71,7 @@ def code(self, code): """Sets the code of this RelayerApiErrorResponseSchemaValidationErrors. - :param code: The code of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501 + :param code: The code of this RelayerApiErrorResponseSchemaValidationErrors. :type: int """ if code is None: @@ -97,10 +91,10 @@ def code(self, code): @property def reason(self): - """Gets the reason of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501 + """Gets the reason of this RelayerApiErrorResponseSchemaValidationErrors. - :return: The reason of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501 + :return: The reason of this RelayerApiErrorResponseSchemaValidationErrors. :rtype: str """ return self._reason @@ -110,7 +104,7 @@ def reason(self, reason): """Sets the reason of this RelayerApiErrorResponseSchemaValidationErrors. - :param reason: The reason of this RelayerApiErrorResponseSchemaValidationErrors. # noqa: E501 + :param reason: The reason of this RelayerApiErrorResponseSchemaValidationErrors. :type: str """ if reason is None: diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_fee_recipients_response_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_fee_recipients_response_schema.py index 002eb00d71..c7e3444617 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_fee_recipients_response_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_fee_recipients_response_schema.py @@ -8,12 +8,6 @@ class RelayerApiFeeRecipientsResponseSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -35,10 +29,10 @@ def __init__(self, records=None): # noqa: E501 @property def records(self): - """Gets the records of this RelayerApiFeeRecipientsResponseSchema. # noqa: E501 + """Gets the records of this RelayerApiFeeRecipientsResponseSchema. - :return: The records of this RelayerApiFeeRecipientsResponseSchema. # noqa: E501 + :return: The records of this RelayerApiFeeRecipientsResponseSchema. :rtype: list[str] """ return self._records @@ -48,7 +42,7 @@ def records(self, records): """Sets the records of this RelayerApiFeeRecipientsResponseSchema. - :param records: The records of this RelayerApiFeeRecipientsResponseSchema. # noqa: E501 + :param records: The records of this RelayerApiFeeRecipientsResponseSchema. :type: list[str] """ if records is None: diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_config_payload_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_config_payload_schema.py index 8d19d80e2c..acebf6a7a6 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_config_payload_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_config_payload_schema.py @@ -8,12 +8,6 @@ class RelayerApiOrderConfigPayloadSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -77,10 +71,10 @@ def __init__( @property def maker_address(self): - """Gets the maker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + """Gets the maker_address of this RelayerApiOrderConfigPayloadSchema. - :return: The maker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :return: The maker_address of this RelayerApiOrderConfigPayloadSchema. :rtype: str """ return self._maker_address @@ -90,7 +84,7 @@ def maker_address(self, maker_address): """Sets the maker_address of this RelayerApiOrderConfigPayloadSchema. - :param maker_address: The maker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :param maker_address: The maker_address of this RelayerApiOrderConfigPayloadSchema. :type: str """ if maker_address is None: @@ -108,10 +102,10 @@ def maker_address(self, maker_address): @property def taker_address(self): - """Gets the taker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + """Gets the taker_address of this RelayerApiOrderConfigPayloadSchema. - :return: The taker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :return: The taker_address of this RelayerApiOrderConfigPayloadSchema. :rtype: str """ return self._taker_address @@ -121,7 +115,7 @@ def taker_address(self, taker_address): """Sets the taker_address of this RelayerApiOrderConfigPayloadSchema. - :param taker_address: The taker_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :param taker_address: The taker_address of this RelayerApiOrderConfigPayloadSchema. :type: str """ if taker_address is None: @@ -139,10 +133,10 @@ def taker_address(self, taker_address): @property def maker_asset_amount(self): - """Gets the maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + """Gets the maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. - :return: The maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :return: The maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. :rtype: str """ return self._maker_asset_amount @@ -152,7 +146,7 @@ def maker_asset_amount(self, maker_asset_amount): """Sets the maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. - :param maker_asset_amount: The maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :param maker_asset_amount: The maker_asset_amount of this RelayerApiOrderConfigPayloadSchema. :type: str """ if maker_asset_amount is None: @@ -160,20 +154,20 @@ def maker_asset_amount(self, maker_asset_amount): "Invalid value for `maker_asset_amount`, must not be `None`" ) # noqa: E501 if maker_asset_amount is not None and not re.search( - r"^\\d+$", maker_asset_amount + r"^\d+$", maker_asset_amount ): # noqa: E501 raise ValueError( - r"Invalid value for `maker_asset_amount`, must be a follow pattern or equal to `/^\\d+$/`" + r"Invalid value for `maker_asset_amount`, must be a follow pattern or equal to `/^\d+$/`" ) # noqa: E501 self._maker_asset_amount = maker_asset_amount @property def taker_asset_amount(self): - """Gets the taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + """Gets the taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. - :return: The taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :return: The taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. :rtype: str """ return self._taker_asset_amount @@ -183,7 +177,7 @@ def taker_asset_amount(self, taker_asset_amount): """Sets the taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. - :param taker_asset_amount: The taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :param taker_asset_amount: The taker_asset_amount of this RelayerApiOrderConfigPayloadSchema. :type: str """ if taker_asset_amount is None: @@ -191,20 +185,20 @@ def taker_asset_amount(self, taker_asset_amount): "Invalid value for `taker_asset_amount`, must not be `None`" ) # noqa: E501 if taker_asset_amount is not None and not re.search( - r"^\\d+$", taker_asset_amount + r"^\d+$", taker_asset_amount ): # noqa: E501 raise ValueError( - r"Invalid value for `taker_asset_amount`, must be a follow pattern or equal to `/^\\d+$/`" + r"Invalid value for `taker_asset_amount`, must be a follow pattern or equal to `/^\d+$/`" ) # noqa: E501 self._taker_asset_amount = taker_asset_amount @property def maker_asset_data(self): - """Gets the maker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + """Gets the maker_asset_data of this RelayerApiOrderConfigPayloadSchema. - :return: The maker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :return: The maker_asset_data of this RelayerApiOrderConfigPayloadSchema. :rtype: str """ return self._maker_asset_data @@ -214,7 +208,7 @@ def maker_asset_data(self, maker_asset_data): """Sets the maker_asset_data of this RelayerApiOrderConfigPayloadSchema. - :param maker_asset_data: The maker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :param maker_asset_data: The maker_asset_data of this RelayerApiOrderConfigPayloadSchema. :type: str """ if maker_asset_data is None: @@ -232,10 +226,10 @@ def maker_asset_data(self, maker_asset_data): @property def taker_asset_data(self): - """Gets the taker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + """Gets the taker_asset_data of this RelayerApiOrderConfigPayloadSchema. - :return: The taker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :return: The taker_asset_data of this RelayerApiOrderConfigPayloadSchema. :rtype: str """ return self._taker_asset_data @@ -245,7 +239,7 @@ def taker_asset_data(self, taker_asset_data): """Sets the taker_asset_data of this RelayerApiOrderConfigPayloadSchema. - :param taker_asset_data: The taker_asset_data of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :param taker_asset_data: The taker_asset_data of this RelayerApiOrderConfigPayloadSchema. :type: str """ if taker_asset_data is None: @@ -263,10 +257,10 @@ def taker_asset_data(self, taker_asset_data): @property def exchange_address(self): - """Gets the exchange_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + """Gets the exchange_address of this RelayerApiOrderConfigPayloadSchema. - :return: The exchange_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :return: The exchange_address of this RelayerApiOrderConfigPayloadSchema. :rtype: str """ return self._exchange_address @@ -276,7 +270,7 @@ def exchange_address(self, exchange_address): """Sets the exchange_address of this RelayerApiOrderConfigPayloadSchema. - :param exchange_address: The exchange_address of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :param exchange_address: The exchange_address of this RelayerApiOrderConfigPayloadSchema. :type: str """ if exchange_address is None: @@ -294,10 +288,10 @@ def exchange_address(self, exchange_address): @property def expiration_time_seconds(self): - """Gets the expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + """Gets the expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. - :return: The expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :return: The expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. :rtype: str """ return self._expiration_time_seconds @@ -307,7 +301,7 @@ def expiration_time_seconds(self, expiration_time_seconds): """Sets the expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. - :param expiration_time_seconds: The expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. # noqa: E501 + :param expiration_time_seconds: The expiration_time_seconds of this RelayerApiOrderConfigPayloadSchema. :type: str """ if expiration_time_seconds is None: @@ -315,10 +309,10 @@ def expiration_time_seconds(self, expiration_time_seconds): "Invalid value for `expiration_time_seconds`, must not be `None`" ) # noqa: E501 if expiration_time_seconds is not None and not re.search( - r"^\\d+$", expiration_time_seconds + r"^\d+$", expiration_time_seconds ): # noqa: E501 raise ValueError( - r"Invalid value for `expiration_time_seconds`, must be a follow pattern or equal to `/^\\d+$/`" + r"Invalid value for `expiration_time_seconds`, must be a follow pattern or equal to `/^\d+$/`" ) # noqa: E501 self._expiration_time_seconds = expiration_time_seconds diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_config_response_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_config_response_schema.py index a6bfcf32bb..4e39699be4 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_config_response_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_config_response_schema.py @@ -8,12 +8,6 @@ class RelayerApiOrderConfigResponseSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -57,10 +51,10 @@ def __init__( @property def maker_fee(self): - """Gets the maker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + """Gets the maker_fee of this RelayerApiOrderConfigResponseSchema. - :return: The maker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + :return: The maker_fee of this RelayerApiOrderConfigResponseSchema. :rtype: str """ return self._maker_fee @@ -70,7 +64,7 @@ def maker_fee(self, maker_fee): """Sets the maker_fee of this RelayerApiOrderConfigResponseSchema. - :param maker_fee: The maker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + :param maker_fee: The maker_fee of this RelayerApiOrderConfigResponseSchema. :type: str """ if maker_fee is None: @@ -78,20 +72,20 @@ def maker_fee(self, maker_fee): "Invalid value for `maker_fee`, must not be `None`" ) # noqa: E501 if maker_fee is not None and not re.search( - r"^\\d+$", maker_fee + r"^\d+$", maker_fee ): # noqa: E501 raise ValueError( - r"Invalid value for `maker_fee`, must be a follow pattern or equal to `/^\\d+$/`" + r"Invalid value for `maker_fee`, must be a follow pattern or equal to `/^\d+$/`" ) # noqa: E501 self._maker_fee = maker_fee @property def taker_fee(self): - """Gets the taker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + """Gets the taker_fee of this RelayerApiOrderConfigResponseSchema. - :return: The taker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + :return: The taker_fee of this RelayerApiOrderConfigResponseSchema. :rtype: str """ return self._taker_fee @@ -101,7 +95,7 @@ def taker_fee(self, taker_fee): """Sets the taker_fee of this RelayerApiOrderConfigResponseSchema. - :param taker_fee: The taker_fee of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + :param taker_fee: The taker_fee of this RelayerApiOrderConfigResponseSchema. :type: str """ if taker_fee is None: @@ -109,20 +103,20 @@ def taker_fee(self, taker_fee): "Invalid value for `taker_fee`, must not be `None`" ) # noqa: E501 if taker_fee is not None and not re.search( - r"^\\d+$", taker_fee + r"^\d+$", taker_fee ): # noqa: E501 raise ValueError( - r"Invalid value for `taker_fee`, must be a follow pattern or equal to `/^\\d+$/`" + r"Invalid value for `taker_fee`, must be a follow pattern or equal to `/^\d+$/`" ) # noqa: E501 self._taker_fee = taker_fee @property def fee_recipient_address(self): - """Gets the fee_recipient_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + """Gets the fee_recipient_address of this RelayerApiOrderConfigResponseSchema. - :return: The fee_recipient_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + :return: The fee_recipient_address of this RelayerApiOrderConfigResponseSchema. :rtype: str """ return self._fee_recipient_address @@ -132,7 +126,7 @@ def fee_recipient_address(self, fee_recipient_address): """Sets the fee_recipient_address of this RelayerApiOrderConfigResponseSchema. - :param fee_recipient_address: The fee_recipient_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + :param fee_recipient_address: The fee_recipient_address of this RelayerApiOrderConfigResponseSchema. :type: str """ if fee_recipient_address is None: @@ -150,10 +144,10 @@ def fee_recipient_address(self, fee_recipient_address): @property def sender_address(self): - """Gets the sender_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + """Gets the sender_address of this RelayerApiOrderConfigResponseSchema. - :return: The sender_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + :return: The sender_address of this RelayerApiOrderConfigResponseSchema. :rtype: str """ return self._sender_address @@ -163,7 +157,7 @@ def sender_address(self, sender_address): """Sets the sender_address of this RelayerApiOrderConfigResponseSchema. - :param sender_address: The sender_address of this RelayerApiOrderConfigResponseSchema. # noqa: E501 + :param sender_address: The sender_address of this RelayerApiOrderConfigResponseSchema. :type: str """ if sender_address is None: diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_schema.py index 5ee45cb307..1053480527 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_order_schema.py @@ -8,12 +8,6 @@ class RelayerApiOrderSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -37,10 +31,10 @@ def __init__(self, order=None, meta_data=None): # noqa: E501 @property def order(self): - """Gets the order of this RelayerApiOrderSchema. # noqa: E501 + """Gets the order of this RelayerApiOrderSchema. - :return: The order of this RelayerApiOrderSchema. # noqa: E501 + :return: The order of this RelayerApiOrderSchema. :rtype: OrderSchema """ return self._order @@ -50,7 +44,7 @@ def order(self, order): """Sets the order of this RelayerApiOrderSchema. - :param order: The order of this RelayerApiOrderSchema. # noqa: E501 + :param order: The order of this RelayerApiOrderSchema. :type: OrderSchema """ if order is None: @@ -62,10 +56,10 @@ def order(self, order): @property def meta_data(self): - """Gets the meta_data of this RelayerApiOrderSchema. # noqa: E501 + """Gets the meta_data of this RelayerApiOrderSchema. - :return: The meta_data of this RelayerApiOrderSchema. # noqa: E501 + :return: The meta_data of this RelayerApiOrderSchema. :rtype: object """ return self._meta_data @@ -75,7 +69,7 @@ def meta_data(self, meta_data): """Sets the meta_data of this RelayerApiOrderSchema. - :param meta_data: The meta_data of this RelayerApiOrderSchema. # noqa: E501 + :param meta_data: The meta_data of this RelayerApiOrderSchema. :type: object """ if meta_data is None: diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orderbook_response_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orderbook_response_schema.py index 364785b03f..e70bc3368c 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orderbook_response_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orderbook_response_schema.py @@ -8,12 +8,6 @@ class RelayerApiOrderbookResponseSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -40,10 +34,10 @@ def __init__(self, bids=None, asks=None): # noqa: E501 @property def bids(self): - """Gets the bids of this RelayerApiOrderbookResponseSchema. # noqa: E501 + """Gets the bids of this RelayerApiOrderbookResponseSchema. - :return: The bids of this RelayerApiOrderbookResponseSchema. # noqa: E501 + :return: The bids of this RelayerApiOrderbookResponseSchema. :rtype: RelayerApiOrdersResponseSchema """ return self._bids @@ -53,7 +47,7 @@ def bids(self, bids): """Sets the bids of this RelayerApiOrderbookResponseSchema. - :param bids: The bids of this RelayerApiOrderbookResponseSchema. # noqa: E501 + :param bids: The bids of this RelayerApiOrderbookResponseSchema. :type: RelayerApiOrdersResponseSchema """ if bids is None: @@ -65,10 +59,10 @@ def bids(self, bids): @property def asks(self): - """Gets the asks of this RelayerApiOrderbookResponseSchema. # noqa: E501 + """Gets the asks of this RelayerApiOrderbookResponseSchema. - :return: The asks of this RelayerApiOrderbookResponseSchema. # noqa: E501 + :return: The asks of this RelayerApiOrderbookResponseSchema. :rtype: RelayerApiOrdersResponseSchema """ return self._asks @@ -78,7 +72,7 @@ def asks(self, asks): """Sets the asks of this RelayerApiOrderbookResponseSchema. - :param asks: The asks of this RelayerApiOrderbookResponseSchema. # noqa: E501 + :param asks: The asks of this RelayerApiOrderbookResponseSchema. :type: RelayerApiOrdersResponseSchema """ if asks is None: diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_payload_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_payload_schema.py index cfb27fce40..4ecfea0b68 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_payload_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_payload_schema.py @@ -8,12 +8,6 @@ class RelayerApiOrdersChannelSubscribePayloadSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -79,10 +73,10 @@ def __init__( @property def maker_asset_proxy_id(self): - """Gets the maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + """Gets the maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. - :return: The maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :return: The maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. :rtype: str """ return self._maker_asset_proxy_id @@ -92,7 +86,7 @@ def maker_asset_proxy_id(self, maker_asset_proxy_id): """Sets the maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. - :param maker_asset_proxy_id: The maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :param maker_asset_proxy_id: The maker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. :type: str """ if maker_asset_proxy_id is not None and not re.search( @@ -106,10 +100,10 @@ def maker_asset_proxy_id(self, maker_asset_proxy_id): @property def taker_asset_proxy_id(self): - """Gets the taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + """Gets the taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. - :return: The taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :return: The taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. :rtype: str """ return self._taker_asset_proxy_id @@ -119,7 +113,7 @@ def taker_asset_proxy_id(self, taker_asset_proxy_id): """Sets the taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. - :param taker_asset_proxy_id: The taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :param taker_asset_proxy_id: The taker_asset_proxy_id of this RelayerApiOrdersChannelSubscribePayloadSchema. :type: str """ if taker_asset_proxy_id is not None and not re.search( @@ -133,10 +127,10 @@ def taker_asset_proxy_id(self, taker_asset_proxy_id): @property def maker_asset_address(self): - """Gets the maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + """Gets the maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. - :return: The maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :return: The maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. :rtype: str """ return self._maker_asset_address @@ -146,7 +140,7 @@ def maker_asset_address(self, maker_asset_address): """Sets the maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. - :param maker_asset_address: The maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :param maker_asset_address: The maker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. :type: str """ if maker_asset_address is not None and not re.search( @@ -160,10 +154,10 @@ def maker_asset_address(self, maker_asset_address): @property def taker_asset_address(self): - """Gets the taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + """Gets the taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. - :return: The taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :return: The taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. :rtype: str """ return self._taker_asset_address @@ -173,7 +167,7 @@ def taker_asset_address(self, taker_asset_address): """Sets the taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. - :param taker_asset_address: The taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :param taker_asset_address: The taker_asset_address of this RelayerApiOrdersChannelSubscribePayloadSchema. :type: str """ if taker_asset_address is not None and not re.search( @@ -187,10 +181,10 @@ def taker_asset_address(self, taker_asset_address): @property def maker_asset_data(self): - """Gets the maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + """Gets the maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. - :return: The maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :return: The maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. :rtype: str """ return self._maker_asset_data @@ -200,7 +194,7 @@ def maker_asset_data(self, maker_asset_data): """Sets the maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. - :param maker_asset_data: The maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :param maker_asset_data: The maker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. :type: str """ if maker_asset_data is not None and not re.search( @@ -214,10 +208,10 @@ def maker_asset_data(self, maker_asset_data): @property def taker_asset_data(self): - """Gets the taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + """Gets the taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. - :return: The taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :return: The taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. :rtype: str """ return self._taker_asset_data @@ -227,7 +221,7 @@ def taker_asset_data(self, taker_asset_data): """Sets the taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. - :param taker_asset_data: The taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :param taker_asset_data: The taker_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. :type: str """ if taker_asset_data is not None and not re.search( @@ -241,10 +235,10 @@ def taker_asset_data(self, taker_asset_data): @property def trader_asset_data(self): - """Gets the trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + """Gets the trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. - :return: The trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :return: The trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. :rtype: str """ return self._trader_asset_data @@ -254,7 +248,7 @@ def trader_asset_data(self, trader_asset_data): """Sets the trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. - :param trader_asset_data: The trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. # noqa: E501 + :param trader_asset_data: The trader_asset_data of this RelayerApiOrdersChannelSubscribePayloadSchema. :type: str """ if trader_asset_data is not None and not re.search( diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_schema.py index 2f72d53070..f3a527879f 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_subscribe_schema.py @@ -8,12 +8,6 @@ class RelayerApiOrdersChannelSubscribeSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -54,10 +48,10 @@ def __init__( @property def type(self): - """Gets the type of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + """Gets the type of this RelayerApiOrdersChannelSubscribeSchema. - :return: The type of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + :return: The type of this RelayerApiOrdersChannelSubscribeSchema. :rtype: str """ return self._type @@ -67,7 +61,7 @@ def type(self, type): """Sets the type of this RelayerApiOrdersChannelSubscribeSchema. - :param type: The type of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + :param type: The type of this RelayerApiOrdersChannelSubscribeSchema. :type: str """ if type is None: @@ -86,10 +80,10 @@ def type(self, type): @property def channel(self): - """Gets the channel of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + """Gets the channel of this RelayerApiOrdersChannelSubscribeSchema. - :return: The channel of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + :return: The channel of this RelayerApiOrdersChannelSubscribeSchema. :rtype: str """ return self._channel @@ -99,7 +93,7 @@ def channel(self, channel): """Sets the channel of this RelayerApiOrdersChannelSubscribeSchema. - :param channel: The channel of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + :param channel: The channel of this RelayerApiOrdersChannelSubscribeSchema. :type: str """ if channel is None: @@ -118,10 +112,10 @@ def channel(self, channel): @property def request_id(self): - """Gets the request_id of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + """Gets the request_id of this RelayerApiOrdersChannelSubscribeSchema. - :return: The request_id of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + :return: The request_id of this RelayerApiOrdersChannelSubscribeSchema. :rtype: str """ return self._request_id @@ -131,7 +125,7 @@ def request_id(self, request_id): """Sets the request_id of this RelayerApiOrdersChannelSubscribeSchema. - :param request_id: The request_id of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + :param request_id: The request_id of this RelayerApiOrdersChannelSubscribeSchema. :type: str """ if request_id is None: @@ -143,10 +137,10 @@ def request_id(self, request_id): @property def payload(self): - """Gets the payload of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + """Gets the payload of this RelayerApiOrdersChannelSubscribeSchema. - :return: The payload of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + :return: The payload of this RelayerApiOrdersChannelSubscribeSchema. :rtype: RelayerApiOrdersChannelSubscribePayloadSchema """ return self._payload @@ -156,7 +150,7 @@ def payload(self, payload): """Sets the payload of this RelayerApiOrdersChannelSubscribeSchema. - :param payload: The payload of this RelayerApiOrdersChannelSubscribeSchema. # noqa: E501 + :param payload: The payload of this RelayerApiOrdersChannelSubscribeSchema. :type: RelayerApiOrdersChannelSubscribePayloadSchema """ diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_update_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_update_schema.py index 68aa2fddb7..9c3ec10191 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_update_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_channel_update_schema.py @@ -8,12 +8,6 @@ class RelayerApiOrdersChannelUpdateSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -54,10 +48,10 @@ def __init__( @property def type(self): - """Gets the type of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + """Gets the type of this RelayerApiOrdersChannelUpdateSchema. - :return: The type of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + :return: The type of this RelayerApiOrdersChannelUpdateSchema. :rtype: str """ return self._type @@ -67,7 +61,7 @@ def type(self, type): """Sets the type of this RelayerApiOrdersChannelUpdateSchema. - :param type: The type of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + :param type: The type of this RelayerApiOrdersChannelUpdateSchema. :type: str """ if type is None: @@ -86,10 +80,10 @@ def type(self, type): @property def channel(self): - """Gets the channel of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + """Gets the channel of this RelayerApiOrdersChannelUpdateSchema. - :return: The channel of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + :return: The channel of this RelayerApiOrdersChannelUpdateSchema. :rtype: str """ return self._channel @@ -99,7 +93,7 @@ def channel(self, channel): """Sets the channel of this RelayerApiOrdersChannelUpdateSchema. - :param channel: The channel of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + :param channel: The channel of this RelayerApiOrdersChannelUpdateSchema. :type: str """ if channel is None: @@ -118,10 +112,10 @@ def channel(self, channel): @property def request_id(self): - """Gets the request_id of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + """Gets the request_id of this RelayerApiOrdersChannelUpdateSchema. - :return: The request_id of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + :return: The request_id of this RelayerApiOrdersChannelUpdateSchema. :rtype: str """ return self._request_id @@ -131,7 +125,7 @@ def request_id(self, request_id): """Sets the request_id of this RelayerApiOrdersChannelUpdateSchema. - :param request_id: The request_id of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + :param request_id: The request_id of this RelayerApiOrdersChannelUpdateSchema. :type: str """ if request_id is None: @@ -143,10 +137,10 @@ def request_id(self, request_id): @property def payload(self): - """Gets the payload of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + """Gets the payload of this RelayerApiOrdersChannelUpdateSchema. - :return: The payload of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + :return: The payload of this RelayerApiOrdersChannelUpdateSchema. :rtype: list[RelayerApiOrderSchema] """ return self._payload @@ -156,7 +150,7 @@ def payload(self, payload): """Sets the payload of this RelayerApiOrdersChannelUpdateSchema. - :param payload: The payload of this RelayerApiOrdersChannelUpdateSchema. # noqa: E501 + :param payload: The payload of this RelayerApiOrdersChannelUpdateSchema. :type: list[RelayerApiOrderSchema] """ diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_response_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_response_schema.py index d72b74cb7b..7cccc61e14 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_response_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/relayer_api_orders_response_schema.py @@ -8,12 +8,6 @@ class RelayerApiOrdersResponseSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -35,10 +29,10 @@ def __init__(self, records=None): # noqa: E501 @property def records(self): - """Gets the records of this RelayerApiOrdersResponseSchema. # noqa: E501 + """Gets the records of this RelayerApiOrdersResponseSchema. - :return: The records of this RelayerApiOrdersResponseSchema. # noqa: E501 + :return: The records of this RelayerApiOrdersResponseSchema. :rtype: list[RelayerApiOrderSchema] """ return self._records @@ -48,7 +42,7 @@ def records(self, records): """Sets the records of this RelayerApiOrdersResponseSchema. - :param records: The records of this RelayerApiOrdersResponseSchema. # noqa: E501 + :param records: The records of this RelayerApiOrdersResponseSchema. :type: list[RelayerApiOrderSchema] """ if records is None: diff --git a/python-packages/sra_client/src/zero_ex/sra_client/models/signed_order_schema.py b/python-packages/sra_client/src/zero_ex/sra_client/models/signed_order_schema.py index 8c71bff895..3f19f178d7 100644 --- a/python-packages/sra_client/src/zero_ex/sra_client/models/signed_order_schema.py +++ b/python-packages/sra_client/src/zero_ex/sra_client/models/signed_order_schema.py @@ -8,12 +8,6 @@ class SignedOrderSchema(object): - """NOTE: This class is auto generated by OpenAPI Generator. - Ref: https://openapi-generator.tech - - Do not edit the class manually. - """ - """ Attributes: openapi_types (dict): The key is attribute name @@ -35,10 +29,10 @@ def __init__(self, signature=None): # noqa: E501 @property def signature(self): - """Gets the signature of this SignedOrderSchema. # noqa: E501 + """Gets the signature of this SignedOrderSchema. - :return: The signature of this SignedOrderSchema. # noqa: E501 + :return: The signature of this SignedOrderSchema. :rtype: str """ return self._signature @@ -48,7 +42,7 @@ def signature(self, signature): """Sets the signature of this SignedOrderSchema. - :param signature: The signature of this SignedOrderSchema. # noqa: E501 + :param signature: The signature of this SignedOrderSchema. :type: str """ if signature is None: