Skip to content

Commit

Permalink
Generated SDK #3877
Browse files Browse the repository at this point in the history
  • Loading branch information
fireblocks_dx_team committed Jun 17, 2024
1 parent 62de55d commit 8fc6c81
Show file tree
Hide file tree
Showing 7 changed files with 166 additions and 181 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Create Pull Request

on:
push:
branches:
- 'fireblocks-api-spec/generated/*'

jobs:
create-pull-request:
runs-on: ubuntu-latest

steps:
- name: Check out repository code
uses: actions/checkout@v4

- name: Create pull request
run: |
gh pr create \
--title "${{ github.event.commits[0].message }}" \
--body "This PR was automatically generated." \
--base master \
--head ${{ github.ref }} \
--reviewer asafs932,zoharsf,YoavBZ
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45 changes: 0 additions & 45 deletions CHANGELOG.md

This file was deleted.

8 changes: 4 additions & 4 deletions api/blockchains-assets-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const BlockchainsAssetsApiAxiosParamCreator = function (configuration?: C
};
},
/**
* 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
* @summary Register an asset
* @param {RegisterNewAssetRequest} [registerNewAssetRequest]
* @param {string} [idempotencyKey] 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.
Expand Down Expand Up @@ -141,7 +141,7 @@ export const BlockchainsAssetsApiFp = function(configuration?: Configuration) {
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
},
/**
* 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
* @summary Register an asset
* @param {RegisterNewAssetRequest} [registerNewAssetRequest]
* @param {string} [idempotencyKey] 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.
Expand Down Expand Up @@ -174,7 +174,7 @@ export const BlockchainsAssetsApiFactory = function (configuration?: Configurati
return localVarFp.getSupportedAssets(options).then((request) => request(axios, basePath));
},
/**
* 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
* @summary Register an asset
* @param {BlockchainsAssetsApiRegisterNewAssetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
Expand Down Expand Up @@ -226,7 +226,7 @@ export class BlockchainsAssetsApi extends BaseAPI {
}

/**
* 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
* @summary Register an asset
* @param {BlockchainsAssetsApiRegisterNewAssetRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
Expand Down
4 changes: 2 additions & 2 deletions docs/apis/BlockchainsAssetsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ No authorization required
# **registerNewAsset**
> AssetResponse registerNewAsset()
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 @@ -121,7 +121,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 | - |
Expand Down
2 changes: 1 addition & 1 deletion docs/models/RegisterNewAssetRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
|Name | Type | Description | Notes|
|------------ | ------------- | ------------- | -------------|
|**blockchainId** | **string** | Native asset ID of the blockchain | [default to undefined]|
|**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. | [default to undefined]|
|**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 | [default to undefined]|
|**symbol** | **string** | Required for Stellar only, asset code is expected. | [optional] [default to undefined]|


Expand Down
2 changes: 1 addition & 1 deletion models/register-new-asset-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface RegisterNewAssetRequest {
*/
'blockchainId': 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.
* 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
* @type {string}
* @memberof RegisterNewAssetRequest
*/
Expand Down
Loading

0 comments on commit 8fc6c81

Please sign in to comment.