meshtrade 0.0.8__py3-none-any.whl → 0.0.11__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of meshtrade might be problematic. Click here for more details.
- buf/validate/validate_pb2.py +450 -0
- buf/validate/validate_pb2.pyi +627 -0
- meshtrade/common/__init__.py +28 -0
- meshtrade/common/config.py +30 -0
- meshtrade/common/grpc_client.py +202 -0
- meshtrade/compliance/client/v1/__init__.py +65 -7
- meshtrade/compliance/client/v1/client_pb2.py +2 -2
- meshtrade/compliance/client/v1/client_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/company_pb2.py +2 -2
- meshtrade/compliance/client/v1/company_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/company_representative_pb2.py +2 -2
- meshtrade/compliance/client/v1/company_representative_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/company_representative_role_pb2.py +2 -2
- meshtrade/compliance/client/v1/company_representative_role_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/fund_pb2.py +2 -2
- meshtrade/compliance/client/v1/fund_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/identification_document_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/identification_document_type_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/industry_classification_pb2.py +2 -2
- meshtrade/compliance/client/v1/industry_classification_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/natural_person_connection_type_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_connection_type_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/natural_person_pb2.py +2 -2
- meshtrade/compliance/client/v1/natural_person_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/pep_status_pb2.py +2 -2
- meshtrade/compliance/client/v1/pep_status_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/service_meshpy.py +186 -0
- meshtrade/compliance/client/v1/service_options_meshpy.py +65 -0
- meshtrade/compliance/client/v1/service_pb2.py +20 -10
- meshtrade/compliance/client/v1/service_pb2.pyi +8 -0
- meshtrade/compliance/client/v1/service_pb2_grpc.py +192 -0
- meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2.py +2 -2
- meshtrade/compliance/client/v1/source_of_income_and_wealth_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/tax_residency_pb2.py +2 -2
- meshtrade/compliance/client/v1/tax_residency_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/trust_pb2.py +2 -2
- meshtrade/compliance/client/v1/trust_pb2_grpc.py +4 -0
- meshtrade/compliance/client/v1/verification_status_pb2.py +2 -2
- meshtrade/compliance/client/v1/verification_status_pb2_grpc.py +4 -0
- meshtrade/iam/api_user/v1/__init__.py +99 -0
- meshtrade/iam/api_user/v1/api_credentials.py +156 -0
- meshtrade/iam/api_user/v1/api_credentials_pb2.py +42 -0
- meshtrade/iam/api_user/v1/api_credentials_pb2.pyi +14 -0
- meshtrade/iam/api_user/v1/api_credentials_pb2_grpc.py +4 -0
- meshtrade/iam/api_user/v1/api_user_pb2.py +48 -0
- meshtrade/iam/api_user/v1/api_user_pb2.pyi +49 -0
- meshtrade/iam/api_user/v1/api_user_pb2_grpc.py +4 -0
- meshtrade/iam/api_user/v1/service.py +58 -0
- meshtrade/iam/api_user/v1/service_meshpy.py +255 -0
- meshtrade/iam/api_user/v1/service_options_meshpy.py +65 -0
- meshtrade/iam/api_user/v1/service_pb2.py +77 -0
- meshtrade/iam/api_user/v1/service_pb2.pyi +63 -0
- meshtrade/iam/api_user/v1/service_pb2_grpc.py +458 -0
- meshtrade/iam/group/v1/__init__.py +59 -1
- meshtrade/iam/group/v1/group_pb2.py +2 -2
- meshtrade/iam/group/v1/group_pb2_grpc.py +4 -0
- meshtrade/iam/group/v1/service_meshpy.py +187 -0
- meshtrade/iam/group/v1/service_options_meshpy.py +65 -0
- meshtrade/iam/group/v1/service_pb2.py +22 -6
- meshtrade/iam/group/v1/service_pb2.pyi +29 -1
- meshtrade/iam/group/v1/service_pb2_grpc.py +170 -0
- meshtrade/iam/role/v1/__init__.py +44 -0
- meshtrade/iam/role/v1/role.py +23 -0
- meshtrade/iam/role/v1/role_pb2.py +40 -0
- meshtrade/{option/v1/auth_pb2.pyi → iam/role/v1/role_pb2.pyi} +16 -0
- meshtrade/iam/role/v1/role_pb2_grpc.py +4 -0
- meshtrade/iam/user/v1/__init__.py +53 -0
- meshtrade/iam/user/v1/service_meshpy.py +151 -0
- meshtrade/iam/user/v1/service_options_meshpy.py +65 -0
- meshtrade/iam/user/v1/service_pb2.py +51 -0
- meshtrade/iam/user/v1/service_pb2.pyi +19 -0
- meshtrade/iam/user/v1/service_pb2_grpc.py +82 -0
- meshtrade/{issuance_hub/instrument/v1/instrument_pb2.py → iam/user/v1/user_pb2.py} +7 -7
- meshtrade/iam/user/v1/user_pb2.pyi +15 -0
- meshtrade/iam/user/v1/user_pb2_grpc.py +4 -0
- meshtrade/ledger/transaction/v1/__init__.py +34 -0
- meshtrade/ledger/transaction/v1/transaction_action_pb2.py +2 -2
- meshtrade/ledger/transaction/v1/transaction_action_pb2_grpc.py +4 -0
- meshtrade/ledger/transaction/v1/transaction_state_pb2.py +2 -2
- meshtrade/ledger/transaction/v1/transaction_state_pb2_grpc.py +4 -0
- meshtrade/option/v1/__init__.py +36 -4
- meshtrade/option/v1/{service_type_pb2.py → method_type_pb2.py} +7 -7
- meshtrade/option/v1/method_type_pb2.pyi +17 -0
- meshtrade/option/v1/method_type_pb2_grpc.py +4 -0
- meshtrade/trading/limit_order/v1/__init__.py +47 -1
- meshtrade/trading/limit_order/v1/limit_order_pb2.py +2 -2
- meshtrade/trading/limit_order/v1/limit_order_pb2_grpc.py +4 -0
- meshtrade/trading/limit_order/v1/service_meshpy.py +151 -0
- meshtrade/trading/limit_order/v1/service_options_meshpy.py +65 -0
- meshtrade/trading/limit_order/v1/service_pb2.py +10 -6
- meshtrade/trading/limit_order/v1/service_pb2.pyi +2 -0
- meshtrade/trading/limit_order/v1/service_pb2_grpc.py +78 -0
- meshtrade/trading/market_order/v1/__init__.py +53 -0
- meshtrade/trading/{direct_order/v1/direct_order_pb2.py → market_order/v1/market_order_pb2.py} +7 -7
- meshtrade/trading/{spot/v1/spot_pb2.pyi → market_order/v1/market_order_pb2.pyi} +1 -1
- meshtrade/trading/market_order/v1/market_order_pb2_grpc.py +4 -0
- meshtrade/trading/market_order/v1/service_meshpy.py +151 -0
- meshtrade/trading/market_order/v1/service_options_meshpy.py +65 -0
- meshtrade/trading/market_order/v1/service_pb2.py +44 -0
- meshtrade/trading/{spot → market_order}/v1/service_pb2.pyi +4 -2
- meshtrade/trading/market_order/v1/service_pb2_grpc.py +78 -0
- meshtrade/type/v1/__init__.py +91 -50
- meshtrade/type/v1/address_pb2.py +2 -2
- meshtrade/type/v1/address_pb2_grpc.py +4 -0
- meshtrade/type/v1/amount.py +2 -8
- meshtrade/type/v1/amount_pb2.py +2 -2
- meshtrade/type/v1/amount_pb2_grpc.py +4 -0
- meshtrade/type/v1/contact_details_pb2.py +2 -2
- meshtrade/type/v1/contact_details_pb2_grpc.py +4 -0
- meshtrade/type/v1/date.py +263 -91
- meshtrade/type/v1/date_pb2.py +2 -2
- meshtrade/type/v1/date_pb2_grpc.py +4 -0
- meshtrade/type/v1/decimal_built_in_conversions.py +1 -1
- meshtrade/type/v1/decimal_pb2.py +2 -2
- meshtrade/type/v1/decimal_pb2_grpc.py +4 -0
- meshtrade/type/v1/ledger.py +1 -1
- meshtrade/type/v1/ledger_pb2.py +2 -2
- meshtrade/type/v1/ledger_pb2_grpc.py +4 -0
- meshtrade/{trading/spot/v1/spot_pb2.py → type/v1/sorting_pb2.py} +7 -7
- meshtrade/type/v1/sorting_pb2.pyi +14 -0
- meshtrade/type/v1/sorting_pb2_grpc.py +4 -0
- meshtrade/type/v1/time_of_day.py +52 -87
- meshtrade/type/v1/time_of_day_pb2.py +2 -2
- meshtrade/type/v1/time_of_day_pb2_grpc.py +4 -0
- meshtrade/type/v1/token_pb2.py +2 -2
- meshtrade/type/v1/token_pb2_grpc.py +4 -0
- meshtrade/wallet/account/v1/__init__.py +46 -0
- meshtrade/wallet/account/v1/account_pb2.py +2 -2
- meshtrade/wallet/account/v1/account_pb2_grpc.py +4 -0
- meshtrade/wallet/account/v1/service_meshpy.py +204 -0
- meshtrade/wallet/account/v1/service_options_meshpy.py +65 -0
- meshtrade/wallet/account/v1/service_pb2.py +18 -18
- meshtrade/wallet/account/v1/service_pb2.pyi +2 -2
- meshtrade/wallet/account/v1/service_pb2_grpc.py +222 -0
- meshtrade-0.0.11.dist-info/METADATA +95 -0
- meshtrade-0.0.11.dist-info/RECORD +176 -0
- {meshtrade-0.0.8.dist-info → meshtrade-0.0.11.dist-info}/top_level.txt +1 -0
- meshtrade/issuance_hub/__init__.py +0 -0
- meshtrade/issuance_hub/instrument/__init__.py +0 -0
- meshtrade/issuance_hub/instrument/v1/__init__.py +0 -11
- meshtrade/issuance_hub/instrument/v1/instrument_pb2.pyi +0 -11
- meshtrade/issuance_hub/instrument/v1/service_pb2.py +0 -49
- meshtrade/issuance_hub/instrument/v1/service_pb2.pyi +0 -46
- meshtrade/option/v1/auth_pb2.py +0 -40
- meshtrade/option/v1/service_type_pb2.pyi +0 -17
- meshtrade/trading/direct_order/__init__.py +0 -0
- meshtrade/trading/direct_order/v1/__init__.py +0 -7
- meshtrade/trading/direct_order/v1/direct_order_pb2.pyi +0 -11
- meshtrade/trading/direct_order/v1/service_pb2.py +0 -40
- meshtrade/trading/direct_order/v1/service_pb2.pyi +0 -12
- meshtrade/trading/spot/__init__.py +0 -0
- meshtrade/trading/spot/v1/__init__.py +0 -7
- meshtrade/trading/spot/v1/service_pb2.py +0 -40
- meshtrade-0.0.8.dist-info/METADATA +0 -35
- meshtrade-0.0.8.dist-info/RECORD +0 -113
- meshtrade-0.0.8.dist-info/licenses/LICENSE +0 -10
- {meshtrade-0.0.8.dist-info → meshtrade-0.0.11.dist-info}/WHEEL +0 -0
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
+
# source: meshtrade/trading/market_order/v1/service.proto
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
MarketOrderService gRPC service wrapper with authentication, timeouts, and resource management.
|
|
6
|
+
|
|
7
|
+
This module provides a high-level gRPC service for the MarketOrderService service that combines
|
|
8
|
+
the service interface with resource management capabilities, providing authentication,
|
|
9
|
+
timeouts, and proper connection handling.
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from datetime import timedelta
|
|
13
|
+
from typing import Optional
|
|
14
|
+
|
|
15
|
+
from meshtrade.common import BaseGRPCClient
|
|
16
|
+
from meshtrade.iam.api_user.v1.api_credentials import find_credentials
|
|
17
|
+
|
|
18
|
+
from .service_options_meshpy import ServiceOptions
|
|
19
|
+
from .service_pb2 import (
|
|
20
|
+
GetMarketOrderRequest,
|
|
21
|
+
MarketOrder,
|
|
22
|
+
)
|
|
23
|
+
from .service_pb2_grpc import MarketOrderServiceStub
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
def _create_marketorderservice_stub(channel):
|
|
27
|
+
"""Factory function to create MarketOrderServiceStub from gRPC channel."""
|
|
28
|
+
return MarketOrderServiceStub(channel)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
class MarketOrderService(BaseGRPCClient):
|
|
32
|
+
"""MarketOrderService gRPC service with authentication, timeouts, and resource management.
|
|
33
|
+
|
|
34
|
+
This service provides a complete implementation of the MarketOrderService with proper authentication, timeout handling, and automatic resource cleanup.
|
|
35
|
+
|
|
36
|
+
Full Service documentation: https://meshtrade.github.io/api/docs/api-reference/trading/market_order/v1
|
|
37
|
+
|
|
38
|
+
Basic service usage with default SDK Configuration:
|
|
39
|
+
```python
|
|
40
|
+
service = MarketOrderService()
|
|
41
|
+
|
|
42
|
+
with service: # `with` ensures proper clean up of underlying connection after use
|
|
43
|
+
response = service.get_api_user(request)
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
With default configuration API credentials are searched for using the standard discovery hierarchy:
|
|
47
|
+
|
|
48
|
+
1. MESH_API_CREDENTIALS environment variable
|
|
49
|
+
|
|
50
|
+
2. Default credential file location:
|
|
51
|
+
|
|
52
|
+
- Linux: `$XDG_CONFIG_HOME/mesh/credentials.json` or fallback to `$HOME/.config/mesh/credentials.json`
|
|
53
|
+
- macOS: `$HOME/Library/Application Support/mesh/credentials.json`
|
|
54
|
+
- Windows: `C:\\Users\\<user>\\AppData\\Roaming\\mesh\\credentials.json`
|
|
55
|
+
|
|
56
|
+
For more information on authentication: https://meshtrade.github.io/api/docs/architecture/authentication
|
|
57
|
+
|
|
58
|
+
The service may also be configured with custom options:
|
|
59
|
+
```python
|
|
60
|
+
from .service_options_meshpy import ServiceOptions
|
|
61
|
+
from datetime import timedelta
|
|
62
|
+
|
|
63
|
+
options = ServiceOptions(
|
|
64
|
+
url="api.staging.example.com",
|
|
65
|
+
port=443,
|
|
66
|
+
api_key="your-api-key",
|
|
67
|
+
group="groups/your-group-id",
|
|
68
|
+
timeout=timedelta(seconds=60)
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
service = MarketOrderService(options)
|
|
72
|
+
|
|
73
|
+
with service: # `with` ensures proper clean up of underlying connection after use
|
|
74
|
+
response = service.get_api_user(request)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
For more information on service configuration: https://meshtrade.github.io/api/docs/architecture/sdk-configuration
|
|
78
|
+
"""
|
|
79
|
+
|
|
80
|
+
def __init__(self, options: Optional[ServiceOptions] = None):
|
|
81
|
+
"""Construct and initialize the MarketOrderService service.
|
|
82
|
+
|
|
83
|
+
Full Service documentation: https://meshtrade.github.io/api/docs/api-reference/trading/market_order/v1
|
|
84
|
+
|
|
85
|
+
Args:
|
|
86
|
+
options: Optional ServiceOptions for configuring the service.
|
|
87
|
+
If None, service is constructed with default configuration.
|
|
88
|
+
With default configuration API credentials are searched for using the standard discovery hierarchy:
|
|
89
|
+
|
|
90
|
+
1. MESH_API_CREDENTIALS environment variable
|
|
91
|
+
|
|
92
|
+
2. Default credential file location:
|
|
93
|
+
|
|
94
|
+
- Linux: `$XDG_CONFIG_HOME/mesh/credentials.json` or fallback to `$HOME/.config/mesh/credentials.json`
|
|
95
|
+
- macOS: `$HOME/Library/Application Support/mesh/credentials.json`
|
|
96
|
+
- Windows: `C:\\Users\\<user>\\AppData\\Roaming\\mesh\\credentials.json`
|
|
97
|
+
|
|
98
|
+
For more information on authentication: https://meshtrade.github.io/api/docs/architecture/authentication
|
|
99
|
+
|
|
100
|
+
For more information on service configuration: https://meshtrade.github.io/api/docs/architecture/sdk-configuration
|
|
101
|
+
|
|
102
|
+
Example:
|
|
103
|
+
```python
|
|
104
|
+
# construct with default configuration
|
|
105
|
+
service = MarketOrderService()
|
|
106
|
+
|
|
107
|
+
# construct with custom configuration
|
|
108
|
+
options = ServiceOptions(
|
|
109
|
+
url="api.example.com",
|
|
110
|
+
api_key="your-key",
|
|
111
|
+
group="groups/your-group"
|
|
112
|
+
)
|
|
113
|
+
service = MarketOrderService(options)
|
|
114
|
+
```
|
|
115
|
+
"""
|
|
116
|
+
if options is None:
|
|
117
|
+
options = ServiceOptions()
|
|
118
|
+
|
|
119
|
+
# Initialize the base client with all common functionality
|
|
120
|
+
super().__init__(
|
|
121
|
+
service_name="MarketOrderService",
|
|
122
|
+
stub_factory=_create_marketorderservice_stub,
|
|
123
|
+
find_credentials_func=find_credentials,
|
|
124
|
+
url=options.url,
|
|
125
|
+
port=options.port,
|
|
126
|
+
api_key=options.api_key,
|
|
127
|
+
group=options.group,
|
|
128
|
+
timeout=options.timeout,
|
|
129
|
+
tls=options.tls,
|
|
130
|
+
)
|
|
131
|
+
|
|
132
|
+
def get_market_order(self, request: GetMarketOrderRequest, timeout: Optional[timedelta] = None) -> MarketOrder:
|
|
133
|
+
"""GetMarketOrder method.
|
|
134
|
+
|
|
135
|
+
Args:
|
|
136
|
+
request: The GetMarketOrder request message
|
|
137
|
+
timeout: Optional timeout override for this call
|
|
138
|
+
|
|
139
|
+
Returns:
|
|
140
|
+
The GetMarketOrder response message
|
|
141
|
+
|
|
142
|
+
Raises:
|
|
143
|
+
grpc.RpcError: If the gRPC call fails
|
|
144
|
+
ValueError: If authentication credentials are missing
|
|
145
|
+
"""
|
|
146
|
+
return self._execute_method("GetMarketOrder", request, timeout)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
# Create aliases to match expected exports
|
|
150
|
+
MarketOrderServiceGRPCClient = MarketOrderService
|
|
151
|
+
MarketOrderServiceGRPCClientInterface = MarketOrderService
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Code generated by protoc-gen-meshpy. DO NOT EDIT.
|
|
2
|
+
# source: meshtrade/trading/market_order/v1/service.proto
|
|
3
|
+
|
|
4
|
+
"""
|
|
5
|
+
Configuration options for MarketOrderService gRPC service.
|
|
6
|
+
This module provides a clean, extensible way to configure the service with optional
|
|
7
|
+
parameters while maintaining backward compatibility and readability.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from datetime import timedelta
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
class ServiceOptions:
|
|
14
|
+
"""Configuration options for MarketOrderService gRPC service.
|
|
15
|
+
|
|
16
|
+
This class provides a clean, extensible way to configure the service with optional
|
|
17
|
+
parameters while maintaining backward compatibility and readability.
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
def __init__(
|
|
21
|
+
self,
|
|
22
|
+
tls: bool = True,
|
|
23
|
+
url: str | None = None,
|
|
24
|
+
port: int | None = None,
|
|
25
|
+
api_key: str | None = None,
|
|
26
|
+
group: str | None = None,
|
|
27
|
+
timeout: timedelta = timedelta(seconds=30),
|
|
28
|
+
):
|
|
29
|
+
"""Initialize service options.
|
|
30
|
+
|
|
31
|
+
Args:
|
|
32
|
+
tls: Whether to use TLS encryption for the gRPC connection.
|
|
33
|
+
When True, establishes a secure connection using TLS.
|
|
34
|
+
When False, uses an insecure connection.
|
|
35
|
+
Default: True (secure connection)
|
|
36
|
+
|
|
37
|
+
url: The server hostname or IP address (e.g., "api.example.com", "localhost").
|
|
38
|
+
Default: Uses DEFAULT_GRPC_URL from common module
|
|
39
|
+
|
|
40
|
+
port: The server port number (e.g., 443 for HTTPS, 8080 for development).
|
|
41
|
+
Default: Uses DEFAULT_GRPC_PORT from common module
|
|
42
|
+
|
|
43
|
+
api_key: The API key string (without "Bearer " prefix) for authentication.
|
|
44
|
+
The API key will be sent as a Bearer token in the Authorization header.
|
|
45
|
+
This is the primary authentication method for service-to-service communication.
|
|
46
|
+
|
|
47
|
+
group: The group resource name in format groups/{group_id} required for all API requests.
|
|
48
|
+
The group determines the authorization context for operations
|
|
49
|
+
and is sent as an "x-group" header with every request.
|
|
50
|
+
|
|
51
|
+
timeout: The default timeout for all gRPC method calls.
|
|
52
|
+
This timeout applies to individual method calls and helps prevent hanging requests.
|
|
53
|
+
If a request takes longer than the specified timeout, it will be cancelled.
|
|
54
|
+
Default: 30 seconds
|
|
55
|
+
"""
|
|
56
|
+
self.tls = tls
|
|
57
|
+
self.url = url
|
|
58
|
+
self.port = port
|
|
59
|
+
self.api_key = api_key
|
|
60
|
+
self.group = group
|
|
61
|
+
self.timeout = timeout
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
# Create alias to match expected exports
|
|
65
|
+
ClientOptions = ServiceOptions
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: meshtrade/trading/market_order/v1/service.proto
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'meshtrade/trading/market_order/v1/service.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from meshtrade.iam.role.v1 import role_pb2 as meshtrade_dot_iam_dot_role_dot_v1_dot_role__pb2
|
|
26
|
+
from meshtrade.option.v1 import method_type_pb2 as meshtrade_dot_option_dot_v1_dot_method__type__pb2
|
|
27
|
+
from meshtrade.trading.market_order.v1 import market_order_pb2 as meshtrade_dot_trading_dot_market__order_dot_v1_dot_market__order__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n/meshtrade/trading/market_order/v1/service.proto\x12!meshtrade.trading.market_order.v1\x1a meshtrade/iam/role/v1/role.proto\x1a%meshtrade/option/v1/method_type.proto\x1a\x34meshtrade/trading/market_order/v1/market_order.proto\"/\n\x15GetMarketOrderRequest\x12\x16\n\x06number\x18\x01 \x01(\tR\x06number2\x9f\x01\n\x12MarketOrderService\x12\x88\x01\n\x0eGetMarketOrder\x12\x38.meshtrade.trading.market_order.v1.GetMarketOrderRequest\x1a..meshtrade.trading.market_order.v1.MarketOrder\"\x0c\xa0\xb5\x18\x01\xaa\xb5\x18\x04\n\x02\t\nBn\n(co.meshtrade.api.trading.market_order.v1ZBgithub.com/meshtrade/api/go/trading/market_order/v1;market_orderv1b\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.trading.market_order.v1.service_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n(co.meshtrade.api.trading.market_order.v1ZBgithub.com/meshtrade/api/go/trading/market_order/v1;market_orderv1'
|
|
38
|
+
_globals['_MARKETORDERSERVICE'].methods_by_name['GetMarketOrder']._loaded_options = None
|
|
39
|
+
_globals['_MARKETORDERSERVICE'].methods_by_name['GetMarketOrder']._serialized_options = b'\240\265\030\001\252\265\030\004\n\002\t\n'
|
|
40
|
+
_globals['_GETMARKETORDERREQUEST']._serialized_start=213
|
|
41
|
+
_globals['_GETMARKETORDERREQUEST']._serialized_end=260
|
|
42
|
+
_globals['_MARKETORDERSERVICE']._serialized_start=263
|
|
43
|
+
_globals['_MARKETORDERSERVICE']._serialized_end=422
|
|
44
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
from meshtrade.
|
|
1
|
+
from meshtrade.iam.role.v1 import role_pb2 as _role_pb2
|
|
2
|
+
from meshtrade.option.v1 import method_type_pb2 as _method_type_pb2
|
|
3
|
+
from meshtrade.trading.market_order.v1 import market_order_pb2 as _market_order_pb2
|
|
2
4
|
from google.protobuf import descriptor as _descriptor
|
|
3
5
|
from google.protobuf import message as _message
|
|
4
6
|
from typing import ClassVar as _ClassVar, Optional as _Optional
|
|
5
7
|
|
|
6
8
|
DESCRIPTOR: _descriptor.FileDescriptor
|
|
7
9
|
|
|
8
|
-
class
|
|
10
|
+
class GetMarketOrderRequest(_message.Message):
|
|
9
11
|
__slots__ = ("number",)
|
|
10
12
|
NUMBER_FIELD_NUMBER: _ClassVar[int]
|
|
11
13
|
number: str
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
|
|
5
|
+
from meshtrade.trading.market_order.v1 import market_order_pb2 as meshtrade_dot_trading_dot_market__order_dot_v1_dot_market__order__pb2
|
|
6
|
+
from meshtrade.trading.market_order.v1 import service_pb2 as meshtrade_dot_trading_dot_market__order_dot_v1_dot_service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class MarketOrderServiceStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.GetMarketOrder = channel.unary_unary(
|
|
19
|
+
'/meshtrade.trading.market_order.v1.MarketOrderService/GetMarketOrder',
|
|
20
|
+
request_serializer=meshtrade_dot_trading_dot_market__order_dot_v1_dot_service__pb2.GetMarketOrderRequest.SerializeToString,
|
|
21
|
+
response_deserializer=meshtrade_dot_trading_dot_market__order_dot_v1_dot_market__order__pb2.MarketOrder.FromString,
|
|
22
|
+
_registered_method=True)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class MarketOrderServiceServicer(object):
|
|
26
|
+
"""Missing associated documentation comment in .proto file."""
|
|
27
|
+
|
|
28
|
+
def GetMarketOrder(self, request, context):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
31
|
+
context.set_details('Method not implemented!')
|
|
32
|
+
raise NotImplementedError('Method not implemented!')
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def add_MarketOrderServiceServicer_to_server(servicer, server):
|
|
36
|
+
rpc_method_handlers = {
|
|
37
|
+
'GetMarketOrder': grpc.unary_unary_rpc_method_handler(
|
|
38
|
+
servicer.GetMarketOrder,
|
|
39
|
+
request_deserializer=meshtrade_dot_trading_dot_market__order_dot_v1_dot_service__pb2.GetMarketOrderRequest.FromString,
|
|
40
|
+
response_serializer=meshtrade_dot_trading_dot_market__order_dot_v1_dot_market__order__pb2.MarketOrder.SerializeToString,
|
|
41
|
+
),
|
|
42
|
+
}
|
|
43
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
44
|
+
'meshtrade.trading.market_order.v1.MarketOrderService', rpc_method_handlers)
|
|
45
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
46
|
+
server.add_registered_method_handlers('meshtrade.trading.market_order.v1.MarketOrderService', rpc_method_handlers)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
# This class is part of an EXPERIMENTAL API.
|
|
50
|
+
class MarketOrderService(object):
|
|
51
|
+
"""Missing associated documentation comment in .proto file."""
|
|
52
|
+
|
|
53
|
+
@staticmethod
|
|
54
|
+
def GetMarketOrder(request,
|
|
55
|
+
target,
|
|
56
|
+
options=(),
|
|
57
|
+
channel_credentials=None,
|
|
58
|
+
call_credentials=None,
|
|
59
|
+
insecure=False,
|
|
60
|
+
compression=None,
|
|
61
|
+
wait_for_ready=None,
|
|
62
|
+
timeout=None,
|
|
63
|
+
metadata=None):
|
|
64
|
+
return grpc.experimental.unary_unary(
|
|
65
|
+
request,
|
|
66
|
+
target,
|
|
67
|
+
'/meshtrade.trading.market_order.v1.MarketOrderService/GetMarketOrder',
|
|
68
|
+
meshtrade_dot_trading_dot_market__order_dot_v1_dot_service__pb2.GetMarketOrderRequest.SerializeToString,
|
|
69
|
+
meshtrade_dot_trading_dot_market__order_dot_v1_dot_market__order__pb2.MarketOrder.FromString,
|
|
70
|
+
options,
|
|
71
|
+
channel_credentials,
|
|
72
|
+
insecure,
|
|
73
|
+
call_credentials,
|
|
74
|
+
compression,
|
|
75
|
+
wait_for_ready,
|
|
76
|
+
timeout,
|
|
77
|
+
metadata,
|
|
78
|
+
_registered_method=True)
|
meshtrade/type/v1/__init__.py
CHANGED
|
@@ -1,36 +1,63 @@
|
|
|
1
|
+
"""Type v1 package."""
|
|
2
|
+
|
|
3
|
+
# ===================================================================
|
|
4
|
+
# AUTO-GENERATED SECTION - ONLY EDIT BELOW THE CLOSING COMMENT BLOCK
|
|
5
|
+
# ===================================================================
|
|
6
|
+
# This section is automatically managed by protoc-gen-meshpy.
|
|
7
|
+
#
|
|
8
|
+
# DO NOT EDIT ANYTHING IN THIS SECTION MANUALLY!
|
|
9
|
+
# Your changes will be overwritten during code generation.
|
|
10
|
+
#
|
|
11
|
+
# To add custom imports and exports, scroll down to the
|
|
12
|
+
# "MANUAL SECTION" indicated below.
|
|
13
|
+
# ===================================================================
|
|
14
|
+
|
|
15
|
+
# Generated protobuf imports
|
|
1
16
|
from .address_pb2 import Address
|
|
2
|
-
from .amount import new_amount
|
|
3
|
-
from .amount_pb2 import Amount
|
|
4
17
|
from .contact_details_pb2 import ContactDetails
|
|
18
|
+
from .decimal_pb2 import Decimal
|
|
19
|
+
from .ledger_pb2 import Ledger
|
|
20
|
+
from .token_pb2 import Token
|
|
21
|
+
from .amount_pb2 import Amount
|
|
22
|
+
from .date_pb2 import Date
|
|
23
|
+
from .sorting_pb2 import SortingOrder
|
|
24
|
+
from .time_of_day_pb2 import TimeOfDay
|
|
25
|
+
|
|
26
|
+
# ===================================================================
|
|
27
|
+
# END OF AUTO-GENERATED SECTION
|
|
28
|
+
# ===================================================================
|
|
29
|
+
#
|
|
30
|
+
# MANUAL SECTION - ADD YOUR CUSTOM IMPORTS AND EXPORTS BELOW
|
|
31
|
+
#
|
|
32
|
+
# You can safely add your own imports, functions, classes, and exports
|
|
33
|
+
# in this section. They will be preserved across code generation.
|
|
34
|
+
#
|
|
35
|
+
# Example:
|
|
36
|
+
# from my_custom_module import my_function
|
|
37
|
+
#
|
|
38
|
+
# ===================================================================
|
|
39
|
+
|
|
40
|
+
from .amount import (
|
|
41
|
+
new_amount,
|
|
42
|
+
)
|
|
5
43
|
from .date import (
|
|
44
|
+
date_add_days,
|
|
45
|
+
date_add_months,
|
|
46
|
+
date_add_years,
|
|
6
47
|
date_to_python_date,
|
|
7
48
|
date_to_string,
|
|
49
|
+
date_is_after,
|
|
50
|
+
date_is_after_or_equal,
|
|
51
|
+
date_is_before,
|
|
52
|
+
date_is_before_or_equal,
|
|
53
|
+
date_is_complete,
|
|
54
|
+
date_is_equal,
|
|
8
55
|
new_date,
|
|
9
56
|
new_date_from_python_date,
|
|
57
|
+
date_is_valid,
|
|
10
58
|
)
|
|
11
|
-
from .date import (
|
|
12
|
-
is_complete as date_is_complete,
|
|
13
|
-
)
|
|
14
|
-
from .date import (
|
|
15
|
-
is_month_day as date_is_month_day,
|
|
16
|
-
)
|
|
17
|
-
from .date import (
|
|
18
|
-
is_valid as date_is_valid,
|
|
19
|
-
)
|
|
20
|
-
from .date import (
|
|
21
|
-
is_year_month as date_is_year_month,
|
|
22
|
-
)
|
|
23
|
-
from .date import (
|
|
24
|
-
is_year_only as date_is_year_only,
|
|
25
|
-
)
|
|
26
|
-
from .date_pb2 import Date
|
|
27
|
-
from .decimal_built_in_conversions import built_in_to_decimal, decimal_to_built_in
|
|
28
|
-
from .decimal_pb2 import Decimal
|
|
29
|
-
from .ledger import get_ledger_no_decimal_places
|
|
30
|
-
from .ledger_pb2 import Ledger
|
|
31
59
|
from .time_of_day import (
|
|
32
|
-
|
|
33
|
-
is_midnight,
|
|
60
|
+
time_of_day_is_midnight,
|
|
34
61
|
new_time_of_day,
|
|
35
62
|
new_time_of_day_from_datetime,
|
|
36
63
|
new_time_of_day_from_python_time,
|
|
@@ -39,46 +66,60 @@ from .time_of_day import (
|
|
|
39
66
|
time_of_day_to_python_time,
|
|
40
67
|
time_of_day_to_string,
|
|
41
68
|
time_of_day_to_timedelta,
|
|
42
|
-
|
|
69
|
+
time_of_day_total_seconds,
|
|
70
|
+
time_of_day_is_valid,
|
|
43
71
|
)
|
|
44
|
-
from .
|
|
45
|
-
|
|
72
|
+
from .decimal_built_in_conversions import (
|
|
73
|
+
built_in_to_decimal,
|
|
74
|
+
decimal_to_built_in,
|
|
75
|
+
)
|
|
76
|
+
from .ledger import (
|
|
77
|
+
get_ledger_no_decimal_places,
|
|
46
78
|
)
|
|
47
|
-
from .time_of_day_pb2 import TimeOfDay
|
|
48
|
-
from .token_pb2 import Token
|
|
49
79
|
|
|
80
|
+
# ===================================================================
|
|
81
|
+
# MODULE EXPORTS
|
|
82
|
+
# ===================================================================
|
|
83
|
+
# Combined auto-generated and manual exports
|
|
50
84
|
__all__ = [
|
|
85
|
+
# Generated exports
|
|
51
86
|
"Address",
|
|
52
|
-
"new_amount",
|
|
53
87
|
"Amount",
|
|
54
88
|
"ContactDetails",
|
|
55
|
-
"new_date",
|
|
56
|
-
"new_date_from_python_date",
|
|
57
|
-
"date_to_python_date",
|
|
58
|
-
"date_is_valid",
|
|
59
|
-
"date_is_complete",
|
|
60
|
-
"date_is_year_only",
|
|
61
|
-
"date_is_year_month",
|
|
62
|
-
"date_is_month_day",
|
|
63
|
-
"date_to_string",
|
|
64
89
|
"Date",
|
|
90
|
+
"Decimal",
|
|
91
|
+
"Ledger",
|
|
92
|
+
"SortingOrder",
|
|
93
|
+
"TimeOfDay",
|
|
94
|
+
"Token",
|
|
95
|
+
# Manual exports
|
|
65
96
|
"built_in_to_decimal",
|
|
97
|
+
"date_add_days",
|
|
98
|
+
"date_add_months",
|
|
99
|
+
"date_add_years",
|
|
100
|
+
"date_is_after",
|
|
101
|
+
"date_is_after_or_equal",
|
|
102
|
+
"date_is_before",
|
|
103
|
+
"date_is_before_or_equal",
|
|
104
|
+
"date_is_complete",
|
|
105
|
+
"date_is_equal",
|
|
106
|
+
"date_is_valid",
|
|
107
|
+
"date_to_python_date",
|
|
108
|
+
"date_to_string",
|
|
66
109
|
"decimal_to_built_in",
|
|
67
|
-
"Decimal",
|
|
68
110
|
"get_ledger_no_decimal_places",
|
|
69
|
-
"
|
|
111
|
+
"new_amount",
|
|
112
|
+
"new_date",
|
|
113
|
+
"new_date_from_python_date",
|
|
70
114
|
"new_time_of_day",
|
|
71
|
-
"new_time_of_day_from_python_time",
|
|
72
115
|
"new_time_of_day_from_datetime",
|
|
116
|
+
"new_time_of_day_from_python_time",
|
|
73
117
|
"new_time_of_day_from_timedelta",
|
|
74
|
-
"
|
|
75
|
-
"time_of_day_to_timedelta",
|
|
76
|
-
"time_of_day_to_datetime_with_date",
|
|
118
|
+
"time_of_day_is_midnight",
|
|
77
119
|
"time_of_day_is_valid",
|
|
78
|
-
"
|
|
79
|
-
"
|
|
120
|
+
"time_of_day_to_datetime_with_date",
|
|
121
|
+
"time_of_day_to_python_time",
|
|
80
122
|
"time_of_day_to_string",
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"Token",
|
|
123
|
+
"time_of_day_to_timedelta",
|
|
124
|
+
"time_of_day_total_seconds",
|
|
84
125
|
]
|
meshtrade/type/v1/address_pb2.py
CHANGED
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmeshtrade/type/v1/address.proto\x12\x11meshtrade.type.v1\"\xba\x01\n\x07\x41\x64\x64ress\x12#\n\raddress_lines\x18\x01 \x03(\tR\x0c\x61\x64\x64ressLines\x12\x16\n\x06suburb\x18\x02 \x01(\tR\x06suburb\x12\x12\n\x04\x63ity\x18\x03 \x01(\tR\x04\x63ity\x12\x1a\n\x08province\x18\x04 \x01(\tR\x08province\x12!\n\x0c\x63ountry_code\x18\x05 \x01(\tR\x0b\x63ountryCode\x12\x1f\n\x0bpostal_code\x18\x06 \x01(\tR\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fmeshtrade/type/v1/address.proto\x12\x11meshtrade.type.v1\"\xba\x01\n\x07\x41\x64\x64ress\x12#\n\raddress_lines\x18\x01 \x03(\tR\x0c\x61\x64\x64ressLines\x12\x16\n\x06suburb\x18\x02 \x01(\tR\x06suburb\x12\x12\n\x04\x63ity\x18\x03 \x01(\tR\x04\x63ity\x12\x1a\n\x08province\x18\x04 \x01(\tR\x08province\x12!\n\x0c\x63ountry_code\x18\x05 \x01(\tR\x0b\x63ountryCode\x12\x1f\n\x0bpostal_code\x18\x06 \x01(\tR\npostalCodeBF\n\x18\x63o.meshtrade.api.type.v1Z*github.com/meshtrade/api/go/type/v1;typev1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.type.v1.address_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z*github.com/meshtrade/api/go/type/v1;typev1'
|
|
35
35
|
_globals['_ADDRESS']._serialized_start=55
|
|
36
36
|
_globals['_ADDRESS']._serialized_end=241
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|
meshtrade/type/v1/amount.py
CHANGED
|
@@ -10,11 +10,7 @@ from .ledger import get_ledger_no_decimal_places
|
|
|
10
10
|
from .token_pb2 import Token
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
def new_amount(
|
|
14
|
-
value: Decimal,
|
|
15
|
-
token: Token,
|
|
16
|
-
precision_loss_tolerance: Decimal = Decimal("0.00000001")
|
|
17
|
-
) -> Amount:
|
|
13
|
+
def new_amount(value: Decimal, token: Token, precision_loss_tolerance: Decimal = Decimal("0.00000001")) -> Amount:
|
|
18
14
|
"""Creates a new Amount, ensuring the value conforms to system-wide limits.
|
|
19
15
|
|
|
20
16
|
This function is the safe constructor for creating Amount protobuf messages.
|
|
@@ -66,9 +62,7 @@ def new_amount(
|
|
|
66
62
|
# Confirm the value is perfectly representable within the system's limits.
|
|
67
63
|
# If the original value had too much precision for a downstream service to
|
|
68
64
|
# parse, it would change during the round-trip, and this would fail.
|
|
69
|
-
assert abs(value_after_roundtrip - value)
|
|
70
|
-
<= precision_loss_tolerance, \
|
|
71
|
-
"value exceeds system's precision limits and would be corrupted"
|
|
65
|
+
assert abs(value_after_roundtrip - value) <= precision_loss_tolerance, "value exceeds system's precision limits and would be corrupted"
|
|
72
66
|
|
|
73
67
|
# Truncate the validated value to the number of decimal places specified by the
|
|
74
68
|
# token's ledger. ROUND_DOWN ensures the value is never inflated.
|
meshtrade/type/v1/amount_pb2.py
CHANGED
|
@@ -26,14 +26,14 @@ from meshtrade.type.v1 import decimal_pb2 as meshtrade_dot_type_dot_v1_dot_decim
|
|
|
26
26
|
from meshtrade.type.v1 import token_pb2 as meshtrade_dot_type_dot_v1_dot_token__pb2
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emeshtrade/type/v1/amount.proto\x12\x11meshtrade.type.v1\x1a\x1fmeshtrade/type/v1/decimal.proto\x1a\x1dmeshtrade/type/v1/token.proto\"j\n\x06\x41mount\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x05token\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.meshtrade.type.v1.DecimalR\
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1emeshtrade/type/v1/amount.proto\x12\x11meshtrade.type.v1\x1a\x1fmeshtrade/type/v1/decimal.proto\x1a\x1dmeshtrade/type/v1/token.proto\"j\n\x06\x41mount\x12.\n\x05token\x18\x01 \x01(\x0b\x32\x18.meshtrade.type.v1.TokenR\x05token\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32\x1a.meshtrade.type.v1.DecimalR\x05valueBF\n\x18\x63o.meshtrade.api.type.v1Z*github.com/meshtrade/api/go/type/v1;typev1b\x06proto3')
|
|
30
30
|
|
|
31
31
|
_globals = globals()
|
|
32
32
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
33
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.type.v1.amount_pb2', _globals)
|
|
34
34
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
35
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
-
_globals['DESCRIPTOR']._serialized_options = b'
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z*github.com/meshtrade/api/go/type/v1;typev1'
|
|
37
37
|
_globals['_AMOUNT']._serialized_start=117
|
|
38
38
|
_globals['_AMOUNT']._serialized_end=223
|
|
39
39
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -24,14 +24,14 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'meshtrade/type/v1/contact_details.proto\x12\x11meshtrade.type.v1\"\xa4\x02\n\x0e\x43ontactDetails\x12#\n\remail_address\x18\x01 \x01(\tR\x0c\x65mailAddress\x12!\n\x0cphone_number\x18\x03 \x01(\tR\x0bphoneNumber\x12#\n\rmobile_number\x18\x05 \x01(\tR\x0cmobileNumber\x12\x18\n\x07website\x18\x06 \x01(\tR\x07website\x12\x1a\n\x08linkedin\x18\x07 \x01(\tR\x08linkedin\x12\x1a\n\x08\x66\x61\x63\x65\x62ook\x18\x08 \x01(\tR\x08\x66\x61\x63\x65\x62ook\x12\x1c\n\tinstagram\x18\t \x01(\tR\tinstagram\x12\x1b\n\tx_twitter\x18\n \x01(\tR\x08xTwitter\x12\x18\n\x07youtube\x18\x0b \x01(\tR\
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\'meshtrade/type/v1/contact_details.proto\x12\x11meshtrade.type.v1\"\xa4\x02\n\x0e\x43ontactDetails\x12#\n\remail_address\x18\x01 \x01(\tR\x0c\x65mailAddress\x12!\n\x0cphone_number\x18\x03 \x01(\tR\x0bphoneNumber\x12#\n\rmobile_number\x18\x05 \x01(\tR\x0cmobileNumber\x12\x18\n\x07website\x18\x06 \x01(\tR\x07website\x12\x1a\n\x08linkedin\x18\x07 \x01(\tR\x08linkedin\x12\x1a\n\x08\x66\x61\x63\x65\x62ook\x18\x08 \x01(\tR\x08\x66\x61\x63\x65\x62ook\x12\x1c\n\tinstagram\x18\t \x01(\tR\tinstagram\x12\x1b\n\tx_twitter\x18\n \x01(\tR\x08xTwitter\x12\x18\n\x07youtube\x18\x0b \x01(\tR\x07youtubeBF\n\x18\x63o.meshtrade.api.type.v1Z*github.com/meshtrade/api/go/type/v1;typev1b\x06proto3')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
31
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'meshtrade.type.v1.contact_details_pb2', _globals)
|
|
32
32
|
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
33
|
_globals['DESCRIPTOR']._loaded_options = None
|
|
34
|
-
_globals['DESCRIPTOR']._serialized_options = b'
|
|
34
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n\030co.meshtrade.api.type.v1Z*github.com/meshtrade/api/go/type/v1;typev1'
|
|
35
35
|
_globals['_CONTACTDETAILS']._serialized_start=63
|
|
36
36
|
_globals['_CONTACTDETAILS']._serialized_end=355
|
|
37
37
|
# @@protoc_insertion_point(module_scope)
|