From 9e3f8274682ac8f9d2ed3c5bb50e104b14d1dad7 Mon Sep 17 00:00:00 2001 From: fireblocks_dx_team Date: Mon, 17 Jun 2024 14:12:00 +0000 Subject: [PATCH] Generated SDK #3877 --- .github/workflows/python-package.yml | 2 +- docs/BlockchainsAssetsApi.md | 4 ++-- docs/RegisterNewAssetRequest.md | 2 +- fireblocks/api/blockchains_assets_api.py | 2 +- fireblocks/models/register_new_asset_request.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index facf9db2..cc084914 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: python-version: [3.8, 3.9, "3.10", 3.11, 3.12] - os: [macos-11, macos-12, windows-latest, ubuntu-20.04, ubuntu-22.04] + os: [macos-12, windows-latest, ubuntu-20.04, ubuntu-22.04] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 diff --git a/docs/BlockchainsAssetsApi.md b/docs/BlockchainsAssetsApi.md index d46ee035..1f529f10 100644 --- a/docs/BlockchainsAssetsApi.md +++ b/docs/BlockchainsAssetsApi.md @@ -83,7 +83,7 @@ No authorization required Register an asset -Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR +Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - Solana ### Example @@ -151,7 +151,7 @@ No authorization required | Status code | Description | Response headers | |-------------|-------------|------------------| **200** | A new asset has been created successfully | - | -**400** | - Listing an asset on the requested blockchain is not supported. Error code: 1000 - The asset address is invalid. Error code: 1003 - Self serve listing an asset on the requested blockchain is currently not supported, please contact support. Error code: 1004 | - | +**400** | - Listing an asset on the requested blockchain is not supported. Error code: 1000 - The asset address is invalid. Error code: 1003 - Self serve listing an asset on the requested blockchain is currently not supported, please contact support. Error code: 1004 - Blockchain is deprecated. Error code: 1006 - The asset's standard is not supported. Error code: 1007 | - | **403** | - The asset creation quota reached. Error code: 1005 | - | **404** | - Invalid address, could not get asset information. Error code 1003 | - | **409** | - The asset is already supported globally. Error code: 1001 - The asset has already been added to this workspace. Error code: 1002 | - | diff --git a/docs/RegisterNewAssetRequest.md b/docs/RegisterNewAssetRequest.md index 5485b422..84e65820 100644 --- a/docs/RegisterNewAssetRequest.md +++ b/docs/RegisterNewAssetRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **blockchain_id** | **str** | Native asset ID of the blockchain | -**address** | **str** | Asset address. - For EVM based chains this should be the token contract address. - For Stellar (XLM) this should be the issuer address. - For Algorand (ALGO) this should be the asset ID. - For TRON (TRX) this should be the token contract address. - For NEAR this will be the token address. | +**address** | **str** | Asset address. - EVM-based chains: token contract address - Stellar (XLM): issuer address - Algorand (ALGO): asset ID - TRON (TRX): token contract address - NEAR: token address - Solana: token's mint account address | **symbol** | **str** | Required for Stellar only, asset code is expected. | [optional] ## Example diff --git a/fireblocks/api/blockchains_assets_api.py b/fireblocks/api/blockchains_assets_api.py index 5cb0dc25..4096a9ba 100644 --- a/fireblocks/api/blockchains_assets_api.py +++ b/fireblocks/api/blockchains_assets_api.py @@ -180,7 +180,7 @@ def register_new_asset( ) -> Future[ApiResponse[AssetResponse]]: """Register an asset - Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR + Register a new asset to a workspace and return the newly created asset's details. Currently supported chains are: - EVM based chains - Stellar - Algorand - TRON - NEAR - Solana :param idempotency_key: A unique identifier for the request. If the request is sent multiple times with the same idempotency key, the server will return the same response as the first request. The idempotency key is valid for 24 hours. :type idempotency_key: str diff --git a/fireblocks/models/register_new_asset_request.py b/fireblocks/models/register_new_asset_request.py index b1a5e16b..45f6ae0f 100644 --- a/fireblocks/models/register_new_asset_request.py +++ b/fireblocks/models/register_new_asset_request.py @@ -28,7 +28,7 @@ class RegisterNewAssetRequest(BaseModel): RegisterNewAssetRequest """ # noqa: E501 blockchain_id: StrictStr = Field(description="Native asset ID of the blockchain", alias="blockchainId") - address: StrictStr = Field(description="Asset address. - For EVM based chains this should be the token contract address. - For Stellar (XLM) this should be the issuer address. - For Algorand (ALGO) this should be the asset ID. - For TRON (TRX) this should be the token contract address. - For NEAR this will be the token address. ") + address: StrictStr = Field(description="Asset address. - EVM-based chains: token contract address - Stellar (XLM): issuer address - Algorand (ALGO): asset ID - TRON (TRX): token contract address - NEAR: token address - Solana: token's mint account address ") symbol: Optional[StrictStr] = Field(default=None, description="Required for Stellar only, asset code is expected.") __properties: ClassVar[List[str]] = ["blockchainId", "address", "symbol"]