diff --git a/README.md b/README.md index 3371c83c..f90e4467 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Add this dependency to your project's POM: com.fireblocks.sdk fireblocks-sdk - 10.0.0 + 0.0.0 compile ``` @@ -42,7 +42,7 @@ Add this dependency to your project's POM: Add this dependency to your project's build file: ```groovy -compile "com.fireblocks.sdk:fireblocks-sdk:10.0.0" +compile "com.fireblocks.sdk:fireblocks-sdk:0.0.0" ``` ### Others @@ -55,7 +55,7 @@ mvn clean package Then manually install the following JARs: -- `target/fireblocks-sdk-10.0.0.jar` +- `target/fireblocks-sdk-0.0.0.jar` - `target/lib/*.jar` diff --git a/api/openapi.yaml b/api/openapi.yaml index c15fb77e..74f46142 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -21338,6 +21338,8 @@ components: enum: - SEGWIT - LEGACY + - BASE + - PAYMENT type: string legacyAddress: type: string @@ -23906,6 +23908,7 @@ components: * `SUPPLY_TO_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. * `REDEEM_FROM_COMPOUND` - Deprecated since April 1st, 2023. Older transactions may have this as their operation, in case users in the workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. + * `PROGRAM_CALL` - In Solana refers to invoking on-chain programs (smart contracts) to execute transactions and interact with the blockchain. enum: - TRANSFER - BURN @@ -23919,6 +23922,7 @@ components: - WITHDRAW - REDEEM_FROM_COMPOUND - SUPPLY_TO_COMPOUND + - PROGRAM_CALL type: string TransferPeerPathType: enum: @@ -41855,6 +41859,7 @@ components: * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. + * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart contracts) to execute transactions and interact with the blockchain. enum: - TRANSFER - CONTRACT_CALL @@ -41866,6 +41871,7 @@ components: - STAKE - RAW - TYPED_MESSAGE + - PROGRAM_CALL type: string designatedSigner: deprecated: true diff --git a/build.gradle b/build.gradle index 21caec3b..358eefb7 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'eclipse' apply plugin: 'com.diffplug.spotless' group = 'com.fireblocks.sdk' -version = '10.0.0' +version = '0.0.0' buildscript { repositories { diff --git a/docs/GetTransactionOperation.md b/docs/GetTransactionOperation.md index cab5c3d8..af7873a5 100644 --- a/docs/GetTransactionOperation.md +++ b/docs/GetTransactionOperation.md @@ -29,5 +29,7 @@ * `SUPPLY_TO_COMPOUND` (value: `"SUPPLY_TO_COMPOUND"`) +* `PROGRAM_CALL` (value: `"PROGRAM_CALL"`) + diff --git a/docs/PolicyRule.md b/docs/PolicyRule.md index fa3ea8a2..9a164cdb 100644 --- a/docs/PolicyRule.md +++ b/docs/PolicyRule.md @@ -10,7 +10,7 @@ Policy rule which is enforced on transactions |------------ | ------------- | ------------- | -------------| |**operator** | **String** | (deprecated - replaced by \"operators\") | Defines users who can initiate the type of transaction to which the rule applies. options are * \"*\" - All users are allowed * Specific User id | [optional] | |**operators** | [**PolicyRuleOperators**](PolicyRuleOperators.md) | | [optional] | -|**transactionType** | [**TransactionTypeEnum**](#TransactionTypeEnum) | Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. | [optional] | +|**transactionType** | [**TransactionTypeEnum**](#TransactionTypeEnum) | Defines the type of transaction to which the rule applies. * TRANSFER - Default. Transfers funds from one account to another * CONTRACT_CALL - Calls a smart contract, mainly for DeFi operations. * APPROVE - Allows a smart contract to withdraw from a designated wallet. * MINT - Perform a mint operation (increase supply) on a supported token * BURN - Perform a burn operation (reduce supply) on a supported token * SUPPLY - Use for DeFi to lend assets * REDEEM - Use for DeFi to get lending back * STAKE - Allows you to allocate and lock certain assets for earning staking rewards. * RAW - An off-chain message with no predefined format, use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type that follows a predefined format, used to sign specific messages that are not actual transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart contracts) to execute transactions and interact with the blockchain. | [optional] | |**designatedSigner** | **String** | (deprecated - replaced by \"designatedSigners\") Id representing the user who signs transactions that match a specific rule | [optional] | |**designatedSigners** | [**PolicyRuleDesignatedSigners**](PolicyRuleDesignatedSigners.md) | | [optional] | |**type** | [**TypeEnum**](#TypeEnum) | Policy rule type | | @@ -54,6 +54,7 @@ Policy rule which is enforced on transactions | STAKE | "STAKE" | | RAW | "RAW" | | TYPED_MESSAGE | "TYPED_MESSAGE" | +| PROGRAM_CALL | "PROGRAM_CALL" | diff --git a/docs/VaultWalletAddress.md b/docs/VaultWalletAddress.md index 6a38a882..b2ae25c6 100644 --- a/docs/VaultWalletAddress.md +++ b/docs/VaultWalletAddress.md @@ -27,6 +27,8 @@ |---- | -----| | SEGWIT | "SEGWIT" | | LEGACY | "LEGACY" | +| BASE | "BASE" | +| PAYMENT | "PAYMENT" | diff --git a/pom.xml b/pom.xml index ae109d17..94938f50 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ fireblocks-sdk jar fireblocks-sdk - 10.0.0 + 0.0.0 https://github.com/fireblocks/java-sdk The Fireblocks Official SDK is a comprehensive software development kit that enables seamless integration and interaction with the Fireblocks platform. Fireblocks is a cutting-edge blockchain infrastructure platform that provides secure and scalable solutions for managing digital assets and transactions. This SDK empowers developers to build robust applications that can interact with the Fireblocks platform's features, including creating and managing vault accounts, initiating secure transactions, managing assets, and more. It abstracts complex interactions with the Fireblocks API, making it easier for developers to leverage the platform's capabilities while adhering to best practices in security and efficiency. diff --git a/src/main/java/com/fireblocks/sdk/Configuration.java b/src/main/java/com/fireblocks/sdk/Configuration.java index 162f8e5a..9ec56d09 100644 --- a/src/main/java/com/fireblocks/sdk/Configuration.java +++ b/src/main/java/com/fireblocks/sdk/Configuration.java @@ -14,7 +14,7 @@ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Configuration { - public static final String VERSION = "10.0.0"; + public static final String VERSION = "0.0.0"; private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/fireblocks/sdk/model/GetTransactionOperation.java b/src/main/java/com/fireblocks/sdk/model/GetTransactionOperation.java index 2b9a5a05..aee80122 100644 --- a/src/main/java/com/fireblocks/sdk/model/GetTransactionOperation.java +++ b/src/main/java/com/fireblocks/sdk/model/GetTransactionOperation.java @@ -48,7 +48,9 @@ * this as their operation, in case users in the workspace have used the direct integration between * Fireblocks and the Compound DeFI protocol. * `REDEEM_FROM_COMPOUND` - Deprecated since * April 1st, 2023. Older transactions may have this as their operation, in case users in the - * workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. + * workspace have used the direct integration between Fireblocks and the Compound DeFI protocol. * + * `PROGRAM_CALL` - In Solana refers to invoking on-chain programs (smart contracts) to + * execute transactions and interact with the blockchain. */ public enum GetTransactionOperation { TRANSFER("TRANSFER"), @@ -73,7 +75,9 @@ public enum GetTransactionOperation { REDEEM_FROM_COMPOUND("REDEEM_FROM_COMPOUND"), - SUPPLY_TO_COMPOUND("SUPPLY_TO_COMPOUND"); + SUPPLY_TO_COMPOUND("SUPPLY_TO_COMPOUND"), + + PROGRAM_CALL("PROGRAM_CALL"); private String value; diff --git a/src/main/java/com/fireblocks/sdk/model/PolicyRule.java b/src/main/java/com/fireblocks/sdk/model/PolicyRule.java index b707c309..99ee11e9 100644 --- a/src/main/java/com/fireblocks/sdk/model/PolicyRule.java +++ b/src/main/java/com/fireblocks/sdk/model/PolicyRule.java @@ -76,7 +76,8 @@ public class PolicyRule { * assets for earning staking rewards. * RAW - An off-chain message with no predefined format, * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type * that follows a predefined format, used to sign specific messages that are not actual - * transactions. + * transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart + * contracts) to execute transactions and interact with the blockchain. */ public enum TransactionTypeEnum { TRANSFER("TRANSFER"), @@ -97,7 +98,9 @@ public enum TransactionTypeEnum { RAW("RAW"), - TYPED_MESSAGE("TYPED_MESSAGE"); + TYPED_MESSAGE("TYPED_MESSAGE"), + + PROGRAM_CALL("PROGRAM_CALL"); private String value; @@ -464,7 +467,8 @@ public PolicyRule transactionType(TransactionTypeEnum transactionType) { * assets for earning staking rewards. * RAW - An off-chain message with no predefined format, * use it to sign any message with your private key. * TYPED_MESSAGE - An off-chain message type * that follows a predefined format, used to sign specific messages that are not actual - * transactions. + * transactions. * PROGRAM_CALL - In Solana refers to invoking on-chain programs (smart + * contracts) to execute transactions and interact with the blockchain. * * @return transactionType */ diff --git a/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java b/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java index ea2a6857..cc0baf60 100644 --- a/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java +++ b/src/main/java/com/fireblocks/sdk/model/VaultWalletAddress.java @@ -61,7 +61,11 @@ public class VaultWalletAddress { public enum AddressFormatEnum { SEGWIT("SEGWIT"), - LEGACY("LEGACY"); + LEGACY("LEGACY"), + + BASE("BASE"), + + PAYMENT("PAYMENT"); private String value;