├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .pre-commit-config.yaml ├── LICENSE ├── README.md ├── goplus ├── __init__.py ├── __version__.py ├── address.py ├── approve.py ├── auth.py ├── base.py ├── chain.py ├── dapp.py ├── decode.py ├── errorcode.py ├── nft.py ├── phishing_site.py ├── rug_pull.py └── token.py ├── requirements.txt ├── setup.py ├── swagger_client ├── __init__.py ├── api │ ├── __init__.py │ ├── approve_controller_v_1_api.py │ ├── approve_controller_v_2_api.py │ ├── contract_abi_controller_api.py │ ├── dapp_controller_api.py │ ├── defi_controller_api.py │ ├── lock_controller_api.py │ ├── nft_controller_api.py │ ├── token_controller_api.py │ ├── token_controller_v_1_api.py │ ├── token_security_api_for_solana__beta_api.py │ ├── token_security_api_for_sui_api.py │ ├── transaction_simulation_for_solana_api.py │ └── website_controller_api.py ├── api_client.py ├── configuration.py ├── models │ ├── __init__.py │ ├── abi_address_info.py │ ├── abi_param_info.py │ ├── approve_address_info.py │ ├── approve_erc1155_result.py │ ├── approve_nft1155_list_response.py │ ├── approve_nft_list_response.py │ ├── approve_result.py │ ├── approve_token_out_list_response.py │ ├── approve_token_result.py │ ├── audit_info.py │ ├── contract_approve_response.py │ ├── contracts.py │ ├── contracts_security.py │ ├── dapp_contract_security_response.py │ ├── get_access_token_request.py │ ├── get_access_token_response.py │ ├── get_defi_info_response.py │ ├── get_defi_info_response_result.py │ ├── get_defi_info_response_result_owner.py │ ├── json_object.py │ ├── map_string_string.py │ ├── new_allowance.py │ ├── nft_locker_response.py │ ├── parse_abi_data_request.py │ ├── parse_abi_data_response.py │ ├── response_wrapper_address_contract.py │ ├── response_wrapper_address_contract_result.py │ ├── response_wrapper_contract_approve_response.py │ ├── response_wrapper_dapp_contract_security_response.py │ ├── response_wrapper_get_access_token_response.py │ ├── response_wrapper_get_nft_info.py │ ├── response_wrapper_get_nft_info_result.py │ ├── response_wrapper_get_nft_info_result_privileged_burn.py │ ├── response_wrapper_get_nft_info_result_privileged_minting.py │ ├── response_wrapper_get_nft_info_result_same_nfts.py │ ├── response_wrapper_get_nft_info_result_self_destruct.py │ ├── response_wrapper_get_nft_info_result_transfer_without_approval.py │ ├── response_wrapper_json_object.py │ ├── response_wrapper_list_approve_nft1155_list_response.py │ ├── response_wrapper_list_approve_nft_list_response.py │ ├── response_wrapper_list_approve_token_out_list_response.py │ ├── response_wrapper_list_get_chains_list.py │ ├── response_wrapper_list_get_chains_list_result.py │ ├── response_wrapper_list_json_object.py │ ├── response_wrapper_map_string_string.py │ ├── response_wrapper_nft_locker_response.py │ ├── response_wrapper_parse_abi_data_response.py │ ├── response_wrapper_phishing_site.py │ ├── response_wrapper_phishing_site_result.py │ ├── response_wrapper_phishing_site_result_nft_risk.py │ ├── response_wrapper_phishing_site_result_nft_risk_privileged_burn.py │ ├── response_wrapper_phishing_site_result_nft_risk_privileged_minting.py │ ├── response_wrapper_phishing_site_result_nft_risk_self_destruct.py │ ├── response_wrapper_phishing_site_result_nft_risk_transfer_without_approval.py │ ├── response_wrapper_phishing_site_result_website_contract_security.py │ ├── response_wrapper_solana_prerun_tx_response.py │ ├── response_wrapper_solana_token_security.py │ ├── response_wrapper_solana_token_security_balance_mutable_authority.py │ ├── response_wrapper_solana_token_security_closable.py │ ├── response_wrapper_solana_token_security_closable_authority.py │ ├── response_wrapper_solana_token_security_creator.py │ ├── response_wrapper_solana_token_security_day.py │ ├── response_wrapper_solana_token_security_default_account_state_upgradable.py │ ├── response_wrapper_solana_token_security_dex.py │ ├── response_wrapper_solana_token_security_freezable.py │ ├── response_wrapper_solana_token_security_lp_holders.py │ ├── response_wrapper_solana_token_security_metadata.py │ ├── response_wrapper_solana_token_security_metadata_mutable.py │ ├── response_wrapper_solana_token_security_mintable.py │ ├── response_wrapper_solana_token_security_month.py │ ├── response_wrapper_solana_token_security_result.py │ ├── response_wrapper_solana_token_security_transfer_fee.py │ ├── response_wrapper_solana_token_security_transfer_fee_current_fee_rate.py │ ├── response_wrapper_solana_token_security_transfer_fee_scheduled_fee_rate.py │ ├── response_wrapper_solana_token_security_transfer_fee_upgradable.py │ ├── response_wrapper_solana_token_security_transfer_hook.py │ ├── response_wrapper_solana_token_security_transfer_hook_upgradable.py │ ├── response_wrapper_solana_token_security_week.py │ ├── response_wrapper_sui_token_security.py │ ├── response_wrapper_sui_token_security_blacklist.py │ ├── response_wrapper_sui_token_security_contract_upgradeable.py │ ├── response_wrapper_sui_token_security_metadata_modifiable.py │ ├── response_wrapper_sui_token_security_mintable.py │ ├── response_wrapper_sui_token_security_result.py │ ├── response_wrapper_ta_token_security_response.py │ ├── response_wrapper_token_locker_response.py │ ├── response_wrapper_token_security.py │ ├── response_wrapper_token_security_dex.py │ ├── response_wrapper_token_security_fake_token.py │ ├── response_wrapper_token_security_holders.py │ ├── response_wrapper_token_security_locked_detail.py │ ├── response_wrapper_token_security_lp_holders.py │ ├── response_wrapper_token_security_nft_list.py │ ├── response_wrapper_token_security_result.py │ ├── response_wrapperobject.py │ ├── solana_allowance_upgrade.py │ ├── solana_ownership_change.py │ ├── solana_prerun_tx_request.py │ ├── solana_prerun_tx_response.py │ ├── solana_tx_asset_change.py │ ├── solana_tx_asset_changes.py │ ├── solana_tx_change_detail.py │ ├── solana_tx_sol_change.py │ ├── ta_nft_locker_lock_infoobject.py │ ├── ta_token_locker_lock_infoobject.py │ ├── ta_token_security_response.py │ └── token_locker_response.py └── rest.py ├── templates └── LICENSE.txt └── test_goplus.py /.github/workflows/ci.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: [ "main" ] 6 | pull_request: 7 | branches: [ "main" ] 8 | 9 | jobs: 10 | # pre-commit: 11 | # runs-on: ubuntu-latest 12 | # steps: 13 | # - name: Checkout 14 | # uses: actions/checkout@v2 15 | # - name: Set up Python 16 | # uses: actions/setup-python@v3 17 | # with: 18 | # python-version: 3.10.6 19 | # - name: Install pre-commit 20 | # run: pip install pre-commit 21 | # - name: Run pre-commit 22 | # run: pre-commit run --all-files 23 | test: 24 | runs-on: ubuntu-latest 25 | strategy: 26 | fail-fast: false 27 | matrix: 28 | python-version: ["3.10.6"] 29 | steps: 30 | - uses: actions/checkout@v3 31 | - name: Set up Python ${{ matrix.python-version }} 32 | uses: actions/setup-python@v3 33 | with: 34 | python-version: ${{ matrix.python-version }} 35 | - name: Install dependencies 36 | run: | 37 | python -m pip install --upgrade pip 38 | python -m pip install pytest 39 | if [ -f requirements.txt ]; then pip install -r requirements.txt; fi 40 | - name: Test with pytest 41 | run: | 42 | pytest -v 43 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | *$py.class 5 | 6 | # C extensions 7 | *.so 8 | 9 | # Distribution / packaging 10 | .Python 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | .eggs/ 17 | lib/ 18 | lib64/ 19 | parts/ 20 | sdist/ 21 | var/ 22 | wheels/ 23 | pip-wheel-metadata/ 24 | share/python-wheels/ 25 | *.egg-info/ 26 | .installed.cfg 27 | *.egg 28 | MANIFEST 29 | 30 | # PyInstaller 31 | # Usually these files are written by a python script from a template 32 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 33 | *.manifest 34 | *.spec 35 | 36 | # Installer logs 37 | pip-log.txt 38 | pip-delete-this-directory.txt 39 | 40 | # Unit test / coverage reports 41 | htmlcov/ 42 | .tox/ 43 | .nox/ 44 | .coverage 45 | .coverage.* 46 | .cache 47 | nosetests.xml 48 | coverage.xml 49 | *.cover 50 | *.py,cover 51 | .hypothesis/ 52 | .pytest_cache/ 53 | 54 | # Translations 55 | *.mo 56 | *.pot 57 | 58 | # Django stuff: 59 | *.log 60 | local_settings.py 61 | db.sqlite3 62 | db.sqlite3-journal 63 | 64 | # Flask stuff: 65 | instance/ 66 | .webassets-cache 67 | 68 | # Scrapy stuff: 69 | .scrapy 70 | 71 | # Sphinx documentation 72 | docs/_build/ 73 | 74 | # PyBuilder 75 | target/ 76 | 77 | # Jupyter Notebook 78 | .ipynb_checkpoints 79 | 80 | # IPython 81 | profile_default/ 82 | ipython_config.py 83 | 84 | # pyenv 85 | .python-version 86 | 87 | # pipenv 88 | # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. 89 | # However, in case of collaboration, if having platform-specific dependencies or dependencies 90 | # having no cross-platform support, pipenv may install dependencies that don't work, or not 91 | # install all needed dependencies. 92 | #Pipfile.lock 93 | 94 | # PEP 582; used by e.g. github.com/David-OConnor/pyflow 95 | __pypackages__/ 96 | 97 | # Celery stuff 98 | celerybeat-schedule 99 | celerybeat.pid 100 | 101 | # SageMath parsed files 102 | *.sage.py 103 | 104 | # Environments 105 | .env 106 | .venv 107 | env/ 108 | venv/ 109 | ENV/ 110 | env.bak/ 111 | venv.bak/ 112 | 113 | # Spyder project settings 114 | .spyderproject 115 | .spyproject 116 | 117 | # Rope project settings 118 | .ropeproject 119 | 120 | # mkdocs documentation 121 | /site 122 | 123 | # mypy 124 | .mypy_cache/ 125 | .dmypy.json 126 | dmypy.json 127 | 128 | # Pyre type checker 129 | .pyre/ 130 | 131 | # IDE configuration 132 | .idea/ 133 | .vscode 134 | -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- 1 | repos: 2 | - repo: https://github.com/Lucas-C/pre-commit-hooks 3 | rev: v1.1.9 4 | hooks: 5 | - id: insert-license 6 | name: Add license for all python files 7 | exclude: ^(\.github|swagger_client)/.*$ 8 | types: [python] 9 | args: 10 | - --comment-style 11 | - "|#|" 12 | - --license-filepath 13 | - templates/LICENSE.txt 14 | - --fuzzy-match-generates-todo 15 | - repo: https://github.com/pre-commit/pre-commit-hooks 16 | rev: v4.0.1 17 | hooks: 18 | - id: check-yaml 19 | - id: debug-statements 20 | - id: end-of-file-fixer 21 | - id: trailing-whitespace 22 | exclude: ^swagger_client/ 23 | - repo: https://github.com/PyCQA/flake8 24 | rev: 3.9.2 25 | hooks: 26 | - id: flake8 27 | exclude: '^swagger_client/' 28 | args: 29 | - "--max-line-length=120" 30 | - repo: https://github.com/PyCQA/isort 31 | rev: 5.12.0 32 | hooks: 33 | - id: isort 34 | exclude: ^swagger_client/ 35 | args: ["--profile", "black"] 36 | - repo: https://github.com/psf/black 37 | rev: 22.3.0 38 | hooks: 39 | - id: black 40 | exclude: ^swagger_client/ 41 | #- repo: https://github.com/pre-commit/mirrors-mypy 42 | # rev: v1.2.0 43 | # hooks: 44 | # - id: mypy 45 | # exclude: ^swagger_client/ 46 | # args: 47 | # - "--ignore-missing-imports" 48 | # additional_dependencies: 49 | # - 'sqlalchemy[mypy]' 50 | # - 'types-python-dateutil' 51 | # - 'types-six' 52 | # - 'types-urllib3' 53 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # GoPlus Security SDK for Python 2 | 3 | The official [GoPlus Security](https://gopluslabs.io/) Python SDK. 4 | 5 | ## Installation 6 | 7 | ``` 8 | pip install goplus 9 | ``` 10 | 11 | ## Documentation 12 | 13 | Please see the [SDK guide](https://docs.gopluslabs.io/docs/goplus-sdk) and [API reference](https://docs.gopluslabs.io/reference/api-overview) for the most up-to-date documentation and examples. 14 | -------------------------------------------------------------------------------- /goplus/__init__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | -------------------------------------------------------------------------------- /goplus/__version__.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | VERSION = (0, 2, 4) 15 | 16 | __version__ = ".".join(map(str, VERSION)) 17 | -------------------------------------------------------------------------------- /goplus/address.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | from goplus.base import Base 15 | from swagger_client.api.approve_controller_v_1_api import ApproveControllerV1Api 16 | 17 | 18 | class Address(Base): 19 | def __init__(self, access_token=None): 20 | super().__init__(access_token=access_token) 21 | self.api = ApproveControllerV1Api() 22 | 23 | def address_security(self, address: str, chain_id=None, **kwargs): 24 | 25 | if chain_id is not None: 26 | kwargs["chain_id"] = chain_id 27 | 28 | return self.api.address_contract_using_get1( 29 | address=address, **self.authorization, **kwargs 30 | ) 31 | -------------------------------------------------------------------------------- /goplus/approve.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | from goplus.base import Base 15 | from swagger_client.api.approve_controller_v_1_api import ApproveControllerV1Api 16 | from swagger_client.api.approve_controller_v_2_api import ApproveControllerV2Api 17 | 18 | 19 | class Approve(Base): 20 | """ 21 | Approve Security 22 | """ 23 | 24 | def __init__(self, access_token=None): 25 | super().__init__(access_token=access_token) 26 | self.api = ApproveControllerV1Api() 27 | self.api_v2 = ApproveControllerV2Api() 28 | 29 | def approve_security_v1(self, chain_id: str, address: str, **kwargs): 30 | """ 31 | Approve Security V1 32 | """ 33 | return self.api.approval_contract_using_get( 34 | chain_id=chain_id, 35 | contract_addresses=address, 36 | **self.authorization, 37 | **kwargs 38 | ) 39 | 40 | def token_approve_security(self, chain_id: str, address: str, **kwargs): 41 | """ 42 | Token Approve Security 43 | """ 44 | 45 | return self.api_v2.address_token_approve_list_using_get1( 46 | chain_id=chain_id, addresses=address, **self.authorization, **kwargs 47 | ) 48 | 49 | def erc721_approve_security(self, chain_id: str, address: str, **kwargs): 50 | """ 51 | ERC721 Approve Security 52 | """ 53 | 54 | return self.api_v2.address_nft721_approve_list_using_get1( 55 | chain_id=chain_id, addresses=address, **self.authorization, **kwargs 56 | ) 57 | 58 | def erc1155_approve_security(self, chain_id: str, address: str, **kwargs): 59 | """ 60 | ERC1155 Approve Security 61 | """ 62 | 63 | return self.api_v2.address_nft1155_approve_list_using_get1( 64 | chain_id=chain_id, addresses=address, **self.authorization, **kwargs 65 | ) 66 | -------------------------------------------------------------------------------- /goplus/auth.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | import hashlib 15 | import time 16 | 17 | from swagger_client.api.token_controller_api import TokenControllerApi 18 | 19 | 20 | class Auth(object): 21 | def __init__(self, key, secret): 22 | self.__check(key, secret) 23 | self.key = key 24 | self.secret = secret 25 | self.api = TokenControllerApi() 26 | 27 | @staticmethod 28 | def __check(key, secret): 29 | if not (key and secret): 30 | raise ValueError("invalid key") 31 | 32 | @staticmethod 33 | def __sign(key, secret, t): 34 | s = key + str(t) + secret 35 | sha1 = hashlib.sha1() 36 | sha1.update(s.encode("utf-8")) 37 | return sha1.hexdigest() 38 | 39 | def get_access_token(self, **kwargs): 40 | t = int(time.time()) 41 | body = { 42 | "app_key": self.key, 43 | "sign": self.__sign(self.key, self.secret, t), 44 | "time": t, 45 | } 46 | return self.api.get_access_token_using_post(**{"body": body}, **kwargs) 47 | -------------------------------------------------------------------------------- /goplus/base.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | 15 | class Base: 16 | def __init__(self, access_token=None): 17 | self.access_token = access_token 18 | if access_token is not None: 19 | self.authorization = {"authorization": access_token} 20 | else: 21 | self.authorization = {} 22 | -------------------------------------------------------------------------------- /goplus/chain.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | from swagger_client.api.token_controller_v_1_api import TokenControllerV1Api 15 | 16 | 17 | class Chain(object): 18 | """ 19 | Supported Blockchains 20 | """ 21 | 22 | @classmethod 23 | def get_chain_list(cls, **kwargs): 24 | return TokenControllerV1Api().get_chains_list_using_get(**kwargs) 25 | -------------------------------------------------------------------------------- /goplus/dapp.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | from goplus.base import Base 15 | from swagger_client.api.dapp_controller_api import DappControllerApi 16 | 17 | 18 | class Dapp(Base): 19 | def __init__(self, access_token=None): 20 | super().__init__(access_token=access_token) 21 | self.api = DappControllerApi() 22 | 23 | def dapp_security(self, url: str, **kwargs): 24 | return self.api.get_dapp_info_using_get(url=url, **self.authorization, **kwargs) 25 | -------------------------------------------------------------------------------- /goplus/decode.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | from goplus.base import Base 15 | from swagger_client.api.contract_abi_controller_api import ContractAbiControllerApi 16 | 17 | 18 | class Decode(Base): 19 | def __init__(self, access_token=None): 20 | super().__init__(access_token=access_token) 21 | self.api = ContractAbiControllerApi() 22 | 23 | def signature_data_decode( 24 | self, chain_id: str, data: str, address=None, signer=None, **kwargs 25 | ): 26 | 27 | body = {"chain_id": chain_id, "data": data} 28 | 29 | if address is not None: 30 | body["contract_address"] = address 31 | 32 | if signer is not None: 33 | body["signer"] = signer 34 | 35 | return self.api.get_abi_data_info_using_post( 36 | body=body, **self.authorization, **kwargs 37 | ) 38 | -------------------------------------------------------------------------------- /goplus/errorcode.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | 15 | class Code: 16 | SUCCESS = 1 17 | DATA_PENDING_SYNC = 2 18 | ADDRESS_FORMAT_ERROR = 2004 19 | CHAIN_NOT_SUPPORTED = 2018 20 | NON_CONTRACT_ADDRESS = 2020 21 | CONTRACT_INFO_NOT_FOUND = 2021 22 | DAPP_NOT_FOUND = 2026 23 | ABI_NOT_FOUND = 2027 24 | ABI_FUNCTION_UNSUPPOERT = 2028 25 | APP_KEY_NOT_EXIST = 4010 26 | SIGNATURE_EXPIRATION = 4011 27 | SIGNATURE_VERIFICATION_FAILURE = 4012 28 | FREQUENCY_OVER_LIMIT = 4029 29 | INVALID_TOKEN = 4022 30 | TOKEN_NOT_FOUND = 4023 31 | SERVER_ERROR = 5000 32 | PARAM_ERROR = 5006 33 | -------------------------------------------------------------------------------- /goplus/nft.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | from goplus.base import Base 15 | from swagger_client.api.nft_controller_api import NftControllerApi 16 | 17 | 18 | class Nft(Base): 19 | def __init__(self, access_token=None): 20 | super().__init__(access_token=access_token) 21 | self.api = NftControllerApi() 22 | 23 | def nft_security(self, chain_id: str, address: str, **kwargs): 24 | return self.api.get_nft_info_using_get1( 25 | chain_id=chain_id, 26 | contract_addresses=address, 27 | **self.authorization, 28 | **kwargs 29 | ) 30 | -------------------------------------------------------------------------------- /goplus/phishing_site.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | from goplus.base import Base 15 | from swagger_client.api.website_controller_api import WebsiteControllerApi 16 | 17 | 18 | class PushingSite(Base): 19 | def __init__(self, access_token=None): 20 | super().__init__(access_token=access_token) 21 | self.api = WebsiteControllerApi() 22 | 23 | def pushing_site_security(self, url: str, **kwargs): 24 | return self.api.phishing_site_using_get(url, **self.authorization, **kwargs) 25 | -------------------------------------------------------------------------------- /goplus/rug_pull.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | from goplus.base import Base 15 | from swagger_client.api.defi_controller_api import DefiControllerApi 16 | 17 | 18 | class RugPull(Base): 19 | """ 20 | Rug-pull detection 21 | """ 22 | 23 | def __init__(self, access_token=None): 24 | super().__init__(access_token=access_token) 25 | self.api = DefiControllerApi() 26 | 27 | def rug_pull_security(self, chain_id: str, address: str, **kwargs): 28 | return self.api.get_defi_info_using_get( 29 | contract_addresses=address, 30 | chain_id=chain_id, 31 | **self.authorization, 32 | **kwargs 33 | ) 34 | -------------------------------------------------------------------------------- /goplus/token.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | from goplus.base import Base 15 | from swagger_client.api.token_controller_v_1_api import TokenControllerV1Api 16 | 17 | 18 | class Token(Base): 19 | """ 20 | Token Security 21 | """ 22 | 23 | def __init__(self, access_token=None): 24 | super().__init__(access_token=access_token) 25 | self.api = TokenControllerV1Api() 26 | 27 | @staticmethod 28 | def __check(addresses): 29 | 30 | if not isinstance(addresses, list): 31 | raise TypeError("contract_addresses must be of list type!") 32 | 33 | if len(addresses) == 0: 34 | raise ValueError("invalid contract_addresses") 35 | 36 | def token_security(self, chain_id: str, addresses: list, **kwargs): 37 | 38 | self.__check(addresses) 39 | 40 | return self.api.token_security_using_get1( 41 | chain_id=chain_id, 42 | contract_addresses=",".join(addresses), 43 | **self.authorization, 44 | **kwargs 45 | ) 46 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | certifi >= 14.05.14 2 | six >= 1.10 3 | python_dateutil >= 2.5.3 4 | setuptools >= 21.0.0 5 | urllib3 >= 1.15.1 6 | -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # -*- coding: utf-8 -*- 3 | 4 | # Note: To use the 'upload' functionality of this file, you must: 5 | # $ pipenv install twine --dev 6 | 7 | import io 8 | import os 9 | import sys 10 | from shutil import rmtree 11 | 12 | from setuptools import Command, find_packages, setup 13 | 14 | # Package meta-data. 15 | NAME = "goplus" 16 | DESCRIPTION = "GoPlus SDK" 17 | URL = "https://github.com/GoPlusSecurity/goplus-sdk-python" 18 | EMAIL = "service@gopluslabs.io" 19 | AUTHOR = "GoPlus" 20 | REQUIRES_PYTHON = ">=3.10" 21 | VERSION = "" 22 | # What packages are required for this module to be executed? 23 | REQUIRED = [ 24 | "certifi >= 14.05.14", 25 | "six >= 1.10", 26 | "python_dateutil >= 2.5.3", 27 | "urllib3 >= 1.15.1", 28 | ] 29 | 30 | 31 | # What packages are optional? 32 | EXTRAS = { 33 | # 'fancy feature': ['django'], 34 | } 35 | 36 | # The rest you shouldn't have to touch too much :) 37 | # ------------------------------------------------ 38 | # Except, perhaps the License and Trove Classifiers! 39 | # If you do change the License, remember to change the Trove Classifier for that! 40 | 41 | here = os.path.abspath(os.path.dirname(__file__)) 42 | 43 | # Import the README and use it as the long-description. 44 | # Note: this will only work if 'README.md' is present in your MANIFEST.in file! 45 | try: 46 | with io.open(os.path.join(here, "README.md"), encoding="utf-8") as f: 47 | long_description = "\n" + f.read() 48 | except FileNotFoundError: 49 | long_description = DESCRIPTION 50 | 51 | # Load the package's __version__.py module as a dictionary. 52 | about = {} 53 | if not VERSION: 54 | project_slug = NAME.lower().replace("-", "_").replace(" ", "_") 55 | with open(os.path.join(here, project_slug, "__version__.py")) as f: 56 | exec(f.read(), about) 57 | else: 58 | about["__version__"] = VERSION 59 | 60 | 61 | class UploadCommand(Command): 62 | """Support setup.py upload.""" 63 | 64 | description = "Build and publish the package." 65 | user_options = [] 66 | 67 | @staticmethod 68 | def status(s): 69 | """Prints things in bold.""" 70 | print("\033[1m{0}\033[0m".format(s)) 71 | 72 | def initialize_options(self): 73 | pass 74 | 75 | def finalize_options(self): 76 | pass 77 | 78 | def run(self): 79 | try: 80 | self.status("Removing previous builds…") 81 | rmtree(os.path.join(here, "dist")) 82 | except OSError: 83 | pass 84 | 85 | self.status("Building Source and Wheel (universal) distribution…") 86 | os.system("{0} setup.py sdist bdist_wheel --universal".format(sys.executable)) 87 | 88 | self.status("Uploading the package to PyPI via Twine…") 89 | os.system("twine upload --repository testpypi dist/*") 90 | 91 | self.status("Pushing git tags…") 92 | os.system("git tag v{0}".format(about["__version__"])) 93 | os.system("git push --tags") 94 | 95 | sys.exit() 96 | 97 | 98 | # Where the magic happens: 99 | setup( 100 | name=NAME, 101 | version=about["__version__"], 102 | description=DESCRIPTION, 103 | long_description=long_description, 104 | long_description_content_type="text/markdown", 105 | author=AUTHOR, 106 | author_email=EMAIL, 107 | python_requires=REQUIRES_PYTHON, 108 | url=URL, 109 | packages=find_packages(exclude=["tests", "*.tests", "*.tests.*", "tests.*"]), 110 | # If your package is a single module, use this instead of 'packages': 111 | # py_modules=['mypackage'], 112 | # entry_points={ 113 | # 'console_scripts': ['mycli=mymodule:cli'], 114 | # }, 115 | install_requires=REQUIRED, 116 | extras_require=EXTRAS, 117 | include_package_data=True, 118 | license="Apache License 2.0", 119 | classifiers=[ 120 | "Intended Audience :: Developers", 121 | "License :: OSI Approved :: Apache Software License", 122 | "Programming Language :: Python :: 3.10", 123 | ], 124 | # $ setup.py publish support. 125 | cmdclass={ 126 | "upload": UploadCommand, 127 | }, 128 | ) 129 | -------------------------------------------------------------------------------- /swagger_client/api/__init__.py: -------------------------------------------------------------------------------- 1 | from __future__ import absolute_import 2 | 3 | # flake8: noqa 4 | 5 | # import apis into api package 6 | from swagger_client.api.token_security_api_for_solana__beta_api import TokenSecurityAPIForSolanaBetaApi 7 | from swagger_client.api.token_security_api_for_sui_api import TokenSecurityAPIForSuiApi 8 | from swagger_client.api.transaction_simulation_for_solana_api import TransactionSimulationForSolanaApi 9 | from swagger_client.api.approve_controller_v_1_api import ApproveControllerV1Api 10 | from swagger_client.api.approve_controller_v_2_api import ApproveControllerV2Api 11 | from swagger_client.api.contract_abi_controller_api import ContractAbiControllerApi 12 | from swagger_client.api.dapp_controller_api import DappControllerApi 13 | from swagger_client.api.defi_controller_api import DefiControllerApi 14 | from swagger_client.api.lock_controller_api import LockControllerApi 15 | from swagger_client.api.nft_controller_api import NftControllerApi 16 | from swagger_client.api.token_controller_api import TokenControllerApi 17 | from swagger_client.api.token_controller_v_1_api import TokenControllerV1Api 18 | from swagger_client.api.website_controller_api import WebsiteControllerApi 19 | -------------------------------------------------------------------------------- /swagger_client/api/dapp_controller_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | from __future__ import absolute_import 14 | 15 | import re # noqa: F401 16 | 17 | # python 2 and python 3 compatibility library 18 | import six 19 | 20 | from swagger_client.api_client import ApiClient 21 | 22 | 23 | class DappControllerApi(object): 24 | """NOTE: This class is auto generated by the swagger code generator program. 25 | 26 | Do not edit the class manually. 27 | Ref: https://github.com/swagger-api/swagger-codegen 28 | """ 29 | 30 | def __init__(self, api_client=None): 31 | if api_client is None: 32 | api_client = ApiClient() 33 | self.api_client = api_client 34 | 35 | def get_dapp_info_using_get(self, **kwargs): # noqa: E501 36 | """Check risk of dapp through URL # noqa: E501 37 | 38 | This method makes a synchronous HTTP request by default. To make an 39 | asynchronous HTTP request, please pass async_req=True 40 | >>> thread = api.get_dapp_info_using_get(async_req=True) 41 | >>> result = thread.get() 42 | 43 | :param async_req bool 44 | :param str authorization: Authorization token in the format: Bearer (e.g., Bearer eyJsZXZlbCI6NSwiYXBwTmFtZSI6ImF2cyIsImFwcEtleSI6IjFaW...) 45 | :param str url: Url or domain 46 | :return: ResponseWrapperDappContractSecurityResponse 47 | If the method is called asynchronously, 48 | returns the request thread. 49 | """ 50 | kwargs['_return_http_data_only'] = True 51 | if kwargs.get('async_req'): 52 | return self.get_dapp_info_using_get_with_http_info(**kwargs) # noqa: E501 53 | else: 54 | (data) = self.get_dapp_info_using_get_with_http_info(**kwargs) # noqa: E501 55 | return data 56 | 57 | def get_dapp_info_using_get_with_http_info(self, **kwargs): # noqa: E501 58 | """Check risk of dapp through URL # noqa: E501 59 | 60 | This method makes a synchronous HTTP request by default. To make an 61 | asynchronous HTTP request, please pass async_req=True 62 | >>> thread = api.get_dapp_info_using_get_with_http_info(async_req=True) 63 | >>> result = thread.get() 64 | 65 | :param async_req bool 66 | :param str authorization: Authorization token in the format: Bearer (e.g., Bearer eyJsZXZlbCI6NSwiYXBwTmFtZSI6ImF2cyIsImFwcEtleSI6IjFaW...) 67 | :param str url: Url or domain 68 | :return: ResponseWrapperDappContractSecurityResponse 69 | If the method is called asynchronously, 70 | returns the request thread. 71 | """ 72 | 73 | all_params = ['authorization', 'url'] # noqa: E501 74 | all_params.append('async_req') 75 | all_params.append('_return_http_data_only') 76 | all_params.append('_preload_content') 77 | all_params.append('_request_timeout') 78 | 79 | params = locals() 80 | for key, val in six.iteritems(params['kwargs']): 81 | if key not in all_params: 82 | raise TypeError( 83 | "Got an unexpected keyword argument '%s'" 84 | " to method get_dapp_info_using_get" % key 85 | ) 86 | params[key] = val 87 | del params['kwargs'] 88 | 89 | collection_formats = {} 90 | 91 | path_params = {} 92 | 93 | query_params = [] 94 | if 'url' in params: 95 | query_params.append(('url', params['url'])) # noqa: E501 96 | 97 | header_params = {} 98 | if 'authorization' in params: 99 | header_params['Authorization'] = params['authorization'] # noqa: E501 100 | 101 | form_params = [] 102 | local_var_files = {} 103 | 104 | body_params = None 105 | # HTTP header `Accept` 106 | header_params['Accept'] = self.api_client.select_header_accept( 107 | ['*/*']) # noqa: E501 108 | 109 | # Authentication setting 110 | auth_settings = [] # noqa: E501 111 | 112 | return self.api_client.call_api( 113 | '/api/v1/dapp_security', 'GET', 114 | path_params, 115 | query_params, 116 | header_params, 117 | body=body_params, 118 | post_params=form_params, 119 | files=local_var_files, 120 | response_type='ResponseWrapperDappContractSecurityResponse', # noqa: E501 121 | auth_settings=auth_settings, 122 | async_req=params.get('async_req'), 123 | _return_http_data_only=params.get('_return_http_data_only'), 124 | _preload_content=params.get('_preload_content', True), 125 | _request_timeout=params.get('_request_timeout'), 126 | collection_formats=collection_formats) 127 | -------------------------------------------------------------------------------- /swagger_client/api/token_controller_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | from __future__ import absolute_import 14 | 15 | import re # noqa: F401 16 | 17 | # python 2 and python 3 compatibility library 18 | import six 19 | 20 | from swagger_client.api_client import ApiClient 21 | 22 | 23 | class TokenControllerApi(object): 24 | """NOTE: This class is auto generated by the swagger code generator program. 25 | 26 | Do not edit the class manually. 27 | Ref: https://github.com/swagger-api/swagger-codegen 28 | """ 29 | 30 | def __init__(self, api_client=None): 31 | if api_client is None: 32 | api_client = ApiClient() 33 | self.api_client = api_client 34 | 35 | def get_access_token_using_post(self, **kwargs): # noqa: E501 36 | """get token # noqa: E501 37 | 38 | This method makes a synchronous HTTP request by default. To make an 39 | asynchronous HTTP request, please pass async_req=True 40 | >>> thread = api.get_access_token_using_post(async_req=True) 41 | >>> result = thread.get() 42 | 43 | :param async_req bool 44 | :param GetAccessTokenRequest body: request 45 | :return: ResponseWrapperGetAccessTokenResponse 46 | If the method is called asynchronously, 47 | returns the request thread. 48 | """ 49 | kwargs['_return_http_data_only'] = True 50 | if kwargs.get('async_req'): 51 | return self.get_access_token_using_post_with_http_info(**kwargs) # noqa: E501 52 | else: 53 | (data) = self.get_access_token_using_post_with_http_info(**kwargs) # noqa: E501 54 | return data 55 | 56 | def get_access_token_using_post_with_http_info(self, **kwargs): # noqa: E501 57 | """get token # noqa: E501 58 | 59 | This method makes a synchronous HTTP request by default. To make an 60 | asynchronous HTTP request, please pass async_req=True 61 | >>> thread = api.get_access_token_using_post_with_http_info(async_req=True) 62 | >>> result = thread.get() 63 | 64 | :param async_req bool 65 | :param GetAccessTokenRequest body: request 66 | :return: ResponseWrapperGetAccessTokenResponse 67 | If the method is called asynchronously, 68 | returns the request thread. 69 | """ 70 | 71 | all_params = ['body'] # noqa: E501 72 | all_params.append('async_req') 73 | all_params.append('_return_http_data_only') 74 | all_params.append('_preload_content') 75 | all_params.append('_request_timeout') 76 | 77 | params = locals() 78 | for key, val in six.iteritems(params['kwargs']): 79 | if key not in all_params: 80 | raise TypeError( 81 | "Got an unexpected keyword argument '%s'" 82 | " to method get_access_token_using_post" % key 83 | ) 84 | params[key] = val 85 | del params['kwargs'] 86 | 87 | collection_formats = {} 88 | 89 | path_params = {} 90 | 91 | query_params = [] 92 | 93 | header_params = {} 94 | 95 | form_params = [] 96 | local_var_files = {} 97 | 98 | body_params = None 99 | if 'body' in params: 100 | body_params = params['body'] 101 | # HTTP header `Accept` 102 | header_params['Accept'] = self.api_client.select_header_accept( 103 | ['*/*']) # noqa: E501 104 | 105 | # HTTP header `Content-Type` 106 | header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501 107 | ['application/json']) # noqa: E501 108 | 109 | # Authentication setting 110 | auth_settings = [] # noqa: E501 111 | 112 | return self.api_client.call_api( 113 | '/api/v1/token', 'POST', 114 | path_params, 115 | query_params, 116 | header_params, 117 | body=body_params, 118 | post_params=form_params, 119 | files=local_var_files, 120 | response_type='ResponseWrapperGetAccessTokenResponse', # noqa: E501 121 | auth_settings=auth_settings, 122 | async_req=params.get('async_req'), 123 | _return_http_data_only=params.get('_return_http_data_only'), 124 | _preload_content=params.get('_preload_content', True), 125 | _request_timeout=params.get('_request_timeout'), 126 | collection_formats=collection_formats) 127 | -------------------------------------------------------------------------------- /swagger_client/api/website_controller_api.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | from __future__ import absolute_import 14 | 15 | import re # noqa: F401 16 | 17 | # python 2 and python 3 compatibility library 18 | import six 19 | 20 | from swagger_client.api_client import ApiClient 21 | 22 | 23 | class WebsiteControllerApi(object): 24 | """NOTE: This class is auto generated by the swagger code generator program. 25 | 26 | Do not edit the class manually. 27 | Ref: https://github.com/swagger-api/swagger-codegen 28 | """ 29 | 30 | def __init__(self, api_client=None): 31 | if api_client is None: 32 | api_client = ApiClient() 33 | self.api_client = api_client 34 | 35 | def phishing_site_using_get(self, url, **kwargs): # noqa: E501 36 | """Check if the the url is a phishing site # noqa: E501 37 | 38 | This method makes a synchronous HTTP request by default. To make an 39 | asynchronous HTTP request, please pass async_req=True 40 | >>> thread = api.phishing_site_using_get(url, async_req=True) 41 | >>> result = thread.get() 42 | 43 | :param async_req bool 44 | :param str url: Url (required) 45 | :param str authorization: Authorization token in the format: Bearer (e.g., Bearer eyJsZXZlbCI6NSwiYXBwTmFtZSI6ImF2cyIsImFwcEtleSI6IjFaW...) 46 | :return: ResponseWrapperPhishingSite 47 | If the method is called asynchronously, 48 | returns the request thread. 49 | """ 50 | kwargs['_return_http_data_only'] = True 51 | if kwargs.get('async_req'): 52 | return self.phishing_site_using_get_with_http_info(url, **kwargs) # noqa: E501 53 | else: 54 | (data) = self.phishing_site_using_get_with_http_info(url, **kwargs) # noqa: E501 55 | return data 56 | 57 | def phishing_site_using_get_with_http_info(self, url, **kwargs): # noqa: E501 58 | """Check if the the url is a phishing site # noqa: E501 59 | 60 | This method makes a synchronous HTTP request by default. To make an 61 | asynchronous HTTP request, please pass async_req=True 62 | >>> thread = api.phishing_site_using_get_with_http_info(url, async_req=True) 63 | >>> result = thread.get() 64 | 65 | :param async_req bool 66 | :param str url: Url (required) 67 | :param str authorization: Authorization token in the format: Bearer (e.g., Bearer eyJsZXZlbCI6NSwiYXBwTmFtZSI6ImF2cyIsImFwcEtleSI6IjFaW...) 68 | :return: ResponseWrapperPhishingSite 69 | If the method is called asynchronously, 70 | returns the request thread. 71 | """ 72 | 73 | all_params = ['url', 'authorization'] # noqa: E501 74 | all_params.append('async_req') 75 | all_params.append('_return_http_data_only') 76 | all_params.append('_preload_content') 77 | all_params.append('_request_timeout') 78 | 79 | params = locals() 80 | for key, val in six.iteritems(params['kwargs']): 81 | if key not in all_params: 82 | raise TypeError( 83 | "Got an unexpected keyword argument '%s'" 84 | " to method phishing_site_using_get" % key 85 | ) 86 | params[key] = val 87 | del params['kwargs'] 88 | # verify the required parameter 'url' is set 89 | if ('url' not in params or 90 | params['url'] is None): 91 | raise ValueError("Missing the required parameter `url` when calling `phishing_site_using_get`") # noqa: E501 92 | 93 | collection_formats = {} 94 | 95 | path_params = {} 96 | 97 | query_params = [] 98 | if 'url' in params: 99 | query_params.append(('url', params['url'])) # noqa: E501 100 | 101 | header_params = {} 102 | if 'authorization' in params: 103 | header_params['Authorization'] = params['authorization'] # noqa: E501 104 | 105 | form_params = [] 106 | local_var_files = {} 107 | 108 | body_params = None 109 | # HTTP header `Accept` 110 | header_params['Accept'] = self.api_client.select_header_accept( 111 | ['*/*']) # noqa: E501 112 | 113 | # Authentication setting 114 | auth_settings = [] # noqa: E501 115 | 116 | return self.api_client.call_api( 117 | '/api/v1/phishing_site', 'GET', 118 | path_params, 119 | query_params, 120 | header_params, 121 | body=body_params, 122 | post_params=form_params, 123 | files=local_var_files, 124 | response_type='ResponseWrapperPhishingSite', # noqa: E501 125 | auth_settings=auth_settings, 126 | async_req=params.get('async_req'), 127 | _return_http_data_only=params.get('_return_http_data_only'), 128 | _preload_content=params.get('_preload_content', True), 129 | _request_timeout=params.get('_request_timeout'), 130 | collection_formats=collection_formats) 131 | -------------------------------------------------------------------------------- /swagger_client/models/contracts_security.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ContractsSecurity(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'chain_id': 'str', 32 | 'contracts': 'list[Contracts]' 33 | } 34 | 35 | attribute_map = { 36 | 'chain_id': 'chain_id', 37 | 'contracts': 'contracts' 38 | } 39 | 40 | def __init__(self, chain_id=None, contracts=None): # noqa: E501 41 | """ContractsSecurity - a model defined in Swagger""" # noqa: E501 42 | self._chain_id = None 43 | self._contracts = None 44 | self.discriminator = None 45 | if chain_id is not None: 46 | self.chain_id = chain_id 47 | if contracts is not None: 48 | self.contracts = contracts 49 | 50 | @property 51 | def chain_id(self): 52 | """Gets the chain_id of this ContractsSecurity. # noqa: E501 53 | 54 | It describes the chains that contracts are deployed on;\"1\" means Ethereum; \"25\" means Cronos; \"56\" means BSC; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"42161\" means Arbitrum; \"43114\" means Avalanche. # noqa: E501 55 | 56 | :return: The chain_id of this ContractsSecurity. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._chain_id 60 | 61 | @chain_id.setter 62 | def chain_id(self, chain_id): 63 | """Sets the chain_id of this ContractsSecurity. 64 | 65 | It describes the chains that contracts are deployed on;\"1\" means Ethereum; \"25\" means Cronos; \"56\" means BSC; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"42161\" means Arbitrum; \"43114\" means Avalanche. # noqa: E501 66 | 67 | :param chain_id: The chain_id of this ContractsSecurity. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._chain_id = chain_id 72 | 73 | @property 74 | def contracts(self): 75 | """Gets the contracts of this ContractsSecurity. # noqa: E501 76 | 77 | contract info # noqa: E501 78 | 79 | :return: The contracts of this ContractsSecurity. # noqa: E501 80 | :rtype: list[Contracts] 81 | """ 82 | return self._contracts 83 | 84 | @contracts.setter 85 | def contracts(self, contracts): 86 | """Sets the contracts of this ContractsSecurity. 87 | 88 | contract info # noqa: E501 89 | 90 | :param contracts: The contracts of this ContractsSecurity. # noqa: E501 91 | :type: list[Contracts] 92 | """ 93 | 94 | self._contracts = contracts 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ContractsSecurity, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ContractsSecurity): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/get_access_token_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class GetAccessTokenResponse(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'access_token': 'str', 32 | 'expires_in': 'int' 33 | } 34 | 35 | attribute_map = { 36 | 'access_token': 'access_token', 37 | 'expires_in': 'expires_in' 38 | } 39 | 40 | def __init__(self, access_token=None, expires_in=None): # noqa: E501 41 | """GetAccessTokenResponse - a model defined in Swagger""" # noqa: E501 42 | self._access_token = None 43 | self._expires_in = None 44 | self.discriminator = None 45 | if access_token is not None: 46 | self.access_token = access_token 47 | if expires_in is not None: 48 | self.expires_in = expires_in 49 | 50 | @property 51 | def access_token(self): 52 | """Gets the access_token of this GetAccessTokenResponse. # noqa: E501 53 | 54 | access_token # noqa: E501 55 | 56 | :return: The access_token of this GetAccessTokenResponse. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._access_token 60 | 61 | @access_token.setter 62 | def access_token(self, access_token): 63 | """Sets the access_token of this GetAccessTokenResponse. 64 | 65 | access_token # noqa: E501 66 | 67 | :param access_token: The access_token of this GetAccessTokenResponse. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._access_token = access_token 72 | 73 | @property 74 | def expires_in(self): 75 | """Gets the expires_in of this GetAccessTokenResponse. # noqa: E501 76 | 77 | expires_in # noqa: E501 78 | 79 | :return: The expires_in of this GetAccessTokenResponse. # noqa: E501 80 | :rtype: int 81 | """ 82 | return self._expires_in 83 | 84 | @expires_in.setter 85 | def expires_in(self, expires_in): 86 | """Sets the expires_in of this GetAccessTokenResponse. 87 | 88 | expires_in # noqa: E501 89 | 90 | :param expires_in: The expires_in of this GetAccessTokenResponse. # noqa: E501 91 | :type: int 92 | """ 93 | 94 | self._expires_in = expires_in 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(GetAccessTokenResponse, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, GetAccessTokenResponse): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/get_defi_info_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class GetDefiInfoResponse(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'GetDefiInfoResponseResult' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """GetDefiInfoResponse - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this GetDefiInfoResponse. # noqa: E501 58 | 59 | Code 1: Success # noqa: E501 60 | 61 | :return: The code of this GetDefiInfoResponse. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this GetDefiInfoResponse. 69 | 70 | Code 1: Success # noqa: E501 71 | 72 | :param code: The code of this GetDefiInfoResponse. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this GetDefiInfoResponse. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this GetDefiInfoResponse. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this GetDefiInfoResponse. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this GetDefiInfoResponse. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this GetDefiInfoResponse. # noqa: E501 104 | 105 | 106 | :return: The result of this GetDefiInfoResponse. # noqa: E501 107 | :rtype: GetDefiInfoResponseResult 108 | """ 109 | return self._result 110 | 111 | @result.setter 112 | def result(self, result): 113 | """Sets the result of this GetDefiInfoResponse. 114 | 115 | 116 | :param result: The result of this GetDefiInfoResponse. # noqa: E501 117 | :type: GetDefiInfoResponseResult 118 | """ 119 | 120 | self._result = result 121 | 122 | def to_dict(self): 123 | """Returns the model properties as a dict""" 124 | result = {} 125 | 126 | for attr, _ in six.iteritems(self.swagger_types): 127 | value = getattr(self, attr) 128 | if isinstance(value, list): 129 | result[attr] = list(map( 130 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 131 | value 132 | )) 133 | elif hasattr(value, "to_dict"): 134 | result[attr] = value.to_dict() 135 | elif isinstance(value, dict): 136 | result[attr] = dict(map( 137 | lambda item: (item[0], item[1].to_dict()) 138 | if hasattr(item[1], "to_dict") else item, 139 | value.items() 140 | )) 141 | else: 142 | result[attr] = value 143 | if issubclass(GetDefiInfoResponse, dict): 144 | for key, value in self.items(): 145 | result[key] = value 146 | 147 | return result 148 | 149 | def to_str(self): 150 | """Returns the string representation of the model""" 151 | return pprint.pformat(self.to_dict()) 152 | 153 | def __repr__(self): 154 | """For `print` and `pprint`""" 155 | return self.to_str() 156 | 157 | def __eq__(self, other): 158 | """Returns true if both objects are equal""" 159 | if not isinstance(other, GetDefiInfoResponse): 160 | return False 161 | 162 | return self.__dict__ == other.__dict__ 163 | 164 | def __ne__(self, other): 165 | """Returns true if both objects are not equal""" 166 | return not self == other 167 | -------------------------------------------------------------------------------- /swagger_client/models/json_object.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class JSONObject(dict): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | } 32 | if hasattr(dict, "swagger_types"): 33 | swagger_types.update(dict.swagger_types) 34 | 35 | attribute_map = { 36 | } 37 | if hasattr(dict, "attribute_map"): 38 | attribute_map.update(dict.attribute_map) 39 | 40 | def __init__(self, *args, **kwargs): # noqa: E501 41 | """JSONObject - a model defined in Swagger""" # noqa: E501 42 | self.discriminator = None 43 | dict.__init__(self, *args, **kwargs) 44 | 45 | def to_dict(self): 46 | """Returns the model properties as a dict""" 47 | result = {} 48 | 49 | for attr, _ in six.iteritems(self.swagger_types): 50 | value = getattr(self, attr) 51 | if isinstance(value, list): 52 | result[attr] = list(map( 53 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 54 | value 55 | )) 56 | elif hasattr(value, "to_dict"): 57 | result[attr] = value.to_dict() 58 | elif isinstance(value, dict): 59 | result[attr] = dict(map( 60 | lambda item: (item[0], item[1].to_dict()) 61 | if hasattr(item[1], "to_dict") else item, 62 | value.items() 63 | )) 64 | else: 65 | result[attr] = value 66 | if issubclass(JSONObject, dict): 67 | for key, value in self.items(): 68 | result[key] = value 69 | 70 | return result 71 | 72 | def to_str(self): 73 | """Returns the string representation of the model""" 74 | return pprint.pformat(self.to_dict()) 75 | 76 | def __repr__(self): 77 | """For `print` and `pprint`""" 78 | return self.to_str() 79 | 80 | def __eq__(self, other): 81 | """Returns true if both objects are equal""" 82 | if not isinstance(other, JSONObject): 83 | return False 84 | 85 | return self.__dict__ == other.__dict__ 86 | 87 | def __ne__(self, other): 88 | """Returns true if both objects are not equal""" 89 | return not self == other 90 | -------------------------------------------------------------------------------- /swagger_client/models/map_string_string.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class MapStringString(dict): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | } 32 | if hasattr(dict, "swagger_types"): 33 | swagger_types.update(dict.swagger_types) 34 | 35 | attribute_map = { 36 | } 37 | if hasattr(dict, "attribute_map"): 38 | attribute_map.update(dict.attribute_map) 39 | 40 | def __init__(self, *args, **kwargs): # noqa: E501 41 | """MapStringString - a model defined in Swagger""" # noqa: E501 42 | self.discriminator = None 43 | dict.__init__(self, *args, **kwargs) 44 | 45 | def to_dict(self): 46 | """Returns the model properties as a dict""" 47 | result = {} 48 | 49 | for attr, _ in six.iteritems(self.swagger_types): 50 | value = getattr(self, attr) 51 | if isinstance(value, list): 52 | result[attr] = list(map( 53 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 54 | value 55 | )) 56 | elif hasattr(value, "to_dict"): 57 | result[attr] = value.to_dict() 58 | elif isinstance(value, dict): 59 | result[attr] = dict(map( 60 | lambda item: (item[0], item[1].to_dict()) 61 | if hasattr(item[1], "to_dict") else item, 62 | value.items() 63 | )) 64 | else: 65 | result[attr] = value 66 | if issubclass(MapStringString, dict): 67 | for key, value in self.items(): 68 | result[key] = value 69 | 70 | return result 71 | 72 | def to_str(self): 73 | """Returns the string representation of the model""" 74 | return pprint.pformat(self.to_dict()) 75 | 76 | def __repr__(self): 77 | """For `print` and `pprint`""" 78 | return self.to_str() 79 | 80 | def __eq__(self, other): 81 | """Returns true if both objects are equal""" 82 | if not isinstance(other, MapStringString): 83 | return False 84 | 85 | return self.__dict__ == other.__dict__ 86 | 87 | def __ne__(self, other): 88 | """Returns true if both objects are not equal""" 89 | return not self == other 90 | -------------------------------------------------------------------------------- /swagger_client/models/nft_locker_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class NftLockerResponse(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'list': 'list[TaNftLockerLockInfoobject]', 32 | 'total_count': 'int' 33 | } 34 | 35 | attribute_map = { 36 | 'list': 'list', 37 | 'total_count': 'totalCount' 38 | } 39 | 40 | def __init__(self, list=None, total_count=None): # noqa: E501 41 | """NftLockerResponse - a model defined in Swagger""" # noqa: E501 42 | self._list = None 43 | self._total_count = None 44 | self.discriminator = None 45 | if list is not None: 46 | self.list = list 47 | if total_count is not None: 48 | self.total_count = total_count 49 | 50 | @property 51 | def list(self): 52 | """Gets the list of this NftLockerResponse. # noqa: E501 53 | 54 | 55 | :return: The list of this NftLockerResponse. # noqa: E501 56 | :rtype: list[TaNftLockerLockInfoobject] 57 | """ 58 | return self._list 59 | 60 | @list.setter 61 | def list(self, list): 62 | """Sets the list of this NftLockerResponse. 63 | 64 | 65 | :param list: The list of this NftLockerResponse. # noqa: E501 66 | :type: list[TaNftLockerLockInfoobject] 67 | """ 68 | 69 | self._list = list 70 | 71 | @property 72 | def total_count(self): 73 | """Gets the total_count of this NftLockerResponse. # noqa: E501 74 | 75 | 76 | :return: The total_count of this NftLockerResponse. # noqa: E501 77 | :rtype: int 78 | """ 79 | return self._total_count 80 | 81 | @total_count.setter 82 | def total_count(self, total_count): 83 | """Sets the total_count of this NftLockerResponse. 84 | 85 | 86 | :param total_count: The total_count of this NftLockerResponse. # noqa: E501 87 | :type: int 88 | """ 89 | 90 | self._total_count = total_count 91 | 92 | def to_dict(self): 93 | """Returns the model properties as a dict""" 94 | result = {} 95 | 96 | for attr, _ in six.iteritems(self.swagger_types): 97 | value = getattr(self, attr) 98 | if isinstance(value, list): 99 | result[attr] = list(map( 100 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 101 | value 102 | )) 103 | elif hasattr(value, "to_dict"): 104 | result[attr] = value.to_dict() 105 | elif isinstance(value, dict): 106 | result[attr] = dict(map( 107 | lambda item: (item[0], item[1].to_dict()) 108 | if hasattr(item[1], "to_dict") else item, 109 | value.items() 110 | )) 111 | else: 112 | result[attr] = value 113 | if issubclass(NftLockerResponse, dict): 114 | for key, value in self.items(): 115 | result[key] = value 116 | 117 | return result 118 | 119 | def to_str(self): 120 | """Returns the string representation of the model""" 121 | return pprint.pformat(self.to_dict()) 122 | 123 | def __repr__(self): 124 | """For `print` and `pprint`""" 125 | return self.to_str() 126 | 127 | def __eq__(self, other): 128 | """Returns true if both objects are equal""" 129 | if not isinstance(other, NftLockerResponse): 130 | return False 131 | 132 | return self.__dict__ == other.__dict__ 133 | 134 | def __ne__(self, other): 135 | """Returns true if both objects are not equal""" 136 | return not self == other 137 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_address_contract.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperAddressContract(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'ResponseWrapperAddressContractResult' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """ResponseWrapperAddressContract - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this ResponseWrapperAddressContract. # noqa: E501 58 | 59 | Code 1: Success # noqa: E501 60 | 61 | :return: The code of this ResponseWrapperAddressContract. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this ResponseWrapperAddressContract. 69 | 70 | Code 1: Success # noqa: E501 71 | 72 | :param code: The code of this ResponseWrapperAddressContract. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this ResponseWrapperAddressContract. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this ResponseWrapperAddressContract. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this ResponseWrapperAddressContract. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this ResponseWrapperAddressContract. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this ResponseWrapperAddressContract. # noqa: E501 104 | 105 | 106 | :return: The result of this ResponseWrapperAddressContract. # noqa: E501 107 | :rtype: ResponseWrapperAddressContractResult 108 | """ 109 | return self._result 110 | 111 | @result.setter 112 | def result(self, result): 113 | """Sets the result of this ResponseWrapperAddressContract. 114 | 115 | 116 | :param result: The result of this ResponseWrapperAddressContract. # noqa: E501 117 | :type: ResponseWrapperAddressContractResult 118 | """ 119 | 120 | self._result = result 121 | 122 | def to_dict(self): 123 | """Returns the model properties as a dict""" 124 | result = {} 125 | 126 | for attr, _ in six.iteritems(self.swagger_types): 127 | value = getattr(self, attr) 128 | if isinstance(value, list): 129 | result[attr] = list(map( 130 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 131 | value 132 | )) 133 | elif hasattr(value, "to_dict"): 134 | result[attr] = value.to_dict() 135 | elif isinstance(value, dict): 136 | result[attr] = dict(map( 137 | lambda item: (item[0], item[1].to_dict()) 138 | if hasattr(item[1], "to_dict") else item, 139 | value.items() 140 | )) 141 | else: 142 | result[attr] = value 143 | if issubclass(ResponseWrapperAddressContract, dict): 144 | for key, value in self.items(): 145 | result[key] = value 146 | 147 | return result 148 | 149 | def to_str(self): 150 | """Returns the string representation of the model""" 151 | return pprint.pformat(self.to_dict()) 152 | 153 | def __repr__(self): 154 | """For `print` and `pprint`""" 155 | return self.to_str() 156 | 157 | def __eq__(self, other): 158 | """Returns true if both objects are equal""" 159 | if not isinstance(other, ResponseWrapperAddressContract): 160 | return False 161 | 162 | return self.__dict__ == other.__dict__ 163 | 164 | def __ne__(self, other): 165 | """Returns true if both objects are not equal""" 166 | return not self == other 167 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_get_nft_info.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperGetNftInfo(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'ResponseWrapperGetNftInfoResult' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """ResponseWrapperGetNftInfo - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this ResponseWrapperGetNftInfo. # noqa: E501 58 | 59 | Code 1: Success # noqa: E501 60 | 61 | :return: The code of this ResponseWrapperGetNftInfo. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this ResponseWrapperGetNftInfo. 69 | 70 | Code 1: Success # noqa: E501 71 | 72 | :param code: The code of this ResponseWrapperGetNftInfo. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this ResponseWrapperGetNftInfo. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this ResponseWrapperGetNftInfo. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this ResponseWrapperGetNftInfo. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this ResponseWrapperGetNftInfo. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this ResponseWrapperGetNftInfo. # noqa: E501 104 | 105 | 106 | :return: The result of this ResponseWrapperGetNftInfo. # noqa: E501 107 | :rtype: ResponseWrapperGetNftInfoResult 108 | """ 109 | return self._result 110 | 111 | @result.setter 112 | def result(self, result): 113 | """Sets the result of this ResponseWrapperGetNftInfo. 114 | 115 | 116 | :param result: The result of this ResponseWrapperGetNftInfo. # noqa: E501 117 | :type: ResponseWrapperGetNftInfoResult 118 | """ 119 | 120 | self._result = result 121 | 122 | def to_dict(self): 123 | """Returns the model properties as a dict""" 124 | result = {} 125 | 126 | for attr, _ in six.iteritems(self.swagger_types): 127 | value = getattr(self, attr) 128 | if isinstance(value, list): 129 | result[attr] = list(map( 130 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 131 | value 132 | )) 133 | elif hasattr(value, "to_dict"): 134 | result[attr] = value.to_dict() 135 | elif isinstance(value, dict): 136 | result[attr] = dict(map( 137 | lambda item: (item[0], item[1].to_dict()) 138 | if hasattr(item[1], "to_dict") else item, 139 | value.items() 140 | )) 141 | else: 142 | result[attr] = value 143 | if issubclass(ResponseWrapperGetNftInfo, dict): 144 | for key, value in self.items(): 145 | result[key] = value 146 | 147 | return result 148 | 149 | def to_str(self): 150 | """Returns the string representation of the model""" 151 | return pprint.pformat(self.to_dict()) 152 | 153 | def __repr__(self): 154 | """For `print` and `pprint`""" 155 | return self.to_str() 156 | 157 | def __eq__(self, other): 158 | """Returns true if both objects are equal""" 159 | if not isinstance(other, ResponseWrapperGetNftInfo): 160 | return False 161 | 162 | return self.__dict__ == other.__dict__ 163 | 164 | def __ne__(self, other): 165 | """Returns true if both objects are not equal""" 166 | return not self == other 167 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_json_object.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperJSONObject(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'dict(str, object)' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """ResponseWrapperJSONObject - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this ResponseWrapperJSONObject. # noqa: E501 58 | 59 | Code 1: Success # noqa: E501 60 | 61 | :return: The code of this ResponseWrapperJSONObject. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this ResponseWrapperJSONObject. 69 | 70 | Code 1: Success # noqa: E501 71 | 72 | :param code: The code of this ResponseWrapperJSONObject. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this ResponseWrapperJSONObject. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this ResponseWrapperJSONObject. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this ResponseWrapperJSONObject. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this ResponseWrapperJSONObject. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this ResponseWrapperJSONObject. # noqa: E501 104 | 105 | Response result # noqa: E501 106 | 107 | :return: The result of this ResponseWrapperJSONObject. # noqa: E501 108 | :rtype: dict(str, object) 109 | """ 110 | return self._result 111 | 112 | @result.setter 113 | def result(self, result): 114 | """Sets the result of this ResponseWrapperJSONObject. 115 | 116 | Response result # noqa: E501 117 | 118 | :param result: The result of this ResponseWrapperJSONObject. # noqa: E501 119 | :type: dict(str, object) 120 | """ 121 | 122 | self._result = result 123 | 124 | def to_dict(self): 125 | """Returns the model properties as a dict""" 126 | result = {} 127 | 128 | for attr, _ in six.iteritems(self.swagger_types): 129 | value = getattr(self, attr) 130 | if isinstance(value, list): 131 | result[attr] = list(map( 132 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 133 | value 134 | )) 135 | elif hasattr(value, "to_dict"): 136 | result[attr] = value.to_dict() 137 | elif isinstance(value, dict): 138 | result[attr] = dict(map( 139 | lambda item: (item[0], item[1].to_dict()) 140 | if hasattr(item[1], "to_dict") else item, 141 | value.items() 142 | )) 143 | else: 144 | result[attr] = value 145 | if issubclass(ResponseWrapperJSONObject, dict): 146 | for key, value in self.items(): 147 | result[key] = value 148 | 149 | return result 150 | 151 | def to_str(self): 152 | """Returns the string representation of the model""" 153 | return pprint.pformat(self.to_dict()) 154 | 155 | def __repr__(self): 156 | """For `print` and `pprint`""" 157 | return self.to_str() 158 | 159 | def __eq__(self, other): 160 | """Returns true if both objects are equal""" 161 | if not isinstance(other, ResponseWrapperJSONObject): 162 | return False 163 | 164 | return self.__dict__ == other.__dict__ 165 | 166 | def __ne__(self, other): 167 | """Returns true if both objects are not equal""" 168 | return not self == other 169 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_list_get_chains_list_result.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperListGetChainsListResult(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'name': 'str', 32 | 'id': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'name': 'name', 37 | 'id': 'id' 38 | } 39 | 40 | def __init__(self, name=None, id=None): # noqa: E501 41 | """ResponseWrapperListGetChainsListResult - a model defined in Swagger""" # noqa: E501 42 | self._name = None 43 | self._id = None 44 | self.discriminator = None 45 | if name is not None: 46 | self.name = name 47 | if id is not None: 48 | self.id = id 49 | 50 | @property 51 | def name(self): 52 | """Gets the name of this ResponseWrapperListGetChainsListResult. # noqa: E501 53 | 54 | chain name # noqa: E501 55 | 56 | :return: The name of this ResponseWrapperListGetChainsListResult. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._name 60 | 61 | @name.setter 62 | def name(self, name): 63 | """Sets the name of this ResponseWrapperListGetChainsListResult. 64 | 65 | chain name # noqa: E501 66 | 67 | :param name: The name of this ResponseWrapperListGetChainsListResult. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._name = name 72 | 73 | @property 74 | def id(self): 75 | """Gets the id of this ResponseWrapperListGetChainsListResult. # noqa: E501 76 | 77 | chain id # noqa: E501 78 | 79 | :return: The id of this ResponseWrapperListGetChainsListResult. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._id 83 | 84 | @id.setter 85 | def id(self, id): 86 | """Sets the id of this ResponseWrapperListGetChainsListResult. 87 | 88 | chain id # noqa: E501 89 | 90 | :param id: The id of this ResponseWrapperListGetChainsListResult. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._id = id 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperListGetChainsListResult, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperListGetChainsListResult): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_list_json_object.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperListJSONObject(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'list[JSONObject]' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """ResponseWrapperListJSONObject - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this ResponseWrapperListJSONObject. # noqa: E501 58 | 59 | Code 1: Success # noqa: E501 60 | 61 | :return: The code of this ResponseWrapperListJSONObject. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this ResponseWrapperListJSONObject. 69 | 70 | Code 1: Success # noqa: E501 71 | 72 | :param code: The code of this ResponseWrapperListJSONObject. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this ResponseWrapperListJSONObject. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this ResponseWrapperListJSONObject. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this ResponseWrapperListJSONObject. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this ResponseWrapperListJSONObject. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this ResponseWrapperListJSONObject. # noqa: E501 104 | 105 | Response result # noqa: E501 106 | 107 | :return: The result of this ResponseWrapperListJSONObject. # noqa: E501 108 | :rtype: list[JSONObject] 109 | """ 110 | return self._result 111 | 112 | @result.setter 113 | def result(self, result): 114 | """Sets the result of this ResponseWrapperListJSONObject. 115 | 116 | Response result # noqa: E501 117 | 118 | :param result: The result of this ResponseWrapperListJSONObject. # noqa: E501 119 | :type: list[JSONObject] 120 | """ 121 | 122 | self._result = result 123 | 124 | def to_dict(self): 125 | """Returns the model properties as a dict""" 126 | result = {} 127 | 128 | for attr, _ in six.iteritems(self.swagger_types): 129 | value = getattr(self, attr) 130 | if isinstance(value, list): 131 | result[attr] = list(map( 132 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 133 | value 134 | )) 135 | elif hasattr(value, "to_dict"): 136 | result[attr] = value.to_dict() 137 | elif isinstance(value, dict): 138 | result[attr] = dict(map( 139 | lambda item: (item[0], item[1].to_dict()) 140 | if hasattr(item[1], "to_dict") else item, 141 | value.items() 142 | )) 143 | else: 144 | result[attr] = value 145 | if issubclass(ResponseWrapperListJSONObject, dict): 146 | for key, value in self.items(): 147 | result[key] = value 148 | 149 | return result 150 | 151 | def to_str(self): 152 | """Returns the string representation of the model""" 153 | return pprint.pformat(self.to_dict()) 154 | 155 | def __repr__(self): 156 | """For `print` and `pprint`""" 157 | return self.to_str() 158 | 159 | def __eq__(self, other): 160 | """Returns true if both objects are equal""" 161 | if not isinstance(other, ResponseWrapperListJSONObject): 162 | return False 163 | 164 | return self.__dict__ == other.__dict__ 165 | 166 | def __ne__(self, other): 167 | """Returns true if both objects are not equal""" 168 | return not self == other 169 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_map_string_string.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperMapStringString(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'dict(str, str)' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """ResponseWrapperMapStringString - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this ResponseWrapperMapStringString. # noqa: E501 58 | 59 | Code 1: Success # noqa: E501 60 | 61 | :return: The code of this ResponseWrapperMapStringString. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this ResponseWrapperMapStringString. 69 | 70 | Code 1: Success # noqa: E501 71 | 72 | :param code: The code of this ResponseWrapperMapStringString. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this ResponseWrapperMapStringString. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this ResponseWrapperMapStringString. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this ResponseWrapperMapStringString. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this ResponseWrapperMapStringString. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this ResponseWrapperMapStringString. # noqa: E501 104 | 105 | Response result # noqa: E501 106 | 107 | :return: The result of this ResponseWrapperMapStringString. # noqa: E501 108 | :rtype: dict(str, str) 109 | """ 110 | return self._result 111 | 112 | @result.setter 113 | def result(self, result): 114 | """Sets the result of this ResponseWrapperMapStringString. 115 | 116 | Response result # noqa: E501 117 | 118 | :param result: The result of this ResponseWrapperMapStringString. # noqa: E501 119 | :type: dict(str, str) 120 | """ 121 | 122 | self._result = result 123 | 124 | def to_dict(self): 125 | """Returns the model properties as a dict""" 126 | result = {} 127 | 128 | for attr, _ in six.iteritems(self.swagger_types): 129 | value = getattr(self, attr) 130 | if isinstance(value, list): 131 | result[attr] = list(map( 132 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 133 | value 134 | )) 135 | elif hasattr(value, "to_dict"): 136 | result[attr] = value.to_dict() 137 | elif isinstance(value, dict): 138 | result[attr] = dict(map( 139 | lambda item: (item[0], item[1].to_dict()) 140 | if hasattr(item[1], "to_dict") else item, 141 | value.items() 142 | )) 143 | else: 144 | result[attr] = value 145 | if issubclass(ResponseWrapperMapStringString, dict): 146 | for key, value in self.items(): 147 | result[key] = value 148 | 149 | return result 150 | 151 | def to_str(self): 152 | """Returns the string representation of the model""" 153 | return pprint.pformat(self.to_dict()) 154 | 155 | def __repr__(self): 156 | """For `print` and `pprint`""" 157 | return self.to_str() 158 | 159 | def __eq__(self, other): 160 | """Returns true if both objects are equal""" 161 | if not isinstance(other, ResponseWrapperMapStringString): 162 | return False 163 | 164 | return self.__dict__ == other.__dict__ 165 | 166 | def __ne__(self, other): 167 | """Returns true if both objects are not equal""" 168 | return not self == other 169 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_nft_locker_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperNftLockerResponse(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'NftLockerResponse' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """ResponseWrapperNftLockerResponse - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this ResponseWrapperNftLockerResponse. # noqa: E501 58 | 59 | Code 1:Success # noqa: E501 60 | 61 | :return: The code of this ResponseWrapperNftLockerResponse. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this ResponseWrapperNftLockerResponse. 69 | 70 | Code 1:Success # noqa: E501 71 | 72 | :param code: The code of this ResponseWrapperNftLockerResponse. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this ResponseWrapperNftLockerResponse. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this ResponseWrapperNftLockerResponse. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this ResponseWrapperNftLockerResponse. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this ResponseWrapperNftLockerResponse. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this ResponseWrapperNftLockerResponse. # noqa: E501 104 | 105 | 106 | :return: The result of this ResponseWrapperNftLockerResponse. # noqa: E501 107 | :rtype: NftLockerResponse 108 | """ 109 | return self._result 110 | 111 | @result.setter 112 | def result(self, result): 113 | """Sets the result of this ResponseWrapperNftLockerResponse. 114 | 115 | 116 | :param result: The result of this ResponseWrapperNftLockerResponse. # noqa: E501 117 | :type: NftLockerResponse 118 | """ 119 | 120 | self._result = result 121 | 122 | def to_dict(self): 123 | """Returns the model properties as a dict""" 124 | result = {} 125 | 126 | for attr, _ in six.iteritems(self.swagger_types): 127 | value = getattr(self, attr) 128 | if isinstance(value, list): 129 | result[attr] = list(map( 130 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 131 | value 132 | )) 133 | elif hasattr(value, "to_dict"): 134 | result[attr] = value.to_dict() 135 | elif isinstance(value, dict): 136 | result[attr] = dict(map( 137 | lambda item: (item[0], item[1].to_dict()) 138 | if hasattr(item[1], "to_dict") else item, 139 | value.items() 140 | )) 141 | else: 142 | result[attr] = value 143 | if issubclass(ResponseWrapperNftLockerResponse, dict): 144 | for key, value in self.items(): 145 | result[key] = value 146 | 147 | return result 148 | 149 | def to_str(self): 150 | """Returns the string representation of the model""" 151 | return pprint.pformat(self.to_dict()) 152 | 153 | def __repr__(self): 154 | """For `print` and `pprint`""" 155 | return self.to_str() 156 | 157 | def __eq__(self, other): 158 | """Returns true if both objects are equal""" 159 | if not isinstance(other, ResponseWrapperNftLockerResponse): 160 | return False 161 | 162 | return self.__dict__ == other.__dict__ 163 | 164 | def __ne__(self, other): 165 | """Returns true if both objects are not equal""" 166 | return not self == other 167 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_phishing_site.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperPhishingSite(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'ResponseWrapperPhishingSiteResult' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """ResponseWrapperPhishingSite - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this ResponseWrapperPhishingSite. # noqa: E501 58 | 59 | Code 1:Success # noqa: E501 60 | 61 | :return: The code of this ResponseWrapperPhishingSite. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this ResponseWrapperPhishingSite. 69 | 70 | Code 1:Success # noqa: E501 71 | 72 | :param code: The code of this ResponseWrapperPhishingSite. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this ResponseWrapperPhishingSite. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this ResponseWrapperPhishingSite. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this ResponseWrapperPhishingSite. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this ResponseWrapperPhishingSite. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this ResponseWrapperPhishingSite. # noqa: E501 104 | 105 | 106 | :return: The result of this ResponseWrapperPhishingSite. # noqa: E501 107 | :rtype: ResponseWrapperPhishingSiteResult 108 | """ 109 | return self._result 110 | 111 | @result.setter 112 | def result(self, result): 113 | """Sets the result of this ResponseWrapperPhishingSite. 114 | 115 | 116 | :param result: The result of this ResponseWrapperPhishingSite. # noqa: E501 117 | :type: ResponseWrapperPhishingSiteResult 118 | """ 119 | 120 | self._result = result 121 | 122 | def to_dict(self): 123 | """Returns the model properties as a dict""" 124 | result = {} 125 | 126 | for attr, _ in six.iteritems(self.swagger_types): 127 | value = getattr(self, attr) 128 | if isinstance(value, list): 129 | result[attr] = list(map( 130 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 131 | value 132 | )) 133 | elif hasattr(value, "to_dict"): 134 | result[attr] = value.to_dict() 135 | elif isinstance(value, dict): 136 | result[attr] = dict(map( 137 | lambda item: (item[0], item[1].to_dict()) 138 | if hasattr(item[1], "to_dict") else item, 139 | value.items() 140 | )) 141 | else: 142 | result[attr] = value 143 | if issubclass(ResponseWrapperPhishingSite, dict): 144 | for key, value in self.items(): 145 | result[key] = value 146 | 147 | return result 148 | 149 | def to_str(self): 150 | """Returns the string representation of the model""" 151 | return pprint.pformat(self.to_dict()) 152 | 153 | def __repr__(self): 154 | """For `print` and `pprint`""" 155 | return self.to_str() 156 | 157 | def __eq__(self, other): 158 | """Returns true if both objects are equal""" 159 | if not isinstance(other, ResponseWrapperPhishingSite): 160 | return False 161 | 162 | return self.__dict__ == other.__dict__ 163 | 164 | def __ne__(self, other): 165 | """Returns true if both objects are not equal""" 166 | return not self == other 167 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_phishing_site_result.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperPhishingSiteResult(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'website_contract_security': 'list[ResponseWrapperPhishingSiteResultWebsiteContractSecurity]', 32 | 'phishing_site': 'int' 33 | } 34 | 35 | attribute_map = { 36 | 'website_contract_security': 'website_contract_security', 37 | 'phishing_site': 'phishing_site' 38 | } 39 | 40 | def __init__(self, website_contract_security=None, phishing_site=None): # noqa: E501 41 | """ResponseWrapperPhishingSiteResult - a model defined in Swagger""" # noqa: E501 42 | self._website_contract_security = None 43 | self._phishing_site = None 44 | self.discriminator = None 45 | if website_contract_security is not None: 46 | self.website_contract_security = website_contract_security 47 | if phishing_site is not None: 48 | self.phishing_site = phishing_site 49 | 50 | @property 51 | def website_contract_security(self): 52 | """Gets the website_contract_security of this ResponseWrapperPhishingSiteResult. # noqa: E501 53 | 54 | 55 | :return: The website_contract_security of this ResponseWrapperPhishingSiteResult. # noqa: E501 56 | :rtype: list[ResponseWrapperPhishingSiteResultWebsiteContractSecurity] 57 | """ 58 | return self._website_contract_security 59 | 60 | @website_contract_security.setter 61 | def website_contract_security(self, website_contract_security): 62 | """Sets the website_contract_security of this ResponseWrapperPhishingSiteResult. 63 | 64 | 65 | :param website_contract_security: The website_contract_security of this ResponseWrapperPhishingSiteResult. # noqa: E501 66 | :type: list[ResponseWrapperPhishingSiteResultWebsiteContractSecurity] 67 | """ 68 | 69 | self._website_contract_security = website_contract_security 70 | 71 | @property 72 | def phishing_site(self): 73 | """Gets the phishing_site of this ResponseWrapperPhishingSiteResult. # noqa: E501 74 | 75 | It means whether the website is a phishing site. \"1\" means true; \"0\" means that we have not found malicious behavior of this website. # noqa: E501 76 | 77 | :return: The phishing_site of this ResponseWrapperPhishingSiteResult. # noqa: E501 78 | :rtype: int 79 | """ 80 | return self._phishing_site 81 | 82 | @phishing_site.setter 83 | def phishing_site(self, phishing_site): 84 | """Sets the phishing_site of this ResponseWrapperPhishingSiteResult. 85 | 86 | It means whether the website is a phishing site. \"1\" means true; \"0\" means that we have not found malicious behavior of this website. # noqa: E501 87 | 88 | :param phishing_site: The phishing_site of this ResponseWrapperPhishingSiteResult. # noqa: E501 89 | :type: int 90 | """ 91 | 92 | self._phishing_site = phishing_site 93 | 94 | def to_dict(self): 95 | """Returns the model properties as a dict""" 96 | result = {} 97 | 98 | for attr, _ in six.iteritems(self.swagger_types): 99 | value = getattr(self, attr) 100 | if isinstance(value, list): 101 | result[attr] = list(map( 102 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 103 | value 104 | )) 105 | elif hasattr(value, "to_dict"): 106 | result[attr] = value.to_dict() 107 | elif isinstance(value, dict): 108 | result[attr] = dict(map( 109 | lambda item: (item[0], item[1].to_dict()) 110 | if hasattr(item[1], "to_dict") else item, 111 | value.items() 112 | )) 113 | else: 114 | result[attr] = value 115 | if issubclass(ResponseWrapperPhishingSiteResult, dict): 116 | for key, value in self.items(): 117 | result[key] = value 118 | 119 | return result 120 | 121 | def to_str(self): 122 | """Returns the string representation of the model""" 123 | return pprint.pformat(self.to_dict()) 124 | 125 | def __repr__(self): 126 | """For `print` and `pprint`""" 127 | return self.to_str() 128 | 129 | def __eq__(self, other): 130 | """Returns true if both objects are equal""" 131 | if not isinstance(other, ResponseWrapperPhishingSiteResult): 132 | return False 133 | 134 | return self.__dict__ == other.__dict__ 135 | 136 | def __ne__(self, other): 137 | """Returns true if both objects are not equal""" 138 | return not self == other 139 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_balance_mutable_authority.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'authority': 'list[ResponseWrapperSolanaTokenSecurityClosableAuthority]', 32 | 'status': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'authority': 'authority', 37 | 'status': 'status' 38 | } 39 | 40 | def __init__(self, authority=None, status=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority - a model defined in Swagger""" # noqa: E501 42 | self._authority = None 43 | self._status = None 44 | self.discriminator = None 45 | if authority is not None: 46 | self.authority = authority 47 | if status is not None: 48 | self.status = status 49 | 50 | @property 51 | def authority(self): 52 | """Gets the authority of this ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority. # noqa: E501 53 | 54 | Information on metadata upgrade authority. # noqa: E501 55 | 56 | :return: The authority of this ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority. # noqa: E501 57 | :rtype: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 58 | """ 59 | return self._authority 60 | 61 | @authority.setter 62 | def authority(self, authority): 63 | """Sets the authority of this ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority. 64 | 65 | Information on metadata upgrade authority. # noqa: E501 66 | 67 | :param authority: The authority of this ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority. # noqa: E501 68 | :type: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 69 | """ 70 | 71 | self._authority = authority 72 | 73 | @property 74 | def status(self): 75 | """Gets the status of this ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The status of this ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._status 83 | 84 | @status.setter 85 | def status(self, status): 86 | """Sets the status of this ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param status: The status of this ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._status = status 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityBalanceMutableAuthority): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_closable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityClosable(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'authority': 'list[ResponseWrapperSolanaTokenSecurityClosableAuthority]', 32 | 'status': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'authority': 'authority', 37 | 'status': 'status' 38 | } 39 | 40 | def __init__(self, authority=None, status=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityClosable - a model defined in Swagger""" # noqa: E501 42 | self._authority = None 43 | self._status = None 44 | self.discriminator = None 45 | if authority is not None: 46 | self.authority = authority 47 | if status is not None: 48 | self.status = status 49 | 50 | @property 51 | def authority(self): 52 | """Gets the authority of this ResponseWrapperSolanaTokenSecurityClosable. # noqa: E501 53 | 54 | Information on metadata upgrade authority. # noqa: E501 55 | 56 | :return: The authority of this ResponseWrapperSolanaTokenSecurityClosable. # noqa: E501 57 | :rtype: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 58 | """ 59 | return self._authority 60 | 61 | @authority.setter 62 | def authority(self, authority): 63 | """Sets the authority of this ResponseWrapperSolanaTokenSecurityClosable. 64 | 65 | Information on metadata upgrade authority. # noqa: E501 66 | 67 | :param authority: The authority of this ResponseWrapperSolanaTokenSecurityClosable. # noqa: E501 68 | :type: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 69 | """ 70 | 71 | self._authority = authority 72 | 73 | @property 74 | def status(self): 75 | """Gets the status of this ResponseWrapperSolanaTokenSecurityClosable. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The status of this ResponseWrapperSolanaTokenSecurityClosable. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._status 83 | 84 | @status.setter 85 | def status(self, status): 86 | """Sets the status of this ResponseWrapperSolanaTokenSecurityClosable. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param status: The status of this ResponseWrapperSolanaTokenSecurityClosable. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._status = status 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityClosable, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityClosable): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_closable_authority.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityClosableAuthority(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'address': 'str', 32 | 'malicious_address': 'int' 33 | } 34 | 35 | attribute_map = { 36 | 'address': 'address', 37 | 'malicious_address': 'malicious_address' 38 | } 39 | 40 | def __init__(self, address=None, malicious_address=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityClosableAuthority - a model defined in Swagger""" # noqa: E501 42 | self._address = None 43 | self._malicious_address = None 44 | self.discriminator = None 45 | if address is not None: 46 | self.address = address 47 | if malicious_address is not None: 48 | self.malicious_address = malicious_address 49 | 50 | @property 51 | def address(self): 52 | """Gets the address of this ResponseWrapperSolanaTokenSecurityClosableAuthority. # noqa: E501 53 | 54 | Address with upgrade authority # noqa: E501 55 | 56 | :return: The address of this ResponseWrapperSolanaTokenSecurityClosableAuthority. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._address 60 | 61 | @address.setter 62 | def address(self, address): 63 | """Sets the address of this ResponseWrapperSolanaTokenSecurityClosableAuthority. 64 | 65 | Address with upgrade authority # noqa: E501 66 | 67 | :param address: The address of this ResponseWrapperSolanaTokenSecurityClosableAuthority. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._address = address 72 | 73 | @property 74 | def malicious_address(self): 75 | """Gets the malicious_address of this ResponseWrapperSolanaTokenSecurityClosableAuthority. # noqa: E501 76 | 77 | Indicates whether the address is malicious, \"1\" means yes. # noqa: E501 78 | 79 | :return: The malicious_address of this ResponseWrapperSolanaTokenSecurityClosableAuthority. # noqa: E501 80 | :rtype: int 81 | """ 82 | return self._malicious_address 83 | 84 | @malicious_address.setter 85 | def malicious_address(self, malicious_address): 86 | """Sets the malicious_address of this ResponseWrapperSolanaTokenSecurityClosableAuthority. 87 | 88 | Indicates whether the address is malicious, \"1\" means yes. # noqa: E501 89 | 90 | :param malicious_address: The malicious_address of this ResponseWrapperSolanaTokenSecurityClosableAuthority. # noqa: E501 91 | :type: int 92 | """ 93 | 94 | self._malicious_address = malicious_address 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityClosableAuthority, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityClosableAuthority): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_creator.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityCreator(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'address': 'str', 32 | 'malicious_address': 'int' 33 | } 34 | 35 | attribute_map = { 36 | 'address': 'address', 37 | 'malicious_address': 'malicious_address' 38 | } 39 | 40 | def __init__(self, address=None, malicious_address=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityCreator - a model defined in Swagger""" # noqa: E501 42 | self._address = None 43 | self._malicious_address = None 44 | self.discriminator = None 45 | if address is not None: 46 | self.address = address 47 | if malicious_address is not None: 48 | self.malicious_address = malicious_address 49 | 50 | @property 51 | def address(self): 52 | """Gets the address of this ResponseWrapperSolanaTokenSecurityCreator. # noqa: E501 53 | 54 | Address of the creator. # noqa: E501 55 | 56 | :return: The address of this ResponseWrapperSolanaTokenSecurityCreator. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._address 60 | 61 | @address.setter 62 | def address(self, address): 63 | """Sets the address of this ResponseWrapperSolanaTokenSecurityCreator. 64 | 65 | Address of the creator. # noqa: E501 66 | 67 | :param address: The address of this ResponseWrapperSolanaTokenSecurityCreator. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._address = address 72 | 73 | @property 74 | def malicious_address(self): 75 | """Gets the malicious_address of this ResponseWrapperSolanaTokenSecurityCreator. # noqa: E501 76 | 77 | Indicates whether the address is malicious, \"1\" means yes. # noqa: E501 78 | 79 | :return: The malicious_address of this ResponseWrapperSolanaTokenSecurityCreator. # noqa: E501 80 | :rtype: int 81 | """ 82 | return self._malicious_address 83 | 84 | @malicious_address.setter 85 | def malicious_address(self, malicious_address): 86 | """Sets the malicious_address of this ResponseWrapperSolanaTokenSecurityCreator. 87 | 88 | Indicates whether the address is malicious, \"1\" means yes. # noqa: E501 89 | 90 | :param malicious_address: The malicious_address of this ResponseWrapperSolanaTokenSecurityCreator. # noqa: E501 91 | :type: int 92 | """ 93 | 94 | self._malicious_address = malicious_address 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityCreator, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityCreator): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_default_account_state_upgradable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'authority': 'list[ResponseWrapperSolanaTokenSecurityClosableAuthority]', 32 | 'status': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'authority': 'authority', 37 | 'status': 'status' 38 | } 39 | 40 | def __init__(self, authority=None, status=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable - a model defined in Swagger""" # noqa: E501 42 | self._authority = None 43 | self._status = None 44 | self.discriminator = None 45 | if authority is not None: 46 | self.authority = authority 47 | if status is not None: 48 | self.status = status 49 | 50 | @property 51 | def authority(self): 52 | """Gets the authority of this ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable. # noqa: E501 53 | 54 | Information on metadata upgrade authority. # noqa: E501 55 | 56 | :return: The authority of this ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable. # noqa: E501 57 | :rtype: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 58 | """ 59 | return self._authority 60 | 61 | @authority.setter 62 | def authority(self, authority): 63 | """Sets the authority of this ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable. 64 | 65 | Information on metadata upgrade authority. # noqa: E501 66 | 67 | :param authority: The authority of this ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable. # noqa: E501 68 | :type: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 69 | """ 70 | 71 | self._authority = authority 72 | 73 | @property 74 | def status(self): 75 | """Gets the status of this ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The status of this ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._status 83 | 84 | @status.setter 85 | def status(self, status): 86 | """Sets the status of this ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param status: The status of this ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._status = status 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_freezable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityFreezable(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'authority': 'list[ResponseWrapperSolanaTokenSecurityClosableAuthority]', 32 | 'status': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'authority': 'authority', 37 | 'status': 'status' 38 | } 39 | 40 | def __init__(self, authority=None, status=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityFreezable - a model defined in Swagger""" # noqa: E501 42 | self._authority = None 43 | self._status = None 44 | self.discriminator = None 45 | if authority is not None: 46 | self.authority = authority 47 | if status is not None: 48 | self.status = status 49 | 50 | @property 51 | def authority(self): 52 | """Gets the authority of this ResponseWrapperSolanaTokenSecurityFreezable. # noqa: E501 53 | 54 | Information on metadata upgrade authority. # noqa: E501 55 | 56 | :return: The authority of this ResponseWrapperSolanaTokenSecurityFreezable. # noqa: E501 57 | :rtype: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 58 | """ 59 | return self._authority 60 | 61 | @authority.setter 62 | def authority(self, authority): 63 | """Sets the authority of this ResponseWrapperSolanaTokenSecurityFreezable. 64 | 65 | Information on metadata upgrade authority. # noqa: E501 66 | 67 | :param authority: The authority of this ResponseWrapperSolanaTokenSecurityFreezable. # noqa: E501 68 | :type: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 69 | """ 70 | 71 | self._authority = authority 72 | 73 | @property 74 | def status(self): 75 | """Gets the status of this ResponseWrapperSolanaTokenSecurityFreezable. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The status of this ResponseWrapperSolanaTokenSecurityFreezable. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._status 83 | 84 | @status.setter 85 | def status(self, status): 86 | """Sets the status of this ResponseWrapperSolanaTokenSecurityFreezable. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param status: The status of this ResponseWrapperSolanaTokenSecurityFreezable. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._status = status 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityFreezable, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityFreezable): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_mintable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityMintable(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'authority': 'list[ResponseWrapperSolanaTokenSecurityClosableAuthority]', 32 | 'status': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'authority': 'authority', 37 | 'status': 'status' 38 | } 39 | 40 | def __init__(self, authority=None, status=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityMintable - a model defined in Swagger""" # noqa: E501 42 | self._authority = None 43 | self._status = None 44 | self.discriminator = None 45 | if authority is not None: 46 | self.authority = authority 47 | if status is not None: 48 | self.status = status 49 | 50 | @property 51 | def authority(self): 52 | """Gets the authority of this ResponseWrapperSolanaTokenSecurityMintable. # noqa: E501 53 | 54 | Information on metadata upgrade authority. # noqa: E501 55 | 56 | :return: The authority of this ResponseWrapperSolanaTokenSecurityMintable. # noqa: E501 57 | :rtype: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 58 | """ 59 | return self._authority 60 | 61 | @authority.setter 62 | def authority(self, authority): 63 | """Sets the authority of this ResponseWrapperSolanaTokenSecurityMintable. 64 | 65 | Information on metadata upgrade authority. # noqa: E501 66 | 67 | :param authority: The authority of this ResponseWrapperSolanaTokenSecurityMintable. # noqa: E501 68 | :type: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 69 | """ 70 | 71 | self._authority = authority 72 | 73 | @property 74 | def status(self): 75 | """Gets the status of this ResponseWrapperSolanaTokenSecurityMintable. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The status of this ResponseWrapperSolanaTokenSecurityMintable. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._status 83 | 84 | @status.setter 85 | def status(self, status): 86 | """Sets the status of this ResponseWrapperSolanaTokenSecurityMintable. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param status: The status of this ResponseWrapperSolanaTokenSecurityMintable. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._status = status 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityMintable, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityMintable): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_transfer_fee_current_fee_rate.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'maximum_fee': 'str', 32 | 'fee_rate': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'maximum_fee': 'maximum_fee', 37 | 'fee_rate': 'fee_rate' 38 | } 39 | 40 | def __init__(self, maximum_fee=None, fee_rate=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate - a model defined in Swagger""" # noqa: E501 42 | self._maximum_fee = None 43 | self._fee_rate = None 44 | self.discriminator = None 45 | if maximum_fee is not None: 46 | self.maximum_fee = maximum_fee 47 | if fee_rate is not None: 48 | self.fee_rate = fee_rate 49 | 50 | @property 51 | def maximum_fee(self): 52 | """Gets the maximum_fee of this ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate. # noqa: E501 53 | 54 | Maximum fee amount for a single transaction. # noqa: E501 55 | 56 | :return: The maximum_fee of this ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._maximum_fee 60 | 61 | @maximum_fee.setter 62 | def maximum_fee(self, maximum_fee): 63 | """Sets the maximum_fee of this ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate. 64 | 65 | Maximum fee amount for a single transaction. # noqa: E501 66 | 67 | :param maximum_fee: The maximum_fee of this ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._maximum_fee = maximum_fee 72 | 73 | @property 74 | def fee_rate(self): 75 | """Gets the fee_rate of this ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate. # noqa: E501 76 | 77 | Fee rate (expressed as a ratio, e.g., 0.02 means 2%) # noqa: E501 78 | 79 | :return: The fee_rate of this ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._fee_rate 83 | 84 | @fee_rate.setter 85 | def fee_rate(self, fee_rate): 86 | """Sets the fee_rate of this ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate. 87 | 88 | Fee rate (expressed as a ratio, e.g., 0.02 means 2%) # noqa: E501 89 | 90 | :param fee_rate: The fee_rate of this ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._fee_rate = fee_rate 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityTransferFeeCurrentFeeRate): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_transfer_fee_upgradable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'authority': 'list[ResponseWrapperSolanaTokenSecurityClosableAuthority]', 32 | 'status': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'authority': 'authority', 37 | 'status': 'status' 38 | } 39 | 40 | def __init__(self, authority=None, status=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable - a model defined in Swagger""" # noqa: E501 42 | self._authority = None 43 | self._status = None 44 | self.discriminator = None 45 | if authority is not None: 46 | self.authority = authority 47 | if status is not None: 48 | self.status = status 49 | 50 | @property 51 | def authority(self): 52 | """Gets the authority of this ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable. # noqa: E501 53 | 54 | Information on metadata upgrade authority. # noqa: E501 55 | 56 | :return: The authority of this ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable. # noqa: E501 57 | :rtype: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 58 | """ 59 | return self._authority 60 | 61 | @authority.setter 62 | def authority(self, authority): 63 | """Sets the authority of this ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable. 64 | 65 | Information on metadata upgrade authority. # noqa: E501 66 | 67 | :param authority: The authority of this ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable. # noqa: E501 68 | :type: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 69 | """ 70 | 71 | self._authority = authority 72 | 73 | @property 74 | def status(self): 75 | """Gets the status of this ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The status of this ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._status 83 | 84 | @status.setter 85 | def status(self, status): 86 | """Sets the status of this ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param status: The status of this ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._status = status 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityTransferFeeUpgradable): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_transfer_hook.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityTransferHook(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'address': 'str', 32 | 'malicious_address': 'int' 33 | } 34 | 35 | attribute_map = { 36 | 'address': 'address', 37 | 'malicious_address': 'malicious_address' 38 | } 39 | 40 | def __init__(self, address=None, malicious_address=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityTransferHook - a model defined in Swagger""" # noqa: E501 42 | self._address = None 43 | self._malicious_address = None 44 | self.discriminator = None 45 | if address is not None: 46 | self.address = address 47 | if malicious_address is not None: 48 | self.malicious_address = malicious_address 49 | 50 | @property 51 | def address(self): 52 | """Gets the address of this ResponseWrapperSolanaTokenSecurityTransferHook. # noqa: E501 53 | 54 | Address of the hook. # noqa: E501 55 | 56 | :return: The address of this ResponseWrapperSolanaTokenSecurityTransferHook. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._address 60 | 61 | @address.setter 62 | def address(self, address): 63 | """Sets the address of this ResponseWrapperSolanaTokenSecurityTransferHook. 64 | 65 | Address of the hook. # noqa: E501 66 | 67 | :param address: The address of this ResponseWrapperSolanaTokenSecurityTransferHook. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._address = address 72 | 73 | @property 74 | def malicious_address(self): 75 | """Gets the malicious_address of this ResponseWrapperSolanaTokenSecurityTransferHook. # noqa: E501 76 | 77 | Indicates whether the address is malicious, \"1\" means yes. # noqa: E501 78 | 79 | :return: The malicious_address of this ResponseWrapperSolanaTokenSecurityTransferHook. # noqa: E501 80 | :rtype: int 81 | """ 82 | return self._malicious_address 83 | 84 | @malicious_address.setter 85 | def malicious_address(self, malicious_address): 86 | """Sets the malicious_address of this ResponseWrapperSolanaTokenSecurityTransferHook. 87 | 88 | Indicates whether the address is malicious, \"1\" means yes. # noqa: E501 89 | 90 | :param malicious_address: The malicious_address of this ResponseWrapperSolanaTokenSecurityTransferHook. # noqa: E501 91 | :type: int 92 | """ 93 | 94 | self._malicious_address = malicious_address 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityTransferHook, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityTransferHook): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_solana_token_security_transfer_hook_upgradable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSolanaTokenSecurityTransferHookUpgradable(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'authority': 'list[ResponseWrapperSolanaTokenSecurityClosableAuthority]', 32 | 'status': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'authority': 'authority', 37 | 'status': 'status' 38 | } 39 | 40 | def __init__(self, authority=None, status=None): # noqa: E501 41 | """ResponseWrapperSolanaTokenSecurityTransferHookUpgradable - a model defined in Swagger""" # noqa: E501 42 | self._authority = None 43 | self._status = None 44 | self.discriminator = None 45 | if authority is not None: 46 | self.authority = authority 47 | if status is not None: 48 | self.status = status 49 | 50 | @property 51 | def authority(self): 52 | """Gets the authority of this ResponseWrapperSolanaTokenSecurityTransferHookUpgradable. # noqa: E501 53 | 54 | Information on metadata upgrade authority. # noqa: E501 55 | 56 | :return: The authority of this ResponseWrapperSolanaTokenSecurityTransferHookUpgradable. # noqa: E501 57 | :rtype: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 58 | """ 59 | return self._authority 60 | 61 | @authority.setter 62 | def authority(self, authority): 63 | """Sets the authority of this ResponseWrapperSolanaTokenSecurityTransferHookUpgradable. 64 | 65 | Information on metadata upgrade authority. # noqa: E501 66 | 67 | :param authority: The authority of this ResponseWrapperSolanaTokenSecurityTransferHookUpgradable. # noqa: E501 68 | :type: list[ResponseWrapperSolanaTokenSecurityClosableAuthority] 69 | """ 70 | 71 | self._authority = authority 72 | 73 | @property 74 | def status(self): 75 | """Gets the status of this ResponseWrapperSolanaTokenSecurityTransferHookUpgradable. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The status of this ResponseWrapperSolanaTokenSecurityTransferHookUpgradable. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._status 83 | 84 | @status.setter 85 | def status(self, status): 86 | """Sets the status of this ResponseWrapperSolanaTokenSecurityTransferHookUpgradable. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param status: The status of this ResponseWrapperSolanaTokenSecurityTransferHookUpgradable. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._status = status 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSolanaTokenSecurityTransferHookUpgradable, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSolanaTokenSecurityTransferHookUpgradable): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_sui_token_security_blacklist.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSuiTokenSecurityBlacklist(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'cap_owner': 'str', 32 | 'value': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'cap_owner': 'cap_owner', 37 | 'value': 'value' 38 | } 39 | 40 | def __init__(self, cap_owner=None, value=None): # noqa: E501 41 | """ResponseWrapperSuiTokenSecurityBlacklist - a model defined in Swagger""" # noqa: E501 42 | self._cap_owner = None 43 | self._value = None 44 | self.discriminator = None 45 | if cap_owner is not None: 46 | self.cap_owner = cap_owner 47 | if value is not None: 48 | self.value = value 49 | 50 | @property 51 | def cap_owner(self): 52 | """Gets the cap_owner of this ResponseWrapperSuiTokenSecurityBlacklist. # noqa: E501 53 | 54 | The owner cap of the function. This field can have three possible values: A. A specific address indicates the address that can currently operate this function. B.'Shared' means any address can operate this function. C.'Immutable' means this function can no longer be invoked. # noqa: E501 55 | 56 | :return: The cap_owner of this ResponseWrapperSuiTokenSecurityBlacklist. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._cap_owner 60 | 61 | @cap_owner.setter 62 | def cap_owner(self, cap_owner): 63 | """Sets the cap_owner of this ResponseWrapperSuiTokenSecurityBlacklist. 64 | 65 | The owner cap of the function. This field can have three possible values: A. A specific address indicates the address that can currently operate this function. B.'Shared' means any address can operate this function. C.'Immutable' means this function can no longer be invoked. # noqa: E501 66 | 67 | :param cap_owner: The cap_owner of this ResponseWrapperSuiTokenSecurityBlacklist. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._cap_owner = cap_owner 72 | 73 | @property 74 | def value(self): 75 | """Gets the value of this ResponseWrapperSuiTokenSecurityBlacklist. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The value of this ResponseWrapperSuiTokenSecurityBlacklist. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._value 83 | 84 | @value.setter 85 | def value(self, value): 86 | """Sets the value of this ResponseWrapperSuiTokenSecurityBlacklist. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param value: The value of this ResponseWrapperSuiTokenSecurityBlacklist. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._value = value 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSuiTokenSecurityBlacklist, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSuiTokenSecurityBlacklist): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_sui_token_security_contract_upgradeable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSuiTokenSecurityContractUpgradeable(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'cap_owner': 'str', 32 | 'value': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'cap_owner': 'cap_owner', 37 | 'value': 'value' 38 | } 39 | 40 | def __init__(self, cap_owner=None, value=None): # noqa: E501 41 | """ResponseWrapperSuiTokenSecurityContractUpgradeable - a model defined in Swagger""" # noqa: E501 42 | self._cap_owner = None 43 | self._value = None 44 | self.discriminator = None 45 | if cap_owner is not None: 46 | self.cap_owner = cap_owner 47 | if value is not None: 48 | self.value = value 49 | 50 | @property 51 | def cap_owner(self): 52 | """Gets the cap_owner of this ResponseWrapperSuiTokenSecurityContractUpgradeable. # noqa: E501 53 | 54 | The owner cap of the function. This field can have three possible values: A. A specific address indicates the address that can currently operate this function. B.'Shared' means any address can operate this function. C.'Immutable' means this function can no longer be invoked. # noqa: E501 55 | 56 | :return: The cap_owner of this ResponseWrapperSuiTokenSecurityContractUpgradeable. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._cap_owner 60 | 61 | @cap_owner.setter 62 | def cap_owner(self, cap_owner): 63 | """Sets the cap_owner of this ResponseWrapperSuiTokenSecurityContractUpgradeable. 64 | 65 | The owner cap of the function. This field can have three possible values: A. A specific address indicates the address that can currently operate this function. B.'Shared' means any address can operate this function. C.'Immutable' means this function can no longer be invoked. # noqa: E501 66 | 67 | :param cap_owner: The cap_owner of this ResponseWrapperSuiTokenSecurityContractUpgradeable. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._cap_owner = cap_owner 72 | 73 | @property 74 | def value(self): 75 | """Gets the value of this ResponseWrapperSuiTokenSecurityContractUpgradeable. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The value of this ResponseWrapperSuiTokenSecurityContractUpgradeable. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._value 83 | 84 | @value.setter 85 | def value(self, value): 86 | """Sets the value of this ResponseWrapperSuiTokenSecurityContractUpgradeable. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param value: The value of this ResponseWrapperSuiTokenSecurityContractUpgradeable. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._value = value 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSuiTokenSecurityContractUpgradeable, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSuiTokenSecurityContractUpgradeable): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_sui_token_security_metadata_modifiable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSuiTokenSecurityMetadataModifiable(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'cap_owner': 'str', 32 | 'value': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'cap_owner': 'cap_owner', 37 | 'value': 'value' 38 | } 39 | 40 | def __init__(self, cap_owner=None, value=None): # noqa: E501 41 | """ResponseWrapperSuiTokenSecurityMetadataModifiable - a model defined in Swagger""" # noqa: E501 42 | self._cap_owner = None 43 | self._value = None 44 | self.discriminator = None 45 | if cap_owner is not None: 46 | self.cap_owner = cap_owner 47 | if value is not None: 48 | self.value = value 49 | 50 | @property 51 | def cap_owner(self): 52 | """Gets the cap_owner of this ResponseWrapperSuiTokenSecurityMetadataModifiable. # noqa: E501 53 | 54 | The owner cap of the function. This field can have three possible values: A. A specific address indicates the address that can currently operate this function. B.'Shared' means any address can operate this function. C.'Immutable' means this function can no longer be invoked. # noqa: E501 55 | 56 | :return: The cap_owner of this ResponseWrapperSuiTokenSecurityMetadataModifiable. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._cap_owner 60 | 61 | @cap_owner.setter 62 | def cap_owner(self, cap_owner): 63 | """Sets the cap_owner of this ResponseWrapperSuiTokenSecurityMetadataModifiable. 64 | 65 | The owner cap of the function. This field can have three possible values: A. A specific address indicates the address that can currently operate this function. B.'Shared' means any address can operate this function. C.'Immutable' means this function can no longer be invoked. # noqa: E501 66 | 67 | :param cap_owner: The cap_owner of this ResponseWrapperSuiTokenSecurityMetadataModifiable. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._cap_owner = cap_owner 72 | 73 | @property 74 | def value(self): 75 | """Gets the value of this ResponseWrapperSuiTokenSecurityMetadataModifiable. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The value of this ResponseWrapperSuiTokenSecurityMetadataModifiable. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._value 83 | 84 | @value.setter 85 | def value(self, value): 86 | """Sets the value of this ResponseWrapperSuiTokenSecurityMetadataModifiable. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param value: The value of this ResponseWrapperSuiTokenSecurityMetadataModifiable. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._value = value 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSuiTokenSecurityMetadataModifiable, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSuiTokenSecurityMetadataModifiable): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_sui_token_security_mintable.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperSuiTokenSecurityMintable(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'cap_owner': 'str', 32 | 'value': 'str' 33 | } 34 | 35 | attribute_map = { 36 | 'cap_owner': 'cap_owner', 37 | 'value': 'value' 38 | } 39 | 40 | def __init__(self, cap_owner=None, value=None): # noqa: E501 41 | """ResponseWrapperSuiTokenSecurityMintable - a model defined in Swagger""" # noqa: E501 42 | self._cap_owner = None 43 | self._value = None 44 | self.discriminator = None 45 | if cap_owner is not None: 46 | self.cap_owner = cap_owner 47 | if value is not None: 48 | self.value = value 49 | 50 | @property 51 | def cap_owner(self): 52 | """Gets the cap_owner of this ResponseWrapperSuiTokenSecurityMintable. # noqa: E501 53 | 54 | The owner cap of the function. This field can have three possible values: A. A specific address indicates the address that can currently operate this function. B.'Shared' means any address can operate this function. C.'Immutable' means this function can no longer be invoked. # noqa: E501 55 | 56 | :return: The cap_owner of this ResponseWrapperSuiTokenSecurityMintable. # noqa: E501 57 | :rtype: str 58 | """ 59 | return self._cap_owner 60 | 61 | @cap_owner.setter 62 | def cap_owner(self, cap_owner): 63 | """Sets the cap_owner of this ResponseWrapperSuiTokenSecurityMintable. 64 | 65 | The owner cap of the function. This field can have three possible values: A. A specific address indicates the address that can currently operate this function. B.'Shared' means any address can operate this function. C.'Immutable' means this function can no longer be invoked. # noqa: E501 66 | 67 | :param cap_owner: The cap_owner of this ResponseWrapperSuiTokenSecurityMintable. # noqa: E501 68 | :type: str 69 | """ 70 | 71 | self._cap_owner = cap_owner 72 | 73 | @property 74 | def value(self): 75 | """Gets the value of this ResponseWrapperSuiTokenSecurityMintable. # noqa: E501 76 | 77 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 78 | 79 | :return: The value of this ResponseWrapperSuiTokenSecurityMintable. # noqa: E501 80 | :rtype: str 81 | """ 82 | return self._value 83 | 84 | @value.setter 85 | def value(self, value): 86 | """Sets the value of this ResponseWrapperSuiTokenSecurityMintable. 87 | 88 | Status indicator, where \"1\" means the funtcion is available. # noqa: E501 89 | 90 | :param value: The value of this ResponseWrapperSuiTokenSecurityMintable. # noqa: E501 91 | :type: str 92 | """ 93 | 94 | self._value = value 95 | 96 | def to_dict(self): 97 | """Returns the model properties as a dict""" 98 | result = {} 99 | 100 | for attr, _ in six.iteritems(self.swagger_types): 101 | value = getattr(self, attr) 102 | if isinstance(value, list): 103 | result[attr] = list(map( 104 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 105 | value 106 | )) 107 | elif hasattr(value, "to_dict"): 108 | result[attr] = value.to_dict() 109 | elif isinstance(value, dict): 110 | result[attr] = dict(map( 111 | lambda item: (item[0], item[1].to_dict()) 112 | if hasattr(item[1], "to_dict") else item, 113 | value.items() 114 | )) 115 | else: 116 | result[attr] = value 117 | if issubclass(ResponseWrapperSuiTokenSecurityMintable, dict): 118 | for key, value in self.items(): 119 | result[key] = value 120 | 121 | return result 122 | 123 | def to_str(self): 124 | """Returns the string representation of the model""" 125 | return pprint.pformat(self.to_dict()) 126 | 127 | def __repr__(self): 128 | """For `print` and `pprint`""" 129 | return self.to_str() 130 | 131 | def __eq__(self, other): 132 | """Returns true if both objects are equal""" 133 | if not isinstance(other, ResponseWrapperSuiTokenSecurityMintable): 134 | return False 135 | 136 | return self.__dict__ == other.__dict__ 137 | 138 | def __ne__(self, other): 139 | """Returns true if both objects are not equal""" 140 | return not self == other 141 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapper_token_locker_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperTokenLockerResponse(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'TokenLockerResponse' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """ResponseWrapperTokenLockerResponse - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this ResponseWrapperTokenLockerResponse. # noqa: E501 58 | 59 | Code 1:Success # noqa: E501 60 | 61 | :return: The code of this ResponseWrapperTokenLockerResponse. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this ResponseWrapperTokenLockerResponse. 69 | 70 | Code 1:Success # noqa: E501 71 | 72 | :param code: The code of this ResponseWrapperTokenLockerResponse. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this ResponseWrapperTokenLockerResponse. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this ResponseWrapperTokenLockerResponse. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this ResponseWrapperTokenLockerResponse. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this ResponseWrapperTokenLockerResponse. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this ResponseWrapperTokenLockerResponse. # noqa: E501 104 | 105 | 106 | :return: The result of this ResponseWrapperTokenLockerResponse. # noqa: E501 107 | :rtype: TokenLockerResponse 108 | """ 109 | return self._result 110 | 111 | @result.setter 112 | def result(self, result): 113 | """Sets the result of this ResponseWrapperTokenLockerResponse. 114 | 115 | 116 | :param result: The result of this ResponseWrapperTokenLockerResponse. # noqa: E501 117 | :type: TokenLockerResponse 118 | """ 119 | 120 | self._result = result 121 | 122 | def to_dict(self): 123 | """Returns the model properties as a dict""" 124 | result = {} 125 | 126 | for attr, _ in six.iteritems(self.swagger_types): 127 | value = getattr(self, attr) 128 | if isinstance(value, list): 129 | result[attr] = list(map( 130 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 131 | value 132 | )) 133 | elif hasattr(value, "to_dict"): 134 | result[attr] = value.to_dict() 135 | elif isinstance(value, dict): 136 | result[attr] = dict(map( 137 | lambda item: (item[0], item[1].to_dict()) 138 | if hasattr(item[1], "to_dict") else item, 139 | value.items() 140 | )) 141 | else: 142 | result[attr] = value 143 | if issubclass(ResponseWrapperTokenLockerResponse, dict): 144 | for key, value in self.items(): 145 | result[key] = value 146 | 147 | return result 148 | 149 | def to_str(self): 150 | """Returns the string representation of the model""" 151 | return pprint.pformat(self.to_dict()) 152 | 153 | def __repr__(self): 154 | """For `print` and `pprint`""" 155 | return self.to_str() 156 | 157 | def __eq__(self, other): 158 | """Returns true if both objects are equal""" 159 | if not isinstance(other, ResponseWrapperTokenLockerResponse): 160 | return False 161 | 162 | return self.__dict__ == other.__dict__ 163 | 164 | def __ne__(self, other): 165 | """Returns true if both objects are not equal""" 166 | return not self == other 167 | -------------------------------------------------------------------------------- /swagger_client/models/response_wrapperobject.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class ResponseWrapperobject(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'code': 'int', 32 | 'message': 'str', 33 | 'result': 'object' 34 | } 35 | 36 | attribute_map = { 37 | 'code': 'code', 38 | 'message': 'message', 39 | 'result': 'result' 40 | } 41 | 42 | def __init__(self, code=None, message=None, result=None): # noqa: E501 43 | """ResponseWrapperobject - a model defined in Swagger""" # noqa: E501 44 | self._code = None 45 | self._message = None 46 | self._result = None 47 | self.discriminator = None 48 | if code is not None: 49 | self.code = code 50 | if message is not None: 51 | self.message = message 52 | if result is not None: 53 | self.result = result 54 | 55 | @property 56 | def code(self): 57 | """Gets the code of this ResponseWrapperobject. # noqa: E501 58 | 59 | Code 1: Success # noqa: E501 60 | 61 | :return: The code of this ResponseWrapperobject. # noqa: E501 62 | :rtype: int 63 | """ 64 | return self._code 65 | 66 | @code.setter 67 | def code(self, code): 68 | """Sets the code of this ResponseWrapperobject. 69 | 70 | Code 1: Success # noqa: E501 71 | 72 | :param code: The code of this ResponseWrapperobject. # noqa: E501 73 | :type: int 74 | """ 75 | 76 | self._code = code 77 | 78 | @property 79 | def message(self): 80 | """Gets the message of this ResponseWrapperobject. # noqa: E501 81 | 82 | Response message # noqa: E501 83 | 84 | :return: The message of this ResponseWrapperobject. # noqa: E501 85 | :rtype: str 86 | """ 87 | return self._message 88 | 89 | @message.setter 90 | def message(self, message): 91 | """Sets the message of this ResponseWrapperobject. 92 | 93 | Response message # noqa: E501 94 | 95 | :param message: The message of this ResponseWrapperobject. # noqa: E501 96 | :type: str 97 | """ 98 | 99 | self._message = message 100 | 101 | @property 102 | def result(self): 103 | """Gets the result of this ResponseWrapperobject. # noqa: E501 104 | 105 | Response result # noqa: E501 106 | 107 | :return: The result of this ResponseWrapperobject. # noqa: E501 108 | :rtype: object 109 | """ 110 | return self._result 111 | 112 | @result.setter 113 | def result(self, result): 114 | """Sets the result of this ResponseWrapperobject. 115 | 116 | Response result # noqa: E501 117 | 118 | :param result: The result of this ResponseWrapperobject. # noqa: E501 119 | :type: object 120 | """ 121 | 122 | self._result = result 123 | 124 | def to_dict(self): 125 | """Returns the model properties as a dict""" 126 | result = {} 127 | 128 | for attr, _ in six.iteritems(self.swagger_types): 129 | value = getattr(self, attr) 130 | if isinstance(value, list): 131 | result[attr] = list(map( 132 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 133 | value 134 | )) 135 | elif hasattr(value, "to_dict"): 136 | result[attr] = value.to_dict() 137 | elif isinstance(value, dict): 138 | result[attr] = dict(map( 139 | lambda item: (item[0], item[1].to_dict()) 140 | if hasattr(item[1], "to_dict") else item, 141 | value.items() 142 | )) 143 | else: 144 | result[attr] = value 145 | if issubclass(ResponseWrapperobject, dict): 146 | for key, value in self.items(): 147 | result[key] = value 148 | 149 | return result 150 | 151 | def to_str(self): 152 | """Returns the string representation of the model""" 153 | return pprint.pformat(self.to_dict()) 154 | 155 | def __repr__(self): 156 | """For `print` and `pprint`""" 157 | return self.to_str() 158 | 159 | def __eq__(self, other): 160 | """Returns true if both objects are equal""" 161 | if not isinstance(other, ResponseWrapperobject): 162 | return False 163 | 164 | return self.__dict__ == other.__dict__ 165 | 166 | def __ne__(self, other): 167 | """Returns true if both objects are not equal""" 168 | return not self == other 169 | -------------------------------------------------------------------------------- /swagger_client/models/solana_prerun_tx_request.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class SolanaPrerunTxRequest(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'encoded_transaction': 'str' 32 | } 33 | 34 | attribute_map = { 35 | 'encoded_transaction': 'encoded_transaction' 36 | } 37 | 38 | def __init__(self, encoded_transaction=None): # noqa: E501 39 | """SolanaPrerunTxRequest - a model defined in Swagger""" # noqa: E501 40 | self._encoded_transaction = None 41 | self.discriminator = None 42 | if encoded_transaction is not None: 43 | self.encoded_transaction = encoded_transaction 44 | 45 | @property 46 | def encoded_transaction(self): 47 | """Gets the encoded_transaction of this SolanaPrerunTxRequest. # noqa: E501 48 | 49 | 50 | :return: The encoded_transaction of this SolanaPrerunTxRequest. # noqa: E501 51 | :rtype: str 52 | """ 53 | return self._encoded_transaction 54 | 55 | @encoded_transaction.setter 56 | def encoded_transaction(self, encoded_transaction): 57 | """Sets the encoded_transaction of this SolanaPrerunTxRequest. 58 | 59 | 60 | :param encoded_transaction: The encoded_transaction of this SolanaPrerunTxRequest. # noqa: E501 61 | :type: str 62 | """ 63 | 64 | self._encoded_transaction = encoded_transaction 65 | 66 | def to_dict(self): 67 | """Returns the model properties as a dict""" 68 | result = {} 69 | 70 | for attr, _ in six.iteritems(self.swagger_types): 71 | value = getattr(self, attr) 72 | if isinstance(value, list): 73 | result[attr] = list(map( 74 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 75 | value 76 | )) 77 | elif hasattr(value, "to_dict"): 78 | result[attr] = value.to_dict() 79 | elif isinstance(value, dict): 80 | result[attr] = dict(map( 81 | lambda item: (item[0], item[1].to_dict()) 82 | if hasattr(item[1], "to_dict") else item, 83 | value.items() 84 | )) 85 | else: 86 | result[attr] = value 87 | if issubclass(SolanaPrerunTxRequest, dict): 88 | for key, value in self.items(): 89 | result[key] = value 90 | 91 | return result 92 | 93 | def to_str(self): 94 | """Returns the string representation of the model""" 95 | return pprint.pformat(self.to_dict()) 96 | 97 | def __repr__(self): 98 | """For `print` and `pprint`""" 99 | return self.to_str() 100 | 101 | def __eq__(self, other): 102 | """Returns true if both objects are equal""" 103 | if not isinstance(other, SolanaPrerunTxRequest): 104 | return False 105 | 106 | return self.__dict__ == other.__dict__ 107 | 108 | def __ne__(self, other): 109 | """Returns true if both objects are not equal""" 110 | return not self == other 111 | -------------------------------------------------------------------------------- /swagger_client/models/ta_token_security_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class TaTokenSecurityResponse(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'data': 'dict(str, dict(str, object))' 32 | } 33 | 34 | attribute_map = { 35 | 'data': 'data' 36 | } 37 | 38 | def __init__(self, data=None): # noqa: E501 39 | """TaTokenSecurityResponse - a model defined in Swagger""" # noqa: E501 40 | self._data = None 41 | self.discriminator = None 42 | if data is not None: 43 | self.data = data 44 | 45 | @property 46 | def data(self): 47 | """Gets the data of this TaTokenSecurityResponse. # noqa: E501 48 | 49 | 50 | :return: The data of this TaTokenSecurityResponse. # noqa: E501 51 | :rtype: dict(str, dict(str, object)) 52 | """ 53 | return self._data 54 | 55 | @data.setter 56 | def data(self, data): 57 | """Sets the data of this TaTokenSecurityResponse. 58 | 59 | 60 | :param data: The data of this TaTokenSecurityResponse. # noqa: E501 61 | :type: dict(str, dict(str, object)) 62 | """ 63 | 64 | self._data = data 65 | 66 | def to_dict(self): 67 | """Returns the model properties as a dict""" 68 | result = {} 69 | 70 | for attr, _ in six.iteritems(self.swagger_types): 71 | value = getattr(self, attr) 72 | if isinstance(value, list): 73 | result[attr] = list(map( 74 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 75 | value 76 | )) 77 | elif hasattr(value, "to_dict"): 78 | result[attr] = value.to_dict() 79 | elif isinstance(value, dict): 80 | result[attr] = dict(map( 81 | lambda item: (item[0], item[1].to_dict()) 82 | if hasattr(item[1], "to_dict") else item, 83 | value.items() 84 | )) 85 | else: 86 | result[attr] = value 87 | if issubclass(TaTokenSecurityResponse, dict): 88 | for key, value in self.items(): 89 | result[key] = value 90 | 91 | return result 92 | 93 | def to_str(self): 94 | """Returns the string representation of the model""" 95 | return pprint.pformat(self.to_dict()) 96 | 97 | def __repr__(self): 98 | """For `print` and `pprint`""" 99 | return self.to_str() 100 | 101 | def __eq__(self, other): 102 | """Returns true if both objects are equal""" 103 | if not isinstance(other, TaTokenSecurityResponse): 104 | return False 105 | 106 | return self.__dict__ == other.__dict__ 107 | 108 | def __ne__(self, other): 109 | """Returns true if both objects are not equal""" 110 | return not self == other 111 | -------------------------------------------------------------------------------- /swagger_client/models/token_locker_response.py: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | 3 | """ 4 | GoPlus Security API Document 5 | 6 | No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 7 | 8 | OpenAPI spec version: 1.0 9 | 10 | Generated by: https://github.com/swagger-api/swagger-codegen.git 11 | """ 12 | 13 | import pprint 14 | import re # noqa: F401 15 | 16 | import six 17 | 18 | class TokenLockerResponse(object): 19 | """NOTE: This class is auto generated by the swagger code generator program. 20 | 21 | Do not edit the class manually. 22 | """ 23 | """ 24 | Attributes: 25 | swagger_types (dict): The key is attribute name 26 | and the value is attribute type. 27 | attribute_map (dict): The key is attribute name 28 | and the value is json key in definition. 29 | """ 30 | swagger_types = { 31 | 'list': 'list[TaTokenLockerLockInfoobject]', 32 | 'total_count': 'int' 33 | } 34 | 35 | attribute_map = { 36 | 'list': 'list', 37 | 'total_count': 'totalCount' 38 | } 39 | 40 | def __init__(self, list=None, total_count=None): # noqa: E501 41 | """TokenLockerResponse - a model defined in Swagger""" # noqa: E501 42 | self._list = None 43 | self._total_count = None 44 | self.discriminator = None 45 | if list is not None: 46 | self.list = list 47 | if total_count is not None: 48 | self.total_count = total_count 49 | 50 | @property 51 | def list(self): 52 | """Gets the list of this TokenLockerResponse. # noqa: E501 53 | 54 | 55 | :return: The list of this TokenLockerResponse. # noqa: E501 56 | :rtype: list[TaTokenLockerLockInfoobject] 57 | """ 58 | return self._list 59 | 60 | @list.setter 61 | def list(self, list): 62 | """Sets the list of this TokenLockerResponse. 63 | 64 | 65 | :param list: The list of this TokenLockerResponse. # noqa: E501 66 | :type: list[TaTokenLockerLockInfoobject] 67 | """ 68 | 69 | self._list = list 70 | 71 | @property 72 | def total_count(self): 73 | """Gets the total_count of this TokenLockerResponse. # noqa: E501 74 | 75 | 76 | :return: The total_count of this TokenLockerResponse. # noqa: E501 77 | :rtype: int 78 | """ 79 | return self._total_count 80 | 81 | @total_count.setter 82 | def total_count(self, total_count): 83 | """Sets the total_count of this TokenLockerResponse. 84 | 85 | 86 | :param total_count: The total_count of this TokenLockerResponse. # noqa: E501 87 | :type: int 88 | """ 89 | 90 | self._total_count = total_count 91 | 92 | def to_dict(self): 93 | """Returns the model properties as a dict""" 94 | result = {} 95 | 96 | for attr, _ in six.iteritems(self.swagger_types): 97 | value = getattr(self, attr) 98 | if isinstance(value, list): 99 | result[attr] = list(map( 100 | lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 101 | value 102 | )) 103 | elif hasattr(value, "to_dict"): 104 | result[attr] = value.to_dict() 105 | elif isinstance(value, dict): 106 | result[attr] = dict(map( 107 | lambda item: (item[0], item[1].to_dict()) 108 | if hasattr(item[1], "to_dict") else item, 109 | value.items() 110 | )) 111 | else: 112 | result[attr] = value 113 | if issubclass(TokenLockerResponse, dict): 114 | for key, value in self.items(): 115 | result[key] = value 116 | 117 | return result 118 | 119 | def to_str(self): 120 | """Returns the string representation of the model""" 121 | return pprint.pformat(self.to_dict()) 122 | 123 | def __repr__(self): 124 | """For `print` and `pprint`""" 125 | return self.to_str() 126 | 127 | def __eq__(self, other): 128 | """Returns true if both objects are equal""" 129 | if not isinstance(other, TokenLockerResponse): 130 | return False 131 | 132 | return self.__dict__ == other.__dict__ 133 | 134 | def __ne__(self, other): 135 | """Returns true if both objects are not equal""" 136 | return not self == other 137 | -------------------------------------------------------------------------------- /templates/LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright 2023 The GoPlus. All rights reserved. 2 | Licensed under the Apache License, Version 2.0 (the "License"); 3 | you may not use this file except in compliance with the License. 4 | You may obtain a copy of the License at 5 | 6 | http://www.apache.org/licenses/LICENSE-2.0 7 | 8 | Unless required by applicable law or agreed to in writing, software 9 | distributed under the License is distributed on an "AS IS" BASIS, 10 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | See the License for the specific language governing permissions and 12 | limitations under the License. 13 | -------------------------------------------------------------------------------- /test_goplus.py: -------------------------------------------------------------------------------- 1 | # Copyright 2023 The GoPlus. All rights reserved. 2 | # Licensed under the Apache License, Version 2.0 (the "License"); 3 | # you may not use this file except in compliance with the License. 4 | # You may obtain a copy of the License at 5 | # 6 | # http://www.apache.org/licenses/LICENSE-2.0 7 | # 8 | # Unless required by applicable law or agreed to in writing, software 9 | # distributed under the License is distributed on an "AS IS" BASIS, 10 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11 | # See the License for the specific language governing permissions and 12 | # limitations under the License. 13 | 14 | import unittest 15 | 16 | from goplus.address import Address 17 | from goplus.approve import Approve 18 | from goplus.dapp import Dapp 19 | from goplus.decode import Decode 20 | from goplus.errorcode import Code 21 | from goplus.nft import Nft 22 | from goplus.phishing_site import PushingSite 23 | from goplus.rug_pull import RugPull 24 | from goplus.token import Token 25 | 26 | 27 | class TokenTest(unittest.TestCase): 28 | def test_token_security(self): 29 | res = Token().token_security( 30 | chain_id="1", addresses=["0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"] 31 | ) 32 | self.assertEqual(res.code, Code.SUCCESS, res.message) 33 | 34 | 35 | class AddressTest(unittest.TestCase): 36 | def test_address_security(self): 37 | res = Address().address_security( 38 | address="0xc8b759860149542a98a3eb57c14aadf59d6d89b9" 39 | ) 40 | self.assertEqual(res.code, Code.SUCCESS, res.message) 41 | 42 | 43 | class ApprovalTest(unittest.TestCase): 44 | def test_approval_security_v1(self): 45 | res = Approve().approve_security_v1( 46 | chain_id="1", address="0x4639cd8cd52ec1cf2e496a606ce28d8afb1c792f" 47 | ) 48 | self.assertEqual(res.code, Code.SUCCESS, res.message) 49 | 50 | def test_token_approval_security(self): 51 | res = Approve().token_approve_security( 52 | chain_id="56", address="0xd018e2b543a2669410537f96293590138cacedf3" 53 | ) 54 | self.assertEqual(res.code, Code.SUCCESS, res.message) 55 | 56 | def test_erc721_approval_security(self): 57 | res = Approve().erc721_approve_security( 58 | chain_id="1", address="0xd95dbdab08a9fed2d71ac9c3028aac40905d8cf3" 59 | ) 60 | self.assertEqual(res.code, Code.SUCCESS, res.message) 61 | 62 | def test_erc1155_approval_security(self): 63 | res = Approve().erc1155_approve_security( 64 | chain_id="56", address="0xb0dccbb9c4a65a94a41a0165aaea79c8b2fc54ce" 65 | ) 66 | self.assertEqual(res.code, Code.SUCCESS, res.message) 67 | 68 | 69 | class DecodeTest(unittest.TestCase): 70 | def test_signature_data_decode(self): 71 | res = Decode(access_token=None).signature_data_decode( 72 | chain_id="1", 73 | address="0x4cc8aa0c6ffbe18534584da9b592aa438733ee66", 74 | data="0xa0712d68000000000000000000000000" 75 | "0000000000000000000000000000000062fee481", 76 | ) 77 | self.assertEqual(res.code, Code.SUCCESS, res.message) 78 | 79 | 80 | class NftTest(unittest.TestCase): 81 | def test_nft_security(self): 82 | res = Nft().nft_security( 83 | chain_id="1", address="0x82f5ef9ddc3d231962ba57a9c2ebb307dc8d26c2" 84 | ) 85 | self.assertIn(res.code, [Code.SUCCESS, Code.DATA_PENDING_SYNC], res.message) 86 | 87 | 88 | class DappTest(unittest.TestCase): 89 | def test_dapp_security(self): 90 | res = Dapp().dapp_security(url="https://for.tube") 91 | self.assertEqual(res.code, Code.SUCCESS, res.message) 92 | 93 | 94 | class PhishingSiteTest(unittest.TestCase): 95 | def test_phishing_site_security(self): 96 | res = PushingSite().pushing_site_security(url="https://xn--cm-68s.cc/") 97 | self.assertEqual(res.code, Code.SUCCESS, res.message) 98 | 99 | 100 | class RugPullTest(unittest.TestCase): 101 | def test_rug_pull_security(self): 102 | res = RugPull().rug_pull_security( 103 | chain_id="1", address="0x6B175474E89094C44Da98b954EedeAC495271d0F" 104 | ) 105 | self.assertEqual(res.code, Code.SUCCESS, res.message) 106 | 107 | 108 | if __name__ == "__main__": 109 | unittest.main() 110 | --------------------------------------------------------------------------------