chainstream-sdk 0.1.0__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.
- chainstream/__init__.py +46 -0
- chainstream/client.py +104 -0
- chainstream/openapi_client/__init__.py +156 -0
- chainstream/openapi_client/api/__init__.py +20 -0
- chainstream/openapi_client/api/blockchain_api.py +549 -0
- chainstream/openapi_client/api/defi_sol_moonshot_api.py +590 -0
- chainstream/openapi_client/api/defi_sol_pumpfun_api.py +314 -0
- chainstream/openapi_client/api/dex_api.py +1576 -0
- chainstream/openapi_client/api/dex_pool_api.py +645 -0
- chainstream/openapi_client/api/endpoint_api.py +1934 -0
- chainstream/openapi_client/api/ipfs_api.py +283 -0
- chainstream/openapi_client/api/jobs_api.py +562 -0
- chainstream/openapi_client/api/kyt_api.py +3743 -0
- chainstream/openapi_client/api/ranking_api.py +2067 -0
- chainstream/openapi_client/api/red_packet_api.py +2444 -0
- chainstream/openapi_client/api/token_api.py +9211 -0
- chainstream/openapi_client/api/trade_api.py +1352 -0
- chainstream/openapi_client/api/transaction_api.py +882 -0
- chainstream/openapi_client/api/wallet_api.py +1608 -0
- chainstream/openapi_client/api/watchlist_api.py +316 -0
- chainstream/openapi_client/api_client.py +801 -0
- chainstream/openapi_client/api_response.py +21 -0
- chainstream/openapi_client/configuration.py +572 -0
- chainstream/openapi_client/exceptions.py +217 -0
- chainstream/openapi_client/models/__init__.py +122 -0
- chainstream/openapi_client/models/address_exposure.py +94 -0
- chainstream/openapi_client/models/address_risk_response_dto.py +112 -0
- chainstream/openapi_client/models/alert_detail.py +100 -0
- chainstream/openapi_client/models/alterya_identification.py +106 -0
- chainstream/openapi_client/models/balance_change_type.py +38 -0
- chainstream/openapi_client/models/balance_token_type.py +38 -0
- chainstream/openapi_client/models/balance_update_dto.py +130 -0
- chainstream/openapi_client/models/balance_update_page.py +104 -0
- chainstream/openapi_client/models/blockchain_dto.py +94 -0
- chainstream/openapi_client/models/blockchain_latest_block_dto.py +90 -0
- chainstream/openapi_client/models/boolean_result_dto.py +88 -0
- chainstream/openapi_client/models/calculate_pnl_input.py +88 -0
- chainstream/openapi_client/models/candle.py +101 -0
- chainstream/openapi_client/models/chain.py +39 -0
- chainstream/openapi_client/models/chain_symbol.py +39 -0
- chainstream/openapi_client/models/chainalysis_address_identification.py +92 -0
- chainstream/openapi_client/models/claim_red_packet_input.py +103 -0
- chainstream/openapi_client/models/create_endpoint_input.py +102 -0
- chainstream/openapi_client/models/create_red_packet_input.py +112 -0
- chainstream/openapi_client/models/create_red_packet_reply.py +90 -0
- chainstream/openapi_client/models/create_token_input.py +110 -0
- chainstream/openapi_client/models/create_token_reply.py +90 -0
- chainstream/openapi_client/models/dev_token_dto.py +106 -0
- chainstream/openapi_client/models/dex_dto.py +94 -0
- chainstream/openapi_client/models/dex_page.py +106 -0
- chainstream/openapi_client/models/dex_pool_dto.py +161 -0
- chainstream/openapi_client/models/dex_pool_snapshot_dto.py +111 -0
- chainstream/openapi_client/models/dex_pool_snapshot_page.py +104 -0
- chainstream/openapi_client/models/dex_pool_token_liquidity.py +100 -0
- chainstream/openapi_client/models/dex_pool_token_snapshot_dto.py +100 -0
- chainstream/openapi_client/models/dex_quote_response.py +98 -0
- chainstream/openapi_client/models/direct_exposure_detail.py +90 -0
- chainstream/openapi_client/models/endpoint_list_response.py +102 -0
- chainstream/openapi_client/models/endpoint_operation_response.py +88 -0
- chainstream/openapi_client/models/endpoint_response.py +108 -0
- chainstream/openapi_client/models/endpoint_secret_response.py +88 -0
- chainstream/openapi_client/models/estimate_gas_limit_input.py +94 -0
- chainstream/openapi_client/models/estimate_gas_limit_response.py +90 -0
- chainstream/openapi_client/models/filter_condition.py +102 -0
- chainstream/openapi_client/models/gas_price_response.py +90 -0
- chainstream/openapi_client/models/job_dto.py +90 -0
- chainstream/openapi_client/models/job_streaming_dto.py +90 -0
- chainstream/openapi_client/models/kyt_register_transfer_request.py +108 -0
- chainstream/openapi_client/models/kyt_register_withdrawal_request.py +111 -0
- chainstream/openapi_client/models/link.py +97 -0
- chainstream/openapi_client/models/moonshot_create_token_input.py +145 -0
- chainstream/openapi_client/models/moonshot_create_token_reply.py +90 -0
- chainstream/openapi_client/models/moonshot_submit_create_token200_response.py +90 -0
- chainstream/openapi_client/models/moonshot_submit_create_token_input.py +90 -0
- chainstream/openapi_client/models/network_identification_org.py +88 -0
- chainstream/openapi_client/models/on_chain_activity.py +88 -0
- chainstream/openapi_client/models/pump_create_token_input.py +155 -0
- chainstream/openapi_client/models/pump_create_token_reply.py +90 -0
- chainstream/openapi_client/models/red_packet_claim_dto.py +103 -0
- chainstream/openapi_client/models/red_packet_claims_page.py +104 -0
- chainstream/openapi_client/models/red_packet_dto.py +121 -0
- chainstream/openapi_client/models/red_packet_reply.py +88 -0
- chainstream/openapi_client/models/red_packet_send_tx_input.py +88 -0
- chainstream/openapi_client/models/red_packet_send_tx_response.py +88 -0
- chainstream/openapi_client/models/red_packets_page.py +104 -0
- chainstream/openapi_client/models/register_address_request.py +88 -0
- chainstream/openapi_client/models/register_address_response_dto.py +88 -0
- chainstream/openapi_client/models/resolution.py +46 -0
- chainstream/openapi_client/models/send_tx_input.py +102 -0
- chainstream/openapi_client/models/send_tx_response.py +92 -0
- chainstream/openapi_client/models/swap_input.py +119 -0
- chainstream/openapi_client/models/swap_reply.py +90 -0
- chainstream/openapi_client/models/swap_route_input.py +127 -0
- chainstream/openapi_client/models/swap_route_response.py +98 -0
- chainstream/openapi_client/models/token.py +158 -0
- chainstream/openapi_client/models/token_creation_dto.py +107 -0
- chainstream/openapi_client/models/token_creation_page.py +106 -0
- chainstream/openapi_client/models/token_creators_dto.py +92 -0
- chainstream/openapi_client/models/token_extra_dto.py +128 -0
- chainstream/openapi_client/models/token_holder.py +94 -0
- chainstream/openapi_client/models/token_holder_page.py +106 -0
- chainstream/openapi_client/models/token_liquidity_snapshot_dto.py +106 -0
- chainstream/openapi_client/models/token_liquidity_snapshot_page.py +104 -0
- chainstream/openapi_client/models/token_list_page.py +106 -0
- chainstream/openapi_client/models/token_market_data.py +174 -0
- chainstream/openapi_client/models/token_metadata.py +132 -0
- chainstream/openapi_client/models/token_page.py +108 -0
- chainstream/openapi_client/models/token_price_dto.py +94 -0
- chainstream/openapi_client/models/token_price_page.py +106 -0
- chainstream/openapi_client/models/token_social_medias_dto.py +112 -0
- chainstream/openapi_client/models/token_stat.py +340 -0
- chainstream/openapi_client/models/token_trader.py +113 -0
- chainstream/openapi_client/models/token_trader_tag.py +45 -0
- chainstream/openapi_client/models/top_traders_dto.py +110 -0
- chainstream/openapi_client/models/top_traders_page.py +106 -0
- chainstream/openapi_client/models/trade_detail_dto.py +136 -0
- chainstream/openapi_client/models/trade_event.py +113 -0
- chainstream/openapi_client/models/trade_page.py +106 -0
- chainstream/openapi_client/models/trade_type.py +38 -0
- chainstream/openapi_client/models/transfer_alerts_response_dto.py +96 -0
- chainstream/openapi_client/models/transfer_base_response_dto.py +112 -0
- chainstream/openapi_client/models/transfer_direct_exposure_response_dto.py +92 -0
- chainstream/openapi_client/models/transfer_network_identifications_response_dto.py +98 -0
- chainstream/openapi_client/models/update_endpoint_input.py +104 -0
- chainstream/openapi_client/models/wallet_balance_detail_dto.py +136 -0
- chainstream/openapi_client/models/wallet_balances_dto.py +100 -0
- chainstream/openapi_client/models/wallet_pnl_dto.py +132 -0
- chainstream/openapi_client/models/withdrawal_address_identifications_response_dto.py +98 -0
- chainstream/openapi_client/models/withdrawal_base_response_dto.py +106 -0
- chainstream/openapi_client/models/withdrawal_fraud_assessment_response_dto.py +96 -0
- chainstream/openapi_client/rest.py +213 -0
- chainstream/openapi_client/test/__init__.py +0 -0
- chainstream/openapi_client/test/test_address_exposure.py +59 -0
- chainstream/openapi_client/test/test_address_risk_response_dto.py +81 -0
- chainstream/openapi_client/test/test_alert_detail.py +65 -0
- chainstream/openapi_client/test/test_alterya_identification.py +69 -0
- chainstream/openapi_client/test/test_balance_change_type.py +34 -0
- chainstream/openapi_client/test/test_balance_token_type.py +34 -0
- chainstream/openapi_client/test/test_balance_update_dto.py +93 -0
- chainstream/openapi_client/test/test_balance_update_page.py +105 -0
- chainstream/openapi_client/test/test_blockchain_api.py +46 -0
- chainstream/openapi_client/test/test_blockchain_dto.py +59 -0
- chainstream/openapi_client/test/test_blockchain_latest_block_dto.py +55 -0
- chainstream/openapi_client/test/test_boolean_result_dto.py +53 -0
- chainstream/openapi_client/test/test_calculate_pnl_input.py +52 -0
- chainstream/openapi_client/test/test_candle.py +65 -0
- chainstream/openapi_client/test/test_chain.py +34 -0
- chainstream/openapi_client/test/test_chain_symbol.py +34 -0
- chainstream/openapi_client/test/test_chainalysis_address_identification.py +57 -0
- chainstream/openapi_client/test/test_claim_red_packet_input.py +58 -0
- chainstream/openapi_client/test/test_create_endpoint_input.py +63 -0
- chainstream/openapi_client/test/test_create_red_packet_input.py +64 -0
- chainstream/openapi_client/test/test_create_red_packet_reply.py +55 -0
- chainstream/openapi_client/test/test_create_token_input.py +63 -0
- chainstream/openapi_client/test/test_create_token_reply.py +55 -0
- chainstream/openapi_client/test/test_defi_sol_moonshot_api.py +46 -0
- chainstream/openapi_client/test/test_defi_sol_pumpfun_api.py +39 -0
- chainstream/openapi_client/test/test_dev_token_dto.py +441 -0
- chainstream/openapi_client/test/test_dex_api.py +67 -0
- chainstream/openapi_client/test/test_dex_dto.py +56 -0
- chainstream/openapi_client/test/test_dex_page.py +70 -0
- chainstream/openapi_client/test/test_dex_pool_api.py +46 -0
- chainstream/openapi_client/test/test_dex_pool_dto.py +88 -0
- chainstream/openapi_client/test/test_dex_pool_snapshot_dto.py +96 -0
- chainstream/openapi_client/test/test_dex_pool_snapshot_page.py +81 -0
- chainstream/openapi_client/test/test_dex_pool_token_liquidity.py +65 -0
- chainstream/openapi_client/test/test_dex_pool_token_snapshot_dto.py +65 -0
- chainstream/openapi_client/test/test_dex_quote_response.py +57 -0
- chainstream/openapi_client/test/test_direct_exposure_detail.py +55 -0
- chainstream/openapi_client/test/test_endpoint_api.py +81 -0
- chainstream/openapi_client/test/test_endpoint_list_response.py +72 -0
- chainstream/openapi_client/test/test_endpoint_operation_response.py +52 -0
- chainstream/openapi_client/test/test_endpoint_response.py +66 -0
- chainstream/openapi_client/test/test_endpoint_secret_response.py +52 -0
- chainstream/openapi_client/test/test_estimate_gas_limit_input.py +58 -0
- chainstream/openapi_client/test/test_estimate_gas_limit_response.py +55 -0
- chainstream/openapi_client/test/test_filter_condition.py +54 -0
- chainstream/openapi_client/test/test_gas_price_response.py +55 -0
- chainstream/openapi_client/test/test_ipfs_api.py +39 -0
- chainstream/openapi_client/test/test_job_dto.py +55 -0
- chainstream/openapi_client/test/test_job_streaming_dto.py +55 -0
- chainstream/openapi_client/test/test_jobs_api.py +46 -0
- chainstream/openapi_client/test/test_kyt_api.py +130 -0
- chainstream/openapi_client/test/test_kyt_register_transfer_request.py +59 -0
- chainstream/openapi_client/test/test_kyt_register_withdrawal_request.py +65 -0
- chainstream/openapi_client/test/test_link.py +55 -0
- chainstream/openapi_client/test/test_moonshot_create_token_input.py +79 -0
- chainstream/openapi_client/test/test_moonshot_create_token_reply.py +55 -0
- chainstream/openapi_client/test/test_moonshot_submit_create_token200_response.py +53 -0
- chainstream/openapi_client/test/test_moonshot_submit_create_token_input.py +54 -0
- chainstream/openapi_client/test/test_network_identification_org.py +53 -0
- chainstream/openapi_client/test/test_on_chain_activity.py +53 -0
- chainstream/openapi_client/test/test_pump_create_token_input.py +71 -0
- chainstream/openapi_client/test/test_pump_create_token_reply.py +54 -0
- chainstream/openapi_client/test/test_ranking_api.py +67 -0
- chainstream/openapi_client/test/test_red_packet_api.py +88 -0
- chainstream/openapi_client/test/test_red_packet_claim_dto.py +67 -0
- chainstream/openapi_client/test/test_red_packet_claims_page.py +81 -0
- chainstream/openapi_client/test/test_red_packet_dto.py +85 -0
- chainstream/openapi_client/test/test_red_packet_reply.py +53 -0
- chainstream/openapi_client/test/test_red_packet_send_tx_input.py +53 -0
- chainstream/openapi_client/test/test_red_packet_send_tx_response.py +53 -0
- chainstream/openapi_client/test/test_red_packets_page.py +99 -0
- chainstream/openapi_client/test/test_register_address_request.py +53 -0
- chainstream/openapi_client/test/test_register_address_response_dto.py +53 -0
- chainstream/openapi_client/test/test_resolution.py +34 -0
- chainstream/openapi_client/test/test_send_tx_input.py +55 -0
- chainstream/openapi_client/test/test_send_tx_response.py +57 -0
- chainstream/openapi_client/test/test_swap_input.py +65 -0
- chainstream/openapi_client/test/test_swap_reply.py +55 -0
- chainstream/openapi_client/test/test_swap_route_input.py +69 -0
- chainstream/openapi_client/test/test_swap_route_response.py +85 -0
- chainstream/openapi_client/test/test_token.py +352 -0
- chainstream/openapi_client/test/test_token_api.py +193 -0
- chainstream/openapi_client/test/test_token_creation_dto.py +64 -0
- chainstream/openapi_client/test/test_token_creation_page.py +76 -0
- chainstream/openapi_client/test/test_token_creators_dto.py +54 -0
- chainstream/openapi_client/test/test_token_extra_dto.py +72 -0
- chainstream/openapi_client/test/test_token_holder.py +59 -0
- chainstream/openapi_client/test/test_token_holder_page.py +70 -0
- chainstream/openapi_client/test/test_token_liquidity_snapshot_dto.py +71 -0
- chainstream/openapi_client/test/test_token_liquidity_snapshot_page.py +83 -0
- chainstream/openapi_client/test/test_token_list_page.py +154 -0
- chainstream/openapi_client/test/test_token_market_data.py +101 -0
- chainstream/openapi_client/test/test_token_metadata.py +110 -0
- chainstream/openapi_client/test/test_token_page.py +155 -0
- chainstream/openapi_client/test/test_token_price_dto.py +59 -0
- chainstream/openapi_client/test/test_token_price_page.py +70 -0
- chainstream/openapi_client/test/test_token_social_medias_dto.py +64 -0
- chainstream/openapi_client/test/test_token_stat.py +257 -0
- chainstream/openapi_client/test/test_token_trader.py +65 -0
- chainstream/openapi_client/test/test_token_trader_tag.py +34 -0
- chainstream/openapi_client/test/test_top_traders_dto.py +75 -0
- chainstream/openapi_client/test/test_top_traders_page.py +86 -0
- chainstream/openapi_client/test/test_trade_api.py +53 -0
- chainstream/openapi_client/test/test_trade_detail_dto.py +101 -0
- chainstream/openapi_client/test/test_trade_event.py +77 -0
- chainstream/openapi_client/test/test_trade_page.py +112 -0
- chainstream/openapi_client/test/test_trade_type.py +34 -0
- chainstream/openapi_client/test/test_transaction_api.py +53 -0
- chainstream/openapi_client/test/test_transfer_alerts_response_dto.py +71 -0
- chainstream/openapi_client/test/test_transfer_base_response_dto.py +77 -0
- chainstream/openapi_client/test/test_transfer_direct_exposure_response_dto.py +57 -0
- chainstream/openapi_client/test/test_transfer_network_identifications_response_dto.py +61 -0
- chainstream/openapi_client/test/test_update_endpoint_input.py +64 -0
- chainstream/openapi_client/test/test_wallet_api.py +67 -0
- chainstream/openapi_client/test/test_wallet_balance_detail_dto.py +101 -0
- chainstream/openapi_client/test/test_wallet_balances_dto.py +111 -0
- chainstream/openapi_client/test/test_wallet_pnl_dto.py +97 -0
- chainstream/openapi_client/test/test_watchlist_api.py +39 -0
- chainstream/openapi_client/test/test_withdrawal_address_identifications_response_dto.py +65 -0
- chainstream/openapi_client/test/test_withdrawal_base_response_dto.py +71 -0
- chainstream/openapi_client/test/test_withdrawal_fraud_assessment_response_dto.py +73 -0
- chainstream/stream/__init__.py +74 -0
- chainstream/stream/client.py +761 -0
- chainstream/stream/fields.py +284 -0
- chainstream/stream/models.py +415 -0
- chainstream_sdk-0.1.0.dist-info/METADATA +80 -0
- chainstream_sdk-0.1.0.dist-info/RECORD +261 -0
- chainstream_sdk-0.1.0.dist-info/WHEEL +4 -0
- chainstream_sdk-0.1.0.dist-info/entry_points.txt +2 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.address_exposure import AddressExposure
|
|
19
|
+
|
|
20
|
+
class TestAddressExposure(unittest.TestCase):
|
|
21
|
+
"""AddressExposure unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def make_instance(self, include_optional) -> AddressExposure:
|
|
30
|
+
"""Test AddressExposure
|
|
31
|
+
include_optional is a boolean, when False only required
|
|
32
|
+
params are included, when True both required and
|
|
33
|
+
optional params are included """
|
|
34
|
+
# uncomment below to create an instance of `AddressExposure`
|
|
35
|
+
"""
|
|
36
|
+
model = AddressExposure()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return AddressExposure(
|
|
39
|
+
category = 'exchange',
|
|
40
|
+
value = '424895.68594',
|
|
41
|
+
exposure_type = 'indirect',
|
|
42
|
+
direction = 'both_directions'
|
|
43
|
+
)
|
|
44
|
+
else:
|
|
45
|
+
return AddressExposure(
|
|
46
|
+
category = 'exchange',
|
|
47
|
+
value = '424895.68594',
|
|
48
|
+
exposure_type = 'indirect',
|
|
49
|
+
direction = 'both_directions',
|
|
50
|
+
)
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def testAddressExposure(self):
|
|
54
|
+
"""Test AddressExposure"""
|
|
55
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
56
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
57
|
+
|
|
58
|
+
if __name__ == '__main__':
|
|
59
|
+
unittest.main()
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.address_risk_response_dto import AddressRiskResponseDTO
|
|
19
|
+
|
|
20
|
+
class TestAddressRiskResponseDTO(unittest.TestCase):
|
|
21
|
+
"""AddressRiskResponseDTO unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def make_instance(self, include_optional) -> AddressRiskResponseDTO:
|
|
30
|
+
"""Test AddressRiskResponseDTO
|
|
31
|
+
include_optional is a boolean, when False only required
|
|
32
|
+
params are included, when True both required and
|
|
33
|
+
optional params are included """
|
|
34
|
+
# uncomment below to create an instance of `AddressRiskResponseDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = AddressRiskResponseDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return AddressRiskResponseDTO(
|
|
39
|
+
address = '0x0038AC785dfB6C82b2c9A7B3B6854e08a10cb9f1',
|
|
40
|
+
risk = 'Low',
|
|
41
|
+
risk_reason = '',
|
|
42
|
+
address_type = 'PRIVATE_WALLET',
|
|
43
|
+
cluster = '',
|
|
44
|
+
address_identifications = [],
|
|
45
|
+
exposures = [
|
|
46
|
+
chainstream.openapi_client.models.address_exposure.AddressExposure(
|
|
47
|
+
category = 'exchange',
|
|
48
|
+
value = '424895.68594',
|
|
49
|
+
exposure_type = 'indirect',
|
|
50
|
+
direction = 'both_directions', )
|
|
51
|
+
],
|
|
52
|
+
triggers = [],
|
|
53
|
+
status = 'COMPLETE'
|
|
54
|
+
)
|
|
55
|
+
else:
|
|
56
|
+
return AddressRiskResponseDTO(
|
|
57
|
+
address = '0x0038AC785dfB6C82b2c9A7B3B6854e08a10cb9f1',
|
|
58
|
+
risk = 'Low',
|
|
59
|
+
risk_reason = '',
|
|
60
|
+
address_type = 'PRIVATE_WALLET',
|
|
61
|
+
cluster = '',
|
|
62
|
+
address_identifications = [],
|
|
63
|
+
exposures = [
|
|
64
|
+
chainstream.openapi_client.models.address_exposure.AddressExposure(
|
|
65
|
+
category = 'exchange',
|
|
66
|
+
value = '424895.68594',
|
|
67
|
+
exposure_type = 'indirect',
|
|
68
|
+
direction = 'both_directions', )
|
|
69
|
+
],
|
|
70
|
+
triggers = [],
|
|
71
|
+
status = 'COMPLETE',
|
|
72
|
+
)
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
def testAddressRiskResponseDTO(self):
|
|
76
|
+
"""Test AddressRiskResponseDTO"""
|
|
77
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
78
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
79
|
+
|
|
80
|
+
if __name__ == '__main__':
|
|
81
|
+
unittest.main()
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.alert_detail import AlertDetail
|
|
19
|
+
|
|
20
|
+
class TestAlertDetail(unittest.TestCase):
|
|
21
|
+
"""AlertDetail unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def make_instance(self, include_optional) -> AlertDetail:
|
|
30
|
+
"""Test AlertDetail
|
|
31
|
+
include_optional is a boolean, when False only required
|
|
32
|
+
params are included, when True both required and
|
|
33
|
+
optional params are included """
|
|
34
|
+
# uncomment below to create an instance of `AlertDetail`
|
|
35
|
+
"""
|
|
36
|
+
model = AlertDetail()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return AlertDetail(
|
|
39
|
+
alert_level = 'SEVERE',
|
|
40
|
+
service = 'OFAC SDN Blender.io 2022-05-06',
|
|
41
|
+
external_id = 'b7d17de0-f890-11ec-83bd-c37b1b9f5365',
|
|
42
|
+
alert_amount = '8868.24',
|
|
43
|
+
exposure_type = 'DIRECT',
|
|
44
|
+
category_id = 3,
|
|
45
|
+
memo = ''
|
|
46
|
+
)
|
|
47
|
+
else:
|
|
48
|
+
return AlertDetail(
|
|
49
|
+
alert_level = 'SEVERE',
|
|
50
|
+
service = 'OFAC SDN Blender.io 2022-05-06',
|
|
51
|
+
external_id = 'b7d17de0-f890-11ec-83bd-c37b1b9f5365',
|
|
52
|
+
alert_amount = '8868.24',
|
|
53
|
+
exposure_type = 'DIRECT',
|
|
54
|
+
category_id = 3,
|
|
55
|
+
memo = '',
|
|
56
|
+
)
|
|
57
|
+
"""
|
|
58
|
+
|
|
59
|
+
def testAlertDetail(self):
|
|
60
|
+
"""Test AlertDetail"""
|
|
61
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
62
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
63
|
+
|
|
64
|
+
if __name__ == '__main__':
|
|
65
|
+
unittest.main()
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.alterya_identification import AlteryaIdentification
|
|
19
|
+
|
|
20
|
+
class TestAlteryaIdentification(unittest.TestCase):
|
|
21
|
+
"""AlteryaIdentification unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def make_instance(self, include_optional) -> AlteryaIdentification:
|
|
30
|
+
"""Test AlteryaIdentification
|
|
31
|
+
include_optional is a boolean, when False only required
|
|
32
|
+
params are included, when True both required and
|
|
33
|
+
optional params are included """
|
|
34
|
+
# uncomment below to create an instance of `AlteryaIdentification`
|
|
35
|
+
"""
|
|
36
|
+
model = AlteryaIdentification()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return AlteryaIdentification(
|
|
39
|
+
object = 'address_risk_response',
|
|
40
|
+
address = '0x8878ebb38c617b48630dca8d4af5ab788a3f94c5',
|
|
41
|
+
chain = 'eth',
|
|
42
|
+
risk_level = 'severe',
|
|
43
|
+
reason = 'scam',
|
|
44
|
+
labels = [scam, disputed],
|
|
45
|
+
on_chain_activity = chainstream.openapi_client.models.on_chain_activity.OnChainActivity(
|
|
46
|
+
first_transaction_at = 1724317680, ),
|
|
47
|
+
risk_score = '99.99'
|
|
48
|
+
)
|
|
49
|
+
else:
|
|
50
|
+
return AlteryaIdentification(
|
|
51
|
+
object = 'address_risk_response',
|
|
52
|
+
address = '0x8878ebb38c617b48630dca8d4af5ab788a3f94c5',
|
|
53
|
+
chain = 'eth',
|
|
54
|
+
risk_level = 'severe',
|
|
55
|
+
reason = 'scam',
|
|
56
|
+
labels = [scam, disputed],
|
|
57
|
+
on_chain_activity = chainstream.openapi_client.models.on_chain_activity.OnChainActivity(
|
|
58
|
+
first_transaction_at = 1724317680, ),
|
|
59
|
+
risk_score = '99.99',
|
|
60
|
+
)
|
|
61
|
+
"""
|
|
62
|
+
|
|
63
|
+
def testAlteryaIdentification(self):
|
|
64
|
+
"""Test AlteryaIdentification"""
|
|
65
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
66
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
67
|
+
|
|
68
|
+
if __name__ == '__main__':
|
|
69
|
+
unittest.main()
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.balance_change_type import BalanceChangeType
|
|
19
|
+
|
|
20
|
+
class TestBalanceChangeType(unittest.TestCase):
|
|
21
|
+
"""BalanceChangeType unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def testBalanceChangeType(self):
|
|
30
|
+
"""Test BalanceChangeType"""
|
|
31
|
+
# inst = BalanceChangeType()
|
|
32
|
+
|
|
33
|
+
if __name__ == '__main__':
|
|
34
|
+
unittest.main()
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.balance_token_type import BalanceTokenType
|
|
19
|
+
|
|
20
|
+
class TestBalanceTokenType(unittest.TestCase):
|
|
21
|
+
"""BalanceTokenType unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def testBalanceTokenType(self):
|
|
30
|
+
"""Test BalanceTokenType"""
|
|
31
|
+
# inst = BalanceTokenType()
|
|
32
|
+
|
|
33
|
+
if __name__ == '__main__':
|
|
34
|
+
unittest.main()
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.balance_update_dto import BalanceUpdateDTO
|
|
19
|
+
|
|
20
|
+
class TestBalanceUpdateDTO(unittest.TestCase):
|
|
21
|
+
"""BalanceUpdateDTO unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def make_instance(self, include_optional) -> BalanceUpdateDTO:
|
|
30
|
+
"""Test BalanceUpdateDTO
|
|
31
|
+
include_optional is a boolean, when False only required
|
|
32
|
+
params are included, when True both required and
|
|
33
|
+
optional params are included """
|
|
34
|
+
# uncomment below to create an instance of `BalanceUpdateDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = BalanceUpdateDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return BalanceUpdateDTO(
|
|
39
|
+
id = 1,
|
|
40
|
+
block_hash = '5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW',
|
|
41
|
+
block_height = 123456789,
|
|
42
|
+
block_slot = 123456789,
|
|
43
|
+
block_timestamp = 1705312800,
|
|
44
|
+
transaction_signature = '5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW',
|
|
45
|
+
index = 0,
|
|
46
|
+
token_address = '6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
|
|
47
|
+
token_account_address = 'MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2',
|
|
48
|
+
account_owner_address = 'MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2',
|
|
49
|
+
pre_balance = '1000.123456',
|
|
50
|
+
pre_balance_in_native = '5.123456789',
|
|
51
|
+
pre_balance_in_usd = '1234.56',
|
|
52
|
+
post_balance = '1100.123456',
|
|
53
|
+
post_balance_in_native = '5.623456789',
|
|
54
|
+
post_balance_in_usd = '1357.90',
|
|
55
|
+
balance_change = '100.000000',
|
|
56
|
+
balance_change_in_native = '0.500000000',
|
|
57
|
+
balance_change_in_usd = '123.34',
|
|
58
|
+
type = 'SOL',
|
|
59
|
+
change_type = 'INCREASE'
|
|
60
|
+
)
|
|
61
|
+
else:
|
|
62
|
+
return BalanceUpdateDTO(
|
|
63
|
+
id = 1,
|
|
64
|
+
block_hash = '5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW',
|
|
65
|
+
block_height = 123456789,
|
|
66
|
+
block_slot = 123456789,
|
|
67
|
+
block_timestamp = 1705312800,
|
|
68
|
+
transaction_signature = '5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW',
|
|
69
|
+
index = 0,
|
|
70
|
+
token_address = '6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
|
|
71
|
+
token_account_address = 'MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2',
|
|
72
|
+
account_owner_address = 'MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2',
|
|
73
|
+
pre_balance = '1000.123456',
|
|
74
|
+
pre_balance_in_native = '5.123456789',
|
|
75
|
+
pre_balance_in_usd = '1234.56',
|
|
76
|
+
post_balance = '1100.123456',
|
|
77
|
+
post_balance_in_native = '5.623456789',
|
|
78
|
+
post_balance_in_usd = '1357.90',
|
|
79
|
+
balance_change = '100.000000',
|
|
80
|
+
balance_change_in_native = '0.500000000',
|
|
81
|
+
balance_change_in_usd = '123.34',
|
|
82
|
+
type = 'SOL',
|
|
83
|
+
change_type = 'INCREASE',
|
|
84
|
+
)
|
|
85
|
+
"""
|
|
86
|
+
|
|
87
|
+
def testBalanceUpdateDTO(self):
|
|
88
|
+
"""Test BalanceUpdateDTO"""
|
|
89
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
90
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
91
|
+
|
|
92
|
+
if __name__ == '__main__':
|
|
93
|
+
unittest.main()
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.balance_update_page import BalanceUpdatePage
|
|
19
|
+
|
|
20
|
+
class TestBalanceUpdatePage(unittest.TestCase):
|
|
21
|
+
"""BalanceUpdatePage unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def make_instance(self, include_optional) -> BalanceUpdatePage:
|
|
30
|
+
"""Test BalanceUpdatePage
|
|
31
|
+
include_optional is a boolean, when False only required
|
|
32
|
+
params are included, when True both required and
|
|
33
|
+
optional params are included """
|
|
34
|
+
# uncomment below to create an instance of `BalanceUpdatePage`
|
|
35
|
+
"""
|
|
36
|
+
model = BalanceUpdatePage()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return BalanceUpdatePage(
|
|
39
|
+
data = [
|
|
40
|
+
chainstream.openapi_client.models.balance_update_dto.BalanceUpdateDTO(
|
|
41
|
+
id = 1,
|
|
42
|
+
block_hash = '5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW',
|
|
43
|
+
block_height = 123456789,
|
|
44
|
+
block_slot = 123456789,
|
|
45
|
+
block_timestamp = 1705312800,
|
|
46
|
+
transaction_signature = '5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW',
|
|
47
|
+
index = 0,
|
|
48
|
+
token_address = '6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
|
|
49
|
+
token_account_address = 'MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2',
|
|
50
|
+
account_owner_address = 'MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2',
|
|
51
|
+
pre_balance = '1000.123456',
|
|
52
|
+
pre_balance_in_native = '5.123456789',
|
|
53
|
+
pre_balance_in_usd = '1234.56',
|
|
54
|
+
post_balance = '1100.123456',
|
|
55
|
+
post_balance_in_native = '5.623456789',
|
|
56
|
+
post_balance_in_usd = '1357.90',
|
|
57
|
+
balance_change = '100.000000',
|
|
58
|
+
balance_change_in_native = '0.500000000',
|
|
59
|
+
balance_change_in_usd = '123.34',
|
|
60
|
+
type = SPL,
|
|
61
|
+
change_type = INCREASE, )
|
|
62
|
+
],
|
|
63
|
+
start_cursor = '',
|
|
64
|
+
end_cursor = '',
|
|
65
|
+
has_next = True,
|
|
66
|
+
has_prev = True
|
|
67
|
+
)
|
|
68
|
+
else:
|
|
69
|
+
return BalanceUpdatePage(
|
|
70
|
+
data = [
|
|
71
|
+
chainstream.openapi_client.models.balance_update_dto.BalanceUpdateDTO(
|
|
72
|
+
id = 1,
|
|
73
|
+
block_hash = '5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW',
|
|
74
|
+
block_height = 123456789,
|
|
75
|
+
block_slot = 123456789,
|
|
76
|
+
block_timestamp = 1705312800,
|
|
77
|
+
transaction_signature = '5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uirBgmQpjKhoR4tjF3ZpRzrFmBV6UjKdiSZkQUW',
|
|
78
|
+
index = 0,
|
|
79
|
+
token_address = '6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN',
|
|
80
|
+
token_account_address = 'MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2',
|
|
81
|
+
account_owner_address = 'MJKqp326RZCHnAAbew9MDdui3iCKWco7fsK9sVuZTX2',
|
|
82
|
+
pre_balance = '1000.123456',
|
|
83
|
+
pre_balance_in_native = '5.123456789',
|
|
84
|
+
pre_balance_in_usd = '1234.56',
|
|
85
|
+
post_balance = '1100.123456',
|
|
86
|
+
post_balance_in_native = '5.623456789',
|
|
87
|
+
post_balance_in_usd = '1357.90',
|
|
88
|
+
balance_change = '100.000000',
|
|
89
|
+
balance_change_in_native = '0.500000000',
|
|
90
|
+
balance_change_in_usd = '123.34',
|
|
91
|
+
type = SPL,
|
|
92
|
+
change_type = INCREASE, )
|
|
93
|
+
],
|
|
94
|
+
has_next = True,
|
|
95
|
+
has_prev = True,
|
|
96
|
+
)
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
def testBalanceUpdatePage(self):
|
|
100
|
+
"""Test BalanceUpdatePage"""
|
|
101
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
102
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
103
|
+
|
|
104
|
+
if __name__ == '__main__':
|
|
105
|
+
unittest.main()
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.api.blockchain_api import BlockchainApi
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class TestBlockchainApi(unittest.IsolatedAsyncioTestCase):
|
|
22
|
+
"""BlockchainApi unit test stubs"""
|
|
23
|
+
|
|
24
|
+
async def asyncSetUp(self) -> None:
|
|
25
|
+
self.api = BlockchainApi()
|
|
26
|
+
|
|
27
|
+
async def asyncTearDown(self) -> None:
|
|
28
|
+
await self.api.api_client.close()
|
|
29
|
+
|
|
30
|
+
async def test_get_latest_block(self) -> None:
|
|
31
|
+
"""Test case for get_latest_block
|
|
32
|
+
|
|
33
|
+
CONTROLLER.GET_LATEST_BLOCK.SUMMARY
|
|
34
|
+
"""
|
|
35
|
+
pass
|
|
36
|
+
|
|
37
|
+
async def test_get_supported_blockchains(self) -> None:
|
|
38
|
+
"""Test case for get_supported_blockchains
|
|
39
|
+
|
|
40
|
+
CONTROLLER.GET_SUPPORTED_BLOCKCHAINS.SUMMARY
|
|
41
|
+
"""
|
|
42
|
+
pass
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
if __name__ == '__main__':
|
|
46
|
+
unittest.main()
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
Dex Aggregator API
|
|
5
|
+
|
|
6
|
+
Dex Aggregator API ⚡️
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
9
|
+
Contact: ai@sx.ai
|
|
10
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
11
|
+
|
|
12
|
+
Do not edit the class manually.
|
|
13
|
+
""" # noqa: E501
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import unittest
|
|
17
|
+
|
|
18
|
+
from chainstream.openapi_client.models.blockchain_dto import BlockchainDTO
|
|
19
|
+
|
|
20
|
+
class TestBlockchainDTO(unittest.TestCase):
|
|
21
|
+
"""BlockchainDTO unit test stubs"""
|
|
22
|
+
|
|
23
|
+
def setUp(self):
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
def tearDown(self):
|
|
27
|
+
pass
|
|
28
|
+
|
|
29
|
+
def make_instance(self, include_optional) -> BlockchainDTO:
|
|
30
|
+
"""Test BlockchainDTO
|
|
31
|
+
include_optional is a boolean, when False only required
|
|
32
|
+
params are included, when True both required and
|
|
33
|
+
optional params are included """
|
|
34
|
+
# uncomment below to create an instance of `BlockchainDTO`
|
|
35
|
+
"""
|
|
36
|
+
model = BlockchainDTO()
|
|
37
|
+
if include_optional:
|
|
38
|
+
return BlockchainDTO(
|
|
39
|
+
symbol = 'SOL',
|
|
40
|
+
name = 'Solana',
|
|
41
|
+
explorer_url = 'https://explorer.solana.com',
|
|
42
|
+
chain_id = 1
|
|
43
|
+
)
|
|
44
|
+
else:
|
|
45
|
+
return BlockchainDTO(
|
|
46
|
+
symbol = 'SOL',
|
|
47
|
+
name = 'Solana',
|
|
48
|
+
explorer_url = 'https://explorer.solana.com',
|
|
49
|
+
chain_id = 1,
|
|
50
|
+
)
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def testBlockchainDTO(self):
|
|
54
|
+
"""Test BlockchainDTO"""
|
|
55
|
+
# inst_req_only = self.make_instance(include_optional=False)
|
|
56
|
+
# inst_req_and_optional = self.make_instance(include_optional=True)
|
|
57
|
+
|
|
58
|
+
if __name__ == '__main__':
|
|
59
|
+
unittest.main()
|