Skip to content

Commit e571ccd

Browse files
author
fireblocks_dx_team
committed
Generated SDK #4496
1 parent 8ef3361 commit e571ccd

19 files changed

+54
-29
lines changed

docs/AssetResponseOnchain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Name | Type | Description | Notes
99
**name** | **str** | The asset name |
1010
**address** | **str** | The asset address | [optional]
1111
**decimals** | **float** | Number of decimals |
12-
**standard** | **str** | The asset standard |
12+
**standard** | **str** | The asset standard | [optional]
1313

1414
## Example
1515

docs/BlockchainsAssetsApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ No authorization required
8383
8484
Register an asset
8585

86-
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
86+
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
8787

8888
### Example
8989

@@ -151,8 +151,8 @@ No authorization required
151151
| Status code | Description | Response headers |
152152
|-------------|-------------|------------------|
153153
**200** | A new asset has been created successfully | - |
154-
**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 | - |
155-
**403** | - The asset creation quota reached. Error code: 1005 | - |
154+
**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 | - |
155+
**403** | - The asset creation quota reached. Error code: 1005 - Tenant is not allowed to create testnet assets. Error code: 1008 - Tenant is not allowed to create mainnet assets. Error code: 1009 | - |
156156
**404** | - Invalid address, could not get asset information. Error code 1003 | - |
157157
**409** | - The asset is already supported globally. Error code: 1001 - The asset has already been added to this workspace. Error code: 1002 | - |
158158
**500** | Failed to create asset | - |

docs/DestinationTransferPeerPathResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**id** | **str** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional]
1212
**name** | **str** | The name of the peer. | [optional]
1313
**wallet_id** | **str** | | [optional]
14+
**trading_account** | **str** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional]
1415

1516
## Example
1617

docs/RegisterNewAssetRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**blockchain_id** | **str** | Native asset ID of the blockchain |
9-
**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. |
9+
**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 |
1010
**symbol** | **str** | Required for Stellar only, asset code is expected. | [optional]
1111

1212
## Example

docs/SourceTransferPeerPathResponse.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**id** | **str** | The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed. | [optional]
1212
**name** | **str** | The name of the peer. | [optional]
1313
**wallet_id** | **str** | | [optional]
14+
**trading_account** | **str** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional]
1415

1516
## Example
1617

fireblocks/api/blockchains_assets_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def register_new_asset(
182182
) -> Future[ApiResponse[AssetResponse]]:
183183
"""Register an asset
184184
185-
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
185+
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
186186
187187
: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.
188188
:type idempotency_key: str

fireblocks/models/asset_response_onchain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class AssetResponseOnchain(BaseModel):
3131
name: StrictStr = Field(description="The asset name")
3232
address: Optional[StrictStr] = Field(default=None, description="The asset address")
3333
decimals: Union[StrictFloat, StrictInt] = Field(description="Number of decimals")
34-
standard: StrictStr = Field(description="The asset standard")
34+
standard: Optional[StrictStr] = Field(default=None, description="The asset standard")
3535
__properties: ClassVar[List[str]] = ["symbol", "name", "address", "decimals", "standard"]
3636

3737
model_config = ConfigDict(

fireblocks/models/collection_ownership_response.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ class CollectionOwnershipResponse(BaseModel):
3838
@field_validator('blockchain_descriptor')
3939
def blockchain_descriptor_validate_enum(cls, value):
4040
"""Validates the enum"""
41-
if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH']):
42-
raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH')")
41+
if value not in set(['ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH', 'BASECHAIN_ETH_TEST3']):
42+
raise ValueError("must be one of enum values ('ETH', 'ETH_TEST3', 'ETH_TEST5', 'ETH_TEST6', 'POLYGON', 'POLYGON_TEST_MUMBAI', 'AMOY_POLYGON_TEST', 'XTZ', 'XTZ_TEST', 'BASECHAIN_ETH', 'BASECHAIN_ETH_TEST3')")
4343
return value
4444

4545
model_config = ConfigDict(

fireblocks/models/destination_transfer_peer_path_response.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ class DestinationTransferPeerPathResponse(BaseModel):
3333
id: Optional[StrictStr] = Field(default=None, description="The ID of the peer. You can retrieve the ID of each venue object using the endpoints for [listing vault accounts](https://developers.fireblocks.com/reference/get_vault-accounts-paged), [listing exchange account](https://developers.fireblocks.com/reference/get_exchange-accounts), [listing fiat accounts](https://developers.fireblocks.com/reference/get_fiat-accounts), [listing internal wallets](https://developers.fireblocks.com/reference/get_internal-wallets), [listing external wallets](https://developers.fireblocks.com/reference/get_external-wallets), [listing network connections](https://developers.fireblocks.com/reference/get_network-connections). For the other types, this parameter is not needed.")
3434
name: Optional[StrictStr] = Field(default=None, description="The name of the peer.")
3535
wallet_id: Optional[StrictStr] = Field(default=None, alias="walletId")
36-
__properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId"]
36+
trading_account: Optional[StrictStr] = Field(default=None, description="If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account.", alias="tradingAccount")
37+
__properties: ClassVar[List[str]] = ["type", "subType", "id", "name", "walletId", "tradingAccount"]
3738

3839
model_config = ConfigDict(
3940
populate_by_name=True,
@@ -79,6 +80,11 @@ def to_dict(self) -> Dict[str, Any]:
7980
if self.id is None and "id" in self.model_fields_set:
8081
_dict['id'] = None
8182

83+
# set to None if trading_account (nullable) is None
84+
# and model_fields_set contains the field
85+
if self.trading_account is None and "trading_account" in self.model_fields_set:
86+
_dict['tradingAccount'] = None
87+
8288
return _dict
8389

8490
@classmethod
@@ -95,7 +101,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
95101
"subType": obj.get("subType"),
96102
"id": obj.get("id"),
97103
"name": obj.get("name"),
98-
"walletId": obj.get("walletId")
104+
"walletId": obj.get("walletId"),
105+
"tradingAccount": obj.get("tradingAccount")
99106
})
100107
return _obj
101108

fireblocks/models/register_new_asset_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class RegisterNewAssetRequest(BaseModel):
2828
RegisterNewAssetRequest
2929
""" # noqa: E501
3030
blockchain_id: StrictStr = Field(description="Native asset ID of the blockchain", alias="blockchainId")
31-
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. ")
31+
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 ")
3232
symbol: Optional[StrictStr] = Field(default=None, description="Required for Stellar only, asset code is expected.")
3333
__properties: ClassVar[List[str]] = ["blockchainId", "address", "symbol"]
3434

0 commit comments

Comments
 (0)