Skip to content

Commit 74562dc

Browse files
author
fireblocks_dx_team
committed
Generated SDK #5009
1 parent 0891980 commit 74562dc

File tree

13 files changed

+768
-69
lines changed

13 files changed

+768
-69
lines changed

.openapi-generator/FILES

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ docs/DropTransactionRequest.md
177177
docs/DropTransactionResponse.md
178178
docs/EVMTokenCreateParamsDto.md
179179
docs/EditGasStationConfigurationResponse.md
180+
docs/EmbeddedWalletsApi.md
180181
docs/ErrorResponse.md
181182
docs/ErrorResponseError.md
182183
docs/ErrorSchema.md
@@ -547,6 +548,7 @@ src/main/java/com/fireblocks/sdk/api/ContractTemplatesApi.java
547548
src/main/java/com/fireblocks/sdk/api/ContractsApi.java
548549
src/main/java/com/fireblocks/sdk/api/CosignersBetaApi.java
549550
src/main/java/com/fireblocks/sdk/api/DeployedContractsApi.java
551+
src/main/java/com/fireblocks/sdk/api/EmbeddedWalletsApi.java
550552
src/main/java/com/fireblocks/sdk/api/ExchangeAccountsApi.java
551553
src/main/java/com/fireblocks/sdk/api/ExternalWalletsApi.java
552554
src/main/java/com/fireblocks/sdk/api/FiatAccountsApi.java
@@ -1056,6 +1058,7 @@ src/test/java/com/fireblocks/sdk/api/ContractTemplatesApiTest.java
10561058
src/test/java/com/fireblocks/sdk/api/ContractsApiTest.java
10571059
src/test/java/com/fireblocks/sdk/api/CosignersBetaApiTest.java
10581060
src/test/java/com/fireblocks/sdk/api/DeployedContractsApiTest.java
1061+
src/test/java/com/fireblocks/sdk/api/EmbeddedWalletsApiTest.java
10591062
src/test/java/com/fireblocks/sdk/api/ExchangeAccountsApiTest.java
10601063
src/test/java/com/fireblocks/sdk/api/ExternalWalletsApiTest.java
10611064
src/test/java/com/fireblocks/sdk/api/FiatAccountsApiTest.java

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Add this dependency to your project's POM:
3232
<dependency>
3333
<groupId>com.fireblocks.sdk</groupId>
3434
<artifactId>fireblocks-sdk</artifactId>
35-
<version>6.0.0</version>
35+
<version>0.0.0</version>
3636
<scope>compile</scope>
3737
</dependency>
3838
```
@@ -42,7 +42,7 @@ Add this dependency to your project's POM:
4242
Add this dependency to your project's build file:
4343

4444
```groovy
45-
compile "com.fireblocks.sdk:fireblocks-sdk:6.0.0"
45+
compile "com.fireblocks.sdk:fireblocks-sdk:0.0.0"
4646
```
4747

4848
### Others
@@ -55,7 +55,7 @@ mvn clean package
5555

5656
Then manually install the following JARs:
5757

58-
- `target/fireblocks-sdk-6.0.0.jar`
58+
- `target/fireblocks-sdk-0.0.0.jar`
5959
- `target/lib/*.jar`
6060

6161

@@ -186,6 +186,8 @@ Class | Method | HTTP request | Description
186186
*DeployedContractsApi* | [**getDeployedContractByAddress**](docs/DeployedContractsApi.md#getDeployedContractByAddress) | **GET** /tokenization/contracts/{assetId}/{contractAddress} | Return deployed contract data
187187
*DeployedContractsApi* | [**getDeployedContractById**](docs/DeployedContractsApi.md#getDeployedContractById) | **GET** /tokenization/contracts/{id} | Return deployed contract data by id
188188
*DeployedContractsApi* | [**getDeployedContracts**](docs/DeployedContractsApi.md#getDeployedContracts) | **GET** /tokenization/contracts | List deployed contracts data
189+
*EmbeddedWalletsApi* | [**getPublicKeyInfoForAddressNcw**](docs/EmbeddedWalletsApi.md#getPublicKeyInfoForAddressNcw) | **GET** /ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info | Get the public key of an asset
190+
*EmbeddedWalletsApi* | [**getPublicKeyInfoNcw**](docs/EmbeddedWalletsApi.md#getPublicKeyInfoNcw) | **GET** /ncw/{walletId}/public_key_info | Get the public key for a derivation path
189191
*ExchangeAccountsApi* | [**convertAssets**](docs/ExchangeAccountsApi.md#convertAssets) | **POST** /exchange_accounts/{exchangeAccountId}/convert | Convert exchange account funds from the source asset to the destination asset.
190192
*ExchangeAccountsApi* | [**getExchangeAccount**](docs/ExchangeAccountsApi.md#getExchangeAccount) | **GET** /exchange_accounts/{exchangeAccountId} | Find a specific exchange account
191193
*ExchangeAccountsApi* | [**getExchangeAccountAsset**](docs/ExchangeAccountsApi.md#getExchangeAccountAsset) | **GET** /exchange_accounts/{exchangeAccountId}/{assetId} | Find an asset for an exchange account

api/openapi.yaml

Lines changed: 114 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -2407,28 +2407,44 @@ paths:
24072407
/ncw/{walletId}/public_key_info:
24082408
get:
24092409
description: Gets the public key information based on derivation path and signing
2410-
algorithm.
2410+
algorithm within a Non-Custodial Wallet
24112411
operationId: getPublicKeyInfoNcw
24122412
parameters:
2413-
- explode: false
2413+
- description: The ID of the Non-Custodial wallet
2414+
explode: false
24142415
in: path
24152416
name: walletId
24162417
required: true
24172418
schema:
2419+
example: 550e8400-e29b-41d4-a716-446655440000
24182420
type: string
24192421
style: simple
2420-
- explode: true
2422+
- description: "An array of integers (passed as JSON stringified array) representing\
2423+
\ the full BIP44 derivation path of the requested public key. \nThe first\
2424+
\ element must always be 44.\n"
2425+
example:
2426+
- 44
2427+
- 0
2428+
- 0
2429+
- 0
2430+
- 0
2431+
explode: true
24212432
in: query
24222433
name: derivationPath
24232434
required: true
24242435
schema:
24252436
type: string
24262437
style: form
2427-
- explode: true
2438+
- description: Elliptic Curve
2439+
explode: true
24282440
in: query
24292441
name: algorithm
24302442
required: true
24312443
schema:
2444+
enum:
2445+
- MPC_ECDSA_SECP256K1
2446+
- MPC_ECDSA_SECP256R1
2447+
- MPC_EDDSA_ED25519
24322448
type: string
24332449
style: form
24342450
- explode: true
@@ -2457,64 +2473,94 @@ paths:
24572473
headers:
24582474
X-Request-ID:
24592475
$ref: '#/components/headers/X-Request-ID'
2460-
summary: Get the public key information
2476+
summary: Get the public key for a derivation path
24612477
tags:
24622478
- Embedded Wallets
2463-
x-internal: true
24642479
x-readme:
24652480
code-samples:
2466-
- language: python
2467-
code: "pubKey = fireblocks.NCW.get_public_key_info(wallet_id, algorithm,\
2468-
\ derivation_path, compressed)"
2469-
name: Fireblocks SDK Python example (Legacy)
24702481
- language: javascript
2471-
code: |
2472-
const PublicKeyInfoArgs = { algorithm: 'MPC_ECDSA_SECP256K1', derivationPath: '[44,0,0,0,0]' } const pubKey = await fireblocks.NCW.getPublicKeyInfo(walletId, PublicKeyInfoArgs);
2482+
code: "const publicKeyInfoArgs = { \n algorithm: 'MPC_ECDSA_SECP256K1',\n\
2483+
\ derivationPath: [44, 0, 0, 0, 0],\n compressed: true\n};\nconst pubKey\
2484+
\ = await fireblocks.NCW.getPublicKeyInfo(walletId, publicKeyInfoArgs);\n"
24732485
name: Fireblocks SDK Javascript example
2486+
- language: typescript
2487+
code: "const response: Promise<FireblocksResponse<PublicKeyInformation>>\
2488+
\ = fireblocks.embeddedWallets.getPublicKeyInfoNcw(embeddedWalletsApiGetPublicKeyInfoNcwRequest);"
2489+
name: Fireblocks SDK TypeScript example
2490+
- language: java
2491+
code: "CompletableFuture<ApiResponse<PublicKeyInformation>> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(walletId,\
2492+
\ derivationPath, algorithm, compressed);"
2493+
name: Fireblocks SDK Java example
2494+
- language: python
2495+
code: "response = fireblocks.embedded_wallets.get_public_key_info_ncw(wallet_id,\
2496+
\ derivation_path, algorithm, compressed);"
2497+
name: Fireblocks SDK Python example
2498+
x-codeSamples:
2499+
- lang: TypeScript
2500+
source: "const response: Promise<FireblocksResponse<PublicKeyInformation>>\
2501+
\ = fireblocks.embeddedWallets.getPublicKeyInfoNcw(embeddedWalletsApiGetPublicKeyInfoNcwRequest);"
2502+
- lang: Java
2503+
source: "CompletableFuture<ApiResponse<PublicKeyInformation>> response = fireblocks.embeddedWallets().getPublicKeyInfoNcw(walletId,\
2504+
\ derivationPath, algorithm, compressed);"
2505+
- lang: Python
2506+
source: "response = fireblocks.embedded_wallets.get_public_key_info_ncw(wallet_id,\
2507+
\ derivation_path, algorithm, compressed);"
24742508
x-accepts: application/json
24752509
/ncw/{walletId}/accounts/{accountId}/{assetId}/{change}/{addressIndex}/public_key_info:
24762510
get:
2477-
description: Gets the public key information for the account asset.
2511+
description: Gets the public key of an asset associated with a specific account
2512+
within a Non-Custodial Wallet
24782513
operationId: getPublicKeyInfoForAddressNcw
24792514
parameters:
2480-
- explode: false
2515+
- description: The ID of the Non-Custodial wallet
2516+
explode: false
24812517
in: path
24822518
name: walletId
24832519
required: true
24842520
schema:
2521+
example: 550e8400-e29b-41d4-a716-446655440000
24852522
type: string
24862523
style: simple
2487-
- explode: false
2524+
- description: The ID of the account
2525+
explode: false
24882526
in: path
24892527
name: accountId
24902528
required: true
24912529
schema:
2530+
example: "0"
24922531
format: numeric
24932532
type: string
24942533
style: simple
2495-
- explode: false
2534+
- description: The ID of the asset
2535+
explode: false
24962536
in: path
24972537
name: assetId
24982538
required: true
24992539
schema:
2540+
example: BTC
25002541
type: string
25012542
x-fb-entity: asset
25022543
style: simple
2503-
- explode: false
2544+
- description: BIP44 derivation path - change value
2545+
explode: false
25042546
in: path
25052547
name: change
25062548
required: true
25072549
schema:
2550+
example: 0
25082551
type: number
25092552
style: simple
2510-
- explode: false
2553+
- description: BIP44 derivation path - index value
2554+
explode: false
25112555
in: path
25122556
name: addressIndex
25132557
required: true
25142558
schema:
2559+
example: 0
25152560
type: number
25162561
style: simple
2517-
- explode: true
2562+
- description: Compressed/Uncompressed public key format
2563+
explode: true
25182564
in: query
25192565
name: compressed
25202566
required: false
@@ -2540,20 +2586,39 @@ paths:
25402586
headers:
25412587
X-Request-ID:
25422588
$ref: '#/components/headers/X-Request-ID'
2543-
summary: Get the public key for an account asset
2589+
summary: Get the public key of an asset
25442590
tags:
25452591
- Embedded Wallets
2546-
x-internal: true
25472592
x-readme:
25482593
code-samples:
2549-
- language: python
2550-
code: "pubKey = fireblocks.NCW.get_public_key_info_by_account_asset(wallet_id,\
2551-
\ asset_id, account_id, change, address_index, compressed)"
2552-
name: Fireblocks SDK Python example (Legacy)
25532594
- language: javascript
2554-
code: |
2555-
const PublicKeyInfoByAccountAssetArgs = { assetId: 'ETH', accountId: 0, change: 0, addressIndex: 0, compressed: true } const pubKey = await fireblocks.NCW.getPublicKeyInfoByAccountAsset(walletId, PublicKeyInfoByAccountAssetArgs);
2595+
code: "const publicKeyInfoByAccountAssetArgs = {\n assetId: 'ETH',\n accountId:\
2596+
\ 0,\n change: 0,\n addressIndex: 0,\n compressed: true\n}; \
2597+
\ \nconst pubKey = await fireblocks.NCW.getPublicKeyInfoByAccountAsset(walletId,\
2598+
\ publicKeyInfoByAccountAssetArgs);\n"
25562599
name: Fireblocks SDK Javascript example
2600+
- language: typescript
2601+
code: "const response: Promise<FireblocksResponse<PublicKeyInformation>>\
2602+
\ = fireblocks.embeddedWallets.getPublicKeyInfoForAddressNcw(embeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest);"
2603+
name: Fireblocks SDK TypeScript example
2604+
- language: java
2605+
code: "CompletableFuture<ApiResponse<PublicKeyInformation>> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(walletId,\
2606+
\ accountId, assetId, change, addressIndex, compressed);"
2607+
name: Fireblocks SDK Java example
2608+
- language: python
2609+
code: "response = fireblocks.embedded_wallets.get_public_key_info_for_address_ncw(wallet_id,\
2610+
\ account_id, asset_id, change, address_index, compressed);"
2611+
name: Fireblocks SDK Python example
2612+
x-codeSamples:
2613+
- lang: TypeScript
2614+
source: "const response: Promise<FireblocksResponse<PublicKeyInformation>>\
2615+
\ = fireblocks.embeddedWallets.getPublicKeyInfoForAddressNcw(embeddedWalletsApiGetPublicKeyInfoForAddressNcwRequest);"
2616+
- lang: Java
2617+
source: "CompletableFuture<ApiResponse<PublicKeyInformation>> response = fireblocks.embeddedWallets().getPublicKeyInfoForAddressNcw(walletId,\
2618+
\ accountId, assetId, change, addressIndex, compressed);"
2619+
- lang: Python
2620+
source: "response = fireblocks.embedded_wallets.get_public_key_info_for_address_ncw(wallet_id,\
2621+
\ account_id, asset_id, change, address_index, compressed);"
25572622
x-accepts: application/json
25582623
/workspace/freeze:
25592624
post:
@@ -18959,18 +19024,35 @@ components:
1895919024
PublicKeyInformation:
1896019025
example:
1896119026
derivationPath:
18962-
- 0.8008281904610115
18963-
- 0.8008281904610115
18964-
publicKey: publicKey
18965-
algorithm: algorithm
19027+
- 44
19028+
- 0
19029+
- 0
19030+
- 0
19031+
- 0
19032+
publicKey: 1044c36403c1802818b472398f546a43a0d91569d5583a6e807c3825b155c7bd
19033+
algorithm: MPC_ECDSA_SECP256K1
1896619034
properties:
1896719035
algorithm:
19036+
description: Elliptic Curve
19037+
enum:
19038+
- MPC_ECDSA_SECP256K1
19039+
- MPC_ECDSA_SECP256R1
19040+
- MPC_EDDSA_ED25519
1896819041
type: string
1896919042
derivationPath:
19043+
description: BIP44 derivation path
19044+
example:
19045+
- 44
19046+
- 0
19047+
- 0
19048+
- 0
19049+
- 0
1897019050
items:
18971-
type: number
19051+
type: integer
1897219052
type: array
1897319053
publicKey:
19054+
description: Compressed/Uncompressed public key value in hex representation
19055+
example: 1044c36403c1802818b472398f546a43a0d91569d5583a6e807c3825b155c7bd
1897419056
type: string
1897519057
type: object
1897619058
GetVaultAssetsResponse:

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apply plugin: 'eclipse'
33
apply plugin: 'com.diffplug.spotless'
44

55
group = 'com.fireblocks.sdk'
6-
version = '6.0.0'
6+
version = '0.0.0'
77

88
buildscript {
99
repositories {

0 commit comments

Comments
 (0)