Skip to content

Commit

Permalink
Generated SDK #4496
Browse files Browse the repository at this point in the history
  • Loading branch information
fireblocks_dx_team committed Jul 3, 2024
1 parent 379283d commit e6853c1
Show file tree
Hide file tree
Showing 21 changed files with 180 additions and 32 deletions.
51 changes: 44 additions & 7 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5444,6 +5444,7 @@ paths:
- Algorand
- TRON
- NEAR
- Solana
operationId: registerNewAsset
parameters:
- description: "A unique identifier for the request. If the request is sent\
Expand Down Expand Up @@ -5480,13 +5481,21 @@ paths:
- 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":
content:
application/json:
schema:
$ref: '#/components/schemas/AssetForbiddenErrorResponse'
description: |
- 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
"404":
content:
application/json:
Expand Down Expand Up @@ -9816,6 +9825,7 @@ paths:
- XTZ
- XTZ_TEST
- BASECHAIN_ETH
- BASECHAIN_ETH_TEST3
type: string
style: form
- description: A comma separated list of Vault Account IDs. Up to 100 are allowed
Expand Down Expand Up @@ -9997,7 +10007,6 @@ paths:
schema:
enum:
- ETH
- ETH_TEST3
- ETH_TEST5
- ETH_TEST6
- POLYGON
Expand Down Expand Up @@ -16007,11 +16016,14 @@ components:
example: "(ETH, ETH_TEST5, MATIC_POLYGON)"
type: string
address:
description: "Asset address. \n- For EVM based chains this should be the\
\ token contract address.\n- For Stellar (XLM) this should be the issuer\
\ address.\n- For Algorand (ALGO) this should be the asset ID.\n- For\
\ TRON (TRX) this should be the token contract address.\n- For NEAR this\
\ will be the token address.\n"
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
example: 0xe7A9as1oa38bc4da0248s179E30aa94CcF453991
type: string
symbol:
Expand Down Expand Up @@ -16192,6 +16204,7 @@ components:
description: Source of the transaction.
example:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand Down Expand Up @@ -16222,6 +16235,11 @@ components:
walletId:
format: uuid
type: string
tradingAccount:
description: "If this transaction is an exchange internal transfer, this\
\ field will be populated with the type of that trading account."
nullable: true
type: string
required:
- type
type: object
Expand All @@ -16232,6 +16250,7 @@ components:
**Note:** In case the transaction is sent to multiple destinations, the `destinations` parameter is be used instead of this.
example:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand Down Expand Up @@ -16262,6 +16281,11 @@ components:
walletId:
format: uuid
type: string
tradingAccount:
description: "If this transaction is an exchange internal transfer, this\
\ field will be populated with the type of that trading account."
nullable: true
type: string
required:
- type
type: object
Expand Down Expand Up @@ -16339,6 +16363,7 @@ components:
payload: "{}"
destination:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand Down Expand Up @@ -16424,13 +16449,15 @@ components:
networkFee: networkFee
destination:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
type: null
index: 6.027456183070403
source:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand Down Expand Up @@ -16716,6 +16743,7 @@ components:
fee: 6.84685269835264
destination:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand All @@ -16724,6 +16752,7 @@ components:
extraParameters: "{}"
source:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand All @@ -16737,13 +16766,15 @@ components:
networkFee: networkFee
destination:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
type: null
index: 6.027456183070403
source:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand All @@ -16762,13 +16793,15 @@ components:
networkFee: networkFee
destination:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
type: null
index: 6.027456183070403
source:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand Down Expand Up @@ -16817,6 +16850,7 @@ components:
payload: "{}"
destination:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand All @@ -16840,6 +16874,7 @@ components:
payload: "{}"
destination:
walletId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
tradingAccount: tradingAccount
name: name
subType: subType
id: id
Expand Down Expand Up @@ -21935,6 +21970,7 @@ components:
- XTZ
- XTZ_TEST
- BASECHAIN_ETH
- BASECHAIN_ETH_TEST3
type: string
description:
type: string
Expand Down Expand Up @@ -22085,6 +22121,7 @@ components:
- XTZ
- XTZ_TEST
- BASECHAIN_ETH
- BASECHAIN_ETH_TEST3
type: string
description:
type: string
Expand Down Expand Up @@ -22173,6 +22210,7 @@ components:
- XTZ
- XTZ_TEST
- BASECHAIN_ETH
- BASECHAIN_ETH_TEST3
type: string
contractAddress:
description: Collection contract standard
Expand Down Expand Up @@ -26603,7 +26641,6 @@ components:
required:
- decimals
- name
- standard
- symbol
type: object
AssetResponse_metadata:
Expand Down
2 changes: 1 addition & 1 deletion docs/AssetResponseOnchain.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
|**name** | **String** | The asset name | |
|**address** | **String** | The asset address | [optional] |
|**decimals** | **BigDecimal** | Number of decimals | |
|**standard** | **String** | The asset standard | |
|**standard** | **String** | The asset standard | [optional] |



6 changes: 3 additions & 3 deletions docs/BlockchainsAssetsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,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

Expand Down Expand Up @@ -170,8 +170,8 @@ 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 | - |
| **403** | - The asset creation quota reached. Error code: 1005 | - |
| **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 - Tenant is not allowed to create testnet assets. Error code: 1008 - Tenant is not allowed to create mainnet assets. Error code: 1009 | - |
| **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 | - |
| **500** | Failed to create asset | - |
Expand Down
1 change: 1 addition & 0 deletions docs/CollectionOwnershipResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
| XTZ | "XTZ" |
| XTZ_TEST | "XTZ_TEST" |
| BASECHAIN_ETH | "BASECHAIN_ETH" |
| BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" |



1 change: 1 addition & 0 deletions docs/DestinationTransferPeerPathResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Destination of the transaction. **Note:** In case the transaction is sent to mu
|**id** | **String** | 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] |
|**name** | **String** | The name of the peer. | [optional] |
|**walletId** | **UUID** | | [optional] |
|**tradingAccount** | **String** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional] |



4 changes: 2 additions & 2 deletions docs/NftsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public class Example {

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [optional] [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, XTZ, XTZ_TEST, BASECHAIN_ETH] |
| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [optional] [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, XTZ, XTZ_TEST, BASECHAIN_ETH, BASECHAIN_ETH_TEST3] |
| **vaultAccountIds** | **String**| A comma separated list of Vault Account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=END_USER_WALLET or ncwId is provided. | [optional] |
| **ncwId** | **String**| Tenant's Non-Custodial Wallet ID | [optional] |
| **ncwAccountIds** | **String**| A comma separated list of Non-Custodial account IDs. Up to 100 are allowed in a single request. This field will be ignored when walletType=VAULT_ACCOUNT or ncwId is not provided. | [optional] |
Expand Down Expand Up @@ -635,7 +635,7 @@ public class Example {

| Name | Type | Description | Notes |
|------------- | ------------- | ------------- | -------------|
| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST3, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH] |
| **blockchainDescriptor** | **String**| Blockchain descriptor filter | [enum: ETH, ETH_TEST5, ETH_TEST6, POLYGON, POLYGON_TEST_MUMBAI, AMOY_POLYGON_TEST, BASECHAIN_ETH] |
| **vaultAccountId** | **String**| Vault account filter | |
| **idempotencyKey** | **String**| 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. | [optional] |

Expand Down
2 changes: 1 addition & 1 deletion docs/RegisterNewAssetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**blockchainId** | **String** | Native asset ID of the blockchain | |
|**address** | **String** | 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** | **String** | 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** | **String** | Required for Stellar only, asset code is expected. | [optional] |


Expand Down
1 change: 1 addition & 0 deletions docs/SourceTransferPeerPathResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Source of the transaction.
|**id** | **String** | 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] |
|**name** | **String** | The name of the peer. | [optional] |
|**walletId** | **UUID** | | [optional] |
|**tradingAccount** | **String** | If this transaction is an exchange internal transfer, this field will be populated with the type of that trading account. | [optional] |



1 change: 1 addition & 0 deletions docs/TokenOwnershipResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
| XTZ | "XTZ" |
| XTZ_TEST | "XTZ_TEST" |
| BASECHAIN_ETH | "BASECHAIN_ETH" |
| BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" |



Expand Down
1 change: 1 addition & 0 deletions docs/TokenResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
| XTZ | "XTZ" |
| XTZ_TEST | "XTZ_TEST" |
| BASECHAIN_ETH | "BASECHAIN_ETH" |
| BASECHAIN_ETH_TEST3 | "BASECHAIN_ETH_TEST3" |



Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ private HttpRequest.Builder getSupportedAssetsRequestBuilder() throws ApiExcepti
/**
* 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
* - TRON - NEAR - Solana
*
* @param registerNewAssetRequest (optional)
* @param idempotencyKey A unique identifier for the request. If the request is sent multiple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ public AssetResponseOnchain standard(String standard) {
*
* @return standard
*/
@jakarta.annotation.Nonnull
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_STANDARD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getStandard() {
return standard;
}

@JsonProperty(JSON_PROPERTY_STANDARD)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStandard(String standard) {
this.standard = standard;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ public enum BlockchainDescriptorEnum {

XTZ_TEST("XTZ_TEST"),

BASECHAIN_ETH("BASECHAIN_ETH");
BASECHAIN_ETH("BASECHAIN_ETH"),

BASECHAIN_ETH_TEST3("BASECHAIN_ETH_TEST3");

private String value;

Expand Down
Loading

0 comments on commit e6853c1

Please sign in to comment.